blob: 045d4f51771af8f2fd7617b2c305927c45dc6a7e [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 Julliard71ababe2012-03-07 17:11:48 +01003# Generated by GNU Autoconf 2.68 for Wine 1.4.
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 Julliard71ababe2012-03-07 17:11:48 +0100563PACKAGE_VERSION='1.4'
564PACKAGE_STRING='Wine 1.4'
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 Julliardf4ec0972011-10-22 18:21:04 +0200607PORCFLAGS
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +0100608LINGUAS
Alexandre Julliard9b99cd12011-05-24 11:11:22 +0200609ALL_TEST_RESOURCES
Alexandre Julliardabf50482008-10-31 12:56:53 +0100610LDAPLIBS
611LIBPOLL
612LIBDL
613EXTRA_BINARIES
Alexandre Julliard3e6eab32009-08-13 19:54:31 +0200614MAIN_BINARY
Alexandre Julliardabf50482008-10-31 12:56:53 +0100615SOCKETLIBS
616CRTLIBS
Alexandre Julliardb860c4a2009-09-01 22:36:13 +0200617TOOLSEXT
Alexandre Julliardabf50482008-10-31 12:56:53 +0100618LDPATH
Alexandre Julliard6c142382010-04-11 12:47:30 +0200619UNWINDFLAGS
Alexandre Julliardabf50482008-10-31 12:56:53 +0100620BUILTINFLAG
621EXTRACFLAGS
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +0100622LIBKSTAT
Maarten Lankhorstd4354992009-12-09 11:52:09 +0100623LIBOPENAL
Aric Stewartdb71d7c2009-08-19 09:37:48 -0500624LIBMPG123
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +0200625PNGINCL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100626FONTCONFIGINCL
627CUPSINCL
Alexandre Julliardf60a0f52011-05-02 20:06:49 +0200628OSS4INCL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100629ALSALIBS
Aric Stewart2914d652010-10-20 13:55:16 -0500630GSTREAMER_INCL
631GSTREAMER_LIBS
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +0100632LIBGETTEXTPO
Jacek Caban11ca05f2009-05-29 23:35:13 +0200633ZLIB
Alexandre Julliardabf50482008-10-31 12:56:53 +0100634FREETYPEINCL
635FREETYPELIBS
636ft_devel
637LCMSLIBS
638RESOLVLIBS
639GPHOTO2INCL
640GPHOTO2LIBS
641gphoto2port_devel
642gphoto2_devel
643SANEINCL
644sane_devel
645GNUTLSINCL
646HALINCL
Alexandre Julliarde45d1242011-12-20 10:36:35 +0100647DBUSINCL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100648XSLTINCL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100649XML2INCL
650XML2LIBS
Alexandre Julliard40664c02009-02-11 20:40:58 +0100651X_EXTRA_LIBS
652X_LIBS
653X_PRE_LIBS
654X_CFLAGS
655XMKMF
Alexandre Julliardc891f6b2009-02-11 20:41:50 +0100656LIBPTHREAD
Alexandre Julliard1f254212010-01-23 20:26:49 +0100657CROSSTARGET
Alexandre Julliardabf50482008-10-31 12:56:53 +0100658CROSSCC
Alexandre Julliard7d2e7722010-07-26 12:13:47 +0200659CROSSTEST_DISABLE
Alexandre Julliardb5d824b2010-08-24 13:42:10 +0200660PRELINK
Alexandre Julliardabf50482008-10-31 12:56:53 +0100661CARBONLIB
Alexandre Julliardfa3ddd82011-01-14 15:59:51 +0100662QUICKTIMELIB
Alexandre Julliardfac67412010-12-03 14:16:55 +0100663LIBOPENCL
Maarten Lankhorstd4354992009-12-09 11:52:09 +0100664FRAMEWORK_OPENAL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100665COREAUDIO
Alexandre Julliard45db3482011-03-14 14:25:45 +0100666SECURITYLIB
Alexandre Julliardabf50482008-10-31 12:56:53 +0100667DISKARBITRATIONLIB
668LDEXECFLAGS
Ken Thomases21137cd2011-01-05 07:25:23 -0600669APPLICATIONSERVICESLIB
Alexandre Julliardabf50482008-10-31 12:56:53 +0100670IOKITLIB
671COREFOUNDATIONLIB
Alexandre Julliardabf50482008-10-31 12:56:53 +0100672DLLWRAP
673DLLTOOL
674LDD
675LDRPATH_LOCAL
676LDRPATH_INSTALL
677IMPLIBEXT
678LIBEXT
679LDDLLFLAGS
680LDSHARED
681DLLFLAGS
682DLLEXT
Alexandre Julliard40664c02009-02-11 20:40:58 +0100683CPP
Alexandre Julliardabf50482008-10-31 12:56:53 +0100684OPENGL_LIBS
685XLIB
Andrew Nguyen2eda9c72010-05-25 22:20:14 -0500686MAINTAINER_MODE
Alexandre Julliard268976b2011-10-22 15:23:14 +0200687MSGFMT
Alexandre Julliardabf50482008-10-31 12:56:53 +0100688ICOTOOL
Joel Holdsworth476a2be2010-04-05 11:15:03 +0100689CONVERT
Alexandre Julliardabf50482008-10-31 12:56:53 +0100690RSVG
691PKG_CONFIG
692FONTFORGE
693LINTFLAGS
694LINT
695INSTALL_DATA
696INSTALL_SCRIPT
697INSTALL_PROGRAM
698LDCONFIG
699EGREP
700GREP
Alexandre Julliardabf50482008-10-31 12:56:53 +0100701LN_S
Alexandre Julliardabf50482008-10-31 12:56:53 +0100702RANLIB
703ARFLAGS
704ac_ct_AR
705AR
Alexandre Julliardabf50482008-10-31 12:56:53 +0100706BISON
707FLEX
Alexandre Julliardabf50482008-10-31 12:56:53 +0100708TOOLSDIR
Alexandre Julliard90647772009-08-13 19:48:42 +0200709WOW64_DISABLE
Alexandre Julliard07f77c42009-01-15 21:17:51 +0100710TARGETFLAGS
Alexandre Julliardabf50482008-10-31 12:56:53 +0100711CPPBIN
712ac_ct_CXX
713CXXFLAGS
714CXX
715OBJEXT
716EXEEXT
717ac_ct_CC
718CPPFLAGS
719LDFLAGS
720CFLAGS
721CC
722SET_MAKE
Alexandre Julliardabf50482008-10-31 12:56:53 +0100723host_os
724host_vendor
725host_cpu
726host
727build_os
728build_vendor
729build_cpu
730build
Alexandre Julliardabf50482008-10-31 12:56:53 +0100731target_alias
732host_alias
733build_alias
734LIBS
735ECHO_T
736ECHO_N
737ECHO_C
738DEFS
739mandir
740localedir
741libdir
742psdir
743pdfdir
744dvidir
745htmldir
746infodir
747docdir
748oldincludedir
749includedir
750localstatedir
751sharedstatedir
752sysconfdir
753datadir
754datarootdir
755libexecdir
756sbindir
757bindir
758program_transform_name
759prefix
760exec_prefix
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200761PACKAGE_URL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100762PACKAGE_BUGREPORT
763PACKAGE_STRING
764PACKAGE_VERSION
765PACKAGE_TARNAME
766PACKAGE_NAME
767PATH_SEPARATOR
768SHELL'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200769ac_subst_files='MAKE_RULES
Alexandre Julliardcb1fc8f2010-02-10 11:18:58 +0100770MAKE_TEST_RULES
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200771MAKE_DLL_RULES
772MAKE_IMPLIB_RULES
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200773MAKE_PROG_RULES'
Alexandre Julliardabf50482008-10-31 12:56:53 +0100774ac_user_opts='
775enable_option_checking
776enable_win16
777enable_win64
Alexandre Julliard35078f42008-11-21 10:16:12 +0100778enable_tests
Alexandre Julliardabf50482008-10-31 12:56:53 +0100779enable_maintainer_mode
780with_alsa
Alexandre Julliardabf50482008-10-31 12:56:53 +0100781with_capi
782with_cms
783with_coreaudio
784with_cups
785with_curses
Alexandre Julliarde45d1242011-12-20 10:36:35 +0100786with_dbus
Alexandre Julliardabf50482008-10-31 12:56:53 +0100787with_fontconfig
788with_freetype
Alexandre Julliard268976b2011-10-22 15:23:14 +0200789with_gettext
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +0100790with_gettextpo
Alexandre Julliardabf50482008-10-31 12:56:53 +0100791with_gphoto
792with_glu
793with_gnutls
Alexandre Julliard6ce32e02009-08-19 15:53:04 +0200794with_gsm
Aric Stewart2914d652010-10-20 13:55:16 -0500795with_gstreamer
Alexandre Julliardabf50482008-10-31 12:56:53 +0100796with_hal
Alexandre Julliardabf50482008-10-31 12:56:53 +0100797with_jpeg
798with_ldap
Aric Stewartdb71d7c2009-08-19 09:37:48 -0500799with_mpg123
Chris Robinson862965f2009-08-25 03:26:35 -0700800with_openal
Peter Urbanec65c84d72010-12-02 23:41:48 +1100801with_opencl
Alexandre Julliardabf50482008-10-31 12:56:53 +0100802with_opengl
803with_openssl
804with_oss
805with_png
Alexandre Julliardc891f6b2009-02-11 20:41:50 +0100806with_pthread
Alexandre Julliardabf50482008-10-31 12:56:53 +0100807with_sane
Vincent Povirk73cd5692010-03-08 17:07:29 -0600808with_tiff
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +0100809with_v4l
Alexandre Julliardabf50482008-10-31 12:56:53 +0100810with_xcomposite
811with_xcursor
812with_xinerama
813with_xinput
Alexandre Julliard77e05ce2011-04-13 18:51:50 +0200814with_xinput2
Alexandre Julliardabf50482008-10-31 12:56:53 +0100815with_xml
816with_xrandr
817with_xrender
818with_xshape
Alexandre Julliardabf50482008-10-31 12:56:53 +0100819with_xslt
820with_xxf86vm
Alexandre Julliardba6a41a2011-02-18 13:07:27 +0100821with_zlib
Alexandre Julliardabf50482008-10-31 12:56:53 +0100822with_wine_tools
Alexandre Julliard39a75d32009-08-13 19:45:31 +0200823with_wine64
Eric Pouechbc56c4e2009-08-25 19:33:28 +0200824enable_largefile
Alexandre Julliardabf50482008-10-31 12:56:53 +0100825with_x
826'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200827 ac_precious_vars='build_alias
828host_alias
829target_alias
830CC
831CFLAGS
832LDFLAGS
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100833LIBS
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200834CPPFLAGS
835CXX
836CXXFLAGS
837CCC
Alexandre Julliard40664c02009-02-11 20:40:58 +0100838CPP
839XMKMF'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200840
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000841
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000842# Initialize some variables set by options.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000843ac_init_help=
844ac_init_version=false
Alexandre Julliardabf50482008-10-31 12:56:53 +0100845ac_unrecognized_opts=
846ac_unrecognized_sep=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000847# The variables have the same names as the options, with
848# dashes changed to underlines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000849cache_file=/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000850exec_prefix=NONE
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000851no_create=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000852no_recursion=
853prefix=NONE
854program_prefix=NONE
855program_suffix=NONE
856program_transform_name=s,x,x,
857silent=
858site=
859srcdir=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000860verbose=
861x_includes=NONE
862x_libraries=NONE
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000863
864# Installation directory options.
865# These are left unexpanded so users can "make install exec_prefix=/foo"
866# and all the variables that are supposed to be based on exec_prefix
867# by default will actually change.
868# Use braces instead of parens because sh, perl, etc. also accept them.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200869# (The list follows the same order as the GNU Coding Standards.)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000870bindir='${exec_prefix}/bin'
871sbindir='${exec_prefix}/sbin'
872libexecdir='${exec_prefix}/libexec'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200873datarootdir='${prefix}/share'
874datadir='${datarootdir}'
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000875sysconfdir='${prefix}/etc'
876sharedstatedir='${prefix}/com'
877localstatedir='${prefix}/var'
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000878includedir='${prefix}/include'
879oldincludedir='/usr/include'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200880docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
881infodir='${datarootdir}/info'
882htmldir='${docdir}'
883dvidir='${docdir}'
884pdfdir='${docdir}'
885psdir='${docdir}'
886libdir='${exec_prefix}/lib'
887localedir='${datarootdir}/locale'
888mandir='${datarootdir}/man'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000889
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000890ac_prev=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200891ac_dashdash=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000892for ac_option
893do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000894 # If the previous option needs an argument, assign it.
895 if test -n "$ac_prev"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200896 eval $ac_prev=\$ac_option
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000897 ac_prev=
898 continue
899 fi
900
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200901 case $ac_option in
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200902 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 *=) ac_optarg= ;;
904 *) ac_optarg=yes ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200905 esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000906
907 # Accept the important Cygnus configure options, so we can diagnose typos.
908
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200909 case $ac_dashdash$ac_option in
910 --)
911 ac_dashdash=yes ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000912
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000913 -bindir | --bindir | --bindi | --bind | --bin | --bi)
914 ac_prev=bindir ;;
915 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000916 bindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000917
918 -build | --build | --buil | --bui | --bu)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000919 ac_prev=build_alias ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000920 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000921 build_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000922
923 -cache-file | --cache-file | --cache-fil | --cache-fi \
924 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
925 ac_prev=cache_file ;;
926 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
927 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000928 cache_file=$ac_optarg ;;
929
930 --config-cache | -C)
931 cache_file=config.cache ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000932
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200933 -datadir | --datadir | --datadi | --datad)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000934 ac_prev=datadir ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200935 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000936 datadir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000937
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200938 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
939 | --dataroo | --dataro | --datar)
940 ac_prev=datarootdir ;;
941 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
942 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
943 datarootdir=$ac_optarg ;;
944
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000945 -disable-* | --disable-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +0100946 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000947 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +0100948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200949 as_fn_error $? "invalid feature name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +0100950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
953 *"
954"enable_$ac_useropt"
955"*) ;;
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
958 esac
959 eval enable_$ac_useropt=no ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200960
961 -docdir | --docdir | --docdi | --doc | --do)
962 ac_prev=docdir ;;
963 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964 docdir=$ac_optarg ;;
965
966 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967 ac_prev=dvidir ;;
968 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969 dvidir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000970
971 -enable-* | --enable-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +0100972 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000973 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +0100974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200975 as_fn_error $? "invalid feature name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +0100976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
979 *"
980"enable_$ac_useropt"
981"*) ;;
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
984 esac
985 eval enable_$ac_useropt=\$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000986
987 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989 | --exec | --exe | --ex)
990 ac_prev=exec_prefix ;;
991 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993 | --exec=* | --exe=* | --ex=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000994 exec_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000995
996 -gas | --gas | --ga | --g)
997 # Obsolete; use --with-gas.
998 with_gas=yes ;;
999
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001000 -help | --help | --hel | --he | -h)
1001 ac_init_help=long ;;
1002 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003 ac_init_help=recursive ;;
1004 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005 ac_init_help=short ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001006
1007 -host | --host | --hos | --ho)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001008 ac_prev=host_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001009 -host=* | --host=* | --hos=* | --ho=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001010 host_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001011
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001012 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013 ac_prev=htmldir ;;
1014 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015 | --ht=*)
1016 htmldir=$ac_optarg ;;
1017
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001018 -includedir | --includedir | --includedi | --included | --include \
1019 | --includ | --inclu | --incl | --inc)
1020 ac_prev=includedir ;;
1021 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022 | --includ=* | --inclu=* | --incl=* | --inc=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001023 includedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001024
1025 -infodir | --infodir | --infodi | --infod | --info | --inf)
1026 ac_prev=infodir ;;
1027 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001028 infodir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001029
1030 -libdir | --libdir | --libdi | --libd)
1031 ac_prev=libdir ;;
1032 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001033 libdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001034
1035 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036 | --libexe | --libex | --libe)
1037 ac_prev=libexecdir ;;
1038 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039 | --libexe=* | --libex=* | --libe=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001040 libexecdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001041
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001042 -localedir | --localedir | --localedi | --localed | --locale)
1043 ac_prev=localedir ;;
1044 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045 localedir=$ac_optarg ;;
1046
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001047 -localstatedir | --localstatedir | --localstatedi | --localstated \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001048 | --localstate | --localstat | --localsta | --localst | --locals)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001049 ac_prev=localstatedir ;;
1050 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001051 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001052 localstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001053
1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055 ac_prev=mandir ;;
1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001057 mandir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001058
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001059 -nfp | --nfp | --nf)
1060 # Obsolete; use --without-fp.
1061 with_fp=no ;;
1062
1063 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001064 | --no-cr | --no-c | -n)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001065 no_create=yes ;;
1066
1067 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069 no_recursion=yes ;;
1070
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001071 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073 | --oldin | --oldi | --old | --ol | --o)
1074 ac_prev=oldincludedir ;;
1075 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001078 oldincludedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001079
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001080 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081 ac_prev=prefix ;;
1082 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001083 prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001084
1085 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086 | --program-pre | --program-pr | --program-p)
1087 ac_prev=program_prefix ;;
1088 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001090 program_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001091
1092 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093 | --program-suf | --program-su | --program-s)
1094 ac_prev=program_suffix ;;
1095 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001097 program_suffix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001098
1099 -program-transform-name | --program-transform-name \
1100 | --program-transform-nam | --program-transform-na \
1101 | --program-transform-n | --program-transform- \
1102 | --program-transform | --program-transfor \
1103 | --program-transfo | --program-transf \
1104 | --program-trans | --program-tran \
1105 | --progr-tra | --program-tr | --program-t)
1106 ac_prev=program_transform_name ;;
1107 -program-transform-name=* | --program-transform-name=* \
1108 | --program-transform-nam=* | --program-transform-na=* \
1109 | --program-transform-n=* | --program-transform-=* \
1110 | --program-transform=* | --program-transfor=* \
1111 | --program-transfo=* | --program-transf=* \
1112 | --program-trans=* | --program-tran=* \
1113 | --progr-tra=* | --program-tr=* | --program-t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001114 program_transform_name=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001115
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001116 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117 ac_prev=pdfdir ;;
1118 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119 pdfdir=$ac_optarg ;;
1120
1121 -psdir | --psdir | --psdi | --psd | --ps)
1122 ac_prev=psdir ;;
1123 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124 psdir=$ac_optarg ;;
1125
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127 | -silent | --silent | --silen | --sile | --sil)
1128 silent=yes ;;
1129
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001130 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131 ac_prev=sbindir ;;
1132 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133 | --sbi=* | --sb=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001134 sbindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001135
1136 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138 | --sharedst | --shareds | --shared | --share | --shar \
1139 | --sha | --sh)
1140 ac_prev=sharedstatedir ;;
1141 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144 | --sha=* | --sh=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001145 sharedstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001146
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001147 -site | --site | --sit)
1148 ac_prev=site ;;
1149 -site=* | --site=* | --sit=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001150 site=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001151
1152 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153 ac_prev=srcdir ;;
1154 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001155 srcdir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001156
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001157 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158 | --syscon | --sysco | --sysc | --sys | --sy)
1159 ac_prev=sysconfdir ;;
1160 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001162 sysconfdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001163
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001164 -target | --target | --targe | --targ | --tar | --ta | --t)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001165 ac_prev=target_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001166 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001167 target_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001168
1169 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170 verbose=yes ;;
1171
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001172 -version | --version | --versio | --versi | --vers | -V)
1173 ac_init_version=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001174
1175 -with-* | --with-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001176 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001177 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001179 as_fn_error $? "invalid package name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +01001180 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1183 *"
1184"with_$ac_useropt"
1185"*) ;;
1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187 ac_unrecognized_sep=', ';;
1188 esac
1189 eval with_$ac_useropt=\$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001190
1191 -without-* | --without-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001192 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001193 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001195 as_fn_error $? "invalid package name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +01001196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1199 *"
1200"with_$ac_useropt"
1201"*) ;;
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1204 esac
1205 eval with_$ac_useropt=no ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001206
1207 --x)
1208 # Obsolete; use --with-x.
1209 with_x=yes ;;
1210
1211 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212 | --x-incl | --x-inc | --x-in | --x-i)
1213 ac_prev=x_includes ;;
1214 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001216 x_includes=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001217
1218 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220 ac_prev=x_libraries ;;
1221 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001223 x_libraries=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001224
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001225 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1226Try \`$0 --help' for more information"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001227 ;;
1228
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001229 *=*)
1230 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 # Reject names that are not valid shell variable names.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001232 case $ac_envvar in #(
1233 '' | [0-9]* | *[!_$as_cr_alnum]* )
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001234 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001235 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001236 eval $ac_envvar=\$ac_optarg
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001237 export $ac_envvar ;;
1238
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001239 *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001240 # FIXME: should be removed in autoconf 3.0.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001241 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Alexandre Julliardabf50482008-10-31 12:56:53 +01001243 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Alexandre Julliard9797da42011-04-27 17:37:43 +02001244 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001245 ;;
1246
1247 esac
1248done
1249
1250if test -n "$ac_prev"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001251 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001252 as_fn_error $? "missing argument to $ac_option"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001253fi
1254
Alexandre Julliardabf50482008-10-31 12:56:53 +01001255if test -n "$ac_unrecognized_opts"; then
1256 case $enable_option_checking in
1257 no) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001258 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Alexandre Julliardabf50482008-10-31 12:56:53 +01001259 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1260 esac
1261fi
1262
1263# Check all directory arguments for consistency.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001264for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265 datadir sysconfdir sharedstatedir localstatedir includedir \
1266 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267 libdir localedir mandir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001268do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001269 eval ac_val=\$$ac_var
Alexandre Julliardabf50482008-10-31 12:56:53 +01001270 # Remove trailing slashes.
1271 case $ac_val in
1272 */ )
1273 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1274 eval $ac_var=\$ac_val;;
1275 esac
1276 # Be sure to have absolute directory names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001277 case $ac_val in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001278 [\\/$]* | ?:[\\/]* ) continue;;
1279 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001280 esac
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001281 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001282done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001283
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001284# There might be people who depend on the old broken behavior: `$host'
1285# used to hold the argument of --host etc.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001286# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001287build=$build_alias
1288host=$host_alias
1289target=$target_alias
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001290
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001291# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001292if test "x$host_alias" != x; then
1293 if test "x$build_alias" = x; then
1294 cross_compiling=maybe
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001295 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1296 If a cross compiler is detected then cross compile mode will be used" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001297 elif test "x$build_alias" != "x$host_alias"; then
1298 cross_compiling=yes
1299 fi
1300fi
1301
1302ac_tool_prefix=
1303test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304
1305test "$silent" = yes && exec 6>/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001306
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001307
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001308ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309ac_ls_di=`ls -di .` &&
1310ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001311 as_fn_error $? "working directory cannot be determined"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001312test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001313 as_fn_error $? "pwd does not report name of working directory"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001314
1315
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001316# Find the source files, if location was not specified.
1317if test -z "$srcdir"; then
1318 ac_srcdir_defaulted=yes
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001319 # Try the directory containing this script, then the parent directory.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001320 ac_confdir=`$as_dirname -- "$as_myself" ||
1321$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322 X"$as_myself" : 'X\(//\)[^/]' \| \
1323 X"$as_myself" : 'X\(//\)$' \| \
1324 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325$as_echo X"$as_myself" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\/\)[^/].*/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\/\)$/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\).*/{
1339 s//\1/
1340 q
1341 }
1342 s/.*/./; q'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001343 srcdir=$ac_confdir
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001344 if test ! -r "$srcdir/$ac_unique_file"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001345 srcdir=..
1346 fi
1347else
1348 ac_srcdir_defaulted=no
1349fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001350if test ! -r "$srcdir/$ac_unique_file"; then
1351 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001352 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001353fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001354ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355ac_abs_confdir=`(
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001356 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001357 pwd)`
1358# When building in place, set srcdir=.
1359if test "$ac_abs_confdir" = "$ac_pwd"; then
1360 srcdir=.
1361fi
1362# Remove unnecessary trailing slashes from srcdir.
1363# Double slashes in file names in object file debugging info
1364# mess up M-x gdb in Emacs.
1365case $srcdir in
1366*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367esac
1368for ac_var in $ac_precious_vars; do
1369 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1370 eval ac_env_${ac_var}_value=\$${ac_var}
1371 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001374
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001375#
1376# Report the --help message.
1377#
1378if test "$ac_init_help" = "long"; then
1379 # Omit some internal or obsolete options to make the list less imposing.
1380 # This message is too long to be a string in the A/UX 3.1 sh.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001381 cat <<_ACEOF
Alexandre Julliard71ababe2012-03-07 17:11:48 +01001382\`configure' configures Wine 1.4 to adapt to many kinds of systems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001383
1384Usage: $0 [OPTION]... [VAR=VALUE]...
1385
1386To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387VAR=VALUE. See below for descriptions of some of the useful variables.
1388
1389Defaults for the options are specified in brackets.
1390
1391Configuration:
1392 -h, --help display this help and exit
1393 --help=short display options specific to this package
1394 --help=recursive display the short help of all the included packages
1395 -V, --version display version information and exit
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001396 -q, --quiet, --silent do not print \`checking ...' messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001397 --cache-file=FILE cache test results in FILE [disabled]
1398 -C, --config-cache alias for \`--cache-file=config.cache'
1399 -n, --no-create do not create output files
1400 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1401
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001402Installation directories:
1403 --prefix=PREFIX install architecture-independent files in PREFIX
Alexandre Julliardabf50482008-10-31 12:56:53 +01001404 [$ac_default_prefix]
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001405 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Alexandre Julliardabf50482008-10-31 12:56:53 +01001406 [PREFIX]
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001407
1408By default, \`make install' will install all the files in
1409\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1410an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1411for instance \`--prefix=\$HOME'.
1412
1413For better control, use the options below.
1414
1415Fine tuning of the installation directories:
Alexandre Julliardabf50482008-10-31 12:56:53 +01001416 --bindir=DIR user executables [EPREFIX/bin]
1417 --sbindir=DIR system admin executables [EPREFIX/sbin]
1418 --libexecdir=DIR program executables [EPREFIX/libexec]
1419 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1420 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1421 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1422 --libdir=DIR object code libraries [EPREFIX/lib]
1423 --includedir=DIR C header files [PREFIX/include]
1424 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1425 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1426 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1427 --infodir=DIR info documentation [DATAROOTDIR/info]
1428 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1429 --mandir=DIR man documentation [DATAROOTDIR/man]
1430 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1431 --htmldir=DIR html documentation [DOCDIR]
1432 --dvidir=DIR dvi documentation [DOCDIR]
1433 --pdfdir=DIR pdf documentation [DOCDIR]
1434 --psdir=DIR ps documentation [DOCDIR]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001435_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001436
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001437 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001438
1439X features:
1440 --x-includes=DIR X include files are in DIR
1441 --x-libraries=DIR X library files are in DIR
1442
1443System types:
1444 --build=BUILD configure for building on BUILD [guessed]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001445 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001446_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001447fi
1448
1449if test -n "$ac_init_help"; then
1450 case $ac_init_help in
Alexandre Julliard71ababe2012-03-07 17:11:48 +01001451 short | recursive ) echo "Configuration of Wine 1.4:";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001452 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001453 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001454
1455Optional Features:
Alexandre Julliardabf50482008-10-31 12:56:53 +01001456 --disable-option-checking ignore unrecognized --enable/--with options
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001457 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1458 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Eric Pouech53fa0d52004-02-05 01:27:38 +00001459 --disable-win16 do not include Win16 support
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001460 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1461 binaries)
Alexandre Julliard35078f42008-11-21 10:16:12 +01001462 --disable-tests do not build the regression tests
Alexandre Julliard9d037222008-03-20 13:00:12 +01001463 --enable-maintainer-mode
1464 enable maintainer-specific build rules
Eric Pouechbc56c4e2009-08-25 19:33:28 +02001465 --disable-largefile omit support for large files
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001466
1467Optional Packages:
1468 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1469 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001470 --without-alsa do not use the Alsa sound support
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001471 --without-capi do not use CAPI (ISDN support)
1472 --without-cms do not use CMS (color management support)
1473 --without-coreaudio do not use the CoreAudio sound support
1474 --without-cups do not use CUPS
1475 --without-curses do not use (n)curses
Alexandre Julliarde45d1242011-12-20 10:36:35 +01001476 --without-dbus do not use DBus (dynamic device support)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001477 --without-fontconfig do not use fontconfig
Alexandre Julliarda20c0e12008-05-21 14:55:53 +02001478 --without-freetype do not use the FreeType library
Alexandre Julliard268976b2011-10-22 15:23:14 +02001479 --without-gettext do not use gettext
Alexandre Julliard9159cfe2011-10-22 20:46:36 +02001480 --with-gettextpo use the GetTextPO library to rebuild po files
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001481 --without-gphoto do not use gphoto (Digital Camera support)
Alexandre Julliardad798732008-05-01 13:29:02 +02001482 --without-glu do not use the GLU library
Henri Verbeet874c9ef2008-09-22 22:13:19 +02001483 --without-gnutls do not use GnuTLS (schannel support)
Alexandre Julliard6ce32e02009-08-19 15:53:04 +02001484 --without-gsm do not use libgsm (GSM 06.10 codec support)
Aric Stewart2914d652010-10-20 13:55:16 -05001485 --without-gstreamer do not use GStreamer (codecs support)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001486 --without-hal do not use HAL (dynamic device support)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001487 --without-jpeg do not use JPEG
1488 --without-ldap do not use LDAP
Aric Stewartdb71d7c2009-08-19 09:37:48 -05001489 --without-mpg123 do not use the mpg123 library
Chris Robinson862965f2009-08-25 03:26:35 -07001490 --without-openal do not use OpenAL
Peter Urbanec65c84d72010-12-02 23:41:48 +11001491 --without-opencl do not use OpenCL
Eric Pouech53fa0d52004-02-05 01:27:38 +00001492 --without-opengl do not use OpenGL
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001493 --without-openssl do not use OpenSSL
1494 --without-oss do not use the OSS sound support
1495 --without-png do not use PNG
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01001496 --without-pthread do not use the pthread library
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001497 --without-sane do not use SANE (scanner support)
Vincent Povirk73cd5692010-03-08 17:07:29 -06001498 --without-tiff do not use TIFF
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01001499 --without-v4l do not use v4l1 (v4l support)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001500 --without-xcomposite do not use the Xcomposite extension
1501 --without-xcursor do not use the Xcursor extension
1502 --without-xinerama do not use Xinerama (multi-monitor support)
1503 --without-xinput do not use the Xinput extension
Alexandre Julliard77e05ce2011-04-13 18:51:50 +02001504 --without-xinput2 do not use the Xinput 2 extension
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001505 --without-xml do not use XML
1506 --without-xrandr do not use Xrandr (resolution changes)
1507 --without-xrender do not use the Xrender extension
1508 --without-xshape do not use the Xshape extension
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001509 --without-xslt do not use XSLT
Francois Gougeta49beb42008-06-26 14:02:17 +02001510 --without-xxf86vm do not use XFree video mode extension
Alexandre Julliardba6a41a2011-02-18 13:07:27 +01001511 --without-zlib do not use Zlib (data compression)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001512 --with-wine-tools=DIR use Wine tools from directory DIR
Alexandre Julliard39a75d32009-08-13 19:45:31 +02001513 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001514 --with-x use the X Window System
1515
1516Some influential environment variables:
Eric Pouech53fa0d52004-02-05 01:27:38 +00001517 CC C compiler command
1518 CFLAGS C compiler flags
1519 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1520 nonstandard directory <lib dir>
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01001521 LIBS libraries to pass to the linker, e.g. -l<library>
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001522 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001523 you have headers in a nonstandard directory <include dir>
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00001524 CXX C++ compiler command
1525 CXXFLAGS C++ compiler flags
Eric Pouech53fa0d52004-02-05 01:27:38 +00001526 CPP C preprocessor
Alexandre Julliard40664c02009-02-11 20:40:58 +01001527 XMKMF Path to xmkmf, Makefile generator for X Window System
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001528
1529Use these variables to override the choices made by `configure' or to help
1530it to find libraries and programs with nonstandard names/locations.
1531
Alexandre Julliard875927f2004-01-02 01:55:29 +00001532Report bugs to <wine-devel@winehq.org>.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001533Wine home page: <http://www.winehq.org>.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001534_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001535ac_status=$?
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001536fi
1537
1538if test "$ac_init_help" = "recursive"; then
1539 # If there are subdirs, report their specific --help.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001540 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Alexandre Julliardabf50482008-10-31 12:56:53 +01001541 test -d "$ac_dir" ||
1542 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1543 continue
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001544 ac_builddir=.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001545
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001546case "$ac_dir" in
1547.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001549 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001550 # A ".." for each directory in $ac_dir_suffix.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001551 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001552 case $ac_top_builddir_sub in
1553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1555 esac ;;
1556esac
1557ac_abs_top_builddir=$ac_pwd
1558ac_abs_builddir=$ac_pwd$ac_dir_suffix
1559# for backward compatibility:
1560ac_top_builddir=$ac_top_build_prefix
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001561
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001562case $srcdir in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001563 .) # We are building in place.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001564 ac_srcdir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001565 ac_top_srcdir=$ac_top_builddir_sub
1566 ac_abs_top_srcdir=$ac_pwd ;;
1567 [\\/]* | ?:[\\/]* ) # Absolute name.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001568 ac_srcdir=$srcdir$ac_dir_suffix;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001569 ac_top_srcdir=$srcdir
1570 ac_abs_top_srcdir=$srcdir ;;
1571 *) # Relative name.
1572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1573 ac_top_srcdir=$ac_top_build_prefix$srcdir
1574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001575esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001576ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Alexandre Julliard875927f2004-01-02 01:55:29 +00001577
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001578 cd "$ac_dir" || { ac_status=$?; continue; }
1579 # Check for guested configure.
Jeremy White0ebeb532006-06-20 13:18:41 +02001580 if test -f "$ac_srcdir/configure.gnu"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001581 echo &&
Jeremy White0ebeb532006-06-20 13:18:41 +02001582 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1583 elif test -f "$ac_srcdir/configure"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001584 echo &&
Jeremy White0ebeb532006-06-20 13:18:41 +02001585 $SHELL "$ac_srcdir/configure" --help=recursive
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001586 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01001587 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001588 fi || ac_status=$?
1589 cd "$ac_pwd" || { ac_status=$?; break; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001590 done
1591fi
1592
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001593test -n "$ac_init_help" && exit $ac_status
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001594if $ac_init_version; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001595 cat <<\_ACEOF
Alexandre Julliard71ababe2012-03-07 17:11:48 +01001596Wine configure 1.4
Alexandre Julliard9797da42011-04-27 17:37:43 +02001597generated by GNU Autoconf 2.68
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001598
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001599Copyright (C) 2010 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001600This configure script is free software; the Free Software Foundation
1601gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001602_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001603 exit
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001604fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001605
1606## ------------------------ ##
1607## Autoconf initialization. ##
1608## ------------------------ ##
1609
1610# ac_fn_c_try_compile LINENO
1611# --------------------------
1612# Try to compile conftest.$ac_ext, and return whether this succeeded.
1613ac_fn_c_try_compile ()
1614{
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 rm -f conftest.$ac_objext
1617 if { { ac_try="$ac_compile"
1618case "(($ac_try" in
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1621esac
1622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623$as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_compile") 2>conftest.err
1625 ac_status=$?
1626 if test -s conftest.err; then
1627 grep -v '^ *+' conftest.err >conftest.er1
1628 cat conftest.er1 >&5
1629 mv -f conftest.er1 conftest.err
1630 fi
1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; } && {
1633 test -z "$ac_c_werror_flag" ||
1634 test ! -s conftest.err
1635 } && test -s conftest.$ac_objext; then :
1636 ac_retval=0
1637else
1638 $as_echo "$as_me: failed program was:" >&5
1639sed 's/^/| /' conftest.$ac_ext >&5
1640
1641 ac_retval=1
1642fi
Alexandre Julliard9797da42011-04-27 17:37:43 +02001643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001644 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001645
1646} # ac_fn_c_try_compile
1647
1648# ac_fn_cxx_try_compile LINENO
1649# ----------------------------
1650# Try to compile conftest.$ac_ext, and return whether this succeeded.
1651ac_fn_cxx_try_compile ()
1652{
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 rm -f conftest.$ac_objext
1655 if { { ac_try="$ac_compile"
1656case "(($ac_try" in
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1659esac
1660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661$as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_compile") 2>conftest.err
1663 ac_status=$?
1664 if test -s conftest.err; then
1665 grep -v '^ *+' conftest.err >conftest.er1
1666 cat conftest.er1 >&5
1667 mv -f conftest.er1 conftest.err
1668 fi
1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } && {
1671 test -z "$ac_cxx_werror_flag" ||
1672 test ! -s conftest.err
1673 } && test -s conftest.$ac_objext; then :
1674 ac_retval=0
1675else
1676 $as_echo "$as_me: failed program was:" >&5
1677sed 's/^/| /' conftest.$ac_ext >&5
1678
1679 ac_retval=1
1680fi
Alexandre Julliard9797da42011-04-27 17:37:43 +02001681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001682 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001683
1684} # ac_fn_cxx_try_compile
1685
1686# ac_fn_c_try_link LINENO
1687# -----------------------
1688# Try to link conftest.$ac_ext, and return whether this succeeded.
1689ac_fn_c_try_link ()
1690{
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 rm -f conftest.$ac_objext conftest$ac_exeext
1693 if { { ac_try="$ac_link"
1694case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699$as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_link") 2>conftest.err
1701 ac_status=$?
1702 if test -s conftest.err; then
1703 grep -v '^ *+' conftest.err >conftest.er1
1704 cat conftest.er1 >&5
1705 mv -f conftest.er1 conftest.err
1706 fi
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && {
1709 test -z "$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1711 } && test -s conftest$ac_exeext && {
1712 test "$cross_compiling" = yes ||
1713 $as_test_x conftest$ac_exeext
1714 }; then :
1715 ac_retval=0
1716else
1717 $as_echo "$as_me: failed program was:" >&5
1718sed 's/^/| /' conftest.$ac_ext >&5
1719
1720 ac_retval=1
1721fi
1722 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1723 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1724 # interfere with the next link command; also delete a directory that is
1725 # left behind by Apple's compiler. We do this before executing the actions.
1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Alexandre Julliard9797da42011-04-27 17:37:43 +02001727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001728 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001729
1730} # ac_fn_c_try_link
1731
1732# ac_fn_c_try_cpp LINENO
1733# ----------------------
1734# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1735ac_fn_c_try_cpp ()
1736{
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 if { { ac_try="$ac_cpp conftest.$ac_ext"
1739case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742esac
1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744$as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1746 ac_status=$?
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1751 fi
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001753 test $ac_status = 0; } > conftest.i && {
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1755 test ! -s conftest.err
1756 }; then :
1757 ac_retval=0
1758else
1759 $as_echo "$as_me: failed program was:" >&5
1760sed 's/^/| /' conftest.$ac_ext >&5
1761
1762 ac_retval=1
1763fi
Alexandre Julliard9797da42011-04-27 17:37:43 +02001764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001765 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001766
1767} # ac_fn_c_try_cpp
1768
1769# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1770# -------------------------------------------------------
1771# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1772# the include files in INCLUDES and setting the cache variable VAR
1773# accordingly.
1774ac_fn_c_check_header_mongrel ()
1775{
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Alexandre Julliard9797da42011-04-27 17:37:43 +02001777 if eval \${$3+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779$as_echo_n "checking for $2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02001780if eval \${$3+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001781 $as_echo_n "(cached) " >&6
1782fi
1783eval ac_res=\$$3
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1785$as_echo "$ac_res" >&6; }
1786else
1787 # Is the header compilable?
1788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1789$as_echo_n "checking $2 usability... " >&6; }
1790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791/* end confdefs.h. */
1792$4
1793#include <$2>
1794_ACEOF
1795if ac_fn_c_try_compile "$LINENO"; then :
1796 ac_header_compiler=yes
1797else
1798 ac_header_compiler=no
1799fi
1800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1802$as_echo "$ac_header_compiler" >&6; }
1803
1804# Is the header present?
1805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1806$as_echo_n "checking $2 presence... " >&6; }
1807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808/* end confdefs.h. */
1809#include <$2>
1810_ACEOF
1811if ac_fn_c_try_cpp "$LINENO"; then :
1812 ac_header_preproc=yes
1813else
1814 ac_header_preproc=no
1815fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001816rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1818$as_echo "$ac_header_preproc" >&6; }
1819
1820# So? What about this header?
1821case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1822 yes:no: )
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1824$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1826$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1827 ;;
1828 no:yes:* )
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1830$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1832$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1834$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1836$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1838$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001839( $as_echo "## ------------------------------------ ##
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001840## Report this to wine-devel@winehq.org ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001841## ------------------------------------ ##"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001842 ) | sed "s/^/$as_me: WARNING: /" >&2
1843 ;;
1844esac
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846$as_echo_n "checking for $2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02001847if eval \${$3+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001848 $as_echo_n "(cached) " >&6
1849else
1850 eval "$3=\$ac_header_compiler"
1851fi
1852eval ac_res=\$$3
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854$as_echo "$ac_res" >&6; }
1855fi
Alexandre Julliard9797da42011-04-27 17:37:43 +02001856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001857
1858} # ac_fn_c_check_header_mongrel
1859
1860# ac_fn_c_try_run LINENO
1861# ----------------------
1862# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1863# that executables *can* be run.
1864ac_fn_c_try_run ()
1865{
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 if { { ac_try="$ac_link"
1868case "(($ac_try" in
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1871esac
1872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873$as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_link") 2>&5
1875 ac_status=$?
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1878 { { case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881esac
1882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883$as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_try") 2>&5
1885 ac_status=$?
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; }; }; then :
1888 ac_retval=0
1889else
1890 $as_echo "$as_me: program exited with status $ac_status" >&5
1891 $as_echo "$as_me: failed program was:" >&5
1892sed 's/^/| /' conftest.$ac_ext >&5
1893
1894 ac_retval=$ac_status
1895fi
1896 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Alexandre Julliard9797da42011-04-27 17:37:43 +02001897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001898 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001899
1900} # ac_fn_c_try_run
1901
1902# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1903# -------------------------------------------------------
1904# Tests whether HEADER exists and can be compiled using the include files in
1905# INCLUDES, setting the cache variable VAR accordingly.
1906ac_fn_c_check_header_compile ()
1907{
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910$as_echo_n "checking for $2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02001911if eval \${$3+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001912 $as_echo_n "(cached) " >&6
1913else
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915/* end confdefs.h. */
1916$4
1917#include <$2>
1918_ACEOF
1919if ac_fn_c_try_compile "$LINENO"; then :
1920 eval "$3=yes"
1921else
1922 eval "$3=no"
1923fi
1924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925fi
1926eval ac_res=\$$3
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928$as_echo "$ac_res" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02001929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001930
1931} # ac_fn_c_check_header_compile
1932
1933# ac_fn_c_check_func LINENO FUNC VAR
1934# ----------------------------------
1935# Tests whether FUNC exists, setting the cache variable VAR accordingly
1936ac_fn_c_check_func ()
1937{
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940$as_echo_n "checking for $2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02001941if eval \${$3+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001942 $as_echo_n "(cached) " >&6
1943else
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945/* end confdefs.h. */
1946/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1948#define $2 innocuous_$2
1949
1950/* System header to define __stub macros and hopefully few prototypes,
1951 which can conflict with char $2 (); below.
1952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1953 <limits.h> exists even on freestanding compilers. */
1954
1955#ifdef __STDC__
1956# include <limits.h>
1957#else
1958# include <assert.h>
1959#endif
1960
1961#undef $2
1962
1963/* Override any GCC internal prototype to avoid an error.
1964 Use char because int might match the return type of a GCC
1965 builtin and then its argument prototype would still apply. */
1966#ifdef __cplusplus
1967extern "C"
1968#endif
1969char $2 ();
1970/* The GNU C library defines this for functions which it implements
1971 to always fail with ENOSYS. Some functions are actually named
1972 something starting with __ and the normal name is an alias. */
1973#if defined __stub_$2 || defined __stub___$2
1974choke me
1975#endif
1976
1977int
1978main ()
1979{
1980return $2 ();
1981 ;
1982 return 0;
1983}
1984_ACEOF
1985if ac_fn_c_try_link "$LINENO"; then :
1986 eval "$3=yes"
1987else
1988 eval "$3=no"
1989fi
1990rm -f core conftest.err conftest.$ac_objext \
1991 conftest$ac_exeext conftest.$ac_ext
1992fi
1993eval ac_res=\$$3
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995$as_echo "$ac_res" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02001996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001997
1998} # ac_fn_c_check_func
1999
2000# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2001# ----------------------------------------------------
2002# Tries to find if the field MEMBER exists in type AGGR, after including
2003# INCLUDES, setting cache variable VAR accordingly.
2004ac_fn_c_check_member ()
2005{
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2008$as_echo_n "checking for $2.$3... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002009if eval \${$4+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002010 $as_echo_n "(cached) " >&6
2011else
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013/* end confdefs.h. */
2014$5
2015int
2016main ()
2017{
2018static $2 ac_aggr;
2019if (ac_aggr.$3)
2020return 0;
2021 ;
2022 return 0;
2023}
2024_ACEOF
2025if ac_fn_c_try_compile "$LINENO"; then :
2026 eval "$4=yes"
2027else
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029/* end confdefs.h. */
2030$5
2031int
2032main ()
2033{
2034static $2 ac_aggr;
2035if (sizeof ac_aggr.$3)
2036return 0;
2037 ;
2038 return 0;
2039}
2040_ACEOF
2041if ac_fn_c_try_compile "$LINENO"; then :
2042 eval "$4=yes"
2043else
2044 eval "$4=no"
2045fi
2046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047fi
2048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049fi
2050eval ac_res=\$$4
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052$as_echo "$ac_res" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002054
2055} # ac_fn_c_check_member
2056
2057# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2058# -------------------------------------------
2059# Tests whether TYPE exists after having included INCLUDES, setting cache
2060# variable VAR accordingly.
2061ac_fn_c_check_type ()
2062{
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065$as_echo_n "checking for $2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002066if eval \${$3+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002067 $as_echo_n "(cached) " >&6
2068else
2069 eval "$3=no"
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071/* end confdefs.h. */
2072$4
2073int
2074main ()
2075{
2076if (sizeof ($2))
2077 return 0;
2078 ;
2079 return 0;
2080}
2081_ACEOF
2082if ac_fn_c_try_compile "$LINENO"; then :
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084/* end confdefs.h. */
2085$4
2086int
2087main ()
2088{
2089if (sizeof (($2)))
2090 return 0;
2091 ;
2092 return 0;
2093}
2094_ACEOF
2095if ac_fn_c_try_compile "$LINENO"; then :
2096
2097else
2098 eval "$3=yes"
2099fi
2100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101fi
2102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103fi
2104eval ac_res=\$$3
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106$as_echo "$ac_res" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002108
2109} # ac_fn_c_check_type
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002110cat >config.log <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002111This file contains any messages produced by compilers while
2112running configure, to aid debugging if configure makes a mistake.
2113
Alexandre Julliard71ababe2012-03-07 17:11:48 +01002114It was created by Wine $as_me 1.4, which was
Alexandre Julliard9797da42011-04-27 17:37:43 +02002115generated by GNU Autoconf 2.68. Invocation command line was
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002116
2117 $ $0 $@
2118
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002119_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002120exec 5>>config.log
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002121{
2122cat <<_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002123## --------- ##
2124## Platform. ##
2125## --------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002126
2127hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2128uname -m = `(uname -m) 2>/dev/null || echo unknown`
2129uname -r = `(uname -r) 2>/dev/null || echo unknown`
2130uname -s = `(uname -s) 2>/dev/null || echo unknown`
2131uname -v = `(uname -v) 2>/dev/null || echo unknown`
2132
2133/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2134/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2135
2136/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2137/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2138/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002139/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002140/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2141/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2142/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2143
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002144_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002145
2146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147for as_dir in $PATH
2148do
2149 IFS=$as_save_IFS
2150 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002151 $as_echo "PATH: $as_dir"
2152 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002153IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002154
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002155} >&5
2156
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002157cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002158
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002159
2160## ----------- ##
2161## Core tests. ##
2162## ----------- ##
2163
2164_ACEOF
2165
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002166
2167# Keep a trace of the command line.
2168# Strip out --no-create and --no-recursion so they do not pile up.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002169# Strip out --silent because we don't want to record it for future runs.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002170# Also quote any args containing shell meta-characters.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002171# Make two passes to allow for proper duplicate-argument suppression.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002172ac_configure_args=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002173ac_configure_args0=
2174ac_configure_args1=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002175ac_must_keep_next=false
2176for ac_pass in 1 2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002177do
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002178 for ac_arg
2179 do
2180 case $ac_arg in
2181 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2182 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2183 | -silent | --silent | --silen | --sile | --sil)
2184 continue ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002185 *\'*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01002186 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002187 esac
2188 case $ac_pass in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002189 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002190 2)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002191 as_fn_append ac_configure_args1 " '$ac_arg'"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002192 if test $ac_must_keep_next = true; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00002193 ac_must_keep_next=false # Got value, back to normal.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002194 else
Alexandre Julliard875927f2004-01-02 01:55:29 +00002195 case $ac_arg in
2196 *=* | --config-cache | -C | -disable-* | --disable-* \
2197 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2198 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2199 | -with-* | --with-* | -without-* | --without-* | --x)
2200 case "$ac_configure_args0 " in
2201 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2202 esac
2203 ;;
2204 -* ) ac_must_keep_next=true ;;
2205 esac
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002206 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002207 as_fn_append ac_configure_args " '$ac_arg'"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002208 ;;
2209 esac
2210 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002211done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002212{ ac_configure_args0=; unset ac_configure_args0;}
2213{ ac_configure_args1=; unset ac_configure_args1;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002214
2215# When interrupted or exit'd, cleanup temporary files, and complete
2216# config.log. We remove comments because anyway the quotes in there
2217# would cause problems or look ugly.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002218# WARNING: Use '\'' to represent an apostrophe within the trap.
2219# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002220trap 'exit_status=$?
2221 # Save into config.log some information that might help in debugging.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002222 {
2223 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002224
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002225 $as_echo "## ---------------- ##
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002226## Cache variables. ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002227## ---------------- ##"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002228 echo
2229 # The following way of writing the cache mishandles newlines in values,
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002230(
2231 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2232 eval ac_val=\$$ac_var
2233 case $ac_val in #(
2234 *${as_nl}*)
2235 case $ac_var in #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002236 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002237$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002238 esac
2239 case $ac_var in #(
2240 _ | IFS | as_nl) ;; #(
Alexandre Julliardabf50482008-10-31 12:56:53 +01002241 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002242 *) { eval $ac_var=; unset $ac_var;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002243 esac ;;
2244 esac
2245 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002246 (set) 2>&1 |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002247 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2248 *${as_nl}ac_space=\ *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002249 sed -n \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002250 "s/'\''/'\''\\\\'\'''\''/g;
2251 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2252 ;; #(
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002253 *)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002254 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002255 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002256 esac |
2257 sort
2258)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002259 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002260
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002261 $as_echo "## ----------------- ##
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002262## Output variables. ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002263## ----------------- ##"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002264 echo
2265 for ac_var in $ac_subst_vars
2266 do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002267 eval ac_val=\$$ac_var
Jeremy White0ebeb532006-06-20 13:18:41 +02002268 case $ac_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002269 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jeremy White0ebeb532006-06-20 13:18:41 +02002270 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01002271 $as_echo "$ac_var='\''$ac_val'\''"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002272 done | sort
2273 echo
2274
2275 if test -n "$ac_subst_files"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002276 $as_echo "## ------------------- ##
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002277## File substitutions. ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002278## ------------------- ##"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002279 echo
2280 for ac_var in $ac_subst_files
2281 do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002282 eval ac_val=\$$ac_var
Jeremy White0ebeb532006-06-20 13:18:41 +02002283 case $ac_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002284 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jeremy White0ebeb532006-06-20 13:18:41 +02002285 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01002286 $as_echo "$ac_var='\''$ac_val'\''"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002287 done | sort
2288 echo
2289 fi
2290
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002291 if test -s confdefs.h; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002292 $as_echo "## ----------- ##
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002293## confdefs.h. ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002294## ----------- ##"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002295 echo
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002296 cat confdefs.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002297 echo
2298 fi
2299 test "$ac_signal" != 0 &&
Alexandre Julliardabf50482008-10-31 12:56:53 +01002300 $as_echo "$as_me: caught signal $ac_signal"
2301 $as_echo "$as_me: exit $exit_status"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002302 } >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002303 rm -f core *.core core.conftest.* &&
2304 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002305 exit $exit_status
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002306' 0
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002307for ac_signal in 1 2 13 15; do
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002308 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002309done
2310ac_signal=0
2311
2312# confdefs.h avoids OS command line length limits that DEFS can exceed.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002313rm -f -r conftest* confdefs.h
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002314
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002315$as_echo "/* confdefs.h */" > confdefs.h
2316
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002317# Predefined preprocessor variables.
2318
2319cat >>confdefs.h <<_ACEOF
2320#define PACKAGE_NAME "$PACKAGE_NAME"
2321_ACEOF
2322
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002323cat >>confdefs.h <<_ACEOF
2324#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2325_ACEOF
2326
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002327cat >>confdefs.h <<_ACEOF
2328#define PACKAGE_VERSION "$PACKAGE_VERSION"
2329_ACEOF
2330
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002331cat >>confdefs.h <<_ACEOF
2332#define PACKAGE_STRING "$PACKAGE_STRING"
2333_ACEOF
2334
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002335cat >>confdefs.h <<_ACEOF
2336#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2337_ACEOF
2338
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002339cat >>confdefs.h <<_ACEOF
2340#define PACKAGE_URL "$PACKAGE_URL"
2341_ACEOF
2342
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002343
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002344# Let the site file select an alternate cache file if it wants to.
Alexandre Julliardabf50482008-10-31 12:56:53 +01002345# Prefer an explicitly selected file to automatically selected ones.
2346ac_site_file1=NONE
2347ac_site_file2=NONE
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002348if test -n "$CONFIG_SITE"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002349 # We do not want a PATH search for config.site.
2350 case $CONFIG_SITE in #((
2351 -*) ac_site_file1=./$CONFIG_SITE;;
2352 */*) ac_site_file1=$CONFIG_SITE;;
2353 *) ac_site_file1=./$CONFIG_SITE;;
2354 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002355elif test "x$prefix" != xNONE; then
Alexandre Julliardabf50482008-10-31 12:56:53 +01002356 ac_site_file1=$prefix/share/config.site
2357 ac_site_file2=$prefix/etc/config.site
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002358else
Alexandre Julliardabf50482008-10-31 12:56:53 +01002359 ac_site_file1=$ac_default_prefix/share/config.site
2360 ac_site_file2=$ac_default_prefix/etc/config.site
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002361fi
Alexandre Julliardabf50482008-10-31 12:56:53 +01002362for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002363do
Alexandre Julliardabf50482008-10-31 12:56:53 +01002364 test "x$ac_site_file" = xNONE && continue
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01002365 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002366 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002367$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002368 sed 's/^/| /' "$ac_site_file" >&5
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002369 . "$ac_site_file" \
2370 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2371$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2372as_fn_error $? "failed to load site script $ac_site_file
Alexandre Julliard9797da42011-04-27 17:37:43 +02002373See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002374 fi
2375done
2376
2377if test -r "$cache_file"; then
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01002378 # Some versions of bash will fail to source /dev/null (special files
2379 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2380 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002381 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002382$as_echo "$as_me: loading cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002383 case $cache_file in
Jeremy White0ebeb532006-06-20 13:18:41 +02002384 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2385 *) . "./$cache_file";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002386 esac
2387 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002388else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002389 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002390$as_echo "$as_me: creating cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002391 >$cache_file
2392fi
2393
2394# Check that the precious variables saved in the cache have kept the same
2395# value.
2396ac_cache_corrupted=false
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002397for ac_var in $ac_precious_vars; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002398 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2399 eval ac_new_set=\$ac_env_${ac_var}_set
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002400 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2401 eval ac_new_val=\$ac_env_${ac_var}_value
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002402 case $ac_old_set,$ac_new_set in
2403 set,)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002404 { $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 +01002405$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 +00002406 ac_cache_corrupted=: ;;
2407 ,set)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002408 { $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 +01002409$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002410 ac_cache_corrupted=: ;;
2411 ,);;
2412 *)
2413 if test "x$ac_old_val" != "x$ac_new_val"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +01002414 # differences in whitespace do not lead to failure.
2415 ac_old_val_w=`echo x $ac_old_val`
2416 ac_new_val_w=`echo x $ac_new_val`
2417 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002418 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002419$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2420 ac_cache_corrupted=:
2421 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002422 { $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 +01002423$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2424 eval $ac_var=\$ac_old_val
2425 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002426 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002427$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002428 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002429$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002430 fi;;
2431 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002432 # Pass precious variables to config.status.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002433 if test "$ac_new_set" = set; then
2434 case $ac_new_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002435 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002436 *) ac_arg=$ac_var=$ac_new_val ;;
2437 esac
2438 case " $ac_configure_args " in
2439 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002440 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002441 esac
2442 fi
2443done
2444if $ac_cache_corrupted; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002445 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002447 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002448$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002449 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002450fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002451## -------------------- ##
2452## Main body of script. ##
2453## -------------------- ##
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002454
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002455ac_ext=c
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002456ac_cpp='$CPP $CPPFLAGS'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2459ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002460
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002461
2462
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002463ac_config_headers="$ac_config_headers include/config.h"
Alexandre Julliard18f92e71996-07-17 20:02:21 +00002464
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002465ac_aux_dir=
Jeremy White0ebeb532006-06-20 13:18:41 +02002466for ac_dir in tools "$srcdir"/tools; do
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002467 if test -f "$ac_dir/install-sh"; then
2468 ac_aux_dir=$ac_dir
2469 ac_install_sh="$ac_aux_dir/install-sh -c"
2470 break
2471 elif test -f "$ac_dir/install.sh"; then
2472 ac_aux_dir=$ac_dir
2473 ac_install_sh="$ac_aux_dir/install.sh -c"
2474 break
2475 elif test -f "$ac_dir/shtool"; then
2476 ac_aux_dir=$ac_dir
2477 ac_install_sh="$ac_aux_dir/shtool install -c"
2478 break
2479 fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002480done
2481if test -z "$ac_aux_dir"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002482 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002483fi
Jeremy White0ebeb532006-06-20 13:18:41 +02002484
2485# These three variables are undocumented and unsupported,
2486# and are intended to be withdrawn in a future Autoconf release.
2487# They can cause serious problems if a builder's source tree is in a directory
2488# whose full name contains unusual characters.
2489ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2490ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2491ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2492
Howard Abrams13277481999-07-10 13:16:29 +00002493
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002494
2495
Alexandre Julliardd59227e2010-02-20 12:36:04 +01002496
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002497# Check whether --enable-win16 was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002498if test "${enable_win16+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002499 enableval=$enable_win16;
2500fi
Alexandre Julliardc728efc2002-10-02 02:34:09 +00002501
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002502# Check whether --enable-win64 was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002503if test "${enable_win64+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002504 enableval=$enable_win64;
2505fi
Alexandre Julliardb8074992002-11-21 21:51:24 +00002506
Alexandre Julliard35078f42008-11-21 10:16:12 +01002507# Check whether --enable-tests was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002508if test "${enable_tests+set}" = set; then :
Alexandre Julliard35078f42008-11-21 10:16:12 +01002509 enableval=$enable_tests;
2510fi
2511
Alexandre Julliard9d037222008-03-20 13:00:12 +01002512# Check whether --enable-maintainer-mode was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002513if test "${enable_maintainer_mode+set}" = set; then :
Alexandre Julliard9d037222008-03-20 13:00:12 +01002514 enableval=$enable_maintainer_mode;
Alexandre Julliard9d037222008-03-20 13:00:12 +01002515fi
2516
Alexandre Julliardb8074992002-11-21 21:51:24 +00002517
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002518
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002519# Check whether --with-alsa was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002520if test "${with_alsa+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002521 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2522fi
2523
2524
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002525# Check whether --with-capi was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002526if test "${with_capi+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002527 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2528fi
2529
2530
2531# Check whether --with-cms was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002532if test "${with_cms+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002533 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2534fi
2535
2536
2537# Check whether --with-coreaudio was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002538if test "${with_coreaudio+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002539 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2540fi
2541
2542
2543# Check whether --with-cups was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002544if test "${with_cups+set}" = set; then :
Francois Gouget289ea332008-07-24 16:09:07 +02002545 withval=$with_cups;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002546fi
2547
2548
2549# Check whether --with-curses was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002550if test "${with_curses+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002551 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2552fi
2553
2554
Alexandre Julliarde45d1242011-12-20 10:36:35 +01002555# Check whether --with-dbus was given.
2556if test "${with_dbus+set}" = set; then :
2557 withval=$with_dbus;
2558fi
2559
2560
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002561# Check whether --with-fontconfig was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002562if test "${with_fontconfig+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002563 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2564fi
2565
2566
Alexandre Julliarda20c0e12008-05-21 14:55:53 +02002567# Check whether --with-freetype was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002568if test "${with_freetype+set}" = set; then :
Alexandre Julliarda20c0e12008-05-21 14:55:53 +02002569 withval=$with_freetype;
2570fi
2571
2572
Alexandre Julliard268976b2011-10-22 15:23:14 +02002573# Check whether --with-gettext was given.
2574if test "${with_gettext+set}" = set; then :
2575 withval=$with_gettext;
2576fi
2577
2578
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +01002579# Check whether --with-gettextpo was given.
2580if test "${with_gettextpo+set}" = set; then :
2581 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2582fi
2583
2584
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002585# Check whether --with-gphoto was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002586if test "${with_gphoto+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002587 withval=$with_gphoto;
2588fi
2589
2590
Alexandre Julliardad798732008-05-01 13:29:02 +02002591# Check whether --with-glu was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002592if test "${with_glu+set}" = set; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02002593 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2594fi
2595
2596
Henri Verbeet874c9ef2008-09-22 22:13:19 +02002597# Check whether --with-gnutls was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002598if test "${with_gnutls+set}" = set; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02002599 withval=$with_gnutls;
2600fi
2601
2602
Alexandre Julliard6ce32e02009-08-19 15:53:04 +02002603# Check whether --with-gsm was given.
2604if test "${with_gsm+set}" = set; then :
2605 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 +02002606fi
2607
2608
Aric Stewart2914d652010-10-20 13:55:16 -05002609# Check whether --with-gstreamer was given.
2610if test "${with_gstreamer+set}" = set; then :
2611 withval=$with_gstreamer;
2612fi
2613
2614
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002615# Check whether --with-hal was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002616if test "${with_hal+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002617 withval=$with_hal;
2618fi
2619
2620
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002621# Check whether --with-jpeg was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002622if test "${with_jpeg+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002623 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2624fi
2625
2626
2627# Check whether --with-ldap was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002628if test "${with_ldap+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002629 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2630fi
2631
2632
Aric Stewartdb71d7c2009-08-19 09:37:48 -05002633# Check whether --with-mpg123 was given.
2634if test "${with_mpg123+set}" = set; then :
2635 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2636fi
2637
2638
Chris Robinson862965f2009-08-25 03:26:35 -07002639# Check whether --with-openal was given.
2640if test "${with_openal+set}" = set; then :
Ken Thomases0b08f192009-09-09 22:23:35 -05002641 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 -07002642fi
2643
2644
Peter Urbanec65c84d72010-12-02 23:41:48 +11002645# Check whether --with-opencl was given.
2646if test "${with_opencl+set}" = set; then :
Adam Martinson2eb2f712010-12-28 12:46:09 -06002647 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 +11002648fi
2649
2650
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002651# Check whether --with-opengl was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002652if test "${with_opengl+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002653 withval=$with_opengl;
2654fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002655
Alexandre Julliardf90efa91998-06-14 15:24:15 +00002656
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002657# Check whether --with-openssl was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002658if test "${with_openssl+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002659 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2660fi
2661
2662
2663# Check whether --with-oss was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002664if test "${with_oss+set}" = set; then :
Alexandre Julliardf60a0f52011-05-02 20:06:49 +02002665 withval=$with_oss;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002666fi
2667
2668
2669# Check whether --with-png was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002670if test "${with_png+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002671 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2672fi
2673
2674
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01002675# Check whether --with-pthread was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002676if test "${with_pthread+set}" = set; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01002677 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2678fi
2679
2680
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002681# Check whether --with-sane was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002682if test "${with_sane+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002683 withval=$with_sane;
2684fi
2685
2686
Vincent Povirk73cd5692010-03-08 17:07:29 -06002687# Check whether --with-tiff was given.
2688if test "${with_tiff+set}" = set; then :
2689 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2690fi
2691
2692
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01002693# Check whether --with-v4l was given.
2694if test "${with_v4l+set}" = set; then :
2695 withval=$with_v4l;
2696fi
2697
2698
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002699# Check whether --with-xcomposite was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002700if test "${with_xcomposite+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002701 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2702fi
2703
2704
2705# Check whether --with-xcursor was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002706if test "${with_xcursor+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002707 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2708fi
2709
2710
2711# Check whether --with-xinerama was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002712if test "${with_xinerama+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002713 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2714fi
2715
2716
2717# Check whether --with-xinput was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002718if test "${with_xinput+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002719 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2720fi
2721
2722
Alexandre Julliard77e05ce2011-04-13 18:51:50 +02002723# Check whether --with-xinput2 was given.
2724if test "${with_xinput2+set}" = set; then :
2725 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2726fi
2727
2728
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002729# Check whether --with-xml was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002730if test "${with_xml+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002731 withval=$with_xml;
2732fi
2733
2734
2735# Check whether --with-xrandr was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002736if test "${with_xrandr+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002737 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2738fi
2739
2740
2741# Check whether --with-xrender was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002742if test "${with_xrender+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002743 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2744fi
2745
2746
2747# Check whether --with-xshape was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002748if test "${with_xshape+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002749 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2750fi
2751
2752
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002753# Check whether --with-xslt was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002754if test "${with_xslt+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002755 withval=$with_xslt;
2756fi
2757
2758
Francois Gougeta49beb42008-06-26 14:02:17 +02002759# Check whether --with-xxf86vm was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002760if test "${with_xxf86vm+set}" = set; then :
André Hentschel7b285a42009-09-19 19:08:09 +02002761 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 +01002762fi
2763
2764
Alexandre Julliardba6a41a2011-02-18 13:07:27 +01002765# Check whether --with-zlib was given.
2766if test "${with_zlib+set}" = set; then :
2767 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2768fi
2769
2770
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002771
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002772# Check whether --with-wine-tools was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002773if test "${with_wine_tools+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002774 withval=$with_wine_tools;
2775fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00002776
Alexandre Julliardfc01b722002-05-12 03:16:39 +00002777
Alexandre Julliard39a75d32009-08-13 19:45:31 +02002778# Check whether --with-wine64 was given.
2779if test "${with_wine64+set}" = set; then :
2780 withval=$with_wine64;
2781fi
2782
2783
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002784# Make sure we can run config.sub.
Jeremy White0ebeb532006-06-20 13:18:41 +02002785$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002786 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00002787
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002789$as_echo_n "checking build system type... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002790if ${ac_cv_build+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002791 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002792else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002793 ac_build_alias=$build_alias
2794test "x$ac_build_alias" = x &&
Jeremy White0ebeb532006-06-20 13:18:41 +02002795 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002796test "x$ac_build_alias" = x &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002797 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Jeremy White0ebeb532006-06-20 13:18:41 +02002798ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002799 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002800
2801fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002803$as_echo "$ac_cv_build" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002804case $ac_cv_build in
2805*-*-*) ;;
Alexandre Julliard9797da42011-04-27 17:37:43 +02002806*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002807esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002808build=$ac_cv_build
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002809ac_save_IFS=$IFS; IFS='-'
2810set x $ac_cv_build
2811shift
2812build_cpu=$1
2813build_vendor=$2
2814shift; shift
2815# Remember, the first character of IFS is used to create $*,
2816# except with old shells:
2817build_os=$*
2818IFS=$ac_save_IFS
2819case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002820
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002821
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002823$as_echo_n "checking host system type... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002824if ${ac_cv_host+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002825 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002826else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002827 if test "x$host_alias" = x; then
2828 ac_cv_host=$ac_cv_build
2829else
Jeremy White0ebeb532006-06-20 13:18:41 +02002830 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002831 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002832fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002833
2834fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002836$as_echo "$ac_cv_host" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002837case $ac_cv_host in
2838*-*-*) ;;
Alexandre Julliard9797da42011-04-27 17:37:43 +02002839*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002840esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002841host=$ac_cv_host
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002842ac_save_IFS=$IFS; IFS='-'
2843set x $ac_cv_host
2844shift
2845host_cpu=$1
2846host_vendor=$2
2847shift; shift
2848# Remember, the first character of IFS is used to create $*,
2849# except with old shells:
2850host_os=$*
2851IFS=$ac_save_IFS
2852case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002853
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002854
Alexandre Julliard71440f32005-05-19 14:28:17 +00002855
Alexandre Julliard73b724e2006-12-28 11:40:19 +01002856case "$srcdir" in
2857 .) ;;
2858 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002859 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 +02002860You need to run 'make distclean' in the source tree first." "$LINENO" 5
Alexandre Julliard73b724e2006-12-28 11:40:19 +01002861 fi ;;
2862esac
2863
Alexandre Julliard71440f32005-05-19 14:28:17 +00002864
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002866$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2867set x ${MAKE-make}
2868ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Alexandre Julliard9797da42011-04-27 17:37:43 +02002869if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002870 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002871else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002872 cat >conftest.make <<\_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002873SHELL = /bin/sh
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002874all:
Jeremy White0ebeb532006-06-20 13:18:41 +02002875 @echo '@@@%%%=$(MAKE)=@@@%%%'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002876_ACEOF
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002877# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Jeremy White0ebeb532006-06-20 13:18:41 +02002878case `${MAKE-make} -f conftest.make 2>/dev/null` in
2879 *@@@%%%=?*=@@@%%%*)
2880 eval ac_cv_prog_make_${ac_make}_set=yes;;
2881 *)
2882 eval ac_cv_prog_make_${ac_make}_set=no;;
2883esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002884rm -f conftest.make
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002885fi
Jeremy White0ebeb532006-06-20 13:18:41 +02002886if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002888$as_echo "yes" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002889 SET_MAKE=
2890else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002892$as_echo "no" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002893 SET_MAKE="MAKE=${MAKE-make}"
2894fi
2895
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002896ac_ext=c
2897ac_cpp='$CPP $CPPFLAGS'
2898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900ac_compiler_gnu=$ac_cv_c_compiler_gnu
2901if test -n "$ac_tool_prefix"; then
2902 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2903set dummy ${ac_tool_prefix}gcc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002905$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002906if ${ac_cv_prog_CC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002907 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002908else
2909 if test -n "$CC"; then
2910 ac_cv_prog_CC="$CC" # Let the user override the test.
2911else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913for as_dir in $PATH
2914do
2915 IFS=$as_save_IFS
2916 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002917 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01002918 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 +00002919 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002921 break 2
2922 fi
2923done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002924 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002925IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002926
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002927fi
2928fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002929CC=$ac_cv_prog_CC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002930if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002932$as_echo "$CC" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002933else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002935$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002936fi
2937
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002938
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002939fi
2940if test -z "$ac_cv_prog_CC"; then
2941 ac_ct_CC=$CC
2942 # Extract the first word of "gcc", so it can be a program name with args.
2943set dummy gcc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002945$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002946if ${ac_cv_prog_ac_ct_CC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002947 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002948else
2949 if test -n "$ac_ct_CC"; then
2950 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2951else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953for as_dir in $PATH
2954do
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002957 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01002958 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 +00002959 ac_cv_prog_ac_ct_CC="gcc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002961 break 2
2962 fi
2963done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002964 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002965IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002966
2967fi
2968fi
2969ac_ct_CC=$ac_cv_prog_ac_ct_CC
2970if test -n "$ac_ct_CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002972$as_echo "$ac_ct_CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002973else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002975$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002976fi
2977
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002978 if test "x$ac_ct_CC" = x; then
2979 CC=""
2980 else
2981 case $cross_compiling:$ac_tool_warned in
2982yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002983{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002984$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002985ac_tool_warned=yes ;;
2986esac
2987 CC=$ac_ct_CC
2988 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002989else
2990 CC="$ac_cv_prog_CC"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002991fi
2992
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002993if test -z "$CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002994 if test -n "$ac_tool_prefix"; then
2995 # 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 +00002996set dummy ${ac_tool_prefix}cc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002998$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002999if ${ac_cv_prog_CC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003000 $as_echo_n "(cached) " >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003001else
3002 if test -n "$CC"; then
3003 ac_cv_prog_CC="$CC" # Let the user override the test.
3004else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006for as_dir in $PATH
3007do
3008 IFS=$as_save_IFS
3009 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003010 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003011 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 +00003012 ac_cv_prog_CC="${ac_tool_prefix}cc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003014 break 2
3015 fi
3016done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003017 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003018IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003019
3020fi
3021fi
3022CC=$ac_cv_prog_CC
3023if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003025$as_echo "$CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003026else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003028$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003029fi
3030
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003031
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003032 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003033fi
3034if test -z "$CC"; then
3035 # Extract the first word of "cc", so it can be a program name with args.
3036set dummy cc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003038$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003039if ${ac_cv_prog_CC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003040 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003041else
3042 if test -n "$CC"; then
3043 ac_cv_prog_CC="$CC" # Let the user override the test.
3044else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003045 ac_prog_rejected=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047for as_dir in $PATH
3048do
3049 IFS=$as_save_IFS
3050 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003051 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003052 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 +00003053 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3054 ac_prog_rejected=yes
3055 continue
3056 fi
3057 ac_cv_prog_CC="cc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003059 break 2
3060 fi
3061done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003062 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003063IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003064
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003065if test $ac_prog_rejected = yes; then
3066 # We found a bogon in the path, so make sure we never use it.
3067 set dummy $ac_cv_prog_CC
3068 shift
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003069 if test $# != 0; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003070 # We chose a different compiler from the bogus one.
3071 # However, it has the same basename, so the bogon will be chosen
3072 # first if we set CC to just the basename; use the full file name.
3073 shift
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003074 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003075 fi
3076fi
3077fi
3078fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003079CC=$ac_cv_prog_CC
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003080if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003082$as_echo "$CC" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003083else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003085$as_echo "no" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003086fi
3087
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003088
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003089fi
3090if test -z "$CC"; then
3091 if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003092 for ac_prog in cl.exe
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003093 do
3094 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3095set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003097$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003098if ${ac_cv_prog_CC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003099 $as_echo_n "(cached) " >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00003100else
3101 if test -n "$CC"; then
3102 ac_cv_prog_CC="$CC" # Let the user override the test.
3103else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105for as_dir in $PATH
3106do
3107 IFS=$as_save_IFS
3108 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003109 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003110 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 +00003111 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003113 break 2
3114 fi
3115done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003116 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003117IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003118
Eric Pouech18ad24a2000-01-16 22:16:33 +00003119fi
3120fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003121CC=$ac_cv_prog_CC
Eric Pouech18ad24a2000-01-16 22:16:33 +00003122if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003124$as_echo "$CC" >&6; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003125else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003127$as_echo "no" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003128fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003129
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003130
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003131 test -n "$CC" && break
3132 done
3133fi
3134if test -z "$CC"; then
3135 ac_ct_CC=$CC
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003136 for ac_prog in cl.exe
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003137do
3138 # Extract the first word of "$ac_prog", so it can be a program name with args.
3139set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003141$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003142if ${ac_cv_prog_ac_ct_CC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003143 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003144else
3145 if test -n "$ac_ct_CC"; then
3146 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3147else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149for as_dir in $PATH
3150do
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003153 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003154 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 +00003155 ac_cv_prog_ac_ct_CC="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003157 break 2
3158 fi
3159done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003160 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003161IFS=$as_save_IFS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003162
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003163fi
3164fi
3165ac_ct_CC=$ac_cv_prog_ac_ct_CC
3166if test -n "$ac_ct_CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003168$as_echo "$ac_ct_CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003169else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003171$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003172fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003173
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003174
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003175 test -n "$ac_ct_CC" && break
3176done
Eric Pouech18ad24a2000-01-16 22:16:33 +00003177
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003178 if test "x$ac_ct_CC" = x; then
3179 CC=""
3180 else
3181 case $cross_compiling:$ac_tool_warned in
3182yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003183{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003184$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003185ac_tool_warned=yes ;;
3186esac
3187 CC=$ac_ct_CC
3188 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003189fi
3190
3191fi
3192
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003193
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003194test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003195$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003196as_fn_error $? "no acceptable C compiler found in \$PATH
Alexandre Julliard9797da42011-04-27 17:37:43 +02003197See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003198
3199# Provide some information about the compiler.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003200$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003201set X $ac_compile
3202ac_compiler=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003203for ac_option in --version -v -V -qversion; do
3204 { { ac_try="$ac_compiler $ac_option >&5"
Jeremy White0ebeb532006-06-20 13:18:41 +02003205case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003209eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210$as_echo "$ac_try_echo"; } >&5
3211 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003212 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003213 if test -s conftest.err; then
3214 sed '10a\
3215... rest of stderr output deleted ...
3216 10q' conftest.err >conftest.er1
3217 cat conftest.er1 >&5
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003218 fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003219 rm -f conftest.er1 conftest.err
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3221 test $ac_status = 0; }
3222done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003223
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003225/* end confdefs.h. */
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003226
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003227int
3228main ()
3229{
3230
3231 ;
3232 return 0;
3233}
3234_ACEOF
3235ac_clean_files_save=$ac_clean_files
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003236ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003237# Try to create an executable without -o first, disregard a.out.
3238# It will help us diagnose broken compilers, and finding out an intuition
3239# of exeext.
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3241$as_echo_n "checking whether the C compiler works... " >&6; }
Alexandre Julliardabf50482008-10-31 12:56:53 +01003242ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3243
3244# The possible output files:
3245ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3246
Jeremy White0ebeb532006-06-20 13:18:41 +02003247ac_rmfiles=
3248for ac_file in $ac_files
3249do
3250 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jeremy White0ebeb532006-06-20 13:18:41 +02003252 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3253 esac
3254done
3255rm -f $ac_rmfiles
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003256
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003257if { { ac_try="$ac_link_default"
Jeremy White0ebeb532006-06-20 13:18:41 +02003258case "(($ac_try" in
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3261esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003262eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3263$as_echo "$ac_try_echo"; } >&5
Jeremy White0ebeb532006-06-20 13:18:41 +02003264 (eval "$ac_link_default") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003265 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3267 test $ac_status = 0; }; then :
Jeremy White0ebeb532006-06-20 13:18:41 +02003268 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3269# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3270# in a Makefile. We should not override ac_cv_exeext if it was cached,
3271# so that the user can short-circuit this test for compilers unknown to
3272# Autoconf.
Alexandre Julliard78bd1942006-08-14 20:42:56 +02003273for ac_file in $ac_files ''
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003274do
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003275 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003276 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Jeremy White0ebeb532006-06-20 13:18:41 +02003278 ;;
3279 [ab].out )
3280 # We found the default executable, but exeext='' is most
3281 # certainly right.
3282 break;;
3283 *.* )
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003284 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Jeremy White0ebeb532006-06-20 13:18:41 +02003285 then :; else
3286 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3287 fi
3288 # We set ac_cv_exeext here because the later test for it is not
3289 # safe: cross compilers may not add the suffix if given an `-o'
3290 # argument, so we may need to know it at that point already.
3291 # Even if this section looks crufty: it has the advantage of
3292 # actually working.
3293 break;;
3294 * )
3295 break;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003296 esac
3297done
Jeremy White0ebeb532006-06-20 13:18:41 +02003298test "$ac_cv_exeext" = no && ac_cv_exeext=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003299
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003300else
Alexandre Julliard78bd1942006-08-14 20:42:56 +02003301 ac_file=''
3302fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003303if test -z "$ac_file"; then :
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305$as_echo "no" >&6; }
3306$as_echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003307sed 's/^/| /' conftest.$ac_ext >&5
3308
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003309{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003310$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003311as_fn_error 77 "C compiler cannot create executables
Alexandre Julliard9797da42011-04-27 17:37:43 +02003312See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003313else
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3315$as_echo "yes" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003316fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3318$as_echo_n "checking for C compiler default output file name... " >&6; }
3319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3320$as_echo "$ac_file" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02003321ac_exeext=$ac_cv_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02003322
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003323rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Jeremy White0ebeb532006-06-20 13:18:41 +02003324ac_clean_files=$ac_clean_files_save
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003326$as_echo_n "checking for suffix of executables... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003327if { { ac_try="$ac_link"
Jeremy White0ebeb532006-06-20 13:18:41 +02003328case "(($ac_try" in
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3331esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003332eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3333$as_echo "$ac_try_echo"; } >&5
Jeremy White0ebeb532006-06-20 13:18:41 +02003334 (eval "$ac_link") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003335 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3337 test $ac_status = 0; }; then :
Jeremy White0ebeb532006-06-20 13:18:41 +02003338 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3339# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3340# work properly (i.e., refer to `conftest.exe'), while it won't with
3341# `rm'.
3342for ac_file in conftest.exe conftest conftest.*; do
3343 test -f "$ac_file" || continue
3344 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003345 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jeremy White0ebeb532006-06-20 13:18:41 +02003346 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3347 break;;
3348 * ) break;;
3349 esac
3350done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003351else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003354as_fn_error $? "cannot compute suffix of executables: cannot compile and link
Alexandre Julliard9797da42011-04-27 17:37:43 +02003355See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003356fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003357rm -f conftest conftest$ac_cv_exeext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003359$as_echo "$ac_cv_exeext" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02003360
3361rm -f conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003362EXEEXT=$ac_cv_exeext
3363ac_exeext=$EXEEXT
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365/* end confdefs.h. */
3366#include <stdio.h>
3367int
3368main ()
3369{
3370FILE *f = fopen ("conftest.out", "w");
3371 return ferror (f) || fclose (f) != 0;
3372
3373 ;
3374 return 0;
3375}
3376_ACEOF
3377ac_clean_files="$ac_clean_files conftest.out"
3378# Check that the compiler produces executables we can run. If not, either
3379# the compiler is broken, or we cross compile.
3380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3381$as_echo_n "checking whether we are cross compiling... " >&6; }
3382if test "$cross_compiling" != yes; then
3383 { { ac_try="$ac_link"
3384case "(($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_link") 2>&5
3391 ac_status=$?
3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393 test $ac_status = 0; }
3394 if { ac_try='./conftest$ac_cv_exeext'
3395 { { case "(($ac_try" in
3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3398esac
3399eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3400$as_echo "$ac_try_echo"; } >&5
3401 (eval "$ac_try") 2>&5
3402 ac_status=$?
3403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3404 test $ac_status = 0; }; }; then
3405 cross_compiling=no
3406 else
3407 if test "$cross_compiling" = maybe; then
3408 cross_compiling=yes
3409 else
3410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003412as_fn_error $? "cannot run C compiled programs.
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003413If you meant to cross compile, use \`--host'.
Alexandre Julliard9797da42011-04-27 17:37:43 +02003414See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003415 fi
3416 fi
3417fi
3418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3419$as_echo "$cross_compiling" >&6; }
3420
3421rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3422ac_clean_files=$ac_clean_files_save
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003424$as_echo_n "checking for suffix of object files... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003425if ${ac_cv_objext+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003426 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003427else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jeremy White0ebeb532006-06-20 13:18:41 +02003429/* end confdefs.h. */
3430
3431int
3432main ()
3433{
3434
3435 ;
3436 return 0;
3437}
3438_ACEOF
3439rm -f conftest.o conftest.obj
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003440if { { ac_try="$ac_compile"
Jeremy White0ebeb532006-06-20 13:18:41 +02003441case "(($ac_try" in
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3444esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003445eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3446$as_echo "$ac_try_echo"; } >&5
Jeremy White0ebeb532006-06-20 13:18:41 +02003447 (eval "$ac_compile") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003448 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3450 test $ac_status = 0; }; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003451 for ac_file in conftest.o conftest.obj conftest.*; do
3452 test -f "$ac_file" || continue;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003453 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003455 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3456 break;;
3457 esac
3458done
3459else
Alexandre Julliardabf50482008-10-31 12:56:53 +01003460 $as_echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003461sed 's/^/| /' conftest.$ac_ext >&5
3462
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003463{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003465as_fn_error $? "cannot compute suffix of object files: cannot compile
Alexandre Julliard9797da42011-04-27 17:37:43 +02003466See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003467fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003468rm -f conftest.$ac_cv_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003469fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003471$as_echo "$ac_cv_objext" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003472OBJEXT=$ac_cv_objext
3473ac_objext=$OBJEXT
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003475$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003476if ${ac_cv_c_compiler_gnu+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003477 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003478else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003480/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003481
3482int
3483main ()
3484{
3485#ifndef __GNUC__
3486 choke me
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003487#endif
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003488
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003489 ;
3490 return 0;
3491}
3492_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003493if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003494 ac_compiler_gnu=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +00003495else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003496 ac_compiler_gnu=no
Eric Pouech18ad24a2000-01-16 22:16:33 +00003497fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003499ac_cv_c_compiler_gnu=$ac_compiler_gnu
Eric Pouech18ad24a2000-01-16 22:16:33 +00003500
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003501fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003503$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3504if test $ac_compiler_gnu = yes; then
3505 GCC=yes
3506else
3507 GCC=
3508fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003509ac_test_CFLAGS=${CFLAGS+set}
3510ac_save_CFLAGS=$CFLAGS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003512$as_echo_n "checking whether $CC accepts -g... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003513if ${ac_cv_prog_cc_g+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003514 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003515else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003516 ac_save_c_werror_flag=$ac_c_werror_flag
3517 ac_c_werror_flag=yes
3518 ac_cv_prog_cc_g=no
3519 CFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003521/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003522
3523int
3524main ()
3525{
3526
3527 ;
3528 return 0;
3529}
3530_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003531if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00003532 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003533else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003534 CFLAGS=""
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003536/* end confdefs.h. */
3537
3538int
3539main ()
3540{
3541
3542 ;
3543 return 0;
3544}
3545_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003546if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003547
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003548else
3549 ac_c_werror_flag=$ac_save_c_werror_flag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003550 CFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003552/* end confdefs.h. */
3553
3554int
3555main ()
3556{
3557
3558 ;
3559 return 0;
3560}
3561_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003562if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003563 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003564fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003566fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003568fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003570 ac_c_werror_flag=$ac_save_c_werror_flag
3571fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003573$as_echo "$ac_cv_prog_cc_g" >&6; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003574if test "$ac_test_CFLAGS" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003575 CFLAGS=$ac_save_CFLAGS
Eric Pouech18ad24a2000-01-16 22:16:33 +00003576elif test $ac_cv_prog_cc_g = yes; then
3577 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003578 CFLAGS="-g -O2"
3579 else
Eric Pouech18ad24a2000-01-16 22:16:33 +00003580 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003581 fi
3582else
Eric Pouech18ad24a2000-01-16 22:16:33 +00003583 if test "$GCC" = yes; then
3584 CFLAGS="-O2"
3585 else
3586 CFLAGS=
3587 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003588fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003590$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003591if ${ac_cv_prog_cc_c89+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003592 $as_echo_n "(cached) " >&6
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003593else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003594 ac_cv_prog_cc_c89=no
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003595ac_save_CC=$CC
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003597/* end confdefs.h. */
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003598#include <stdarg.h>
3599#include <stdio.h>
3600#include <sys/types.h>
3601#include <sys/stat.h>
3602/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3603struct buf { int x; };
3604FILE * (*rcsopen) (struct buf *, struct stat *, int);
3605static char *e (p, i)
3606 char **p;
3607 int i;
3608{
3609 return p[i];
3610}
3611static char *f (char * (*g) (char **, int), char **p, ...)
3612{
3613 char *s;
3614 va_list v;
3615 va_start (v,p);
3616 s = g (p, va_arg (v,int));
3617 va_end (v);
3618 return s;
3619}
Alexandre Julliard875927f2004-01-02 01:55:29 +00003620
3621/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3622 function prototypes and stuff, but not '\xHH' hex character constants.
3623 These don't provoke an error unfortunately, instead are silently treated
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003624 as 'x'. The following induces an error, until -std is added to get
Alexandre Julliard875927f2004-01-02 01:55:29 +00003625 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3626 array size at least. It's necessary to write '\x00'==0 to get something
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003627 that's true only with -std. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00003628int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3629
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02003630/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3631 inside strings and character constants. */
3632#define FOO(x) 'x'
3633int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3634
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003635int test (int i, double x);
3636struct s1 {int (*f) (int a);};
3637struct s2 {int (*f) (double a);};
3638int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3639int argc;
3640char **argv;
3641int
3642main ()
3643{
3644return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3645 ;
3646 return 0;
3647}
3648_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003649for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3650 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003651do
3652 CC="$ac_save_CC $ac_arg"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003653 if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003654 ac_cv_prog_cc_c89=$ac_arg
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003655fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003656rm -f core conftest.err conftest.$ac_objext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003657 test "x$ac_cv_prog_cc_c89" != "xno" && break
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003658done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003659rm -f conftest.$ac_ext
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003660CC=$ac_save_CC
3661
3662fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003663# AC_CACHE_VAL
3664case "x$ac_cv_prog_cc_c89" in
3665 x)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003667$as_echo "none needed" >&6; } ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003668 xno)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003670$as_echo "unsupported" >&6; } ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003671 *)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003672 CC="$CC $ac_cv_prog_cc_c89"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003674$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003675esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003676if test "x$ac_cv_prog_cc_c89" != xno; then :
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003677
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003678fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003679
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003680ac_ext=c
3681ac_cpp='$CPP $CPPFLAGS'
3682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684ac_compiler_gnu=$ac_cv_c_compiler_gnu
3685
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003686ac_ext=cpp
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003687ac_cpp='$CXXCPP $CPPFLAGS'
3688ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3689ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3690ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003691if test -z "$CXX"; then
3692 if test -n "$CCC"; then
3693 CXX=$CCC
3694 else
3695 if test -n "$ac_tool_prefix"; then
3696 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 +00003697 do
3698 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3699set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003701$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003702if ${ac_cv_prog_CXX+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003703 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003704else
3705 if test -n "$CXX"; then
3706 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3707else
3708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709for as_dir in $PATH
3710do
3711 IFS=$as_save_IFS
3712 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003713 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003714 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 +00003715 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003717 break 2
3718 fi
3719done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003720 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003721IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003722
3723fi
3724fi
3725CXX=$ac_cv_prog_CXX
3726if test -n "$CXX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003728$as_echo "$CXX" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003729else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003731$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003732fi
3733
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003734
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003735 test -n "$CXX" && break
3736 done
3737fi
3738if test -z "$CXX"; then
3739 ac_ct_CXX=$CXX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003740 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 +00003741do
3742 # Extract the first word of "$ac_prog", so it can be a program name with args.
3743set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003745$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003746if ${ac_cv_prog_ac_ct_CXX+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003747 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003748else
3749 if test -n "$ac_ct_CXX"; then
3750 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3751else
3752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753for as_dir in $PATH
3754do
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003757 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003758 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 +00003759 ac_cv_prog_ac_ct_CXX="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003761 break 2
3762 fi
3763done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003764 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003765IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003766
3767fi
3768fi
3769ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3770if test -n "$ac_ct_CXX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003772$as_echo "$ac_ct_CXX" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003773else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003775$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003776fi
3777
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003778
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003779 test -n "$ac_ct_CXX" && break
3780done
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003781
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003782 if test "x$ac_ct_CXX" = x; then
3783 CXX="g++"
3784 else
3785 case $cross_compiling:$ac_tool_warned in
3786yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003787{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003788$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003789ac_tool_warned=yes ;;
3790esac
3791 CXX=$ac_ct_CXX
3792 fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003793fi
3794
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003795 fi
3796fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003797# Provide some information about the compiler.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003798$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003799set X $ac_compile
3800ac_compiler=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003801for ac_option in --version -v -V -qversion; do
3802 { { ac_try="$ac_compiler $ac_option >&5"
Jeremy White0ebeb532006-06-20 13:18:41 +02003803case "(($ac_try" in
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3806esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3808$as_echo "$ac_try_echo"; } >&5
3809 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003810 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003811 if test -s conftest.err; then
3812 sed '10a\
3813... rest of stderr output deleted ...
3814 10q' conftest.err >conftest.er1
3815 cat conftest.er1 >&5
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003816 fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003817 rm -f conftest.er1 conftest.err
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819 test $ac_status = 0; }
3820done
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003821
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003823$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003824if ${ac_cv_cxx_compiler_gnu+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003825 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003826else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003828/* end confdefs.h. */
3829
3830int
3831main ()
3832{
3833#ifndef __GNUC__
3834 choke me
3835#endif
3836
3837 ;
3838 return 0;
3839}
3840_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003841if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003842 ac_compiler_gnu=yes
3843else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003844 ac_compiler_gnu=no
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003845fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003847ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3848
3849fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003851$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3852if test $ac_compiler_gnu = yes; then
3853 GXX=yes
3854else
3855 GXX=
3856fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003857ac_test_CXXFLAGS=${CXXFLAGS+set}
3858ac_save_CXXFLAGS=$CXXFLAGS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003860$as_echo_n "checking whether $CXX accepts -g... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003861if ${ac_cv_prog_cxx_g+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003862 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003863else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003864 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3865 ac_cxx_werror_flag=yes
3866 ac_cv_prog_cxx_g=no
3867 CXXFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003869/* end confdefs.h. */
3870
3871int
3872main ()
3873{
3874
3875 ;
3876 return 0;
3877}
3878_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003879if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003880 ac_cv_prog_cxx_g=yes
3881else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003882 CXXFLAGS=""
3883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003884/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003885
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003886int
3887main ()
3888{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003889
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003890 ;
3891 return 0;
3892}
3893_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003894if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003895
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003896else
3897 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003898 CXXFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003900/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003901
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003902int
3903main ()
3904{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003905
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003906 ;
3907 return 0;
3908}
3909_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003910if ac_fn_cxx_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003911 ac_cv_prog_cxx_g=yes
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003912fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003914fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003916fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003918 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3919fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003921$as_echo "$ac_cv_prog_cxx_g" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003922if test "$ac_test_CXXFLAGS" = set; then
3923 CXXFLAGS=$ac_save_CXXFLAGS
3924elif test $ac_cv_prog_cxx_g = yes; then
3925 if test "$GXX" = yes; then
3926 CXXFLAGS="-g -O2"
3927 else
3928 CXXFLAGS="-g"
3929 fi
3930else
3931 if test "$GXX" = yes; then
3932 CXXFLAGS="-O2"
3933 else
3934 CXXFLAGS=
3935 fi
3936fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003937ac_ext=c
3938ac_cpp='$CPP $CPPFLAGS'
3939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003943if test -n "$ac_tool_prefix"; then
3944 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3945set dummy ${ac_tool_prefix}cpp; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003947$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003948if ${ac_cv_prog_CPPBIN+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003949 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003950else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003951 if test -n "$CPPBIN"; then
3952 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003953else
3954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955for as_dir in $PATH
3956do
3957 IFS=$as_save_IFS
3958 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003959 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003960 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 +00003961 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003963 break 2
3964 fi
3965done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003966 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003967IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003968
3969fi
3970fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003971CPPBIN=$ac_cv_prog_CPPBIN
3972if test -n "$CPPBIN"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003974$as_echo "$CPPBIN" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003975else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003977$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003978fi
3979
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003980
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003981fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003982if test -z "$ac_cv_prog_CPPBIN"; then
3983 ac_ct_CPPBIN=$CPPBIN
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003984 # Extract the first word of "cpp", so it can be a program name with args.
3985set dummy cpp; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003987$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003988if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003989 $as_echo_n "(cached) " >&6
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003990else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003991 if test -n "$ac_ct_CPPBIN"; then
3992 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003993else
3994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995for as_dir in $PATH
3996do
3997 IFS=$as_save_IFS
3998 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003999 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004000 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 +00004001 ac_cv_prog_ac_ct_CPPBIN="cpp"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004003 break 2
4004 fi
4005done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004006 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004007IFS=$as_save_IFS
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004008
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004009fi
4010fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00004011ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4012if test -n "$ac_ct_CPPBIN"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004014$as_echo "$ac_ct_CPPBIN" >&6; }
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004015else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004017$as_echo "no" >&6; }
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004018fi
4019
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004020 if test "x$ac_ct_CPPBIN" = x; then
4021 CPPBIN="cpp"
4022 else
4023 case $cross_compiling:$ac_tool_warned in
4024yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004025{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004027ac_tool_warned=yes ;;
4028esac
4029 CPPBIN=$ac_ct_CPPBIN
4030 fi
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004031else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00004032 CPPBIN="$ac_cv_prog_CPPBIN"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004033fi
4034
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004035
Alexandre Julliard1aea4ef2009-08-27 13:35:46 +02004036cat >>confdefs.h <<_ACEOF
4037#define EXEEXT "$ac_exeext"
4038_ACEOF
4039
4040
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004041case $host in
Ken Thomases42664332009-05-01 22:59:52 -05004042 *-darwin*)
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004043 if test "x$enable_win64" = "xyes"
Ken Thomases42664332009-05-01 22:59:52 -05004044 then
4045 CC="$CC -m64"
4046 CXX="$CXX -m64"
Ken Thomases42664332009-05-01 22:59:52 -05004047 host_cpu="x86_64"
4048 notice_platform="64-bit "
4049 TARGETFLAGS="-m64"
4050
4051 else
4052 CC="$CC -m32"
4053 CXX="$CXX -m32"
Ken Thomases42664332009-05-01 22:59:52 -05004054 host_cpu="i386"
4055 notice_platform="32-bit "
4056 TARGETFLAGS="-m32"
4057
4058 enable_win16=${enable_win16:-yes}
4059 fi
4060 ;;
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004061 x86_64*)
Alexandre Julliard6b4ed0f2009-01-12 19:29:43 +01004062 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004063 then
4064 CC="$CC -m32"
4065 CXX="$CXX -m32"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004067$as_echo_n "checking whether $CC works... " >&6; }
4068
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004070/* end confdefs.h. */
4071
4072int
4073main ()
4074{
4075
4076 ;
4077 return 0;
4078}
4079_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004080if ac_fn_c_try_link "$LINENO"; then :
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004082$as_echo "yes" >&6; }
4083else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004085$as_echo "no" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004086 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 +01004087fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004088rm -f core conftest.err conftest.$ac_objext \
4089 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004090 host_cpu="i386"
4091 notice_platform="32-bit "
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004092 TARGETFLAGS="-m32"
4093
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004094 enable_win16=${enable_win16:-yes}
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004095 else
Alexandre Julliard8812d242009-06-14 11:19:54 +02004096 if test "x${GCC}" = "xyes"
4097 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004099$as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard8812d242009-06-14 11:19:54 +02004101/* end confdefs.h. */
4102#include <stdarg.h>
4103int
4104main ()
4105{
4106void func(__builtin_ms_va_list *args);
4107 ;
4108 return 0;
4109}
4110_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004111if ac_fn_c_try_compile "$LINENO"; then :
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004113$as_echo "yes" >&6; }
4114else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004116$as_echo "no" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004117 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004118fi
Alexandre Julliard8812d242009-06-14 11:19:54 +02004119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4120 fi
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004121 TARGETFLAGS="-m64"
4122
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004123 fi
4124 ;;
Alexandre Julliard391fce62009-04-02 12:59:52 +02004125 *-mingw32*|*-cygwin*)
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004126 enable_win16=${enable_win16:-no}
Alexandre Goujonac0a38c2010-03-01 21:39:40 +01004127 CFLAGS="$CFLAGS -D_WIN32"
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004128 ;;
4129 i[3456789]86*)
4130 enable_win16=${enable_win16:-yes}
4131 ;;
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004132esac
4133
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004134enable_win16=${enable_win16:-no}
Alexandre Julliard4422d222011-05-10 13:26:28 +02004135enable_win64=${enable_win64:-no}
Alexandre Julliard776820e2009-02-23 17:46:33 +01004136
Alexandre Julliard95081552010-02-09 19:08:17 +01004137enable_winetest=${enable_winetest:-$enable_tests}
4138
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004139if test -n "$with_wine64"
4140then
4141 if test "x$enable_win64" = "xyes"
4142 then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004143 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004144--enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4145 fi
Alexandre Julliard90647772009-08-13 19:48:42 +02004146 WOW64_DISABLE=\#
4147
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004148 enable_fonts=${enable_fonts:-no}
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004149 enable_server=${enable_server:-no}
4150 enable_tools=${enable_tools:-no}
Alexandre Julliardb3265322010-04-21 12:28:22 +02004151elif test "x$enable_win64" = "xyes"
4152then
4153 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004154fi
4155
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004157$as_echo_n "checking for the directory containing the Wine tools... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004158if ${wine_cv_toolsdir+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004159 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004160else
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004161 wine_cv_toolsdir="$with_wine_tools"
4162 if test -z "$with_wine_tools"; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004163 if test "$cross_compiling" = "yes"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004164 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004165 elif test -n "$with_wine64"; then
4166 wine_cv_toolsdir="$with_wine64"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004167 fi
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004168 fi
4169 if test -z "$wine_cv_toolsdir"; then
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02004170 wine_cv_toolsdir="\$(top_builddir)"
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004171 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4172 case "$wine_cv_toolsdir" in
4173 /*) ;;
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02004174 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004175 esac
4176 else
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004177 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004178 fi
4179fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004181$as_echo "$wine_cv_toolsdir" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004182TOOLSDIR=$wine_cv_toolsdir
4183
Alexandre Julliard4d135d92009-02-16 13:08:44 +01004184if test -n "$host_alias" -a "$host_alias" != "$build_alias"
Alexandre Julliard424cb272008-12-26 17:54:50 +01004185then
Alexandre Julliard0fea4a52009-02-12 10:28:23 +01004186 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
Alexandre Julliard424cb272008-12-26 17:54:50 +01004187
4188fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004189
Alexandre Julliard40916272007-03-08 13:19:50 +01004190for ac_prog in flex
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004191do
4192 # Extract the first word of "$ac_prog", so it can be a program name with args.
4193set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004195$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004196if ${ac_cv_prog_FLEX+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004197 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004198else
Alexandre Julliard40916272007-03-08 13:19:50 +01004199 if test -n "$FLEX"; then
4200 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004201else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203for as_dir in $PATH
4204do
4205 IFS=$as_save_IFS
4206 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004207 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004208 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 +01004209 ac_cv_prog_FLEX="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004211 break 2
4212 fi
4213done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004214 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004215IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004216
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004217fi
4218fi
Alexandre Julliard40916272007-03-08 13:19:50 +01004219FLEX=$ac_cv_prog_FLEX
4220if test -n "$FLEX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004222$as_echo "$FLEX" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004223else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004225$as_echo "no" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004226fi
4227
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004228
Alexandre Julliard40916272007-03-08 13:19:50 +01004229 test -n "$FLEX" && break
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004230done
Alexandre Julliard40916272007-03-08 13:19:50 +01004231test -n "$FLEX" || FLEX="none"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004232
Alexandre Julliard40916272007-03-08 13:19:50 +01004233if test "$FLEX" = "none"
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004234then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004235 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004236fi
Michael Stefaniucce307332009-12-29 18:07:02 +01004237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4238$as_echo_n "checking whether flex is recent enough... " >&6; }
4239cat >conftest.l <<EOF
4240%top{
4241#include "prediluvian.h"
4242}
4243%%
4244EOF
Alexandre Julliard27816c72010-07-28 11:04:46 +02004245if $FLEX -t conftest.l >/dev/null 2>&5
Michael Stefaniucce307332009-12-29 18:07:02 +01004246then
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4248$as_echo "yes" >&6; }
4249else
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251$as_echo "no" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004252 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 +01004253fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004254
Mike McCormackc068f672004-03-16 03:11:39 +00004255for ac_prog in bison
4256do
4257 # Extract the first word of "$ac_prog", so it can be a program name with args.
4258set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004260$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004261if ${ac_cv_prog_BISON+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004262 $as_echo_n "(cached) " >&6
Mike McCormackc068f672004-03-16 03:11:39 +00004263else
4264 if test -n "$BISON"; then
4265 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4266else
4267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268for as_dir in $PATH
4269do
4270 IFS=$as_save_IFS
4271 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004272 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004273 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 +00004274 ac_cv_prog_BISON="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormackc068f672004-03-16 03:11:39 +00004276 break 2
4277 fi
4278done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004279 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004280IFS=$as_save_IFS
Mike McCormackc068f672004-03-16 03:11:39 +00004281
4282fi
4283fi
4284BISON=$ac_cv_prog_BISON
4285if test -n "$BISON"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004287$as_echo "$BISON" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00004288else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004290$as_echo "no" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00004291fi
4292
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004293
Mike McCormackc068f672004-03-16 03:11:39 +00004294 test -n "$BISON" && break
4295done
4296test -n "$BISON" || BISON="none"
4297
4298if test "$BISON" = "none"
4299then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004300 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
Mike McCormackc068f672004-03-16 03:11:39 +00004301fi
4302
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004303if test -n "$ac_tool_prefix"; then
Francois Gouget86bd0462008-06-26 14:05:57 +02004304 for ac_prog in ar gar
4305 do
4306 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4307set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004309$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004310if ${ac_cv_prog_AR+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004311 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004312else
4313 if test -n "$AR"; then
4314 ac_cv_prog_AR="$AR" # Let the user override the test.
4315else
4316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317for as_dir in $PATH
4318do
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004321 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004322 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 +02004323 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004325 break 2
4326 fi
4327done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004328 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004329IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004330
4331fi
4332fi
4333AR=$ac_cv_prog_AR
4334if test -n "$AR"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004336$as_echo "$AR" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004337else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004339$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004340fi
4341
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004342
Francois Gouget86bd0462008-06-26 14:05:57 +02004343 test -n "$AR" && break
4344 done
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004345fi
Francois Gouget86bd0462008-06-26 14:05:57 +02004346if test -z "$AR"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004347 ac_ct_AR=$AR
Francois Gouget86bd0462008-06-26 14:05:57 +02004348 for ac_prog in ar gar
4349do
4350 # Extract the first word of "$ac_prog", so it can be a program name with args.
4351set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004353$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004354if ${ac_cv_prog_ac_ct_AR+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004355 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004356else
4357 if test -n "$ac_ct_AR"; then
4358 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4359else
4360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361for as_dir in $PATH
4362do
4363 IFS=$as_save_IFS
4364 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004365 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004366 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 +02004367 ac_cv_prog_ac_ct_AR="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004369 break 2
4370 fi
4371done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004372 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004373IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004374
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004375fi
4376fi
4377ac_ct_AR=$ac_cv_prog_ac_ct_AR
4378if test -n "$ac_ct_AR"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004380$as_echo "$ac_ct_AR" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004381else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004383$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004384fi
4385
Francois Gouget86bd0462008-06-26 14:05:57 +02004386
4387 test -n "$ac_ct_AR" && break
4388done
4389
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004390 if test "x$ac_ct_AR" = x; then
4391 AR="ar"
4392 else
4393 case $cross_compiling:$ac_tool_warned in
4394yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004395{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004396$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004397ac_tool_warned=yes ;;
4398esac
4399 AR=$ac_ct_AR
4400 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004401fi
4402
Rob Shearman0c694d72008-03-04 15:53:41 +00004403ARFLAGS=rc
4404
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004405if test -n "$ac_tool_prefix"; then
4406 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4407set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004409$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004410if ${ac_cv_prog_RANLIB+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004411 $as_echo_n "(cached) " >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004412else
4413 if test -n "$RANLIB"; then
4414 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4415else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417for as_dir in $PATH
4418do
4419 IFS=$as_save_IFS
4420 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004421 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004422 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 +00004423 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004425 break 2
4426 fi
4427done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004428 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004429IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004430
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004431fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004432fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004433RANLIB=$ac_cv_prog_RANLIB
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004434if test -n "$RANLIB"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004436$as_echo "$RANLIB" >&6; }
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004437else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004439$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004440fi
4441
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004442
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004443fi
4444if test -z "$ac_cv_prog_RANLIB"; then
4445 ac_ct_RANLIB=$RANLIB
4446 # Extract the first word of "ranlib", so it can be a program name with args.
4447set dummy ranlib; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004449$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004450if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004451 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004452else
4453 if test -n "$ac_ct_RANLIB"; then
4454 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4455else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457for as_dir in $PATH
4458do
4459 IFS=$as_save_IFS
4460 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004461 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004462 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 +00004463 ac_cv_prog_ac_ct_RANLIB="ranlib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004465 break 2
4466 fi
4467done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004468 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004469IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004470
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004471fi
4472fi
4473ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4474if test -n "$ac_ct_RANLIB"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004476$as_echo "$ac_ct_RANLIB" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004477else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004479$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004480fi
4481
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004482 if test "x$ac_ct_RANLIB" = x; then
4483 RANLIB=":"
4484 else
4485 case $cross_compiling:$ac_tool_warned in
4486yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004487{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004488$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004489ac_tool_warned=yes ;;
4490esac
4491 RANLIB=$ac_ct_RANLIB
4492 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004493else
4494 RANLIB="$ac_cv_prog_RANLIB"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004495fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004496
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004498$as_echo_n "checking whether ln -s works... " >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004499LN_S=$as_ln_s
4500if test "$LN_S" = "ln -s"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004502$as_echo "yes" >&6; }
Alexandre Julliard641ee761997-08-04 16:34:36 +00004503else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004505$as_echo "no, using $LN_S" >&6; }
Alexandre Julliard641ee761997-08-04 16:34:36 +00004506fi
4507
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004509$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004510if ${ac_cv_path_GREP+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004511 $as_echo_n "(cached) " >&6
Alexandre Julliardc6264912004-08-16 20:09:37 +00004512else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004513 if test -z "$GREP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004514 ac_path_GREP_found=false
Alexandre Julliardabf50482008-10-31 12:56:53 +01004515 # Loop through the user's path and test for each of PROGNAME-LIST
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004517for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4518do
4519 IFS=$as_save_IFS
4520 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004521 for ac_prog in grep ggrep; do
Alexandre Julliardabf50482008-10-31 12:56:53 +01004522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4524 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4525# Check for GNU ac_path_GREP and select it if it is found.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004526 # Check for GNU $ac_path_GREP
4527case `"$ac_path_GREP" --version 2>&1` in
4528*GNU*)
4529 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4530*)
4531 ac_count=0
Alexandre Julliardabf50482008-10-31 12:56:53 +01004532 $as_echo_n 0123456789 >"conftest.in"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004533 while :
4534 do
4535 cat "conftest.in" "conftest.in" >"conftest.tmp"
4536 mv "conftest.tmp" "conftest.in"
4537 cp "conftest.in" "conftest.nl"
Alexandre Julliardabf50482008-10-31 12:56:53 +01004538 $as_echo 'GREP' >> "conftest.nl"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004539 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4540 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004541 as_fn_arith $ac_count + 1 && ac_count=$as_val
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004542 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4543 # Best one so far, save it but keep looking for a better one
4544 ac_cv_path_GREP="$ac_path_GREP"
4545 ac_path_GREP_max=$ac_count
Alexandre Julliardc6264912004-08-16 20:09:37 +00004546 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004547 # 10*(2^10) chars as input seems more than enough
4548 test $ac_count -gt 10 && break
4549 done
Jeremy White0ebeb532006-06-20 13:18:41 +02004550 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004551esac
4552
Alexandre Julliardabf50482008-10-31 12:56:53 +01004553 $ac_path_GREP_found && break 3
4554 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004555 done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004556 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004557IFS=$as_save_IFS
Alexandre Julliardabf50482008-10-31 12:56:53 +01004558 if test -z "$ac_cv_path_GREP"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004559 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 +01004560 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004561else
4562 ac_cv_path_GREP=$GREP
4563fi
4564
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004565fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004567$as_echo "$ac_cv_path_GREP" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004568 GREP="$ac_cv_path_GREP"
4569
4570
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004572$as_echo_n "checking for egrep... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004573if ${ac_cv_path_EGREP+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004574 $as_echo_n "(cached) " >&6
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004575else
4576 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4577 then ac_cv_path_EGREP="$GREP -E"
4578 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004579 if test -z "$EGREP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004580 ac_path_EGREP_found=false
Alexandre Julliardabf50482008-10-31 12:56:53 +01004581 # Loop through the user's path and test for each of PROGNAME-LIST
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004583for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4584do
4585 IFS=$as_save_IFS
4586 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004587 for ac_prog in egrep; do
Alexandre Julliardabf50482008-10-31 12:56:53 +01004588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4590 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4591# Check for GNU ac_path_EGREP and select it if it is found.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004592 # Check for GNU $ac_path_EGREP
4593case `"$ac_path_EGREP" --version 2>&1` in
4594*GNU*)
4595 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4596*)
4597 ac_count=0
Alexandre Julliardabf50482008-10-31 12:56:53 +01004598 $as_echo_n 0123456789 >"conftest.in"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004599 while :
4600 do
4601 cat "conftest.in" "conftest.in" >"conftest.tmp"
4602 mv "conftest.tmp" "conftest.in"
4603 cp "conftest.in" "conftest.nl"
Alexandre Julliardabf50482008-10-31 12:56:53 +01004604 $as_echo 'EGREP' >> "conftest.nl"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004605 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4606 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004607 as_fn_arith $ac_count + 1 && ac_count=$as_val
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004608 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4609 # Best one so far, save it but keep looking for a better one
4610 ac_cv_path_EGREP="$ac_path_EGREP"
4611 ac_path_EGREP_max=$ac_count
4612 fi
4613 # 10*(2^10) chars as input seems more than enough
4614 test $ac_count -gt 10 && break
4615 done
Jeremy White0ebeb532006-06-20 13:18:41 +02004616 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004617esac
4618
Alexandre Julliardabf50482008-10-31 12:56:53 +01004619 $ac_path_EGREP_found && break 3
4620 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004621 done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004622 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004623IFS=$as_save_IFS
Alexandre Julliardabf50482008-10-31 12:56:53 +01004624 if test -z "$ac_cv_path_EGREP"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004625 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 +01004626 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004627else
4628 ac_cv_path_EGREP=$EGREP
4629fi
4630
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004631 fi
4632fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004634$as_echo "$ac_cv_path_EGREP" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004635 EGREP="$ac_cv_path_EGREP"
Alexandre Julliardc6264912004-08-16 20:09:37 +00004636
4637
James Juranffe6b761999-06-12 08:21:57 +00004638# Extract the first word of "ldconfig", so it can be a program name with args.
4639set dummy ldconfig; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004641$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004642if ${ac_cv_path_LDCONFIG+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004643 $as_echo_n "(cached) " >&6
James Juranffe6b761999-06-12 08:21:57 +00004644else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004645 case $LDCONFIG in
4646 [\\/]* | ?:[\\/]*)
James Juranffe6b761999-06-12 08:21:57 +00004647 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4648 ;;
4649 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Medland91372b32002-04-20 21:00:42 +00004651for as_dir in /sbin /usr/sbin $PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004652do
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004655 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004656 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 +00004657 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004659 break 2
4660 fi
4661done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004662 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004663IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004664
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004665 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00004666 ;;
4667esac
4668fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004669LDCONFIG=$ac_cv_path_LDCONFIG
James Juranffe6b761999-06-12 08:21:57 +00004670if test -n "$LDCONFIG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004672$as_echo "$LDCONFIG" >&6; }
James Juranffe6b761999-06-12 08:21:57 +00004673else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004675$as_echo "no" >&6; }
James Juranffe6b761999-06-12 08:21:57 +00004676fi
4677
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004678
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004679# Find a good install program. We prefer a C program (faster),
4680# so one script is as good as another. But avoid the broken or
4681# incompatible versions:
4682# SysV /etc/install, /usr/sbin/install
4683# SunOS /usr/etc/install
4684# IRIX /sbin/install
4685# AIX /bin/install
4686# AmigaOS /C/install, which installs bootblocks on floppy discs
4687# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4688# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4689# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Alexandre Julliard875927f2004-01-02 01:55:29 +00004690# OS/2's system install, which has a completely different semantic
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004691# ./install, which can be erroneously created by make from ./install.sh.
Alexandre Julliardabf50482008-10-31 12:56:53 +01004692# Reject install programs that cannot install multiple files.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004694$as_echo_n "checking for a BSD-compatible install... " >&6; }
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004695if test -z "$INSTALL"; then
Alexandre Julliard9797da42011-04-27 17:37:43 +02004696if ${ac_cv_path_install+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004697 $as_echo_n "(cached) " >&6
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004698else
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700for as_dir in $PATH
4701do
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004704 # Account for people who put trailing slashes in PATH elements.
4705case $as_dir/ in #((
4706 ./ | .// | /[cC]/* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004707 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004708 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004709 /usr/ucb/* ) ;;
4710 *)
4711 # OSF1 and SCO ODT 3.0 have their own names for install.
4712 # Don't use installbsd from OSF since it installs stuff as root
4713 # by default.
4714 for ac_prog in ginstall scoinst install; do
4715 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004716 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 +00004717 if test $ac_prog = install &&
4718 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4719 # AIX install. It has an incompatible calling convention.
4720 :
4721 elif test $ac_prog = install &&
4722 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4723 # program-specific install script used by HP pwplus--don't use.
4724 :
4725 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004726 rm -rf conftest.one conftest.two conftest.dir
4727 echo one > conftest.one
4728 echo two > conftest.two
4729 mkdir conftest.dir
4730 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4731 test -s conftest.one && test -s conftest.two &&
4732 test -s conftest.dir/conftest.one &&
4733 test -s conftest.dir/conftest.two
4734 then
4735 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4736 break 3
4737 fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004738 fi
4739 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004740 done
4741 done
4742 ;;
4743esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01004744
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004745 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004746IFS=$as_save_IFS
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004747
Alexandre Julliardabf50482008-10-31 12:56:53 +01004748rm -rf conftest.one conftest.two conftest.dir
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004749
4750fi
4751 if test "${ac_cv_path_install+set}" = set; then
4752 INSTALL=$ac_cv_path_install
4753 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004754 # As a last resort, use the slow shell script. Don't cache a
4755 # value for INSTALL within a source directory, because that will
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004756 # break other packages using the cache if that directory is
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004757 # removed, or if the value is a relative name.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004758 INSTALL=$ac_install_sh
4759 fi
4760fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004762$as_echo "$INSTALL" >&6; }
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004763
4764# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4765# It thinks the first close brace ends the variable substitution.
4766test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4767
4768test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4769
4770test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4771
4772case "$INSTALL" in
Alexandre Julliard8418d8f2002-12-24 02:39:47 +00004773 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02004774 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004775esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004776
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004777for ac_prog in lclint lint
4778do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004779 # Extract the first word of "$ac_prog", so it can be a program name with args.
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004780set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004782$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004783if ${ac_cv_prog_LINT+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004784 $as_echo_n "(cached) " >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004785else
4786 if test -n "$LINT"; then
4787 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4788else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790for as_dir in $PATH
4791do
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004794 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004795 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 +00004796 ac_cv_prog_LINT="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004798 break 2
4799 fi
4800done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004801 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004802IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004803
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004804fi
4805fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004806LINT=$ac_cv_prog_LINT
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004807if test -n "$LINT"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004809$as_echo "$LINT" >&6; }
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004810else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004812$as_echo "no" >&6; }
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004813fi
4814
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004815
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004816 test -n "$LINT" && break
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004817done
4818
4819if test "$LINT" = "lint"
4820then
4821 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4822 fi
4823
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004824
Huw Davies00acb5f2004-08-17 22:33:14 +00004825for ac_prog in fontforge
4826do
4827 # Extract the first word of "$ac_prog", so it can be a program name with args.
4828set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004830$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004831if ${ac_cv_prog_FONTFORGE+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004832 $as_echo_n "(cached) " >&6
Huw Davies00acb5f2004-08-17 22:33:14 +00004833else
4834 if test -n "$FONTFORGE"; then
4835 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4836else
4837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838for as_dir in $PATH
4839do
4840 IFS=$as_save_IFS
4841 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004842 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004843 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 +00004844 ac_cv_prog_FONTFORGE="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Huw Davies00acb5f2004-08-17 22:33:14 +00004846 break 2
4847 fi
4848done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004849 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004850IFS=$as_save_IFS
Huw Davies00acb5f2004-08-17 22:33:14 +00004851
4852fi
4853fi
4854FONTFORGE=$ac_cv_prog_FONTFORGE
4855if test -n "$FONTFORGE"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004857$as_echo "$FONTFORGE" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00004858else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004860$as_echo "no" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00004861fi
4862
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004863
Huw Davies00acb5f2004-08-17 22:33:14 +00004864 test -n "$FONTFORGE" && break
4865done
4866test -n "$FONTFORGE" || FONTFORGE="false"
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00004867
Mike McCormack90c75bd2005-08-08 18:36:53 +00004868for ac_prog in pkg-config
4869do
4870 # Extract the first word of "$ac_prog", so it can be a program name with args.
4871set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004873$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004874if ${ac_cv_prog_PKG_CONFIG+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004875 $as_echo_n "(cached) " >&6
Mike McCormack90c75bd2005-08-08 18:36:53 +00004876else
4877 if test -n "$PKG_CONFIG"; then
4878 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4879else
4880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881for as_dir in $PATH
4882do
4883 IFS=$as_save_IFS
4884 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004885 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004886 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 +00004887 ac_cv_prog_PKG_CONFIG="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormack90c75bd2005-08-08 18:36:53 +00004889 break 2
4890 fi
4891done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004892 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004893IFS=$as_save_IFS
Mike McCormack90c75bd2005-08-08 18:36:53 +00004894
4895fi
4896fi
4897PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4898if test -n "$PKG_CONFIG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004900$as_echo "$PKG_CONFIG" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00004901else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004903$as_echo "no" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00004904fi
4905
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004906
Mike McCormack90c75bd2005-08-08 18:36:53 +00004907 test -n "$PKG_CONFIG" && break
4908done
4909test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4910
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004911for ac_prog in rsvg
4912do
4913 # Extract the first word of "$ac_prog", so it can be a program name with args.
4914set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004916$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004917if ${ac_cv_prog_RSVG+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004918 $as_echo_n "(cached) " >&6
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004919else
4920 if test -n "$RSVG"; then
4921 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4922else
4923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924for as_dir in $PATH
4925do
4926 IFS=$as_save_IFS
4927 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004928 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4930 ac_cv_prog_RSVG="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004932 break 2
4933 fi
4934done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004935 done
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004936IFS=$as_save_IFS
4937
4938fi
4939fi
4940RSVG=$ac_cv_prog_RSVG
4941if test -n "$RSVG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004943$as_echo "$RSVG" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004944else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004946$as_echo "no" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004947fi
4948
4949
4950 test -n "$RSVG" && break
4951done
4952test -n "$RSVG" || RSVG="false"
4953
Joel Holdsworth476a2be2010-04-05 11:15:03 +01004954for ac_prog in convert
4955do
4956 # Extract the first word of "$ac_prog", so it can be a program name with args.
4957set dummy $ac_prog; ac_word=$2
4958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4959$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004960if ${ac_cv_prog_CONVERT+:} false; then :
Joel Holdsworth476a2be2010-04-05 11:15:03 +01004961 $as_echo_n "(cached) " >&6
4962else
4963 if test -n "$CONVERT"; then
4964 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
4965else
4966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967for as_dir in $PATH
4968do
4969 IFS=$as_save_IFS
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4973 ac_cv_prog_CONVERT="$ac_prog"
4974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4975 break 2
4976 fi
4977done
4978 done
4979IFS=$as_save_IFS
4980
4981fi
4982fi
4983CONVERT=$ac_cv_prog_CONVERT
4984if test -n "$CONVERT"; then
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
4986$as_echo "$CONVERT" >&6; }
4987else
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989$as_echo "no" >&6; }
4990fi
4991
4992
4993 test -n "$CONVERT" && break
4994done
4995test -n "$CONVERT" || CONVERT="false"
4996
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004997for ac_prog in icotool
4998do
4999 # Extract the first word of "$ac_prog", so it can be a program name with args.
5000set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005002$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005003if ${ac_cv_prog_ICOTOOL+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005004 $as_echo_n "(cached) " >&6
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005005else
5006 if test -n "$ICOTOOL"; then
5007 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5008else
5009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010for as_dir in $PATH
5011do
5012 IFS=$as_save_IFS
5013 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005014 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5016 ac_cv_prog_ICOTOOL="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005018 break 2
5019 fi
5020done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005021 done
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005022IFS=$as_save_IFS
5023
5024fi
5025fi
5026ICOTOOL=$ac_cv_prog_ICOTOOL
5027if test -n "$ICOTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005029$as_echo "$ICOTOOL" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005030else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005032$as_echo "no" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005033fi
5034
5035
5036 test -n "$ICOTOOL" && break
5037done
5038test -n "$ICOTOOL" || ICOTOOL="false"
5039
Alexandre Julliard268976b2011-10-22 15:23:14 +02005040for ac_prog in msgfmt
5041do
5042 # Extract the first word of "$ac_prog", so it can be a program name with args.
5043set dummy $ac_prog; ac_word=$2
5044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045$as_echo_n "checking for $ac_word... " >&6; }
5046if ${ac_cv_prog_MSGFMT+:} false; then :
5047 $as_echo_n "(cached) " >&6
5048else
5049 if test -n "$MSGFMT"; then
5050 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5051else
5052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053for as_dir in $PATH
5054do
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_prog_MSGFMT="$ac_prog"
5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 break 2
5062 fi
5063done
5064 done
5065IFS=$as_save_IFS
5066
5067fi
5068fi
5069MSGFMT=$ac_cv_prog_MSGFMT
5070if test -n "$MSGFMT"; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5072$as_echo "$MSGFMT" >&6; }
5073else
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075$as_echo "no" >&6; }
5076fi
5077
5078
5079 test -n "$MSGFMT" && break
5080done
5081test -n "$MSGFMT" || MSGFMT="false"
5082
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005083
Andrew Nguyen2eda9c72010-05-25 22:20:14 -05005084if test "x$enable_maintainer_mode" != "xyes"
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005085then
Andrew Nguyen2eda9c72010-05-25 22:20:14 -05005086 MAINTAINER_MODE=\#
5087
5088else
Alexandre Julliard9797da42011-04-27 17:37:43 +02005089 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5090 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 +01005091
5092 if test "$CONVERT" = false
5093 then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005094 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
Joel Holdsworthb9eae1e2010-05-16 23:07:40 +01005095 else
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5097$as_echo_n "checking for recent enough imagemagick... " >&6; }
5098 convert_version=`convert --version | head -n1`
5099 if test "x$convert_version" != "x"
5100 then
5101 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5102 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5103 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5104 then
5105 CONVERT=false
Joel Holdsworthb9eae1e2010-05-16 23:07:40 +01005106 fi
5107 fi
5108 if test "$CONVERT" = false
5109 then
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5111$as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005112 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 +01005113 else
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5115$as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5116 fi
5117 fi
Joel Holdsworth425f1382010-04-05 11:14:47 +01005118
5119 if test "$ICOTOOL" = false
5120 then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005121 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
Joel Holdsworth425f1382010-04-05 11:14:47 +01005122 else
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5124$as_echo_n "checking for recent enough icotool... " >&6; }
5125 icotool_version=`icotool --version | head -n1`
5126 if test "x$icotool_version" != "x"
5127 then
Joel Holdsworth9571f782010-05-16 23:07:33 +01005128 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5129 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
Joel Holdsworth425f1382010-04-05 11:14:47 +01005130 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5131 then
5132 ICOTOOL=false
5133 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5134 fi
5135 fi
5136 if test "$ICOTOOL" = false
5137 then
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5139$as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005140 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 +01005141 else
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5143$as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5144 fi
5145 fi
5146
Alexandre Julliard268976b2011-10-22 15:23:14 +02005147 with_gettext=yes
5148 with_gettextpo=yes
5149 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5150fi
5151
5152test "x$with_gettext" != xno || MSGFMT=false
Christian Costa94969302012-03-05 20:00:20 +01005153if test "$MSGFMT" != "false"
5154then
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5156$as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5157 cat >conftest.po <<EOF
5158# comment
5159msgctxt "ctxt"
5160msgid "id"
5161msgstr "str"
5162EOF
5163 if $MSGFMT -o /dev/null conftest.po 2>&5
5164 then
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5166$as_echo "yes" >&6; }
5167 else
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169$as_echo "no" >&6; }
5170 MSGFMT=false
5171 fi
5172fi
Alexandre Julliard268976b2011-10-22 15:23:14 +02005173if test "$MSGFMT" = false; then :
5174 case "x$with_gettext" in
Christian Costa94969302012-03-05 20:00:20 +01005175 x) as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
Alexandre Julliard268976b2011-10-22 15:23:14 +02005176 xno) ;;
Christian Costa94969302012-03-05 20:00:20 +01005177 *) as_fn_error $? "gettext tools not found (or too old), translations won't be built.
Alexandre Julliard268976b2011-10-22 15:23:14 +02005178This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5179esac
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005180fi
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00005181
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005182
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005184$as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005185if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005186 $as_echo_n "(cached) " >&6
Alexandre Julliard902da691995-11-05 14:39:02 +00005187else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005188 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005189LIBS="-li386 $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005191/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005192
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005193/* Override any GCC internal prototype to avoid an error.
5194 Use char because int might match the return type of a GCC
5195 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005196#ifdef __cplusplus
5197extern "C"
5198#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005199char i386_set_ldt ();
5200int
5201main ()
5202{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005203return i386_set_ldt ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005204 ;
5205 return 0;
5206}
5207_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005208if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005209 ac_cv_lib_i386_i386_set_ldt=yes
Alexandre Julliard902da691995-11-05 14:39:02 +00005210else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005211 ac_cv_lib_i386_i386_set_ldt=no
Alexandre Julliard902da691995-11-05 14:39:02 +00005212fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005213rm -f core conftest.err conftest.$ac_objext \
5214 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005215LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005216fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005218$as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005219if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005220 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005221#define HAVE_LIBI386 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005222_ACEOF
Alexandre Julliard02e90081998-01-04 17:49:09 +00005223
5224 LIBS="-li386 $LIBS"
5225
Alexandre Julliard02e90081998-01-04 17:49:09 +00005226fi
5227
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005229$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005230if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005231 $as_echo_n "(cached) " >&6
Todd Vierlingecc76691998-12-15 17:49:02 +00005232else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005233 ac_check_lib_save_LIBS=$LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005234LIBS="-lossaudio $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005236/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005237
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005238/* Override any GCC internal prototype to avoid an error.
5239 Use char because int might match the return type of a GCC
5240 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005241#ifdef __cplusplus
5242extern "C"
5243#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005244char _oss_ioctl ();
5245int
5246main ()
5247{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005248return _oss_ioctl ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005249 ;
5250 return 0;
5251}
5252_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005253if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005254 ac_cv_lib_ossaudio__oss_ioctl=yes
Todd Vierlingecc76691998-12-15 17:49:02 +00005255else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005256 ac_cv_lib_ossaudio__oss_ioctl=no
Todd Vierlingecc76691998-12-15 17:49:02 +00005257fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005258rm -f core conftest.err conftest.$ac_objext \
5259 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005260LIBS=$ac_check_lib_save_LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005261fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005263$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005264if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005265 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005266#define HAVE_LIBOSSAUDIO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005267_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00005268
5269 LIBS="-lossaudio $LIBS"
5270
Todd Vierlingecc76691998-12-15 17:49:02 +00005271fi
5272
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005273
Alexandre Julliard82776022005-08-08 11:17:25 +00005274XLIB=""
Huw Daviese82dfab2004-08-04 19:10:26 +00005275
Huw Daviese82dfab2004-08-04 19:10:26 +00005276OPENGL_LIBS=""
Huw Daviese82dfab2004-08-04 19:10:26 +00005277
Rein Klazes7ff12562004-11-09 20:16:35 +00005278
Alexandre Julliard82776022005-08-08 11:17:25 +00005279
Eric Pouechbc56c4e2009-08-25 19:33:28 +02005280# Check whether --enable-largefile was given.
5281if test "${enable_largefile+set}" = set; then :
5282 enableval=$enable_largefile;
5283fi
5284
5285if test "$enable_largefile" != no; then
5286
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5288$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005289if ${ac_cv_sys_largefile_CC+:} false; then :
Eric Pouechbc56c4e2009-08-25 19:33:28 +02005290 $as_echo_n "(cached) " >&6
5291else
5292 ac_cv_sys_largefile_CC=no
5293 if test "$GCC" != yes; then
5294 ac_save_CC=$CC
5295 while :; do
5296 # IRIX 6.2 and later do not support large files by default,
5297 # so use the C compiler's -n32 option if that helps.
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299/* end confdefs.h. */
5300#include <sys/types.h>
5301 /* Check that off_t can represent 2**63 - 1 correctly.
5302 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5303 since some C++ compilers masquerading as C compilers
5304 incorrectly reject 9223372036854775807. */
5305#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5306 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5307 && LARGE_OFF_T % 2147483647 == 1)
5308 ? 1 : -1];
5309int
5310main ()
5311{
5312
5313 ;
5314 return 0;
5315}
5316_ACEOF
5317 if ac_fn_c_try_compile "$LINENO"; then :
5318 break
5319fi
5320rm -f core conftest.err conftest.$ac_objext
5321 CC="$CC -n32"
5322 if ac_fn_c_try_compile "$LINENO"; then :
5323 ac_cv_sys_largefile_CC=' -n32'; break
5324fi
5325rm -f core conftest.err conftest.$ac_objext
5326 break
5327 done
5328 CC=$ac_save_CC
5329 rm -f conftest.$ac_ext
5330 fi
5331fi
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5333$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5334 if test "$ac_cv_sys_largefile_CC" != no; then
5335 CC=$CC$ac_cv_sys_largefile_CC
5336 fi
5337
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5339$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005340if ${ac_cv_sys_file_offset_bits+:} false; then :
Eric Pouechbc56c4e2009-08-25 19:33:28 +02005341 $as_echo_n "(cached) " >&6
5342else
5343 while :; do
5344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345/* end confdefs.h. */
5346#include <sys/types.h>
5347 /* Check that off_t can represent 2**63 - 1 correctly.
5348 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5349 since some C++ compilers masquerading as C compilers
5350 incorrectly reject 9223372036854775807. */
5351#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5352 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5353 && LARGE_OFF_T % 2147483647 == 1)
5354 ? 1 : -1];
5355int
5356main ()
5357{
5358
5359 ;
5360 return 0;
5361}
5362_ACEOF
5363if ac_fn_c_try_compile "$LINENO"; then :
5364 ac_cv_sys_file_offset_bits=no; break
5365fi
5366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368/* end confdefs.h. */
5369#define _FILE_OFFSET_BITS 64
5370#include <sys/types.h>
5371 /* Check that off_t can represent 2**63 - 1 correctly.
5372 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5373 since some C++ compilers masquerading as C compilers
5374 incorrectly reject 9223372036854775807. */
5375#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5376 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5377 && LARGE_OFF_T % 2147483647 == 1)
5378 ? 1 : -1];
5379int
5380main ()
5381{
5382
5383 ;
5384 return 0;
5385}
5386_ACEOF
5387if ac_fn_c_try_compile "$LINENO"; then :
5388 ac_cv_sys_file_offset_bits=64; break
5389fi
5390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391 ac_cv_sys_file_offset_bits=unknown
5392 break
5393done
5394fi
5395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5396$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5397case $ac_cv_sys_file_offset_bits in #(
5398 no | unknown) ;;
5399 *)
5400cat >>confdefs.h <<_ACEOF
5401#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5402_ACEOF
5403;;
5404esac
5405rm -rf conftest*
5406 if test $ac_cv_sys_file_offset_bits = unknown; then
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5408$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005409if ${ac_cv_sys_large_files+:} false; then :
Eric Pouechbc56c4e2009-08-25 19:33:28 +02005410 $as_echo_n "(cached) " >&6
5411else
5412 while :; do
5413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414/* end confdefs.h. */
5415#include <sys/types.h>
5416 /* Check that off_t can represent 2**63 - 1 correctly.
5417 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5418 since some C++ compilers masquerading as C compilers
5419 incorrectly reject 9223372036854775807. */
5420#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5421 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5422 && LARGE_OFF_T % 2147483647 == 1)
5423 ? 1 : -1];
5424int
5425main ()
5426{
5427
5428 ;
5429 return 0;
5430}
5431_ACEOF
5432if ac_fn_c_try_compile "$LINENO"; then :
5433 ac_cv_sys_large_files=no; break
5434fi
5435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437/* end confdefs.h. */
5438#define _LARGE_FILES 1
5439#include <sys/types.h>
5440 /* Check that off_t can represent 2**63 - 1 correctly.
5441 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5442 since some C++ compilers masquerading as C compilers
5443 incorrectly reject 9223372036854775807. */
5444#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5445 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5446 && LARGE_OFF_T % 2147483647 == 1)
5447 ? 1 : -1];
5448int
5449main ()
5450{
5451
5452 ;
5453 return 0;
5454}
5455_ACEOF
5456if ac_fn_c_try_compile "$LINENO"; then :
5457 ac_cv_sys_large_files=1; break
5458fi
5459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 ac_cv_sys_large_files=unknown
5461 break
5462done
5463fi
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5465$as_echo "$ac_cv_sys_large_files" >&6; }
5466case $ac_cv_sys_large_files in #(
5467 no | unknown) ;;
5468 *)
5469cat >>confdefs.h <<_ACEOF
5470#define _LARGE_FILES $ac_cv_sys_large_files
5471_ACEOF
5472;;
5473esac
5474rm -rf conftest*
5475 fi
5476fi
5477
5478
Alexandre Julliard40664c02009-02-11 20:40:58 +01005479ac_ext=c
5480ac_cpp='$CPP $CPPFLAGS'
5481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5483ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005485$as_echo_n "checking how to run the C preprocessor... " >&6; }
5486# On Suns, sometimes $CPP names a directory.
5487if test -n "$CPP" && test -d "$CPP"; then
5488 CPP=
5489fi
5490if test -z "$CPP"; then
Alexandre Julliard9797da42011-04-27 17:37:43 +02005491 if ${ac_cv_prog_CPP+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005492 $as_echo_n "(cached) " >&6
5493else
5494 # Double quotes because CPP needs to be expanded
5495 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5496 do
5497 ac_preproc_ok=false
5498for ac_c_preproc_warn_flag in '' yes
5499do
5500 # Use a header file that comes with gcc, so configuring glibc
5501 # with a fresh cross-compiler works.
5502 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5503 # <limits.h> exists even on freestanding compilers.
5504 # On the NeXT, cc -E runs the code through the compiler's parser,
5505 # not just through cpp. "Syntax error" is here to catch this case.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005507/* end confdefs.h. */
5508#ifdef __STDC__
5509# include <limits.h>
5510#else
5511# include <assert.h>
5512#endif
5513 Syntax error
5514_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005515if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005516
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005517else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005518 # Broken: fails on valid input.
5519continue
5520fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005521rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005522
5523 # OK, works on sane cases. Now check whether nonexistent headers
5524 # can be detected and how.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005526/* end confdefs.h. */
5527#include <ac_nonexistent.h>
5528_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005529if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005530 # Broken: success on invalid input.
5531continue
5532else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005533 # Passes both tests.
5534ac_preproc_ok=:
5535break
5536fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005537rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005538
5539done
5540# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005541rm -f conftest.i conftest.err conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005542if $ac_preproc_ok; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005543 break
5544fi
5545
5546 done
5547 ac_cv_prog_CPP=$CPP
5548
5549fi
5550 CPP=$ac_cv_prog_CPP
5551else
5552 ac_cv_prog_CPP=$CPP
5553fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005555$as_echo "$CPP" >&6; }
5556ac_preproc_ok=false
5557for ac_c_preproc_warn_flag in '' yes
5558do
5559 # Use a header file that comes with gcc, so configuring glibc
5560 # with a fresh cross-compiler works.
5561 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5562 # <limits.h> exists even on freestanding compilers.
5563 # On the NeXT, cc -E runs the code through the compiler's parser,
5564 # not just through cpp. "Syntax error" is here to catch this case.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005566/* end confdefs.h. */
5567#ifdef __STDC__
5568# include <limits.h>
5569#else
5570# include <assert.h>
5571#endif
5572 Syntax error
5573_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005574if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005575
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005576else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005577 # Broken: fails on valid input.
5578continue
5579fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005580rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005581
5582 # OK, works on sane cases. Now check whether nonexistent headers
5583 # can be detected and how.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005585/* end confdefs.h. */
5586#include <ac_nonexistent.h>
5587_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005588if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005589 # Broken: success on invalid input.
5590continue
5591else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005592 # Passes both tests.
5593ac_preproc_ok=:
5594break
5595fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005596rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005597
5598done
5599# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005600rm -f conftest.i conftest.err conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005601if $ac_preproc_ok; then :
5602
Alexandre Julliard40664c02009-02-11 20:40:58 +01005603else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005606as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
Alexandre Julliard9797da42011-04-27 17:37:43 +02005607See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliard40664c02009-02-11 20:40:58 +01005608fi
5609
5610ac_ext=c
5611ac_cpp='$CPP $CPPFLAGS'
5612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5614ac_compiler_gnu=$ac_cv_c_compiler_gnu
5615
5616
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005618$as_echo_n "checking for ANSI C header files... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005619if ${ac_cv_header_stdc+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005620 $as_echo_n "(cached) " >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00005621else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005623/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005624#include <stdlib.h>
5625#include <stdarg.h>
5626#include <string.h>
5627#include <float.h>
5628
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005629int
5630main ()
5631{
5632
5633 ;
5634 return 0;
5635}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005636_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005637if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005638 ac_cv_header_stdc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005639else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005640 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005641fi
Jeremy White0ebeb532006-06-20 13:18:41 +02005642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005643
5644if test $ac_cv_header_stdc = yes; then
5645 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005647/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005648#include <string.h>
5649
5650_ACEOF
5651if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005652 $EGREP "memchr" >/dev/null 2>&1; then :
5653
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005654else
5655 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005656fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005657rm -f conftest*
5658
5659fi
5660
5661if test $ac_cv_header_stdc = yes; then
5662 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005664/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005665#include <stdlib.h>
5666
5667_ACEOF
5668if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005669 $EGREP "free" >/dev/null 2>&1; then :
5670
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005671else
5672 ac_cv_header_stdc=no
5673fi
5674rm -f conftest*
5675
5676fi
5677
5678if test $ac_cv_header_stdc = yes; then
5679 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005680 if test "$cross_compiling" = yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005681 :
5682else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005684/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005685#include <ctype.h>
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005686#include <stdlib.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005687#if ((' ' & 0x0FF) == 0x020)
5688# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5689# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5690#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005691# define ISLOWER(c) \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005692 (('a' <= (c) && (c) <= 'i') \
5693 || ('j' <= (c) && (c) <= 'r') \
5694 || ('s' <= (c) && (c) <= 'z'))
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005695# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5696#endif
5697
5698#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5699int
5700main ()
5701{
5702 int i;
5703 for (i = 0; i < 256; i++)
5704 if (XOR (islower (i), ISLOWER (i))
Alexandre Julliard875927f2004-01-02 01:55:29 +00005705 || toupper (i) != TOUPPER (i))
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005706 return 2;
5707 return 0;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005708}
5709_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005710if ac_fn_c_try_run "$LINENO"; then :
5711
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005712else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005713 ac_cv_header_stdc=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005714fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005715rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5716 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005717fi
5718
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005719fi
5720fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005722$as_echo "$ac_cv_header_stdc" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005723if test $ac_cv_header_stdc = yes; then
5724
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005725$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005726
5727fi
5728
5729# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005730for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005731 inttypes.h stdint.h unistd.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005732do :
5733 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5734ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5735"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005736if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005737 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005738#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005739_ACEOF
5740
5741fi
5742
5743done
5744
5745
Rein Klazes7ff12562004-11-09 20:16:35 +00005746for ac_header in \
Chris Robinson862965f2009-08-25 03:26:35 -07005747 AL/al.h \
Ken Thomases21137cd2011-01-05 07:25:23 -06005748 ApplicationServices/ApplicationServices.h \
Aric Stewart4430ab42010-03-17 10:58:32 -05005749 AudioToolbox/AudioConverter.h \
Emmanuel Maillard144a5352006-05-28 22:46:23 +02005750 AudioUnit/AudioUnit.h \
Charles Davis459d9422011-01-29 16:45:53 -07005751 AudioUnit/AudioComponent.h \
Adam Martinson2eb2f712010-12-28 12:46:09 -06005752 CL/cl.h \
Pierre d'Herbemont08884512006-10-24 15:26:33 +02005753 Carbon/Carbon.h \
Emmanuel Maillard144a5352006-05-28 22:46:23 +02005754 CoreAudio/CoreAudio.h \
Alexandre Julliard66f45a52006-11-06 13:33:16 +01005755 DiskArbitration/DiskArbitration.h \
Phil Krylov0f6c0392005-07-01 19:15:26 +00005756 IOKit/IOKitLib.h \
Aric Stewart225a4942009-03-10 14:59:20 -05005757 IOKit/hid/IOHIDLib.h \
Ken Thomases0b08f192009-09-09 22:23:35 -05005758 OpenAL/al.h \
Peter Urbanec65c84d72010-12-02 23:41:48 +11005759 OpenCL/opencl.h \
Alexandre Julliardfa3ddd82011-01-14 15:59:51 +01005760 QuickTime/ImageCompression.h \
Ken Thomases25ed6872011-03-13 18:58:44 -05005761 Security/Security.h \
Eric Durbin020b0ef2008-06-24 22:45:51 -05005762 alias.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005763 alsa/asoundlib.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005764 arpa/inet.h \
5765 arpa/nameser.h \
Maarten Lankhorst888eaae2005-04-27 09:46:25 +00005766 asm/types.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005767 capi20.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005768 curses.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005769 direct.h \
Rob Shearman87175c62008-10-03 12:55:21 +01005770 dirent.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005771 dlfcn.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005772 elf.h \
5773 float.h \
Alexandre Julliard7d5e5652009-06-01 12:51:54 +02005774 fnmatch.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005775 fontconfig/fontconfig.h \
5776 getopt.h \
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +01005777 gettext-po.h \
Alexandre Julliard46678dc2008-12-09 17:09:42 +01005778 grp.h \
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +02005779 gsm.h \
Maarten Lankhorstc186d8a2009-08-05 11:35:50 +02005780 gsm/gsm.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005781 ieeefp.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005782 inet/mib2.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005783 io.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005784 jpeglib.h \
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +01005785 kstat.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00005786 lber.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005787 lcms.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005788 lcms/lcms.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00005789 ldap.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005790 link.h \
5791 linux/cdrom.h \
5792 linux/compiler.h \
5793 linux/hdreg.h \
5794 linux/input.h \
5795 linux/ioctl.h \
5796 linux/joystick.h \
5797 linux/major.h \
5798 linux/param.h \
5799 linux/serial.h \
Francois Gougetda1a3522008-12-28 10:35:02 +01005800 linux/types.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005801 linux/ucdrom.h \
Ken Thomasesd35c0e82009-03-11 09:05:53 -05005802 mach-o/nlist.h \
Austin English95740b32010-10-08 00:33:52 -07005803 mach-o/loader.h \
Alexandre Julliard150b5dc2006-12-29 20:02:02 +01005804 mach/mach.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00005805 mach/machine.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005806 machine/cpu.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00005807 machine/limits.h \
Austin English40b3d2e2010-05-23 21:18:17 -05005808 machine/sysarch.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005809 mntent.h \
Aric Stewartdb71d7c2009-08-19 09:37:48 -05005810 mpg123.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005811 ncurses.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005812 netdb.h \
5813 netinet/in.h \
5814 netinet/in_systm.h \
5815 netinet/tcp.h \
5816 netinet/tcp_fsm.h \
Robert Shearman1e5153c2005-12-01 11:18:43 +01005817 openssl/err.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005818 openssl/ssl.h \
Alexandre Julliard00302152007-07-02 19:54:00 +02005819 png.h \
Steven Edwards57279182005-03-04 12:38:36 +00005820 poll.h \
Albert Lee01b972d2009-11-20 18:35:26 -05005821 port.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005822 process.h \
5823 pthread.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005824 pwd.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005825 sched.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005826 scsi/scsi.h \
5827 scsi/scsi_ioctl.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005828 scsi/sg.h \
Austin English2d7ccb32009-06-13 18:01:24 -05005829 stdbool.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005830 stdint.h \
5831 strings.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005832 stropts.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005833 sys/asoundlib.h \
Charles Davis4e44e152011-01-18 13:09:44 -07005834 sys/attr.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005835 sys/cdio.h \
5836 sys/elf32.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005837 sys/epoll.h \
Alexandre Julliardc8278922006-08-04 22:11:00 +02005838 sys/event.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005839 sys/exec_elf.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005840 sys/filio.h \
Alexandre Julliard61a70362009-06-26 15:45:03 +02005841 sys/inotify.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005842 sys/ioctl.h \
5843 sys/ipc.h \
Gerald Pfeiferebe04842005-08-22 09:33:37 +00005844 sys/limits.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005845 sys/link.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005846 sys/mman.h \
5847 sys/modem.h \
5848 sys/msg.h \
Hans Leidekker0844b702006-01-26 13:23:08 +01005849 sys/mtio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005850 sys/param.h \
5851 sys/poll.h \
Alexandre Julliard9603ee02006-04-06 11:57:37 +02005852 sys/prctl.h \
Austin English94021a12009-01-20 17:42:53 -06005853 sys/protosw.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005854 sys/ptrace.h \
Mike McCormack0cd06262006-03-01 01:07:04 +09005855 sys/resource.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005856 sys/scsiio.h \
5857 sys/shm.h \
5858 sys/signal.h \
5859 sys/socket.h \
Mark Adams25696352007-07-10 23:39:21 -04005860 sys/socketvar.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005861 sys/sockio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005862 sys/statvfs.h \
5863 sys/strtio.h \
5864 sys/syscall.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005865 sys/tihdr.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005866 sys/time.h \
Austin English8b195912009-01-21 21:59:11 -06005867 sys/timeout.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005868 sys/times.h \
5869 sys/uio.h \
5870 sys/un.h \
Alexandre Julliard66eb4bd2008-12-09 19:33:06 +01005871 sys/utsname.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005872 sys/vm86.h \
5873 sys/wait.h \
5874 syscall.h \
5875 termios.h \
Vincent Povirk73cd5692010-03-08 17:07:29 -06005876 tiffio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005877 unistd.h \
5878 utime.h \
John Reiser0a2c94e2008-07-24 13:31:53 -07005879 valgrind/memcheck.h \
Jacek Caban11ca05f2009-05-29 23:35:13 +02005880 valgrind/valgrind.h \
5881 zlib.h
Rein Klazes7ff12562004-11-09 20:16:35 +00005882
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005883do :
5884 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5885ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005886if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Rein Klazes7ff12562004-11-09 20:16:35 +00005887 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005888#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Rein Klazes7ff12562004-11-09 20:16:35 +00005889_ACEOF
5890
5891fi
5892
5893done
5894
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005896$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005897if ${ac_cv_header_stat_broken+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005898 $as_echo_n "(cached) " >&6
Rein Klazes7ff12562004-11-09 20:16:35 +00005899else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Rein Klazes7ff12562004-11-09 20:16:35 +00005901/* end confdefs.h. */
5902#include <sys/types.h>
5903#include <sys/stat.h>
5904
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005905#if defined S_ISBLK && defined S_IFDIR
Phil Krylovf0ca5862006-11-05 23:03:46 +03005906extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005907#endif
5908
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005909#if defined S_ISBLK && defined S_IFCHR
Phil Krylovf0ca5862006-11-05 23:03:46 +03005910extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005911#endif
5912
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005913#if defined S_ISLNK && defined S_IFREG
Phil Krylovf0ca5862006-11-05 23:03:46 +03005914extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005915#endif
5916
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005917#if defined S_ISSOCK && defined S_IFREG
Phil Krylovf0ca5862006-11-05 23:03:46 +03005918extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005919#endif
5920
5921_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005922if ac_fn_c_try_compile "$LINENO"; then :
Rein Klazes7ff12562004-11-09 20:16:35 +00005923 ac_cv_header_stat_broken=no
Phil Krylovf0ca5862006-11-05 23:03:46 +03005924else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005925 ac_cv_header_stat_broken=yes
Phil Krylovf0ca5862006-11-05 23:03:46 +03005926fi
Phil Krylovf0ca5862006-11-05 23:03:46 +03005927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Rein Klazes7ff12562004-11-09 20:16:35 +00005928fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005930$as_echo "$ac_cv_header_stat_broken" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00005931if test $ac_cv_header_stat_broken = yes; then
5932
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005933$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
Rein Klazes7ff12562004-11-09 20:16:35 +00005934
5935fi
5936
5937
5938
Austin English51094be2008-12-27 14:53:53 -06005939for 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 +02005940do :
5941 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5942ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Francois Gouget9e67edf2008-03-06 12:34:48 +01005943 #ifdef HAVE_SYS_PARAM_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005944 # include <sys/param.h>
5945 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005946"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005947if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005948 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005949#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005950_ACEOF
5951
5952fi
5953
5954done
5955
5956
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02005957for ac_header in \
5958 netinet/ip.h \
5959 net/if.h \
5960 net/if_arp.h \
5961 net/if_dl.h \
5962 net/if_types.h \
5963 net/route.h \
5964 netinet/if_ether.h \
Austin English337067a2009-01-22 10:44:06 -06005965 netinet/if_inarp.h \
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02005966 netinet/in_pcb.h \
5967 netinet/ip_icmp.h \
5968 netinet/ip_var.h \
5969 netinet/udp.h \
5970 netipx/ipx.h \
5971
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005972do :
5973 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5974ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Francois Gouget9e67edf2008-03-06 12:34:48 +01005975 #ifdef HAVE_SYS_SOCKET_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005976 # include <sys/socket.h>
5977 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01005978 #ifdef HAVE_SYS_SOCKETVAR_H
Ken Thomasesa609fee2007-10-19 16:18:17 -05005979 # include <sys/socketvar.h>
5980 #endif
Austin Englishbb3f2582009-01-26 23:34:42 -06005981 #ifdef HAVE_NET_ROUTE_H
5982 # include <net/route.h>
5983 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01005984 #ifdef HAVE_NETINET_IN_H
Ken Thomasesffd78b12007-10-19 16:18:27 -05005985 # include <netinet/in.h>
5986 #endif
Austin English03173932009-01-23 13:29:42 -06005987 #ifdef HAVE_NETINET_IN_SYSTM_H
5988 # include <netinet/in_systm.h>
5989 #endif
Alexandre Julliardd7e846c2009-01-30 14:01:12 +01005990 #ifdef HAVE_NET_IF_H
5991 # include <net/if.h>
5992 #endif
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02005993 #ifdef HAVE_NETINET_IP_H
5994 # include <netinet/ip.h>
5995 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005996"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005997if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005998 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005999#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006000_ACEOF
6001
6002fi
6003
6004done
6005
Mark Adams25696352007-07-10 23:39:21 -04006006
Austin English03173932009-01-23 13:29:42 -06006007for 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 +02006008do :
6009 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6010ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Eric Durbin020b0ef2008-06-24 22:45:51 -05006011 #ifdef HAVE_ALIAS_H
6012 # include <alias.h>
6013 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006014 #ifdef HAVE_SYS_SOCKET_H
Mark Adams25696352007-07-10 23:39:21 -04006015 # include <sys/socket.h>
6016 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006017 #ifdef HAVE_SYS_SOCKETVAR_H
Mark Adams25696352007-07-10 23:39:21 -04006018 # include <sys/socketvar.h>
6019 #endif
Austin English53d3c462009-01-26 23:47:49 -06006020 #ifdef HAVE_SYS_TIMEOUT_H
6021 # include <sys/timeout.h>
6022 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006023 #ifdef HAVE_NETINET_IN_H
Mark Adams25696352007-07-10 23:39:21 -04006024 # include <netinet/in.h>
6025 #endif
Austin English03173932009-01-23 13:29:42 -06006026 #ifdef HAVE_NETINET_IN_SYSTM_H
6027 # include <netinet/in_systm.h>
6028 #endif
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02006029 #ifdef HAVE_NETINET_IP_H
6030 # include <netinet/ip.h>
6031 #endif
Eric Durbin6d4eab92008-06-24 22:44:13 -05006032 #ifdef HAVE_NETINET_IP_VAR_H
6033 # include <netinet/ip_var.h>
6034 #endif
Eric Durbin020b0ef2008-06-24 22:45:51 -05006035 #ifdef HAVE_NETINET_IP_ICMP_H
6036 # include <netinet/ip_icmp.h>
6037 #endif
Eric Durbin6d4eab92008-06-24 22:44:13 -05006038 #ifdef HAVE_NETINET_UDP_H
6039 # include <netinet/udp.h>
6040 #endif
Mark Adams25696352007-07-10 23:39:21 -04006041 #ifdef HAVE_NETINET_TCP_H
6042 # include <netinet/tcp.h>
6043 #endif
Austin English03173932009-01-23 13:29:42 -06006044 #ifdef HAVE_NETINET_TCP_TIMER_H
6045 #include <netinet/tcp_timer.h>
6046 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006047"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006048if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Mark Adams25696352007-07-10 23:39:21 -04006049 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01006050#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Mark Adams25696352007-07-10 23:39:21 -04006051_ACEOF
6052
6053fi
6054
6055done
6056
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006057
Juan Lang0ce420d2009-08-12 09:14:16 -07006058for ac_header in linux/ipx.h linux/irda.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006059do :
Juan Lang0ce420d2009-08-12 09:14:16 -07006060 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6061ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Francois Gougetfaf05df2006-08-07 21:52:36 +02006062 #ifdef HAVE_ASM_TYPES_H
6063 # include <asm/types.h>
6064 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006065 #ifdef HAVE_SYS_SOCKET_H
Francois Gougetfaf05df2006-08-07 21:52:36 +02006066 # include <sys/socket.h>
6067 #endif
Francois Gougetda1a3522008-12-28 10:35:02 +01006068 #ifdef HAVE_LINUX_TYPES_H
6069 # include <linux/types.h>
6070 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006071"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006072if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Francois Gougetfaf05df2006-08-07 21:52:36 +02006073 cat >>confdefs.h <<_ACEOF
Juan Lang0ce420d2009-08-12 09:14:16 -07006074#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Francois Gougetfaf05df2006-08-07 21:52:36 +02006075_ACEOF
6076
6077fi
6078
6079done
6080
6081
Austin English2d7ccb32009-06-13 18:01:24 -05006082for ac_header in mach-o/dyld_images.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006083do :
6084 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 -05006085 # include <stdbool.h>
6086 #endif
6087 #ifdef HAVE_STDINT_H
6088 # include <stdint.h>
6089 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006090"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006091if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
Austin English2d7ccb32009-06-13 18:01:24 -05006092 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006093#define HAVE_MACH_O_DYLD_IMAGES_H 1
Austin English2d7ccb32009-06-13 18:01:24 -05006094_ACEOF
6095
6096fi
6097
6098done
6099
6100
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006101for ac_header in resolv.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006102do :
6103 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 +01006104 #ifdef HAVE_SYS_SOCKET_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006105 # include <sys/socket.h>
6106 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006107 #ifdef HAVE_NETINET_IN_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006108 # include <netinet/in.h>
6109 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006110 #ifdef HAVE_ARPA_NAMESER_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006111 # include <arpa/nameser.h>
6112 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006113"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006114if test "x$ac_cv_header_resolv_h" = xyes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006115 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006116#define HAVE_RESOLV_H 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006117_ACEOF
6118
6119fi
6120
6121done
6122
6123
Juan Lange3c0e302010-03-11 18:36:46 -08006124for ac_header in ifaddrs.h
6125do :
6126 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6127"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006128if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
Juan Lange3c0e302010-03-11 18:36:46 -08006129 cat >>confdefs.h <<_ACEOF
6130#define HAVE_IFADDRS_H 1
6131_ACEOF
6132
6133fi
6134
6135done
6136
6137
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006138for ac_header in ucontext.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006139do :
6140 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6141"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006142if test "x$ac_cv_header_ucontext_h" = xyes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006143 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006144#define HAVE_UCONTEXT_H 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006145_ACEOF
6146
6147fi
6148
6149done
6150
6151
Tijl Coosemans60833da2007-08-08 00:25:24 +02006152for ac_header in sys/thr.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006153do :
6154 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 +01006155#ifdef HAVE_UCONTEXT_H
Tijl Coosemans60833da2007-08-08 00:25:24 +02006156#include <ucontext.h>
6157#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006158"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006159if test "x$ac_cv_header_sys_thr_h" = xyes; then :
Tijl Coosemans60833da2007-08-08 00:25:24 +02006160 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006161#define HAVE_SYS_THR_H 1
Tijl Coosemans60833da2007-08-08 00:25:24 +02006162_ACEOF
6163
6164fi
6165
6166done
6167
6168
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006169for ac_header in pthread_np.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006170do :
6171 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 +02006172#include <pthread.h>
6173#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006174"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006175if test "x$ac_cv_header_pthread_np_h" = xyes; then :
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006176 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006177#define HAVE_PTHREAD_NP_H 1
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006178_ACEOF
6179
6180fi
6181
6182done
6183
6184
Rafał Mużyło898d8ab2011-07-14 21:38:14 +02006185for ac_header in linux/videodev.h linux/videodev2.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006186do :
Rafał Mużyło898d8ab2011-07-14 21:38:14 +02006187 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6188ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006189#include <sys/time.h>
6190#endif
6191#include <sys/types.h>
6192#ifdef HAVE_ASM_TYPES_H
6193#include <asm/types.h>
6194#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006195"
Rafał Mużyło898d8ab2011-07-14 21:38:14 +02006196if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006197 cat >>confdefs.h <<_ACEOF
Rafał Mużyło898d8ab2011-07-14 21:38:14 +02006198#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006199_ACEOF
6200
6201fi
6202
6203done
6204
6205
Alexandre Julliardb079add2006-02-24 11:46:17 +01006206for ac_header in linux/capi.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006207do :
6208 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6209"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006210if test "x$ac_cv_header_linux_capi_h" = xyes; then :
Alexandre Julliardb079add2006-02-24 11:46:17 +01006211 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006212#define HAVE_LINUX_CAPI_H 1
Alexandre Julliardb079add2006-02-24 11:46:17 +01006213_ACEOF
6214
6215fi
6216
6217done
6218
6219
6220
Alexandre Julliarda3097622007-07-02 17:27:48 +02006221DLLEXT=""
6222
6223DLLFLAGS="-D_REENTRANT"
6224
6225LDSHARED=""
6226
6227LDDLLFLAGS=""
6228
6229LIBEXT="so"
6230
6231IMPLIBEXT="def"
6232
6233LDRPATH_INSTALL=""
6234
6235LDRPATH_LOCAL=""
6236
Alexandre Julliard950a0f82010-01-26 21:10:14 +01006237STATIC_IMPLIBEXT="def.a"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006238# Extract the first word of "ldd", so it can be a program name with args.
6239set dummy ldd; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006241$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006242if ${ac_cv_path_LDD+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006243 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006244else
6245 case $LDD in
6246 [\\/]* | ?:[\\/]*)
6247 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6248 ;;
6249 *)
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251as_dummy="/sbin:/usr/sbin:$PATH"
6252for as_dir in $as_dummy
6253do
6254 IFS=$as_save_IFS
6255 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006256 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6258 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006260 break 2
6261 fi
6262done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006263 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006264IFS=$as_save_IFS
6265
6266 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6267 ;;
6268esac
6269fi
6270LDD=$ac_cv_path_LDD
6271if test -n "$LDD"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006273$as_echo "$LDD" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006274else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006276$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006277fi
6278
6279
6280
6281case $host_os in
6282 cygwin*|mingw32*)
6283 if test -n "$ac_tool_prefix"; then
6284 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6285set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006287$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006288if ${ac_cv_prog_DLLTOOL+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006289 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006290else
6291 if test -n "$DLLTOOL"; then
6292 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6293else
6294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295for as_dir in $PATH
6296do
6297 IFS=$as_save_IFS
6298 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006299 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6301 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006303 break 2
6304 fi
6305done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006306 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006307IFS=$as_save_IFS
6308
6309fi
6310fi
6311DLLTOOL=$ac_cv_prog_DLLTOOL
6312if test -n "$DLLTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006314$as_echo "$DLLTOOL" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006315else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006317$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006318fi
6319
6320
6321fi
6322if test -z "$ac_cv_prog_DLLTOOL"; then
6323 ac_ct_DLLTOOL=$DLLTOOL
6324 # Extract the first word of "dlltool", so it can be a program name with args.
6325set dummy dlltool; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006327$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006328if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006329 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006330else
6331 if test -n "$ac_ct_DLLTOOL"; then
6332 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6333else
6334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335for as_dir in $PATH
6336do
6337 IFS=$as_save_IFS
6338 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006339 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6341 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006343 break 2
6344 fi
6345done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006346 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006347IFS=$as_save_IFS
6348
6349fi
6350fi
6351ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6352if test -n "$ac_ct_DLLTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006354$as_echo "$ac_ct_DLLTOOL" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006355else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006357$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006358fi
6359
6360 if test "x$ac_ct_DLLTOOL" = x; then
6361 DLLTOOL="false"
6362 else
6363 case $cross_compiling:$ac_tool_warned in
6364yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006365{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006366$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006367ac_tool_warned=yes ;;
6368esac
6369 DLLTOOL=$ac_ct_DLLTOOL
6370 fi
6371else
6372 DLLTOOL="$ac_cv_prog_DLLTOOL"
6373fi
6374
6375 if test -n "$ac_tool_prefix"; then
6376 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6377set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006379$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006380if ${ac_cv_prog_DLLWRAP+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006381 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006382else
6383 if test -n "$DLLWRAP"; then
6384 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6385else
6386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387for as_dir in $PATH
6388do
6389 IFS=$as_save_IFS
6390 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006391 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6393 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006395 break 2
6396 fi
6397done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006398 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006399IFS=$as_save_IFS
6400
6401fi
6402fi
6403DLLWRAP=$ac_cv_prog_DLLWRAP
6404if test -n "$DLLWRAP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006406$as_echo "$DLLWRAP" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006407else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006409$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006410fi
6411
6412
6413fi
6414if test -z "$ac_cv_prog_DLLWRAP"; then
6415 ac_ct_DLLWRAP=$DLLWRAP
6416 # Extract the first word of "dllwrap", so it can be a program name with args.
6417set dummy dllwrap; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006419$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006420if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006421 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006422else
6423 if test -n "$ac_ct_DLLWRAP"; then
6424 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6425else
6426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427for as_dir in $PATH
6428do
6429 IFS=$as_save_IFS
6430 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006431 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6433 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006435 break 2
6436 fi
6437done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006438 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006439IFS=$as_save_IFS
6440
6441fi
6442fi
6443ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6444if test -n "$ac_ct_DLLWRAP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006446$as_echo "$ac_ct_DLLWRAP" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006447else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006449$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006450fi
6451
6452 if test "x$ac_ct_DLLWRAP" = x; then
6453 DLLWRAP="false"
6454 else
6455 case $cross_compiling:$ac_tool_warned in
6456yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006457{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006459ac_tool_warned=yes ;;
6460esac
6461 DLLWRAP=$ac_ct_DLLWRAP
6462 fi
6463else
6464 DLLWRAP="$ac_cv_prog_DLLWRAP"
6465fi
6466
Alexandre Julliarda3097622007-07-02 17:27:48 +02006467 if test "$DLLWRAP" = "false"; then
6468 LIBEXT="a"
6469 else
6470 LIBEXT="dll"
6471 fi
6472 IMPLIBEXT="a"
Alexandre Julliard950a0f82010-01-26 21:10:14 +01006473 STATIC_IMPLIBEXT="a"
Alexandre Julliardec1ebfb2008-09-04 12:29:07 +02006474 enable_iphlpapi=${enable_iphlpapi:-no}
6475 enable_kernel32=${enable_kernel32:-no}
6476 enable_msvcrt=${enable_msvcrt:-no}
6477 enable_ntdll=${enable_ntdll:-no}
6478 enable_ws2_32=${enable_ws2_32:-no}
6479 enable_loader=${enable_loader:-no}
6480 enable_server=${enable_server:-no}
Alexandre Julliard40664c02009-02-11 20:40:58 +01006481 with_x=${with_x:-no}
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01006482 with_pthread=${with_pthread:-no}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006483 ;;
6484 darwin*|macosx*)
6485 DLLEXT=".so"
6486 LIBEXT="dylib"
6487 DLLFLAGS="$DLLFLAGS -fPIC"
6488 LDDLLFLAGS="-bundle -multiply_defined suppress"
6489 LIBWINE_LDFLAGS="-multiply_defined suppress"
6490 LDSHARED="\$(CC) -dynamiclib"
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02006491 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 +01006492 COREFOUNDATIONLIB="-framework CoreFoundation"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006493
6494 IOKITLIB="-framework IOKit -framework CoreFoundation"
6495
Ken Thomases21137cd2011-01-05 07:25:23 -06006496 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6497
Camillo Lugaresi0b5dcba2011-08-02 04:31:53 +02006498 case $host_os in
6499 darwin11*)
6500 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6501 ;;
6502 *)
6503 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6504 ;;
6505 esac
Alexandre Julliarda3097622007-07-02 17:27:48 +02006506 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6507 then
6508 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6509
6510 fi
Alexandre Julliard45db3482011-03-14 14:25:45 +01006511 if test "$ac_cv_header_Security_Security_h" = "yes"
6512 then
6513 SECURITYLIB="-framework Security -framework CoreFoundation"
6514
Charles Davis65634bc2011-10-26 22:57:30 -06006515 ac_save_LIBS="$LIBS"
6516 LIBS="$LIBS $SECURITYLIB"
6517 for ac_func in SSLCopyPeerCertificates
6518do :
6519 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
6520if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
6521 cat >>confdefs.h <<_ACEOF
6522#define HAVE_SSLCOPYPEERCERTIFICATES 1
6523_ACEOF
6524
6525fi
6526done
6527
6528 LIBS="$ac_save_LIBS"
Alexandre Julliard45db3482011-03-14 14:25:45 +01006529 with_gnutls=${with_gnutls:-no}
6530 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006531 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6532 then
Charles Davis459d9422011-01-29 16:45:53 -07006533 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6534 then
6535 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006536
Charles Davis459d9422011-01-29 16:45:53 -07006537 else
6538 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6539
6540 fi
Charles Davisb149d7b2011-01-29 16:45:54 -07006541 ac_save_LIBS="$LIBS"
6542 LIBS="$LIBS $COREAUDIO"
6543 for ac_func in AUGraphAddNode
6544do :
6545 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006546if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
Charles Davisb149d7b2011-01-29 16:45:54 -07006547 cat >>confdefs.h <<_ACEOF
6548#define HAVE_AUGRAPHADDNODE 1
6549_ACEOF
6550
6551fi
6552done
6553
6554 LIBS="$ac_save_LIBS"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006555 fi
Ken Thomases0b08f192009-09-09 22:23:35 -05006556 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6557 then
Maarten Lankhorstd4354992009-12-09 11:52:09 +01006558 FRAMEWORK_OPENAL="-framework OpenAL"
Ken Thomases0b08f192009-09-09 22:23:35 -05006559
Maarten Lankhorstd4354992009-12-09 11:52:09 +01006560
6561cat >>confdefs.h <<_ACEOF
6562#define HAVE_OPENAL 1
6563_ACEOF
6564
6565 ac_cv_lib_openal=yes
Ken Thomases0b08f192009-09-09 22:23:35 -05006566 fi
Alexandre Julliardfac67412010-12-03 14:16:55 +01006567 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6568 then
6569 LIBOPENCL="-framework OpenCL"
6570
6571 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6572 fi
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006573 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6574 then
6575 ac_save_LIBS="$LIBS"
6576 LIBS="$LIBS $IOKITLIB"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006577 for ac_func in IOHIDManagerCreate
6578do :
6579 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006580if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006581 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006582#define HAVE_IOHIDMANAGERCREATE 1
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006583_ACEOF
6584
6585fi
6586done
6587
6588 LIBS="$ac_save_LIBS"
6589 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006590 case $host_cpu in
6591 *powerpc*)
6592 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6593 esac
Alexandre Julliardfa3ddd82011-01-14 15:59:51 +01006594 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6595 then
6596 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6597
6598 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6599 else
6600 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6601 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006602 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6603 then
6604 CARBONLIB="-framework Carbon"
6605
Alexandre Julliarddbb535e2008-08-25 12:12:28 +02006606 enable_winequartz_drv=${enable_winequartz_drv:-yes}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006607 fi
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006608 if test "x$enable_win16" = "xyes"
6609 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006611$as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006612 if test "$cross_compiling" = yes; then :
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006614$as_echo "cross-compiling, assuming yes" >&6; }
6615else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006617/* end confdefs.h. */
6618asm(".text\n"
6619 "bad:\tnop;nop\n"
6620 "good:\tnop;nop\n\t"
6621 ".globl _testfunc\n"
6622 "_testfunc:\tcallw good");
6623 extern void testfunc();
6624int
6625main ()
6626{
6627unsigned short *p = (unsigned short *)testfunc;
6628 return p[0] != 0xe866 || p[1] != 0xfffa
6629 ;
6630 return 0;
6631}
6632_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006633if ac_fn_c_try_run "$LINENO"; then :
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006635$as_echo "yes" >&6; }
6636else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006638$as_echo "no" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006639 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 +02006640fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006641rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6642 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006643fi
6644
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006645 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006646 ;;
6647 *)
6648 DLLFLAGS="$DLLFLAGS -fPIC"
6649 DLLEXT=".so"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006650 { $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 +01006651$as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006652if ${ac_cv_c_dll_gnuelf+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006653 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006654else
6655 ac_wine_try_cflags_saved=$CFLAGS
6656CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658/* end confdefs.h. */
Alexandre Julliarda3097622007-07-02 17:27:48 +02006659void myfunc() {}
6660_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006661if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006662 ac_cv_c_dll_gnuelf="yes"
6663else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006664 ac_cv_c_dll_gnuelf="no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006665fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006666rm -f core conftest.err conftest.$ac_objext \
6667 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006668CFLAGS=$ac_wine_try_cflags_saved
6669fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006671$as_echo "$ac_cv_c_dll_gnuelf" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006672 if test "$ac_cv_c_dll_gnuelf" = "yes"
6673 then
6674 LDSHARED="\$(CC) -shared"
6675 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006676 { $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 +01006677$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006678if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006679 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006680else
6681 ac_wine_try_cflags_saved=$CFLAGS
6682CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006684/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006685int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006686_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006687if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006688 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6689else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006690 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006691fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006692rm -f core conftest.err conftest.$ac_objext \
6693 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006694CFLAGS=$ac_wine_try_cflags_saved
6695fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006696{ $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 +01006697$as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006698if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006699 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6700else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006701 { $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 +01006702$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006703if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006704 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006705else
6706 ac_wine_try_cflags_saved=$CFLAGS
6707CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006709/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006710int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006711_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006712if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006713 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6714else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006715 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006716fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006717rm -f core conftest.err conftest.$ac_objext \
6718 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006719CFLAGS=$ac_wine_try_cflags_saved
6720fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006721{ $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 +01006722$as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006723if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006724 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6725fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006726fi
6727
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006728 { $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 +01006729$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006730if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006731 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006732else
6733 ac_wine_try_cflags_saved=$CFLAGS
6734CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006736/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006737int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006738_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006739if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006740 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6741else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006742 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006743fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006744rm -f core conftest.err conftest.$ac_objext \
6745 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006746CFLAGS=$ac_wine_try_cflags_saved
6747fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006748{ $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 +01006749$as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006750if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006751 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6752fi
6753
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006754 { $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 +01006755$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 +02006756if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006757 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006758else
6759 ac_wine_try_cflags_saved=$CFLAGS
6760CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006762/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006763int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006764_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006765if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006766 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6767else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006768 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006769fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006770rm -f core conftest.err conftest.$ac_objext \
6771 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006772CFLAGS=$ac_wine_try_cflags_saved
6773fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006774{ $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 +01006775$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 +02006776if 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 +02006777 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6778fi
6779
Alexandre Julliarda3097622007-07-02 17:27:48 +02006780 echo '{ global: *; };' >conftest.map
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006781 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6782{ $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 +01006783$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006784if eval \${$as_ac_var+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006785 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006786else
6787 ac_wine_try_cflags_saved=$CFLAGS
6788CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006790/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006791int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006792_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006793if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006794 eval "$as_ac_var=yes"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006795else
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006796 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006797fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006798rm -f core conftest.err conftest.$ac_objext \
6799 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006800CFLAGS=$ac_wine_try_cflags_saved
6801fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006802eval ac_res=\$$as_ac_var
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6804$as_echo "$ac_res" >&6; }
6805if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006806 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6807fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006808 rm -f conftest.map
6809
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006811$as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006812if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006813 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006814else
6815 ac_wine_try_cflags_saved=$CFLAGS
6816CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006818/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006819int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006820_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006821if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006822 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6823else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006824 ac_cv_cflags__fPIC__Wl___export_dynamic=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006825fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006826rm -f core conftest.err conftest.$ac_objext \
6827 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006828CFLAGS=$ac_wine_try_cflags_saved
6829fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006831$as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006832if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006833 LDEXECFLAGS="-Wl,--export-dynamic"
6834
6835fi
6836
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006837 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6838{ $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 +01006839$as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006840if eval \${$as_ac_var+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006841 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006842else
6843 ac_wine_try_cflags_saved=$CFLAGS
6844CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006846/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006847int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006848_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006849if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006850 eval "$as_ac_var=yes"
6851else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006852 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006853fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006854rm -f core conftest.err conftest.$ac_objext \
6855 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006856CFLAGS=$ac_wine_try_cflags_saved
6857fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006858eval ac_res=\$$as_ac_var
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006860$as_echo "$ac_res" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006861if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006862 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02006863 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006864else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006865 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6866{ $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 +01006867$as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006868if eval \${$as_ac_var+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006869 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006870else
6871 ac_wine_try_cflags_saved=$CFLAGS
6872CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006874/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006875int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006876_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006877if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006878 eval "$as_ac_var=yes"
6879else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006880 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006881fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006882rm -f core conftest.err conftest.$ac_objext \
6883 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006884CFLAGS=$ac_wine_try_cflags_saved
6885fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006886eval ac_res=\$$as_ac_var
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006888$as_echo "$ac_res" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006889if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006890 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02006891 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006892fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006893fi
6894
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006896$as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006897if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006898 $as_echo_n "(cached) " >&6
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006899else
6900 ac_wine_try_cflags_saved=$CFLAGS
6901CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006903/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006904int main(int argc, char **argv) { return 0; }
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006905_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006906if ac_fn_c_try_link "$LINENO"; then :
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006907 ac_cv_cflags__Wl___enable_new_dtags=yes
6908else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006909 ac_cv_cflags__Wl___enable_new_dtags=no
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006910fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006911rm -f core conftest.err conftest.$ac_objext \
6912 conftest$ac_exeext conftest.$ac_ext
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006913CFLAGS=$ac_wine_try_cflags_saved
6914fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006916$as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006917if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006918 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6919fi
6920
Alexandre Julliarda3097622007-07-02 17:27:48 +02006921 case $host_cpu in
6922 *i[3456789]86* | x86_64)
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006923 as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6924{ $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 +01006925$as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006926if eval \${$as_ac_var+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006927 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006928else
6929 ac_wine_try_cflags_saved=$CFLAGS
6930CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006932/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006933int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006934_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006935if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006936 eval "$as_ac_var=yes"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006937else
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006938 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006939fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006940rm -f core conftest.err conftest.$ac_objext \
6941 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006942CFLAGS=$ac_wine_try_cflags_saved
6943fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006944eval ac_res=\$$as_ac_var
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6946$as_echo "$ac_res" >&6; }
6947if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Francois Gouget5f694dd2010-11-26 16:18:32 +01006948 case $host_os in
Robert Millan535a55e2011-08-23 20:39:45 +02006949 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
Francois Gouget5f694dd2010-11-26 16:18:32 +01006950 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6951 esac
6952
Alexandre Julliarda3097622007-07-02 17:27:48 +02006953fi
Alexandre Julliardb5d824b2010-08-24 13:42:10 +02006954 # Extract the first word of "prelink", so it can be a program name with args.
6955set dummy prelink; ac_word=$2
6956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6957$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006958if ${ac_cv_path_PRELINK+:} false; then :
Alexandre Julliardb5d824b2010-08-24 13:42:10 +02006959 $as_echo_n "(cached) " >&6
6960else
6961 case $PRELINK in
6962 [\\/]* | ?:[\\/]*)
6963 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6964 ;;
6965 *)
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967for as_dir in /sbin /usr/sbin $PATH
6968do
6969 IFS=$as_save_IFS
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6973 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 break 2
6976 fi
6977done
6978 done
6979IFS=$as_save_IFS
6980
6981 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6982 ;;
6983esac
6984fi
6985PRELINK=$ac_cv_path_PRELINK
6986if test -n "$PRELINK"; then
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
6988$as_echo "$PRELINK" >&6; }
6989else
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6991$as_echo "no" >&6; }
6992fi
6993
6994
6995 if test "x$PRELINK" = xfalse
6996 then
6997 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
6998 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006999 ;;
7000 esac
7001
7002 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007004$as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007005if ${ac_cv_c_dll_unixware+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007006 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02007007else
7008 ac_wine_try_cflags_saved=$CFLAGS
7009CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7011/* end confdefs.h. */
Alexandre Julliarda3097622007-07-02 17:27:48 +02007012void myfunc() {}
7013_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007014if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02007015 ac_cv_c_dll_unixware="yes"
7016else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007017 ac_cv_c_dll_unixware="no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02007018fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007019rm -f core conftest.err conftest.$ac_objext \
7020 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02007021CFLAGS=$ac_wine_try_cflags_saved
7022fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007024$as_echo "$ac_cv_c_dll_unixware" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02007025 if test "$ac_cv_c_dll_unixware" = "yes"
7026 then
7027 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7028 LDDLLFLAGS="-Wl,-G,-B,symbolic"
7029
7030 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007032$as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007033if ${ac_cv_c_dll_hpux+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007034 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02007035else
7036 ac_wine_try_cflags_saved=$CFLAGS
7037CFLAGS="$CFLAGS -shared"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039/* end confdefs.h. */
Alexandre Julliarda3097622007-07-02 17:27:48 +02007040void myfunc() {}
7041_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007042if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02007043 ac_cv_c_dll_hpux="yes"
7044else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007045 ac_cv_c_dll_hpux="no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02007046fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007047rm -f core conftest.err conftest.$ac_objext \
7048 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02007049CFLAGS=$ac_wine_try_cflags_saved
7050fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007052$as_echo "$ac_cv_c_dll_hpux" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02007053 if test "$ac_cv_c_dll_hpux" = "yes"
7054 then
7055 LIBEXT="sl"
7056 DLLEXT=".sl"
7057 LDDLLFLAGS="-shared -fPIC"
7058 LDSHARED="\$(CC) -shared"
7059 fi
7060 fi
7061 fi
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007062 ;;
7063esac
Alexandre Julliarda3097622007-07-02 17:27:48 +02007064
Aric Stewarteefe6f62010-12-03 07:33:08 -06007065enable_wineqtdecoder=${enable_wineqtdecoder:-no}
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007066enable_winequartz_drv=${enable_winequartz_drv:-no}
Alexandre Julliarda3097622007-07-02 17:27:48 +02007067
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007068if test "$LIBEXT" = "a"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02007069 as_fn_error $? "could not find a way to build shared libraries.
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007070It is currently not possible to build Wine without shared library
7071(.so) support to allow transparent switch between .so and .dll files.
7072If you are using Linux, you will need a newer binutils.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007073" "$LINENO" 5
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007074fi
7075
Alexandre Julliard7d2e7722010-07-26 12:13:47 +02007076CROSSTEST_DISABLE=\#
7077
7078if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007079then
Alexandre Julliarda91fb212009-12-07 15:36:09 +01007080 case "$host_cpu" in
7081 i[3456789]86*)
Jacek Caban0b6bfad2010-12-21 18:08:38 +01007082 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 +01007083 x86_64)
Vincent Povirkd2103752010-10-11 15:55:40 -05007084 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 +01007085 *)
7086 ac_prefix_list="" ;;
7087esac
7088for ac_prog in $ac_prefix_list
Alexandre Julliarda3097622007-07-02 17:27:48 +02007089do
7090 # Extract the first word of "$ac_prog", so it can be a program name with args.
7091set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007093$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007094if ${ac_cv_prog_CROSSCC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007095 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02007096else
7097 if test -n "$CROSSCC"; then
7098 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7099else
7100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101for as_dir in $PATH
7102do
7103 IFS=$as_save_IFS
7104 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007105 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02007106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7107 ac_cv_prog_CROSSCC="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02007109 break 2
7110 fi
7111done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007112 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02007113IFS=$as_save_IFS
7114
7115fi
7116fi
7117CROSSCC=$ac_cv_prog_CROSSCC
7118if test -n "$CROSSCC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007120$as_echo "$CROSSCC" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02007121else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007123$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02007124fi
7125
7126
7127 test -n "$CROSSCC" && break
7128done
7129test -n "$CROSSCC" || CROSSCC="false"
7130
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007131 if test "$CROSSCC" != "false"
7132 then
Alexandre Julliardc2a29db2010-08-04 13:16:19 +02007133 ac_save_CC="$CC"
7134 CC="$CROSSCC"
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7136$as_echo_n "checking whether $CROSSCC works... " >&6; }
7137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7138/* end confdefs.h. */
Alexandre Julliarda2d88ab2009-05-30 17:08:06 +02007139
Alexandre Julliardc2a29db2010-08-04 13:16:19 +02007140int
7141main ()
7142{
7143
7144 ;
7145 return 0;
7146}
7147_ACEOF
7148if ac_fn_c_try_compile "$LINENO"; then :
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7150$as_echo "yes" >&6; }
7151 set x $CROSSCC
7152 shift
7153 target=""
7154 while test $# -ge 1
7155 do
7156 case "$1" in
7157 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7158 esac
7159 shift
7160 done
7161 if test -n "$target"
7162 then
7163 CROSSTEST_DISABLE=""
7164 CROSSTARGET="$target"
7165
7166 fi
7167else
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7169$as_echo "no" >&6; }
7170fi
7171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7172 CC="$ac_save_CC"
Alexandre Julliarda3097622007-07-02 17:27:48 +02007173 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02007174fi
7175
7176
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007177if test "$ac_cv_header_pthread_h" = "yes"
7178then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007180$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007181if ${ac_cv_lib_pthread_pthread_create+:} false; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007182 $as_echo_n "(cached) " >&6
7183else
7184 ac_check_lib_save_LIBS=$LIBS
7185LIBS="-lpthread $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007187/* end confdefs.h. */
7188
7189/* Override any GCC internal prototype to avoid an error.
7190 Use char because int might match the return type of a GCC
7191 builtin and then its argument prototype would still apply. */
7192#ifdef __cplusplus
7193extern "C"
7194#endif
7195char pthread_create ();
7196int
7197main ()
7198{
7199return pthread_create ();
7200 ;
7201 return 0;
7202}
7203_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007204if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007205 ac_cv_lib_pthread_pthread_create=yes
7206else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007207 ac_cv_lib_pthread_pthread_create=no
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007208fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007209rm -f core conftest.err conftest.$ac_objext \
7210 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007211LIBS=$ac_check_lib_save_LIBS
7212fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007214$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007215if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007216 LIBPTHREAD="-lpthread"
7217
7218fi
7219
7220fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007221if test "x$LIBPTHREAD" = "x"; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007222 case "x$with_pthread" in
7223 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02007224 *) as_fn_error $? "pthread ${notice_platform}development files not found.
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007225Wine cannot support threads without libpthread.
Alexandre Julliard9797da42011-04-27 17:37:43 +02007226Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007227esac
7228fi
7229
7230
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007232$as_echo_n "checking for X... " >&6; }
7233
7234
7235# Check whether --with-x was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007236if test "${with_x+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007237 withval=$with_x;
7238fi
7239
7240# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7241if test "x$with_x" = xno; then
7242 # The user explicitly disabled X.
7243 have_x=disabled
7244else
7245 case $x_includes,$x_libraries in #(
Alexandre Julliard9797da42011-04-27 17:37:43 +02007246 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7247 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007248 $as_echo_n "(cached) " >&6
7249else
7250 # One or both of the vars are not set, and there is no cached value.
7251ac_x_includes=no ac_x_libraries=no
7252rm -f -r conftest.dir
7253if mkdir conftest.dir; then
7254 cd conftest.dir
7255 cat >Imakefile <<'_ACEOF'
7256incroot:
7257 @echo incroot='${INCROOT}'
7258usrlibdir:
7259 @echo usrlibdir='${USRLIBDIR}'
7260libdir:
7261 @echo libdir='${LIBDIR}'
7262_ACEOF
7263 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02007264 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Alexandre Julliard40664c02009-02-11 20:40:58 +01007265 for ac_var in incroot usrlibdir libdir; do
7266 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7267 done
7268 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7269 for ac_extension in a so sl dylib la dll; do
7270 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7271 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7272 ac_im_usrlibdir=$ac_im_libdir; break
7273 fi
7274 done
7275 # Screen out bogus values from the imake configuration. They are
7276 # bogus both because they are the default anyway, and because
7277 # using them would break gcc on systems where it needs fixed includes.
7278 case $ac_im_incroot in
7279 /usr/include) ac_x_includes= ;;
7280 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7281 esac
7282 case $ac_im_usrlibdir in
7283 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7284 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7285 esac
7286 fi
7287 cd ..
7288 rm -f -r conftest.dir
7289fi
7290
7291# Standard set of common directories for X headers.
7292# Check X11 before X11Rn because it is often a symlink to the current release.
7293ac_x_header_dirs='
7294/usr/X11/include
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007295/usr/X11R7/include
Alexandre Julliard40664c02009-02-11 20:40:58 +01007296/usr/X11R6/include
7297/usr/X11R5/include
7298/usr/X11R4/include
7299
7300/usr/include/X11
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007301/usr/include/X11R7
Alexandre Julliard40664c02009-02-11 20:40:58 +01007302/usr/include/X11R6
7303/usr/include/X11R5
7304/usr/include/X11R4
7305
7306/usr/local/X11/include
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007307/usr/local/X11R7/include
Alexandre Julliard40664c02009-02-11 20:40:58 +01007308/usr/local/X11R6/include
7309/usr/local/X11R5/include
7310/usr/local/X11R4/include
7311
7312/usr/local/include/X11
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007313/usr/local/include/X11R7
Alexandre Julliard40664c02009-02-11 20:40:58 +01007314/usr/local/include/X11R6
7315/usr/local/include/X11R5
7316/usr/local/include/X11R4
7317
7318/usr/X386/include
7319/usr/x386/include
7320/usr/XFree86/include/X11
7321
7322/usr/include
7323/usr/local/include
7324/usr/unsupported/include
7325/usr/athena/include
7326/usr/local/x11r5/include
7327/usr/lpp/Xamples/include
7328
7329/usr/openwin/include
7330/usr/openwin/share/include'
7331
7332if test "$ac_x_includes" = no; then
7333 # Guess where to find include files, by looking for Xlib.h.
7334 # First, try using that file with no special directory specified.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007336/* end confdefs.h. */
7337#include <X11/Xlib.h>
7338_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007339if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007340 # We can compile using X headers with no special include directory.
7341ac_x_includes=
7342else
Alexandre Julliard40664c02009-02-11 20:40:58 +01007343 for ac_dir in $ac_x_header_dirs; do
7344 if test -r "$ac_dir/X11/Xlib.h"; then
7345 ac_x_includes=$ac_dir
7346 break
7347 fi
7348done
7349fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02007350rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007351fi # $ac_x_includes = no
7352
7353if test "$ac_x_libraries" = no; then
7354 # Check for the libraries.
7355 # See if we find them without any special options.
7356 # Don't add to $LIBS permanently.
7357 ac_save_LIBS=$LIBS
7358 LIBS="-lX11 $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007360/* end confdefs.h. */
7361#include <X11/Xlib.h>
7362int
7363main ()
7364{
7365XrmInitialize ()
7366 ;
7367 return 0;
7368}
7369_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007370if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007371 LIBS=$ac_save_LIBS
7372# We can link X programs with no special library path.
7373ac_x_libraries=
7374else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007375 LIBS=$ac_save_LIBS
Alexandre Julliard40664c02009-02-11 20:40:58 +01007376for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7377do
7378 # Don't even attempt the hair of trying to link an X program!
7379 for ac_extension in a so sl dylib la dll; do
7380 if test -r "$ac_dir/libX11.$ac_extension"; then
7381 ac_x_libraries=$ac_dir
7382 break 2
7383 fi
7384 done
7385done
7386fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007387rm -f core conftest.err conftest.$ac_objext \
7388 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007389fi # $ac_x_libraries = no
7390
7391case $ac_x_includes,$ac_x_libraries in #(
7392 no,* | *,no | *\'*)
7393 # Didn't find X, or a directory has "'" in its name.
7394 ac_cv_have_x="have_x=no";; #(
7395 *)
7396 # Record where we found X for the cache.
7397 ac_cv_have_x="have_x=yes\
7398 ac_x_includes='$ac_x_includes'\
7399 ac_x_libraries='$ac_x_libraries'"
7400esac
7401fi
7402;; #(
7403 *) have_x=yes;;
7404 esac
7405 eval "$ac_cv_have_x"
7406fi # $with_x != no
7407
7408if test "$have_x" != yes; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007410$as_echo "$have_x" >&6; }
7411 no_x=yes
7412else
7413 # If each of the values was on the command line, it overrides each guess.
7414 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7415 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7416 # Update the cache value to reflect the command line values.
7417 ac_cv_have_x="have_x=yes\
7418 ac_x_includes='$x_includes'\
7419 ac_x_libraries='$x_libraries'"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007421$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7422fi
7423
7424if test "$no_x" = yes; then
7425 # Not all programs may use this symbol, but it does not hurt to define it.
7426
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007427$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
Alexandre Julliard40664c02009-02-11 20:40:58 +01007428
7429 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7430else
7431 if test -n "$x_includes"; then
7432 X_CFLAGS="$X_CFLAGS -I$x_includes"
7433 fi
7434
7435 # It would also be nice to do this for all -L options, not just this one.
7436 if test -n "$x_libraries"; then
7437 X_LIBS="$X_LIBS -L$x_libraries"
7438 # For Solaris; some versions of Sun CC require a space after -R and
7439 # others require no space. Words are not sufficient . . . .
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007441$as_echo_n "checking whether -R must be followed by a space... " >&6; }
7442 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7443 ac_xsave_c_werror_flag=$ac_c_werror_flag
7444 ac_c_werror_flag=yes
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007446/* end confdefs.h. */
7447
7448int
7449main ()
7450{
7451
7452 ;
7453 return 0;
7454}
7455_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007456if ac_fn_c_try_link "$LINENO"; then :
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007458$as_echo "no" >&6; }
7459 X_LIBS="$X_LIBS -R$x_libraries"
7460else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007461 LIBS="$ac_xsave_LIBS -R $x_libraries"
7462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007463/* end confdefs.h. */
7464
7465int
7466main ()
7467{
7468
7469 ;
7470 return 0;
7471}
7472_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007473if ac_fn_c_try_link "$LINENO"; then :
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007475$as_echo "yes" >&6; }
7476 X_LIBS="$X_LIBS -R $x_libraries"
7477else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007479$as_echo "neither works" >&6; }
7480fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007481rm -f core conftest.err conftest.$ac_objext \
7482 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007483fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007484rm -f core conftest.err conftest.$ac_objext \
7485 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007486 ac_c_werror_flag=$ac_xsave_c_werror_flag
7487 LIBS=$ac_xsave_LIBS
7488 fi
7489
7490 # Check for system-dependent libraries X programs must link with.
7491 # Do this before checking for the system-independent R6 libraries
7492 # (-lICE), since we may need -lsocket or whatever for X linking.
7493
7494 if test "$ISC" = yes; then
7495 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7496 else
7497 # Martyn Johnson says this is needed for Ultrix, if the X
7498 # libraries were built with DECnet support. And Karl Berry says
7499 # the Alpha needs dnet_stub (dnet does not exist).
7500 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007502/* end confdefs.h. */
7503
7504/* Override any GCC internal prototype to avoid an error.
7505 Use char because int might match the return type of a GCC
7506 builtin and then its argument prototype would still apply. */
7507#ifdef __cplusplus
7508extern "C"
7509#endif
7510char XOpenDisplay ();
7511int
7512main ()
7513{
7514return XOpenDisplay ();
7515 ;
7516 return 0;
7517}
7518_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007519if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007520
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007521else
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007523$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007524if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007525 $as_echo_n "(cached) " >&6
7526else
7527 ac_check_lib_save_LIBS=$LIBS
7528LIBS="-ldnet $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007530/* end confdefs.h. */
7531
7532/* Override any GCC internal prototype to avoid an error.
7533 Use char because int might match the return type of a GCC
7534 builtin and then its argument prototype would still apply. */
7535#ifdef __cplusplus
7536extern "C"
7537#endif
7538char dnet_ntoa ();
7539int
7540main ()
7541{
7542return dnet_ntoa ();
7543 ;
7544 return 0;
7545}
7546_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007547if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007548 ac_cv_lib_dnet_dnet_ntoa=yes
7549else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007550 ac_cv_lib_dnet_dnet_ntoa=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007551fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007552rm -f core conftest.err conftest.$ac_objext \
7553 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007554LIBS=$ac_check_lib_save_LIBS
7555fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007557$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007558if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007559 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7560fi
7561
7562 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007564$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007565if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007566 $as_echo_n "(cached) " >&6
7567else
7568 ac_check_lib_save_LIBS=$LIBS
7569LIBS="-ldnet_stub $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007571/* end confdefs.h. */
7572
7573/* Override any GCC internal prototype to avoid an error.
7574 Use char because int might match the return type of a GCC
7575 builtin and then its argument prototype would still apply. */
7576#ifdef __cplusplus
7577extern "C"
7578#endif
7579char dnet_ntoa ();
7580int
7581main ()
7582{
7583return dnet_ntoa ();
7584 ;
7585 return 0;
7586}
7587_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007588if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007589 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7590else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007591 ac_cv_lib_dnet_stub_dnet_ntoa=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007592fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007593rm -f core conftest.err conftest.$ac_objext \
7594 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007595LIBS=$ac_check_lib_save_LIBS
7596fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007598$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007599if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007600 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7601fi
7602
7603 fi
7604fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007605rm -f core conftest.err conftest.$ac_objext \
7606 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007607 LIBS="$ac_xsave_LIBS"
7608
7609 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7610 # to get the SysV transport functions.
7611 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7612 # needs -lnsl.
7613 # The nsl library prevents programs from opening the X display
7614 # on Irix 5.2, according to T.E. Dickey.
7615 # The functions gethostbyname, getservbyname, and inet_addr are
7616 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007617 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
Alexandre Julliard9797da42011-04-27 17:37:43 +02007618if test "x$ac_cv_func_gethostbyname" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007619
Alexandre Julliard40664c02009-02-11 20:40:58 +01007620fi
7621
Alexandre Julliard40664c02009-02-11 20:40:58 +01007622 if test $ac_cv_func_gethostbyname = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007624$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007625if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007626 $as_echo_n "(cached) " >&6
7627else
7628 ac_check_lib_save_LIBS=$LIBS
7629LIBS="-lnsl $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007631/* end confdefs.h. */
7632
7633/* Override any GCC internal prototype to avoid an error.
7634 Use char because int might match the return type of a GCC
7635 builtin and then its argument prototype would still apply. */
7636#ifdef __cplusplus
7637extern "C"
7638#endif
7639char gethostbyname ();
7640int
7641main ()
7642{
7643return gethostbyname ();
7644 ;
7645 return 0;
7646}
7647_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007648if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007649 ac_cv_lib_nsl_gethostbyname=yes
7650else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007651 ac_cv_lib_nsl_gethostbyname=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007652fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007653rm -f core conftest.err conftest.$ac_objext \
7654 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007655LIBS=$ac_check_lib_save_LIBS
7656fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007658$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007659if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007660 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7661fi
7662
7663 if test $ac_cv_lib_nsl_gethostbyname = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007665$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007666if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007667 $as_echo_n "(cached) " >&6
7668else
7669 ac_check_lib_save_LIBS=$LIBS
7670LIBS="-lbsd $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007672/* end confdefs.h. */
7673
7674/* Override any GCC internal prototype to avoid an error.
7675 Use char because int might match the return type of a GCC
7676 builtin and then its argument prototype would still apply. */
7677#ifdef __cplusplus
7678extern "C"
7679#endif
7680char gethostbyname ();
7681int
7682main ()
7683{
7684return gethostbyname ();
7685 ;
7686 return 0;
7687}
7688_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007689if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007690 ac_cv_lib_bsd_gethostbyname=yes
7691else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007692 ac_cv_lib_bsd_gethostbyname=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007693fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007694rm -f core conftest.err conftest.$ac_objext \
7695 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007696LIBS=$ac_check_lib_save_LIBS
7697fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007699$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007700if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007701 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7702fi
7703
7704 fi
7705 fi
7706
7707 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7708 # socket/setsockopt and other routines are undefined under SCO ODT
7709 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7710 # on later versions), says Simon Leinen: it contains gethostby*
7711 # variants that don't use the name server (or something). -lsocket
7712 # must be given before -lnsl if both are needed. We assume that
7713 # if connect needs -lnsl, so does gethostbyname.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007714 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
Alexandre Julliard9797da42011-04-27 17:37:43 +02007715if test "x$ac_cv_func_connect" = 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_connect = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007721$as_echo_n "checking for connect in -lsocket... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007722if ${ac_cv_lib_socket_connect+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007723 $as_echo_n "(cached) " >&6
7724else
7725 ac_check_lib_save_LIBS=$LIBS
7726LIBS="-lsocket $X_EXTRA_LIBS $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 connect ();
7737int
7738main ()
7739{
7740return connect ();
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_socket_connect=yes
7747else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007748 ac_cv_lib_socket_connect=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_socket_connect" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007755$as_echo "$ac_cv_lib_socket_connect" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007756if test "x$ac_cv_lib_socket_connect" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007757 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7758fi
7759
7760 fi
7761
7762 # Guillermo Gomez says -lposix is necessary on A/UX.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007763 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
Alexandre Julliard9797da42011-04-27 17:37:43 +02007764if test "x$ac_cv_func_remove" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007765
Alexandre Julliard40664c02009-02-11 20:40:58 +01007766fi
7767
Alexandre Julliard40664c02009-02-11 20:40:58 +01007768 if test $ac_cv_func_remove = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007770$as_echo_n "checking for remove in -lposix... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007771if ${ac_cv_lib_posix_remove+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007772 $as_echo_n "(cached) " >&6
7773else
7774 ac_check_lib_save_LIBS=$LIBS
7775LIBS="-lposix $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007777/* end confdefs.h. */
7778
7779/* Override any GCC internal prototype to avoid an error.
7780 Use char because int might match the return type of a GCC
7781 builtin and then its argument prototype would still apply. */
7782#ifdef __cplusplus
7783extern "C"
7784#endif
7785char remove ();
7786int
7787main ()
7788{
7789return remove ();
7790 ;
7791 return 0;
7792}
7793_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007794if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007795 ac_cv_lib_posix_remove=yes
7796else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007797 ac_cv_lib_posix_remove=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007798fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007799rm -f core conftest.err conftest.$ac_objext \
7800 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007801LIBS=$ac_check_lib_save_LIBS
7802fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007804$as_echo "$ac_cv_lib_posix_remove" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007805if test "x$ac_cv_lib_posix_remove" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007806 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7807fi
7808
7809 fi
7810
7811 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007812 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
Alexandre Julliard9797da42011-04-27 17:37:43 +02007813if test "x$ac_cv_func_shmat" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007814
Alexandre Julliard40664c02009-02-11 20:40:58 +01007815fi
7816
Alexandre Julliard40664c02009-02-11 20:40:58 +01007817 if test $ac_cv_func_shmat = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007819$as_echo_n "checking for shmat in -lipc... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007820if ${ac_cv_lib_ipc_shmat+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007821 $as_echo_n "(cached) " >&6
7822else
7823 ac_check_lib_save_LIBS=$LIBS
7824LIBS="-lipc $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007826/* end confdefs.h. */
7827
7828/* Override any GCC internal prototype to avoid an error.
7829 Use char because int might match the return type of a GCC
7830 builtin and then its argument prototype would still apply. */
7831#ifdef __cplusplus
7832extern "C"
7833#endif
7834char shmat ();
7835int
7836main ()
7837{
7838return shmat ();
7839 ;
7840 return 0;
7841}
7842_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007843if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007844 ac_cv_lib_ipc_shmat=yes
7845else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007846 ac_cv_lib_ipc_shmat=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007847fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007848rm -f core conftest.err conftest.$ac_objext \
7849 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007850LIBS=$ac_check_lib_save_LIBS
7851fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007853$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007854if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007855 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7856fi
7857
7858 fi
7859 fi
7860
7861 # Check for libraries that X11R6 Xt/Xaw programs need.
7862 ac_save_LDFLAGS=$LDFLAGS
7863 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7864 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7865 # check for ICE first), but we must link in the order -lSM -lICE or
7866 # we get undefined symbols. So assume we have SM if we have ICE.
7867 # These have to be linked with before -lX11, unlike the other
7868 # libraries we check for below, so use a different variable.
7869 # John Interrante, Karl Berry
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007871$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007872if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007873 $as_echo_n "(cached) " >&6
7874else
7875 ac_check_lib_save_LIBS=$LIBS
7876LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007878/* end confdefs.h. */
7879
7880/* Override any GCC internal prototype to avoid an error.
7881 Use char because int might match the return type of a GCC
7882 builtin and then its argument prototype would still apply. */
7883#ifdef __cplusplus
7884extern "C"
7885#endif
7886char IceConnectionNumber ();
7887int
7888main ()
7889{
7890return IceConnectionNumber ();
7891 ;
7892 return 0;
7893}
7894_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007895if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007896 ac_cv_lib_ICE_IceConnectionNumber=yes
7897else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007898 ac_cv_lib_ICE_IceConnectionNumber=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007899fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007900rm -f core conftest.err conftest.$ac_objext \
7901 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007902LIBS=$ac_check_lib_save_LIBS
7903fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007905$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007906if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007907 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7908fi
7909
7910 LDFLAGS=$ac_save_LDFLAGS
7911
7912fi
7913
7914
Rein Klazes7ff12562004-11-09 20:16:35 +00007915if test "$have_x" = "yes"
7916then
Alexandre Julliardfd03c502009-08-17 15:11:08 +02007917 XLIB="-lX11"
Rein Klazes7ff12562004-11-09 20:16:35 +00007918 ac_save_CPPFLAGS="$CPPFLAGS"
7919 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7920
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007922$as_echo_n "checking for -lX11... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007923if ${ac_cv_lib_soname_X11+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007924 $as_echo_n "(cached) " >&6
Alexandre Julliarda8518542007-07-09 22:43:45 +02007925else
7926 ac_check_soname_save_LIBS=$LIBS
7927LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007929/* end confdefs.h. */
7930
7931/* Override any GCC internal prototype to avoid an error.
7932 Use char because int might match the return type of a GCC
7933 builtin and then its argument prototype would still apply. */
7934#ifdef __cplusplus
7935extern "C"
7936#endif
7937char XCreateWindow ();
7938int
7939main ()
7940{
7941return XCreateWindow ();
7942 ;
7943 return 0;
7944}
7945_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007946if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda8518542007-07-09 22:43:45 +02007947 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01007948 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 +02007949 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'` ;;
7950 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7951 esac
Alexandre Julliarda8518542007-07-09 22:43:45 +02007952fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007953rm -f core conftest.err conftest.$ac_objext \
7954 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007955 LIBS=$ac_check_soname_save_LIBS
7956fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007957if test "x$ac_cv_lib_soname_X11" = "x"; then :
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007959$as_echo "not found" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007960
7961else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007963$as_echo "$ac_cv_lib_soname_X11" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007964
7965cat >>confdefs.h <<_ACEOF
7966#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7967_ACEOF
7968
7969
7970fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007972$as_echo_n "checking for -lXext... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007973if ${ac_cv_lib_soname_Xext+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007974 $as_echo_n "(cached) " >&6
Alexandre Julliarda8518542007-07-09 22:43:45 +02007975else
7976 ac_check_soname_save_LIBS=$LIBS
7977LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007979/* end confdefs.h. */
7980
7981/* Override any GCC internal prototype to avoid an error.
7982 Use char because int might match the return type of a GCC
7983 builtin and then its argument prototype would still apply. */
7984#ifdef __cplusplus
7985extern "C"
7986#endif
7987char XextCreateExtension ();
7988int
7989main ()
7990{
7991return XextCreateExtension ();
7992 ;
7993 return 0;
7994}
7995_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007996if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda8518542007-07-09 22:43:45 +02007997 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01007998 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 +02007999 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'` ;;
8000 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8001 esac
Alexandre Julliarda8518542007-07-09 22:43:45 +02008002fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008003rm -f core conftest.err conftest.$ac_objext \
8004 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02008005 LIBS=$ac_check_soname_save_LIBS
8006fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008007if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008009$as_echo "not found" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02008010
8011else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008013$as_echo "$ac_cv_lib_soname_Xext" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02008014
8015cat >>confdefs.h <<_ACEOF
8016#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8017_ACEOF
8018
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008019 XLIB="-lXext $XLIB"
Alexandre Julliarda8518542007-07-09 22:43:45 +02008020fi
8021
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008022 for ac_header in X11/Xlib.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008023 X11/XKBlib.h \
8024 X11/Xutil.h \
Andrew Riedi23e2cb12007-03-22 12:06:19 -07008025 X11/Xcursor/Xcursor.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008026 X11/extensions/shape.h \
8027 X11/extensions/XInput.h \
Alexandre Julliard77e05ce2011-04-13 18:51:50 +02008028 X11/extensions/XInput2.h \
Chris Robinson42584652007-09-22 18:19:08 -07008029 X11/extensions/Xcomposite.h \
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008030 X11/extensions/Xinerama.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008031 X11/extensions/Xrandr.h \
8032 X11/extensions/Xrender.h \
André Hentschel7b285a42009-09-19 19:08:09 +02008033 X11/extensions/xf86vmode.h \
8034 X11/extensions/xf86vmproto.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008035do :
8036 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8037ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
Alexandre Julliard73482142005-08-03 19:21:04 +00008038# include <X11/Xlib.h>
8039#endif
8040#ifdef HAVE_X11_XUTIL_H
8041# include <X11/Xutil.h>
8042#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008043"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008044if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008045 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01008046#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008047_ACEOF
Alexandre Julliard255b4862003-10-15 04:09:55 +00008048
8049fi
8050
8051done
8052
8053
8054 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8055 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008057$as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008058if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008059 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008060else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008061 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008062LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008064/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008065
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008066/* Override any GCC internal prototype to avoid an error.
8067 Use char because int might match the return type of a GCC
8068 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008069#ifdef __cplusplus
8070extern "C"
8071#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008072char XkbQueryExtension ();
8073int
8074main ()
8075{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008076return XkbQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008077 ;
8078 return 0;
8079}
8080_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008081if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008082 ac_cv_lib_X11_XkbQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00008083else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008084 ac_cv_lib_X11_XkbQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008085fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008086rm -f core conftest.err conftest.$ac_objext \
8087 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008088LIBS=$ac_check_lib_save_LIBS
8089fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008091$as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008092if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
Patrik Stridvall24110281999-02-04 10:09:54 +00008093
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008094$as_echo "#define HAVE_XKB 1" >>confdefs.h
Patrik Stridvall24110281999-02-04 10:09:54 +00008095
Patrik Stridvall24110281999-02-04 10:09:54 +00008096fi
8097
Alexandre Julliard255b4862003-10-15 04:09:55 +00008098 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008099
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008100 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8101 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008103$as_echo_n "checking for -lXcursor... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008104if ${ac_cv_lib_soname_Xcursor+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008105 $as_echo_n "(cached) " >&6
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008106else
8107 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008108LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008110/* end confdefs.h. */
8111
8112/* Override any GCC internal prototype to avoid an error.
8113 Use char because int might match the return type of a GCC
8114 builtin and then its argument prototype would still apply. */
8115#ifdef __cplusplus
8116extern "C"
8117#endif
8118char XcursorImageLoadCursor ();
8119int
8120main ()
8121{
8122return XcursorImageLoadCursor ();
8123 ;
8124 return 0;
8125}
8126_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008127if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008128 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008129 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 +02008130 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'` ;;
8131 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8132 esac
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008133fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008134rm -f core conftest.err conftest.$ac_objext \
8135 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008136 LIBS=$ac_check_soname_save_LIBS
8137fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008138if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008140$as_echo "not found" >&6; }
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008141
8142else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008144$as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008145
8146cat >>confdefs.h <<_ACEOF
8147#define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8148_ACEOF
8149
8150
8151fi
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008152 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008153 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008154 case "x$with_xcursor" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008155 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 +01008156 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008157 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008158This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008159esac
8160fi
8161
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008162 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8163 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008165$as_echo_n "checking for -lXi... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008166if ${ac_cv_lib_soname_Xi+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008167 $as_echo_n "(cached) " >&6
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008168else
8169 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008170LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008172/* end confdefs.h. */
8173
8174/* Override any GCC internal prototype to avoid an error.
8175 Use char because int might match the return type of a GCC
8176 builtin and then its argument prototype would still apply. */
8177#ifdef __cplusplus
8178extern "C"
8179#endif
8180char XOpenDevice ();
8181int
8182main ()
8183{
8184return XOpenDevice ();
8185 ;
8186 return 0;
8187}
8188_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008189if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008190 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008191 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 +02008192 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'` ;;
8193 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8194 esac
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008195fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008196rm -f core conftest.err conftest.$ac_objext \
8197 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008198 LIBS=$ac_check_soname_save_LIBS
8199fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008200if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008202$as_echo "not found" >&6; }
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008203
8204else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008206$as_echo "$ac_cv_lib_soname_Xi" >&6; }
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008207
8208cat >>confdefs.h <<_ACEOF
8209#define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8210_ACEOF
8211
8212
8213fi
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008214 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008215 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008216 case "x$with_xinput" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008217 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 +01008218 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008219 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008220This is an error since --with-xinput was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008221esac
8222fi
8223
Alexandre Julliard77e05ce2011-04-13 18:51:50 +02008224 if test "x$ac_cv_lib_soname_Xi" != x
8225 then
8226 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8227 case "x$with_xinput2" in
8228 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8229 xno) ;;
8230 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008231This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
Alexandre Julliard77e05ce2011-04-13 18:51:50 +02008232esac
8233fi
8234 fi
8235
Alexandre Julliard255b4862003-10-15 04:09:55 +00008236 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8237 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008239$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008240if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008241 $as_echo_n "(cached) " >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00008242else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008243 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008244LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008246/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008247
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008248/* Override any GCC internal prototype to avoid an error.
8249 Use char because int might match the return type of a GCC
8250 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008251#ifdef __cplusplus
8252extern "C"
8253#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008254char XShapeQueryExtension ();
8255int
8256main ()
8257{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008258return XShapeQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008259 ;
8260 return 0;
8261}
8262_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008263if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008264 ac_cv_lib_Xext_XShapeQueryExtension=yes
Ove Kaavenc90fb252001-01-02 22:39:14 +00008265else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008266 ac_cv_lib_Xext_XShapeQueryExtension=no
Ove Kaavenc90fb252001-01-02 22:39:14 +00008267fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008268rm -f core conftest.err conftest.$ac_objext \
8269 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008270LIBS=$ac_check_lib_save_LIBS
8271fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008273$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008274if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
Ove Kaavenc90fb252001-01-02 22:39:14 +00008275
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008276$as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
Ove Kaavenc90fb252001-01-02 22:39:14 +00008277
Ove Kaavenc90fb252001-01-02 22:39:14 +00008278fi
8279
Alexandre Julliard255b4862003-10-15 04:09:55 +00008280 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008281 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008282 case "x$with_xshape" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008283 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 +01008284 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008285 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008286This is an error since --with-xshape was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008287esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008288fi
8289
André Hentschel7b285a42009-09-19 19:08:09 +02008290 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 +00008291 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008293$as_echo_n "checking for -lXxf86vm... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008294if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008295 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008296else
Francois Gougeta49beb42008-06-26 14:02:17 +02008297 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008298LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008300/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008301
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008302/* Override any GCC internal prototype to avoid an error.
8303 Use char because int might match the return type of a GCC
8304 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008305#ifdef __cplusplus
8306extern "C"
8307#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008308char XF86VidModeQueryExtension ();
8309int
8310main ()
8311{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008312return XF86VidModeQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008313 ;
8314 return 0;
8315}
8316_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008317if ac_fn_c_try_link "$LINENO"; then :
Francois Gougeta49beb42008-06-26 14:02:17 +02008318 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008319 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 +02008320 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'` ;;
8321 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8322 esac
Patrik Stridvall24110281999-02-04 10:09:54 +00008323fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008324rm -f core conftest.err conftest.$ac_objext \
8325 conftest$ac_exeext conftest.$ac_ext
Francois Gougeta49beb42008-06-26 14:02:17 +02008326 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008327fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008328if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008330$as_echo "not found" >&6; }
Patrik Stridvall24110281999-02-04 10:09:54 +00008331
Francois Gougeta49beb42008-06-26 14:02:17 +02008332else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008334$as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
Francois Gougeta49beb42008-06-26 14:02:17 +02008335
8336cat >>confdefs.h <<_ACEOF
8337#define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008338_ACEOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008339
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008340
Patrik Stridvall24110281999-02-04 10:09:54 +00008341fi
Alexandre Julliard255b4862003-10-15 04:09:55 +00008342 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008343 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
Francois Gougeta49beb42008-06-26 14:02:17 +02008344 case "x$with_xxf86vm" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008345 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 +01008346 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008347 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008348This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008349esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008350fi
8351
Alexandre Julliarda8518542007-07-09 22:43:45 +02008352 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 +02008353 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008355$as_echo_n "checking for -lXrender... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008356if ${ac_cv_lib_soname_Xrender+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008357 $as_echo_n "(cached) " >&6
Alexandre Julliard629639e2007-07-04 12:47:57 +02008358else
8359 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008360LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008362/* end confdefs.h. */
8363
8364/* Override any GCC internal prototype to avoid an error.
8365 Use char because int might match the return type of a GCC
8366 builtin and then its argument prototype would still apply. */
8367#ifdef __cplusplus
8368extern "C"
8369#endif
8370char XRenderQueryExtension ();
8371int
8372main ()
8373{
8374return XRenderQueryExtension ();
8375 ;
8376 return 0;
8377}
8378_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008379if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008380 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008381 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 +02008382 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'` ;;
8383 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8384 esac
Alexandre Julliard629639e2007-07-04 12:47:57 +02008385fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008386rm -f core conftest.err conftest.$ac_objext \
8387 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008388 LIBS=$ac_check_soname_save_LIBS
8389fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008390if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008392$as_echo "not found" >&6; }
Alexandre Julliard629639e2007-07-04 12:47:57 +02008393
8394else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008396$as_echo "$ac_cv_lib_soname_Xrender" >&6; }
Alexandre Julliard629639e2007-07-04 12:47:57 +02008397
8398cat >>confdefs.h <<_ACEOF
8399#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8400_ACEOF
8401
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008403$as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008404if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008405 $as_echo_n "(cached) " >&6
Alexandre Julliard629639e2007-07-04 12:47:57 +02008406else
8407 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008408LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008410/* end confdefs.h. */
8411
8412/* Override any GCC internal prototype to avoid an error.
8413 Use char because int might match the return type of a GCC
8414 builtin and then its argument prototype would still apply. */
8415#ifdef __cplusplus
8416extern "C"
8417#endif
8418char XRenderSetPictureTransform ();
8419int
8420main ()
8421{
8422return XRenderSetPictureTransform ();
8423 ;
8424 return 0;
8425}
8426_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008427if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008428 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8429else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008430 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
Alexandre Julliard629639e2007-07-04 12:47:57 +02008431fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008432rm -f core conftest.err conftest.$ac_objext \
8433 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008434LIBS=$ac_check_lib_save_LIBS
8435fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008437$as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008438if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008439
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008440$as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
Alexandre Julliard629639e2007-07-04 12:47:57 +02008441
8442fi
8443
Alexandre Julliard76358212011-11-30 13:22:21 +01008444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
8445$as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
8446if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
8447 $as_echo_n "(cached) " >&6
8448else
8449 ac_check_lib_save_LIBS=$LIBS
8450LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452/* end confdefs.h. */
8453
8454/* Override any GCC internal prototype to avoid an error.
8455 Use char because int might match the return type of a GCC
8456 builtin and then its argument prototype would still apply. */
8457#ifdef __cplusplus
8458extern "C"
8459#endif
8460char XRenderCreateLinearGradient ();
8461int
8462main ()
8463{
8464return XRenderCreateLinearGradient ();
8465 ;
8466 return 0;
8467}
8468_ACEOF
8469if ac_fn_c_try_link "$LINENO"; then :
8470 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
8471else
8472 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
8473fi
8474rm -f core conftest.err conftest.$ac_objext \
8475 conftest$ac_exeext conftest.$ac_ext
8476LIBS=$ac_check_lib_save_LIBS
8477fi
8478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
8479$as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
8480if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
8481
8482$as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
8483
8484fi
8485
Alexandre Julliard629639e2007-07-04 12:47:57 +02008486fi
8487
Alexandre Julliard629639e2007-07-04 12:47:57 +02008488 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008489 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008490 case "x$with_xrender" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008491 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 +01008492 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008493 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008494This is an error since --with-xrender was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008495esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008496fi
8497
Alexandre Julliard629639e2007-07-04 12:47:57 +02008498 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 +00008499 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008501/* end confdefs.h. */
Mike McCormackc7c9f932004-04-07 03:57:35 +00008502#include <X11/Xlib.h>
8503#include <X11/extensions/Xrandr.h>
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008504int
8505main ()
8506{
Dan Kegel45725be2011-08-31 17:35:49 -07008507static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008508 ;
8509 return 0;
8510}
8511_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008512if ac_fn_c_try_compile "$LINENO"; then :
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008514$as_echo_n "checking for -lXrandr... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008515if ${ac_cv_lib_soname_Xrandr+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008516 $as_echo_n "(cached) " >&6
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008517else
8518 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008519LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008521/* end confdefs.h. */
8522
8523/* Override any GCC internal prototype to avoid an error.
8524 Use char because int might match the return type of a GCC
8525 builtin and then its argument prototype would still apply. */
8526#ifdef __cplusplus
8527extern "C"
8528#endif
8529char XRRQueryExtension ();
8530int
8531main ()
8532{
8533return XRRQueryExtension ();
8534 ;
8535 return 0;
8536}
8537_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008538if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008539 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008540 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 +02008541 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'` ;;
8542 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8543 esac
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008544fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008545rm -f core conftest.err conftest.$ac_objext \
8546 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008547 LIBS=$ac_check_soname_save_LIBS
8548fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008549if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008551$as_echo "not found" >&6; }
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008552
8553else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008555$as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008556
8557cat >>confdefs.h <<_ACEOF
8558#define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8559_ACEOF
8560
8561
8562fi
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008563fi
Jeremy White0ebeb532006-06-20 13:18:41 +02008564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard255b4862003-10-15 04:09:55 +00008565 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008566 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008567 case "x$with_xrandr" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008568 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 +01008569 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008570 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008571This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008572esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008573fi
8574
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008575 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8576 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008578/* end confdefs.h. */
8579#include <X11/Xlib.h>
8580#include <X11/extensions/Xinerama.h>
8581int
8582main ()
8583{
Dan Kegel45725be2011-08-31 17:35:49 -07008584static typeof(XineramaQueryScreens) * func; if (func) return 0;
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008585 ;
8586 return 0;
8587}
8588_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008589if ac_fn_c_try_compile "$LINENO"; then :
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008591$as_echo_n "checking for -lXinerama... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008592if ${ac_cv_lib_soname_Xinerama+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008593 $as_echo_n "(cached) " >&6
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008594else
8595 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008596LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008598/* end confdefs.h. */
8599
8600/* Override any GCC internal prototype to avoid an error.
8601 Use char because int might match the return type of a GCC
8602 builtin and then its argument prototype would still apply. */
8603#ifdef __cplusplus
8604extern "C"
8605#endif
8606char XineramaQueryScreens ();
8607int
8608main ()
8609{
8610return XineramaQueryScreens ();
8611 ;
8612 return 0;
8613}
8614_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008615if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008616 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008617 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 +02008618 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'` ;;
8619 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8620 esac
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008621fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008622rm -f core conftest.err conftest.$ac_objext \
8623 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008624 LIBS=$ac_check_soname_save_LIBS
8625fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008626if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008628$as_echo "not found" >&6; }
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008629
8630else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008632$as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008633
8634cat >>confdefs.h <<_ACEOF
8635#define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8636_ACEOF
8637
8638
8639fi
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008640fi
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8642 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008643 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008644 case "x$with_xinerama" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008645 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 +01008646 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008647 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008648This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008649esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008650fi
8651
Chris Robinson42584652007-09-22 18:19:08 -07008652 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8653 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008655$as_echo_n "checking for -lXcomposite... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008656if ${ac_cv_lib_soname_Xcomposite+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008657 $as_echo_n "(cached) " >&6
Chris Robinson42584652007-09-22 18:19:08 -07008658else
8659 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008660LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris Robinson42584652007-09-22 18:19:08 -07008662/* end confdefs.h. */
8663
8664/* Override any GCC internal prototype to avoid an error.
8665 Use char because int might match the return type of a GCC
8666 builtin and then its argument prototype would still apply. */
8667#ifdef __cplusplus
8668extern "C"
8669#endif
8670char XCompositeRedirectWindow ();
8671int
8672main ()
8673{
8674return XCompositeRedirectWindow ();
8675 ;
8676 return 0;
8677}
8678_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008679if ac_fn_c_try_link "$LINENO"; then :
Chris Robinson42584652007-09-22 18:19:08 -07008680 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008681 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 -07008682 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'` ;;
8683 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8684 esac
Chris Robinson42584652007-09-22 18:19:08 -07008685fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008686rm -f core conftest.err conftest.$ac_objext \
8687 conftest$ac_exeext conftest.$ac_ext
Chris Robinson42584652007-09-22 18:19:08 -07008688 LIBS=$ac_check_soname_save_LIBS
8689fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008690if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008692$as_echo "not found" >&6; }
Chris Robinson42584652007-09-22 18:19:08 -07008693
8694else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008696$as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
Chris Robinson42584652007-09-22 18:19:08 -07008697
8698cat >>confdefs.h <<_ACEOF
8699#define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8700_ACEOF
8701
8702
8703fi
Chris Robinson42584652007-09-22 18:19:08 -07008704 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008705 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008706 case "x$with_xcomposite" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008707 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 +01008708 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008709 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008710This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008711esac
Chris Robinson42584652007-09-22 18:19:08 -07008712fi
8713
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008714 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 +09008715#include <X11/Xlib.h>
8716#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008717"
Alexandre Julliard9797da42011-04-27 17:37:43 +02008718if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
Kusanagi Kouichi75e40222008-04-16 00:34:54 +09008719
8720cat >>confdefs.h <<_ACEOF
8721#define HAVE_XICCALLBACK_CALLBACK 1
8722_ACEOF
8723
8724
8725fi
Alexandre Julliarda8575a82011-04-12 21:16:15 +02008726ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
8727#include <X11/Xlib.h>
8728#endif
8729"
Alexandre Julliard9797da42011-04-27 17:37:43 +02008730if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
Alexandre Julliarda8575a82011-04-12 21:16:15 +02008731
8732cat >>confdefs.h <<_ACEOF
8733#define HAVE_XEVENT_XCOOKIE 1
8734_ACEOF
8735
8736
8737fi
Kusanagi Kouichi75e40222008-04-16 00:34:54 +09008738
8739
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008740
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008741 opengl_msg=""
8742 if test "x$with_opengl" != "xno"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008743 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008744 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8745do :
8746 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8747ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
Alexandre Julliard73482142005-08-03 19:21:04 +00008748# include <GL/glx.h>
8749#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008750"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008751if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008752 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01008753#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008754_ACEOF
8755
8756fi
8757
8758done
8759
Alexandre Julliard73482142005-08-03 19:21:04 +00008760 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8761 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008763$as_echo_n "checking for up-to-date OpenGL version... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008764if ${wine_cv_opengl_header_version_OK+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008765 $as_echo_n "(cached) " >&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00008766else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008768/* end confdefs.h. */
Lionel Ulmer5c085701999-02-28 19:48:53 +00008769#include <GL/gl.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008770int
8771main ()
8772{
Dan Kegel45725be2011-08-31 17:35:49 -07008773GLenum test = GL_UNSIGNED_SHORT_5_6_5; return (test == GL_UNSIGNED_SHORT_5_6_5);
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008774 ;
8775 return 0;
8776}
8777_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008778if ac_fn_c_try_compile "$LINENO"; then :
Roderick Colenbranderbc66d7e2006-08-24 01:11:27 +02008779 wine_cv_opengl_header_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00008780else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008781 wine_cv_opengl_header_version_OK="no"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008782fi
Jeremy White0ebeb532006-06-20 13:18:41 +02008783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008784fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008786$as_echo "$wine_cv_opengl_header_version_OK" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008787
Alexandre Julliardcc6a08c2006-08-24 14:34:22 +02008788 if test "$wine_cv_opengl_header_version_OK" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008789 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008791$as_echo_n "checking for -lGL... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008792if ${ac_cv_lib_soname_GL+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008793 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008794else
Alexandre Julliard31353e12007-07-04 12:44:12 +02008795 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008796LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008798/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008799
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008800/* Override any GCC internal prototype to avoid an error.
8801 Use char because int might match the return type of a GCC
8802 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008803#ifdef __cplusplus
8804extern "C"
8805#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008806char glXCreateContext ();
8807int
8808main ()
8809{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008810return glXCreateContext ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008811 ;
8812 return 0;
8813}
8814_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008815if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard31353e12007-07-04 12:44:12 +02008816 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008817 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 +02008818 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'` ;;
8819 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8820 esac
Patrik Stridvall24110281999-02-04 10:09:54 +00008821fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008822rm -f core conftest.err conftest.$ac_objext \
8823 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard31353e12007-07-04 12:44:12 +02008824 LIBS=$ac_check_soname_save_LIBS
Patrik Stridvall24110281999-02-04 10:09:54 +00008825fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008826if test "x$ac_cv_lib_soname_GL" = "x"; then :
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008828$as_echo "not found" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008830$as_echo_n "checking for -lGL... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008831if ${ac_cv_lib_soname_GL+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008832 $as_echo_n "(cached) " >&6
Francois Gougetd701ee22007-12-18 10:17:20 +01008833else
8834 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008835LIBS="-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 +02008836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetd701ee22007-12-18 10:17:20 +01008837/* end confdefs.h. */
8838
8839/* Override any GCC internal prototype to avoid an error.
8840 Use char because int might match the return type of a GCC
8841 builtin and then its argument prototype would still apply. */
8842#ifdef __cplusplus
8843extern "C"
8844#endif
8845char glXCreateContext ();
8846int
8847main ()
8848{
8849return glXCreateContext ();
8850 ;
8851 return 0;
8852}
8853_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008854if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetd701ee22007-12-18 10:17:20 +01008855 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008856 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 +01008857 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'` ;;
8858 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8859 esac
Francois Gougetd701ee22007-12-18 10:17:20 +01008860fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008861rm -f core conftest.err conftest.$ac_objext \
8862 conftest$ac_exeext conftest.$ac_ext
Francois Gougetd701ee22007-12-18 10:17:20 +01008863 LIBS=$ac_check_soname_save_LIBS
8864fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008865if test "x$ac_cv_lib_soname_GL" = "x"; then :
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008867$as_echo "not found" >&6; }
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008868 if test -f /usr/X11R6/lib/libGL.a
Francois Gougetd701ee22007-12-18 10:17:20 +01008869 then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008870 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008871This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
Francois Gougetd701ee22007-12-18 10:17:20 +01008872 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008873 opengl_msg="No OpenGL library found on this system."
Francois Gougetd701ee22007-12-18 10:17:20 +01008874 fi
8875else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008877$as_echo "$ac_cv_lib_soname_GL" >&6; }
Francois Gougetd701ee22007-12-18 10:17:20 +01008878
8879cat >>confdefs.h <<_ACEOF
8880#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8881_ACEOF
8882
8883 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 +01008884
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008885$as_echo "#define HAVE_OPENGL 1" >>confdefs.h
Francois Gougetd701ee22007-12-18 10:17:20 +01008886
8887fi
Alexandre Julliard31353e12007-07-04 12:44:12 +02008888else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008890$as_echo "$ac_cv_lib_soname_GL" >&6; }
Alexandre Julliard31353e12007-07-04 12:44:12 +02008891
8892cat >>confdefs.h <<_ACEOF
8893#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8894_ACEOF
8895
8896 OPENGL_LIBS="-lGL"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008897
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008898$as_echo "#define HAVE_OPENGL 1" >>confdefs.h
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008899
Alexandre Julliardc84c4782006-09-22 09:36:12 +02008900fi
Alexandre Julliardad798732008-05-01 13:29:02 +02008901 if test "$ac_cv_header_GL_glu_h" = "yes"
8902 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008904$as_echo_n "checking for -lGLU... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008905if ${ac_cv_lib_soname_GLU+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008906 $as_echo_n "(cached) " >&6
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008907else
Alexandre Julliardad798732008-05-01 13:29:02 +02008908 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008909LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008911/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008912
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008913/* Override any GCC internal prototype to avoid an error.
8914 Use char because int might match the return type of a GCC
8915 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008916#ifdef __cplusplus
8917extern "C"
8918#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008919char gluLookAt ();
8920int
8921main ()
8922{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008923return gluLookAt ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008924 ;
8925 return 0;
8926}
8927_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008928if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02008929 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008930 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 +02008931 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'` ;;
8932 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8933 esac
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008934fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008935rm -f core conftest.err conftest.$ac_objext \
8936 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardad798732008-05-01 13:29:02 +02008937 LIBS=$ac_check_soname_save_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008938fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008939if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008941$as_echo "not found" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008942
Alexandre Julliardad798732008-05-01 13:29:02 +02008943else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008945$as_echo "$ac_cv_lib_soname_GLU" >&6; }
Alexandre Julliardad798732008-05-01 13:29:02 +02008946
8947cat >>confdefs.h <<_ACEOF
8948#define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8949_ACEOF
8950
Alexandre Julliarddbb535e2008-08-25 12:12:28 +02008951
Alexandre Julliardad798732008-05-01 13:29:02 +02008952fi
Alexandre Julliardad798732008-05-01 13:29:02 +02008953 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008954 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02008955 case "x$with_glu" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008956 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 +02008957 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008958 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008959This is an error since --with-glu was requested." "$LINENO" 5 ;;
Alexandre Julliardad798732008-05-01 13:29:02 +02008960esac
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008961fi
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008962 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008963 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008964 fi
Roderick Colenbranderbc66d7e2006-08-24 01:11:27 +02008965 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008966 opengl_msg="OpenGL development headers not found."
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008967 fi
Alexandre Julliard8e9504d2008-09-24 13:11:11 +02008968 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8969 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8970 else
8971 enable_opengl32=${enable_opengl32:-no}
8972 enable_glu32=${enable_glu32:-no}
Patrik Stridvall24110281999-02-04 10:09:54 +00008973 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008974 if test -n "$opengl_msg"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008975 case "x$with_opengl" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008976 x) as_fn_append wine_warnings "|$opengl_msg
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008977OpenGL and Direct3D won't be supported." ;;
8978 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008979 *) as_fn_error $? "$opengl_msg
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008980OpenGL and Direct3D won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008981This is an error since --with-opengl was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008982esac
8983fi
8984
Ove Kaaven1eb593c1999-02-14 09:34:46 +00008985 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvallea584721998-11-01 16:22:07 +00008986else
8987 XLIB=""
8988 X_CFLAGS=""
8989 X_LIBS=""
Alexandre Julliarddbb535e2008-08-25 12:12:28 +02008990 enable_winex11_drv=${enable_winex11_drv:-no}
8991 enable_opengl32=${enable_opengl32:-no}
8992 enable_glu32=${enable_glu32:-no}
Patrik Stridvallea584721998-11-01 16:22:07 +00008993fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008994if test "x$XLIB" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008995 case "x$with_x" in
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008996 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008997 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
Gerald Pfeifer5805d8b2010-09-19 21:10:13 +02008998without X support, which probably isn't what you want. You will need
8999to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009000Use the --without-x option if you really want this." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009001esac
9002fi
9003
Adam Martinson2eb2f712010-12-28 12:46:09 -06009004if test "$ac_cv_header_CL_cl_h" = "yes"
Peter Urbanec65c84d72010-12-02 23:41:48 +11009005then
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9007$as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009008if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
Peter Urbanec65c84d72010-12-02 23:41:48 +11009009 $as_echo_n "(cached) " >&6
9010else
9011 ac_check_lib_save_LIBS=$LIBS
9012LIBS="-lOpenCL $LIBS"
9013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9014/* end confdefs.h. */
9015
9016/* Override any GCC internal prototype to avoid an error.
9017 Use char because int might match the return type of a GCC
9018 builtin and then its argument prototype would still apply. */
9019#ifdef __cplusplus
9020extern "C"
9021#endif
9022char clGetPlatformInfo ();
9023int
9024main ()
9025{
9026return clGetPlatformInfo ();
9027 ;
9028 return 0;
9029}
9030_ACEOF
9031if ac_fn_c_try_link "$LINENO"; then :
9032 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9033else
9034 ac_cv_lib_OpenCL_clGetPlatformInfo=no
9035fi
9036rm -f core conftest.err conftest.$ac_objext \
9037 conftest$ac_exeext conftest.$ac_ext
9038LIBS=$ac_check_lib_save_LIBS
9039fi
9040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9041$as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009042if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
Peter Urbanec65c84d72010-12-02 23:41:48 +11009043 LIBOPENCL="-lOpenCL"
9044
9045fi
9046
9047fi
9048if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9049 case "x$with_opencl" in
9050 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9051 xno) ;;
9052 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009053This is an error since --with-opencl was requested." "$LINENO" 5 ;;
Peter Urbanec65c84d72010-12-02 23:41:48 +11009054esac
9055fi
9056test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9057
Alexandre Julliard902da691995-11-05 14:39:02 +00009058
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009059XML2LIBS=""
9060
9061XML2INCL=""
9062
Mike McCormackf3719a82005-09-03 09:39:38 +00009063XSLTINCL=""
9064
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009065if test "x$with_xml" != "xno"
Mike McCormack90c75bd2005-08-08 18:36:53 +00009066then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009067 ac_save_CPPFLAGS="$CPPFLAGS"
9068 if test "$PKG_CONFIG" != "false"
9069 then
9070 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9071 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9072 else
9073 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9074 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
9075 fi
9076 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009077 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009078do :
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009079 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9080ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9081if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009082 cat >>confdefs.h <<_ACEOF
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009083#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009084_ACEOF
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009085
9086fi
9087
9088done
9089
9090 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"
9091 then
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009093$as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009094if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009095 $as_echo_n "(cached) " >&6
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009096else
9097 ac_check_lib_save_LIBS=$LIBS
Mike McCormack90c75bd2005-08-08 18:36:53 +00009098LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009100/* end confdefs.h. */
9101
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009102/* Override any GCC internal prototype to avoid an error.
9103 Use char because int might match the return type of a GCC
9104 builtin and then its argument prototype would still apply. */
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009105#ifdef __cplusplus
9106extern "C"
9107#endif
Mike McCormack90c75bd2005-08-08 18:36:53 +00009108char xmlParseMemory ();
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009109int
9110main ()
9111{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009112return xmlParseMemory ();
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009113 ;
9114 return 0;
9115}
9116_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009117if ac_fn_c_try_link "$LINENO"; then :
Mike McCormack90c75bd2005-08-08 18:36:53 +00009118 ac_cv_lib_xml2_xmlParseMemory=yes
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009119else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009120 ac_cv_lib_xml2_xmlParseMemory=no
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009121fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009122rm -f core conftest.err conftest.$ac_objext \
9123 conftest$ac_exeext conftest.$ac_ext
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009124LIBS=$ac_check_lib_save_LIBS
9125fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009127$as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009128if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009129
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009130$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009131
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009132 XML2LIBS="$ac_xml_libs"
9133 XML2INCL="$ac_xml_cflags"
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009134fi
9135
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009137$as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009138if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009139 $as_echo_n "(cached) " >&6
Mike McCormack70adb8f2005-08-12 10:35:17 +00009140else
9141 ac_check_lib_save_LIBS=$LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009142LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormack70adb8f2005-08-12 10:35:17 +00009144/* end confdefs.h. */
9145
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009146/* Override any GCC internal prototype to avoid an error.
9147 Use char because int might match the return type of a GCC
9148 builtin and then its argument prototype would still apply. */
Mike McCormack70adb8f2005-08-12 10:35:17 +00009149#ifdef __cplusplus
9150extern "C"
9151#endif
Mike McCormack70adb8f2005-08-12 10:35:17 +00009152char xmlReadMemory ();
9153int
9154main ()
9155{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009156return xmlReadMemory ();
Mike McCormack70adb8f2005-08-12 10:35:17 +00009157 ;
9158 return 0;
9159}
9160_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009161if ac_fn_c_try_link "$LINENO"; then :
Mike McCormack70adb8f2005-08-12 10:35:17 +00009162 ac_cv_lib_xml2_xmlReadMemory=yes
9163else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009164 ac_cv_lib_xml2_xmlReadMemory=no
Mike McCormack70adb8f2005-08-12 10:35:17 +00009165fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009166rm -f core conftest.err conftest.$ac_objext \
9167 conftest$ac_exeext conftest.$ac_ext
Mike McCormack70adb8f2005-08-12 10:35:17 +00009168LIBS=$ac_check_lib_save_LIBS
9169fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009171$as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009172if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
Mike McCormack70adb8f2005-08-12 10:35:17 +00009173
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009174$as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
Mike McCormack70adb8f2005-08-12 10:35:17 +00009175
9176fi
9177
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009179$as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009180if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009181 $as_echo_n "(cached) " >&6
Lei Zhang6a530ab2006-11-29 15:59:03 -08009182else
9183 ac_check_lib_save_LIBS=$LIBS
9184LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lei Zhang6a530ab2006-11-29 15:59:03 -08009186/* end confdefs.h. */
9187
9188/* Override any GCC internal prototype to avoid an error.
9189 Use char because int might match the return type of a GCC
9190 builtin and then its argument prototype would still apply. */
9191#ifdef __cplusplus
9192extern "C"
9193#endif
9194char xmlNewDocPI ();
9195int
9196main ()
9197{
9198return xmlNewDocPI ();
9199 ;
9200 return 0;
9201}
9202_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009203if ac_fn_c_try_link "$LINENO"; then :
Lei Zhang6a530ab2006-11-29 15:59:03 -08009204 ac_cv_lib_xml2_xmlNewDocPI=yes
9205else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009206 ac_cv_lib_xml2_xmlNewDocPI=no
Lei Zhang6a530ab2006-11-29 15:59:03 -08009207fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009208rm -f core conftest.err conftest.$ac_objext \
9209 conftest$ac_exeext conftest.$ac_ext
Lei Zhang6a530ab2006-11-29 15:59:03 -08009210LIBS=$ac_check_lib_save_LIBS
9211fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009213$as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009214if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
Lei Zhang6a530ab2006-11-29 15:59:03 -08009215
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009216$as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
Lei Zhang6a530ab2006-11-29 15:59:03 -08009217
9218fi
9219
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
Adam Martinson6ee22312010-11-22 20:54:54 -06009221$as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009222if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
Adam Martinson6ee22312010-11-22 20:54:54 -06009223 $as_echo_n "(cached) " >&6
9224else
9225 ac_check_lib_save_LIBS=$LIBS
9226LIBS="-lxml2 $ac_xml_libs $LIBS"
9227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9228/* end confdefs.h. */
9229
9230/* Override any GCC internal prototype to avoid an error.
9231 Use char because int might match the return type of a GCC
9232 builtin and then its argument prototype would still apply. */
9233#ifdef __cplusplus
9234extern "C"
9235#endif
9236char xmlSchemaSetParserStructuredErrors ();
9237int
9238main ()
9239{
9240return xmlSchemaSetParserStructuredErrors ();
9241 ;
9242 return 0;
9243}
9244_ACEOF
9245if ac_fn_c_try_link "$LINENO"; then :
9246 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9247else
9248 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9249fi
9250rm -f core conftest.err conftest.$ac_objext \
9251 conftest$ac_exeext conftest.$ac_ext
9252LIBS=$ac_check_lib_save_LIBS
9253fi
9254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9255$as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009256if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
Adam Martinson6ee22312010-11-22 20:54:54 -06009257
9258$as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9259
9260fi
9261
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
Adam Martinsonbe4d0e92010-11-01 14:11:16 -05009263$as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009264if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
Adam Martinsonbe4d0e92010-11-01 14:11:16 -05009265 $as_echo_n "(cached) " >&6
9266else
9267 ac_check_lib_save_LIBS=$LIBS
9268LIBS="-lxml2 $ac_xml_libs $LIBS"
9269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270/* end confdefs.h. */
9271
9272/* Override any GCC internal prototype to avoid an error.
9273 Use char because int might match the return type of a GCC
9274 builtin and then its argument prototype would still apply. */
9275#ifdef __cplusplus
9276extern "C"
9277#endif
9278char xmlSchemaSetValidStructuredErrors ();
9279int
9280main ()
9281{
9282return xmlSchemaSetValidStructuredErrors ();
9283 ;
9284 return 0;
9285}
9286_ACEOF
9287if ac_fn_c_try_link "$LINENO"; then :
9288 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9289else
9290 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9291fi
9292rm -f core conftest.err conftest.$ac_objext \
9293 conftest$ac_exeext conftest.$ac_ext
9294LIBS=$ac_check_lib_save_LIBS
9295fi
9296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9297$as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009298if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
Adam Martinsonbe4d0e92010-11-01 14:11:16 -05009299
9300$as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9301
9302fi
9303
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
Adam Martinson82f73c82010-11-11 15:16:24 -06009305$as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009306if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
Adam Martinson82f73c82010-11-11 15:16:24 -06009307 $as_echo_n "(cached) " >&6
9308else
9309 ac_check_lib_save_LIBS=$LIBS
9310LIBS="-lxml2 $ac_xml_libs $LIBS"
9311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9312/* end confdefs.h. */
9313
9314/* Override any GCC internal prototype to avoid an error.
9315 Use char because int might match the return type of a GCC
9316 builtin and then its argument prototype would still apply. */
9317#ifdef __cplusplus
9318extern "C"
9319#endif
9320char xmlFirstElementChild ();
9321int
9322main ()
9323{
9324return xmlFirstElementChild ();
9325 ;
9326 return 0;
9327}
9328_ACEOF
9329if ac_fn_c_try_link "$LINENO"; then :
9330 ac_cv_lib_xml2_xmlFirstElementChild=yes
9331else
9332 ac_cv_lib_xml2_xmlFirstElementChild=no
9333fi
9334rm -f core conftest.err conftest.$ac_objext \
9335 conftest$ac_exeext conftest.$ac_ext
9336LIBS=$ac_check_lib_save_LIBS
9337fi
9338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9339$as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009340if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
Adam Martinson82f73c82010-11-11 15:16:24 -06009341
9342$as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9343
9344fi
9345
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009346 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
Adam Martinson9408b492010-11-02 17:20:08 -05009347"
Alexandre Julliard9797da42011-04-27 17:37:43 +02009348if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
Adam Martinson9408b492010-11-02 17:20:08 -05009349
9350$as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9351
9352fi
9353
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009354 fi
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009355 CPPFLAGS="$ac_save_CPPFLAGS"
9356fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009357if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009358 case "x$with_xml" in
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009359 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 +01009360 xno) ;;
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009361 *) 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 +02009362This is an error since --with-xml was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009363esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009364fi
9365
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009366if test "x$with_xslt" != "xno"
Emmanuel Maillard2a98b402007-06-22 02:58:39 +02009367then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009368 if test "$PKG_CONFIG" != "false"
9369 then
9370 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9371 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9372 else
9373 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9374 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9375 fi
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009376 ac_save_CPPFLAGS="$CPPFLAGS"
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009377 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009378 for ac_header in libxslt/pattern.h libxslt/transform.h
9379do :
9380 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9381ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
Vincent Bérond7f64242005-09-15 09:39:09 +00009382# include <libxslt/pattern.h>
9383#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009384"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009385if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Mike McCormackf3719a82005-09-03 09:39:38 +00009386 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01009387#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Mike McCormackf3719a82005-09-03 09:39:38 +00009388_ACEOF
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009389
9390fi
9391
9392done
9393
9394 CPPFLAGS="$ac_save_CPPFLAGS"
9395 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9396 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009398$as_echo_n "checking for -lxslt... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009399if ${ac_cv_lib_soname_xslt+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009400 $as_echo_n "(cached) " >&6
Mike McCormackf3719a82005-09-03 09:39:38 +00009401else
Francois Gouget3d384f12008-11-17 19:29:32 +01009402 ac_check_soname_save_LIBS=$LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009403LIBS="-lxslt $ac_xslt_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackf3719a82005-09-03 09:39:38 +00009405/* end confdefs.h. */
9406
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009407/* Override any GCC internal prototype to avoid an error.
9408 Use char because int might match the return type of a GCC
9409 builtin and then its argument prototype would still apply. */
Mike McCormackf3719a82005-09-03 09:39:38 +00009410#ifdef __cplusplus
9411extern "C"
9412#endif
Mike McCormackf3719a82005-09-03 09:39:38 +00009413char xsltCompilePattern ();
9414int
9415main ()
9416{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009417return xsltCompilePattern ();
Mike McCormackf3719a82005-09-03 09:39:38 +00009418 ;
9419 return 0;
9420}
9421_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009422if ac_fn_c_try_link "$LINENO"; then :
Francois Gouget3d384f12008-11-17 19:29:32 +01009423 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009424 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 +01009425 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'` ;;
9426 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9427 esac
Mike McCormackf3719a82005-09-03 09:39:38 +00009428fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009429rm -f core conftest.err conftest.$ac_objext \
9430 conftest$ac_exeext conftest.$ac_ext
Francois Gouget3d384f12008-11-17 19:29:32 +01009431 LIBS=$ac_check_soname_save_LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009432fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009433if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009435$as_echo "not found" >&6; }
Mike McCormackf3719a82005-09-03 09:39:38 +00009436
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009437else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009439$as_echo "$ac_cv_lib_soname_xslt" >&6; }
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009440
Francois Gouget3d384f12008-11-17 19:29:32 +01009441cat >>confdefs.h <<_ACEOF
9442#define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009443_ACEOF
Mike McCormackf3719a82005-09-03 09:39:38 +00009444
Francois Gouget3d384f12008-11-17 19:29:32 +01009445 XSLTINCL="$ac_xslt_cflags"
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009446fi
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009447 fi
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009448fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009449if test "x$ac_cv_lib_soname_xslt" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009450 case "x$with_xslt" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009451 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 +01009452 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009453 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009454This is an error since --with-xslt was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009455esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009456fi
9457
Alexandre Julliarde45d1242011-12-20 10:36:35 +01009458if test "x$with_dbus" != "xno"
Alexandre Julliard00068982006-04-18 16:47:53 +02009459then
9460 ac_save_CPPFLAGS="$CPPFLAGS"
Francois Gouget295a0cd2009-01-09 20:22:22 +01009461 if test "$PKG_CONFIG" != "false"
9462 then
Alexandre Julliarde45d1242011-12-20 10:36:35 +01009463 ac_dbus_libs="`$PKG_CONFIG --libs dbus-1 2>/dev/null`"
9464 ac_dbus_cflags="`$PKG_CONFIG --cflags dbus-1 2>/dev/null`"
9465 CPPFLAGS="$CPPFLAGS $ac_dbus_cflags"
Francois Gouget295a0cd2009-01-09 20:22:22 +01009466 fi
Alexandre Julliarde45d1242011-12-20 10:36:35 +01009467 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
9468if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
9470$as_echo_n "checking for -ldbus-1... " >&6; }
9471if ${ac_cv_lib_soname_dbus_1+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009472 $as_echo_n "(cached) " >&6
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009473else
Alexandre Julliarde45d1242011-12-20 10:36:35 +01009474 ac_check_soname_save_LIBS=$LIBS
9475LIBS="-ldbus-1 $ac_dbus_libs $LIBS"
9476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009477/* end confdefs.h. */
9478
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009479/* Override any GCC internal prototype to avoid an error.
9480 Use char because int might match the return type of a GCC
9481 builtin and then its argument prototype would still apply. */
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009482#ifdef __cplusplus
9483extern "C"
9484#endif
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009485char dbus_connection_close ();
9486int
9487main ()
9488{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009489return dbus_connection_close ();
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009490 ;
9491 return 0;
9492}
9493_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009494if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarde45d1242011-12-20 10:36:35 +01009495 case "$LIBEXT" in
9496 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9497 dylib) ac_cv_lib_soname_dbus_1=`otool -L conftest$ac_exeext | grep "libdbus-1\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libdbus-1\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9498 *) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9499 esac
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009500fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009501rm -f core conftest.err conftest.$ac_objext \
9502 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde45d1242011-12-20 10:36:35 +01009503 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009504fi
Alexandre Julliarde45d1242011-12-20 10:36:35 +01009505if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9507$as_echo "not found" >&6; }
9508
9509else
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
9511$as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
9512
9513cat >>confdefs.h <<_ACEOF
9514#define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
9515_ACEOF
9516
9517 DBUSINCL="$ac_dbus_cflags"
9518
9519fi
9520fi
9521
9522
9523 CPPFLAGS="$ac_save_CPPFLAGS"
9524fi
9525if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
9526 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9527 case "x$with_dbus" in
9528 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9529 xno) ;;
9530 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
9531This is an error since --with-dbus was requested." "$LINENO" 5 ;;
9532esac
9533fi
9534
9535if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
9536then
9537 ac_save_CPPFLAGS="$CPPFLAGS"
9538 if test "$PKG_CONFIG" != "false"
9539 then
9540 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9541 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9542 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9543 fi
9544 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
9545if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009547$as_echo_n "checking for -lhal... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009548if ${ac_cv_lib_soname_hal+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009549 $as_echo_n "(cached) " >&6
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009550else
9551 ac_check_soname_save_LIBS=$LIBS
9552LIBS="-lhal $ac_hal_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009554/* end confdefs.h. */
Alexandre Julliard00068982006-04-18 16:47:53 +02009555
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009556/* Override any GCC internal prototype to avoid an error.
9557 Use char because int might match the return type of a GCC
9558 builtin and then its argument prototype would still apply. */
9559#ifdef __cplusplus
9560extern "C"
9561#endif
9562char libhal_ctx_new ();
9563int
9564main ()
9565{
9566return libhal_ctx_new ();
9567 ;
9568 return 0;
9569}
9570_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009571if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009572 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009573 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 +02009574 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'` ;;
9575 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9576 esac
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009577fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009578rm -f core conftest.err conftest.$ac_objext \
9579 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009580 LIBS=$ac_check_soname_save_LIBS
9581fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009582if test "x$ac_cv_lib_soname_hal" = "x"; then :
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009584$as_echo "not found" >&6; }
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009585
9586else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009588$as_echo "$ac_cv_lib_soname_hal" >&6; }
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009589
9590cat >>confdefs.h <<_ACEOF
9591#define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
Alexandre Julliard00068982006-04-18 16:47:53 +02009592_ACEOF
9593
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009594 HALINCL="$ac_hal_cflags"
Alexandre Julliarde45d1242011-12-20 10:36:35 +01009595
Alexandre Julliard00068982006-04-18 16:47:53 +02009596fi
Alexandre Julliard00068982006-04-18 16:47:53 +02009597fi
9598
Alexandre Julliarde45d1242011-12-20 10:36:35 +01009599
Alexandre Julliard00068982006-04-18 16:47:53 +02009600 CPPFLAGS="$ac_save_CPPFLAGS"
Alexandre Julliarde45d1242011-12-20 10:36:35 +01009601 if test "x$ac_cv_lib_soname_hal" = "x" -a \
9602 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009603 case "x$with_hal" in
Alexandre Julliarde45d1242011-12-20 10:36:35 +01009604 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009605 xno) ;;
Alexandre Julliarde45d1242011-12-20 10:36:35 +01009606 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009607This is an error since --with-hal was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009608esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009609fi
Alexandre Julliarde45d1242011-12-20 10:36:35 +01009610fi
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009611
Francois Gouget295a0cd2009-01-09 20:22:22 +01009612if test "x$with_gnutls" != "xno"
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009613then
9614 ac_save_CPPFLAGS="$CPPFLAGS"
Francois Gouget295a0cd2009-01-09 20:22:22 +01009615 if test "$PKG_CONFIG" != "false"
9616 then
9617 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9618 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9619 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9620 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009621 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 +02009622if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gouget3aae9542008-10-24 11:24:58 +02009624/* end confdefs.h. */
9625#include <gnutls/gnutls.h>
9626int
9627main ()
9628{
Dan Kegel45725be2011-08-31 17:35:49 -07009629static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
Francois Gouget3aae9542008-10-24 11:24:58 +02009630 ;
9631 return 0;
9632}
9633_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009634if ac_fn_c_try_compile "$LINENO"; then :
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009636$as_echo_n "checking for -lgnutls... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009637if ${ac_cv_lib_soname_gnutls+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009638 $as_echo_n "(cached) " >&6
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009639else
9640 ac_check_soname_save_LIBS=$LIBS
9641LIBS="-lgnutls $ac_gnutls_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009643/* end confdefs.h. */
9644
9645/* Override any GCC internal prototype to avoid an error.
9646 Use char because int might match the return type of a GCC
9647 builtin and then its argument prototype would still apply. */
9648#ifdef __cplusplus
9649extern "C"
9650#endif
9651char gnutls_global_init ();
9652int
9653main ()
9654{
9655return gnutls_global_init ();
9656 ;
9657 return 0;
9658}
9659_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009660if ac_fn_c_try_link "$LINENO"; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009661 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009662 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 +02009663 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'` ;;
9664 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9665 esac
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009666fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009667rm -f core conftest.err conftest.$ac_objext \
9668 conftest$ac_exeext conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009669 LIBS=$ac_check_soname_save_LIBS
9670fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009671if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009673$as_echo "not found" >&6; }
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009674
9675else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009677$as_echo "$ac_cv_lib_soname_gnutls" >&6; }
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009678
9679cat >>confdefs.h <<_ACEOF
9680#define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9681_ACEOF
9682
9683 GNUTLSINCL="$ac_gnutls_cflags"
9684
9685fi
Francois Gouget3aae9542008-10-24 11:24:58 +02009686fi
Francois Gouget3aae9542008-10-24 11:24:58 +02009687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009688fi
9689
9690
9691 CPPFLAGS="$ac_save_CPPFLAGS"
9692fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009693if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009694 case "x$with_gnutls" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009695 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009696 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009697 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009698This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009699esac
9700fi
9701
Alexandre Julliard48957682001-12-26 23:08:31 +00009702CURSESLIBS=""
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009703if test "$ac_cv_header_ncurses_h" = "yes"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00009704then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009706$as_echo_n "checking for -lncurses... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009707if ${ac_cv_lib_soname_ncurses+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009708 $as_echo_n "(cached) " >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009709else
Alexandre Julliardd0783772007-07-02 17:28:50 +02009710 ac_check_soname_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009711LIBS="-lncurses $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009713/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009714
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009715/* Override any GCC internal prototype to avoid an error.
9716 Use char because int might match the return type of a GCC
9717 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009718#ifdef __cplusplus
9719extern "C"
9720#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009721char waddch ();
9722int
9723main ()
9724{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009725return waddch ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009726 ;
9727 return 0;
9728}
9729_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009730if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0783772007-07-02 17:28:50 +02009731 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009732 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 +02009733 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'` ;;
9734 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9735 esac
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009736fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009737rm -f core conftest.err conftest.$ac_objext \
9738 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0783772007-07-02 17:28:50 +02009739 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009740fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009741if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009743$as_echo "not found" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009744
9745else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009747$as_echo "$ac_cv_lib_soname_ncurses" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009748
9749cat >>confdefs.h <<_ACEOF
9750#define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9751_ACEOF
9752
9753 CURSESLIBS="-lncurses"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009754fi
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009755elif test "$ac_cv_header_curses_h" = "yes"
9756then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009758$as_echo_n "checking for -lcurses... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009759if ${ac_cv_lib_soname_curses+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009760 $as_echo_n "(cached) " >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009761else
Alexandre Julliardd0783772007-07-02 17:28:50 +02009762 ac_check_soname_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009763LIBS="-lcurses $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009765/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009766
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009767/* Override any GCC internal prototype to avoid an error.
9768 Use char because int might match the return type of a GCC
9769 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009770#ifdef __cplusplus
9771extern "C"
9772#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009773char waddch ();
9774int
9775main ()
9776{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009777return waddch ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009778 ;
9779 return 0;
9780}
9781_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009782if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0783772007-07-02 17:28:50 +02009783 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009784 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 +02009785 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'` ;;
9786 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9787 esac
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009788fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009789rm -f core conftest.err conftest.$ac_objext \
9790 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0783772007-07-02 17:28:50 +02009791 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009792fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009793if test "x$ac_cv_lib_soname_curses" = "x"; then :
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009795$as_echo "not found" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009796
9797else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009799$as_echo "$ac_cv_lib_soname_curses" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009800
9801cat >>confdefs.h <<_ACEOF
9802#define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9803_ACEOF
9804
9805 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009806fi
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009807fi
9808ac_save_LIBS="$LIBS"
9809LIBS="$LIBS $CURSESLIBS"
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009810for ac_func in mousemask
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009811do :
9812 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
Alexandre Julliard9797da42011-04-27 17:37:43 +02009813if test "x$ac_cv_func_mousemask" = xyes; then :
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009814 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009815#define HAVE_MOUSEMASK 1
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009816_ACEOF
9817
9818fi
9819done
9820
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009821LIBS="$ac_save_LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009822if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009823 case "x$with_curses" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009824 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 +01009825 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009826 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009827This is an error since --with-curses was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009828esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009829fi
9830
Francois Gouget3fe5d802009-01-14 14:16:06 +01009831if test "x$with_sane" != "xno"
9832then
9833 ac_save_CPPFLAGS="$CPPFLAGS"
9834 # Extract the first word of "sane-config", so it can be a program name with args.
Shi Quan He6b0720f2002-03-21 02:58:39 +00009835set dummy sane-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009837$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009838if ${ac_cv_prog_sane_devel+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009839 $as_echo_n "(cached) " >&6
Shi Quan He6b0720f2002-03-21 02:58:39 +00009840else
9841 if test -n "$sane_devel"; then
9842 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9843else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9845for as_dir in $PATH
9846do
9847 IFS=$as_save_IFS
9848 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009849 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01009850 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 +00009851 ac_cv_prog_sane_devel="sane-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009853 break 2
9854 fi
9855done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009856 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009857IFS=$as_save_IFS
Shi Quan He6b0720f2002-03-21 02:58:39 +00009858
9859 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9860fi
9861fi
9862sane_devel=$ac_cv_prog_sane_devel
9863if test -n "$sane_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009865$as_echo "$sane_devel" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009866else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009868$as_echo "no" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009869fi
9870
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009871
Francois Gouget3fe5d802009-01-14 14:16:06 +01009872 if test "$sane_devel" != "no"
9873 then
9874 ac_sane_incl="`$sane_devel --cflags`"
9875 ac_sane_libs="`$sane_devel --ldflags`"
9876 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9877 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009878 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 +02009879if test "x$ac_cv_header_sane_sane_h" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009881$as_echo_n "checking for -lsane... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009882if ${ac_cv_lib_soname_sane+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009883 $as_echo_n "(cached) " >&6
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009884else
9885 ac_check_soname_save_LIBS=$LIBS
Francois Gougeta9d7bab2008-07-20 22:41:41 +02009886LIBS="-lsane $ac_sane_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009888/* end confdefs.h. */
9889
9890/* Override any GCC internal prototype to avoid an error.
9891 Use char because int might match the return type of a GCC
9892 builtin and then its argument prototype would still apply. */
9893#ifdef __cplusplus
9894extern "C"
9895#endif
9896char sane_init ();
9897int
9898main ()
9899{
9900return sane_init ();
9901 ;
9902 return 0;
9903}
9904_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009905if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009906 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009907 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 +02009908 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'` ;;
9909 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9910 esac
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009911fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009912rm -f core conftest.err conftest.$ac_objext \
9913 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009914 LIBS=$ac_check_soname_save_LIBS
9915fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009916if test "x$ac_cv_lib_soname_sane" = "x"; then :
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009918$as_echo "not found" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009919
9920else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009922$as_echo "$ac_cv_lib_soname_sane" >&6; }
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009923
9924cat >>confdefs.h <<_ACEOF
9925#define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9926_ACEOF
9927
9928 SANEINCL="$ac_sane_incl"
9929
9930fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00009931fi
9932
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009933
Shi Quan He6b0720f2002-03-21 02:58:39 +00009934 CPPFLAGS="$ac_save_CPPFLAGS"
9935fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009936if test "x$ac_cv_lib_soname_sane" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009937 case "x$with_sane" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009938 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 +01009939 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009940 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009941This is an error since --with-sane was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009942esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009943fi
9944
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01009945if test "x$with_v4l" != "xno"
9946then
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9948$as_echo_n "checking for -lv4l1... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009949if ${ac_cv_lib_soname_v4l1+:} false; then :
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01009950 $as_echo_n "(cached) " >&6
9951else
9952 ac_check_soname_save_LIBS=$LIBS
9953LIBS="-lv4l1 $LIBS"
9954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955/* end confdefs.h. */
9956
9957/* Override any GCC internal prototype to avoid an error.
9958 Use char because int might match the return type of a GCC
9959 builtin and then its argument prototype would still apply. */
9960#ifdef __cplusplus
9961extern "C"
9962#endif
9963char v4l1_open ();
9964int
9965main ()
9966{
9967return v4l1_open ();
9968 ;
9969 return 0;
9970}
9971_ACEOF
9972if ac_fn_c_try_link "$LINENO"; then :
9973 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009974 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 +01009975 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'` ;;
9976 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9977 esac
9978fi
9979rm -f core conftest.err conftest.$ac_objext \
9980 conftest$ac_exeext conftest.$ac_ext
9981 LIBS=$ac_check_soname_save_LIBS
9982fi
9983if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9985$as_echo "not found" >&6; }
9986
9987else
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
9989$as_echo "$ac_cv_lib_soname_v4l1" >&6; }
9990
9991cat >>confdefs.h <<_ACEOF
9992#define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
9993_ACEOF
9994
9995
9996fi
9997fi
9998if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9999 case "x$with_v4l" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010000 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +010010001 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010002 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010003This is an error since --with-v4l was requested." "$LINENO" 5 ;;
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +010010004esac
10005fi
10006
Francois Gouget3fe5d802009-01-14 14:16:06 +010010007if test "x$with_gphoto" != "xno"
10008then
10009 ac_save_CPPFLAGS="$CPPFLAGS"
10010 # Extract the first word of "gphoto2-config", so it can be a program name with args.
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010011set dummy gphoto2-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010013$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010014if ${ac_cv_prog_gphoto2_devel+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010015 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010016else
10017 if test -n "$gphoto2_devel"; then
10018 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10019else
10020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10021for as_dir in $PATH
10022do
10023 IFS=$as_save_IFS
10024 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010025 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010010026 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 +020010027 ac_cv_prog_gphoto2_devel="gphoto2-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010029 break 2
10030 fi
10031done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010032 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010033IFS=$as_save_IFS
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010034
10035 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10036fi
10037fi
10038gphoto2_devel=$ac_cv_prog_gphoto2_devel
10039if test -n "$gphoto2_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010041$as_echo "$gphoto2_devel" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010042else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010044$as_echo "no" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010045fi
10046
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010047
Francois Gouget3fe5d802009-01-14 14:16:06 +010010048 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010049set dummy gphoto2-port-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010051$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010052if ${ac_cv_prog_gphoto2port_devel+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010053 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010054else
10055 if test -n "$gphoto2port_devel"; then
10056 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10057else
10058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059for as_dir in $PATH
10060do
10061 IFS=$as_save_IFS
10062 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010063 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010010064 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 +020010065 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010067 break 2
10068 fi
10069done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010070 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010071IFS=$as_save_IFS
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010072
10073 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10074fi
10075fi
10076gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10077if test -n "$gphoto2port_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010079$as_echo "$gphoto2port_devel" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010080else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010082$as_echo "no" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010083fi
10084
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010085
Francois Gouget3fe5d802009-01-14 14:16:06 +010010086 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10087 then
10088 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10089 ac_gphoto2_libs=""
10090 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10091 do
10092 case "$i" in
10093 -L/usr/lib|-L/usr/lib64) ;;
10094 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10095 esac
10096 done
10097 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10098 fi
Shunichi Fuji4bf77d62009-01-20 15:24:46 +090010099 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010100 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 +020010101if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010103$as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010104if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010105 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010106else
10107 ac_check_lib_save_LIBS=$LIBS
Francois Gouget4bc03fe2008-07-21 17:10:45 +020010108LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010110/* end confdefs.h. */
10111
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010112/* Override any GCC internal prototype to avoid an error.
10113 Use char because int might match the return type of a GCC
10114 builtin and then its argument prototype would still apply. */
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010115#ifdef __cplusplus
10116extern "C"
10117#endif
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010118char gp_camera_new ();
10119int
10120main ()
10121{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010122return gp_camera_new ();
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010123 ;
10124 return 0;
10125}
10126_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010127if ac_fn_c_try_link "$LINENO"; then :
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010128 ac_cv_lib_gphoto2_gp_camera_new=yes
10129else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010130 ac_cv_lib_gphoto2_gp_camera_new=no
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010131fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010132rm -f core conftest.err conftest.$ac_objext \
10133 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010134LIBS=$ac_check_lib_save_LIBS
10135fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010137$as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010138if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010139
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010140$as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010141
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010142 GPHOTO2LIBS="$ac_gphoto2_libs"
10143
10144 GPHOTO2INCL="$ac_gphoto2_incl"
10145
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010146fi
10147
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010148fi
10149
10150
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010151 CPPFLAGS="$ac_save_CPPFLAGS"
10152fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010153if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010154 case "x$with_gphoto" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010155 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 +010010156 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010157 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010158This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010159esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010160fi
10161
10162
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010163if test "$ac_cv_header_resolv_h" = "yes"
10164then
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +010010165 ac_save_LIBS="$LIBS"
Tijl Coosemanse7ec1642010-09-23 18:20:31 +020010166 for lib in '' -lresolv
10167 do
10168 LIBS="$lib $ac_save_LIBS"
10169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010170/* end confdefs.h. */
Rob Shearmanba349212009-01-02 12:12:06 +000010171#ifdef HAVE_NETINET_IN_H
10172#include <netinet/in.h>
10173#endif
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +010010174#include <resolv.h>
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010175int
10176main ()
10177{
Tijl Coosemanse7ec1642010-09-23 18:20:31 +020010178res_query("foo",ns_c_in,0,0,0);
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010179 ;
10180 return 0;
10181}
10182_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010183if ac_fn_c_try_link "$LINENO"; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010184
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010185$as_echo "#define HAVE_RESOLV 1" >>confdefs.h
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010186
Tijl Coosemanse7ec1642010-09-23 18:20:31 +020010187 RESOLVLIBS="$lib"
10188
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010189fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010190rm -f core conftest.err conftest.$ac_objext \
10191 conftest$ac_exeext conftest.$ac_ext
Tijl Coosemanse7ec1642010-09-23 18:20:31 +020010192 if test "${RESOLVLIBS+set}" = set; then
10193 break
10194 fi
10195 done
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +010010196 LIBS="$ac_save_LIBS"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010197fi
10198
Hans Leidekkerd3447022005-07-15 10:09:43 +000010199LCMSLIBS=""
10200
10201if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10202then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010204$as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010205if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010206 $as_echo_n "(cached) " >&6
Hans Leidekkerd3447022005-07-15 10:09:43 +000010207else
10208 ac_check_lib_save_LIBS=$LIBS
10209LIBS="-llcms $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Hans Leidekkerd3447022005-07-15 10:09:43 +000010211/* end confdefs.h. */
10212
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010213/* Override any GCC internal prototype to avoid an error.
10214 Use char because int might match the return type of a GCC
10215 builtin and then its argument prototype would still apply. */
Hans Leidekkerd3447022005-07-15 10:09:43 +000010216#ifdef __cplusplus
10217extern "C"
10218#endif
Hans Leidekkerd3447022005-07-15 10:09:43 +000010219char cmsOpenProfileFromFile ();
10220int
10221main ()
10222{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010223return cmsOpenProfileFromFile ();
Hans Leidekkerd3447022005-07-15 10:09:43 +000010224 ;
10225 return 0;
10226}
10227_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010228if ac_fn_c_try_link "$LINENO"; then :
Hans Leidekkerd3447022005-07-15 10:09:43 +000010229 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10230else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010231 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
Hans Leidekkerd3447022005-07-15 10:09:43 +000010232fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010233rm -f core conftest.err conftest.$ac_objext \
10234 conftest$ac_exeext conftest.$ac_ext
Hans Leidekkerd3447022005-07-15 10:09:43 +000010235LIBS=$ac_check_lib_save_LIBS
10236fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010238$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010239if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
Hans Leidekkerd3447022005-07-15 10:09:43 +000010240
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010241$as_echo "#define HAVE_LCMS 1" >>confdefs.h
Hans Leidekkerd3447022005-07-15 10:09:43 +000010242
10243 LCMSLIBS="-llcms"
10244fi
10245
10246fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010247if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010248 case "x$with_cms" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010249 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 +010010250 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010251 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010252This is an error since --with-cms was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010253esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010254fi
10255
Francois Gouget3fe5d802009-01-14 14:16:06 +010010256if test "x$with_freetype" != "xno"
10257then
10258 for ac_prog in freetype-config freetype2-config
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010259do
10260 # Extract the first word of "$ac_prog", so it can be a program name with args.
10261set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010263$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010264if ${ac_cv_prog_ft_devel+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010265 $as_echo_n "(cached) " >&6
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010266else
10267 if test -n "$ft_devel"; then
10268 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10269else
10270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10271for as_dir in $PATH
10272do
10273 IFS=$as_save_IFS
10274 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010275 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010010276 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 +020010277 ac_cv_prog_ft_devel="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010279 break 2
10280 fi
10281done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010282 done
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010283IFS=$as_save_IFS
10284
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010285fi
10286fi
10287ft_devel=$ac_cv_prog_ft_devel
10288if test -n "$ft_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010290$as_echo "$ft_devel" >&6; }
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010291else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010293$as_echo "no" >&6; }
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010294fi
10295
10296
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010297 test -n "$ft_devel" && break
10298done
Francois Gouget3fe5d802009-01-14 14:16:06 +010010299test -n "$ft_devel" || ft_devel="no"
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010300
Francois Gouget3fe5d802009-01-14 14:16:06 +010010301 if test "$ft_devel" != "no"
10302 then
10303 ac_freetype_incl=`$ft_devel --cflags`
10304 ac_freetype_libs=`$ft_devel --libs`
10305 fi
Shunichi Fuji4bf77d62009-01-20 15:24:46 +090010306 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010308$as_echo_n "checking for -lfreetype... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010309if ${ac_cv_lib_soname_freetype+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010310 $as_echo_n "(cached) " >&6
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010311else
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010312 ac_check_soname_save_LIBS=$LIBS
10313LIBS="-lfreetype $ac_freetype_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010315/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010316
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010317/* Override any GCC internal prototype to avoid an error.
10318 Use char because int might match the return type of a GCC
10319 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010320#ifdef __cplusplus
10321extern "C"
10322#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010323char FT_Init_FreeType ();
10324int
10325main ()
10326{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010327return FT_Init_FreeType ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010328 ;
10329 return 0;
10330}
10331_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010332if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010333 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010334 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 +020010335 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'` ;;
10336 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10337 esac
Ian Pilcher563598d2001-05-16 20:56:05 +000010338fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010339rm -f core conftest.err conftest.$ac_objext \
10340 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010341 LIBS=$ac_check_soname_save_LIBS
Ian Pilcher563598d2001-05-16 20:56:05 +000010342fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010343if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010345$as_echo "not found" >&6; }
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010346 ft_lib=no
Ian Pilcher563598d2001-05-16 20:56:05 +000010347else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010349$as_echo "$ac_cv_lib_soname_freetype" >&6; }
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010350
10351cat >>confdefs.h <<_ACEOF
10352#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10353_ACEOF
10354
10355 ft_lib=yes
Ian Pilcher563598d2001-05-16 20:56:05 +000010356fi
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010357 if test "$ft_lib" = "yes"
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010358 then
Ian Pilcher40432fe2001-06-06 21:05:23 +000010359 ac_save_CPPFLAGS="$CPPFLAGS"
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010360 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010361 for ac_header in ft2build.h \
Rein Klazese617a9c2003-11-19 02:18:13 +000010362 freetype/freetype.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010363 freetype/ftglyph.h \
Dmitry Timoshkovb0d15902007-09-20 19:10:31 +090010364 freetype/fttypes.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010365 freetype/tttables.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010366 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +000010367 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000010368 freetype/ftoutln.h \
Huw Daviesc2217182004-06-16 20:06:26 +000010369 freetype/ftwinfnt.h \
Huw Davies603d21c2006-01-24 10:57:35 +010010370 freetype/ftmodapi.h \
Huw Davies6ee2eae2011-10-11 10:14:55 +010010371 freetype/ftlcdfil.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010372do :
10373 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10374ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
Francois Gouget9e67edf2008-03-06 12:34:48 +010010375 # include <ft2build.h>
Rein Klazes9c269172003-11-20 04:17:33 +000010376 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010377"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010378if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010379 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010010380#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010381_ACEOF
10382
10383fi
10384
Ian Pilcher40432fe2001-06-06 21:05:23 +000010385done
10386
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010388/* end confdefs.h. */
Alexandre Julliard18d75732002-01-29 03:02:50 +000010389#include <ft2build.h>
10390 #include <freetype/fttrigon.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010391_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010392if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010393
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010394$as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
Alexandre Julliard18d75732002-01-29 03:02:50 +000010395
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010396 wine_cv_fttrigon=yes
Alexandre Julliard18d75732002-01-29 03:02:50 +000010397else
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010398 wine_cv_fttrigon=no
Alexandre Julliard18d75732002-01-29 03:02:50 +000010399fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010400rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010401 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10402"
Alexandre Julliard9797da42011-04-27 17:37:43 +020010403if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
Huw Daviesd8a6c272006-02-22 12:24:25 +000010404
10405cat >>confdefs.h <<_ACEOF
10406#define HAVE_FT_TRUETYPEENGINETYPE 1
10407_ACEOF
10408
10409
10410fi
10411
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010412 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010413 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010414
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010415$as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010416
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010417 FREETYPELIBS="$ac_freetype_libs"
10418
10419 FREETYPEINCL="$ac_freetype_incl"
10420
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010421 fi
Ian Pilcher563598d2001-05-16 20:56:05 +000010422 fi
10423fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010424if test "x$FREETYPELIBS" = "x"; then :
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010425 case "x$with_freetype" in
10426 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010427 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010428Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010429esac
Huw Davies00acb5f2004-08-17 22:33:14 +000010430fi
Alexandre Julliard6de0af12008-08-25 14:41:03 +020010431test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010432
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010434$as_echo_n "checking for parport header/ppdev.h... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010435if ${ac_cv_c_ppdev+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010436 $as_echo_n "(cached) " >&6
Pavel Roskin94d99641998-12-26 11:52:51 +000010437else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010439/* end confdefs.h. */
Yann Droneauddd33ee92010-03-08 14:46:46 +010010440#ifdef HAVE_SYS_IOCTL_H
10441# include <sys/ioctl.h>
10442#endif
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010443#include <linux/ppdev.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010444int
10445main ()
10446{
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010447ioctl (1,PPCLAIM,0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010448 ;
10449 return 0;
10450}
10451_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010452if ac_fn_c_try_compile "$LINENO"; then :
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010453 ac_cv_c_ppdev="yes"
10454else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010455 ac_cv_c_ppdev="no"
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010456fi
Jeremy White0ebeb532006-06-20 13:18:41 +020010457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010458fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010460$as_echo "$ac_cv_c_ppdev" >&6; }
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010461if test "$ac_cv_c_ppdev" = "yes"
10462then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010463
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010464$as_echo "#define HAVE_PPDEV 1" >>confdefs.h
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010465
10466fi
10467
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010468ac_wine_check_funcs_save_LIBS="$LIBS"
Alexandre Julliard821ab862003-11-12 22:44:56 +000010469LIBS="$LIBS $LIBPTHREAD"
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000010470for ac_func in \
Tijl Coosemansfc8172f2006-08-05 23:31:07 +020010471 pthread_attr_get_np \
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000010472 pthread_getattr_np \
10473 pthread_get_stackaddr_np \
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010474 pthread_get_stacksize_np
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010475do :
10476 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10477ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010478if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Alexandre Julliard821ab862003-11-12 22:44:56 +000010479 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010010480#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliard821ab862003-11-12 22:44:56 +000010481_ACEOF
10482
10483fi
10484done
10485
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010486LIBS="$ac_wine_check_funcs_save_LIBS"
Alexandre Julliard821ab862003-11-12 22:44:56 +000010487
Jacek Caban11ca05f2009-05-29 23:35:13 +020010488if test "$ac_cv_header_zlib_h" = "yes"
10489then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
Jacek Caban11ca05f2009-05-29 23:35:13 +020010491$as_echo_n "checking for inflate in -lz... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010492if ${ac_cv_lib_z_inflate+:} false; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010493 $as_echo_n "(cached) " >&6
10494else
10495 ac_check_lib_save_LIBS=$LIBS
10496LIBS="-lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010497cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jacek Caban11ca05f2009-05-29 23:35:13 +020010498/* end confdefs.h. */
10499
10500/* Override any GCC internal prototype to avoid an error.
10501 Use char because int might match the return type of a GCC
10502 builtin and then its argument prototype would still apply. */
10503#ifdef __cplusplus
10504extern "C"
10505#endif
10506char inflate ();
10507int
10508main ()
10509{
10510return inflate ();
10511 ;
10512 return 0;
10513}
10514_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010515if ac_fn_c_try_link "$LINENO"; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010516 ac_cv_lib_z_inflate=yes
10517else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010518 ac_cv_lib_z_inflate=no
Jacek Caban11ca05f2009-05-29 23:35:13 +020010519fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010520rm -f core conftest.err conftest.$ac_objext \
10521 conftest$ac_exeext conftest.$ac_ext
Jacek Caban11ca05f2009-05-29 23:35:13 +020010522LIBS=$ac_check_lib_save_LIBS
10523fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
Jacek Caban11ca05f2009-05-29 23:35:13 +020010525$as_echo "$ac_cv_lib_z_inflate" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010526if test "x$ac_cv_lib_z_inflate" = xyes; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010527
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010528$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
Jacek Caban11ca05f2009-05-29 23:35:13 +020010529
10530 ZLIB="-lz"
10531
10532fi
10533
10534fi
Alexandre Julliardba6a41a2011-02-18 13:07:27 +010010535if test "x$ZLIB" = "x"; then :
10536 case "x$with_zlib" in
10537 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10538 xno) ;;
10539 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010540This is an error since --with-zlib was requested." "$LINENO" 5 ;;
Alexandre Julliardba6a41a2011-02-18 13:07:27 +010010541esac
10542fi
Jacek Caban11ca05f2009-05-29 23:35:13 +020010543
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010544if test "x$enable_tools" != xno
10545then
10546 if test "$ac_cv_header_gettext_po_h" = "yes"
10547 then
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10549$as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010550if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010551 $as_echo_n "(cached) " >&6
10552else
10553 ac_check_lib_save_LIBS=$LIBS
10554LIBS="-lgettextpo $LIBS"
10555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10556/* end confdefs.h. */
10557
10558/* Override any GCC internal prototype to avoid an error.
10559 Use char because int might match the return type of a GCC
10560 builtin and then its argument prototype would still apply. */
10561#ifdef __cplusplus
10562extern "C"
10563#endif
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010564char po_message_msgctxt ();
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010565int
10566main ()
10567{
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010568return po_message_msgctxt ();
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010569 ;
10570 return 0;
10571}
10572_ACEOF
10573if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010574 ac_cv_lib_gettextpo_po_message_msgctxt=yes
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010575else
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010576 ac_cv_lib_gettextpo_po_message_msgctxt=no
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010577fi
10578rm -f core conftest.err conftest.$ac_objext \
10579 conftest$ac_exeext conftest.$ac_ext
10580LIBS=$ac_check_lib_save_LIBS
10581fi
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10583$as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010584if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010585
10586$as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10587
10588 LIBGETTEXTPO="-lgettextpo"
10589
10590fi
10591
10592 fi
Alexandre Julliard9159cfe2011-10-22 20:46:36 +020010593 test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010594 case "x$with_gettextpo" in
Alexandre Julliard9159cfe2011-10-22 20:46:36 +020010595 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010596 xno) ;;
Alexandre Julliard9159cfe2011-10-22 20:46:36 +020010597 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010598This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010599esac
10600fi
10601fi
10602
Aric Stewart2914d652010-10-20 13:55:16 -050010603if test "x$with_gstreamer" != "xno"
10604then
10605 ac_save_CPPFLAGS="$CPPFLAGS"
10606 if test "$PKG_CONFIG" != "false"; then
10607 ac_gst_incl=""
10608 for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10609 do
10610 case "$i" in
10611 -I*) ac_gst_incl="$ac_gst_incl $i";;
10612 esac
10613 done
10614 ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10615 CPPFLAGS="$CPPFLAGS $ac_gst_incl"
Andrew Nguyende417972010-10-29 00:26:04 -050010616 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 +020010617if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
Andrew Nguyende417972010-10-29 00:26:04 -050010618 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 +020010619if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
Octavian Voicub113af12011-08-03 01:38:43 +030010620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
10621$as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
10622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623/* end confdefs.h. */
10624#include <gst/app/gstappsink.h>
10625int
10626main ()
10627{
Dan Kegel45725be2011-08-31 17:35:49 -070010628static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
Octavian Voicub113af12011-08-03 01:38:43 +030010629 ;
10630 return 0;
10631}
10632_ACEOF
10633if ac_fn_c_try_compile "$LINENO"; then :
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10635$as_echo "yes" >&6; }
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
Andrew Nguyende417972010-10-29 00:26:04 -050010637$as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010638if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
Andrew Nguyende417972010-10-29 00:26:04 -050010639 $as_echo_n "(cached) " >&6
10640else
10641 ac_check_lib_save_LIBS=$LIBS
10642LIBS="-lgstreamer-0.10 $LIBS"
10643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10644/* end confdefs.h. */
10645
10646/* Override any GCC internal prototype to avoid an error.
10647 Use char because int might match the return type of a GCC
10648 builtin and then its argument prototype would still apply. */
10649#ifdef __cplusplus
10650extern "C"
10651#endif
10652char gst_pad_get_caps_reffed ();
10653int
10654main ()
10655{
10656return gst_pad_get_caps_reffed ();
10657 ;
10658 return 0;
10659}
10660_ACEOF
10661if ac_fn_c_try_link "$LINENO"; then :
10662 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10663else
10664 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10665fi
10666rm -f core conftest.err conftest.$ac_objext \
10667 conftest$ac_exeext conftest.$ac_ext
10668LIBS=$ac_check_lib_save_LIBS
10669fi
10670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10671$as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010672if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
Aric Stewart2914d652010-10-20 13:55:16 -050010673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10674$as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010675if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
Aric Stewart2914d652010-10-20 13:55:16 -050010676 $as_echo_n "(cached) " >&6
10677else
10678 ac_check_lib_save_LIBS=$LIBS
10679LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10681/* end confdefs.h. */
10682
10683/* Override any GCC internal prototype to avoid an error.
10684 Use char because int might match the return type of a GCC
10685 builtin and then its argument prototype would still apply. */
10686#ifdef __cplusplus
10687extern "C"
10688#endif
10689char gst_app_buffer_new ();
10690int
10691main ()
10692{
10693return gst_app_buffer_new ();
10694 ;
10695 return 0;
10696}
10697_ACEOF
10698if ac_fn_c_try_link "$LINENO"; then :
10699 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10700else
10701 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10702fi
10703rm -f core conftest.err conftest.$ac_objext \
10704 conftest$ac_exeext conftest.$ac_ext
10705LIBS=$ac_check_lib_save_LIBS
10706fi
10707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10708$as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010709if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
Aric Stewart2914d652010-10-20 13:55:16 -050010710 GSTREAMER_LIBS="$ac_gst_libs"
10711
Octavian Voicub113af12011-08-03 01:38:43 +030010712 GSTREAMER_INCL="$ac_gst_incl"
Aric Stewart2914d652010-10-20 13:55:16 -050010713
10714fi
10715
10716fi
10717
Octavian Voicub113af12011-08-03 01:38:43 +030010718else
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10720$as_echo "no" >&6; }
10721fi
10722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Andrew Nguyende417972010-10-29 00:26:04 -050010723fi
10724
10725
10726fi
10727
Aric Stewart2914d652010-10-20 13:55:16 -050010728
10729 fi
10730 CPPFLAGS="$ac_save_CPPFLAGS"
10731fi
Alexandre Julliardfa3ddd82011-01-14 15:59:51 +010010732if 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 -050010733 case "x$with_gstreamer" in
Detlef Riekenberg654bb4a2010-12-12 22:48:56 +010010734 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 -050010735 xno) ;;
Detlef Riekenberg654bb4a2010-12-12 22:48:56 +010010736 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
Alexandre Julliard9797da42011-04-27 17:37:43 +020010737This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
Aric Stewart2914d652010-10-20 13:55:16 -050010738esac
10739fi
10740test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10741
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010742ALSALIBS=""
10743
Marco Pietrobono0e79a412002-08-29 01:51:31 +000010744if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010745then
Austin Englishaeb78cb2011-01-12 01:43:46 -080010746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10747$as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010748if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010749 $as_echo_n "(cached) " >&6
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010750else
10751 ac_check_lib_save_LIBS=$LIBS
10752LIBS="-lasound $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010754/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010755
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010756/* Override any GCC internal prototype to avoid an error.
10757 Use char because int might match the return type of a GCC
10758 builtin and then its argument prototype would still apply. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010759#ifdef __cplusplus
10760extern "C"
10761#endif
Austin Englishaeb78cb2011-01-12 01:43:46 -080010762char snd_pcm_hw_params_get_access_mask ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010763int
10764main ()
10765{
Austin Englishaeb78cb2011-01-12 01:43:46 -080010766return snd_pcm_hw_params_get_access_mask ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010767 ;
10768 return 0;
10769}
10770_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010771if ac_fn_c_try_link "$LINENO"; then :
Austin Englishaeb78cb2011-01-12 01:43:46 -080010772 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010773else
Austin Englishaeb78cb2011-01-12 01:43:46 -080010774 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010775fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010776rm -f core conftest.err conftest.$ac_objext \
10777 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010778LIBS=$ac_check_lib_save_LIBS
10779fi
Austin Englishaeb78cb2011-01-12 01:43:46 -080010780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
10781$as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010782if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Vincent Béron151015f2005-01-10 13:26:33 +000010784/* end confdefs.h. */
10785#ifdef HAVE_ALSA_ASOUNDLIB_H
10786#include <alsa/asoundlib.h>
10787#elif defined(HAVE_SYS_ASOUNDLIB_H)
10788#include <sys/asoundlib.h>
10789#endif
10790int
10791main ()
10792{
Austin English8521ebe2011-06-13 21:26:40 -070010793snd_pcm_hw_params_get_access_mask(NULL, NULL)
Vincent Béron151015f2005-01-10 13:26:33 +000010794 ;
10795 return 0;
10796}
10797_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010798if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard255cc212011-03-28 22:07:26 +020010799 ALSALIBS="-lasound"
Vincent Béron151015f2005-01-10 13:26:33 +000010800fi
Jeremy White0ebeb532006-06-20 13:18:41 +020010801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010802fi
10803
10804fi
10805
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020010806if test "x$with_oss" != xno
Andrew Eikumbe332322011-04-27 09:12:36 -050010807then
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020010808 ac_save_CPPFLAGS="$CPPFLAGS"
10809 if test -f /etc/oss.conf
10810 then
10811 . /etc/oss.conf
10812 fi
10813 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
10814 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
10815 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10816if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
10817 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 -050010818"
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020010819if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
Andrew Eikumbe332322011-04-27 09:12:36 -050010820
10821cat >>confdefs.h <<_ACEOF
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020010822#define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
Andrew Eikumbe332322011-04-27 09:12:36 -050010823_ACEOF
10824
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020010825OSS4INCL="$ac_oss_incl"
Andrew Eikumbe332322011-04-27 09:12:36 -050010826
10827fi
10828
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020010829fi
10830
10831
10832 CPPFLAGS="$ac_save_CPPFLAGS"
10833 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
Andrew Eikumbe332322011-04-27 09:12:36 -050010834 then
10835 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
10836 fi
10837fi
10838
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010839
Alexandre Julliard73482142005-08-03 19:21:04 +000010840if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10841then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010843$as_echo_n "checking for -lcapi20... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010844if ${ac_cv_lib_soname_capi20+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010845 $as_echo_n "(cached) " >&6
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010846else
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010847 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010848LIBS="-lcapi20 $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010850/* end confdefs.h. */
10851
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010852/* Override any GCC internal prototype to avoid an error.
10853 Use char because int might match the return type of a GCC
10854 builtin and then its argument prototype would still apply. */
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010855#ifdef __cplusplus
10856extern "C"
10857#endif
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010858char capi20_register ();
10859int
10860main ()
10861{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010862return capi20_register ();
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010863 ;
10864 return 0;
10865}
10866_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010867if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010868 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010869 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 +020010870 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'` ;;
10871 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10872 esac
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010873fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010874rm -f core conftest.err conftest.$ac_objext \
10875 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010876 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010877fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010878if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010880$as_echo "not found" >&6; }
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010881
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010882else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010884$as_echo "$ac_cv_lib_soname_capi20" >&6; }
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010885
10886cat >>confdefs.h <<_ACEOF
10887#define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010888_ACEOF
10889
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010890
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010891fi
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010892fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010893if test "x$ac_cv_lib_soname_capi20" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010894 case "x$with_capi" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010895 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 +010010896 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010897 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010898This is an error since --with-capi was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010899esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010900fi
10901
Francois Gouget289ea332008-07-24 16:09:07 +020010902CUPSINCL=""
10903
10904if test "x$with_cups" != "xno"
Alexandre Julliard702d3552007-07-02 17:30:44 +020010905then
Francois Gouget289ea332008-07-24 16:09:07 +020010906 ac_save_CPPFLAGS="$CPPFLAGS"
10907 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
Alexandre Julliarda991a562008-07-28 12:04:46 +020010908 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
Francois Gouget289ea332008-07-24 16:09:07 +020010909 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010910 for ac_header in cups/cups.h
10911do :
10912 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 +020010913if test "x$ac_cv_header_cups_cups_h" = xyes; then :
Francois Gouget289ea332008-07-24 16:09:07 +020010914 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010915#define HAVE_CUPS_CUPS_H 1
Francois Gouget289ea332008-07-24 16:09:07 +020010916_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010918$as_echo_n "checking for -lcups... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010919if ${ac_cv_lib_soname_cups+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010920 $as_echo_n "(cached) " >&6
Alexandre Julliard702d3552007-07-02 17:30:44 +020010921else
10922 ac_check_soname_save_LIBS=$LIBS
Francois Gouget289ea332008-07-24 16:09:07 +020010923LIBS="-lcups $ac_cups_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard702d3552007-07-02 17:30:44 +020010925/* end confdefs.h. */
10926
10927/* Override any GCC internal prototype to avoid an error.
10928 Use char because int might match the return type of a GCC
10929 builtin and then its argument prototype would still apply. */
10930#ifdef __cplusplus
10931extern "C"
10932#endif
10933char cupsGetDefault ();
10934int
10935main ()
10936{
10937return cupsGetDefault ();
10938 ;
10939 return 0;
10940}
10941_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010942if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard702d3552007-07-02 17:30:44 +020010943 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010944 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 +020010945 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'` ;;
10946 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10947 esac
Alexandre Julliard702d3552007-07-02 17:30:44 +020010948fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010949rm -f core conftest.err conftest.$ac_objext \
10950 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard702d3552007-07-02 17:30:44 +020010951 LIBS=$ac_check_soname_save_LIBS
10952fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010953if test "x$ac_cv_lib_soname_cups" = "x"; then :
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010955$as_echo "not found" >&6; }
Alexandre Julliard702d3552007-07-02 17:30:44 +020010956
10957else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010959$as_echo "$ac_cv_lib_soname_cups" >&6; }
Alexandre Julliard702d3552007-07-02 17:30:44 +020010960
10961cat >>confdefs.h <<_ACEOF
10962#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10963_ACEOF
10964
Francois Gouget289ea332008-07-24 16:09:07 +020010965 CUPSINCL="$ac_cups_cflags"
10966fi
Alexandre Julliard702d3552007-07-02 17:30:44 +020010967fi
10968
Francois Gouget289ea332008-07-24 16:09:07 +020010969done
10970
10971 CPPFLAGS="$ac_save_CPPFLAGS"
Alexandre Julliard702d3552007-07-02 17:30:44 +020010972fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010973if test "x$ac_cv_lib_soname_cups" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010974 case "x$with_cups" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010975 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 +010010976 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010977 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010978This is an error since --with-cups was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010979esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010980fi
10981
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010982if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10983then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010985$as_echo_n "checking for -lfontconfig... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010986if ${ac_cv_lib_soname_fontconfig+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010987 $as_echo_n "(cached) " >&6
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010988else
10989 ac_check_soname_save_LIBS=$LIBS
10990LIBS="-lfontconfig $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010992/* end confdefs.h. */
10993
10994/* Override any GCC internal prototype to avoid an error.
10995 Use char because int might match the return type of a GCC
10996 builtin and then its argument prototype would still apply. */
10997#ifdef __cplusplus
10998extern "C"
10999#endif
11000char FcInit ();
11001int
11002main ()
11003{
11004return FcInit ();
11005 ;
11006 return 0;
11007}
11008_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011009if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011010 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011011 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 +020011012 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'` ;;
11013 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11014 esac
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011015fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011016rm -f core conftest.err conftest.$ac_objext \
11017 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011018 LIBS=$ac_check_soname_save_LIBS
11019fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011020if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011022$as_echo "not found" >&6; }
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011023
11024else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011026$as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011027
11028cat >>confdefs.h <<_ACEOF
11029#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11030_ACEOF
11031
11032
11033fi
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011034elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
Alexandre Julliard5c076732007-10-17 17:04:01 +020011035then
11036 ac_save_CPPFLAGS="$CPPFLAGS"
11037 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11038 $as_unset ac_cv_header_fontconfig_fontconfig_h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011039 for ac_header in fontconfig/fontconfig.h
11040do :
11041 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 +020011042if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
Alexandre Julliard5c076732007-10-17 17:04:01 +020011043 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011044#define HAVE_FONTCONFIG_FONTCONFIG_H 1
Alexandre Julliard5c076732007-10-17 17:04:01 +020011045_ACEOF
11046
11047fi
11048
11049done
11050
11051 CPPFLAGS="$ac_save_CPPFLAGS"
11052 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11053 then
11054 FONTCONFIGINCL="$X_CFLAGS"
11055
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011057$as_echo_n "checking for -lfontconfig... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011058if ${ac_cv_lib_soname_fontconfig+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011059 $as_echo_n "(cached) " >&6
Alexandre Julliard5c076732007-10-17 17:04:01 +020011060else
11061 ac_check_soname_save_LIBS=$LIBS
11062LIBS="-lfontconfig $X_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard5c076732007-10-17 17:04:01 +020011064/* end confdefs.h. */
11065
11066/* Override any GCC internal prototype to avoid an error.
11067 Use char because int might match the return type of a GCC
11068 builtin and then its argument prototype would still apply. */
11069#ifdef __cplusplus
11070extern "C"
11071#endif
11072char FcInit ();
11073int
11074main ()
11075{
11076return FcInit ();
11077 ;
11078 return 0;
11079}
11080_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011081if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard5c076732007-10-17 17:04:01 +020011082 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011083 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 +020011084 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'` ;;
11085 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11086 esac
Alexandre Julliard5c076732007-10-17 17:04:01 +020011087fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011088rm -f core conftest.err conftest.$ac_objext \
11089 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard5c076732007-10-17 17:04:01 +020011090 LIBS=$ac_check_soname_save_LIBS
11091fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011092if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011094$as_echo "not found" >&6; }
Alexandre Julliard5c076732007-10-17 17:04:01 +020011095
11096else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011098$as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
Alexandre Julliard5c076732007-10-17 17:04:01 +020011099
11100cat >>confdefs.h <<_ACEOF
11101#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11102_ACEOF
11103
11104
11105fi
Alexandre Julliard5c076732007-10-17 17:04:01 +020011106 fi
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011107fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011108if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011109 case "x$with_fontconfig" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011110 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 +010011111 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011112 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011113This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011114esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011115fi
11116
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011117if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11118then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011120$as_echo_n "checking for -lssl... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011121if ${ac_cv_lib_soname_ssl+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011122 $as_echo_n "(cached) " >&6
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011123else
11124 ac_check_soname_save_LIBS=$LIBS
11125LIBS="-lssl $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011127/* end confdefs.h. */
11128
11129/* Override any GCC internal prototype to avoid an error.
11130 Use char because int might match the return type of a GCC
11131 builtin and then its argument prototype would still apply. */
11132#ifdef __cplusplus
11133extern "C"
11134#endif
11135char SSL_library_init ();
11136int
11137main ()
11138{
11139return SSL_library_init ();
11140 ;
11141 return 0;
11142}
11143_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011144if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011145 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011146 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 +020011147 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'` ;;
11148 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11149 esac
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011150fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011151rm -f core conftest.err conftest.$ac_objext \
11152 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011153 LIBS=$ac_check_soname_save_LIBS
11154fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011155if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011157$as_echo "not found" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011158
11159else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011161$as_echo "$ac_cv_lib_soname_ssl" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011162
11163cat >>confdefs.h <<_ACEOF
11164#define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11165_ACEOF
11166
11167
11168fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011170$as_echo_n "checking for -lcrypto... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011171if ${ac_cv_lib_soname_crypto+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011172 $as_echo_n "(cached) " >&6
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011173else
11174 ac_check_soname_save_LIBS=$LIBS
11175LIBS="-lcrypto $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011177/* end confdefs.h. */
11178
11179/* Override any GCC internal prototype to avoid an error.
11180 Use char because int might match the return type of a GCC
11181 builtin and then its argument prototype would still apply. */
11182#ifdef __cplusplus
11183extern "C"
11184#endif
11185char BIO_new_socket ();
11186int
11187main ()
11188{
11189return BIO_new_socket ();
11190 ;
11191 return 0;
11192}
11193_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011194if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011195 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011196 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 +020011197 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'` ;;
11198 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11199 esac
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011200fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011201rm -f core conftest.err conftest.$ac_objext \
11202 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011203 LIBS=$ac_check_soname_save_LIBS
11204fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011205if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011207$as_echo "not found" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011208
11209else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011211$as_echo "$ac_cv_lib_soname_crypto" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011212
11213cat >>confdefs.h <<_ACEOF
11214#define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11215_ACEOF
11216
11217
11218fi
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011219fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011220if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011221 case "x$with_openssl" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011222 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 +010011223 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011224 *) as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011225This is an error since --with-openssl was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011226esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011227fi
11228
Maarten Lankhorstc186d8a2009-08-05 11:35:50 +020011229if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011230then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011232$as_echo_n "checking for -lgsm... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011233if ${ac_cv_lib_soname_gsm+:} false; then :
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011234 $as_echo_n "(cached) " >&6
11235else
11236 ac_check_soname_save_LIBS=$LIBS
11237LIBS="-lgsm $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011239/* end confdefs.h. */
11240
11241/* Override any GCC internal prototype to avoid an error.
11242 Use char because int might match the return type of a GCC
11243 builtin and then its argument prototype would still apply. */
11244#ifdef __cplusplus
11245extern "C"
11246#endif
11247char gsm_create ();
11248int
11249main ()
11250{
11251return gsm_create ();
11252 ;
11253 return 0;
11254}
11255_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011256if ac_fn_c_try_link "$LINENO"; then :
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011257 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011258 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 +020011259 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'` ;;
11260 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11261 esac
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011262fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011263rm -f core conftest.err conftest.$ac_objext \
11264 conftest$ac_exeext conftest.$ac_ext
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011265 LIBS=$ac_check_soname_save_LIBS
11266fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011267if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011269$as_echo "not found" >&6; }
11270
11271else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011273$as_echo "$ac_cv_lib_soname_gsm" >&6; }
11274
11275cat >>confdefs.h <<_ACEOF
11276#define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11277_ACEOF
11278
11279
11280fi
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011281fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011282if test "x$ac_cv_lib_soname_gsm" = "x"; then :
Alexandre Julliard6ce32e02009-08-19 15:53:04 +020011283 case "x$with_gsm" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011284 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 +020011285 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011286 *) 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 +020011287This is an error since --with-gsm was requested." "$LINENO" 5 ;;
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011288esac
11289fi
11290
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011291if test "$ac_cv_header_jpeglib_h" = "yes"
11292then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011294$as_echo_n "checking for -ljpeg... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011295if ${ac_cv_lib_soname_jpeg+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011296 $as_echo_n "(cached) " >&6
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011297else
11298 ac_check_soname_save_LIBS=$LIBS
11299LIBS="-ljpeg $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011301/* end confdefs.h. */
11302
11303/* Override any GCC internal prototype to avoid an error.
11304 Use char because int might match the return type of a GCC
11305 builtin and then its argument prototype would still apply. */
11306#ifdef __cplusplus
11307extern "C"
11308#endif
11309char jpeg_start_decompress ();
11310int
11311main ()
11312{
11313return jpeg_start_decompress ();
11314 ;
11315 return 0;
11316}
11317_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011318if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011319 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011320 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 +020011321 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'` ;;
11322 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11323 esac
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011324fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011325rm -f core conftest.err conftest.$ac_objext \
11326 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011327 LIBS=$ac_check_soname_save_LIBS
11328fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011329if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011331$as_echo "not found" >&6; }
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011332
11333else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011335$as_echo "$ac_cv_lib_soname_jpeg" >&6; }
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011336
11337cat >>confdefs.h <<_ACEOF
11338#define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11339_ACEOF
11340
11341
11342fi
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011343fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011344if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011345 case "x$with_jpeg" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011346 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 +010011347 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011348 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011349This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011350esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011351fi
11352
Alexandre Julliard00302152007-07-02 19:54:00 +020011353if test "$ac_cv_header_png_h" = "yes"
11354then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011356$as_echo_n "checking for -lpng... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011357if ${ac_cv_lib_soname_png+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011358 $as_echo_n "(cached) " >&6
Alexandre Julliard00302152007-07-02 19:54:00 +020011359else
11360 ac_check_soname_save_LIBS=$LIBS
Austin Englishfe8879e2008-12-28 19:10:19 -060011361LIBS="-lpng -lm -lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard00302152007-07-02 19:54:00 +020011363/* end confdefs.h. */
11364
11365/* Override any GCC internal prototype to avoid an error.
11366 Use char because int might match the return type of a GCC
11367 builtin and then its argument prototype would still apply. */
11368#ifdef __cplusplus
11369extern "C"
11370#endif
11371char png_create_read_struct ();
11372int
11373main ()
11374{
11375return png_create_read_struct ();
11376 ;
11377 return 0;
11378}
11379_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011380if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard00302152007-07-02 19:54:00 +020011381 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011382 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 +020011383 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'` ;;
11384 *) 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'` ;;
11385 esac
Alexandre Julliard00302152007-07-02 19:54:00 +020011386fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011387rm -f core conftest.err conftest.$ac_objext \
11388 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard00302152007-07-02 19:54:00 +020011389 LIBS=$ac_check_soname_save_LIBS
11390fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011391if test "x$ac_cv_lib_soname_png" = "x"; then :
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011393$as_echo "not found" >&6; }
Alexandre Julliard00302152007-07-02 19:54:00 +020011394
11395else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011397$as_echo "$ac_cv_lib_soname_png" >&6; }
Alexandre Julliard00302152007-07-02 19:54:00 +020011398
11399cat >>confdefs.h <<_ACEOF
11400#define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11401_ACEOF
11402
11403
11404fi
Marcus Meissner615e0e62010-02-27 23:13:21 +010011405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11406$as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011407if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
Marcus Meissner615e0e62010-02-27 23:13:21 +010011408 $as_echo_n "(cached) " >&6
11409else
11410 ac_check_lib_save_LIBS=$LIBS
11411LIBS="-lpng -lm -lz $LIBS"
11412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11413/* end confdefs.h. */
11414
11415/* Override any GCC internal prototype to avoid an error.
11416 Use char because int might match the return type of a GCC
11417 builtin and then its argument prototype would still apply. */
11418#ifdef __cplusplus
11419extern "C"
11420#endif
11421char png_set_expand_gray_1_2_4_to_8 ();
11422int
11423main ()
11424{
11425return png_set_expand_gray_1_2_4_to_8 ();
11426 ;
11427 return 0;
11428}
11429_ACEOF
11430if ac_fn_c_try_link "$LINENO"; then :
11431 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11432else
11433 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11434fi
11435rm -f core conftest.err conftest.$ac_objext \
11436 conftest$ac_exeext conftest.$ac_ext
11437LIBS=$ac_check_lib_save_LIBS
11438fi
11439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11440$as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011441if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
Marcus Meissner615e0e62010-02-27 23:13:21 +010011442
11443$as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11444
11445
11446fi
11447
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011448elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11449then
11450 ac_save_CPPFLAGS="$CPPFLAGS"
11451 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11452 $as_unset ac_cv_header_png_h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011453 for ac_header in png.h
11454do :
11455 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020011456if test "x$ac_cv_header_png_h" = xyes; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011457 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011458#define HAVE_PNG_H 1
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011459_ACEOF
11460
11461fi
11462
11463done
11464
11465 CPPFLAGS="$ac_save_CPPFLAGS"
11466 if test "$ac_cv_header_png_h" = "yes"
11467 then
11468 PNGINCL="$X_CFLAGS"
11469
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011471$as_echo_n "checking for -lpng... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011472if ${ac_cv_lib_soname_png+:} false; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011473 $as_echo_n "(cached) " >&6
11474else
11475 ac_check_soname_save_LIBS=$LIBS
11476LIBS="-lpng $X_LIBS -lm -lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011478/* end confdefs.h. */
11479
11480/* Override any GCC internal prototype to avoid an error.
11481 Use char because int might match the return type of a GCC
11482 builtin and then its argument prototype would still apply. */
11483#ifdef __cplusplus
11484extern "C"
11485#endif
11486char png_create_read_struct ();
11487int
11488main ()
11489{
11490return png_create_read_struct ();
11491 ;
11492 return 0;
11493}
11494_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011495if ac_fn_c_try_link "$LINENO"; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011496 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011497 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 +020011498 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'` ;;
11499 *) 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'` ;;
11500 esac
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011501fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011502rm -f core conftest.err conftest.$ac_objext \
11503 conftest$ac_exeext conftest.$ac_ext
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011504 LIBS=$ac_check_soname_save_LIBS
11505fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011506if test "x$ac_cv_lib_soname_png" = "x"; then :
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011508$as_echo "not found" >&6; }
11509
11510else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011511 { $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 +020011512$as_echo "$ac_cv_lib_soname_png" >&6; }
11513
11514cat >>confdefs.h <<_ACEOF
11515#define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11516_ACEOF
11517
11518
11519fi
Marcus Meissner615e0e62010-02-27 23:13:21 +010011520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11521$as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011522if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
Marcus Meissner615e0e62010-02-27 23:13:21 +010011523 $as_echo_n "(cached) " >&6
11524else
11525 ac_check_lib_save_LIBS=$LIBS
11526LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11528/* end confdefs.h. */
11529
11530/* Override any GCC internal prototype to avoid an error.
11531 Use char because int might match the return type of a GCC
11532 builtin and then its argument prototype would still apply. */
11533#ifdef __cplusplus
11534extern "C"
11535#endif
11536char png_set_expand_gray_1_2_4_to_8 ();
11537int
11538main ()
11539{
11540return png_set_expand_gray_1_2_4_to_8 ();
11541 ;
11542 return 0;
11543}
11544_ACEOF
11545if ac_fn_c_try_link "$LINENO"; then :
11546 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11547else
11548 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11549fi
11550rm -f core conftest.err conftest.$ac_objext \
11551 conftest$ac_exeext conftest.$ac_ext
11552LIBS=$ac_check_lib_save_LIBS
11553fi
11554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11555$as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011556if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
Marcus Meissner615e0e62010-02-27 23:13:21 +010011557 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11558
11559fi
11560
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011561 fi
Alexandre Julliard00302152007-07-02 19:54:00 +020011562fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011563if test "x$ac_cv_lib_soname_png" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011564 case "x$with_png" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011565 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 +010011566 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011567 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011568This is an error since --with-png was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011569esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011570fi
11571
Vincent Povirk73cd5692010-03-08 17:07:29 -060011572if test "$ac_cv_header_tiffio_h" = "yes"
11573then
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11575$as_echo_n "checking for -ltiff... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011576if ${ac_cv_lib_soname_tiff+:} false; then :
Vincent Povirk73cd5692010-03-08 17:07:29 -060011577 $as_echo_n "(cached) " >&6
11578else
11579 ac_check_soname_save_LIBS=$LIBS
11580LIBS="-ltiff $LIBS"
11581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11582/* end confdefs.h. */
11583
11584/* Override any GCC internal prototype to avoid an error.
11585 Use char because int might match the return type of a GCC
11586 builtin and then its argument prototype would still apply. */
11587#ifdef __cplusplus
11588extern "C"
11589#endif
11590char TIFFClientOpen ();
11591int
11592main ()
11593{
11594return TIFFClientOpen ();
11595 ;
11596 return 0;
11597}
11598_ACEOF
11599if ac_fn_c_try_link "$LINENO"; then :
11600 case "$LIBEXT" in
11601 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11602 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'` ;;
11603 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11604 esac
11605fi
11606rm -f core conftest.err conftest.$ac_objext \
11607 conftest$ac_exeext conftest.$ac_ext
11608 LIBS=$ac_check_soname_save_LIBS
11609fi
11610if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11612$as_echo "not found" >&6; }
11613
11614else
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11616$as_echo "$ac_cv_lib_soname_tiff" >&6; }
11617
11618cat >>confdefs.h <<_ACEOF
11619#define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11620_ACEOF
11621
11622
11623fi
11624fi
11625if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11626 case "x$with_tiff" in
11627 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11628 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011629 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011630This is an error since --with-tiff was requested." "$LINENO" 5 ;;
Vincent Povirk73cd5692010-03-08 17:07:29 -060011631esac
11632fi
11633
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011634if test "$ac_cv_header_mpg123_h" = "yes"
11635then
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11637$as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011638if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011639 $as_echo_n "(cached) " >&6
11640else
11641 ac_check_lib_save_LIBS=$LIBS
11642LIBS="-lmpg123 $LIBS"
11643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11644/* end confdefs.h. */
11645
11646/* Override any GCC internal prototype to avoid an error.
11647 Use char because int might match the return type of a GCC
11648 builtin and then its argument prototype would still apply. */
11649#ifdef __cplusplus
11650extern "C"
11651#endif
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011652char mpg123_feed ();
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011653int
11654main ()
11655{
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011656return mpg123_feed ();
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011657 ;
11658 return 0;
11659}
11660_ACEOF
11661if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011662 ac_cv_lib_mpg123_mpg123_feed=yes
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011663else
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011664 ac_cv_lib_mpg123_mpg123_feed=no
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011665fi
11666rm -f core conftest.err conftest.$ac_objext \
11667 conftest$ac_exeext conftest.$ac_ext
11668LIBS=$ac_check_lib_save_LIBS
11669fi
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11671$as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011672if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011673 LIBMPG123="-lmpg123"
11674
11675fi
11676
11677fi
Aric Stewart4430ab42010-03-17 10:58:32 -050011678if 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 -050011679 case "x$with_mpg123" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011680 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 -050011681 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011682 *) 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 +020011683This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011684esac
11685fi
Kristofer Henrikssonc58eff62010-05-24 15:04:42 -040011686test "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 -050011687
Chris Robinson862965f2009-08-25 03:26:35 -070011688if test "$ac_cv_header_AL_al_h" = "yes"
11689then
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11691$as_echo_n "checking for -lopenal... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011692if ${ac_cv_lib_soname_openal+:} false; then :
Chris Robinson862965f2009-08-25 03:26:35 -070011693 $as_echo_n "(cached) " >&6
11694else
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011695 ac_check_soname_save_LIBS=$LIBS
Chris Robinson862965f2009-08-25 03:26:35 -070011696LIBS="-lopenal $LIBS"
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris Robinson862965f2009-08-25 03:26:35 -070011698/* end confdefs.h. */
11699
11700/* Override any GCC internal prototype to avoid an error.
11701 Use char because int might match the return type of a GCC
11702 builtin and then its argument prototype would still apply. */
11703#ifdef __cplusplus
11704extern "C"
11705#endif
11706char alGetSource3i ();
11707int
11708main ()
11709{
11710return alGetSource3i ();
11711 ;
11712 return 0;
11713}
11714_ACEOF
11715if ac_fn_c_try_link "$LINENO"; then :
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011716 case "$LIBEXT" in
11717 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11718 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'` ;;
11719 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11720 esac
Chris Robinson862965f2009-08-25 03:26:35 -070011721fi
11722rm -f core conftest.err conftest.$ac_objext \
11723 conftest$ac_exeext conftest.$ac_ext
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011724 LIBS=$ac_check_soname_save_LIBS
Chris Robinson862965f2009-08-25 03:26:35 -070011725fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011726if test "x$ac_cv_lib_soname_openal" = "x"; then :
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11728$as_echo "not found" >&6; }
11729
11730else
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11732$as_echo "$ac_cv_lib_soname_openal" >&6; }
11733
11734cat >>confdefs.h <<_ACEOF
11735#define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11736_ACEOF
11737
11738 LIBOPENAL="-lopenal"
11739
11740 ac_cv_lib_openal=yes
11741
11742cat >>confdefs.h <<_ACEOF
11743#define HAVE_OPENAL 1
11744_ACEOF
Chris Robinson862965f2009-08-25 03:26:35 -070011745
11746fi
Chris Robinson862965f2009-08-25 03:26:35 -070011747fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011748if test "x$ac_cv_lib_openal" != xyes; then :
Chris Robinson862965f2009-08-25 03:26:35 -070011749 case "x$with_openal" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011750 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 -070011751 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011752 *) 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 +020011753This is an error since --with-openal was requested." "$LINENO" 5 ;;
Chris Robinson862965f2009-08-25 03:26:35 -070011754esac
11755fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011756test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
Chris Robinson862965f2009-08-25 03:26:35 -070011757
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011758if test "$ac_cv_header_kstat_h" = "yes"
11759then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011761$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011762if ${ac_cv_lib_kstat_kstat_open+:} false; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011763 $as_echo_n "(cached) " >&6
11764else
11765 ac_check_lib_save_LIBS=$LIBS
11766LIBS="-lkstat $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011768/* end confdefs.h. */
11769
11770/* Override any GCC internal prototype to avoid an error.
11771 Use char because int might match the return type of a GCC
11772 builtin and then its argument prototype would still apply. */
11773#ifdef __cplusplus
11774extern "C"
11775#endif
11776char kstat_open ();
11777int
11778main ()
11779{
11780return kstat_open ();
11781 ;
11782 return 0;
11783}
11784_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011785if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011786 ac_cv_lib_kstat_kstat_open=yes
11787else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011788 ac_cv_lib_kstat_kstat_open=no
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011789fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011790rm -f core conftest.err conftest.$ac_objext \
11791 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011792LIBS=$ac_check_lib_save_LIBS
11793fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011795$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011796if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011797
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011798$as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011799
11800 LIBKSTAT="-lkstat"
11801
11802fi
11803
11804fi
11805
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011807$as_echo_n "checking for -lodbc... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011808if ${ac_cv_lib_soname_odbc+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011809 $as_echo_n "(cached) " >&6
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011810else
11811 ac_check_soname_save_LIBS=$LIBS
11812LIBS="-lodbc $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011814/* end confdefs.h. */
11815
11816/* Override any GCC internal prototype to avoid an error.
11817 Use char because int might match the return type of a GCC
11818 builtin and then its argument prototype would still apply. */
11819#ifdef __cplusplus
11820extern "C"
11821#endif
11822char SQLConnect ();
11823int
11824main ()
11825{
11826return SQLConnect ();
11827 ;
11828 return 0;
11829}
11830_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011831if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011832 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011833 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 +010011834 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'` ;;
11835 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11836 esac
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011837fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011838rm -f core conftest.err conftest.$ac_objext \
11839 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011840 LIBS=$ac_check_soname_save_LIBS
11841fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011842if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011844$as_echo "not found" >&6; }
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011845 cat >>confdefs.h <<_ACEOF
11846#define SONAME_LIBODBC "libodbc.$LIBEXT"
11847_ACEOF
11848
11849else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011851$as_echo "$ac_cv_lib_soname_odbc" >&6; }
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011852
11853cat >>confdefs.h <<_ACEOF
11854#define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11855_ACEOF
11856
11857
11858fi
11859
Alexandre Julliard98cb21f2011-03-17 11:42:17 +010011860test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
11861test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020011862test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
Alexandre Julliard98cb21f2011-03-17 11:42:17 +010011863test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
11864
Austin Englisheb17b8c2011-07-23 23:05:04 -050011865if test "x$ALSALIBS$COREAUDIO" = "x" -a \
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020011866 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
Andrew Eikum55f9ac82011-07-13 14:20:47 -050011867 "x$with_alsa$with_coreaudio$with_oss" != xnonono
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011868then
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011869 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
Alexandre Julliardf9dec942007-07-10 15:14:15 +020011870fi
11871
11872
Alexandre Julliardfc094232003-04-14 21:46:41 +000011873EXTRACFLAGS=""
11874
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011875if test "x${GCC}" = "xyes"
11876then
Hans Leidekkerd17b2322004-01-06 21:37:44 +000011877 EXTRACFLAGS="-Wall -pipe"
Mike McCormackc509bc42003-02-25 04:01:58 +000011878
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011880$as_echo_n "checking for gcc strength-reduce bug... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011881if ${ac_cv_c_gcc_strength_bug+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011882 $as_echo_n "(cached) " >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011883else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011884 if test "$cross_compiling" = yes; then :
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011885 ac_cv_c_gcc_strength_bug="yes"
11886else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011888/* end confdefs.h. */
Alexandre Julliardad356de2007-06-08 20:23:16 +020011889int L[4] = {0,1,2,3};
11890int
11891main ()
11892{
11893static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011894 unsigned int B = 3;
11895 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000011896 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +000011897 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11898 L[i] = 4;
Alexandre Julliard95251a72009-02-16 12:46:58 +010011899 return (Array[1] != -2 || L[2] != 3)
Alexandre Julliardad356de2007-06-08 20:23:16 +020011900 ;
11901 return 0;
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011902}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011903_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011904if ac_fn_c_try_run "$LINENO"; then :
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011905 ac_cv_c_gcc_strength_bug="no"
11906else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011907 ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011908fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011909rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11910 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011911fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011912
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011913fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011915$as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011916 if test "$ac_cv_c_gcc_strength_bug" = "yes"
11917 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000011918 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011919 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000011920
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011922$as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011923if ${ac_cv_cflags__fno_builtin+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011924 $as_echo_n "(cached) " >&6
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011925else
11926 ac_wine_try_cflags_saved=$CFLAGS
11927CFLAGS="$CFLAGS -fno-builtin"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011929/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011930int main(int argc, char **argv) { return 0; }
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011931_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011932if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011933 ac_cv_cflags__fno_builtin=yes
11934else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011935 ac_cv_cflags__fno_builtin=no
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011936fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011937rm -f core conftest.err conftest.$ac_objext \
11938 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011939CFLAGS=$ac_wine_try_cflags_saved
11940fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011942$as_echo "$ac_cv_cflags__fno_builtin" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011943if test $ac_cv_cflags__fno_builtin = yes; then :
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011944 BUILTINFLAG="-fno-builtin"
11945
11946fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011948$as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011949if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011950 $as_echo_n "(cached) " >&6
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011951else
11952 ac_wine_try_cflags_saved=$CFLAGS
11953CFLAGS="$CFLAGS -fno-strict-aliasing"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011955/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011956int main(int argc, char **argv) { return 0; }
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011957_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011958if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020011959 ac_cv_cflags__fno_strict_aliasing=yes
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011960else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011961 ac_cv_cflags__fno_strict_aliasing=no
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011962fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011963rm -f core conftest.err conftest.$ac_objext \
11964 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011965CFLAGS=$ac_wine_try_cflags_saved
11966fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011968$as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011969if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020011970 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11971fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011973$as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011974if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011975 $as_echo_n "(cached) " >&6
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011976else
11977 ac_wine_try_cflags_saved=$CFLAGS
11978CFLAGS="$CFLAGS -Wdeclaration-after-statement"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011980/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011981int main(int argc, char **argv) { return 0; }
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011982_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011983if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020011984 ac_cv_cflags__Wdeclaration_after_statement=yes
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011985else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011986 ac_cv_cflags__Wdeclaration_after_statement=no
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011987fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011988rm -f core conftest.err conftest.$ac_objext \
11989 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011990CFLAGS=$ac_wine_try_cflags_saved
11991fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011993$as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011994if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020011995 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
11996fi
Gerald Pfeifer8213f542011-05-08 02:53:23 +020011997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
11998$as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
11999if ${ac_cv_cflags__Wempty_body+:} false; then :
12000 $as_echo_n "(cached) " >&6
12001else
12002 ac_wine_try_cflags_saved=$CFLAGS
12003CFLAGS="$CFLAGS -Wempty-body"
12004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12005/* end confdefs.h. */
12006int main(int argc, char **argv) { return 0; }
12007_ACEOF
12008if ac_fn_c_try_link "$LINENO"; then :
12009 ac_cv_cflags__Wempty_body=yes
12010else
12011 ac_cv_cflags__Wempty_body=no
12012fi
12013rm -f core conftest.err conftest.$ac_objext \
12014 conftest$ac_exeext conftest.$ac_ext
12015CFLAGS=$ac_wine_try_cflags_saved
12016fi
12017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
12018$as_echo "$ac_cv_cflags__Wempty_body" >&6; }
12019if test $ac_cv_cflags__Wempty_body = yes; then :
12020 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
12021fi
Gerald Pfeifer2505dfc2012-01-23 21:58:35 +010012022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
12023$as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
12024if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
12025 $as_echo_n "(cached) " >&6
12026else
12027 ac_wine_try_cflags_saved=$CFLAGS
12028CFLAGS="$CFLAGS -Wignored-qualifiers"
12029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12030/* end confdefs.h. */
12031int main(int argc, char **argv) { return 0; }
12032_ACEOF
12033if ac_fn_c_try_link "$LINENO"; then :
12034 ac_cv_cflags__Wignored_qualifiers=yes
12035else
12036 ac_cv_cflags__Wignored_qualifiers=no
12037fi
12038rm -f core conftest.err conftest.$ac_objext \
12039 conftest$ac_exeext conftest.$ac_ext
12040CFLAGS=$ac_wine_try_cflags_saved
12041fi
12042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
12043$as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
12044if test $ac_cv_cflags__Wignored_qualifiers = yes; then :
12045 EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
12046fi
Alexandre Julliard295806f2009-10-07 13:46:06 +020012047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12048$as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012049if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
Alexandre Julliard295806f2009-10-07 13:46:06 +020012050 $as_echo_n "(cached) " >&6
12051else
12052 ac_wine_try_cflags_saved=$CFLAGS
12053CFLAGS="$CFLAGS -Wstrict-prototypes"
12054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12055/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012056int main(int argc, char **argv) { return 0; }
Alexandre Julliard295806f2009-10-07 13:46:06 +020012057_ACEOF
12058if ac_fn_c_try_link "$LINENO"; then :
12059 ac_cv_cflags__Wstrict_prototypes=yes
12060else
12061 ac_cv_cflags__Wstrict_prototypes=no
12062fi
12063rm -f core conftest.err conftest.$ac_objext \
12064 conftest$ac_exeext conftest.$ac_ext
12065CFLAGS=$ac_wine_try_cflags_saved
12066fi
12067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12068$as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12069if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12070 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12071fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012073$as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012074if ${ac_cv_cflags__Wtype_limits+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012075 $as_echo_n "(cached) " >&6
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012076else
12077 ac_wine_try_cflags_saved=$CFLAGS
12078CFLAGS="$CFLAGS -Wtype-limits"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012080/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012081int main(int argc, char **argv) { return 0; }
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012082_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012083if ac_fn_c_try_link "$LINENO"; then :
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012084 ac_cv_cflags__Wtype_limits=yes
12085else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012086 ac_cv_cflags__Wtype_limits=no
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012087fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012088rm -f core conftest.err conftest.$ac_objext \
12089 conftest$ac_exeext conftest.$ac_ext
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012090CFLAGS=$ac_wine_try_cflags_saved
12091fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012093$as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012094if test $ac_cv_cflags__Wtype_limits = yes; then :
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012095 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12096fi
Gerald Pfeifer3ec82c52011-04-10 20:38:52 +020012097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12098$as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012099if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
Gerald Pfeifer3ec82c52011-04-10 20:38:52 +020012100 $as_echo_n "(cached) " >&6
12101else
12102 ac_wine_try_cflags_saved=$CFLAGS
12103CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12105/* end confdefs.h. */
12106int main(int argc, char **argv) { return 0; }
12107_ACEOF
12108if ac_fn_c_try_link "$LINENO"; then :
12109 ac_cv_cflags__Wunused_but_set_parameter=yes
12110else
12111 ac_cv_cflags__Wunused_but_set_parameter=no
12112fi
12113rm -f core conftest.err conftest.$ac_objext \
12114 conftest$ac_exeext conftest.$ac_ext
12115CFLAGS=$ac_wine_try_cflags_saved
12116fi
12117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12118$as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12119if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12120 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12121fi
Gerald Pfeifereae58292010-01-02 15:13:43 +010012122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12123$as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012124if ${ac_cv_cflags__Wwrite_strings+:} false; then :
Gerald Pfeifereae58292010-01-02 15:13:43 +010012125 $as_echo_n "(cached) " >&6
12126else
12127 ac_wine_try_cflags_saved=$CFLAGS
12128CFLAGS="$CFLAGS -Wwrite-strings"
12129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12130/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012131int main(int argc, char **argv) { return 0; }
Gerald Pfeifereae58292010-01-02 15:13:43 +010012132_ACEOF
12133if ac_fn_c_try_link "$LINENO"; then :
12134 ac_cv_cflags__Wwrite_strings=yes
12135else
12136 ac_cv_cflags__Wwrite_strings=no
12137fi
12138rm -f core conftest.err conftest.$ac_objext \
12139 conftest$ac_exeext conftest.$ac_ext
12140CFLAGS=$ac_wine_try_cflags_saved
12141fi
12142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12143$as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12144if test $ac_cv_cflags__Wwrite_strings = yes; then :
12145 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12146fi
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012147
Austin English5cfe7db2011-10-18 12:17:37 -070012148 case $host_cpu in
12149 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
12150$as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
12151if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
12152 $as_echo_n "(cached) " >&6
12153else
12154 ac_wine_try_cflags_saved=$CFLAGS
12155CFLAGS="$CFLAGS -fno-omit-frame-pointer"
12156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157/* end confdefs.h. */
12158int main(int argc, char **argv) { return 0; }
12159_ACEOF
12160if ac_fn_c_try_link "$LINENO"; then :
12161 ac_cv_cflags__fno_omit_frame_pointer=yes
12162else
12163 ac_cv_cflags__fno_omit_frame_pointer=no
12164fi
12165rm -f core conftest.err conftest.$ac_objext \
12166 conftest$ac_exeext conftest.$ac_ext
12167CFLAGS=$ac_wine_try_cflags_saved
12168fi
12169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
12170$as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
12171if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
12172 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
12173fi ;;
12174 esac
12175
Alexandre Julliardb71f83b2012-01-16 16:31:11 +010012176 case $host in
12177 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
12178$as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
12179if ${ac_cv_cflags__Wno_format+:} false; then :
12180 $as_echo_n "(cached) " >&6
12181else
12182 ac_wine_try_cflags_saved=$CFLAGS
12183CFLAGS="$CFLAGS -Wno-format"
12184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185/* end confdefs.h. */
12186int main(int argc, char **argv) { return 0; }
12187_ACEOF
12188if ac_fn_c_try_link "$LINENO"; then :
12189 ac_cv_cflags__Wno_format=yes
12190else
12191 ac_cv_cflags__Wno_format=no
12192fi
12193rm -f core conftest.err conftest.$ac_objext \
12194 conftest$ac_exeext conftest.$ac_ext
12195CFLAGS=$ac_wine_try_cflags_saved
12196fi
12197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
12198$as_echo "$ac_cv_cflags__Wno_format" >&6; }
12199if test $ac_cv_cflags__Wno_format = yes; then :
12200 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
12201fi ;;
12202 esac
12203
Alexandre Julliard4d52d372003-03-24 19:33:20 +000012204 saved_CFLAGS="$CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000012205 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
Marcus Meissnerf825f0d2010-12-17 21:29:20 +010012206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12207$as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012208if ${ac_cv_c_string_h_warnings+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012209 $as_echo_n "(cached) " >&6
Mike McCormackc509bc42003-02-25 04:01:58 +000012210else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000012212/* end confdefs.h. */
12213#include <string.h>
12214int
12215main ()
12216{
12217
12218 ;
12219 return 0;
12220}
12221_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012222if ac_fn_c_try_compile "$LINENO"; then :
Mike McCormackc509bc42003-02-25 04:01:58 +000012223 ac_cv_c_string_h_warnings=no
12224else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012225 ac_cv_c_string_h_warnings=yes
Mike McCormackc509bc42003-02-25 04:01:58 +000012226fi
Jeremy White0ebeb532006-06-20 13:18:41 +020012227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000012228fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012230$as_echo "$ac_cv_c_string_h_warnings" >&6; }
Alexandre Julliard4d52d372003-03-24 19:33:20 +000012231 CFLAGS="$saved_CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000012232 if test "$ac_cv_c_string_h_warnings" = "no"
12233 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012234 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
Mike McCormackc509bc42003-02-25 04:01:58 +000012235 fi
Alexandre Julliard12753c52009-10-02 14:39:49 +020012236
Marcus Meissnerf825f0d2010-12-17 21:29:20 +010012237 saved_CFLAGS="$CFLAGS"
12238 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12240$as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012241if ${ac_cv_c_logicalop_noisy+:} false; then :
Marcus Meissnerf825f0d2010-12-17 21:29:20 +010012242 $as_echo_n "(cached) " >&6
12243else
12244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12245/* end confdefs.h. */
12246#include <string.h>
12247int
12248main ()
12249{
12250char*f(const char *h,char n) {return strchr(h,n);}
12251 ;
12252 return 0;
12253}
12254_ACEOF
12255if ac_fn_c_try_compile "$LINENO"; then :
12256 ac_cv_c_logicalop_noisy=no
12257else
12258 ac_cv_c_logicalop_noisy=yes
12259fi
12260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12261fi
12262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12263$as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12264 CFLAGS="$saved_CFLAGS"
12265 if test "$ac_cv_c_logicalop_noisy" = "no"
12266 then
12267 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12268 fi
12269
Andrew Nguyen2eda9c72010-05-25 22:20:14 -050012270 if test "x$enable_maintainer_mode" = "xyes"
Alexandre Julliard12753c52009-10-02 14:39:49 +020012271 then
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12273$as_echo_n "checking whether the compiler supports -Werror... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012274if ${ac_cv_cflags__Werror+:} false; then :
Alexandre Julliard12753c52009-10-02 14:39:49 +020012275 $as_echo_n "(cached) " >&6
12276else
12277 ac_wine_try_cflags_saved=$CFLAGS
12278CFLAGS="$CFLAGS -Werror"
12279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12280/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012281int main(int argc, char **argv) { return 0; }
Alexandre Julliard12753c52009-10-02 14:39:49 +020012282_ACEOF
12283if ac_fn_c_try_link "$LINENO"; then :
12284 ac_cv_cflags__Werror=yes
12285else
12286 ac_cv_cflags__Werror=no
12287fi
12288rm -f core conftest.err conftest.$ac_objext \
12289 conftest$ac_exeext conftest.$ac_ext
12290CFLAGS=$ac_wine_try_cflags_saved
12291fi
12292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12293$as_echo "$ac_cv_cflags__Werror" >&6; }
12294if test $ac_cv_cflags__Werror = yes; then :
12295 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12296fi
12297 fi
Stefan Dösingerfdac5e52009-09-12 14:08:53 +020012298
12299 saved_CFLAGS="$CFLAGS"
12300 CFLAGS="$CFLAGS -Werror"
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12302$as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012303if ${ac_cv_have_ms_hook_prologue+:} false; then :
Stefan Dösingerfdac5e52009-09-12 14:08:53 +020012304 $as_echo_n "(cached) " >&6
12305else
12306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307/* end confdefs.h. */
12308int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12309int
12310main ()
12311{
12312
12313 ;
12314 return 0;
12315}
12316_ACEOF
12317if ac_fn_c_try_compile "$LINENO"; then :
12318 ac_cv_have_ms_hook_prologue="yes"
12319else
12320 ac_cv_have_ms_hook_prologue="no"
12321fi
12322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12323fi
12324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12325$as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12326 CFLAGS="$saved_CFLAGS"
12327 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12328 then
12329
12330$as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12331
12332 else
12333 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12334
12335 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012336fi
12337
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012338
Alexandre Julliard105793b2010-10-22 17:13:57 +020012339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12340$as_echo_n "checking for the need to disable Fortify... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012341if ${ac_cv_c_fortify_enabled+:} false; then :
Alexandre Julliard105793b2010-10-22 17:13:57 +020012342 $as_echo_n "(cached) " >&6
12343else
12344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12345/* end confdefs.h. */
12346#include <string.h>
12347int
12348main ()
12349{
12350#if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12351#error Fortify enabled
12352#endif
12353 ;
12354 return 0;
12355}
12356_ACEOF
12357if ac_fn_c_try_compile "$LINENO"; then :
12358 ac_cv_c_fortify_enabled=no
12359else
12360 ac_cv_c_fortify_enabled=yes
12361fi
12362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12363fi
12364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12365$as_echo "$ac_cv_c_fortify_enabled" >&6; }
12366if test "$ac_cv_c_fortify_enabled" = yes
12367then
Alexandre Julliardb10fb862010-10-29 14:25:01 +020012368 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
Alexandre Julliard105793b2010-10-22 17:13:57 +020012369fi
12370
12371
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012373$as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012374if ${ac_cv_c_extern_prefix+:} false; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012375 $as_echo_n "(cached) " >&6
12376else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012378/* end confdefs.h. */
12379extern int ac_test;
12380int
12381main ()
12382{
12383asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12384 ;
12385 return 0;
12386}
12387_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012388if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012389 ac_cv_c_extern_prefix="yes"
12390else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012391 ac_cv_c_extern_prefix="no"
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012392fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012393rm -f core conftest.err conftest.$ac_objext \
12394 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012395fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012397$as_echo "$ac_cv_c_extern_prefix" >&6; }
12398
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012399case $host_cpu in
12400 *i[3456789]86*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012402$as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012403if ${ac_cv_c_stdcall_suffix+:} false; then :
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012404 $as_echo_n "(cached) " >&6
12405else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012407/* end confdefs.h. */
12408#ifndef _MSC_VER
12409#define __stdcall __attribute__((__stdcall__))
12410#endif
12411int __stdcall ac_test(int i) { return i; }
12412int
12413main ()
12414{
12415asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12416 ;
12417 return 0;
12418}
12419_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012420if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012421 ac_cv_c_stdcall_suffix="yes"
12422else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012423 ac_cv_c_stdcall_suffix="no"
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012424fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012425rm -f core conftest.err conftest.$ac_objext \
12426 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012427fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012429$as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12430 *) ac_cv_c_stdcall_suffix="no" ;;
12431esac
12432
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012433
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012434if test "$ac_cv_c_extern_prefix" = "yes"
12435then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012436 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012437
12438 asm_name_prefix="_"
12439else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012440 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012441
12442 asm_name_prefix=""
12443fi
12444
12445
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012446if test "$ac_cv_c_stdcall_suffix" = "yes"
12447then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012448 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012449
12450else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012451 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012452
12453fi
12454
12455
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012457$as_echo_n "checking how to define a function in assembly code... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012458if ${ac_cv_asm_func_def+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012459 $as_echo_n "(cached) " >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012460else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012462/* end confdefs.h. */
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012463
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012464int
12465main ()
12466{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012467asm("\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 +000012468 ;
12469 return 0;
12470}
12471_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012472if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012473 ac_cv_asm_func_def=".def"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012474else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012476/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012477
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012478int
12479main ()
12480{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012481asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012482 ;
12483 return 0;
12484}
12485_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012486if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012487 ac_cv_asm_func_def=".type @function"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012488else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012490/* end confdefs.h. */
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012491
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012492int
12493main ()
12494{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012495asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012496 ;
12497 return 0;
12498}
12499_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012500if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012501 ac_cv_asm_func_def=".type 2"
12502else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012503 ac_cv_asm_func_def="unknown"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012504fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012505rm -f core conftest.err conftest.$ac_objext \
12506 conftest$ac_exeext conftest.$ac_ext
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012507fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012508rm -f core conftest.err conftest.$ac_objext \
12509 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012510fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012511rm -f core conftest.err conftest.$ac_objext \
12512 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012513fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012515$as_echo "$ac_cv_asm_func_def" >&6; }
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012516
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012517
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012518case "$ac_cv_asm_func_def" in
12519 ".def")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012520 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012521
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012522 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012523 ".type @function")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012524 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012525
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012526 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012527 ".type 2")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012528 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012529
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012530 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012531 *)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012532 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012533
12534 asm_func_header="" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012535esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012536
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012538$as_echo_n "checking whether asm() works outside of functions... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012539if ${ac_cv_c_asm_outside_funcs+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012540 $as_echo_n "(cached) " >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012541else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012543/* end confdefs.h. */
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012544asm(".text\n\t.long 0");
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012545int
12546main ()
12547{
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012548
12549 ;
12550 return 0;
12551}
12552_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012553if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012554 ac_cv_c_asm_outside_funcs="yes"
12555else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012556 ac_cv_c_asm_outside_funcs="no"
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012557fi
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12559fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012561$as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12562
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012564$as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012565if ${ac_cv_c_dot_previous+:} false; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012566 $as_echo_n "(cached) " >&6
12567else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012569/* end confdefs.h. */
12570
12571int
12572main ()
12573{
12574asm(".text\nac_test:\t.long 0\n\t.previous");
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012575 ;
12576 return 0;
12577}
12578_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012579if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012580 ac_cv_c_dot_previous="yes"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012581else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012582 ac_cv_c_dot_previous="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012583fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012584rm -f core conftest.err conftest.$ac_objext \
12585 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012586fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012588$as_echo "$ac_cv_c_dot_previous" >&6; }
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012589
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012591$as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012592if ${ac_cv_c_cfi_support+:} false; then :
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012593 $as_echo_n "(cached) " >&6
12594else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012596/* end confdefs.h. */
12597asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12598int
12599main ()
12600{
12601
12602 ;
12603 return 0;
12604}
12605_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012606if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012607 ac_cv_c_cfi_support="yes"
12608else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012609 ac_cv_c_cfi_support="no"
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012610fi
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12612fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012614$as_echo "$ac_cv_c_cfi_support" >&6; }
12615
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012616asm_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 +020012617asm_func_trailer=""
12618if test "$ac_cv_c_dot_previous" = "yes"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012619then
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012620 asm_func_trailer="\\n\\t.previous"
12621fi
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012622if test "$ac_cv_c_cfi_support" = "yes"
12623then
12624 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12625 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012626
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012627$as_echo "#define __ASM_CFI(str) str" >>confdefs.h
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012628
Alexandre Julliard6c142382010-04-11 12:47:30 +020012629 UNWINDFLAGS=-fasynchronous-unwind-tables
12630
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012631else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012632 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012633
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012634fi
12635
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012636asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12637
12638
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012639if test "$ac_cv_c_asm_outside_funcs" = "yes"
12640then
12641 cat >>confdefs.h <<_ACEOF
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012642#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 +000012643_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012644
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012645else
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012646 cat >>confdefs.h <<_ACEOF
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012647#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 +000012648_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012649
12650fi
12651
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012652$as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012653
12654
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012655$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 +020012656
12657
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012658
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012659LDPATH=""
12660
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012661case $build_os in
12662 cygwin*|mingw32*)
Alexandre Julliardb860c4a2009-09-01 22:36:13 +020012663 TOOLSEXT=".exe"
12664
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020012665 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012666 ;;
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000012667 darwin*|macosx*)
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012668 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012669 *)
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020012670 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012671 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012672esac
12673
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012674case $host_os in
12675 mingw32*)
Alexandre Julliard546839f2003-11-11 00:48:21 +000012676 CRTLIBS="-lmsvcrt"
Steven Edwardsc91ae452004-09-03 18:57:19 +000012677
Alexandre Julliardbd9852c2010-09-19 12:40:12 +020012678 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
Steven Edwardsc91ae452004-09-03 18:57:19 +000012679
12680 ;;
Alexandre Julliard546839f2003-11-11 00:48:21 +000012681esac
12682
Alexandre Julliard3e6eab32009-08-13 19:54:31 +020012683MAIN_BINARY="wine"
12684
Alexandre Julliardf3831cf2010-05-16 17:01:52 +020012685test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
Alexandre Julliard3e6eab32009-08-13 19:54:31 +020012686
Alexandre Julliard0a086202010-12-16 16:54:15 +010012687case $host_os in
12688 linux*)
12689 case $host_cpu in
12690 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12691 ;;
12692 x86_64*) EXTRA_BINARIES="wine64-preloader"
Tijl Coosemans9f5c69c2007-08-24 15:46:36 +020012693 ;;
Alexandre Julliard2cdfd4d2006-02-18 15:03:51 +010012694 esac
Emmanuel Maillard3bc8d2e2004-07-19 20:11:10 +000012695 ;;
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012696esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012697
12698
Alexandre Julliard95251a72009-02-16 12:46:58 +010012699ac_save_CFLAGS="$CFLAGS"
12700CFLAGS="$CFLAGS $BUILTINFLAG"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012701for ac_func in \
Stefan Dösingera7741522011-05-24 21:05:28 +020012702 _finite \
12703 _isnan \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012704 _pclose \
12705 _popen \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000012706 _snprintf \
Alexandre Julliardc45bbad2003-04-01 00:12:02 +000012707 _spawnvp \
Bang Jun-youngff96bd62007-10-15 17:09:12 +090012708 _strdup \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012709 _stricmp \
12710 _strnicmp \
Rob Shearmane9f5bce2008-03-03 21:48:18 +000012711 _strtoi64 \
12712 _strtoui64 \
Steven Edwardsbe514b92003-01-14 19:35:03 +000012713 _vsnprintf \
Alexandre Julliardf9e5b0f2006-01-14 17:22:03 +010012714 asctime_r \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012715 chsize \
Alexandre Julliarde533e972006-08-15 12:11:30 +020012716 dlopen \
Alexandre Julliard969f57c2004-09-23 04:48:24 +000012717 epoll_create \
Hans Leidekkerc3de6ef2004-10-19 23:53:26 +000012718 ffs \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000012719 finite \
Alexandre Julliard7d5e5652009-06-01 12:51:54 +020012720 fnmatch \
Hans Leidekkerbed38422004-10-14 03:08:57 +000012721 fork \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000012722 fpclass \
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000012723 fstatfs \
12724 fstatvfs \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012725 ftruncate \
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000012726 futimes \
Robert Lunnonc0cb4d32005-05-07 14:53:38 +000012727 futimesat \
Charles Davis4e44e152011-01-18 13:09:44 -070012728 getattrlist \
Alexandre Julliarda9f214c2006-11-13 15:42:48 +010012729 getdirentries \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000012730 getopt_long \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012731 getpagesize \
Alexandre Julliard142dab82002-07-01 18:17:30 +000012732 getpwuid \
Alexandre Julliard8d7b8e52003-03-23 20:11:45 +000012733 gettimeofday \
Steven Edwardse7c3ab12004-10-04 20:45:49 +000012734 getuid \
Alexandre Julliardc8278922006-08-04 22:11:00 +020012735 kqueue \
Alexandre Julliard27bb3112000-11-29 17:48:06 +000012736 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012737 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +000012738 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012739 pclose \
Alexandre Julliard6f68b772009-07-01 12:13:34 +020012740 pipe2 \
Alexandre Julliard10892602006-08-15 11:41:59 +020012741 poll \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012742 popen \
Albert Lee01b972d2009-11-20 18:35:26 -050012743 port_create \
Alexandre Julliard9603ee02006-04-06 11:57:37 +020012744 prctl \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012745 pread \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +000012746 pwrite \
Rob Shearman87175c62008-10-03 12:55:21 +010012747 readdir \
Alexandre Julliarde2930742004-01-08 05:07:05 +000012748 readlink \
Jeremy White08c0f692004-10-09 02:26:29 +000012749 sched_yield \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012750 select \
Gerald Pfeifer39f67272008-01-20 21:23:08 +010012751 setproctitle \
Paul Millardf10b7d2006-07-16 15:06:28 +010012752 setrlimit \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012753 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012754 sigaltstack \
Paul Millar10a6c562004-12-07 17:19:54 +000012755 sigprocmask \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000012756 snprintf \
Pavel Roskin7add08a2003-09-24 18:54:40 +000012757 spawnvp \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012758 statfs \
Alexandre Julliard13af4892004-03-05 21:03:46 +000012759 statvfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000012760 strcasecmp \
Bang Jun-youngff96bd62007-10-15 17:09:12 +090012761 strdup \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012762 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000012763 strncasecmp \
Louis Lenders6c04a182006-12-17 17:56:50 +000012764 strtold \
Rob Shearmane9f5bce2008-03-03 21:48:18 +000012765 strtoll \
12766 strtoull \
Alexandre Julliard0fbd5562008-12-22 10:47:16 +010012767 symlink \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012768 tcgetattr \
Tijl Coosemans0c4f1522007-08-23 14:12:37 +020012769 thr_kill2 \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012770 timegm \
12771 usleep \
Steven Edwardsbe514b92003-01-14 19:35:03 +000012772 vsnprintf \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012773 wait4 \
12774 waitpid \
12775
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012776do :
12777 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12778ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020012779if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012780 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010012781#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012782_ACEOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000012783
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012784fi
12785done
12786
Alexandre Julliard95251a72009-02-16 12:46:58 +010012787CFLAGS="$ac_save_CFLAGS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012788
Alexandre Julliarde533e972006-08-15 12:11:30 +020012789if test "$ac_cv_func_dlopen" = no
12790then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012792$as_echo_n "checking for dlopen in -ldl... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012793if ${ac_cv_lib_dl_dlopen+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012794 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012795else
12796 ac_check_lib_save_LIBS=$LIBS
12797LIBS="-ldl $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012799/* end confdefs.h. */
12800
12801/* Override any GCC internal prototype to avoid an error.
12802 Use char because int might match the return type of a GCC
12803 builtin and then its argument prototype would still apply. */
12804#ifdef __cplusplus
12805extern "C"
12806#endif
12807char dlopen ();
12808int
12809main ()
12810{
12811return dlopen ();
12812 ;
12813 return 0;
12814}
12815_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012816if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarde533e972006-08-15 12:11:30 +020012817 ac_cv_lib_dl_dlopen=yes
12818else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012819 ac_cv_lib_dl_dlopen=no
Alexandre Julliarde533e972006-08-15 12:11:30 +020012820fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012821rm -f core conftest.err conftest.$ac_objext \
12822 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012823LIBS=$ac_check_lib_save_LIBS
12824fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012826$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012827if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012828 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
Alexandre Julliarde533e972006-08-15 12:11:30 +020012829 LIBDL="-ldl"
12830
12831fi
12832
12833fi
12834ac_wine_check_funcs_save_LIBS="$LIBS"
12835LIBS="$LIBS $LIBDL"
Alexandre Julliarde533e972006-08-15 12:11:30 +020012836for ac_func in dladdr
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012837do :
12838 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
Alexandre Julliard9797da42011-04-27 17:37:43 +020012839if test "x$ac_cv_func_dladdr" = xyes; then :
Alexandre Julliarde533e972006-08-15 12:11:30 +020012840 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012841#define HAVE_DLADDR 1
Alexandre Julliarde533e972006-08-15 12:11:30 +020012842_ACEOF
12843
12844fi
12845done
12846
12847LIBS="$ac_wine_check_funcs_save_LIBS"
12848
Alexandre Julliard10892602006-08-15 11:41:59 +020012849if test "$ac_cv_func_poll" = no
12850then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012852$as_echo_n "checking for poll in -lpoll... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012853if ${ac_cv_lib_poll_poll+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012854 $as_echo_n "(cached) " >&6
Alexandre Julliard10892602006-08-15 11:41:59 +020012855else
12856 ac_check_lib_save_LIBS=$LIBS
12857LIBS="-lpoll $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard10892602006-08-15 11:41:59 +020012859/* end confdefs.h. */
12860
12861/* Override any GCC internal prototype to avoid an error.
12862 Use char because int might match the return type of a GCC
12863 builtin and then its argument prototype would still apply. */
12864#ifdef __cplusplus
12865extern "C"
12866#endif
12867char poll ();
12868int
12869main ()
12870{
12871return poll ();
12872 ;
12873 return 0;
12874}
12875_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012876if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard10892602006-08-15 11:41:59 +020012877 ac_cv_lib_poll_poll=yes
12878else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012879 ac_cv_lib_poll_poll=no
Alexandre Julliard10892602006-08-15 11:41:59 +020012880fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012881rm -f core conftest.err conftest.$ac_objext \
12882 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard10892602006-08-15 11:41:59 +020012883LIBS=$ac_check_lib_save_LIBS
12884fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012886$as_echo "$ac_cv_lib_poll_poll" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012887if test "x$ac_cv_lib_poll_poll" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012888 $as_echo "#define HAVE_POLL 1" >>confdefs.h
Alexandre Julliard10892602006-08-15 11:41:59 +020012889 LIBPOLL="-lpoll"
12890
12891fi
12892
12893fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012894
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012896$as_echo_n "checking for library containing gethostbyname... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012897if ${ac_cv_search_gethostbyname+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012898 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012899else
Alexandre Julliard28710412007-04-23 16:31:58 +020012900 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012902/* end confdefs.h. */
12903
12904/* Override any GCC internal prototype to avoid an error.
12905 Use char because int might match the return type of a GCC
12906 builtin and then its argument prototype would still apply. */
12907#ifdef __cplusplus
12908extern "C"
12909#endif
12910char gethostbyname ();
12911int
12912main ()
12913{
12914return gethostbyname ();
12915 ;
12916 return 0;
12917}
12918_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020012919for ac_lib in '' nsl; do
12920 if test -z "$ac_lib"; then
12921 ac_res="none required"
12922 else
12923 ac_res=-l$ac_lib
12924 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12925 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012926 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012927 ac_cv_search_gethostbyname=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020012928fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012929rm -f core conftest.err conftest.$ac_objext \
12930 conftest$ac_exeext
Alexandre Julliard9797da42011-04-27 17:37:43 +020012931 if ${ac_cv_search_gethostbyname+:} false; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012932 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020012933fi
Alexandre Julliard28710412007-04-23 16:31:58 +020012934done
Alexandre Julliard9797da42011-04-27 17:37:43 +020012935if ${ac_cv_search_gethostbyname+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012936
Alexandre Julliard28710412007-04-23 16:31:58 +020012937else
12938 ac_cv_search_gethostbyname=no
12939fi
12940rm conftest.$ac_ext
12941LIBS=$ac_func_search_save_LIBS
12942fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012944$as_echo "$ac_cv_search_gethostbyname" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020012945ac_res=$ac_cv_search_gethostbyname
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012946if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012947 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020012948
12949fi
12950
Alexandre Julliarde533e972006-08-15 12:11:30 +020012951
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012953$as_echo_n "checking for library containing connect... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012954if ${ac_cv_search_connect+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012955 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012956else
Alexandre Julliard28710412007-04-23 16:31:58 +020012957 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012959/* end confdefs.h. */
12960
12961/* Override any GCC internal prototype to avoid an error.
12962 Use char because int might match the return type of a GCC
12963 builtin and then its argument prototype would still apply. */
12964#ifdef __cplusplus
12965extern "C"
12966#endif
12967char connect ();
12968int
12969main ()
12970{
12971return connect ();
12972 ;
12973 return 0;
12974}
12975_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020012976for ac_lib in '' socket; do
12977 if test -z "$ac_lib"; then
12978 ac_res="none required"
12979 else
12980 ac_res=-l$ac_lib
12981 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12982 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012983 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012984 ac_cv_search_connect=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020012985fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012986rm -f core conftest.err conftest.$ac_objext \
12987 conftest$ac_exeext
Alexandre Julliard9797da42011-04-27 17:37:43 +020012988 if ${ac_cv_search_connect+:} false; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012989 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020012990fi
Alexandre Julliard28710412007-04-23 16:31:58 +020012991done
Alexandre Julliard9797da42011-04-27 17:37:43 +020012992if ${ac_cv_search_connect+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012993
Alexandre Julliard28710412007-04-23 16:31:58 +020012994else
12995 ac_cv_search_connect=no
12996fi
12997rm conftest.$ac_ext
12998LIBS=$ac_func_search_save_LIBS
12999fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013001$as_echo "$ac_cv_search_connect" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020013002ac_res=$ac_cv_search_connect
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013003if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013004 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020013005
13006fi
13007
Alexandre Julliarde533e972006-08-15 12:11:30 +020013008
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013010$as_echo_n "checking for library containing inet_aton... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013011if ${ac_cv_search_inet_aton+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013012 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020013013else
Alexandre Julliard28710412007-04-23 16:31:58 +020013014 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020013016/* end confdefs.h. */
13017
13018/* Override any GCC internal prototype to avoid an error.
13019 Use char because int might match the return type of a GCC
13020 builtin and then its argument prototype would still apply. */
13021#ifdef __cplusplus
13022extern "C"
13023#endif
13024char inet_aton ();
13025int
13026main ()
13027{
13028return inet_aton ();
13029 ;
13030 return 0;
13031}
13032_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020013033for ac_lib in '' resolv; do
13034 if test -z "$ac_lib"; then
13035 ac_res="none required"
13036 else
13037 ac_res=-l$ac_lib
13038 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13039 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013040 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013041 ac_cv_search_inet_aton=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020013042fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013043rm -f core conftest.err conftest.$ac_objext \
13044 conftest$ac_exeext
Alexandre Julliard9797da42011-04-27 17:37:43 +020013045 if ${ac_cv_search_inet_aton+:} false; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013046 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020013047fi
Alexandre Julliard28710412007-04-23 16:31:58 +020013048done
Alexandre Julliard9797da42011-04-27 17:37:43 +020013049if ${ac_cv_search_inet_aton+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013050
Alexandre Julliard28710412007-04-23 16:31:58 +020013051else
13052 ac_cv_search_inet_aton=no
13053fi
13054rm conftest.$ac_ext
13055LIBS=$ac_func_search_save_LIBS
13056fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013058$as_echo "$ac_cv_search_inet_aton" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020013059ac_res=$ac_cv_search_inet_aton
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013060if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013061 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020013062
13063fi
13064
Alexandre Julliarde533e972006-08-15 12:11:30 +020013065
Ben Taylor41c59962007-04-23 13:41:42 +000013066for ac_func in \
13067 getaddrinfo \
13068 getnameinfo \
13069 getnetbyname \
13070 getprotobyname \
13071 getprotobynumber \
13072 getservbyport \
13073 inet_network \
Austin English06566912009-03-28 00:13:09 -050013074 inet_ntop \
13075 inet_pton \
Ben Taylor41c59962007-04-23 13:41:42 +000013076 sendmsg \
Alexandre Julliard98bec052009-03-26 11:07:28 +010013077 socketpair \
Ben Taylor41c59962007-04-23 13:41:42 +000013078
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013079do :
13080 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13081ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020013082if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Ben Taylor41c59962007-04-23 13:41:42 +000013083 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010013084#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Ben Taylor41c59962007-04-23 13:41:42 +000013085_ACEOF
13086
13087fi
13088done
13089
13090
Francois Gougetbcba2702008-07-10 12:36:06 +020013091LDAPLIBS=""
13092
13093if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13094then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013095 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13096"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013097if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013099$as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013100if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013101 $as_echo_n "(cached) " >&6
Francois Gougetbcba2702008-07-10 12:36:06 +020013102else
13103 ac_check_lib_save_LIBS=$LIBS
13104LIBS="-lldap_r $LIBPTHREAD $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020013106/* end confdefs.h. */
13107
13108/* Override any GCC internal prototype to avoid an error.
13109 Use char because int might match the return type of a GCC
13110 builtin and then its argument prototype would still apply. */
13111#ifdef __cplusplus
13112extern "C"
13113#endif
13114char ldap_initialize ();
13115int
13116main ()
13117{
13118return ldap_initialize ();
13119 ;
13120 return 0;
13121}
13122_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013123if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020013124 ac_cv_lib_ldap_r_ldap_initialize=yes
13125else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013126 ac_cv_lib_ldap_r_ldap_initialize=no
Francois Gougetbcba2702008-07-10 12:36:06 +020013127fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013128rm -f core conftest.err conftest.$ac_objext \
13129 conftest$ac_exeext conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020013130LIBS=$ac_check_lib_save_LIBS
13131fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013133$as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013134if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013136$as_echo_n "checking for ber_init in -llber... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013137if ${ac_cv_lib_lber_ber_init+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013138 $as_echo_n "(cached) " >&6
Francois Gougetbcba2702008-07-10 12:36:06 +020013139else
13140 ac_check_lib_save_LIBS=$LIBS
13141LIBS="-llber $LIBPTHREAD $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020013143/* end confdefs.h. */
13144
13145/* Override any GCC internal prototype to avoid an error.
13146 Use char because int might match the return type of a GCC
13147 builtin and then its argument prototype would still apply. */
13148#ifdef __cplusplus
13149extern "C"
13150#endif
13151char ber_init ();
13152int
13153main ()
13154{
13155return ber_init ();
13156 ;
13157 return 0;
13158}
13159_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013160if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020013161 ac_cv_lib_lber_ber_init=yes
13162else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013163 ac_cv_lib_lber_ber_init=no
Francois Gougetbcba2702008-07-10 12:36:06 +020013164fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013165rm -f core conftest.err conftest.$ac_objext \
13166 conftest$ac_exeext conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020013167LIBS=$ac_check_lib_save_LIBS
13168fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013170$as_echo "$ac_cv_lib_lber_ber_init" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013171if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020013172
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013173$as_echo "#define HAVE_LDAP 1" >>confdefs.h
Francois Gougetbcba2702008-07-10 12:36:06 +020013174
13175 LDAPLIBS="-lldap_r -llber"
13176fi
13177
13178fi
13179
13180fi
13181
13182 ac_wine_check_funcs_save_LIBS="$LIBS"
13183LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
Francois Gougetbcba2702008-07-10 12:36:06 +020013184for ac_func in \
13185 ldap_count_references \
13186 ldap_first_reference \
13187 ldap_next_reference \
13188 ldap_parse_reference \
13189 ldap_parse_sort_control \
13190 ldap_parse_sortresponse_control \
13191 ldap_parse_vlv_control \
13192 ldap_parse_vlvresponse_control
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013193do :
13194 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13195ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020013196if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020013197 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010013198#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Francois Gougetbcba2702008-07-10 12:36:06 +020013199_ACEOF
13200
13201fi
13202done
13203
13204LIBS="$ac_wine_check_funcs_save_LIBS"
13205fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013206if test "x$LDAPLIBS" = "x"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020013207 case "x$with_ldap" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010013208 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 +020013209 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020013210 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020013211This is an error since --with-ldap was requested." "$LINENO" 5 ;;
Francois Gougetbcba2702008-07-10 12:36:06 +020013212esac
13213fi
13214
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
Alexandre Julliard921e6622008-12-22 10:39:11 +010013216$as_echo_n "checking whether mkdir takes only one argument... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013217if ${wine_cv_one_arg_mkdir+:} false; then :
Alexandre Julliard921e6622008-12-22 10:39:11 +010013218 $as_echo_n "(cached) " >&6
13219else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard921e6622008-12-22 10:39:11 +010013221/* end confdefs.h. */
13222#include <sys/stat.h>
13223int
13224main ()
13225{
13226mkdir("foo");
13227 ;
13228 return 0;
13229}
13230_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013231if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard921e6622008-12-22 10:39:11 +010013232 wine_cv_one_arg_mkdir=yes
13233else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013234 wine_cv_one_arg_mkdir=no
Alexandre Julliard921e6622008-12-22 10:39:11 +010013235fi
Alexandre Julliard921e6622008-12-22 10:39:11 +010013236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13237fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
Alexandre Julliard921e6622008-12-22 10:39:11 +010013239$as_echo "$wine_cv_one_arg_mkdir" >&6; }
13240if test "$wine_cv_one_arg_mkdir" = "yes"
13241then
13242
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013243$as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
Alexandre Julliard921e6622008-12-22 10:39:11 +010013244
13245fi
13246
Andrew Nguyen2f22a502011-02-22 07:10:22 -060013247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13248$as_echo_n "checking for sched_setaffinity... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013249if ${wine_cv_have_sched_setaffinity+:} false; then :
Andrew Nguyen2f22a502011-02-22 07:10:22 -060013250 $as_echo_n "(cached) " >&6
13251else
13252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13253/* end confdefs.h. */
13254#define _GNU_SOURCE
13255#include <sched.h>
13256int
13257main ()
13258{
13259sched_setaffinity(0, 0, 0);
13260 ;
13261 return 0;
13262}
13263_ACEOF
13264if ac_fn_c_try_link "$LINENO"; then :
13265 wine_cv_have_sched_setaffinity=yes
13266else
13267 wine_cv_have_sched_setaffinity=no
13268fi
13269rm -f core conftest.err conftest.$ac_objext \
13270 conftest$ac_exeext conftest.$ac_ext
13271fi
13272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13273$as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13274if test "$wine_cv_have_sched_setaffinity" = "yes"
13275then
13276
13277$as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13278
13279fi
13280
Ben Taylor41c59962007-04-23 13:41:42 +000013281
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013283$as_echo_n "checking for inline... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013284if ${ac_cv_c_inline+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013285 $as_echo_n "(cached) " >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013286else
13287 ac_cv_c_inline=no
13288for ac_kw in inline __inline__ __inline; do
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013290/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013291#ifndef __cplusplus
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013292typedef int foo_t;
13293static $ac_kw foo_t static_foo () {return 0; }
13294$ac_kw foo_t foo () {return 0; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013295#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013296
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013297_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013298if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013299 ac_cv_c_inline=$ac_kw
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013300fi
Jeremy White0ebeb532006-06-20 13:18:41 +020013301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013302 test "$ac_cv_c_inline" != no && break
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013303done
13304
13305fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013307$as_echo "$ac_cv_c_inline" >&6; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000013308
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013309case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013310 inline | yes) ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000013311 *)
13312 case $ac_cv_c_inline in
13313 no) ac_val=;;
13314 *) ac_val=$ac_cv_c_inline;;
13315 esac
13316 cat >>confdefs.h <<_ACEOF
13317#ifndef __cplusplus
13318#define inline $ac_val
13319#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013320_ACEOF
Alexandre Julliard875927f2004-01-02 01:55:29 +000013321 ;;
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013322esac
13323
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013324ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013325if test "x$ac_cv_type_mode_t" = xyes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013326
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013327cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013328#define HAVE_MODE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013329_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013330
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013331
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013332fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013333ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013334if test "x$ac_cv_type_off_t" = xyes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013335
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013336cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013337#define HAVE_OFF_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013338_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013339
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013340
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013341fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013342ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013343if test "x$ac_cv_type_pid_t" = xyes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013344
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013345cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013346#define HAVE_PID_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013347_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013348
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013349
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013350fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013351ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013352if test "x$ac_cv_type_size_t" = xyes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013353
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013354cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013355#define HAVE_SIZE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013356_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013357
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013358
13359fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013360ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013361if test "x$ac_cv_type_ssize_t" = xyes; then :
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013362
13363cat >>confdefs.h <<_ACEOF
13364#define HAVE_SSIZE_T 1
13365_ACEOF
13366
13367
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013368fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013369ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013370if test "x$ac_cv_type_long_long" = xyes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013371
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013372cat >>confdefs.h <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013373#define HAVE_LONG_LONG 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013374_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013375
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013376
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013377fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013378ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013379if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013380
13381cat >>confdefs.h <<_ACEOF
13382#define HAVE_FSBLKCNT_T 1
13383_ACEOF
13384
13385
13386fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013387ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013388if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013389
13390cat >>confdefs.h <<_ACEOF
13391#define HAVE_FSFILCNT_T 1
13392_ACEOF
13393
13394
13395fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013396
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013397ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
Alexandre Julliardabf50482008-10-31 12:56:53 +010013398#include <signal.h>
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013399"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013400if test "x$ac_cv_type_sigset_t" = xyes; then :
Paul Millar10a6c562004-12-07 17:19:54 +000013401
13402cat >>confdefs.h <<_ACEOF
13403#define HAVE_SIGSET_T 1
13404_ACEOF
13405
13406
13407fi
13408
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013409ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13410"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013411if test "x$ac_cv_type_request_sense" = xyes; then :
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000013412
13413cat >>confdefs.h <<_ACEOF
13414#define HAVE_REQUEST_SENSE 1
13415_ACEOF
13416
13417
13418fi
13419
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013420
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013421ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
Austin English68f2db22009-01-29 08:28:37 -060013422#ifdef HAVE_SYS_SOCKET_H
13423#include <sys/socket.h>
13424#endif
13425#ifdef HAVE_SYS_SOCKETVAR_H
13426#include <sys/socketvar.h>
13427#endif
13428#ifdef HAVE_NET_ROUTE_H
13429#include <net/route.h>
13430#endif
13431#ifdef HAVE_NETINET_IN_H
13432#include <netinet/in.h>
13433#endif
13434#ifdef HAVE_NETINET_IN_SYSTM_H
13435#include <netinet/in_systm.h>
13436#endif
13437#ifdef HAVE_NETINET_IP_H
13438#include <netinet/ip.h>
13439#endif
13440#ifdef HAVE_NETINET_IN_PCB_H
13441#include <netinet/in_pcb.h>
13442#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013443"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013444if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
Austin English68f2db22009-01-29 08:28:37 -060013445
13446cat >>confdefs.h <<_ACEOF
13447#define HAVE_STRUCT_XINPGEN 1
13448_ACEOF
13449
13450
13451fi
13452
13453
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013454ac_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 +000013455#include <linux/input.h>
13456#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013457"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013458if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
Daniel Remenake491e8f2005-07-29 14:18:58 +000013459
13460cat >>confdefs.h <<_ACEOF
13461#define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13462_ACEOF
13463
13464
13465fi
13466
13467
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013469$as_echo_n "checking for sigaddset... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013470if ${wine_cv_have_sigaddset+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013471 $as_echo_n "(cached) " >&6
Paul Millar10a6c562004-12-07 17:19:54 +000013472else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Paul Millar10a6c562004-12-07 17:19:54 +000013474/* end confdefs.h. */
13475#include <signal.h>
13476int
13477main ()
13478{
13479sigset_t set; sigaddset(&set,SIGTERM);
13480 ;
13481 return 0;
13482}
13483_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013484if ac_fn_c_try_link "$LINENO"; then :
Paul Millar10a6c562004-12-07 17:19:54 +000013485 wine_cv_have_sigaddset=yes
13486else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013487 wine_cv_have_sigaddset=no
Paul Millar10a6c562004-12-07 17:19:54 +000013488fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013489rm -f core conftest.err conftest.$ac_objext \
13490 conftest$ac_exeext conftest.$ac_ext
Paul Millar10a6c562004-12-07 17:19:54 +000013491fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013493$as_echo "$wine_cv_have_sigaddset" >&6; }
Paul Millar10a6c562004-12-07 17:19:54 +000013494if test "$wine_cv_have_sigaddset" = "yes"
13495then
13496
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013497$as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
Paul Millar10a6c562004-12-07 17:19:54 +000013498
13499fi
13500
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013501
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013502{ $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 +010013503$as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013504if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013505 $as_echo_n "(cached) " >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000013506else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013508/* end confdefs.h. */
Rein Klazesff7a61f2000-09-24 19:41:57 +000013509#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013510int
13511main ()
13512{
Rein Klazesff7a61f2000-09-24 19:41:57 +000013513
Ken Thomases20d9bad2007-10-19 16:18:51 -050013514 char *name=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013515 struct hostent he;
13516 struct hostent *result;
Ken Thomases20d9bad2007-10-19 16:18:51 -050013517 char *buf=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013518 int bufsize=0;
Austin English8521ebe2011-06-13 21:26:40 -070013519 int errnr;
Ken Thomases20d9bad2007-10-19 16:18:51 -050013520 char *addr=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013521 int addrlen=0;
13522 int addrtype=0;
Austin English8521ebe2011-06-13 21:26:40 -070013523 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13524 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013525
13526 ;
13527 return 0;
13528}
13529_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013530if ac_fn_c_try_link "$LINENO"; then :
Rein Klazesff7a61f2000-09-24 19:41:57 +000013531 wine_cv_linux_gethostbyname_r_6=yes
13532else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013533 wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +000013534
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013535fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013536rm -f core conftest.err conftest.$ac_objext \
13537 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013538
13539fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013541$as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
Rein Klazesff7a61f2000-09-24 19:41:57 +000013542 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13543 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013544
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013545$as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
Rein Klazesff7a61f2000-09-24 19:41:57 +000013546
13547 fi
13548
Marcus Meissner028e9a11999-08-04 15:07:56 +000013549if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013550then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013551 { $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 +010013552$as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013553if ${wine_cv_linux_joystick_22_api+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013554 $as_echo_n "(cached) " >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013555else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013557/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013558
Marcus Meissner028e9a11999-08-04 15:07:56 +000013559 #include <sys/ioctl.h>
Marcus Meissner7c434992007-04-12 12:12:05 +020013560 #include <sys/types.h>
Marcus Meissner028e9a11999-08-04 15:07:56 +000013561 #include <linux/joystick.h>
13562
13563 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +000013564 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13565 #error "no 2.2 header"
13566 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013567
13568int
13569main ()
13570{
Marcus Meissner028e9a11999-08-04 15:07:56 +000013571/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013572 ;
13573 return 0;
13574}
13575_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013576if ac_fn_c_try_compile "$LINENO"; then :
Marcus Meissner028e9a11999-08-04 15:07:56 +000013577 wine_cv_linux_joystick_22_api=yes
13578else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013579 wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +000013580fi
Jeremy White0ebeb532006-06-20 13:18:41 +020013581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +000013582
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013583fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013585$as_echo "$wine_cv_linux_joystick_22_api" >&6; }
Rein Klazes87d224a2000-04-24 17:33:49 +000013586 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +000013587 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013588
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013589$as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
Marcus Meissner028e9a11999-08-04 15:07:56 +000013590
13591 fi
13592fi
13593
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013594
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013595ac_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 +000013596#ifdef HAVE_SYS_PARAM_H
13597# include <sys/param.h>
13598#endif
Robert Millan55b74482006-02-06 21:53:27 +010013599#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013600# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013601#endif
13602#ifdef HAVE_SYS_VFS_H
13603# include <sys/vfs.h>
13604#endif
13605#ifdef HAVE_SYS_STATFS_H
13606# include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013607#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013608"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013609if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013610
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013611cat >>confdefs.h <<_ACEOF
13612#define HAVE_STRUCT_STATFS_F_BFREE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013613_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013614
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013615
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013616fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013617ac_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 +000013618#ifdef HAVE_SYS_PARAM_H
13619# include <sys/param.h>
13620#endif
Robert Millan55b74482006-02-06 21:53:27 +010013621#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013622# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013623#endif
13624#ifdef HAVE_SYS_VFS_H
13625# include <sys/vfs.h>
13626#endif
13627#ifdef HAVE_SYS_STATFS_H
13628# include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013629#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013630"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013631if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
Patrik Stridvall09da9662001-07-08 22:30:50 +000013632
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013633cat >>confdefs.h <<_ACEOF
13634#define HAVE_STRUCT_STATFS_F_BAVAIL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013635_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000013636
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013637
Patrik Stridvall09da9662001-07-08 22:30:50 +000013638fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013639ac_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 +000013640#ifdef HAVE_SYS_PARAM_H
13641# include <sys/param.h>
13642#endif
Robert Millan55b74482006-02-06 21:53:27 +010013643#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013644# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013645#endif
13646#ifdef HAVE_SYS_VFS_H
13647# include <sys/vfs.h>
13648#endif
13649#ifdef HAVE_SYS_STATFS_H
13650# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013651#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013652"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013653if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013654
13655cat >>confdefs.h <<_ACEOF
13656#define HAVE_STRUCT_STATFS_F_FRSIZE 1
13657_ACEOF
13658
13659
13660fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013661ac_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 +000013662#ifdef HAVE_SYS_PARAM_H
13663# include <sys/param.h>
13664#endif
Robert Millan55b74482006-02-06 21:53:27 +010013665#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013666# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013667#endif
13668#ifdef HAVE_SYS_VFS_H
13669# include <sys/vfs.h>
13670#endif
13671#ifdef HAVE_SYS_STATFS_H
13672# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013673#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013674"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013675if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013676
13677cat >>confdefs.h <<_ACEOF
13678#define HAVE_STRUCT_STATFS_F_FFREE 1
13679_ACEOF
13680
13681
13682fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013683ac_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 +000013684#ifdef HAVE_SYS_PARAM_H
13685# include <sys/param.h>
13686#endif
Robert Millan55b74482006-02-06 21:53:27 +010013687#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013688# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013689#endif
13690#ifdef HAVE_SYS_VFS_H
13691# include <sys/vfs.h>
13692#endif
13693#ifdef HAVE_SYS_STATFS_H
13694# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013695#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013696"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013697if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013698
13699cat >>confdefs.h <<_ACEOF
13700#define HAVE_STRUCT_STATFS_F_FAVAIL 1
13701_ACEOF
13702
13703
13704fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013705ac_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 +000013706#ifdef HAVE_SYS_PARAM_H
13707# include <sys/param.h>
13708#endif
Robert Millan55b74482006-02-06 21:53:27 +010013709#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardb859a682004-03-07 03:16:43 +000013710# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013711#endif
13712#ifdef HAVE_SYS_VFS_H
13713# include <sys/vfs.h>
13714#endif
13715#ifdef HAVE_SYS_STATFS_H
13716# include <sys/statfs.h>
Alexandre Julliardb859a682004-03-07 03:16:43 +000013717#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013718"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013719if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
Alexandre Julliardb859a682004-03-07 03:16:43 +000013720
13721cat >>confdefs.h <<_ACEOF
13722#define HAVE_STRUCT_STATFS_F_NAMELEN 1
13723_ACEOF
13724
13725
13726fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000013727
13728
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013729ac_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 +000013730#include <sys/statvfs.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_statvfs_f_blocks" = xyes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013734
13735cat >>confdefs.h <<_ACEOF
13736#define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13737_ACEOF
13738
13739
13740fi
Patrik Stridvall09da9662001-07-08 22:30:50 +000013741
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013742
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013743ac_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 +000013744#ifdef HAVE_SYS_SOCKET_H
13745# include <sys/socket.h>
13746#endif
13747#ifdef HAVE_SYS_UN_H
13748# include <sys/un.h>
13749#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013750"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013751if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
Juergen Lock2d33ab92000-02-13 16:03:29 +000013752
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013753cat >>confdefs.h <<_ACEOF
13754#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013755_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000013756
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013757
13758fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013759ac_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 +000013760#ifdef HAVE_SYS_SOCKET_H
13761# include <sys/socket.h>
13762#endif
13763#ifdef HAVE_SYS_UN_H
13764# include <sys/un.h>
13765#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013766"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013767if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013768
13769cat >>confdefs.h <<_ACEOF
13770#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13771_ACEOF
13772
13773
13774fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013775ac_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 +000013776#ifdef HAVE_SYS_SOCKET_H
13777# include <sys/socket.h>
13778#endif
13779#ifdef HAVE_SYS_UN_H
13780# include <sys/un.h>
13781#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013782"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013783if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013784
13785cat >>confdefs.h <<_ACEOF
13786#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13787_ACEOF
13788
13789
Juergen Lock2d33ab92000-02-13 16:03:29 +000013790fi
13791
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013792
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013793ac_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 +000013794#ifdef HAVE_SCSI_SG_H
13795#include <scsi/sg.h>
13796#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013797"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013798if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000013799
13800cat >>confdefs.h <<_ACEOF
13801#define HAVE_SCSIREQ_T_CMD 1
13802_ACEOF
13803
13804
13805fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013806ac_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 +000013807#ifdef HAVE_SCSI_SG_H
13808#include <scsi/sg.h>
13809#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013810"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013811if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000013812
13813cat >>confdefs.h <<_ACEOF
13814#define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13815_ACEOF
13816
13817
13818fi
13819
13820
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013821ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13822"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013823if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013824
13825cat >>confdefs.h <<_ACEOF
13826#define HAVE_SIGINFO_T_SI_FD 1
13827_ACEOF
13828
13829
13830fi
13831
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013832
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013833ac_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 +010013834#ifdef HAVE_SYS_MTIO_H
13835#include <sys/mtio.h>
13836#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013837"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013838if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010013839
13840cat >>confdefs.h <<_ACEOF
13841#define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13842_ACEOF
13843
13844
13845fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013846ac_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 +010013847#ifdef HAVE_SYS_MTIO_H
13848#include <sys/mtio.h>
13849#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013850"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013851if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010013852
13853cat >>confdefs.h <<_ACEOF
13854#define HAVE_STRUCT_MTGET_MT_GSTAT 1
13855_ACEOF
13856
13857
13858fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013859ac_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 +010013860#ifdef HAVE_SYS_MTIO_H
13861#include <sys/mtio.h>
13862#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013863"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013864if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010013865
13866cat >>confdefs.h <<_ACEOF
13867#define HAVE_STRUCT_MTGET_MT_BLKNO 1
13868_ACEOF
13869
13870
13871fi
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010013872
13873
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013874ac_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 +000013875#include <getopt.h>
13876#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013877"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013878if test "x$ac_cv_member_struct_option_name" = xyes; then :
Alexandre Julliarddb89a542003-04-20 02:56:14 +000013879
13880cat >>confdefs.h <<_ACEOF
13881#define HAVE_STRUCT_OPTION_NAME 1
13882_ACEOF
13883
13884
13885fi
13886
13887
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013888ac_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 +020013889if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
Pavel Roskind6507192003-10-03 03:28:40 +000013890
13891cat >>confdefs.h <<_ACEOF
13892#define HAVE_STRUCT_STAT_ST_BLOCKS 1
13893_ACEOF
13894
13895
13896fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013897ac_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 +020013898if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020013899
13900cat >>confdefs.h <<_ACEOF
13901#define HAVE_STRUCT_STAT_ST_MTIM 1
13902_ACEOF
13903
13904
13905fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013906ac_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 +020013907if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020013908
13909cat >>confdefs.h <<_ACEOF
13910#define HAVE_STRUCT_STAT_ST_CTIM 1
13911_ACEOF
13912
13913
13914fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013915ac_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 +020013916if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020013917
13918cat >>confdefs.h <<_ACEOF
13919#define HAVE_STRUCT_STAT_ST_ATIM 1
13920_ACEOF
13921
13922
13923fi
Pavel Roskind6507192003-10-03 03:28:40 +000013924
13925
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013926ac_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 +030013927#include <sys/types.h>
13928#endif
13929#ifdef HAVE_NETINET_IN_H
13930#include <netinet/in.h>
13931#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013932"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013933if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030013934
13935cat >>confdefs.h <<_ACEOF
13936#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13937_ACEOF
13938
13939
13940fi
13941
13942
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013943ac_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 +020013944#include <sys/types.h>
13945#endif
13946#ifdef HAVE_NETINET_IN_H
13947# include <netinet/in.h>
13948#endif
13949#ifdef HAVE_ARPA_NAMESER_H
13950# include <arpa/nameser.h>
13951#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013952"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013953if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
Alexandre Julliard788e30f2006-05-31 14:43:21 +020013954
13955cat >>confdefs.h <<_ACEOF
13956#define HAVE_NS_MSG__MSG_PTR 1
13957_ACEOF
13958
13959
13960fi
13961
13962
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013963ac_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 -060013964#include <sys/types.h>
13965#endif
13966#ifdef HAVE_ALIAS_H
13967#include <alias.h>
13968#endif
13969#ifdef HAVE_SYS_SOCKET_H
13970#include <sys/socket.h>
13971#endif
13972#ifdef HAVE_SYS_SOCKETVAR_H
13973#include <sys/socketvar.h>
13974#endif
13975#ifdef HAVE_SYS_TIMEOUT_H
13976#include <sys/timeout.h>
13977#endif
13978#ifdef HAVE_NETINET_IN_H
13979#include <netinet/in.h>
13980#endif
13981#ifdef HAVE_NETINET_IN_SYSTM_H
13982#include <netinet/in_systm.h>
13983#endif
13984#ifdef HAVE_NETINET_IP_H
13985#include <netinet/ip.h>
13986#endif
13987#ifdef HAVE_NETINET_IP_VAR_H
13988#include <netinet/ip_var.h>
13989#endif
13990#ifdef HAVE_NETINET_IP_ICMP_H
13991#include <netinet/ip_icmp.h>
13992#endif
13993#ifdef HAVE_NETINET_ICMP_VAR
13994#include <netinet/icmp_var.h>
13995#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013996"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013997if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
Austin Englishac0252d2009-01-30 10:18:10 -060013998
13999cat >>confdefs.h <<_ACEOF
14000#define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14001_ACEOF
14002
14003
14004fi
14005
14006
Juan Lang984c3b22010-03-12 10:38:46 -080014007ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14008#include <sys/types.h>
14009#endif
14010#ifdef HAVE_NET_IF_H
14011# include <net/if.h>
14012#endif
14013"
Alexandre Julliard9797da42011-04-27 17:37:43 +020014014if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
Juan Lang984c3b22010-03-12 10:38:46 -080014015
14016cat >>confdefs.h <<_ACEOF
14017#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14018_ACEOF
14019
14020
14021fi
14022
14023
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014025$as_echo_n "checking for timezone variable... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014026if ${ac_cv_have_timezone+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014027 $as_echo_n "(cached) " >&6
Phil Krylov6618b032005-05-24 11:52:46 +000014028else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000014030/* end confdefs.h. */
14031#include <time.h>
14032int
14033main ()
14034{
Alexandre Julliardff2bd662006-08-25 13:23:29 +020014035timezone = 1
Phil Krylov6618b032005-05-24 11:52:46 +000014036 ;
14037 return 0;
14038}
14039_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014040if ac_fn_c_try_link "$LINENO"; then :
Phil Krylov6618b032005-05-24 11:52:46 +000014041 ac_cv_have_timezone="yes"
14042else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014043 ac_cv_have_timezone="no"
Phil Krylov6618b032005-05-24 11:52:46 +000014044fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014045rm -f core conftest.err conftest.$ac_objext \
14046 conftest$ac_exeext conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000014047fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014049$as_echo "$ac_cv_have_timezone" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000014050if test "$ac_cv_have_timezone" = "yes"
14051then
14052
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014053$as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
Phil Krylov6618b032005-05-24 11:52:46 +000014054
14055fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014057$as_echo_n "checking for daylight variable... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014058if ${ac_cv_have_daylight+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014059 $as_echo_n "(cached) " >&6
Phil Krylov6618b032005-05-24 11:52:46 +000014060else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000014062/* end confdefs.h. */
14063#include <time.h>
14064int
14065main ()
14066{
Alexandre Julliardff2bd662006-08-25 13:23:29 +020014067daylight = 1
Phil Krylov6618b032005-05-24 11:52:46 +000014068 ;
14069 return 0;
14070}
14071_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014072if ac_fn_c_try_link "$LINENO"; then :
Phil Krylov6618b032005-05-24 11:52:46 +000014073 ac_cv_have_daylight="yes"
14074else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014075 ac_cv_have_daylight="no"
Phil Krylov6618b032005-05-24 11:52:46 +000014076fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014077rm -f core conftest.err conftest.$ac_objext \
14078 conftest$ac_exeext conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000014079fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014081$as_echo "$ac_cv_have_daylight" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000014082if test "$ac_cv_have_daylight" = "yes"
14083then
14084
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014085$as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
Phil Krylov6618b032005-05-24 11:52:46 +000014086
14087fi
14088
Natanael Copa3b11f792011-07-06 08:58:01 +000014089ac_save_LIBS="$LIBS"
14090LIBS="$LIBS -lm"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014092$as_echo_n "checking for isinf... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014093if ${ac_cv_have_isinf+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014094 $as_echo_n "(cached) " >&6
Petr Sumbera4992b652008-04-29 17:08:53 +020014095else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Petr Sumbera4992b652008-04-29 17:08:53 +020014097/* end confdefs.h. */
14098#include <math.h>
14099int
14100main ()
14101{
Austin English8521ebe2011-06-13 21:26:40 -070014102float f = 0.0; return isinf(f)
Petr Sumbera4992b652008-04-29 17:08:53 +020014103 ;
14104 return 0;
14105}
14106_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014107if ac_fn_c_try_link "$LINENO"; then :
Petr Sumbera4992b652008-04-29 17:08:53 +020014108 ac_cv_have_isinf="yes"
14109else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014110 ac_cv_have_isinf="no"
Petr Sumbera4992b652008-04-29 17:08:53 +020014111fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014112rm -f core conftest.err conftest.$ac_objext \
14113 conftest$ac_exeext conftest.$ac_ext
Petr Sumbera4992b652008-04-29 17:08:53 +020014114fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014116$as_echo "$ac_cv_have_isinf" >&6; }
Petr Sumbera4992b652008-04-29 17:08:53 +020014117if test "$ac_cv_have_isinf" = "yes"
14118then
14119
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014120$as_echo "#define HAVE_ISINF 1" >>confdefs.h
Petr Sumbera4992b652008-04-29 17:08:53 +020014121
14122fi
14123
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014125$as_echo_n "checking for isnan... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014126if ${ac_cv_have_isnan+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014127 $as_echo_n "(cached) " >&6
Jacek Caban1715dcb2008-10-14 16:06:49 -050014128else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jacek Caban1715dcb2008-10-14 16:06:49 -050014130/* end confdefs.h. */
14131#include <math.h>
14132int
14133main ()
14134{
Austin English8521ebe2011-06-13 21:26:40 -070014135float f = 0.0; return isnan(f)
Jacek Caban1715dcb2008-10-14 16:06:49 -050014136 ;
14137 return 0;
14138}
14139_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014140if ac_fn_c_try_link "$LINENO"; then :
Jacek Caban1715dcb2008-10-14 16:06:49 -050014141 ac_cv_have_isnan="yes"
14142else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014143 ac_cv_have_isnan="no"
Jacek Caban1715dcb2008-10-14 16:06:49 -050014144fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014145rm -f core conftest.err conftest.$ac_objext \
14146 conftest$ac_exeext conftest.$ac_ext
Jacek Caban1715dcb2008-10-14 16:06:49 -050014147fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014149$as_echo "$ac_cv_have_isnan" >&6; }
Jacek Caban1715dcb2008-10-14 16:06:49 -050014150if test "$ac_cv_have_isnan" = "yes"
14151then
14152
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014153$as_echo "#define HAVE_ISNAN 1" >>confdefs.h
Jacek Caban1715dcb2008-10-14 16:06:49 -050014154
14155fi
Natanael Copa3b11f792011-07-06 08:58:01 +000014156LIBS="$ac_save_LIBS"
Jacek Caban1715dcb2008-10-14 16:06:49 -050014157
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014158
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014159case $host_cpu in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014160 *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 +010014161$as_echo_n "checking whether we need to define __i386__... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014162if ${ac_cv_cpp_def___i386__+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014163 $as_echo_n "(cached) " >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000014164else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014166/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014167#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014168yes
14169#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014170_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014172 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014173 ac_cv_cpp_def___i386__=yes
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014174else
Alexandre Julliard05783b52002-12-11 00:21:55 +000014175 ac_cv_cpp_def___i386__=no
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014176fi
14177rm -f conftest*
14178
14179fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014181$as_echo "$ac_cv_cpp_def___i386__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014182if test $ac_cv_cpp_def___i386__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014183 CFLAGS="$CFLAGS -D__i386__"
14184 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014185fi ;;
14186 *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 +010014187$as_echo_n "checking whether we need to define __x86_64__... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014188if ${ac_cv_cpp_def___x86_64__+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014189 $as_echo_n "(cached) " >&6
Alexandre Julliarde3be5642005-09-09 09:30:02 +000014190else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde3be5642005-09-09 09:30:02 +000014192/* end confdefs.h. */
14193#ifndef __x86_64__
14194yes
14195#endif
14196_ACEOF
14197if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014198 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliarde3be5642005-09-09 09:30:02 +000014199 ac_cv_cpp_def___x86_64__=yes
14200else
14201 ac_cv_cpp_def___x86_64__=no
14202fi
14203rm -f conftest*
14204
14205fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014207$as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014208if test $ac_cv_cpp_def___x86_64__ = yes; then :
Alexandre Julliarde3be5642005-09-09 09:30:02 +000014209 CFLAGS="$CFLAGS -D__x86_64__"
14210 LINTFLAGS="$LINTFLAGS -D__x86_64__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014211fi ;;
André Hentschelfca621f2011-11-30 01:07:33 +010014212 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
14213$as_echo_n "checking whether we need to define __sparc64__... " >&6; }
14214if ${ac_cv_cpp_def___sparc64__+:} false; then :
14215 $as_echo_n "(cached) " >&6
14216else
14217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14218/* end confdefs.h. */
14219#ifndef __sparc64__
14220yes
14221#endif
14222_ACEOF
14223if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14224 $EGREP "yes" >/dev/null 2>&1; then :
14225 ac_cv_cpp_def___sparc64__=yes
14226else
14227 ac_cv_cpp_def___sparc64__=no
14228fi
14229rm -f conftest*
14230
14231fi
14232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
14233$as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
14234if test $ac_cv_cpp_def___sparc64__ = yes; then :
14235 CFLAGS="$CFLAGS -D__sparc64__"
14236 LINTFLAGS="$LINTFLAGS -D__sparc64__"
14237fi ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014238 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014239$as_echo_n "checking whether we need to define __sparc__... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014240if ${ac_cv_cpp_def___sparc__+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014241 $as_echo_n "(cached) " >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014242else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014244/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014245#ifndef __sparc__
14246yes
14247#endif
14248_ACEOF
14249if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014250 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014251 ac_cv_cpp_def___sparc__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014252else
Alexandre Julliard05783b52002-12-11 00:21:55 +000014253 ac_cv_cpp_def___sparc__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014254fi
14255rm -f conftest*
14256
14257fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014259$as_echo "$ac_cv_cpp_def___sparc__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014260if test $ac_cv_cpp_def___sparc__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014261 CFLAGS="$CFLAGS -D__sparc__"
14262 LINTFLAGS="$LINTFLAGS -D__sparc__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014263fi ;;
André Hentschelfca621f2011-11-30 01:07:33 +010014264 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
14265$as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
14266if ${ac_cv_cpp_def___powerpc64__+:} false; then :
14267 $as_echo_n "(cached) " >&6
14268else
14269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270/* end confdefs.h. */
14271#ifndef __powerpc64__
14272yes
14273#endif
14274_ACEOF
14275if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14276 $EGREP "yes" >/dev/null 2>&1; then :
14277 ac_cv_cpp_def___powerpc64__=yes
14278else
14279 ac_cv_cpp_def___powerpc64__=no
14280fi
14281rm -f conftest*
14282
14283fi
14284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
14285$as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
14286if test $ac_cv_cpp_def___powerpc64__ = yes; then :
14287 CFLAGS="$CFLAGS -D__powerpc64__"
14288 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
14289fi ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014290 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014291$as_echo_n "checking whether we need to define __powerpc__... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014292if ${ac_cv_cpp_def___powerpc__+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014293 $as_echo_n "(cached) " >&6
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000014294else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000014296/* end confdefs.h. */
14297#ifndef __powerpc__
14298yes
14299#endif
14300_ACEOF
14301if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014302 $EGREP "yes" >/dev/null 2>&1; then :
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000014303 ac_cv_cpp_def___powerpc__=yes
14304else
14305 ac_cv_cpp_def___powerpc__=no
14306fi
14307rm -f conftest*
14308
14309fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014311$as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014312if test $ac_cv_cpp_def___powerpc__ = yes; then :
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000014313 CFLAGS="$CFLAGS -D__powerpc__"
14314 LINTFLAGS="$LINTFLAGS -D__powerpc__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014315fi ;;
André Hentschel50ada0f2011-04-19 19:37:05 +020014316 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
14317$as_echo_n "checking whether we need to define __arm__... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014318if ${ac_cv_cpp_def___arm__+:} false; then :
André Hentschel50ada0f2011-04-19 19:37:05 +020014319 $as_echo_n "(cached) " >&6
14320else
14321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322/* end confdefs.h. */
14323#ifndef __arm__
14324yes
14325#endif
14326_ACEOF
14327if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14328 $EGREP "yes" >/dev/null 2>&1; then :
14329 ac_cv_cpp_def___arm__=yes
14330else
14331 ac_cv_cpp_def___arm__=no
14332fi
14333rm -f conftest*
14334
14335fi
14336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
14337$as_echo "$ac_cv_cpp_def___arm__" >&6; }
14338if test $ac_cv_cpp_def___arm__ = yes; then :
14339 CFLAGS="$CFLAGS -D__arm__"
14340 LINTFLAGS="$LINTFLAGS -D__arm__"
14341fi ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000014342esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014343
14344case $host_vendor in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014345 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014346$as_echo_n "checking whether we need to define __sun__... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014347if ${ac_cv_cpp_def___sun__+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014348 $as_echo_n "(cached) " >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014349else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014351/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014352#ifndef __sun__
14353yes
14354#endif
14355_ACEOF
14356if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014357 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014358 ac_cv_cpp_def___sun__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014359else
Alexandre Julliard05783b52002-12-11 00:21:55 +000014360 ac_cv_cpp_def___sun__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014361fi
14362rm -f conftest*
14363
14364fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014366$as_echo "$ac_cv_cpp_def___sun__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014367if test $ac_cv_cpp_def___sun__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014368 CFLAGS="$CFLAGS -D__sun__"
14369 LINTFLAGS="$LINTFLAGS -D__sun__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014370fi ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000014371esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014372
14373
Alexandre Julliarda360e932008-08-20 16:02:37 +020014374
Alexandre Julliard7d831152010-03-20 15:07:45 +010014375
Alexandre Julliard6c142382010-04-11 12:47:30 +020014376
Alexandre Julliard7d831152010-03-20 15:07:45 +010014377ac_config_commands="$ac_config_commands include/stamp-h"
14378
Alexandre Julliard03642412010-03-20 15:24:22 +010014379
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014380ALL_MAKEFILE_DEPENDS="
14381# Rules automatically generated by configure
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014382
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014383.INIT: Makefile
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014384.MAKEFILEDEPS:
Alexandre Julliardbd3110d2010-05-23 10:34:36 +020014385all: Makefile
Alexandre Julliard81b8ee82010-09-19 12:36:48 +020014386Makefile: Makefile.in Make.vars.in Make.rules config.status
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014387 @./config.status Make.tmp Makefile"
Alexandre Julliarda360e932008-08-20 16:02:37 +020014388
Alexandre Julliard367fd222011-01-04 17:05:21 +010014389ALL_POT_FILES=""
Alexandre Julliard9b99cd12011-05-24 11:11:22 +020014390ALL_TEST_RESOURCES=""
Alexandre Julliard454fb3c2010-02-08 21:29:13 +010014391
Alexandre Julliard49163da2008-08-25 12:02:27 +020014392
Alexandre Julliard2de10c42010-02-11 23:23:45 +010014393wine_fn_append_file ()
14394{
14395 as_fn_append $1 " \\$as_nl $2"
14396}
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014397
Alexandre Julliard2de10c42010-02-11 23:23:45 +010014398wine_fn_append_rule ()
14399{
14400 as_fn_append $1 "$as_nl$2"
14401}
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014402
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014403wine_fn_has_flag ()
14404{
14405 expr ",$2," : ".*,$1,.*" >/dev/null
14406}
14407
Alexandre Julliard943cd732010-03-25 21:52:56 +010014408wine_fn_all_dir_rules ()
14409{
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014410 ac_dir=$1
14411 ac_alldeps=$2
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014412 ac_makedep="\$(MAKEDEP)"
14413 ac_input=Make.vars.in:$ac_dir/Makefile.in
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014414 if test $ac_dir != tools
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014415 then
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014416 ac_alldeps="$2 $ac_makedep"
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014417 fi
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014418 case $2 in
14419 *.in) ac_input=$ac_input:$2 ;;
14420 *) ac_makedep="$2 $ac_makedep" ;;
14421 esac
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014422
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014423 wine_fn_append_file ALL_DIRS $ac_dir
Alexandre Julliard943cd732010-03-25 21:52:56 +010014424 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014425"__clean__: $ac_dir/__clean__
14426.PHONY: $ac_dir/__clean__
14427$ac_dir/__clean__: $ac_dir/Makefile
14428 @cd $ac_dir && \$(MAKE) clean
14429 \$(RM) $ac_dir/Makefile
14430$ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014431 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014432depend: $ac_dir/__depend__
14433.PHONY: $ac_dir/__depend__
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014434$ac_dir/__depend__: $ac_makedep dummy
14435 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
Alexandre Julliard943cd732010-03-25 21:52:56 +010014436}
14437
Alexandre Julliard9c98f692011-10-22 14:54:03 +020014438wine_fn_pot_rules ()
14439{
14440 ac_dir=$1
14441 ac_flags=$2
14442
Alexandre Julliard9159cfe2011-10-22 20:46:36 +020014443 test "x$with_gettextpo" = xyes || return
Alexandre Julliard9c98f692011-10-22 14:54:03 +020014444
14445 if wine_fn_has_flag mc $ac_flags
14446 then
14447 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14448 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14449"$ac_dir/msg.pot: $ac_dir/Makefile dummy
14450 @cd $ac_dir && \$(MAKE) msg.pot
14451$ac_dir/msg.pot: tools/wmc include"
14452 fi
14453 if wine_fn_has_flag po $ac_flags
14454 then
14455 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14456 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14457"$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
14458 @cd $ac_dir && \$(MAKE) rsrc.pot
Rafał Mużyło78f717b2011-11-04 23:20:30 +010014459$ac_dir/rsrc.pot: tools/wrc include"
Alexandre Julliard9c98f692011-10-22 14:54:03 +020014460 fi
14461}
14462
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014463wine_fn_config_makefile ()
14464{
14465 ac_dir=$1
Alexandre Julliard03642412010-03-20 15:24:22 +010014466 ac_enable=$2
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014467 ac_flags=$3
Alexandre Julliarda0b8fa92011-06-12 12:44:03 +020014468 ac_rules=$4
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020014469 if eval test \"x\$"$ac_enable"\" = x"no"; then :
Alexandre Julliard9bdd0272010-06-30 17:34:20 +020014470 return 0
14471fi
Alexandre Julliard03642412010-03-20 15:24:22 +010014472
Alexandre Julliarda0b8fa92011-06-12 12:44:03 +020014473 wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
Alexandre Julliard9bdd0272010-06-30 17:34:20 +020014474 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014475"all: $ac_dir
14476.PHONY: $ac_dir
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014477$ac_dir: $ac_dir/Makefile dummy
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020014478 @cd $ac_dir && \$(MAKE)"
14479
14480 wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
14481
14482 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014483".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14484$ac_dir/__install__:: $ac_dir
Alexandre Julliarde84063b2010-03-25 21:46:41 +010014485 @cd $ac_dir && \$(MAKE) install
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014486$ac_dir/__uninstall__:: $ac_dir/Makefile
14487 @cd $ac_dir && \$(MAKE) uninstall
14488install:: $ac_dir/__install__
14489__uninstall__: $ac_dir/__uninstall__"
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020014490
14491 if wine_fn_has_flag install-lib $ac_flags
14492 then
14493 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014494".PHONY: $ac_dir/__install-lib__
14495$ac_dir/__install-lib__:: $ac_dir
14496 @cd $ac_dir && \$(MAKE) install-lib
14497install-lib:: $ac_dir/__install-lib__"
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020014498 fi
14499
14500 if wine_fn_has_flag install-dev $ac_flags
14501 then
14502 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014503".PHONY: $ac_dir/__install-dev
14504$ac_dir/__install-dev__:: $ac_dir
14505 @cd $ac_dir && \$(MAKE) install-dev
14506install-dev:: $ac_dir/__install-dev__"
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020014507 fi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014508}
14509
14510wine_fn_config_lib ()
14511{
14512 ac_name=$1
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014513 ac_flags=$2
Alexandre Julliardb8fb1d52010-03-20 14:50:53 +010014514 ac_dir=dlls/$ac_name
Alexandre Julliardf64a6752011-07-09 17:58:47 +020014515 wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
14516
14517 if wine_fn_has_flag install-dev $ac_flags
14518 then :
14519 else
14520 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14521".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14522$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
14523 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14524$ac_dir/__uninstall__::
14525 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14526install install-dev:: $ac_dir/__install__
14527__uninstall__: $ac_dir/__uninstall__"
14528 fi
14529
Alexandre Julliarda0b8fa92011-06-12 12:44:03 +020014530 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
14531 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014532}
14533
Alexandre Julliard50231942010-03-16 22:00:02 +010014534wine_fn_config_dll ()
14535{
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014536 ac_name=$1
14537 ac_dir=dlls/$ac_name
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014538 ac_enable=$2
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014539 ac_flags=$3
Alexandre Julliard1858f432010-12-29 14:10:47 +010014540 ac_implib=${4:-$ac_name}
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014541 ac_file=$ac_dir/lib$ac_implib
Alexandre Julliardbf8f4352011-07-25 11:39:42 +020014542 ac_dll=$ac_name
Alexandre Julliard50231942010-03-16 22:00:02 +010014543 ac_deps="tools/widl tools/winebuild tools/winegcc include"
Alexandre Julliardb0e48e12010-07-26 21:06:28 +020014544 ac_implibflags=""
14545
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014546 case $ac_name in
Alexandre Julliardb0e48e12010-07-26 21:06:28 +020014547 *16) ac_implibflags=" -m16" ;;
Alexandre Julliardbf8f4352011-07-25 11:39:42 +020014548 *.*) ;;
14549 *) ac_dll=$ac_dll.dll ;;
Alexandre Julliardb0e48e12010-07-26 21:06:28 +020014550 esac
Alexandre Julliard50231942010-03-16 22:00:02 +010014551
Alexandre Julliardbf8f4352011-07-25 11:39:42 +020014552 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
Alexandre Julliard82b743f2010-03-25 11:15:32 +010014553
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020014554 if eval test \"x\$"$ac_enable"\" = x"no"; then :
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014555 test "$ac_enable" != enable_win16 || return 0
Alexandre Julliard28449912011-07-25 22:05:51 +020014556 wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014557else
Alexandre Julliard60a05ad2010-03-25 12:05:44 +010014558 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardbf8f4352011-07-25 11:39:42 +020014559"$ac_dir: __builddeps__
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014560manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014561 @cd $ac_dir && \$(MAKE) \$@"
Alexandre Julliard367fd222011-01-04 17:05:21 +010014562
Alexandre Julliardbf8f4352011-07-25 11:39:42 +020014563 if wine_fn_has_flag install-lib $ac_flags
14564 then :
14565 else
14566 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14567".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
14568install install-lib:: $ac_dir/__install-lib__
14569__uninstall__: $ac_dir/__uninstall__"
14570 if test -n "$DLLEXT"
14571 then
14572 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14573"$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14574 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
14575 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
14576$ac_dir/__uninstall__::
14577 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
14578 else
14579 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14580"$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14581 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
14582$ac_dir/__uninstall__::
14583 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
14584 fi
14585 fi
14586
Alexandre Julliard9c98f692011-10-22 14:54:03 +020014587 wine_fn_pot_rules $ac_dir $ac_flags
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014588fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014589
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014590 if wine_fn_has_flag staticimplib $ac_flags
Alexandre Julliard50231942010-03-16 22:00:02 +010014591 then
14592 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014593"__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014594$ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014595$ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14596 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14597$ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14598 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
Alexandre Julliard6cba5c42011-07-09 18:01:42 +020014599.PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14600$ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14601 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14602$ac_dir/__uninstall__::
14603 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14604install install-dev:: $ac_dir/__install-dev__
14605__uninstall__: $ac_dir/__uninstall__"
14606
14607 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
14608 then
14609 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14610"$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
14611 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
14612$ac_dir/__uninstall__::
14613 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
14614 fi
14615
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014616 if test "x$CROSSTEST_DISABLE" = x
14617 then
14618 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14619"__builddeps__: $ac_file.cross.a
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014620$ac_file.cross.a: $ac_dir/Makefile dummy
14621 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014622 fi
14623
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014624 elif wine_fn_has_flag implib $ac_flags
Alexandre Julliard50231942010-03-16 22:00:02 +010014625 then
14626 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014627"__builddeps__: $ac_file.$IMPLIBEXT
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014628$ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14629 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14630$ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14631 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
Alexandre Julliard6cba5c42011-07-09 18:01:42 +020014632.PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14633$ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14634 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14635$ac_dir/__uninstall__::
14636 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14637install install-dev:: $ac_dir/__install-dev__
14638__uninstall__: $ac_dir/__uninstall__"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014639 if test "x$CROSSTEST_DISABLE" = x
14640 then
14641 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14642"__builddeps__: $ac_file.cross.a
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014643$ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14644 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014645 fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014646
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014647 if test "$ac_name" != "$ac_implib"
Alexandre Julliard50231942010-03-16 22:00:02 +010014648 then
14649 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014650"__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014651dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014652 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
Alexandre Julliard50231942010-03-16 22:00:02 +010014653clean::
14654 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014655 if test "x$CROSSTEST_DISABLE" = x
14656 then
14657 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14658"__builddeps__: dlls/lib$ac_implib.cross.a
14659dlls/lib$ac_implib.cross.a: $ac_file.cross.a
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014660 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014661 fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014662 fi
14663 fi
14664}
14665
14666wine_fn_config_program ()
14667{
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014668 ac_name=$1
14669 ac_dir=programs/$ac_name
Alexandre Julliardd394e042010-03-20 14:53:39 +010014670 ac_enable=$2
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014671 ac_flags=$3
Alexandre Julliardfda8b652011-07-09 21:04:23 +020014672 ac_program=$ac_name
14673
14674 case $ac_name in
14675 *.*) ;;
14676 *) ac_program=$ac_program.exe ;;
14677 esac
14678
14679 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014680
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020014681 if eval test \"x\$"$ac_enable"\" = x"no"; then :
Alexandre Julliardd394e042010-03-20 14:53:39 +010014682
14683else
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014684 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardfda8b652011-07-09 21:04:23 +020014685"$ac_dir: __builddeps__"
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014686
Alexandre Julliard9c98f692011-10-22 14:54:03 +020014687 wine_fn_pot_rules $ac_dir $ac_flags
Alexandre Julliard367fd222011-01-04 17:05:21 +010014688
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014689 wine_fn_has_flag install $ac_flags || return
Alexandre Julliard2fb30212010-03-26 09:24:33 +010014690 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014691".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014692install install-lib:: $ac_dir/__install__
14693__uninstall__: $ac_dir/__uninstall__"
Alexandre Julliardfda8b652011-07-09 21:04:23 +020014694
14695 if test -n "$DLLEXT"
Alexandre Julliard2fb30212010-03-26 09:24:33 +010014696 then
14697 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardfda8b652011-07-09 21:04:23 +020014698"$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14699 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
14700 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
14701$ac_dir/__uninstall__::
14702 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
14703
14704 if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
14705 then
14706 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014707"$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014708 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014709$ac_dir/__uninstall__::
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014710 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
Alexandre Julliardfda8b652011-07-09 21:04:23 +020014711 fi
14712 else
14713 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14714"$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14715 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
14716$ac_dir/__uninstall__::
14717 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014718 fi
Alexandre Julliard41107a92011-08-01 13:40:19 +020014719
14720 if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
14721 then
14722 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14723"$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
14724 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
14725$ac_dir/__uninstall__::
14726 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
14727 fi
Alexandre Julliardd394e042010-03-20 14:53:39 +010014728fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014729}
14730
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014731wine_fn_config_test ()
14732{
14733 ac_dir=$1
14734 ac_name=$2
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014735 ac_flags=$3
Alexandre Julliard9b99cd12011-05-24 11:11:22 +020014736 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014737 wine_fn_all_dir_rules $ac_dir Maketest.rules
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014738
Alexandre Julliard9797da42011-04-27 17:37:43 +020014739 if test "x$enable_tests" = xno; then :
Alexandre Julliarddc3afa12010-03-20 14:51:52 +010014740
14741else
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014742 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard9b99cd12011-05-24 11:11:22 +020014743"all: $ac_dir
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014744.PHONY: $ac_dir
Alexandre Julliarddbbed382011-05-26 12:04:45 +020014745$ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014746 @cd $ac_dir && \$(MAKE)
Alexandre Julliard9b99cd12011-05-24 11:11:22 +020014747programs/winetest: $ac_dir
Alexandre Julliarde4eff852011-05-22 13:15:03 +020014748check test: $ac_dir/__test__
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014749.PHONY: $ac_dir/__test__
Alexandre Julliardeab7efd2010-03-25 21:42:54 +010014750$ac_dir/__test__: dummy
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014751 @cd $ac_dir && \$(MAKE) test
14752testclean::
14753 \$(RM) $ac_dir/*.ok"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014754
14755 if test "x$CROSSTEST_DISABLE" = x
14756 then
14757 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14758"crosstest: $ac_dir/__crosstest__
14759.PHONY: $ac_dir/__crosstest__
14760$ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14761 @cd $ac_dir && \$(MAKE) crosstest"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014762 fi
Alexandre Julliarddc3afa12010-03-20 14:51:52 +010014763fi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014764}
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010014765
14766wine_fn_config_tool ()
14767{
14768 ac_dir=$1
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014769 ac_flags=$2
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020014770 if test "x$enable_tools" = xno; then :
14771 return 0
14772fi
14773
Alexandre Julliard49c31e32011-06-12 12:13:17 +020014774 wine_fn_config_makefile $ac_dir enable_tools $ac_flags
Alexandre Julliard6dbe7a02010-03-25 11:51:24 +010014775
Alexandre Julliard49c31e32011-06-12 12:13:17 +020014776 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
14777 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020014778 case $ac_dir in
14779 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14780 esac
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010014781}
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014782
14783wine_fn_config_makerules ()
14784{
14785 ac_rules=$1
14786 ac_deps=$2
14787 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14788"$ac_rules: $ac_rules.in $ac_deps config.status
14789 @./config.status $ac_rules
14790distclean::
14791 \$(RM) $ac_rules"
14792}
14793
14794wine_fn_config_symlink ()
14795{
14796 ac_link=$1
14797 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14798"$ac_link:
14799 @./config.status $ac_link
14800distclean::
14801 \$(RM) $ac_link"
14802}
Alexandre Julliarda070f9b2010-07-26 20:53:12 +020014803
14804if test "x$CROSSTEST_DISABLE" != x
14805then
14806 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14807"crosstest:
14808 @echo \"crosstest is not supported (mingw not installed?)\" && false"
14809fi
Alexandre Julliard40977bf2010-11-11 12:24:46 +010014810ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14811wine_fn_config_symlink dlls/shell32/AUTHORS
Alexandre Julliarda6320522010-02-03 13:14:03 +010014812ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014813test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014814if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014815ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014816test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014817fi
14818if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014819ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014820test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014821fi
14822if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014823ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014824test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014825fi
14826if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014827ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014828test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014829fi
Alexandre Julliard268976b2011-10-22 15:23:14 +020014830ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
14831test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020014832if test "x$enable_tools" != xno; then
Alexandre Julliard321d3882010-05-06 20:51:53 +020014833ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14834test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020014835fi
Alexandre Julliard7d020c92010-02-03 13:12:12 +010014836ac_config_links="$ac_config_links wine:tools/winewrapper"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014837wine_fn_config_symlink wine
Alexandre Julliard4422d222011-05-10 13:26:28 +020014838if test "x$enable_win64" != xno; then
14839ac_config_links="$ac_config_links wine64:tools/winewrapper"
14840wine_fn_config_symlink wine64
14841fi
Alexandre Julliard7d020c92010-02-03 13:12:12 +010014842
Huw Davies4cffb2d2011-04-01 15:27:48 +010014843ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
14844
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020014845ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000014846
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020014847ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000014848
Alexandre Julliard1c60e3b2006-09-12 16:10:51 +020014849ac_config_commands="$ac_config_commands dlls/kernel32/nls"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014850
Alexandre Julliardb8a2e3b2006-11-16 14:49:25 +010014851ac_config_commands="$ac_config_commands dlls/user32/resources"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014852
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014853ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014854
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014855ac_config_commands="$ac_config_commands include/wine"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014856
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000014857
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014858wine_fn_config_makerules Make.rules
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000014859MAKE_RULES=Make.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014860ac_config_files="$ac_config_files Make.rules"
14861
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014862wine_fn_config_makerules Maketest.rules Make.rules
Alexandre Julliardcb1fc8f2010-02-10 11:18:58 +010014863MAKE_TEST_RULES=Maketest.rules
14864ac_config_files="$ac_config_files Maketest.rules"
14865
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014866wine_fn_config_makerules dlls/Makedll.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020014867MAKE_DLL_RULES=dlls/Makedll.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014868ac_config_files="$ac_config_files dlls/Makedll.rules"
14869
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014870wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020014871MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014872ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14873
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014874wine_fn_config_makerules programs/Makeprog.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020014875MAKE_PROG_RULES=programs/Makeprog.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014876ac_config_files="$ac_config_files programs/Makeprog.rules"
14877
Alexandre Julliarda360e932008-08-20 16:02:37 +020014878
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014879wine_fn_config_dll acledit enable_acledit
Alexandre Julliard1858f432010-12-29 14:10:47 +010014880wine_fn_config_dll aclui enable_aclui implib
14881wine_fn_config_dll activeds enable_activeds implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014882wine_fn_config_dll actxprxy enable_actxprxy
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014883wine_fn_config_lib adsiid
Alexandre Julliard1858f432010-12-29 14:10:47 +010014884wine_fn_config_dll advapi32 enable_advapi32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014885wine_fn_config_test dlls/advapi32/tests advapi32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014886wine_fn_config_dll advpack enable_advpack implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014887wine_fn_config_test dlls/advpack/tests advpack_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014888wine_fn_config_dll amstream enable_amstream
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014889wine_fn_config_test dlls/amstream/tests amstream_test
André Hentschele14e8382011-10-31 20:05:49 +010014890wine_fn_config_dll apphelp enable_apphelp
Alexandre Julliard902f10c2011-01-13 15:16:02 +010014891wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
Alexandre Julliard1858f432010-12-29 14:10:47 +010014892wine_fn_config_dll atl enable_atl implib
Marcus Meissnerb3f04252010-06-15 11:04:33 +020014893wine_fn_config_test dlls/atl/tests atl_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014894wine_fn_config_dll authz enable_authz
Alexandre Julliard1858f432010-12-29 14:10:47 +010014895wine_fn_config_dll avicap32 enable_avicap32 implib
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014896wine_fn_config_dll avifil32 enable_avifil32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014897wine_fn_config_test dlls/avifil32/tests avifil32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014898wine_fn_config_dll avifile.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010014899wine_fn_config_dll avrt enable_avrt implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014900wine_fn_config_dll bcrypt enable_bcrypt
Alexandre Julliard44479002011-01-11 12:56:17 +010014901wine_fn_config_dll browseui enable_browseui po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014902wine_fn_config_test dlls/browseui/tests browseui_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014903wine_fn_config_dll cabinet enable_cabinet implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014904wine_fn_config_test dlls/cabinet/tests cabinet_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014905wine_fn_config_dll capi2032 enable_capi2032 implib
14906wine_fn_config_dll cards enable_cards implib
14907wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
14908wine_fn_config_dll clusapi enable_clusapi implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014909wine_fn_config_dll comcat enable_comcat
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014910wine_fn_config_test dlls/comcat/tests comcat_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014911wine_fn_config_dll comctl32 enable_comctl32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014912wine_fn_config_test dlls/comctl32/tests comctl32_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014913wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014914wine_fn_config_test dlls/comdlg32/tests comdlg32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014915wine_fn_config_dll comm.drv16 enable_win16
14916wine_fn_config_dll commdlg.dll16 enable_win16
14917wine_fn_config_dll compobj.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010014918wine_fn_config_dll compstui enable_compstui implib
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014919wine_fn_config_dll credui enable_credui implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014920wine_fn_config_test dlls/credui/tests credui_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014921wine_fn_config_dll crtdll enable_crtdll implib
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014922wine_fn_config_dll crypt32 enable_crypt32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014923wine_fn_config_test dlls/crypt32/tests crypt32_test
Alexandre Julliard8484e962011-01-06 12:28:26 +010014924wine_fn_config_dll cryptdlg enable_cryptdlg po
Alexandre Julliard1858f432010-12-29 14:10:47 +010014925wine_fn_config_dll cryptdll enable_cryptdll implib
14926wine_fn_config_dll cryptnet enable_cryptnet implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014927wine_fn_config_test dlls/cryptnet/tests cryptnet_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014928wine_fn_config_dll cryptui enable_cryptui implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014929wine_fn_config_test dlls/cryptui/tests cryptui_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014930wine_fn_config_dll ctapi32 enable_ctapi32
14931wine_fn_config_dll ctl3d.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010014932wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014933wine_fn_config_dll ctl3dv2.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010014934wine_fn_config_dll d3d10 enable_d3d10 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014935wine_fn_config_test dlls/d3d10/tests d3d10_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014936wine_fn_config_dll d3d10core enable_d3d10core implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014937wine_fn_config_test dlls/d3d10core/tests d3d10core_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014938wine_fn_config_dll d3d8 enable_d3d8 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014939wine_fn_config_test dlls/d3d8/tests d3d8_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014940wine_fn_config_dll d3d9 enable_d3d9 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014941wine_fn_config_test dlls/d3d9/tests d3d9_test
Matteo Bruni0ac336f2010-07-29 01:53:54 +020014942wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
Matteo Bruni66d44992010-07-29 01:47:13 +020014943wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
Matteo Bruni8ea75832010-07-28 16:44:37 +020014944wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
Matteo Bruni458eb082010-07-28 16:37:28 +020014945wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
Matteo Bruni3c59b9c2010-07-28 16:22:11 +020014946wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
Matteo Brunifbf1e832010-07-28 16:13:40 +020014947wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
Matteo Bruni99491462010-07-28 04:31:18 +020014948wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
Matteo Brunifd4efcd2010-07-28 04:09:13 +020014949wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
Matteo Bruni79c1bc42010-08-03 18:44:25 +020014950wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
Matteo Brunife050702010-08-03 18:44:25 +020014951wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014952wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
Rico Schüller5ad7f7b2010-08-19 21:33:43 +020014953wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014954wine_fn_config_dll d3dim enable_d3dim implib
14955wine_fn_config_dll d3drm enable_d3drm implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014956wine_fn_config_test dlls/d3drm/tests d3drm_test
Owen Rudge9870c042010-08-18 16:02:22 -050014957wine_fn_config_dll d3dx10_33 enable_d3dx10_33
Owen Rudge49dbdc12010-08-18 16:02:20 -050014958wine_fn_config_dll d3dx10_34 enable_d3dx10_34
Owen Rudge955b8442010-08-18 16:02:18 -050014959wine_fn_config_dll d3dx10_35 enable_d3dx10_35
Owen Rudgef44830e2010-08-18 16:02:16 -050014960wine_fn_config_dll d3dx10_36 enable_d3dx10_36
Owen Rudge4196ba22010-08-18 16:02:10 -050014961wine_fn_config_dll d3dx10_37 enable_d3dx10_37
Owen Rudge199ff9b2010-08-18 16:02:08 -050014962wine_fn_config_dll d3dx10_38 enable_d3dx10_38
Owen Rudgefb8d7cd2010-08-18 16:02:06 -050014963wine_fn_config_dll d3dx10_39 enable_d3dx10_39
Owen Rudge662cbb12010-08-18 16:02:03 -050014964wine_fn_config_dll d3dx10_40 enable_d3dx10_40
Owen Rudge17591cc2010-08-18 16:01:59 -050014965wine_fn_config_dll d3dx10_41 enable_d3dx10_41
Owen Rudgee5d9e122010-08-18 16:01:57 -050014966wine_fn_config_dll d3dx10_42 enable_d3dx10_42
Owen Rudge3c5b2e62010-08-18 16:01:53 -050014967wine_fn_config_dll d3dx10_43 enable_d3dx10_43
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014968wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14969wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14970wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14971wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14972wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14973wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14974wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14975wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14976wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14977wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14978wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14979wine_fn_config_dll d3dx9_35 enable_d3dx9_35
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014980wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014981wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014982wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14983wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14984wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14985wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14986wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14987wine_fn_config_dll d3dx9_42 enable_d3dx9_42
Matteo Bruni90c615a2010-08-25 17:12:51 +020014988wine_fn_config_dll d3dx9_43 enable_d3dx9_43
Alexandre Julliard1858f432010-12-29 14:10:47 +010014989wine_fn_config_dll d3dxof enable_d3dxof implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014990wine_fn_config_test dlls/d3dxof/tests d3dxof_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014991wine_fn_config_dll dbgeng enable_dbgeng implib
14992wine_fn_config_dll dbghelp enable_dbghelp implib
14993wine_fn_config_dll dciman32 enable_dciman32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014994wine_fn_config_dll ddeml.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010014995wine_fn_config_dll ddraw enable_ddraw implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014996wine_fn_config_test dlls/ddraw/tests ddraw_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014997wine_fn_config_dll ddrawex enable_ddrawex
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014998wine_fn_config_test dlls/ddrawex/tests ddrawex_test
Alexandre Julliard0cdd1472011-01-06 12:37:11 +010014999wine_fn_config_dll devenum enable_devenum po
Stefan Leichter9aeda0d2011-12-22 00:04:05 +010015000wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
Lucas Fialho Zawacki0ae47102011-09-01 15:34:35 -030015001wine_fn_config_dll dinput enable_dinput implib,po,staticimplib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015002wine_fn_config_test dlls/dinput/tests dinput_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015003wine_fn_config_dll dinput8 enable_dinput8 implib
Lucas Fialho Zawacki1fbf8572011-04-29 19:29:19 -030015004wine_fn_config_test dlls/dinput8/tests dinput8_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015005wine_fn_config_dll dispdib.dll16 enable_win16
15006wine_fn_config_dll dispex enable_dispex
Huw Daviesdf075612010-03-19 13:34:53 +000015007wine_fn_config_test dlls/dispex/tests dispex_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015008wine_fn_config_dll display.drv16 enable_win16
15009wine_fn_config_dll dmband enable_dmband
15010wine_fn_config_dll dmcompos enable_dmcompos
15011wine_fn_config_dll dmime enable_dmime
Austin Lund203272e2010-08-06 17:50:49 +100015012wine_fn_config_test dlls/dmime/tests dmime_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015013wine_fn_config_dll dmloader enable_dmloader
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015014wine_fn_config_test dlls/dmloader/tests dmloader_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015015wine_fn_config_dll dmscript enable_dmscript
15016wine_fn_config_dll dmstyle enable_dmstyle
15017wine_fn_config_dll dmsynth enable_dmsynth
15018wine_fn_config_dll dmusic enable_dmusic
Alexandre Julliard1858f432010-12-29 14:10:47 +010015019wine_fn_config_dll dmusic32 enable_dmusic32 implib
15020wine_fn_config_dll dnsapi enable_dnsapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015021wine_fn_config_test dlls/dnsapi/tests dnsapi_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015022wine_fn_config_dll dplay enable_dplay implib
15023wine_fn_config_dll dplayx enable_dplayx implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015024wine_fn_config_test dlls/dplayx/tests dplayx_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015025wine_fn_config_dll dpnaddr enable_dpnaddr
Alexandre Julliard1858f432010-12-29 14:10:47 +010015026wine_fn_config_dll dpnet enable_dpnet implib
Louis Lenders78445352011-08-29 22:56:35 +020015027wine_fn_config_test dlls/dpnet/tests dpnet_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015028wine_fn_config_dll dpnhpast enable_dpnhpast
15029wine_fn_config_dll dpnlobby enable_dpnlobby
15030wine_fn_config_dll dpwsockx enable_dpwsockx
15031wine_fn_config_dll drmclien enable_drmclien
Alexandre Julliard1858f432010-12-29 14:10:47 +010015032wine_fn_config_dll dsound enable_dsound implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015033wine_fn_config_test dlls/dsound/tests dsound_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015034wine_fn_config_dll dssenh enable_dssenh
15035wine_fn_config_dll dswave enable_dswave
Alexandre Julliard1858f432010-12-29 14:10:47 +010015036wine_fn_config_dll dwmapi enable_dwmapi implib
Andrew Nguyenf9c8e462011-04-03 20:55:32 -050015037wine_fn_config_dll dxdiagn enable_dxdiagn po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015038wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015039wine_fn_config_lib dxerr8
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015040wine_fn_config_lib dxerr9
Alexandre Julliard1858f432010-12-29 14:10:47 +010015041wine_fn_config_dll dxgi enable_dxgi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015042wine_fn_config_test dlls/dxgi/tests dxgi_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015043wine_fn_config_lib dxguid
David Hedberge2cf9ad2010-07-31 20:02:45 +020015044wine_fn_config_dll explorerframe enable_explorerframe
David Hedberg87212d52010-07-31 20:02:49 +020015045wine_fn_config_test dlls/explorerframe/tests explorerframe_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015046wine_fn_config_dll faultrep enable_faultrep implib
Detlef Riekenberg53fca112010-10-26 10:11:13 +020015047wine_fn_config_test dlls/faultrep/tests faultrep_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015048wine_fn_config_dll fltlib enable_fltlib
15049wine_fn_config_dll fusion enable_fusion
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015050wine_fn_config_test dlls/fusion/tests fusion_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015051wine_fn_config_dll fwpuclnt enable_fwpuclnt
Mariusz Plucińskib3a9ce42010-07-22 23:59:34 +020015052wine_fn_config_dll gameux enable_gameux
Mariusz Plucińskicb886f42010-08-03 11:58:01 +020015053wine_fn_config_test dlls/gameux/tests gameux_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015054wine_fn_config_dll gdi.exe16 enable_win16
Akihiro Sagawab5db70f2011-11-03 22:11:33 +090015055wine_fn_config_dll gdi32 enable_gdi32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015056wine_fn_config_test dlls/gdi32/tests gdi32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015057wine_fn_config_dll gdiplus enable_gdiplus implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015058wine_fn_config_test dlls/gdiplus/tests gdiplus_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015059wine_fn_config_dll glu32 enable_glu32 implib
Alexandre Julliard479857c2011-11-22 13:51:09 +010015060wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015061wine_fn_config_dll gpkcsp enable_gpkcsp
15062wine_fn_config_dll hal enable_hal
Alexandre Julliardc9b52d22011-01-06 13:19:58 +010015063wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
Alexandre Julliard1858f432010-12-29 14:10:47 +010015064wine_fn_config_dll hid enable_hid implib
15065wine_fn_config_dll hlink enable_hlink implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015066wine_fn_config_test dlls/hlink/tests hlink_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015067wine_fn_config_dll hnetcfg enable_hnetcfg
15068wine_fn_config_dll httpapi enable_httpapi
Alexandre Julliard9c6444c2011-01-06 13:31:16 +010015069wine_fn_config_dll iccvid enable_iccvid po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015070wine_fn_config_dll icmp enable_icmp
Jacek Cabanc685f8c2011-07-27 14:45:47 +020015071wine_fn_config_dll ieframe enable_ieframe implib,po
Jacek Cabanf42d9e22011-07-28 13:32:01 +020015072wine_fn_config_test dlls/ieframe/tests ieframe_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015073wine_fn_config_dll ifsmgr.vxd enable_win16
15074wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
Alexandre Julliard1858f432010-12-29 14:10:47 +010015075wine_fn_config_dll imagehlp enable_imagehlp implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015076wine_fn_config_test dlls/imagehlp/tests imagehlp_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015077wine_fn_config_dll imm.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015078wine_fn_config_dll imm32 enable_imm32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015079wine_fn_config_test dlls/imm32/tests imm32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015080wine_fn_config_dll inetcomm enable_inetcomm implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015081wine_fn_config_test dlls/inetcomm/tests inetcomm_test
Alexandre Julliardbe521062011-01-12 15:49:32 +010015082wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015083wine_fn_config_dll inetmib1 enable_inetmib1
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015084wine_fn_config_test dlls/inetmib1/tests inetmib1_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015085wine_fn_config_dll infosoft enable_infosoft
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015086wine_fn_config_test dlls/infosoft/tests infosoft_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015087wine_fn_config_dll initpki enable_initpki
15088wine_fn_config_dll inkobj enable_inkobj
15089wine_fn_config_dll inseng enable_inseng
Alexandre Julliard1858f432010-12-29 14:10:47 +010015090wine_fn_config_dll iphlpapi enable_iphlpapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015091wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015092wine_fn_config_dll itircl enable_itircl
15093wine_fn_config_dll itss enable_itss
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015094wine_fn_config_test dlls/itss/tests itss_test
Alexandre Julliard0ccf1d82011-01-06 13:38:57 +010015095wine_fn_config_dll jscript enable_jscript po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015096wine_fn_config_test dlls/jscript/tests jscript_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015097wine_fn_config_dll kernel32 enable_kernel32 implib,mc
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015098wine_fn_config_test dlls/kernel32/tests kernel32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015099wine_fn_config_dll keyboard.drv16 enable_win16
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010015100wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
Vincent Povirk8f874592010-09-26 16:38:44 -050015101wine_fn_config_dll ktmw32 enable_ktmw32
Alexandre Julliard1858f432010-12-29 14:10:47 +010015102wine_fn_config_dll loadperf enable_loadperf implib
Alexandre Julliard7df87f32011-01-06 14:24:05 +010015103wine_fn_config_dll localspl enable_localspl po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015104wine_fn_config_test dlls/localspl/tests localspl_test
Alexandre Julliard0546dd52011-01-12 16:11:26 +010015105wine_fn_config_dll localui enable_localui po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015106wine_fn_config_test dlls/localui/tests localui_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015107wine_fn_config_dll lz32 enable_lz32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015108wine_fn_config_test dlls/lz32/tests lz32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015109wine_fn_config_dll lzexpand.dll16 enable_win16
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015110wine_fn_config_dll mapi32 enable_mapi32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015111wine_fn_config_test dlls/mapi32/tests mapi32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015112wine_fn_config_dll mapistub enable_mapistub
15113wine_fn_config_dll mciavi32 enable_mciavi32
15114wine_fn_config_dll mcicda enable_mcicda
15115wine_fn_config_dll mciqtz32 enable_mciqtz32
15116wine_fn_config_dll mciseq enable_mciseq
15117wine_fn_config_dll mciwave enable_mciwave
15118wine_fn_config_dll midimap enable_midimap
Alexandre Julliard1858f432010-12-29 14:10:47 +010015119wine_fn_config_dll mlang enable_mlang implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015120wine_fn_config_test dlls/mlang/tests mlang_test
Alistair Leslie-Hughesdbefe8c2011-10-06 21:45:02 +110015121wine_fn_config_dll mmcndmgr enable_mmcndmgr
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015122wine_fn_config_dll mmdevapi enable_mmdevapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015123wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015124wine_fn_config_dll mmdevldr.vxd enable_win16
15125wine_fn_config_dll mmsystem.dll16 enable_win16
15126wine_fn_config_dll monodebg.vxd enable_win16
15127wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15128wine_fn_config_dll mouse.drv16 enable_win16
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015129wine_fn_config_dll mpr enable_mpr implib,po
Alexandre Julliard1858f432010-12-29 14:10:47 +010015130wine_fn_config_dll mprapi enable_mprapi implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015131wine_fn_config_dll msacm.dll16 enable_win16
15132wine_fn_config_dll msacm32.drv enable_msacm32_drv
Alexandre Julliard855d32d2011-11-24 20:50:11 +010015133wine_fn_config_dll msacm32 enable_msacm32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015134wine_fn_config_test dlls/msacm32/tests msacm32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015135wine_fn_config_dll msadp32.acm enable_msadp32_acm
15136wine_fn_config_dll mscat32 enable_mscat32
Alexandre Julliard1858f432010-12-29 14:10:47 +010015137wine_fn_config_dll mscms enable_mscms implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015138wine_fn_config_test dlls/mscms/tests mscms_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015139wine_fn_config_dll mscoree enable_mscoree
Louis Lendersa8528702010-08-24 11:48:01 +020015140wine_fn_config_test dlls/mscoree/tests mscoree_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015141wine_fn_config_dll msctf enable_msctf
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015142wine_fn_config_test dlls/msctf/tests msctf_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015143wine_fn_config_dll msdaps enable_msdaps
Alexandre Julliard1858f432010-12-29 14:10:47 +010015144wine_fn_config_dll msdmo enable_msdmo implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015145wine_fn_config_dll msftedit enable_msftedit
15146wine_fn_config_dll msg711.acm enable_msg711_acm
15147wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15148wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015149wine_fn_config_dll mshtml enable_mshtml implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015150wine_fn_config_test dlls/mshtml/tests mshtml_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015151wine_fn_config_dll msi enable_msi implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015152wine_fn_config_test dlls/msi/tests msi_test
Jacek Cabanaadc5cb2012-03-09 11:12:25 +010015153wine_fn_config_dll msident enable_msident
Alexandre Julliard1858f432010-12-29 14:10:47 +010015154wine_fn_config_dll msimg32 enable_msimg32 implib
Hans Leidekker530e9472011-03-10 10:59:44 +010015155wine_fn_config_dll msimsg enable_msimsg
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015156wine_fn_config_dll msimtf enable_msimtf
15157wine_fn_config_dll msisip enable_msisip
15158wine_fn_config_dll msisys.ocx enable_msisys_ocx
15159wine_fn_config_dll msnet32 enable_msnet32
David Hedberg21085ed2011-03-22 04:16:56 +010015160wine_fn_config_dll mspatcha enable_mspatcha
Alexandre Julliardad5605b2011-01-06 16:36:14 +010015161wine_fn_config_dll msrle32 enable_msrle32 po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015162wine_fn_config_dll mssign32 enable_mssign32
15163wine_fn_config_dll mssip32 enable_mssip32
15164wine_fn_config_dll mstask enable_mstask
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015165wine_fn_config_test dlls/mstask/tests mstask_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015166wine_fn_config_dll msvcirt enable_msvcirt
Austin Englishdfbf47b2011-04-05 12:47:46 -070015167wine_fn_config_dll msvcp100 enable_msvcp100
Alexandre Julliarda3172a52011-04-28 23:30:07 +020015168wine_fn_config_dll msvcp60 enable_msvcp60
Alexandre Julliard2f9c02e2011-05-03 11:09:58 +020015169wine_fn_config_dll msvcp70 enable_msvcp70
Alexandre Julliard4be20262011-05-02 17:32:22 +020015170wine_fn_config_dll msvcp71 enable_msvcp71
Piotr Caban71a49eb2010-08-23 16:36:24 +020015171wine_fn_config_dll msvcp80 enable_msvcp80
Piotr Caban9ae9d262010-07-20 23:22:16 +020015172wine_fn_config_dll msvcp90 enable_msvcp90
Piotr Caband589d952010-07-20 23:24:32 +020015173wine_fn_config_test dlls/msvcp90/tests msvcp90_test
Detlef Riekenberg1434ef42010-04-30 14:07:34 +020015174wine_fn_config_dll msvcr100 enable_msvcr100
Alexandre Julliard1858f432010-12-29 14:10:47 +010015175wine_fn_config_dll msvcr70 enable_msvcr70 implib
15176wine_fn_config_dll msvcr71 enable_msvcr71 implib
Piotr Cabanc4522492010-03-25 11:06:29 +010015177wine_fn_config_dll msvcr80 enable_msvcr80
15178wine_fn_config_dll msvcr90 enable_msvcr90
Detlef Riekenberg73e669c2010-03-20 00:32:17 +010015179wine_fn_config_test dlls/msvcr90/tests msvcr90_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015180wine_fn_config_dll msvcrt enable_msvcrt implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015181wine_fn_config_test dlls/msvcrt/tests msvcrt_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015182wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15183wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15184wine_fn_config_dll msvcrtd enable_msvcrtd implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015185wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015186wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015187wine_fn_config_test dlls/msvfw32/tests msvfw32_test
Alexandre Julliard958ecd62011-01-06 17:07:23 +010015188wine_fn_config_dll msvidc32 enable_msvidc32 po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015189wine_fn_config_dll msvideo.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015190wine_fn_config_dll mswsock enable_mswsock implib
Alexandre Julliard25ccc902010-12-21 12:03:14 +010015191wine_fn_config_dll msxml enable_msxml
Alexandre Julliard41d6a922010-12-21 13:27:20 +010015192wine_fn_config_dll msxml2 enable_msxml2
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015193wine_fn_config_dll msxml3 enable_msxml3
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015194wine_fn_config_test dlls/msxml3/tests msxml3_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015195wine_fn_config_dll msxml4 enable_msxml4
Nikolay Sivov25bce452010-08-30 01:31:07 +040015196wine_fn_config_dll msxml6 enable_msxml6
Alexandre Julliard1858f432010-12-29 14:10:47 +010015197wine_fn_config_dll nddeapi enable_nddeapi implib
15198wine_fn_config_dll netapi32 enable_netapi32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015199wine_fn_config_test dlls/netapi32/tests netapi32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015200wine_fn_config_dll newdev enable_newdev implib
Thomas Mullaly858ccff2011-01-02 17:13:43 -050015201wine_fn_config_dll normaliz enable_normaliz implib
Jacek Caban4a912652010-12-02 19:15:28 +010015202wine_fn_config_dll npmshtml enable_npmshtml
Alexandre Julliard1858f432010-12-29 14:10:47 +010015203wine_fn_config_dll ntdll enable_ntdll implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015204wine_fn_config_test dlls/ntdll/tests ntdll_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015205wine_fn_config_dll ntdsapi enable_ntdsapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015206wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015207wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015208wine_fn_config_dll ntprint enable_ntprint
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015209wine_fn_config_test dlls/ntprint/tests ntprint_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015210wine_fn_config_dll objsel enable_objsel
Alexandre Julliard1858f432010-12-29 14:10:47 +010015211wine_fn_config_dll odbc32 enable_odbc32 implib
15212wine_fn_config_dll odbccp32 enable_odbccp32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015213wine_fn_config_test dlls/odbccp32/tests odbccp32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015214wine_fn_config_dll ole2.dll16 enable_win16
15215wine_fn_config_dll ole2conv.dll16 enable_win16
15216wine_fn_config_dll ole2disp.dll16 enable_win16
15217wine_fn_config_dll ole2nls.dll16 enable_win16
15218wine_fn_config_dll ole2prox.dll16 enable_win16
15219wine_fn_config_dll ole2thk.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015220wine_fn_config_dll ole32 enable_ole32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015221wine_fn_config_test dlls/ole32/tests ole32_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015222wine_fn_config_dll oleacc enable_oleacc implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015223wine_fn_config_test dlls/oleacc/tests oleacc_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015224wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015225wine_fn_config_test dlls/oleaut32/tests oleaut32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015226wine_fn_config_dll olecli.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015227wine_fn_config_dll olecli32 enable_olecli32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015228wine_fn_config_dll oledb32 enable_oledb32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015229wine_fn_config_test dlls/oledb32/tests oledb32_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015230wine_fn_config_dll oledlg enable_oledlg implib,po
Alexandre Julliard1858f432010-12-29 14:10:47 +010015231wine_fn_config_dll olepro32 enable_olepro32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015232wine_fn_config_dll olesvr.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015233wine_fn_config_dll olesvr32 enable_olesvr32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015234wine_fn_config_dll olethk32 enable_olethk32
15235wine_fn_config_dll openal32 enable_openal32
Peter Urbanec65c84d72010-12-02 23:41:48 +110015236wine_fn_config_dll opencl enable_opencl
Alexandre Julliard1858f432010-12-29 14:10:47 +010015237wine_fn_config_dll opengl32 enable_opengl32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015238wine_fn_config_test dlls/opengl32/tests opengl32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015239wine_fn_config_dll pdh enable_pdh implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015240wine_fn_config_test dlls/pdh/tests pdh_test
Austin Englishe3fb0782012-01-11 11:12:41 -080015241wine_fn_config_dll photometadatahandler enable_photometadatahandler
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015242wine_fn_config_dll pidgen enable_pidgen
Alexandre Julliard1858f432010-12-29 14:10:47 +010015243wine_fn_config_dll powrprof enable_powrprof implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015244wine_fn_config_dll printui enable_printui
Alexandre Julliard1858f432010-12-29 14:10:47 +010015245wine_fn_config_dll propsys enable_propsys implib
Andrew Nguyenc20908b2010-07-25 21:57:59 -050015246wine_fn_config_test dlls/propsys/tests propsys_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015247wine_fn_config_dll psapi enable_psapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015248wine_fn_config_test dlls/psapi/tests psapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015249wine_fn_config_dll pstorec enable_pstorec
15250wine_fn_config_dll qcap enable_qcap
15251wine_fn_config_dll qedit enable_qedit
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015252wine_fn_config_test dlls/qedit/tests qedit_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015253wine_fn_config_dll qmgr enable_qmgr
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015254wine_fn_config_test dlls/qmgr/tests qmgr_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015255wine_fn_config_dll qmgrprxy enable_qmgrprxy
Alexandre Julliard1858f432010-12-29 14:10:47 +010015256wine_fn_config_dll quartz enable_quartz implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015257wine_fn_config_test dlls/quartz/tests quartz_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015258wine_fn_config_dll query enable_query
15259wine_fn_config_dll rasapi16.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015260wine_fn_config_dll rasapi32 enable_rasapi32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015261wine_fn_config_test dlls/rasapi32/tests rasapi32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015262wine_fn_config_dll rasdlg enable_rasdlg implib
Austin Englishd8d77802011-05-21 20:17:07 -050015263wine_fn_config_dll regapi enable_regapi
Alexandre Julliard1858f432010-12-29 14:10:47 +010015264wine_fn_config_dll resutils enable_resutils implib
15265wine_fn_config_dll riched20 enable_riched20 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015266wine_fn_config_test dlls/riched20/tests riched20_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015267wine_fn_config_dll riched32 enable_riched32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015268wine_fn_config_test dlls/riched32/tests riched32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015269wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015270wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015271wine_fn_config_dll rsabase enable_rsabase
Alexandre Julliard1858f432010-12-29 14:10:47 +010015272wine_fn_config_dll rsaenh enable_rsaenh implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015273wine_fn_config_test dlls/rsaenh/tests rsaenh_test
Louis Lenders85b3f292010-08-27 11:45:11 +020015274wine_fn_config_dll rstrtmgr enable_rstrtmgr
Alexandre Julliard1858f432010-12-29 14:10:47 +010015275wine_fn_config_dll rtutils enable_rtutils implib
Louis Lenders1ae673f2010-05-11 22:59:22 +020015276wine_fn_config_dll samlib enable_samlib
Alexandre Julliard036fe882011-01-14 12:48:59 +010015277wine_fn_config_dll sane.ds enable_sane_ds po
Stefan Leichter81f3d682011-04-03 23:50:40 +020015278wine_fn_config_dll scarddlg enable_scarddlg
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015279wine_fn_config_dll sccbase enable_sccbase
15280wine_fn_config_dll schannel enable_schannel
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015281wine_fn_config_test dlls/schannel/tests schannel_test
Hans Leidekker8e74ee52011-11-09 15:03:53 +010015282wine_fn_config_dll scrrun enable_scrrun
Alexandre Julliard1858f432010-12-29 14:10:47 +010015283wine_fn_config_dll secur32 enable_secur32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015284wine_fn_config_test dlls/secur32/tests secur32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015285wine_fn_config_dll security enable_security
Alexandre Julliard1858f432010-12-29 14:10:47 +010015286wine_fn_config_dll sensapi enable_sensapi implib
Alexandre Julliardc994db72011-11-30 17:51:45 +010015287wine_fn_config_dll serialui enable_serialui implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015288wine_fn_config_test dlls/serialui/tests serialui_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015289wine_fn_config_dll setupapi enable_setupapi implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015290wine_fn_config_test dlls/setupapi/tests setupapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015291wine_fn_config_dll setupx.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015292wine_fn_config_dll sfc enable_sfc implib
15293wine_fn_config_dll sfc_os enable_sfc_os implib
Alexandre Julliardb31d2312011-01-06 17:42:05 +010015294wine_fn_config_dll shdoclc enable_shdoclc po
Jacek Cabanc685f8c2011-07-27 14:45:47 +020015295wine_fn_config_dll shdocvw enable_shdocvw implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015296wine_fn_config_test dlls/shdocvw/tests shdocvw_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015297wine_fn_config_dll shell.dll16 enable_win16
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015298wine_fn_config_dll shell32 enable_shell32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015299wine_fn_config_test dlls/shell32/tests shell32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015300wine_fn_config_dll shfolder enable_shfolder implib
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015301wine_fn_config_dll shlwapi enable_shlwapi implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015302wine_fn_config_test dlls/shlwapi/tests shlwapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015303wine_fn_config_dll slbcsp enable_slbcsp
Alexandre Julliard1858f432010-12-29 14:10:47 +010015304wine_fn_config_dll slc enable_slc implib
15305wine_fn_config_dll snmpapi enable_snmpapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015306wine_fn_config_test dlls/snmpapi/tests snmpapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015307wine_fn_config_dll softpub enable_softpub
15308wine_fn_config_dll sound.drv16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015309wine_fn_config_dll spoolss enable_spoolss implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015310wine_fn_config_test dlls/spoolss/tests spoolss_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015311wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15312wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
Alexandre Julliard1858f432010-12-29 14:10:47 +010015313wine_fn_config_dll sti enable_sti implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015314wine_fn_config_test dlls/sti/tests sti_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015315wine_fn_config_dll storage.dll16 enable_win16
15316wine_fn_config_dll stress.dll16 enable_win16
Aric Stewart96192102010-10-04 09:48:25 -050015317wine_fn_config_lib strmbase
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015318wine_fn_config_lib strmiids
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015319wine_fn_config_dll svrapi enable_svrapi
15320wine_fn_config_dll sxs enable_sxs
15321wine_fn_config_dll system.drv16 enable_win16
15322wine_fn_config_dll t2embed enable_t2embed
Alexandre Julliard1858f432010-12-29 14:10:47 +010015323wine_fn_config_dll tapi32 enable_tapi32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015324wine_fn_config_dll toolhelp.dll16 enable_win16
15325wine_fn_config_dll traffic enable_traffic
15326wine_fn_config_dll twain.dll16 enable_win16
15327wine_fn_config_dll twain_32 enable_twain_32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015328wine_fn_config_test dlls/twain_32/tests twain_32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015329wine_fn_config_dll typelib.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015330wine_fn_config_dll unicows enable_unicows implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015331wine_fn_config_dll updspapi enable_updspapi
Alexandre Julliard1858f432010-12-29 14:10:47 +010015332wine_fn_config_dll url enable_url implib
15333wine_fn_config_dll urlmon enable_urlmon implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015334wine_fn_config_test dlls/urlmon/tests urlmon_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015335wine_fn_config_dll usbd.sys enable_usbd_sys implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015336wine_fn_config_dll user.exe16 enable_win16
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015337wine_fn_config_dll user32 enable_user32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015338wine_fn_config_test dlls/user32/tests user32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015339wine_fn_config_dll userenv enable_userenv implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015340wine_fn_config_test dlls/userenv/tests userenv_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015341wine_fn_config_dll usp10 enable_usp10 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015342wine_fn_config_test dlls/usp10/tests usp10_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015343wine_fn_config_lib uuid
Alexandre Julliard1858f432010-12-29 14:10:47 +010015344wine_fn_config_dll uxtheme enable_uxtheme implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015345wine_fn_config_test dlls/uxtheme/tests uxtheme_test
Jacek Cabanc35aa012011-06-21 16:14:04 +020015346wine_fn_config_dll vbscript enable_vbscript
Jacek Caban68c6f582011-07-19 13:46:50 +020015347wine_fn_config_test dlls/vbscript/tests vbscript_test
Austin Englishdd2159c2011-04-08 18:03:47 +000015348wine_fn_config_dll vcomp enable_vcomp
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015349wine_fn_config_dll vdhcp.vxd enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015350wine_fn_config_dll vdmdbg enable_vdmdbg implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015351wine_fn_config_dll ver.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015352wine_fn_config_dll version enable_version implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015353wine_fn_config_test dlls/version/tests version_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015354wine_fn_config_dll vmm.vxd enable_win16
15355wine_fn_config_dll vnbt.vxd enable_win16
15356wine_fn_config_dll vnetbios.vxd enable_win16
15357wine_fn_config_dll vtdapi.vxd enable_win16
15358wine_fn_config_dll vwin32.vxd enable_win16
15359wine_fn_config_dll w32skrnl enable_win16
15360wine_fn_config_dll w32sys.dll16 enable_win16
15361wine_fn_config_dll wbemprox enable_wbemprox
Alexandre Julliard1858f432010-12-29 14:10:47 +010015362wine_fn_config_dll wer enable_wer implib
Detlef Riekenbergd8a5bc92010-10-26 11:37:17 +020015363wine_fn_config_test dlls/wer/tests wer_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015364wine_fn_config_dll wiaservc enable_wiaservc
15365wine_fn_config_dll win32s16.dll16 enable_win16
15366wine_fn_config_dll win87em.dll16 enable_win16
15367wine_fn_config_dll winaspi.dll16 enable_win16
15368wine_fn_config_dll windebug.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015369wine_fn_config_dll windowscodecs enable_windowscodecs implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015370wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015371wine_fn_config_dll winealsa.drv enable_winealsa_drv
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015372wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015373wine_fn_config_lib winecrt0
Alexandre Julliard1858f432010-12-29 14:10:47 +010015374wine_fn_config_dll wined3d enable_wined3d implib
Aric Stewart2914d652010-10-20 13:55:16 -050015375wine_fn_config_dll winegstreamer enable_winegstreamer
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015376wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15377wine_fn_config_dll winemapi enable_winemapi
15378wine_fn_config_dll winemp3.acm enable_winemp3_acm
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015379wine_fn_config_dll wineoss.drv enable_wineoss_drv
Alexandre Julliard6b5cfe2c2011-11-17 22:44:29 +010015380wine_fn_config_dll wineps.drv enable_wineps_drv install-lib,po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015381wine_fn_config_dll wineps16.drv16 enable_win16
Aric Stewarteefe6f62010-12-03 07:33:08 -060015382wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015383wine_fn_config_dll winequartz.drv enable_winequartz_drv
15384wine_fn_config_dll winex11.drv enable_winex11_drv
15385wine_fn_config_dll wing.dll16 enable_win16
15386wine_fn_config_dll wing32 enable_wing32
Alexandre Julliard1858f432010-12-29 14:10:47 +010015387wine_fn_config_dll winhttp enable_winhttp implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015388wine_fn_config_test dlls/winhttp/tests winhttp_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015389wine_fn_config_dll wininet enable_wininet implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015390wine_fn_config_test dlls/wininet/tests wininet_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015391wine_fn_config_dll winmm enable_winmm implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015392wine_fn_config_test dlls/winmm/tests winmm_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015393wine_fn_config_dll winnls.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015394wine_fn_config_dll winnls32 enable_winnls32 implib
15395wine_fn_config_dll winscard enable_winscard implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015396wine_fn_config_dll winsock.dll16 enable_win16
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015397wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015398wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
Austin English14067ac2011-05-21 20:14:37 -050015399wine_fn_config_dll winsta enable_winsta
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015400wine_fn_config_dll wintab.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015401wine_fn_config_dll wintab32 enable_wintab32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015402wine_fn_config_test dlls/wintab32/tests wintab32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015403wine_fn_config_dll wintrust enable_wintrust implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015404wine_fn_config_test dlls/wintrust/tests wintrust_test
Ričardas Barkauskas303079f2010-10-20 11:21:15 +030015405wine_fn_config_dll wlanapi enable_wlanapi
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015406wine_fn_config_dll wldap32 enable_wldap32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015407wine_fn_config_test dlls/wldap32/tests wldap32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015408wine_fn_config_dll wmi enable_wmi
15409wine_fn_config_dll wmiutils enable_wmiutils
Alexandre Julliard1858f432010-12-29 14:10:47 +010015410wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15411wine_fn_config_dll wow32 enable_win16 implib
15412wine_fn_config_dll ws2_32 enable_ws2_32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015413wine_fn_config_test dlls/ws2_32/tests ws2_32_test
Jacek Caban1c2f0662011-08-03 13:22:54 +020015414wine_fn_config_dll wshom.ocx enable_wshom_ocx
Jacek Caban13fef512011-09-20 11:55:52 +020015415wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015416wine_fn_config_dll wsock32 enable_wsock32 implib
15417wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015418wine_fn_config_dll wuapi enable_wuapi
15419wine_fn_config_dll wuaueng enable_wuaueng
Louis Lenders934d6762010-11-12 11:23:37 +010015420wine_fn_config_dll xapofx1_1 enable_xapofx1_1
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015421wine_fn_config_dll xinput1_1 enable_xinput1_1
15422wine_fn_config_dll xinput1_2 enable_xinput1_2
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010015423wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015424wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015425wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15426wine_fn_config_dll xmllite enable_xmllite
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015427wine_fn_config_test dlls/xmllite/tests xmllite_test
Hans Leidekker1edf2d42011-09-05 11:44:51 +020015428wine_fn_config_dll xolehlp enable_xolehlp
Austin English1c92d202012-01-11 11:13:08 -080015429wine_fn_config_dll xpsprint enable_xpsprint
Alexandre Julliard03642412010-03-20 15:24:22 +010015430wine_fn_config_makefile documentation enable_documentation
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020015431wine_fn_config_makefile fonts enable_fonts install-lib
15432wine_fn_config_makefile include enable_include install-dev
Alexandre Julliard03642412010-03-20 15:24:22 +010015433wine_fn_config_makefile libs/port enable_libs_port
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020015434wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
Alexandre Julliard03642412010-03-20 15:24:22 +010015435wine_fn_config_makefile libs/wpp enable_libs_wpp
Alexandre Julliard41107a92011-08-01 13:40:19 +020015436wine_fn_config_makefile loader enable_loader install-lib,manpage
Hans Leidekkerab789c62010-10-13 14:23:09 +020015437wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
Christian Costa7b41ffb2011-09-06 09:35:02 +020015438wine_fn_config_program attrib enable_attrib install,po
Alexandre Julliard30bdbed2011-02-02 22:44:47 +010015439wine_fn_config_program cabarc enable_cabarc install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015440wine_fn_config_program cacls enable_cacls install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015441wine_fn_config_program clock enable_clock install,po
15442wine_fn_config_program cmd enable_cmd install,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015443wine_fn_config_test programs/cmd/tests cmd.exe_test
Alexandre Julliardd394e042010-03-20 14:53:39 +010015444wine_fn_config_program control enable_control install
André Hentschel07ed25c2011-12-28 16:08:26 +010015445wine_fn_config_program cscript enable_cscript install
Andrew Nguyen4122cf22011-06-14 08:01:45 -050015446wine_fn_config_program dxdiag enable_dxdiag install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015447wine_fn_config_program eject enable_eject install
15448wine_fn_config_program expand enable_expand install
Jay Yangf2ac4862011-06-11 17:42:17 -040015449wine_fn_config_program explorer enable_explorer install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015450wine_fn_config_program extrac32 enable_extrac32 install
15451wine_fn_config_program hh enable_hh install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015452wine_fn_config_program hostname enable_hostname install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015453wine_fn_config_program icinfo enable_icinfo install
15454wine_fn_config_program iexplore enable_iexplore install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015455wine_fn_config_program ipconfig enable_ipconfig install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015456wine_fn_config_program lodctr enable_lodctr install
Hans Leidekkerf15aea22010-09-29 09:57:34 +020015457wine_fn_config_program mofcomp enable_mofcomp install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015458wine_fn_config_program mshta enable_mshta install
Alexandre Julliard41107a92011-08-01 13:40:19 +020015459wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015460wine_fn_config_program net enable_net install,po
Hans Leidekker8ad7d2e2010-12-06 13:19:41 +010015461wine_fn_config_program netsh enable_netsh install
Vincent Povirk4d3e6f42010-04-02 10:19:18 -050015462wine_fn_config_program ngen enable_ngen install
Alexandre Julliard41107a92011-08-01 13:40:19 +020015463wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015464wine_fn_config_program oleview enable_oleview install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015465wine_fn_config_program ping enable_ping install
Hans Leidekker2133b6c2011-01-31 15:26:17 +010015466wine_fn_config_program plugplay enable_plugplay install
Hans Leidekker89599612011-08-24 10:23:57 +020015467wine_fn_config_program presentationfontcache enable_presentationfontcache install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015468wine_fn_config_program progman enable_progman install,po
15469wine_fn_config_program reg enable_reg install,po
Hans Leidekker29a072e2011-09-05 11:44:17 +020015470wine_fn_config_program regasm enable_regasm install
Alexandre Julliard41107a92011-08-01 13:40:19 +020015471wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
Andrew Eikumf3c6c622010-07-30 16:02:34 -050015472wine_fn_config_test programs/regedit/tests regedit.exe_test
Hans Leidekkerab5fbeb2010-11-12 13:07:40 +010015473wine_fn_config_program regsvcs enable_regsvcs install
Alexandre Julliard41107a92011-08-01 13:40:19 +020015474wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
Alexandre Julliardd394e042010-03-20 14:53:39 +010015475wine_fn_config_program rpcss enable_rpcss install
Detlef Riekenbergdf898ea2010-07-18 19:15:57 +020015476wine_fn_config_program rundll.exe16 enable_win16 install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015477wine_fn_config_program rundll32 enable_rundll32 install
Hans Leidekker544da282010-05-03 12:56:58 +020015478wine_fn_config_program sc enable_sc install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015479wine_fn_config_program secedit enable_secedit install
Hans Leidekker1885c3d2010-11-18 12:09:11 +010015480wine_fn_config_program servicemodelreg enable_servicemodelreg install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015481wine_fn_config_program services enable_services install
15482wine_fn_config_program spoolsv enable_spoolsv install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015483wine_fn_config_program start enable_start install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015484wine_fn_config_program svchost enable_svchost install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015485wine_fn_config_program taskkill enable_taskkill install,po
15486wine_fn_config_program taskmgr enable_taskmgr install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015487wine_fn_config_program termsv enable_termsv install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015488wine_fn_config_program uninstaller enable_uninstaller install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015489wine_fn_config_program unlodctr enable_unlodctr install
André Hentschel31f0f092011-09-01 21:04:14 +020015490wine_fn_config_program view enable_view install,po
Alexandre Julliard393a1252011-10-31 13:29:58 +010015491wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015492wine_fn_config_program winebrowser enable_winebrowser install
Alexandre Julliard41107a92011-08-01 13:40:19 +020015493wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
15494wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
15495wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015496wine_fn_config_program winedevice enable_winedevice install
Alexandre Julliard41107a92011-08-01 13:40:19 +020015497wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015498wine_fn_config_program winemenubuilder enable_winemenubuilder install
Alexandre Julliard41107a92011-08-01 13:40:19 +020015499wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
Hans Leidekker13700722011-02-01 14:01:42 +010015500wine_fn_config_program winemsibuilder enable_winemsibuilder install
Alexandre Julliard41107a92011-08-01 13:40:19 +020015501wine_fn_config_program winepath enable_winepath install,installbin,manpage
Alexandre Julliardd394e042010-03-20 14:53:39 +010015502wine_fn_config_program winetest enable_winetest
15503wine_fn_config_program winevdm enable_win16 install
15504wine_fn_config_program winhelp.exe16 enable_win16 install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015505wine_fn_config_program winhlp32 enable_winhlp32 install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015506wine_fn_config_program winoldap.mod16 enable_win16 install
15507wine_fn_config_program winver enable_winver install
Louis Lenders4b281b22010-12-06 23:04:20 +010015508wine_fn_config_program wmic enable_wmic install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015509wine_fn_config_program wordpad enable_wordpad install,po
15510wine_fn_config_program write enable_write install,po
Jacek Caban16bad582010-07-27 15:51:18 +020015511wine_fn_config_program wscript enable_wscript install
Jacek Cabanf5eb15a2011-02-22 19:48:37 +010015512wine_fn_config_test programs/wscript/tests wscript.exe_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015513wine_fn_config_program xcopy enable_xcopy install,po
Alexandre Julliard41107a92011-08-01 13:40:19 +020015514wine_fn_config_makefile server enable_server install-lib,manpage
15515wine_fn_config_tool tools install-dev,install-lib,manpage
15516wine_fn_config_tool tools/widl install-dev,manpage
15517wine_fn_config_tool tools/winebuild install-dev,manpage
15518wine_fn_config_tool tools/winedump install-dev,manpage
15519wine_fn_config_tool tools/winegcc install-dev,manpage
15520wine_fn_config_tool tools/wmc install-dev,manpage
15521wine_fn_config_tool tools/wrc install-dev,manpage
Alexandre Julliard626f4252000-11-10 23:35:20 +000015522
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015523LINGUAS="\
Alexandre Julliardff71d912011-01-08 12:53:31 +010015524ar \
Alexandre Julliard4bca3342011-01-04 19:38:45 +010015525bg \
Alexandre Julliard39558f82011-01-13 17:24:15 +010015526ca \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015527cs \
15528da \
15529de \
Alexandre Julliardc9b52d22011-01-06 13:19:58 +010015530el \
15531en \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015532en_US \
15533eo \
15534es \
Alexandre Julliardff71d912011-01-08 12:53:31 +010015535fa \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015536fi \
15537fr \
15538he \
15539hi \
15540hu \
15541it \
15542ja \
15543ko \
15544lt \
15545ml \
15546nb_NO \
15547nl \
15548or \
15549pa \
15550pl \
15551pt_BR \
15552pt_PT \
Alexandre Julliard433e2402011-01-10 20:30:14 +010015553rm \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015554ro \
15555ru \
15556sk \
15557sl \
Alexandre Julliardc0b813f2011-01-07 12:11:41 +010015558sr_RS@cyrillic \
15559sr_RS@latin \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015560sv \
15561te \
15562th \
15563tr \
15564uk \
15565wa \
15566zh_CN \
15567zh_TW"
15568
15569
15570
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010015571ac_config_commands="$ac_config_commands Makefile"
15572
15573
Alexandre Julliard81b8ee82010-09-19 12:36:48 +020015574ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
Alexandre Julliard92b57312010-03-22 20:25:30 +010015575
15576
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015577
Alexandre Julliard5eee9202011-01-01 12:04:45 +010015578if test "x$enable_maintainer_mode" = xyes
15579then
15580 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15581 cd \$(srcdir) && autoconf --warnings=all
Alexandre Julliard5eee9202011-01-01 12:04:45 +010015582\$(srcdir)/include/config.h.in: include/stamp-h.in
15583\$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15584 cd \$(srcdir) && autoheader --warnings=all
Alexandre Julliard9159cfe2011-10-22 20:46:36 +020015585 @echo timestamp > \$@"
15586fi
Alexandre Julliard367fd222011-01-04 17:05:21 +010015587
Alexandre Julliard9159cfe2011-10-22 20:46:36 +020015588if test "x$with_gettextpo" = xyes
15589then
15590 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
15591 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "ALL_POT_FILES =$ALL_POT_FILES
15592\$(LINGUAS:%=po/%.po): \$(srcdir)/po/wine.pot
Jaka Kranjc08e74912012-02-21 22:51:28 +010015593 msgmerge --previous -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
Alexandre Julliard367fd222011-01-04 17:05:21 +010015594\$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15595 msgcat -o \$@ \$(ALL_POT_FILES)"
Alexandre Julliard5eee9202011-01-01 12:04:45 +010015596fi
15597
Alexandre Julliard268976b2011-10-22 15:23:14 +020015598if test "$MSGFMT" != false
15599then
Alexandre Julliardf4ec0972011-10-22 18:21:04 +020015600 PORCFLAGS="--po-dir=\$(top_builddir)/po"
15601
Alexandre Julliard268976b2011-10-22 15:23:14 +020015602 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: \$(ALL_MO_FILES)"
Alexandre Julliardf4ec0972011-10-22 18:21:04 +020015603else
15604 LINGUAS=
Alexandre Julliard268976b2011-10-22 15:23:14 +020015605fi
15606
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020015607if test "x$enable_tools" != xno
15608then
15609 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
15610clean:: __clean__
15611 \$(RM) tools/makedep\$(EXEEXT)"
15612fi
15613
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015614if test -n "$with_wine64"
15615then
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020015616wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15617fonts server tools:
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015618 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
Alexandre Julliardf3831cf2010-05-16 17:01:52 +020015619$with_wine64/loader/wine:
15620 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
Alexandre Julliard3c42b622010-12-27 14:37:57 +010015621$with_wine64/loader/wine-preloader:
15622 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015623clean::
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020015624 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015625fi
15626
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015627cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015628# This file is a shell script that caches the results of configure
15629# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015630# scripts and configure runs, see configure's option --config-cache.
15631# It is not useful on other systems. If it contains results you don't
15632# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015633#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015634# config.status only pays attention to the cache file if you give it
15635# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015636#
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015637# `ac_cv_env_foo' variables (set or unset) will be overridden when
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015638# loading this file, other *unset* `ac_cv_foo' will be assigned the
15639# following values.
15640
15641_ACEOF
15642
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000015643# The following way of writing the cache mishandles newlines in values,
15644# but we know of no workaround that is simple, portable, and efficient.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015645# So, we kill variables containing newlines.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015646# Ultrix sh set writes to stderr and can't be redirected directly,
15647# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015648(
15649 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15650 eval ac_val=\$$ac_var
15651 case $ac_val in #(
15652 *${as_nl}*)
15653 case $ac_var in #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015654 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015655$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015656 esac
15657 case $ac_var in #(
15658 _ | IFS | as_nl) ;; #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010015659 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015660 *) { eval $ac_var=; unset $ac_var;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015661 esac ;;
15662 esac
15663 done
15664
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015665 (set) 2>&1 |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015666 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15667 *${as_nl}ac_space=\ *)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015668 # `set' does not quote correctly, so add quotes: double-quote
15669 # substitution turns \\\\ into \\, and sed turns \\ into \.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015670 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015671 "s/'/'\\\\''/g;
15672 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015673 ;; #(
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015674 *)
15675 # `set' quotes correctly as required by POSIX, so do not add quotes.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015676 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015677 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015678 esac |
15679 sort
15680) |
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015681 sed '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015682 /^ac_cv_env_/b end
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015683 t clear
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015684 :clear
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015685 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15686 t end
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015687 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15688 :end' >>confcache
Jeremy White0ebeb532006-06-20 13:18:41 +020015689if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15690 if test -w "$cache_file"; then
Alexandre Julliard9797da42011-04-27 17:37:43 +020015691 if test "x$cache_file" != "x/dev/null"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015692 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015693$as_echo "$as_me: updating cache $cache_file" >&6;}
Alexandre Julliard9797da42011-04-27 17:37:43 +020015694 if test ! -f "$cache_file" || test -h "$cache_file"; then
15695 cat confcache >"$cache_file"
15696 else
15697 case $cache_file in #(
15698 */* | ?:*)
15699 mv -f confcache "$cache_file"$$ &&
15700 mv -f "$cache_file"$$ "$cache_file" ;; #(
15701 *)
15702 mv -f confcache "$cache_file" ;;
15703 esac
15704 fi
15705 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015706 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015707 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015708$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015709 fi
15710fi
15711rm -f confcache
15712
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015713test "x$prefix" = xNONE && prefix=$ac_default_prefix
15714# Let make expand exec_prefix.
15715test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15716
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015717DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015718
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015719ac_libobjs=
15720ac_ltlibobjs=
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015721U=
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015722for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15723 # 1. Remove the extension, and $U if already installed.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015724 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Alexandre Julliardabf50482008-10-31 12:56:53 +010015725 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015726 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15727 # will be set to the directory where LIBOBJS objects are built.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015728 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15729 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015730done
15731LIBOBJS=$ac_libobjs
15732
15733LTLIBOBJS=$ac_ltlibobjs
15734
15735
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015736
Alexandre Julliard9797da42011-04-27 17:37:43 +020015737: "${CONFIG_STATUS=./config.status}"
Alexandre Julliardabf50482008-10-31 12:56:53 +010015738ac_write_fail=0
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015739ac_clean_files_save=$ac_clean_files
15740ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015741{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015742$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015743as_write_fail=0
15744cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015745#! $SHELL
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015746# Generated by $as_me.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015747# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015748# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015749# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015750
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015751debug=false
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015752ac_cs_recheck=false
15753ac_cs_silent=false
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015754
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015755SHELL=\${CONFIG_SHELL-$SHELL}
15756export SHELL
15757_ASEOF
15758cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15759## -------------------- ##
15760## M4sh Initialization. ##
15761## -------------------- ##
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015762
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015763# Be more Bourne compatible
15764DUALCASE=1; export DUALCASE # for MKS sh
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015765if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015766 emulate sh
15767 NULLCMD=:
Alexandre Julliardabf50482008-10-31 12:56:53 +010015768 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015769 # is contrary to our usage. Disable this feature.
15770 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015771 setopt NO_GLOB_SUBST
15772else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015773 case `(set -o) 2>/dev/null` in #(
15774 *posix*) :
15775 set -o posix ;; #(
15776 *) :
15777 ;;
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015778esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000015779fi
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015780
15781
Alexandre Julliardabf50482008-10-31 12:56:53 +010015782as_nl='
15783'
15784export as_nl
15785# Printing a long string crashes Solaris 7 /usr/bin/printf.
15786as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15787as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15788as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015789# Prefer a ksh shell builtin over an external printf program on Solaris,
15790# but without wasting forks for bash or zsh.
15791if test -z "$BASH_VERSION$ZSH_VERSION" \
15792 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15793 as_echo='print -r --'
15794 as_echo_n='print -rn --'
15795elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015796 as_echo='printf %s\n'
15797 as_echo_n='printf %s'
15798else
15799 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15800 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15801 as_echo_n='/usr/ucb/echo -n'
15802 else
15803 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15804 as_echo_n_body='eval
15805 arg=$1;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015806 case $arg in #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010015807 *"$as_nl"*)
15808 expr "X$arg" : "X\\(.*\\)$as_nl";
15809 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15810 esac;
15811 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15812 '
15813 export as_echo_n_body
15814 as_echo_n='sh -c $as_echo_n_body as_echo'
15815 fi
15816 export as_echo_body
15817 as_echo='sh -c $as_echo_body as_echo'
15818fi
15819
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015820# The user is always right.
15821if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015822 PATH_SEPARATOR=:
15823 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15824 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15825 PATH_SEPARATOR=';'
15826 }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015827fi
15828
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015829
15830# IFS
15831# We need space, tab and new line, in precisely that order. Quoting is
15832# there to prevent editors from complaining about space-tab.
15833# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15834# splitting by setting IFS to empty value.)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015835IFS=" "" $as_nl"
15836
15837# Find who we are. Look in the path if we contain no directory separator.
Alexandre Julliard9797da42011-04-27 17:37:43 +020015838as_myself=
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015839case $0 in #((
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015840 *[\\/]* ) as_myself=$0 ;;
15841 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015842for as_dir in $PATH
15843do
15844 IFS=$as_save_IFS
15845 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015846 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15847 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015848IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015849
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015850 ;;
15851esac
15852# We did not find ourselves, most probably we were run as `sh COMMAND'
15853# in which case we are not to be found in the path.
15854if test "x$as_myself" = x; then
15855 as_myself=$0
15856fi
15857if test ! -f "$as_myself"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015858 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015859 exit 1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015860fi
15861
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015862# Unset variables that we do not need and which cause bugs (e.g. in
15863# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15864# suppresses any "Segmentation fault" message there. '((' could
15865# trigger a bug in pdksh 5.2.14.
15866for as_var in BASH_ENV ENV MAIL MAILPATH
15867do eval test x\${$as_var+set} = xset \
15868 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015869done
15870PS1='$ '
15871PS2='> '
15872PS4='+ '
15873
15874# NLS nuisances.
Alexandre Julliardabf50482008-10-31 12:56:53 +010015875LC_ALL=C
15876export LC_ALL
15877LANGUAGE=C
15878export LANGUAGE
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015879
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015880# CDPATH.
15881(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15882
15883
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015884# as_fn_error STATUS ERROR [LINENO LOG_FD]
15885# ----------------------------------------
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015886# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15887# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015888# script with STATUS, using 1 if that was 0.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015889as_fn_error ()
15890{
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015891 as_status=$1; test $as_status -eq 0 && as_status=1
15892 if test "$4"; then
15893 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15894 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015895 fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015896 $as_echo "$as_me: error: $2" >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015897 as_fn_exit $as_status
15898} # as_fn_error
15899
15900
15901# as_fn_set_status STATUS
15902# -----------------------
15903# Set $? to STATUS, without forking.
15904as_fn_set_status ()
15905{
15906 return $1
15907} # as_fn_set_status
15908
15909# as_fn_exit STATUS
15910# -----------------
15911# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15912as_fn_exit ()
15913{
15914 set +e
15915 as_fn_set_status $1
15916 exit $1
15917} # as_fn_exit
15918
15919# as_fn_unset VAR
15920# ---------------
15921# Portably unset VAR.
15922as_fn_unset ()
15923{
15924 { eval $1=; unset $1;}
15925}
15926as_unset=as_fn_unset
15927# as_fn_append VAR VALUE
15928# ----------------------
15929# Append the text in VALUE to the end of the definition contained in VAR. Take
15930# advantage of any shell optimizations that allow amortized linear growth over
15931# repeated appends, instead of the typical quadratic growth present in naive
15932# implementations.
15933if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15934 eval 'as_fn_append ()
15935 {
15936 eval $1+=\$2
15937 }'
15938else
15939 as_fn_append ()
15940 {
15941 eval $1=\$$1\$2
15942 }
15943fi # as_fn_append
15944
15945# as_fn_arith ARG...
15946# ------------------
15947# Perform arithmetic evaluation on the ARGs, and store the result in the
15948# global $as_val. Take advantage of shells that can avoid forks. The arguments
15949# must be portable across $(()) and expr.
15950if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15951 eval 'as_fn_arith ()
15952 {
15953 as_val=$(( $* ))
15954 }'
15955else
15956 as_fn_arith ()
15957 {
15958 as_val=`expr "$@" || test $? -eq 1`
15959 }
15960fi # as_fn_arith
15961
15962
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015963if expr a : '\(a\)' >/dev/null 2>&1 &&
15964 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15965 as_expr=expr
15966else
15967 as_expr=false
15968fi
15969
15970if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15971 as_basename=basename
15972else
15973 as_basename=false
15974fi
15975
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015976if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15977 as_dirname=dirname
15978else
15979 as_dirname=false
15980fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015981
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015982as_me=`$as_basename -- "$0" ||
15983$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15984 X"$0" : 'X\(//\)$' \| \
15985 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliardabf50482008-10-31 12:56:53 +010015986$as_echo X/"$0" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015987 sed '/^.*\/\([^/][^/]*\)\/*$/{
15988 s//\1/
15989 q
15990 }
15991 /^X\/\(\/\/\)$/{
15992 s//\1/
15993 q
15994 }
15995 /^X\/\(\/\).*/{
15996 s//\1/
15997 q
15998 }
15999 s/.*/./; q'`
16000
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016001# Avoid depending upon Character Ranges.
16002as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16003as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16004as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16005as_cr_digits='0123456789'
16006as_cr_alnum=$as_cr_Letters$as_cr_digits
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016007
16008ECHO_C= ECHO_N= ECHO_T=
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016009case `echo -n x` in #(((((
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016010-n*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016011 case `echo 'xy\c'` in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016012 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016013 xy) ECHO_C='\c';;
16014 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16015 ECHO_T=' ';;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016016 esac;;
16017*)
16018 ECHO_N='-n';;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016019esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016020
16021rm -f conf$$ conf$$.exe conf$$.file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016022if test -d conf$$.dir; then
16023 rm -f conf$$.dir/conf$$.file
16024else
16025 rm -f conf$$.dir
Alexandre Julliardabf50482008-10-31 12:56:53 +010016026 mkdir conf$$.dir 2>/dev/null
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016027fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010016028if (echo >conf$$.file) 2>/dev/null; then
16029 if ln -s conf$$.file conf$$ 2>/dev/null; then
16030 as_ln_s='ln -s'
16031 # ... but there are two gotchas:
16032 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16033 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16034 # In both cases, we have to default to `cp -p'.
16035 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16036 as_ln_s='cp -p'
16037 elif ln conf$$.file conf$$ 2>/dev/null; then
16038 as_ln_s=ln
16039 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016040 as_ln_s='cp -p'
Alexandre Julliardabf50482008-10-31 12:56:53 +010016041 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016042else
16043 as_ln_s='cp -p'
16044fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016045rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16046rmdir conf$$.dir 2>/dev/null
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016047
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016048
16049# as_fn_mkdir_p
16050# -------------
16051# Create "$as_dir" as a directory, including parents if necessary.
16052as_fn_mkdir_p ()
16053{
16054
16055 case $as_dir in #(
16056 -*) as_dir=./$as_dir;;
16057 esac
16058 test -d "$as_dir" || eval $as_mkdir_p || {
16059 as_dirs=
16060 while :; do
16061 case $as_dir in #(
16062 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16063 *) as_qdir=$as_dir;;
16064 esac
16065 as_dirs="'$as_qdir' $as_dirs"
16066 as_dir=`$as_dirname -- "$as_dir" ||
16067$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16068 X"$as_dir" : 'X\(//\)[^/]' \| \
16069 X"$as_dir" : 'X\(//\)$' \| \
16070 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16071$as_echo X"$as_dir" |
16072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16073 s//\1/
16074 q
16075 }
16076 /^X\(\/\/\)[^/].*/{
16077 s//\1/
16078 q
16079 }
16080 /^X\(\/\/\)$/{
16081 s//\1/
16082 q
16083 }
16084 /^X\(\/\).*/{
16085 s//\1/
16086 q
16087 }
16088 s/.*/./; q'`
16089 test -d "$as_dir" && break
16090 done
16091 test -z "$as_dirs" || eval "mkdir $as_dirs"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016092 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016093
16094
16095} # as_fn_mkdir_p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016096if mkdir -p . 2>/dev/null; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016097 as_mkdir_p='mkdir -p "$as_dir"'
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016098else
Alexandre Julliard875927f2004-01-02 01:55:29 +000016099 test -d ./-p && rmdir ./-p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016100 as_mkdir_p=false
16101fi
16102
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010016103if test -x / >/dev/null 2>&1; then
16104 as_test_x='test -x'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016105else
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010016106 if ls -dL / >/dev/null 2>&1; then
16107 as_ls_L_option=L
16108 else
16109 as_ls_L_option=
16110 fi
16111 as_test_x='
16112 eval sh -c '\''
16113 if test -d "$1"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010016114 test -d "$1/.";
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010016115 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016116 case $1 in #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010016117 -*)set "./$1";;
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010016118 esac;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016119 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010016120 ???[sx]*):;;*)false;;esac;fi
16121 '\'' sh
16122 '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016123fi
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010016124as_executable_p=$as_test_x
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016125
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016126# Sed expression to map a string onto a valid CPP name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000016127as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016128
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016129# Sed expression to map a string onto a valid variable name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000016130as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016131
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016132
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016133exec 6>&1
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016134## ----------------------------------- ##
16135## Main body of $CONFIG_STATUS script. ##
16136## ----------------------------------- ##
16137_ASEOF
16138test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016139
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016140cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16141# Save the log message, to keep $0 and so on meaningful, and to
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016142# report actual input values of CONFIG_FILES etc. instead of their
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016143# values after options handling.
16144ac_log="
Alexandre Julliard71ababe2012-03-07 17:11:48 +010016145This file was extended by Wine $as_me 1.4, which was
Alexandre Julliard9797da42011-04-27 17:37:43 +020016146generated by GNU Autoconf 2.68. Invocation command line was
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016147
16148 CONFIG_FILES = $CONFIG_FILES
16149 CONFIG_HEADERS = $CONFIG_HEADERS
16150 CONFIG_LINKS = $CONFIG_LINKS
16151 CONFIG_COMMANDS = $CONFIG_COMMANDS
16152 $ $0 $@
16153
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016154on `(hostname || uname -n) 2>/dev/null | sed 1q`
16155"
16156
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016157_ACEOF
16158
Alexandre Julliardabf50482008-10-31 12:56:53 +010016159case $ac_config_files in *"
16160"*) set x $ac_config_files; shift; ac_config_files=$*;;
16161esac
16162
16163case $ac_config_headers in *"
16164"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16165esac
16166
16167
16168cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016169# Files that config.status was made for.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016170config_files="$ac_config_files"
16171config_headers="$ac_config_headers"
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016172config_links="$ac_config_links"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016173config_commands="$ac_config_commands"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016174
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016175_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016176
Alexandre Julliardabf50482008-10-31 12:56:53 +010016177cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016178ac_cs_usage="\
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016179\`$as_me' instantiates files and other configuration actions
16180from templates according to the current configuration. Unless the files
16181and actions are specified as TAGs, all are instantiated by default.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016182
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016183Usage: $0 [OPTION]... [TAG]...
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016184
16185 -h, --help print this help, then exit
Alexandre Julliard78bd1942006-08-14 20:42:56 +020016186 -V, --version print version number and configuration settings, then exit
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016187 --config print configuration, then exit
Alexandre Julliardabf50482008-10-31 12:56:53 +010016188 -q, --quiet, --silent
16189 do not print progress messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016190 -d, --debug don't remove temporary files
16191 --recheck update $as_me by reconfiguring in the same conditions
Alexandre Julliardabf50482008-10-31 12:56:53 +010016192 --file=FILE[:TEMPLATE]
16193 instantiate the configuration file FILE
16194 --header=FILE[:TEMPLATE]
16195 instantiate the configuration header FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016196
16197Configuration files:
16198$config_files
16199
16200Configuration headers:
16201$config_headers
16202
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016203Configuration links:
16204$config_links
16205
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016206Configuration commands:
16207$config_commands
16208
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016209Report bugs to <wine-devel@winehq.org>.
16210Wine home page: <http://www.winehq.org>."
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000016211
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016212_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016213cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016214ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016215ac_cs_version="\\
Alexandre Julliard71ababe2012-03-07 17:11:48 +010016216Wine config.status 1.4
Alexandre Julliard9797da42011-04-27 17:37:43 +020016217configured by $0, generated by GNU Autoconf 2.68,
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016218 with options \\"\$ac_cs_config\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016219
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016220Copyright (C) 2010 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016221This config.status script is free software; the Free Software Foundation
16222gives unlimited permission to copy, distribute and modify it."
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016223
16224ac_pwd='$ac_pwd'
16225srcdir='$srcdir'
16226INSTALL='$INSTALL'
Alexandre Julliardabf50482008-10-31 12:56:53 +010016227test -n "\$AWK" || AWK=awk
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016228_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016229
Alexandre Julliardabf50482008-10-31 12:56:53 +010016230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16231# The default lists apply if the user does not specify any file.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016232ac_need_defaults=:
16233while test $# != 0
16234do
16235 case $1 in
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016236 --*=?*)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016237 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16238 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016239 ac_shift=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016240 ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016241 --*=)
16242 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16243 ac_optarg=
16244 ac_shift=:
16245 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016246 *)
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016247 ac_option=$1
16248 ac_optarg=$2
16249 ac_shift=shift
16250 ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016251 esac
16252
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016253 case $ac_option in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016254 # Handling of the options.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016255 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16256 ac_cs_recheck=: ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016257 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Alexandre Julliardabf50482008-10-31 12:56:53 +010016258 $as_echo "$ac_cs_version"; exit ;;
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016259 --config | --confi | --conf | --con | --co | --c )
16260 $as_echo "$ac_cs_config"; exit ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016261 --debug | --debu | --deb | --de | --d | -d )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016262 debug=: ;;
16263 --file | --fil | --fi | --f )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016264 $ac_shift
Alexandre Julliardabf50482008-10-31 12:56:53 +010016265 case $ac_optarg in
16266 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016267 '') as_fn_error $? "missing file argument" ;;
Alexandre Julliardabf50482008-10-31 12:56:53 +010016268 esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016269 as_fn_append CONFIG_FILES " '$ac_optarg'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016270 ac_need_defaults=false;;
16271 --header | --heade | --head | --hea )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016272 $ac_shift
Alexandre Julliardabf50482008-10-31 12:56:53 +010016273 case $ac_optarg in
16274 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16275 esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016276 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016277 ac_need_defaults=false;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016278 --he | --h)
16279 # Conflict between --help and --header
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016280 as_fn_error $? "ambiguous option: \`$1'
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016281Try \`$0 --help' for more information.";;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016282 --help | --hel | -h )
Alexandre Julliardabf50482008-10-31 12:56:53 +010016283 $as_echo "$ac_cs_usage"; exit ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016284 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16285 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16286 ac_cs_silent=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016287
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016288 # This is an error.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016289 -*) as_fn_error $? "unrecognized option: \`$1'
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016290Try \`$0 --help' for more information." ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016291
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016292 *) as_fn_append ac_config_targets " $1"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016293 ac_need_defaults=false ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016294
16295 esac
16296 shift
16297done
16298
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016299ac_configure_extra_args=
16300
16301if $ac_cs_silent; then
16302 exec 6>/dev/null
16303 ac_configure_extra_args="$ac_configure_extra_args --silent"
16304fi
16305
16306_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016307cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016308if \$ac_cs_recheck; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010016309 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16310 shift
16311 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16312 CONFIG_SHELL='$SHELL'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016313 export CONFIG_SHELL
Alexandre Julliardabf50482008-10-31 12:56:53 +010016314 exec "\$@"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016315fi
16316
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016317_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016318cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016319exec 5>>config.log
16320{
16321 echo
16322 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16323## Running $as_me. ##
16324_ASBOX
Alexandre Julliardabf50482008-10-31 12:56:53 +010016325 $as_echo "$ac_log"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016326} >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016327
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016328_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016329cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010016330#
16331# INIT-COMMANDS
16332#
16333wine_fn_output_makefile ()
16334{
16335 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16336$ALL_MAKEFILE_DEPENDS
16337_WINE_EOF
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016338 as_fn_error $? "could not create Makefile" "$LINENO" 5
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010016339}
16340
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016341_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016342
Alexandre Julliardabf50482008-10-31 12:56:53 +010016343cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016344
16345# Handling of arguments.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016346for ac_config_target in $ac_config_targets
16347do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016348 case $ac_config_target in
16349 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
Alexandre Julliardc4704c22006-09-22 09:33:00 +020016350 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
Alexandre Julliard40977bf2010-11-11 12:24:46 +010016351 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
Alexandre Julliarda6320522010-02-03 13:14:03 +010016352 "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 +010016353 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16354 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16355 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16356 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
Alexandre Julliard268976b2011-10-22 15:23:14 +020016357 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
Alexandre Julliard321d3882010-05-06 20:51:53 +020016358 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016359 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
Alexandre Julliard4422d222011-05-10 13:26:28 +020016360 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
Huw Davies4cffb2d2011-04-01 15:27:48 +010016361 "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020016362 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16363 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
Alexandre Julliard1c60e3b2006-09-12 16:10:51 +020016364 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
Alexandre Julliardb8a2e3b2006-11-16 14:49:25 +010016365 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016366 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16367 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16368 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
Alexandre Julliardcb1fc8f2010-02-10 11:18:58 +010016369 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016370 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16371 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016372 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010016373 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
Alexandre Julliard81b8ee82010-09-19 12:36:48 +020016374 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016375
Alexandre Julliard9797da42011-04-27 17:37:43 +020016376 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016377 esac
16378done
16379
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016380
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016381# If the user did not use the arguments to specify the items to instantiate,
16382# then the envvar interface is used. Set only those that are not.
16383# We use the long form for the default assignment because of an extremely
16384# bizarre bug on SunOS 4.1.3.
16385if $ac_need_defaults; then
16386 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16387 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016388 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016389 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16390fi
16391
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016392# Have a temporary directory for convenience. Make it in the build tree
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016393# simply because there is no reason against having it here, and in addition,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016394# creating and moving files from /tmp can sometimes cause problems.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016395# Hook for its removal unless debugging.
16396# Note that there is a small window in which the directory will not be cleaned:
16397# after its creation but before its name has been assigned to `$tmp'.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016398$debug ||
16399{
Alexandre Julliard9797da42011-04-27 17:37:43 +020016400 tmp= ac_tmp=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016401 trap 'exit_status=$?
Alexandre Julliard9797da42011-04-27 17:37:43 +020016402 : "${ac_tmp:=$tmp}"
16403 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016404' 0
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016405 trap 'as_fn_exit 1' 1 2 13 15
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016406}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016407# Create a (secure) tmp directory for tmp files.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016408
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016409{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016410 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Alexandre Julliard9797da42011-04-27 17:37:43 +020016411 test -d "$tmp"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016412} ||
16413{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016414 tmp=./conf$$-$RANDOM
16415 (umask 077 && mkdir "$tmp")
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016416} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Alexandre Julliard9797da42011-04-27 17:37:43 +020016417ac_tmp=$tmp
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016418
Alexandre Julliardabf50482008-10-31 12:56:53 +010016419# Set up the scripts for CONFIG_FILES section.
16420# No need to generate them if there are no CONFIG_FILES.
16421# This happens for instance with `./config.status config.h'.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016422if test -n "$CONFIG_FILES"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016423
Alexandre Julliardabf50482008-10-31 12:56:53 +010016424if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16425 ac_cs_awk_getline=:
16426 ac_cs_awk_pipe_init=
16427 ac_cs_awk_read_file='
16428 while ((getline aline < (F[key])) > 0)
16429 print(aline)
16430 close(F[key])'
16431 ac_cs_awk_pipe_fini=
16432else
16433 ac_cs_awk_getline=false
16434 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16435 ac_cs_awk_read_file='
16436 print "|#_!!_#|"
16437 print "cat " F[key] " &&"
16438 '$ac_cs_awk_pipe_init
16439 # The final `:' finishes the AND list.
16440 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16441fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016442ac_cr=`echo X | tr X '\015'`
16443# On cygwin, bash can eat \r inside `` if the user requested igncr.
16444# But we know of no other shell where ac_cr would be empty at this
16445# point, so we can use a bashism as a fallback.
16446if test "x$ac_cr" = x; then
16447 eval ac_cr=\$\'\\r\'
16448fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010016449ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16450if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016451 ac_cs_awk_cr='\\r'
Alexandre Julliardabf50482008-10-31 12:56:53 +010016452else
16453 ac_cs_awk_cr=$ac_cr
16454fi
16455
Alexandre Julliard9797da42011-04-27 17:37:43 +020016456echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016457_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016458
Alexandre Julliardabf50482008-10-31 12:56:53 +010016459# Create commands to substitute file output variables.
16460{
16461 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
Alexandre Julliard9797da42011-04-27 17:37:43 +020016462 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
Alexandre Julliardabf50482008-10-31 12:56:53 +010016463 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16464 echo "_ACAWK" &&
16465 echo "_ACEOF"
16466} >conf$$files.sh &&
16467. ./conf$$files.sh ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016468 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016469rm -f conf$$files.sh
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016470
Alexandre Julliardabf50482008-10-31 12:56:53 +010016471{
16472 echo "cat >conf$$subs.awk <<_ACEOF" &&
16473 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16474 echo "_ACEOF"
16475} >conf$$subs.sh ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016476 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16477ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016478ac_delim='%!_!# '
16479for ac_last_try in false false false false false :; do
Alexandre Julliardabf50482008-10-31 12:56:53 +010016480 . ./conf$$subs.sh ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016481 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016482
Alexandre Julliardabf50482008-10-31 12:56:53 +010016483 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16484 if test $ac_delim_n = $ac_delim_num; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016485 break
16486 elif $ac_last_try; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016487 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016488 else
16489 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016490 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016491done
Alexandre Julliardabf50482008-10-31 12:56:53 +010016492rm -f conf$$subs.sh
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016493
Alexandre Julliardabf50482008-10-31 12:56:53 +010016494cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliard9797da42011-04-27 17:37:43 +020016495cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016496_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016497sed -n '
16498h
16499s/^/S["/; s/!.*/"]=/
16500p
16501g
16502s/^[^!]*!//
16503:repl
16504t repl
16505s/'"$ac_delim"'$//
16506t delim
16507:nl
16508h
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016509s/\(.\{148\}\)..*/\1/
Alexandre Julliardabf50482008-10-31 12:56:53 +010016510t more1
16511s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16512p
16513n
16514b repl
16515:more1
16516s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16517p
16518g
16519s/.\{148\}//
16520t nl
16521:delim
16522h
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016523s/\(.\{148\}\)..*/\1/
Alexandre Julliardabf50482008-10-31 12:56:53 +010016524t more2
16525s/["\\]/\\&/g; s/^/"/; s/$/"/
16526p
16527b
16528:more2
16529s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16530p
16531g
16532s/.\{148\}//
16533t delim
16534' <conf$$subs.awk | sed '
16535/^[^""]/{
16536 N
16537 s/\n//
16538}
16539' >>$CONFIG_STATUS || ac_write_fail=1
16540rm -f conf$$subs.awk
16541cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16542_ACAWK
Alexandre Julliard9797da42011-04-27 17:37:43 +020016543cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Alexandre Julliardabf50482008-10-31 12:56:53 +010016544 for (key in S) S_is_set[key] = 1
16545 FS = ""
16546 \$ac_cs_awk_pipe_init
16547}
16548{
16549 line = $ 0
16550 nfields = split(line, field, "@")
16551 substed = 0
16552 len = length(field[1])
16553 for (i = 2; i < nfields; i++) {
16554 key = field[i]
16555 keylen = length(key)
16556 if (S_is_set[key]) {
16557 value = S[key]
16558 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16559 len += length(value) + length(field[++i])
16560 substed = 1
16561 } else
16562 len += 1 + keylen
16563 }
16564 if (nfields == 3 && !substed) {
16565 key = field[2]
16566 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16567 \$ac_cs_awk_read_file
16568 next
16569 }
16570 }
16571 print line
16572}
16573\$ac_cs_awk_pipe_fini
16574_ACAWK
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016575_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16577if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16578 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16579else
16580 cat
Alexandre Julliard9797da42011-04-27 17:37:43 +020016581fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016582 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016583_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016584
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016585# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16586# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016587# trailing colons and then remove the whole line if VPATH becomes empty
16588# (actually we leave an empty line to preserve line numbers).
16589if test "x$srcdir" = x.; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016590 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16591h
16592s///
16593s/^/:/
16594s/[ ]*$/:/
16595s/:\$(srcdir):/:/g
16596s/:\${srcdir}:/:/g
16597s/:@srcdir@:/:/g
16598s/^:*//
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016599s/:*$//
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016600x
16601s/\(=[ ]*\).*/\1/
16602G
16603s/\n//
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016604s/^[^=]*=[ ]*$//
16605}'
16606fi
16607
Alexandre Julliardabf50482008-10-31 12:56:53 +010016608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016609fi # test -n "$CONFIG_FILES"
16610
Alexandre Julliardabf50482008-10-31 12:56:53 +010016611# Set up the scripts for CONFIG_HEADERS section.
16612# No need to generate them if there are no CONFIG_HEADERS.
16613# This happens for instance with `./config.status Makefile'.
16614if test -n "$CONFIG_HEADERS"; then
Alexandre Julliard9797da42011-04-27 17:37:43 +020016615cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Alexandre Julliardabf50482008-10-31 12:56:53 +010016616BEGIN {
16617_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016618
Alexandre Julliardabf50482008-10-31 12:56:53 +010016619# Transform confdefs.h into an awk script `defines.awk', embedded as
16620# here-document in config.status, that substitutes the proper values into
16621# config.h.in to produce config.h.
16622
16623# Create a delimiter string that does not exist in confdefs.h, to ease
16624# handling of long lines.
16625ac_delim='%!_!# '
16626for ac_last_try in false false :; do
Alexandre Julliard9797da42011-04-27 17:37:43 +020016627 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16628 if test -z "$ac_tt"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010016629 break
16630 elif $ac_last_try; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016631 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016632 else
16633 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16634 fi
16635done
16636
16637# For the awk script, D is an array of macro values keyed by name,
16638# likewise P contains macro parameters if any. Preserve backslash
16639# newline sequences.
16640
16641ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16642sed -n '
16643s/.\{148\}/&'"$ac_delim"'/g
16644t rset
16645:rset
16646s/^[ ]*#[ ]*define[ ][ ]*/ /
16647t def
16648d
16649:def
16650s/\\$//
16651t bsnl
16652s/["\\]/\\&/g
16653s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16654D["\1"]=" \3"/p
16655s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16656d
16657:bsnl
16658s/["\\]/\\&/g
16659s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16660D["\1"]=" \3\\\\\\n"\\/p
16661t cont
16662s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16663t cont
16664d
16665:cont
16666n
16667s/.\{148\}/&'"$ac_delim"'/g
16668t clear
16669:clear
16670s/\\$//
16671t bsnlc
16672s/["\\]/\\&/g; s/^/"/; s/$/"/p
16673d
16674:bsnlc
16675s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16676b cont
16677' <confdefs.h | sed '
16678s/'"$ac_delim"'/"\\\
16679"/g' >>$CONFIG_STATUS || ac_write_fail=1
16680
16681cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16682 for (key in D) D_is_set[key] = 1
16683 FS = ""
16684}
16685/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16686 line = \$ 0
16687 split(line, arg, " ")
16688 if (arg[1] == "#") {
16689 defundef = arg[2]
16690 mac1 = arg[3]
16691 } else {
16692 defundef = substr(arg[1], 2)
16693 mac1 = arg[2]
16694 }
16695 split(mac1, mac2, "(") #)
16696 macro = mac2[1]
16697 prefix = substr(line, 1, index(line, defundef) - 1)
16698 if (D_is_set[macro]) {
16699 # Preserve the white space surrounding the "#".
16700 print prefix "define", macro P[macro] D[macro]
16701 next
16702 } else {
16703 # Replace #undef with comments. This is necessary, for example,
16704 # in the case of _POSIX_SOURCE, which is predefined and required
16705 # on some systems where configure will not decide to define it.
16706 if (defundef == "undef") {
16707 print "/*", prefix defundef, macro, "*/"
16708 next
16709 }
16710 }
16711}
16712{ print }
16713_ACAWK
16714_ACEOF
16715cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016716 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016717fi # test -n "$CONFIG_HEADERS"
16718
16719
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016720eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
Alexandre Julliardabf50482008-10-31 12:56:53 +010016721shift
16722for ac_tag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016723do
16724 case $ac_tag in
16725 :[FHLC]) ac_mode=$ac_tag; continue;;
16726 esac
16727 case $ac_mode$ac_tag in
16728 :[FHL]*:*);;
Alexandre Julliard9797da42011-04-27 17:37:43 +020016729 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016730 :[FH]-) ac_tag=-:-;;
16731 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16732 esac
16733 ac_save_IFS=$IFS
16734 IFS=:
16735 set x $ac_tag
16736 IFS=$ac_save_IFS
16737 shift
16738 ac_file=$1
16739 shift
16740
16741 case $ac_mode in
16742 :L) ac_source=$1;;
16743 :[FH])
16744 ac_file_inputs=
16745 for ac_f
16746 do
16747 case $ac_f in
Alexandre Julliard9797da42011-04-27 17:37:43 +020016748 -) ac_f="$ac_tmp/stdin";;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016749 *) # Look for the file first in the build tree, then in the source tree
16750 # (if the path is not absolute). The absolute path cannot be DOS-style,
16751 # because $ac_f cannot contain `:'.
16752 test -f "$ac_f" ||
16753 case $ac_f in
16754 [\\/$]*) false;;
16755 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16756 esac ||
Alexandre Julliard9797da42011-04-27 17:37:43 +020016757 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016758 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +010016759 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016760 as_fn_append ac_file_inputs " '$ac_f'"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016761 done
16762
16763 # Let's still pretend it is `configure' which instantiates (i.e., don't
16764 # use $as_me), people would be surprised to read:
16765 # /* config.h. Generated by config.status. */
Alexandre Julliardabf50482008-10-31 12:56:53 +010016766 configure_input='Generated from '`
16767 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16768 `' by configure.'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016769 if test x"$ac_file" != x-; then
16770 configure_input="$ac_file. $configure_input"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016771 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016772$as_echo "$as_me: creating $ac_file" >&6;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016773 fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010016774 # Neutralize special characters interpreted by sed in replacement strings.
16775 case $configure_input in #(
16776 *\&* | *\|* | *\\* )
16777 ac_sed_conf_input=`$as_echo "$configure_input" |
16778 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16779 *) ac_sed_conf_input=$configure_input;;
16780 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016781
16782 case $ac_tag in
Alexandre Julliard9797da42011-04-27 17:37:43 +020016783 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16784 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016785 esac
16786 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016787 esac
16788
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016789 ac_dir=`$as_dirname -- "$ac_file" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016790$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000016791 X"$ac_file" : 'X\(//\)[^/]' \| \
16792 X"$ac_file" : 'X\(//\)$' \| \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016793 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliardabf50482008-10-31 12:56:53 +010016794$as_echo X"$ac_file" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16796 s//\1/
16797 q
16798 }
16799 /^X\(\/\/\)[^/].*/{
16800 s//\1/
16801 q
16802 }
16803 /^X\(\/\/\)$/{
16804 s//\1/
16805 q
16806 }
16807 /^X\(\/\).*/{
16808 s//\1/
16809 q
16810 }
16811 s/.*/./; q'`
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016812 as_dir="$ac_dir"; as_fn_mkdir_p
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016813 ac_builddir=.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016814
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016815case "$ac_dir" in
16816.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16817*)
Alexandre Julliardabf50482008-10-31 12:56:53 +010016818 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016819 # A ".." for each directory in $ac_dir_suffix.
Alexandre Julliardabf50482008-10-31 12:56:53 +010016820 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016821 case $ac_top_builddir_sub in
16822 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16823 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16824 esac ;;
16825esac
16826ac_abs_top_builddir=$ac_pwd
16827ac_abs_builddir=$ac_pwd$ac_dir_suffix
16828# for backward compatibility:
16829ac_top_builddir=$ac_top_build_prefix
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016830
16831case $srcdir in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016832 .) # We are building in place.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016833 ac_srcdir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016834 ac_top_srcdir=$ac_top_builddir_sub
16835 ac_abs_top_srcdir=$ac_pwd ;;
16836 [\\/]* | ?:[\\/]* ) # Absolute name.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016837 ac_srcdir=$srcdir$ac_dir_suffix;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016838 ac_top_srcdir=$srcdir
16839 ac_abs_top_srcdir=$srcdir ;;
16840 *) # Relative name.
16841 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16842 ac_top_srcdir=$ac_top_build_prefix$srcdir
16843 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016844esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016845ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Alexandre Julliard875927f2004-01-02 01:55:29 +000016846
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016847
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016848 case $ac_mode in
16849 :F)
16850 #
16851 # CONFIG_FILE
16852 #
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016853
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016854 case $INSTALL in
16855 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016856 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000016857 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016858_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016859
Alexandre Julliardabf50482008-10-31 12:56:53 +010016860cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016861# If the template does not know about datarootdir, expand it.
16862# FIXME: This hack should be removed a few years after 2.60.
Jeremy White0ebeb532006-06-20 13:18:41 +020016863ac_datarootdir_hack=; ac_datarootdir_seen=
Alexandre Julliardabf50482008-10-31 12:56:53 +010016864ac_sed_dataroot='
16865/datarootdir/ {
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016866 p
16867 q
16868}
16869/@datadir@/p
16870/@docdir@/p
16871/@infodir@/p
16872/@localedir@/p
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016873/@mandir@/p'
Alexandre Julliardabf50482008-10-31 12:56:53 +010016874case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Jeremy White0ebeb532006-06-20 13:18:41 +020016875*datarootdir*) ac_datarootdir_seen=yes;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016876*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016877 { $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 +010016878$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016879_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016880cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016881 ac_datarootdir_hack='
16882 s&@datadir@&$datadir&g
16883 s&@docdir@&$docdir&g
16884 s&@infodir@&$infodir&g
16885 s&@localedir@&$localedir&g
16886 s&@mandir@&$mandir&g
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016887 s&\\\${datarootdir}&$datarootdir&g' ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016888esac
16889_ACEOF
16890
16891# Neutralize VPATH when `$srcdir' = `.'.
16892# Shell code in configure.ac might set extrasub.
16893# FIXME: do we really want to maintain this feature?
Alexandre Julliardabf50482008-10-31 12:56:53 +010016894cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16895ac_sed_extra="$ac_vpsub
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016896$extrasub
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016897_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016898cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016899:t
16900/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Alexandre Julliardabf50482008-10-31 12:56:53 +010016901s|@configure_input@|$ac_sed_conf_input|;t t
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016902s&@top_builddir@&$ac_top_builddir_sub&;t t
Alexandre Julliardabf50482008-10-31 12:56:53 +010016903s&@top_build_prefix@&$ac_top_build_prefix&;t t
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016904s&@srcdir@&$ac_srcdir&;t t
16905s&@abs_srcdir@&$ac_abs_srcdir&;t t
16906s&@top_srcdir@&$ac_top_srcdir&;t t
16907s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16908s&@builddir@&$ac_builddir&;t t
16909s&@abs_builddir@&$ac_abs_builddir&;t t
16910s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16911s&@INSTALL@&$ac_INSTALL&;t t
16912$ac_datarootdir_hack
Alexandre Julliardabf50482008-10-31 12:56:53 +010016913"
16914eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16915if $ac_cs_awk_getline; then
Alexandre Julliard9797da42011-04-27 17:37:43 +020016916 $AWK -f "$ac_tmp/subs.awk"
Alexandre Julliardabf50482008-10-31 12:56:53 +010016917else
Alexandre Julliard9797da42011-04-27 17:37:43 +020016918 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16919fi \
16920 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016921
Jeremy White0ebeb532006-06-20 13:18:41 +020016922test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Alexandre Julliard9797da42011-04-27 17:37:43 +020016923 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16924 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16925 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016927which seems to be undefined. Please make sure it is defined" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016928$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016929which seems to be undefined. Please make sure it is defined" >&2;}
Jeremy White0ebeb532006-06-20 13:18:41 +020016930
Alexandre Julliard9797da42011-04-27 17:37:43 +020016931 rm -f "$ac_tmp/stdin"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016932 case $ac_file in
Alexandre Julliard9797da42011-04-27 17:37:43 +020016933 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16934 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Alexandre Julliardabf50482008-10-31 12:56:53 +010016935 esac \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016936 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016937 ;;
16938 :H)
16939 #
16940 # CONFIG_HEADER
16941 #
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016942 if test x"$ac_file" != x-; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010016943 {
16944 $as_echo "/* $configure_input */" \
Alexandre Julliard9797da42011-04-27 17:37:43 +020016945 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16946 } >"$ac_tmp/config.h" \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016947 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Alexandre Julliard9797da42011-04-27 17:37:43 +020016948 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016949 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016950$as_echo "$as_me: $ac_file is unchanged" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016951 else
Alexandre Julliardabf50482008-10-31 12:56:53 +010016952 rm -f "$ac_file"
Alexandre Julliard9797da42011-04-27 17:37:43 +020016953 mv "$ac_tmp/config.h" "$ac_file" \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016954 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016955 fi
16956 else
Alexandre Julliardabf50482008-10-31 12:56:53 +010016957 $as_echo "/* $configure_input */" \
Alexandre Julliard9797da42011-04-27 17:37:43 +020016958 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016959 || as_fn_error $? "could not create -" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016960 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016961 ;;
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016962 :L)
16963 #
16964 # CONFIG_LINK
16965 #
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016966
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016967 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16968 :
16969 else
16970 # Prefer the file from the source tree if names are identical.
16971 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16972 ac_source=$srcdir/$ac_source
16973 fi
16974
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16976$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16977
16978 if test ! -r "$ac_source"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016979 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016980 fi
16981 rm -f "$ac_file"
16982
16983 # Try a relative symlink, then a hard link, then a copy.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016984 case $ac_source in
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016985 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16986 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16987 esac
16988 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16989 ln "$ac_source" "$ac_file" 2>/dev/null ||
16990 cp -p "$ac_source" "$ac_file" ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016991 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016992 fi
16993 ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016994 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016995$as_echo "$as_me: executing $ac_file commands" >&6;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016996 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016997 esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016998
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016999
17000 case $ac_file$ac_mode in
Alexandre Julliardc4704c22006-09-22 09:33:00 +020017001 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
Huw Davies4cffb2d2011-04-01 15:27:48 +010017002 "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
17003$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 +010017004 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
17005$as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
17006 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
17007$as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
17008 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
17009$as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
17010 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
17011$as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
17012 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
17013$as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
17014 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
17015$as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010017016 "Makefile":C) wine_fn_output_makefile Makefile ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017017
17018 esac
17019done # for ac_tag
17020
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000017021
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020017022as_fn_exit 0
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017023_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017024ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017025
Alexandre Julliardabf50482008-10-31 12:56:53 +010017026test $ac_write_fail = 0 ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020017027 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010017028
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017029
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017030# configure is writing to config.log, and then calls config.status.
17031# config.status does its own redirection, appending to config.log.
17032# Unfortunately, on DOS this fails, as config.log is still kept open
17033# by configure, so config.status won't be able to write to it; its
17034# output is simply discarded. So we exec the FD to /dev/null,
17035# effectively closing config.log, so it can be properly (re)opened and
17036# appended to by config.status. When coming back to configure, we
17037# need to make the FD available again.
17038if test "$no_create" != yes; then
17039 ac_cs_success=:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017040 ac_config_status_args=
17041 test "$silent" = yes &&
17042 ac_config_status_args="$ac_config_status_args --quiet"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017043 exec 5>/dev/null
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017044 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017045 exec 5>>config.log
17046 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17047 # would make configure fail if this is the last instruction.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020017048 $ac_cs_success || as_fn_exit 1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017049fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010017050if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020017051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010017052$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17053fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017054
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017055
Alexandre Julliarde3bd1112006-09-21 11:14:38 +020017056if test "$no_create" = "yes"
17057then
17058 exit 0
17059fi
17060
Alexandre Julliardf9dec942007-07-10 15:14:15 +020017061ac_save_IFS="$IFS"
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010017062if test "x$wine_notices != "x; then
17063 echo >&6
Rafał Mużyło4736c992008-10-20 21:43:21 +020017064 IFS="|"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020017065 for msg in $wine_notices; do
Rafał Mużyło4736c992008-10-20 21:43:21 +020017066 IFS="$ac_save_IFS"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020017067 if test -n "$msg"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020017068 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010017069$as_echo "$as_me: $msg" >&6;}
Alexandre Julliardf9dec942007-07-10 15:14:15 +020017070 fi
17071 done
17072fi
Rafał Mużyło4736c992008-10-20 21:43:21 +020017073IFS="|"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020017074for msg in $wine_warnings; do
Rafał Mużyło4736c992008-10-20 21:43:21 +020017075 IFS="$ac_save_IFS"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020017076 if test -n "$msg"; then
17077 echo >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020017078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010017079$as_echo "$as_me: WARNING: $msg" >&2;}
Detlef Riekenberge84a3822006-08-21 05:28:17 +020017080 fi
Alexandre Julliardf9dec942007-07-10 15:14:15 +020017081done
17082IFS="$ac_save_IFS"
Francois Gouget99d026f2005-03-19 17:08:18 +000017083
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010017084echo "
Alexandre Julliard64362ac2010-02-23 13:33:52 +010017085$as_me: Finished. Do '${ac_make}' to compile Wine.
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010017086" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017087