blob: 2a26441a07b0a94edc8aea0757128ae899fc3525 [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 Julliardd35cb812012-06-22 20:16:32 +02003# Generated by GNU Autoconf 2.69 for Wine 1.5.7.
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#
André Hentschelcecf1052012-06-02 18:58:39 +02008# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01009#
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010017# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020 emulate sh
21 NULLCMD=:
Alexandre Julliardabf50482008-10-31 12:56:53 +010022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Alexandre Julliard11af04e2002-10-10 03:48:04 +000023 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025 setopt NO_GLOB_SUBST
26else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010032esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000033fi
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010034
35
Alexandre Julliardabf50482008-10-31 12:56:53 +010036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020043# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010050 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020060 case $arg in #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010061 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
Alexandre Julliarddaa28862002-04-11 21:54:01 +000074# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010076 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000081fi
82
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020089IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
Alexandre Julliard9797da42011-04-27 17:37:43 +020092as_myself=
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020093case $0 in #((
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliarddaa28862002-04-11 21:54:01 +000096for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200102IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000103
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +0100112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200113 exit 1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200114fi
115
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
Alexandre Julliardabf50482008-10-31 12:56:53 +0100129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200133
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
André Hentschelcecf1052012-06-02 18:58:39 +0200137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
André Hentschelcecf1052012-06-02 18:58:39 +0200195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204else
205 as_have_required=no
206fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227fi
228fi
229 done;;
230 esac
231 as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
André Hentschelcecf1052012-06-02 18:58:39 +0200241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200260fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: wine-devel@winehq.org about your system, including any
271$0: error possibly output before this message. Then install
272$0: a modern shell, or manually run the script under such a
273$0: shell if you do have one."
274 fi
275 exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293 { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302 return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310 set +e
311 as_fn_set_status $1
312 exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200359
360
361} # as_fn_mkdir_p
André Hentschelcecf1052012-06-02 18:58:39 +0200362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368 test -f "$1" && test -x "$1"
369} # as_fn_executable_p
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403fi # as_fn_arith
404
405
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200410# script with STATUS, using 1 if that was 0.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200411as_fn_error ()
412{
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200417 fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200418 $as_echo "$as_me: error: $2" >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200419 as_fn_exit $as_status
420} # as_fn_error
421
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200422if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425else
426 as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431else
432 as_basename=false
433fi
434
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437else
438 as_dirname=false
439fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200440
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliardabf50482008-10-31 12:56:53 +0100445$as_echo X/"$0" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200466
467
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000477 sed '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000482 N
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000485 t loop
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200486 s/-\n.*//
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000487 ' >$as_me.lineno &&
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200488 chmod +x "$as_me.lineno" ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200489 { $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 +0000490
André Hentschelcecf1052012-06-02 18:58:39 +0200491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000499 # Exit status is that of the last command.
500 exit
501}
502
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200503ECHO_C= ECHO_N= ECHO_T=
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200504case `echo -n x` in #(((((
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200505-n*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200506 case `echo 'xy\c'` in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200511 esac;;
512*)
513 ECHO_N='-n';;
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000514esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000515
516rm -f conf$$ conf$$.exe conf$$.file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200517if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519else
520 rm -f conf$$.dir
Alexandre Julliardabf50482008-10-31 12:56:53 +0100521 mkdir conf$$.dir 2>/dev/null
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200522fi
Alexandre Julliardabf50482008-10-31 12:56:53 +0100523if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
André Hentschelcecf1052012-06-02 18:58:39 +0200529 # In both cases, we have to default to `cp -pR'.
Alexandre Julliardabf50482008-10-31 12:56:53 +0100530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
André Hentschelcecf1052012-06-02 18:58:39 +0200531 as_ln_s='cp -pR'
Alexandre Julliardabf50482008-10-31 12:56:53 +0100532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
André Hentschelcecf1052012-06-02 18:58:39 +0200535 as_ln_s='cp -pR'
Alexandre Julliardabf50482008-10-31 12:56:53 +0100536 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000537else
André Hentschelcecf1052012-06-02 18:58:39 +0200538 as_ln_s='cp -pR'
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000539fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000542
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000543if mkdir -p . 2>/dev/null; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200544 as_mkdir_p='mkdir -p "$as_dir"'
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000545else
Alexandre Julliard875927f2004-01-02 01:55:29 +0000546 test -d ./-p && rmdir ./-p
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000547 as_mkdir_p=false
548fi
549
André Hentschelcecf1052012-06-02 18:58:39 +0200550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000552
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000553# Sed expression to map a string onto a valid CPP name.
Alexandre Julliard875927f2004-01-02 01:55:29 +0000554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000555
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000556# Sed expression to map a string onto a valid variable name.
Alexandre Julliard875927f2004-01-02 01:55:29 +0000557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000558
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000559
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +0100560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000562
563# Name of the host.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000568#
569# Initializations.
570#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000571ac_default_prefix=/usr/local
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200572ac_clean_files=
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000573ac_config_libobj_dir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200574LIBOBJS=
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000575cross_compiling=no
576subdirs=
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000577MFLAGS=
578MAKEFLAGS=
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000579
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000580# Identity of this package.
581PACKAGE_NAME='Wine'
582PACKAGE_TARNAME='wine'
Alexandre Julliardd35cb812012-06-22 20:16:32 +0200583PACKAGE_VERSION='1.5.7'
584PACKAGE_STRING='Wine 1.5.7'
Alexandre Julliard875927f2004-01-02 01:55:29 +0000585PACKAGE_BUGREPORT='wine-devel@winehq.org'
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200586PACKAGE_URL='http://www.winehq.org'
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000587
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000588ac_unique_file="server/atom.c"
589# Factoring default headers for most tests.
590ac_includes_default="\
591#include <stdio.h>
Phil Krylovf0ca5862006-11-05 23:03:46 +0300592#ifdef HAVE_SYS_TYPES_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000593# include <sys/types.h>
594#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300595#ifdef HAVE_SYS_STAT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000596# include <sys/stat.h>
597#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300598#ifdef STDC_HEADERS
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000599# include <stdlib.h>
600# include <stddef.h>
601#else
Phil Krylovf0ca5862006-11-05 23:03:46 +0300602# ifdef HAVE_STDLIB_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000603# include <stdlib.h>
604# endif
605#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300606#ifdef HAVE_STRING_H
607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000608# include <memory.h>
609# endif
610# include <string.h>
611#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300612#ifdef HAVE_STRINGS_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000613# include <strings.h>
614#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300615#ifdef HAVE_INTTYPES_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000616# include <inttypes.h>
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200617#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300618#ifdef HAVE_STDINT_H
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200619# include <stdint.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000620#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300621#ifdef HAVE_UNISTD_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000622# include <unistd.h>
623#endif"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000624
Alexandre Julliardabf50482008-10-31 12:56:53 +0100625ac_subst_vars='LTLIBOBJS
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200626LIBOBJS
Alexandre Julliardf4ec0972011-10-22 18:21:04 +0200627PORCFLAGS
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +0100628LINGUAS
Alexandre Julliard9b99cd12011-05-24 11:11:22 +0200629ALL_TEST_RESOURCES
Alexandre Julliardabf50482008-10-31 12:56:53 +0100630LDAPLIBS
631LIBPOLL
632LIBDL
633EXTRA_BINARIES
Alexandre Julliard3e6eab32009-08-13 19:54:31 +0200634MAIN_BINARY
Alexandre Julliardabf50482008-10-31 12:56:53 +0100635SOCKETLIBS
636CRTLIBS
Alexandre Julliardb860c4a2009-09-01 22:36:13 +0200637TOOLSEXT
Alexandre Julliardabf50482008-10-31 12:56:53 +0100638LDPATH
Alexandre Julliard6c142382010-04-11 12:47:30 +0200639UNWINDFLAGS
Alexandre Julliardabf50482008-10-31 12:56:53 +0100640BUILTINFLAG
641EXTRACFLAGS
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +0100642LIBKSTAT
Maarten Lankhorstd4354992009-12-09 11:52:09 +0100643LIBOPENAL
Aric Stewartdb71d7c2009-08-19 09:37:48 -0500644LIBMPG123
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +0200645PNGINCL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100646FONTCONFIGINCL
647CUPSINCL
Alexandre Julliardf60a0f52011-05-02 20:06:49 +0200648OSS4INCL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100649ALSALIBS
Aric Stewart2914d652010-10-20 13:55:16 -0500650GSTREAMER_INCL
651GSTREAMER_LIBS
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +0100652LIBGETTEXTPO
Jacek Caban11ca05f2009-05-29 23:35:13 +0200653ZLIB
Alexandre Julliardabf50482008-10-31 12:56:53 +0100654FREETYPEINCL
655FREETYPELIBS
656ft_devel
657LCMSLIBS
658RESOLVLIBS
659GPHOTO2INCL
660GPHOTO2LIBS
661gphoto2port_devel
662gphoto2_devel
663SANEINCL
664sane_devel
665GNUTLSINCL
666HALINCL
Alexandre Julliarde45d1242011-12-20 10:36:35 +0100667DBUSINCL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100668XSLTINCL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100669XML2INCL
670XML2LIBS
Alexandre Julliard40664c02009-02-11 20:40:58 +0100671X_EXTRA_LIBS
672X_LIBS
673X_PRE_LIBS
674X_CFLAGS
675XMKMF
Alexandre Julliardc891f6b2009-02-11 20:41:50 +0100676LIBPTHREAD
Alexandre Julliard1f254212010-01-23 20:26:49 +0100677CROSSTARGET
Alexandre Julliardabf50482008-10-31 12:56:53 +0100678CROSSCC
Alexandre Julliard7d2e7722010-07-26 12:13:47 +0200679CROSSTEST_DISABLE
Alexandre Julliardb5d824b2010-08-24 13:42:10 +0200680PRELINK
Alexandre Julliardabf50482008-10-31 12:56:53 +0100681CARBONLIB
Alexandre Julliardfa3ddd82011-01-14 15:59:51 +0100682QUICKTIMELIB
Alexandre Julliardfac67412010-12-03 14:16:55 +0100683LIBOPENCL
Maarten Lankhorstd4354992009-12-09 11:52:09 +0100684FRAMEWORK_OPENAL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100685COREAUDIO
Alexandre Julliard45db3482011-03-14 14:25:45 +0100686SECURITYLIB
Alexandre Julliardabf50482008-10-31 12:56:53 +0100687DISKARBITRATIONLIB
688LDEXECFLAGS
Ken Thomasescd454fd2012-03-14 16:49:47 -0500689CORESERVICESLIB
Ken Thomases21137cd2011-01-05 07:25:23 -0600690APPLICATIONSERVICESLIB
Alexandre Julliardabf50482008-10-31 12:56:53 +0100691IOKITLIB
692COREFOUNDATIONLIB
Alexandre Julliardabf50482008-10-31 12:56:53 +0100693DLLWRAP
694DLLTOOL
695LDD
696LDRPATH_LOCAL
697LDRPATH_INSTALL
698IMPLIBEXT
699LIBEXT
700LDDLLFLAGS
701LDSHARED
702DLLFLAGS
703DLLEXT
Alexandre Julliard40664c02009-02-11 20:40:58 +0100704CPP
Alexandre Julliardabf50482008-10-31 12:56:53 +0100705OPENGL_LIBS
706XLIB
Andrew Nguyen2eda9c72010-05-25 22:20:14 -0500707MAINTAINER_MODE
Alexandre Julliard268976b2011-10-22 15:23:14 +0200708MSGFMT
Alexandre Julliardabf50482008-10-31 12:56:53 +0100709ICOTOOL
Joel Holdsworth476a2be2010-04-05 11:15:03 +0100710CONVERT
Alexandre Julliardabf50482008-10-31 12:56:53 +0100711RSVG
712PKG_CONFIG
713FONTFORGE
714LINTFLAGS
715LINT
716INSTALL_DATA
717INSTALL_SCRIPT
718INSTALL_PROGRAM
719LDCONFIG
720EGREP
721GREP
Alexandre Julliardabf50482008-10-31 12:56:53 +0100722LN_S
Alexandre Julliardabf50482008-10-31 12:56:53 +0100723RANLIB
724ARFLAGS
725ac_ct_AR
726AR
Alexandre Julliardabf50482008-10-31 12:56:53 +0100727BISON
728FLEX
Alexandre Julliardabf50482008-10-31 12:56:53 +0100729TOOLSDIR
Alexandre Julliard90647772009-08-13 19:48:42 +0200730WOW64_DISABLE
Alexandre Julliard07f77c42009-01-15 21:17:51 +0100731TARGETFLAGS
Alexandre Julliardabf50482008-10-31 12:56:53 +0100732CPPBIN
733ac_ct_CXX
734CXXFLAGS
735CXX
736OBJEXT
737EXEEXT
738ac_ct_CC
739CPPFLAGS
740LDFLAGS
741CFLAGS
742CC
743SET_MAKE
Alexandre Julliardabf50482008-10-31 12:56:53 +0100744host_os
745host_vendor
746host_cpu
747host
748build_os
749build_vendor
750build_cpu
751build
Alexandre Julliardabf50482008-10-31 12:56:53 +0100752target_alias
753host_alias
754build_alias
755LIBS
756ECHO_T
757ECHO_N
758ECHO_C
759DEFS
760mandir
761localedir
762libdir
763psdir
764pdfdir
765dvidir
766htmldir
767infodir
768docdir
769oldincludedir
770includedir
771localstatedir
772sharedstatedir
773sysconfdir
774datadir
775datarootdir
776libexecdir
777sbindir
778bindir
779program_transform_name
780prefix
781exec_prefix
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200782PACKAGE_URL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100783PACKAGE_BUGREPORT
784PACKAGE_STRING
785PACKAGE_VERSION
786PACKAGE_TARNAME
787PACKAGE_NAME
788PATH_SEPARATOR
789SHELL'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200790ac_subst_files='MAKE_RULES
Alexandre Julliardcb1fc8f2010-02-10 11:18:58 +0100791MAKE_TEST_RULES
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200792MAKE_DLL_RULES
793MAKE_IMPLIB_RULES
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200794MAKE_PROG_RULES'
Alexandre Julliardabf50482008-10-31 12:56:53 +0100795ac_user_opts='
796enable_option_checking
797enable_win16
798enable_win64
Alexandre Julliard35078f42008-11-21 10:16:12 +0100799enable_tests
Alexandre Julliardabf50482008-10-31 12:56:53 +0100800enable_maintainer_mode
801with_alsa
Alexandre Julliardabf50482008-10-31 12:56:53 +0100802with_capi
803with_cms
804with_coreaudio
805with_cups
806with_curses
Alexandre Julliarde45d1242011-12-20 10:36:35 +0100807with_dbus
Alexandre Julliardabf50482008-10-31 12:56:53 +0100808with_fontconfig
809with_freetype
Alexandre Julliard268976b2011-10-22 15:23:14 +0200810with_gettext
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +0100811with_gettextpo
Alexandre Julliardabf50482008-10-31 12:56:53 +0100812with_gphoto
813with_glu
814with_gnutls
Alexandre Julliard6ce32e02009-08-19 15:53:04 +0200815with_gsm
Aric Stewart2914d652010-10-20 13:55:16 -0500816with_gstreamer
Alexandre Julliardabf50482008-10-31 12:56:53 +0100817with_hal
Alexandre Julliardabf50482008-10-31 12:56:53 +0100818with_jpeg
819with_ldap
Aric Stewartdb71d7c2009-08-19 09:37:48 -0500820with_mpg123
Chris Robinson862965f2009-08-25 03:26:35 -0700821with_openal
Peter Urbanec65c84d72010-12-02 23:41:48 +1100822with_opencl
Alexandre Julliardabf50482008-10-31 12:56:53 +0100823with_opengl
824with_openssl
825with_oss
826with_png
Alexandre Julliardc891f6b2009-02-11 20:41:50 +0100827with_pthread
Alexandre Julliardabf50482008-10-31 12:56:53 +0100828with_sane
Vincent Povirk73cd5692010-03-08 17:07:29 -0600829with_tiff
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +0100830with_v4l
Alexandre Julliardabf50482008-10-31 12:56:53 +0100831with_xcomposite
832with_xcursor
833with_xinerama
834with_xinput
Alexandre Julliard77e05ce2011-04-13 18:51:50 +0200835with_xinput2
Alexandre Julliardabf50482008-10-31 12:56:53 +0100836with_xml
837with_xrandr
838with_xrender
839with_xshape
Alexandre Julliardabf50482008-10-31 12:56:53 +0100840with_xslt
841with_xxf86vm
Alexandre Julliardba6a41a2011-02-18 13:07:27 +0100842with_zlib
Alexandre Julliardabf50482008-10-31 12:56:53 +0100843with_wine_tools
Alexandre Julliard39a75d32009-08-13 19:45:31 +0200844with_wine64
Eric Pouechbc56c4e2009-08-25 19:33:28 +0200845enable_largefile
Alexandre Julliardabf50482008-10-31 12:56:53 +0100846with_x
847'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200848 ac_precious_vars='build_alias
849host_alias
850target_alias
851CC
852CFLAGS
853LDFLAGS
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100854LIBS
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200855CPPFLAGS
856CXX
857CXXFLAGS
858CCC
Alexandre Julliard40664c02009-02-11 20:40:58 +0100859CPP
860XMKMF'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200861
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000862
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000863# Initialize some variables set by options.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000864ac_init_help=
865ac_init_version=false
Alexandre Julliardabf50482008-10-31 12:56:53 +0100866ac_unrecognized_opts=
867ac_unrecognized_sep=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000868# The variables have the same names as the options, with
869# dashes changed to underlines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000870cache_file=/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000871exec_prefix=NONE
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000872no_create=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000873no_recursion=
874prefix=NONE
875program_prefix=NONE
876program_suffix=NONE
877program_transform_name=s,x,x,
878silent=
879site=
880srcdir=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000881verbose=
882x_includes=NONE
883x_libraries=NONE
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000884
885# Installation directory options.
886# These are left unexpanded so users can "make install exec_prefix=/foo"
887# and all the variables that are supposed to be based on exec_prefix
888# by default will actually change.
889# Use braces instead of parens because sh, perl, etc. also accept them.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200890# (The list follows the same order as the GNU Coding Standards.)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000891bindir='${exec_prefix}/bin'
892sbindir='${exec_prefix}/sbin'
893libexecdir='${exec_prefix}/libexec'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200894datarootdir='${prefix}/share'
895datadir='${datarootdir}'
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000896sysconfdir='${prefix}/etc'
897sharedstatedir='${prefix}/com'
898localstatedir='${prefix}/var'
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000899includedir='${prefix}/include'
900oldincludedir='/usr/include'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200901docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
902infodir='${datarootdir}/info'
903htmldir='${docdir}'
904dvidir='${docdir}'
905pdfdir='${docdir}'
906psdir='${docdir}'
907libdir='${exec_prefix}/lib'
908localedir='${datarootdir}/locale'
909mandir='${datarootdir}/man'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000910
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000911ac_prev=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200912ac_dashdash=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000913for ac_option
914do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000915 # If the previous option needs an argument, assign it.
916 if test -n "$ac_prev"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200917 eval $ac_prev=\$ac_option
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000918 ac_prev=
919 continue
920 fi
921
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200922 case $ac_option in
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200923 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924 *=) ac_optarg= ;;
925 *) ac_optarg=yes ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200926 esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000927
928 # Accept the important Cygnus configure options, so we can diagnose typos.
929
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200930 case $ac_dashdash$ac_option in
931 --)
932 ac_dashdash=yes ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000933
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000934 -bindir | --bindir | --bindi | --bind | --bin | --bi)
935 ac_prev=bindir ;;
936 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000937 bindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000938
939 -build | --build | --buil | --bui | --bu)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000940 ac_prev=build_alias ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000941 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000942 build_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000943
944 -cache-file | --cache-file | --cache-fil | --cache-fi \
945 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
946 ac_prev=cache_file ;;
947 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
948 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000949 cache_file=$ac_optarg ;;
950
951 --config-cache | -C)
952 cache_file=config.cache ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000953
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200954 -datadir | --datadir | --datadi | --datad)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000955 ac_prev=datadir ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200956 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000957 datadir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000958
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200959 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
960 | --dataroo | --dataro | --datar)
961 ac_prev=datarootdir ;;
962 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
963 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
964 datarootdir=$ac_optarg ;;
965
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000966 -disable-* | --disable-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +0100967 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000968 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +0100969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200970 as_fn_error $? "invalid feature name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +0100971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
974 *"
975"enable_$ac_useropt"
976"*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
979 esac
980 eval enable_$ac_useropt=no ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200981
982 -docdir | --docdir | --docdi | --doc | --do)
983 ac_prev=docdir ;;
984 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
985 docdir=$ac_optarg ;;
986
987 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
988 ac_prev=dvidir ;;
989 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
990 dvidir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000991
992 -enable-* | --enable-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +0100993 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000994 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +0100995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200996 as_fn_error $? "invalid feature name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +0100997 ac_useropt_orig=$ac_useropt
998 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1000 *"
1001"enable_$ac_useropt"
1002"*) ;;
1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1004 ac_unrecognized_sep=', ';;
1005 esac
1006 eval enable_$ac_useropt=\$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001007
1008 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1009 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1010 | --exec | --exe | --ex)
1011 ac_prev=exec_prefix ;;
1012 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1013 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1014 | --exec=* | --exe=* | --ex=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001015 exec_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001016
1017 -gas | --gas | --ga | --g)
1018 # Obsolete; use --with-gas.
1019 with_gas=yes ;;
1020
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001021 -help | --help | --hel | --he | -h)
1022 ac_init_help=long ;;
1023 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1024 ac_init_help=recursive ;;
1025 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1026 ac_init_help=short ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001027
1028 -host | --host | --hos | --ho)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001029 ac_prev=host_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001030 -host=* | --host=* | --hos=* | --ho=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001031 host_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001032
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001033 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1034 ac_prev=htmldir ;;
1035 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1036 | --ht=*)
1037 htmldir=$ac_optarg ;;
1038
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001039 -includedir | --includedir | --includedi | --included | --include \
1040 | --includ | --inclu | --incl | --inc)
1041 ac_prev=includedir ;;
1042 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1043 | --includ=* | --inclu=* | --incl=* | --inc=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001044 includedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001045
1046 -infodir | --infodir | --infodi | --infod | --info | --inf)
1047 ac_prev=infodir ;;
1048 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001049 infodir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001050
1051 -libdir | --libdir | --libdi | --libd)
1052 ac_prev=libdir ;;
1053 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001054 libdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001055
1056 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1057 | --libexe | --libex | --libe)
1058 ac_prev=libexecdir ;;
1059 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1060 | --libexe=* | --libex=* | --libe=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001061 libexecdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001062
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001063 -localedir | --localedir | --localedi | --localed | --locale)
1064 ac_prev=localedir ;;
1065 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1066 localedir=$ac_optarg ;;
1067
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001068 -localstatedir | --localstatedir | --localstatedi | --localstated \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001069 | --localstate | --localstat | --localsta | --localst | --locals)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001070 ac_prev=localstatedir ;;
1071 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001072 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001073 localstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001074
1075 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1076 ac_prev=mandir ;;
1077 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001078 mandir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001079
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001080 -nfp | --nfp | --nf)
1081 # Obsolete; use --without-fp.
1082 with_fp=no ;;
1083
1084 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001085 | --no-cr | --no-c | -n)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001086 no_create=yes ;;
1087
1088 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1089 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1090 no_recursion=yes ;;
1091
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001092 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1093 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1094 | --oldin | --oldi | --old | --ol | --o)
1095 ac_prev=oldincludedir ;;
1096 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1097 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1098 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001099 oldincludedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001100
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001101 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1102 ac_prev=prefix ;;
1103 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001104 prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001105
1106 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1107 | --program-pre | --program-pr | --program-p)
1108 ac_prev=program_prefix ;;
1109 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1110 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001111 program_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001112
1113 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1114 | --program-suf | --program-su | --program-s)
1115 ac_prev=program_suffix ;;
1116 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1117 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001118 program_suffix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001119
1120 -program-transform-name | --program-transform-name \
1121 | --program-transform-nam | --program-transform-na \
1122 | --program-transform-n | --program-transform- \
1123 | --program-transform | --program-transfor \
1124 | --program-transfo | --program-transf \
1125 | --program-trans | --program-tran \
1126 | --progr-tra | --program-tr | --program-t)
1127 ac_prev=program_transform_name ;;
1128 -program-transform-name=* | --program-transform-name=* \
1129 | --program-transform-nam=* | --program-transform-na=* \
1130 | --program-transform-n=* | --program-transform-=* \
1131 | --program-transform=* | --program-transfor=* \
1132 | --program-transfo=* | --program-transf=* \
1133 | --program-trans=* | --program-tran=* \
1134 | --progr-tra=* | --program-tr=* | --program-t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001135 program_transform_name=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001136
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001137 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1138 ac_prev=pdfdir ;;
1139 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1140 pdfdir=$ac_optarg ;;
1141
1142 -psdir | --psdir | --psdi | --psd | --ps)
1143 ac_prev=psdir ;;
1144 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1145 psdir=$ac_optarg ;;
1146
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1148 | -silent | --silent | --silen | --sile | --sil)
1149 silent=yes ;;
1150
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001151 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1152 ac_prev=sbindir ;;
1153 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1154 | --sbi=* | --sb=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001155 sbindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001156
1157 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1158 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1159 | --sharedst | --shareds | --shared | --share | --shar \
1160 | --sha | --sh)
1161 ac_prev=sharedstatedir ;;
1162 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1163 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1164 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1165 | --sha=* | --sh=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001166 sharedstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001167
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001168 -site | --site | --sit)
1169 ac_prev=site ;;
1170 -site=* | --site=* | --sit=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001171 site=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001172
1173 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1174 ac_prev=srcdir ;;
1175 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001176 srcdir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001177
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001178 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1179 | --syscon | --sysco | --sysc | --sys | --sy)
1180 ac_prev=sysconfdir ;;
1181 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1182 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001183 sysconfdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001184
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001185 -target | --target | --targe | --targ | --tar | --ta | --t)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001186 ac_prev=target_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001187 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001188 target_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001189
1190 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1191 verbose=yes ;;
1192
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001193 -version | --version | --versio | --versi | --vers | -V)
1194 ac_init_version=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001195
1196 -with-* | --with-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001197 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001198 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001200 as_fn_error $? "invalid package name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +01001201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1204 *"
1205"with_$ac_useropt"
1206"*) ;;
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1209 esac
1210 eval with_$ac_useropt=\$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001211
1212 -without-* | --without-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001213 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001214 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001216 as_fn_error $? "invalid package name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +01001217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1220 *"
1221"with_$ac_useropt"
1222"*) ;;
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1225 esac
1226 eval with_$ac_useropt=no ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001227
1228 --x)
1229 # Obsolete; use --with-x.
1230 with_x=yes ;;
1231
1232 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1233 | --x-incl | --x-inc | --x-in | --x-i)
1234 ac_prev=x_includes ;;
1235 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1236 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001237 x_includes=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001238
1239 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1240 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1241 ac_prev=x_libraries ;;
1242 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1243 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001244 x_libraries=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001245
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001246 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1247Try \`$0 --help' for more information"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001248 ;;
1249
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001250 *=*)
1251 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252 # Reject names that are not valid shell variable names.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001253 case $ac_envvar in #(
1254 '' | [0-9]* | *[!_$as_cr_alnum]* )
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001255 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001256 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001257 eval $ac_envvar=\$ac_optarg
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001258 export $ac_envvar ;;
1259
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001260 *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001261 # FIXME: should be removed in autoconf 3.0.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001262 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001263 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Alexandre Julliardabf50482008-10-31 12:56:53 +01001264 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Alexandre Julliard9797da42011-04-27 17:37:43 +02001265 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001266 ;;
1267
1268 esac
1269done
1270
1271if test -n "$ac_prev"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001272 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001273 as_fn_error $? "missing argument to $ac_option"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001274fi
1275
Alexandre Julliardabf50482008-10-31 12:56:53 +01001276if test -n "$ac_unrecognized_opts"; then
1277 case $enable_option_checking in
1278 no) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001279 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Alexandre Julliardabf50482008-10-31 12:56:53 +01001280 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1281 esac
1282fi
1283
1284# Check all directory arguments for consistency.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001285for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1286 datadir sysconfdir sharedstatedir localstatedir includedir \
1287 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1288 libdir localedir mandir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001289do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001290 eval ac_val=\$$ac_var
Alexandre Julliardabf50482008-10-31 12:56:53 +01001291 # Remove trailing slashes.
1292 case $ac_val in
1293 */ )
1294 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1295 eval $ac_var=\$ac_val;;
1296 esac
1297 # Be sure to have absolute directory names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001298 case $ac_val in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001299 [\\/$]* | ?:[\\/]* ) continue;;
1300 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001301 esac
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001302 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001303done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001304
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001305# There might be people who depend on the old broken behavior: `$host'
1306# used to hold the argument of --host etc.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001307# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001308build=$build_alias
1309host=$host_alias
1310target=$target_alias
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001311
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001312# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001313if test "x$host_alias" != x; then
1314 if test "x$build_alias" = x; then
1315 cross_compiling=maybe
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001316 elif test "x$build_alias" != "x$host_alias"; then
1317 cross_compiling=yes
1318 fi
1319fi
1320
1321ac_tool_prefix=
1322test -n "$host_alias" && ac_tool_prefix=$host_alias-
1323
1324test "$silent" = yes && exec 6>/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001325
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001326
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001327ac_pwd=`pwd` && test -n "$ac_pwd" &&
1328ac_ls_di=`ls -di .` &&
1329ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001330 as_fn_error $? "working directory cannot be determined"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001331test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001332 as_fn_error $? "pwd does not report name of working directory"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001333
1334
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001335# Find the source files, if location was not specified.
1336if test -z "$srcdir"; then
1337 ac_srcdir_defaulted=yes
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001338 # Try the directory containing this script, then the parent directory.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001339 ac_confdir=`$as_dirname -- "$as_myself" ||
1340$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1341 X"$as_myself" : 'X\(//\)[^/]' \| \
1342 X"$as_myself" : 'X\(//\)$' \| \
1343 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1344$as_echo X"$as_myself" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\/\)[^/].*/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\/\)$/{
1354 s//\1/
1355 q
1356 }
1357 /^X\(\/\).*/{
1358 s//\1/
1359 q
1360 }
1361 s/.*/./; q'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001362 srcdir=$ac_confdir
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001363 if test ! -r "$srcdir/$ac_unique_file"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001364 srcdir=..
1365 fi
1366else
1367 ac_srcdir_defaulted=no
1368fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001369if test ! -r "$srcdir/$ac_unique_file"; then
1370 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001371 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001372fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001373ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1374ac_abs_confdir=`(
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001375 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001376 pwd)`
1377# When building in place, set srcdir=.
1378if test "$ac_abs_confdir" = "$ac_pwd"; then
1379 srcdir=.
1380fi
1381# Remove unnecessary trailing slashes from srcdir.
1382# Double slashes in file names in object file debugging info
1383# mess up M-x gdb in Emacs.
1384case $srcdir in
1385*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1386esac
1387for ac_var in $ac_precious_vars; do
1388 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_env_${ac_var}_value=\$${ac_var}
1390 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1392done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001393
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001394#
1395# Report the --help message.
1396#
1397if test "$ac_init_help" = "long"; then
1398 # Omit some internal or obsolete options to make the list less imposing.
1399 # This message is too long to be a string in the A/UX 3.1 sh.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001400 cat <<_ACEOF
Alexandre Julliardd35cb812012-06-22 20:16:32 +02001401\`configure' configures Wine 1.5.7 to adapt to many kinds of systems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001402
1403Usage: $0 [OPTION]... [VAR=VALUE]...
1404
1405To assign environment variables (e.g., CC, CFLAGS...), specify them as
1406VAR=VALUE. See below for descriptions of some of the useful variables.
1407
1408Defaults for the options are specified in brackets.
1409
1410Configuration:
1411 -h, --help display this help and exit
1412 --help=short display options specific to this package
1413 --help=recursive display the short help of all the included packages
1414 -V, --version display version information and exit
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001415 -q, --quiet, --silent do not print \`checking ...' messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001416 --cache-file=FILE cache test results in FILE [disabled]
1417 -C, --config-cache alias for \`--cache-file=config.cache'
1418 -n, --no-create do not create output files
1419 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1420
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001421Installation directories:
1422 --prefix=PREFIX install architecture-independent files in PREFIX
Alexandre Julliardabf50482008-10-31 12:56:53 +01001423 [$ac_default_prefix]
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001424 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Alexandre Julliardabf50482008-10-31 12:56:53 +01001425 [PREFIX]
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001426
1427By default, \`make install' will install all the files in
1428\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1429an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1430for instance \`--prefix=\$HOME'.
1431
1432For better control, use the options below.
1433
1434Fine tuning of the installation directories:
Alexandre Julliardabf50482008-10-31 12:56:53 +01001435 --bindir=DIR user executables [EPREFIX/bin]
1436 --sbindir=DIR system admin executables [EPREFIX/sbin]
1437 --libexecdir=DIR program executables [EPREFIX/libexec]
1438 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1439 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1440 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1441 --libdir=DIR object code libraries [EPREFIX/lib]
1442 --includedir=DIR C header files [PREFIX/include]
1443 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1444 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1445 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1446 --infodir=DIR info documentation [DATAROOTDIR/info]
1447 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1448 --mandir=DIR man documentation [DATAROOTDIR/man]
1449 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1450 --htmldir=DIR html documentation [DOCDIR]
1451 --dvidir=DIR dvi documentation [DOCDIR]
1452 --pdfdir=DIR pdf documentation [DOCDIR]
1453 --psdir=DIR ps documentation [DOCDIR]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001454_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001455
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001456 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001457
1458X features:
1459 --x-includes=DIR X include files are in DIR
1460 --x-libraries=DIR X library files are in DIR
1461
1462System types:
1463 --build=BUILD configure for building on BUILD [guessed]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001464 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001465_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001466fi
1467
1468if test -n "$ac_init_help"; then
1469 case $ac_init_help in
Alexandre Julliardd35cb812012-06-22 20:16:32 +02001470 short | recursive ) echo "Configuration of Wine 1.5.7:";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001471 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001472 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001473
1474Optional Features:
Alexandre Julliardabf50482008-10-31 12:56:53 +01001475 --disable-option-checking ignore unrecognized --enable/--with options
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001476 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1477 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Eric Pouech53fa0d52004-02-05 01:27:38 +00001478 --disable-win16 do not include Win16 support
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001479 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1480 binaries)
Alexandre Julliard35078f42008-11-21 10:16:12 +01001481 --disable-tests do not build the regression tests
Alexandre Julliard9d037222008-03-20 13:00:12 +01001482 --enable-maintainer-mode
1483 enable maintainer-specific build rules
Eric Pouechbc56c4e2009-08-25 19:33:28 +02001484 --disable-largefile omit support for large files
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001485
1486Optional Packages:
1487 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1488 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001489 --without-alsa do not use the Alsa sound support
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001490 --without-capi do not use CAPI (ISDN support)
1491 --without-cms do not use CMS (color management support)
1492 --without-coreaudio do not use the CoreAudio sound support
1493 --without-cups do not use CUPS
1494 --without-curses do not use (n)curses
Alexandre Julliarde45d1242011-12-20 10:36:35 +01001495 --without-dbus do not use DBus (dynamic device support)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001496 --without-fontconfig do not use fontconfig
Alexandre Julliarda20c0e12008-05-21 14:55:53 +02001497 --without-freetype do not use the FreeType library
Alexandre Julliard268976b2011-10-22 15:23:14 +02001498 --without-gettext do not use gettext
Alexandre Julliard9159cfe2011-10-22 20:46:36 +02001499 --with-gettextpo use the GetTextPO library to rebuild po files
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001500 --without-gphoto do not use gphoto (Digital Camera support)
Alexandre Julliardad798732008-05-01 13:29:02 +02001501 --without-glu do not use the GLU library
Henri Verbeet874c9ef2008-09-22 22:13:19 +02001502 --without-gnutls do not use GnuTLS (schannel support)
Alexandre Julliard6ce32e02009-08-19 15:53:04 +02001503 --without-gsm do not use libgsm (GSM 06.10 codec support)
Aric Stewart2914d652010-10-20 13:55:16 -05001504 --without-gstreamer do not use GStreamer (codecs support)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001505 --without-hal do not use HAL (dynamic device support)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001506 --without-jpeg do not use JPEG
1507 --without-ldap do not use LDAP
Aric Stewartdb71d7c2009-08-19 09:37:48 -05001508 --without-mpg123 do not use the mpg123 library
Chris Robinson862965f2009-08-25 03:26:35 -07001509 --without-openal do not use OpenAL
Peter Urbanec65c84d72010-12-02 23:41:48 +11001510 --without-opencl do not use OpenCL
Eric Pouech53fa0d52004-02-05 01:27:38 +00001511 --without-opengl do not use OpenGL
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001512 --without-openssl do not use OpenSSL
1513 --without-oss do not use the OSS sound support
1514 --without-png do not use PNG
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01001515 --without-pthread do not use the pthread library
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001516 --without-sane do not use SANE (scanner support)
Vincent Povirk73cd5692010-03-08 17:07:29 -06001517 --without-tiff do not use TIFF
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01001518 --without-v4l do not use v4l1 (v4l support)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001519 --without-xcomposite do not use the Xcomposite extension
1520 --without-xcursor do not use the Xcursor extension
1521 --without-xinerama do not use Xinerama (multi-monitor support)
1522 --without-xinput do not use the Xinput extension
Alexandre Julliard77e05ce2011-04-13 18:51:50 +02001523 --without-xinput2 do not use the Xinput 2 extension
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001524 --without-xml do not use XML
1525 --without-xrandr do not use Xrandr (resolution changes)
1526 --without-xrender do not use the Xrender extension
1527 --without-xshape do not use the Xshape extension
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001528 --without-xslt do not use XSLT
Francois Gougeta49beb42008-06-26 14:02:17 +02001529 --without-xxf86vm do not use XFree video mode extension
Alexandre Julliardba6a41a2011-02-18 13:07:27 +01001530 --without-zlib do not use Zlib (data compression)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001531 --with-wine-tools=DIR use Wine tools from directory DIR
Alexandre Julliard39a75d32009-08-13 19:45:31 +02001532 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001533 --with-x use the X Window System
1534
1535Some influential environment variables:
Eric Pouech53fa0d52004-02-05 01:27:38 +00001536 CC C compiler command
1537 CFLAGS C compiler flags
1538 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1539 nonstandard directory <lib dir>
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01001540 LIBS libraries to pass to the linker, e.g. -l<library>
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001541 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001542 you have headers in a nonstandard directory <include dir>
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00001543 CXX C++ compiler command
1544 CXXFLAGS C++ compiler flags
Eric Pouech53fa0d52004-02-05 01:27:38 +00001545 CPP C preprocessor
Alexandre Julliard40664c02009-02-11 20:40:58 +01001546 XMKMF Path to xmkmf, Makefile generator for X Window System
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001547
1548Use these variables to override the choices made by `configure' or to help
1549it to find libraries and programs with nonstandard names/locations.
1550
Alexandre Julliard875927f2004-01-02 01:55:29 +00001551Report bugs to <wine-devel@winehq.org>.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001552Wine home page: <http://www.winehq.org>.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001553_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001554ac_status=$?
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001555fi
1556
1557if test "$ac_init_help" = "recursive"; then
1558 # If there are subdirs, report their specific --help.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001559 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Alexandre Julliardabf50482008-10-31 12:56:53 +01001560 test -d "$ac_dir" ||
1561 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1562 continue
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001563 ac_builddir=.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001564
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001565case "$ac_dir" in
1566.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001568 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001569 # A ".." for each directory in $ac_dir_suffix.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001570 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001571 case $ac_top_builddir_sub in
1572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1574 esac ;;
1575esac
1576ac_abs_top_builddir=$ac_pwd
1577ac_abs_builddir=$ac_pwd$ac_dir_suffix
1578# for backward compatibility:
1579ac_top_builddir=$ac_top_build_prefix
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001580
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001581case $srcdir in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001582 .) # We are building in place.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001583 ac_srcdir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001584 ac_top_srcdir=$ac_top_builddir_sub
1585 ac_abs_top_srcdir=$ac_pwd ;;
1586 [\\/]* | ?:[\\/]* ) # Absolute name.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001587 ac_srcdir=$srcdir$ac_dir_suffix;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001588 ac_top_srcdir=$srcdir
1589 ac_abs_top_srcdir=$srcdir ;;
1590 *) # Relative name.
1591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1592 ac_top_srcdir=$ac_top_build_prefix$srcdir
1593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001594esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001595ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Alexandre Julliard875927f2004-01-02 01:55:29 +00001596
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001597 cd "$ac_dir" || { ac_status=$?; continue; }
1598 # Check for guested configure.
Jeremy White0ebeb532006-06-20 13:18:41 +02001599 if test -f "$ac_srcdir/configure.gnu"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001600 echo &&
Jeremy White0ebeb532006-06-20 13:18:41 +02001601 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1602 elif test -f "$ac_srcdir/configure"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001603 echo &&
Jeremy White0ebeb532006-06-20 13:18:41 +02001604 $SHELL "$ac_srcdir/configure" --help=recursive
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001605 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01001606 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001607 fi || ac_status=$?
1608 cd "$ac_pwd" || { ac_status=$?; break; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001609 done
1610fi
1611
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001612test -n "$ac_init_help" && exit $ac_status
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001613if $ac_init_version; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001614 cat <<\_ACEOF
Alexandre Julliardd35cb812012-06-22 20:16:32 +02001615Wine configure 1.5.7
André Hentschelcecf1052012-06-02 18:58:39 +02001616generated by GNU Autoconf 2.69
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001617
André Hentschelcecf1052012-06-02 18:58:39 +02001618Copyright (C) 2012 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001619This configure script is free software; the Free Software Foundation
1620gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001621_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001622 exit
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001623fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001624
1625## ------------------------ ##
1626## Autoconf initialization. ##
1627## ------------------------ ##
1628
1629# ac_fn_c_try_compile LINENO
1630# --------------------------
1631# Try to compile conftest.$ac_ext, and return whether this succeeded.
1632ac_fn_c_try_compile ()
1633{
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 rm -f conftest.$ac_objext
1636 if { { ac_try="$ac_compile"
1637case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1640esac
1641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642$as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_compile") 2>conftest.err
1644 ac_status=$?
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1649 fi
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } && {
1652 test -z "$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1654 } && test -s conftest.$ac_objext; then :
1655 ac_retval=0
1656else
1657 $as_echo "$as_me: failed program was:" >&5
1658sed 's/^/| /' conftest.$ac_ext >&5
1659
1660 ac_retval=1
1661fi
Alexandre Julliard9797da42011-04-27 17:37:43 +02001662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001663 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001664
1665} # ac_fn_c_try_compile
1666
1667# ac_fn_cxx_try_compile LINENO
1668# ----------------------------
1669# Try to compile conftest.$ac_ext, and return whether this succeeded.
1670ac_fn_cxx_try_compile ()
1671{
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 rm -f conftest.$ac_objext
1674 if { { ac_try="$ac_compile"
1675case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678esac
1679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680$as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_compile") 2>conftest.err
1682 ac_status=$?
1683 if test -s conftest.err; then
1684 grep -v '^ *+' conftest.err >conftest.er1
1685 cat conftest.er1 >&5
1686 mv -f conftest.er1 conftest.err
1687 fi
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && {
1690 test -z "$ac_cxx_werror_flag" ||
1691 test ! -s conftest.err
1692 } && test -s conftest.$ac_objext; then :
1693 ac_retval=0
1694else
1695 $as_echo "$as_me: failed program was:" >&5
1696sed 's/^/| /' conftest.$ac_ext >&5
1697
1698 ac_retval=1
1699fi
Alexandre Julliard9797da42011-04-27 17:37:43 +02001700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001701 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001702
1703} # ac_fn_cxx_try_compile
1704
1705# ac_fn_c_try_link LINENO
1706# -----------------------
1707# Try to link conftest.$ac_ext, and return whether this succeeded.
1708ac_fn_c_try_link ()
1709{
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 rm -f conftest.$ac_objext conftest$ac_exeext
1712 if { { ac_try="$ac_link"
1713case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716esac
1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718$as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_link") 2>conftest.err
1720 ac_status=$?
1721 if test -s conftest.err; then
1722 grep -v '^ *+' conftest.err >conftest.er1
1723 cat conftest.er1 >&5
1724 mv -f conftest.er1 conftest.err
1725 fi
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } && {
1728 test -z "$ac_c_werror_flag" ||
1729 test ! -s conftest.err
1730 } && test -s conftest$ac_exeext && {
1731 test "$cross_compiling" = yes ||
André Hentschelcecf1052012-06-02 18:58:39 +02001732 test -x conftest$ac_exeext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001733 }; then :
1734 ac_retval=0
1735else
1736 $as_echo "$as_me: failed program was:" >&5
1737sed 's/^/| /' conftest.$ac_ext >&5
1738
1739 ac_retval=1
1740fi
1741 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1742 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1743 # interfere with the next link command; also delete a directory that is
1744 # left behind by Apple's compiler. We do this before executing the actions.
1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Alexandre Julliard9797da42011-04-27 17:37:43 +02001746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001747 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001748
1749} # ac_fn_c_try_link
1750
1751# ac_fn_c_try_cpp LINENO
1752# ----------------------
1753# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1754ac_fn_c_try_cpp ()
1755{
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 if { { ac_try="$ac_cpp conftest.$ac_ext"
1758case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761esac
1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763$as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1765 ac_status=$?
1766 if test -s conftest.err; then
1767 grep -v '^ *+' conftest.err >conftest.er1
1768 cat conftest.er1 >&5
1769 mv -f conftest.er1 conftest.err
1770 fi
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001772 test $ac_status = 0; } > conftest.i && {
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1774 test ! -s conftest.err
1775 }; then :
1776 ac_retval=0
1777else
1778 $as_echo "$as_me: failed program was:" >&5
1779sed 's/^/| /' conftest.$ac_ext >&5
1780
1781 ac_retval=1
1782fi
Alexandre Julliard9797da42011-04-27 17:37:43 +02001783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001784 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001785
1786} # ac_fn_c_try_cpp
1787
1788# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1789# -------------------------------------------------------
1790# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1791# the include files in INCLUDES and setting the cache variable VAR
1792# accordingly.
1793ac_fn_c_check_header_mongrel ()
1794{
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Alexandre Julliard9797da42011-04-27 17:37:43 +02001796 if eval \${$3+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798$as_echo_n "checking for $2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02001799if eval \${$3+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001800 $as_echo_n "(cached) " >&6
1801fi
1802eval ac_res=\$$3
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804$as_echo "$ac_res" >&6; }
1805else
1806 # Is the header compilable?
1807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1808$as_echo_n "checking $2 usability... " >&6; }
1809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810/* end confdefs.h. */
1811$4
1812#include <$2>
1813_ACEOF
1814if ac_fn_c_try_compile "$LINENO"; then :
1815 ac_header_compiler=yes
1816else
1817 ac_header_compiler=no
1818fi
1819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1821$as_echo "$ac_header_compiler" >&6; }
1822
1823# Is the header present?
1824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1825$as_echo_n "checking $2 presence... " >&6; }
1826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827/* end confdefs.h. */
1828#include <$2>
1829_ACEOF
1830if ac_fn_c_try_cpp "$LINENO"; then :
1831 ac_header_preproc=yes
1832else
1833 ac_header_preproc=no
1834fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001835rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1837$as_echo "$ac_header_preproc" >&6; }
1838
1839# So? What about this header?
1840case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1841 yes:no: )
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1843$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1845$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1846 ;;
1847 no:yes:* )
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1849$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1851$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1853$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1855$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001858( $as_echo "## ------------------------------------ ##
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001859## Report this to wine-devel@winehq.org ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001860## ------------------------------------ ##"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001861 ) | sed "s/^/$as_me: WARNING: /" >&2
1862 ;;
1863esac
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865$as_echo_n "checking for $2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02001866if eval \${$3+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001867 $as_echo_n "(cached) " >&6
1868else
1869 eval "$3=\$ac_header_compiler"
1870fi
1871eval ac_res=\$$3
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873$as_echo "$ac_res" >&6; }
1874fi
Alexandre Julliard9797da42011-04-27 17:37:43 +02001875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001876
1877} # ac_fn_c_check_header_mongrel
1878
1879# ac_fn_c_try_run LINENO
1880# ----------------------
1881# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1882# that executables *can* be run.
1883ac_fn_c_try_run ()
1884{
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 if { { ac_try="$ac_link"
1887case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890esac
1891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892$as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_link") 2>&5
1894 ac_status=$?
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1897 { { case "(($ac_try" in
1898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899 *) ac_try_echo=$ac_try;;
1900esac
1901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902$as_echo "$ac_try_echo"; } >&5
1903 (eval "$ac_try") 2>&5
1904 ac_status=$?
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; }; }; then :
1907 ac_retval=0
1908else
1909 $as_echo "$as_me: program exited with status $ac_status" >&5
1910 $as_echo "$as_me: failed program was:" >&5
1911sed 's/^/| /' conftest.$ac_ext >&5
1912
1913 ac_retval=$ac_status
1914fi
1915 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Alexandre Julliard9797da42011-04-27 17:37:43 +02001916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001917 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001918
1919} # ac_fn_c_try_run
1920
1921# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1922# -------------------------------------------------------
1923# Tests whether HEADER exists and can be compiled using the include files in
1924# INCLUDES, setting the cache variable VAR accordingly.
1925ac_fn_c_check_header_compile ()
1926{
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929$as_echo_n "checking for $2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02001930if eval \${$3+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001931 $as_echo_n "(cached) " >&6
1932else
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934/* end confdefs.h. */
1935$4
1936#include <$2>
1937_ACEOF
1938if ac_fn_c_try_compile "$LINENO"; then :
1939 eval "$3=yes"
1940else
1941 eval "$3=no"
1942fi
1943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944fi
1945eval ac_res=\$$3
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947$as_echo "$ac_res" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02001948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001949
1950} # ac_fn_c_check_header_compile
1951
1952# ac_fn_c_check_func LINENO FUNC VAR
1953# ----------------------------------
1954# Tests whether FUNC exists, setting the cache variable VAR accordingly
1955ac_fn_c_check_func ()
1956{
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959$as_echo_n "checking for $2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02001960if eval \${$3+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001961 $as_echo_n "(cached) " >&6
1962else
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964/* end confdefs.h. */
1965/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1967#define $2 innocuous_$2
1968
1969/* System header to define __stub macros and hopefully few prototypes,
1970 which can conflict with char $2 (); below.
1971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1972 <limits.h> exists even on freestanding compilers. */
1973
1974#ifdef __STDC__
1975# include <limits.h>
1976#else
1977# include <assert.h>
1978#endif
1979
1980#undef $2
1981
1982/* Override any GCC internal prototype to avoid an error.
1983 Use char because int might match the return type of a GCC
1984 builtin and then its argument prototype would still apply. */
1985#ifdef __cplusplus
1986extern "C"
1987#endif
1988char $2 ();
1989/* The GNU C library defines this for functions which it implements
1990 to always fail with ENOSYS. Some functions are actually named
1991 something starting with __ and the normal name is an alias. */
1992#if defined __stub_$2 || defined __stub___$2
1993choke me
1994#endif
1995
1996int
1997main ()
1998{
1999return $2 ();
2000 ;
2001 return 0;
2002}
2003_ACEOF
2004if ac_fn_c_try_link "$LINENO"; then :
2005 eval "$3=yes"
2006else
2007 eval "$3=no"
2008fi
2009rm -f core conftest.err conftest.$ac_objext \
2010 conftest$ac_exeext conftest.$ac_ext
2011fi
2012eval ac_res=\$$3
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014$as_echo "$ac_res" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002016
2017} # ac_fn_c_check_func
2018
2019# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2020# ----------------------------------------------------
2021# Tries to find if the field MEMBER exists in type AGGR, after including
2022# INCLUDES, setting cache variable VAR accordingly.
2023ac_fn_c_check_member ()
2024{
2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2027$as_echo_n "checking for $2.$3... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002028if eval \${$4+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002029 $as_echo_n "(cached) " >&6
2030else
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032/* end confdefs.h. */
2033$5
2034int
2035main ()
2036{
2037static $2 ac_aggr;
2038if (ac_aggr.$3)
2039return 0;
2040 ;
2041 return 0;
2042}
2043_ACEOF
2044if ac_fn_c_try_compile "$LINENO"; then :
2045 eval "$4=yes"
2046else
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048/* end confdefs.h. */
2049$5
2050int
2051main ()
2052{
2053static $2 ac_aggr;
2054if (sizeof ac_aggr.$3)
2055return 0;
2056 ;
2057 return 0;
2058}
2059_ACEOF
2060if ac_fn_c_try_compile "$LINENO"; then :
2061 eval "$4=yes"
2062else
2063 eval "$4=no"
2064fi
2065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066fi
2067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068fi
2069eval ac_res=\$$4
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071$as_echo "$ac_res" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002073
2074} # ac_fn_c_check_member
2075
2076# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2077# -------------------------------------------
2078# Tests whether TYPE exists after having included INCLUDES, setting cache
2079# variable VAR accordingly.
2080ac_fn_c_check_type ()
2081{
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2084$as_echo_n "checking for $2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002085if eval \${$3+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002086 $as_echo_n "(cached) " >&6
2087else
2088 eval "$3=no"
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090/* end confdefs.h. */
2091$4
2092int
2093main ()
2094{
2095if (sizeof ($2))
2096 return 0;
2097 ;
2098 return 0;
2099}
2100_ACEOF
2101if ac_fn_c_try_compile "$LINENO"; then :
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103/* end confdefs.h. */
2104$4
2105int
2106main ()
2107{
2108if (sizeof (($2)))
2109 return 0;
2110 ;
2111 return 0;
2112}
2113_ACEOF
2114if ac_fn_c_try_compile "$LINENO"; then :
2115
2116else
2117 eval "$3=yes"
2118fi
2119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120fi
2121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122fi
2123eval ac_res=\$$3
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2125$as_echo "$ac_res" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002126 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002127
2128} # ac_fn_c_check_type
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002129cat >config.log <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002130This file contains any messages produced by compilers while
2131running configure, to aid debugging if configure makes a mistake.
2132
Alexandre Julliardd35cb812012-06-22 20:16:32 +02002133It was created by Wine $as_me 1.5.7, which was
André Hentschelcecf1052012-06-02 18:58:39 +02002134generated by GNU Autoconf 2.69. Invocation command line was
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002135
2136 $ $0 $@
2137
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002138_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002139exec 5>>config.log
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002140{
2141cat <<_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002142## --------- ##
2143## Platform. ##
2144## --------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002145
2146hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2147uname -m = `(uname -m) 2>/dev/null || echo unknown`
2148uname -r = `(uname -r) 2>/dev/null || echo unknown`
2149uname -s = `(uname -s) 2>/dev/null || echo unknown`
2150uname -v = `(uname -v) 2>/dev/null || echo unknown`
2151
2152/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2153/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2154
2155/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2156/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2157/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002158/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002159/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2160/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2161/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2162
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002163_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002164
2165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166for as_dir in $PATH
2167do
2168 IFS=$as_save_IFS
2169 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002170 $as_echo "PATH: $as_dir"
2171 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002172IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002173
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002174} >&5
2175
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002176cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002177
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002178
2179## ----------- ##
2180## Core tests. ##
2181## ----------- ##
2182
2183_ACEOF
2184
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002185
2186# Keep a trace of the command line.
2187# Strip out --no-create and --no-recursion so they do not pile up.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002188# Strip out --silent because we don't want to record it for future runs.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002189# Also quote any args containing shell meta-characters.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002190# Make two passes to allow for proper duplicate-argument suppression.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002191ac_configure_args=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002192ac_configure_args0=
2193ac_configure_args1=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002194ac_must_keep_next=false
2195for ac_pass in 1 2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002196do
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002197 for ac_arg
2198 do
2199 case $ac_arg in
2200 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2202 | -silent | --silent | --silen | --sile | --sil)
2203 continue ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002204 *\'*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01002205 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002206 esac
2207 case $ac_pass in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002208 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002209 2)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002210 as_fn_append ac_configure_args1 " '$ac_arg'"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002211 if test $ac_must_keep_next = true; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00002212 ac_must_keep_next=false # Got value, back to normal.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002213 else
Alexandre Julliard875927f2004-01-02 01:55:29 +00002214 case $ac_arg in
2215 *=* | --config-cache | -C | -disable-* | --disable-* \
2216 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2217 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2218 | -with-* | --with-* | -without-* | --without-* | --x)
2219 case "$ac_configure_args0 " in
2220 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2221 esac
2222 ;;
2223 -* ) ac_must_keep_next=true ;;
2224 esac
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002225 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002226 as_fn_append ac_configure_args " '$ac_arg'"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002227 ;;
2228 esac
2229 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002230done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002231{ ac_configure_args0=; unset ac_configure_args0;}
2232{ ac_configure_args1=; unset ac_configure_args1;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002233
2234# When interrupted or exit'd, cleanup temporary files, and complete
2235# config.log. We remove comments because anyway the quotes in there
2236# would cause problems or look ugly.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002237# WARNING: Use '\'' to represent an apostrophe within the trap.
2238# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002239trap 'exit_status=$?
2240 # Save into config.log some information that might help in debugging.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002241 {
2242 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002243
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002244 $as_echo "## ---------------- ##
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002245## Cache variables. ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002246## ---------------- ##"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002247 echo
2248 # The following way of writing the cache mishandles newlines in values,
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002249(
2250 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2251 eval ac_val=\$$ac_var
2252 case $ac_val in #(
2253 *${as_nl}*)
2254 case $ac_var in #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002255 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002256$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002257 esac
2258 case $ac_var in #(
2259 _ | IFS | as_nl) ;; #(
Alexandre Julliardabf50482008-10-31 12:56:53 +01002260 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002261 *) { eval $ac_var=; unset $ac_var;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002262 esac ;;
2263 esac
2264 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002265 (set) 2>&1 |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002266 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2267 *${as_nl}ac_space=\ *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002268 sed -n \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002269 "s/'\''/'\''\\\\'\'''\''/g;
2270 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2271 ;; #(
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002272 *)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002273 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002274 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002275 esac |
2276 sort
2277)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002278 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002279
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002280 $as_echo "## ----------------- ##
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002281## Output variables. ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002282## ----------------- ##"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002283 echo
2284 for ac_var in $ac_subst_vars
2285 do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002286 eval ac_val=\$$ac_var
Jeremy White0ebeb532006-06-20 13:18:41 +02002287 case $ac_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002288 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jeremy White0ebeb532006-06-20 13:18:41 +02002289 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01002290 $as_echo "$ac_var='\''$ac_val'\''"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002291 done | sort
2292 echo
2293
2294 if test -n "$ac_subst_files"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002295 $as_echo "## ------------------- ##
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002296## File substitutions. ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002297## ------------------- ##"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002298 echo
2299 for ac_var in $ac_subst_files
2300 do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002301 eval ac_val=\$$ac_var
Jeremy White0ebeb532006-06-20 13:18:41 +02002302 case $ac_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002303 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jeremy White0ebeb532006-06-20 13:18:41 +02002304 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01002305 $as_echo "$ac_var='\''$ac_val'\''"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002306 done | sort
2307 echo
2308 fi
2309
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002310 if test -s confdefs.h; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002311 $as_echo "## ----------- ##
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002312## confdefs.h. ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002313## ----------- ##"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002314 echo
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002315 cat confdefs.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002316 echo
2317 fi
2318 test "$ac_signal" != 0 &&
Alexandre Julliardabf50482008-10-31 12:56:53 +01002319 $as_echo "$as_me: caught signal $ac_signal"
2320 $as_echo "$as_me: exit $exit_status"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002321 } >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002322 rm -f core *.core core.conftest.* &&
2323 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002324 exit $exit_status
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002325' 0
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002326for ac_signal in 1 2 13 15; do
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002327 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002328done
2329ac_signal=0
2330
2331# confdefs.h avoids OS command line length limits that DEFS can exceed.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002332rm -f -r conftest* confdefs.h
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002333
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002334$as_echo "/* confdefs.h */" > confdefs.h
2335
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002336# Predefined preprocessor variables.
2337
2338cat >>confdefs.h <<_ACEOF
2339#define PACKAGE_NAME "$PACKAGE_NAME"
2340_ACEOF
2341
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002342cat >>confdefs.h <<_ACEOF
2343#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2344_ACEOF
2345
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002346cat >>confdefs.h <<_ACEOF
2347#define PACKAGE_VERSION "$PACKAGE_VERSION"
2348_ACEOF
2349
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002350cat >>confdefs.h <<_ACEOF
2351#define PACKAGE_STRING "$PACKAGE_STRING"
2352_ACEOF
2353
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002354cat >>confdefs.h <<_ACEOF
2355#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2356_ACEOF
2357
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002358cat >>confdefs.h <<_ACEOF
2359#define PACKAGE_URL "$PACKAGE_URL"
2360_ACEOF
2361
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002362
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002363# Let the site file select an alternate cache file if it wants to.
Alexandre Julliardabf50482008-10-31 12:56:53 +01002364# Prefer an explicitly selected file to automatically selected ones.
2365ac_site_file1=NONE
2366ac_site_file2=NONE
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002367if test -n "$CONFIG_SITE"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002368 # We do not want a PATH search for config.site.
2369 case $CONFIG_SITE in #((
2370 -*) ac_site_file1=./$CONFIG_SITE;;
2371 */*) ac_site_file1=$CONFIG_SITE;;
2372 *) ac_site_file1=./$CONFIG_SITE;;
2373 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002374elif test "x$prefix" != xNONE; then
Alexandre Julliardabf50482008-10-31 12:56:53 +01002375 ac_site_file1=$prefix/share/config.site
2376 ac_site_file2=$prefix/etc/config.site
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002377else
Alexandre Julliardabf50482008-10-31 12:56:53 +01002378 ac_site_file1=$ac_default_prefix/share/config.site
2379 ac_site_file2=$ac_default_prefix/etc/config.site
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002380fi
Alexandre Julliardabf50482008-10-31 12:56:53 +01002381for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002382do
Alexandre Julliardabf50482008-10-31 12:56:53 +01002383 test "x$ac_site_file" = xNONE && continue
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01002384 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002385 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002386$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002387 sed 's/^/| /' "$ac_site_file" >&5
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002388 . "$ac_site_file" \
2389 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2391as_fn_error $? "failed to load site script $ac_site_file
Alexandre Julliard9797da42011-04-27 17:37:43 +02002392See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002393 fi
2394done
2395
2396if test -r "$cache_file"; then
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01002397 # Some versions of bash will fail to source /dev/null (special files
2398 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2399 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002400 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002401$as_echo "$as_me: loading cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002402 case $cache_file in
Jeremy White0ebeb532006-06-20 13:18:41 +02002403 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2404 *) . "./$cache_file";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002405 esac
2406 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002407else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002408 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002409$as_echo "$as_me: creating cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002410 >$cache_file
2411fi
2412
2413# Check that the precious variables saved in the cache have kept the same
2414# value.
2415ac_cache_corrupted=false
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002416for ac_var in $ac_precious_vars; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002417 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2418 eval ac_new_set=\$ac_env_${ac_var}_set
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002419 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2420 eval ac_new_val=\$ac_env_${ac_var}_value
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002421 case $ac_old_set,$ac_new_set in
2422 set,)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002423 { $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 +01002424$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 +00002425 ac_cache_corrupted=: ;;
2426 ,set)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002427 { $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 +01002428$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002429 ac_cache_corrupted=: ;;
2430 ,);;
2431 *)
2432 if test "x$ac_old_val" != "x$ac_new_val"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +01002433 # differences in whitespace do not lead to failure.
2434 ac_old_val_w=`echo x $ac_old_val`
2435 ac_new_val_w=`echo x $ac_new_val`
2436 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002438$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2439 ac_cache_corrupted=:
2440 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002441 { $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 +01002442$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2443 eval $ac_var=\$ac_old_val
2444 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002445 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002446$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002447 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002448$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002449 fi;;
2450 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002451 # Pass precious variables to config.status.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002452 if test "$ac_new_set" = set; then
2453 case $ac_new_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002454 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002455 *) ac_arg=$ac_var=$ac_new_val ;;
2456 esac
2457 case " $ac_configure_args " in
2458 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002459 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002460 esac
2461 fi
2462done
2463if $ac_cache_corrupted; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002465$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002467$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002468 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002469fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002470## -------------------- ##
2471## Main body of script. ##
2472## -------------------- ##
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002473
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002474ac_ext=c
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002475ac_cpp='$CPP $CPPFLAGS'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2478ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002479
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002480
2481
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002482ac_config_headers="$ac_config_headers include/config.h"
Alexandre Julliard18f92e71996-07-17 20:02:21 +00002483
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002484ac_aux_dir=
Jeremy White0ebeb532006-06-20 13:18:41 +02002485for ac_dir in tools "$srcdir"/tools; do
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002486 if test -f "$ac_dir/install-sh"; then
2487 ac_aux_dir=$ac_dir
2488 ac_install_sh="$ac_aux_dir/install-sh -c"
2489 break
2490 elif test -f "$ac_dir/install.sh"; then
2491 ac_aux_dir=$ac_dir
2492 ac_install_sh="$ac_aux_dir/install.sh -c"
2493 break
2494 elif test -f "$ac_dir/shtool"; then
2495 ac_aux_dir=$ac_dir
2496 ac_install_sh="$ac_aux_dir/shtool install -c"
2497 break
2498 fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002499done
2500if test -z "$ac_aux_dir"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002501 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002502fi
Jeremy White0ebeb532006-06-20 13:18:41 +02002503
2504# These three variables are undocumented and unsupported,
2505# and are intended to be withdrawn in a future Autoconf release.
2506# They can cause serious problems if a builder's source tree is in a directory
2507# whose full name contains unusual characters.
2508ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2509ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2510ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2511
Howard Abrams13277481999-07-10 13:16:29 +00002512
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002513
2514
Alexandre Julliardd59227e2010-02-20 12:36:04 +01002515
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002516# Check whether --enable-win16 was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002517if test "${enable_win16+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002518 enableval=$enable_win16;
2519fi
Alexandre Julliardc728efc2002-10-02 02:34:09 +00002520
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002521# Check whether --enable-win64 was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002522if test "${enable_win64+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002523 enableval=$enable_win64;
2524fi
Alexandre Julliardb8074992002-11-21 21:51:24 +00002525
Alexandre Julliard35078f42008-11-21 10:16:12 +01002526# Check whether --enable-tests was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002527if test "${enable_tests+set}" = set; then :
Alexandre Julliard35078f42008-11-21 10:16:12 +01002528 enableval=$enable_tests;
2529fi
2530
Alexandre Julliard9d037222008-03-20 13:00:12 +01002531# Check whether --enable-maintainer-mode was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002532if test "${enable_maintainer_mode+set}" = set; then :
Alexandre Julliard9d037222008-03-20 13:00:12 +01002533 enableval=$enable_maintainer_mode;
Alexandre Julliard9d037222008-03-20 13:00:12 +01002534fi
2535
Alexandre Julliardb8074992002-11-21 21:51:24 +00002536
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002537
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002538# Check whether --with-alsa was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002539if test "${with_alsa+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002540 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2541fi
2542
2543
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002544# Check whether --with-capi was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002545if test "${with_capi+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002546 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2547fi
2548
2549
2550# Check whether --with-cms was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002551if test "${with_cms+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002552 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2553fi
2554
2555
2556# Check whether --with-coreaudio was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002557if test "${with_coreaudio+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002558 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2559fi
2560
2561
2562# Check whether --with-cups was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002563if test "${with_cups+set}" = set; then :
Francois Gouget289ea332008-07-24 16:09:07 +02002564 withval=$with_cups;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002565fi
2566
2567
2568# Check whether --with-curses was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002569if test "${with_curses+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002570 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2571fi
2572
2573
Alexandre Julliarde45d1242011-12-20 10:36:35 +01002574# Check whether --with-dbus was given.
2575if test "${with_dbus+set}" = set; then :
2576 withval=$with_dbus;
2577fi
2578
2579
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002580# Check whether --with-fontconfig was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002581if test "${with_fontconfig+set}" = set; then :
Ken Thomases9cb7a972012-04-04 17:41:10 -05002582 withval=$with_fontconfig;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002583fi
2584
2585
Alexandre Julliarda20c0e12008-05-21 14:55:53 +02002586# Check whether --with-freetype was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002587if test "${with_freetype+set}" = set; then :
Alexandre Julliarda20c0e12008-05-21 14:55:53 +02002588 withval=$with_freetype;
2589fi
2590
2591
Alexandre Julliard268976b2011-10-22 15:23:14 +02002592# Check whether --with-gettext was given.
2593if test "${with_gettext+set}" = set; then :
2594 withval=$with_gettext;
2595fi
2596
2597
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +01002598# Check whether --with-gettextpo was given.
2599if test "${with_gettextpo+set}" = set; then :
2600 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2601fi
2602
2603
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002604# Check whether --with-gphoto was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002605if test "${with_gphoto+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002606 withval=$with_gphoto;
2607fi
2608
2609
Alexandre Julliardad798732008-05-01 13:29:02 +02002610# Check whether --with-glu was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002611if test "${with_glu+set}" = set; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02002612 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2613fi
2614
2615
Henri Verbeet874c9ef2008-09-22 22:13:19 +02002616# Check whether --with-gnutls was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002617if test "${with_gnutls+set}" = set; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02002618 withval=$with_gnutls;
2619fi
2620
2621
Alexandre Julliard6ce32e02009-08-19 15:53:04 +02002622# Check whether --with-gsm was given.
2623if test "${with_gsm+set}" = set; then :
2624 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 +02002625fi
2626
2627
Aric Stewart2914d652010-10-20 13:55:16 -05002628# Check whether --with-gstreamer was given.
2629if test "${with_gstreamer+set}" = set; then :
2630 withval=$with_gstreamer;
2631fi
2632
2633
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002634# Check whether --with-hal was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002635if test "${with_hal+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002636 withval=$with_hal;
2637fi
2638
2639
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002640# Check whether --with-jpeg was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002641if test "${with_jpeg+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002642 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2643fi
2644
2645
2646# Check whether --with-ldap was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002647if test "${with_ldap+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002648 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2649fi
2650
2651
Aric Stewartdb71d7c2009-08-19 09:37:48 -05002652# Check whether --with-mpg123 was given.
2653if test "${with_mpg123+set}" = set; then :
2654 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2655fi
2656
2657
Chris Robinson862965f2009-08-25 03:26:35 -07002658# Check whether --with-openal was given.
2659if test "${with_openal+set}" = set; then :
Ken Thomases0b08f192009-09-09 22:23:35 -05002660 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 -07002661fi
2662
2663
Peter Urbanec65c84d72010-12-02 23:41:48 +11002664# Check whether --with-opencl was given.
2665if test "${with_opencl+set}" = set; then :
Adam Martinson2eb2f712010-12-28 12:46:09 -06002666 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 +11002667fi
2668
2669
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002670# Check whether --with-opengl was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002671if test "${with_opengl+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002672 withval=$with_opengl;
2673fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002674
Alexandre Julliardf90efa91998-06-14 15:24:15 +00002675
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002676# Check whether --with-openssl was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002677if test "${with_openssl+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002678 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2679fi
2680
2681
2682# Check whether --with-oss was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002683if test "${with_oss+set}" = set; then :
Alexandre Julliardf60a0f52011-05-02 20:06:49 +02002684 withval=$with_oss;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002685fi
2686
2687
2688# Check whether --with-png was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002689if test "${with_png+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002690 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2691fi
2692
2693
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01002694# Check whether --with-pthread was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002695if test "${with_pthread+set}" = set; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01002696 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2697fi
2698
2699
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002700# Check whether --with-sane was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002701if test "${with_sane+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002702 withval=$with_sane;
2703fi
2704
2705
Vincent Povirk73cd5692010-03-08 17:07:29 -06002706# Check whether --with-tiff was given.
2707if test "${with_tiff+set}" = set; then :
2708 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2709fi
2710
2711
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01002712# Check whether --with-v4l was given.
2713if test "${with_v4l+set}" = set; then :
2714 withval=$with_v4l;
2715fi
2716
2717
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002718# Check whether --with-xcomposite was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002719if test "${with_xcomposite+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002720 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2721fi
2722
2723
2724# Check whether --with-xcursor was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002725if test "${with_xcursor+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002726 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2727fi
2728
2729
2730# Check whether --with-xinerama was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002731if test "${with_xinerama+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002732 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2733fi
2734
2735
2736# Check whether --with-xinput was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002737if test "${with_xinput+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002738 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2739fi
2740
2741
Alexandre Julliard77e05ce2011-04-13 18:51:50 +02002742# Check whether --with-xinput2 was given.
2743if test "${with_xinput2+set}" = set; then :
2744 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2745fi
2746
2747
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002748# Check whether --with-xml was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002749if test "${with_xml+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002750 withval=$with_xml;
2751fi
2752
2753
2754# Check whether --with-xrandr was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002755if test "${with_xrandr+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002756 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2757fi
2758
2759
2760# Check whether --with-xrender was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002761if test "${with_xrender+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002762 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2763fi
2764
2765
2766# Check whether --with-xshape was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002767if test "${with_xshape+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002768 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2769fi
2770
2771
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002772# Check whether --with-xslt was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002773if test "${with_xslt+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002774 withval=$with_xslt;
2775fi
2776
2777
Francois Gougeta49beb42008-06-26 14:02:17 +02002778# Check whether --with-xxf86vm was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002779if test "${with_xxf86vm+set}" = set; then :
André Hentschel7b285a42009-09-19 19:08:09 +02002780 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 +01002781fi
2782
2783
Alexandre Julliardba6a41a2011-02-18 13:07:27 +01002784# Check whether --with-zlib was given.
2785if test "${with_zlib+set}" = set; then :
2786 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2787fi
2788
2789
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002790
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002791# Check whether --with-wine-tools was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002792if test "${with_wine_tools+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002793 withval=$with_wine_tools;
2794fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00002795
Alexandre Julliardfc01b722002-05-12 03:16:39 +00002796
Alexandre Julliard39a75d32009-08-13 19:45:31 +02002797# Check whether --with-wine64 was given.
2798if test "${with_wine64+set}" = set; then :
2799 withval=$with_wine64;
2800fi
2801
2802
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002803# Make sure we can run config.sub.
Jeremy White0ebeb532006-06-20 13:18:41 +02002804$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002805 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00002806
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002808$as_echo_n "checking build system type... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002809if ${ac_cv_build+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002810 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002811else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002812 ac_build_alias=$build_alias
2813test "x$ac_build_alias" = x &&
Jeremy White0ebeb532006-06-20 13:18:41 +02002814 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002815test "x$ac_build_alias" = x &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002816 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Jeremy White0ebeb532006-06-20 13:18:41 +02002817ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002818 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002819
2820fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002822$as_echo "$ac_cv_build" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002823case $ac_cv_build in
2824*-*-*) ;;
Alexandre Julliard9797da42011-04-27 17:37:43 +02002825*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002826esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002827build=$ac_cv_build
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002828ac_save_IFS=$IFS; IFS='-'
2829set x $ac_cv_build
2830shift
2831build_cpu=$1
2832build_vendor=$2
2833shift; shift
2834# Remember, the first character of IFS is used to create $*,
2835# except with old shells:
2836build_os=$*
2837IFS=$ac_save_IFS
2838case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002839
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002840
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002842$as_echo_n "checking host system type... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002843if ${ac_cv_host+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002844 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002845else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002846 if test "x$host_alias" = x; then
2847 ac_cv_host=$ac_cv_build
2848else
Jeremy White0ebeb532006-06-20 13:18:41 +02002849 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002850 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002851fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002852
2853fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002855$as_echo "$ac_cv_host" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002856case $ac_cv_host in
2857*-*-*) ;;
Alexandre Julliard9797da42011-04-27 17:37:43 +02002858*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002859esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002860host=$ac_cv_host
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002861ac_save_IFS=$IFS; IFS='-'
2862set x $ac_cv_host
2863shift
2864host_cpu=$1
2865host_vendor=$2
2866shift; shift
2867# Remember, the first character of IFS is used to create $*,
2868# except with old shells:
2869host_os=$*
2870IFS=$ac_save_IFS
2871case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002872
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002873
Alexandre Julliard71440f32005-05-19 14:28:17 +00002874
Alexandre Julliard73b724e2006-12-28 11:40:19 +01002875case "$srcdir" in
2876 .) ;;
2877 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002878 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 +02002879You need to run 'make distclean' in the source tree first." "$LINENO" 5
Alexandre Julliard73b724e2006-12-28 11:40:19 +01002880 fi ;;
2881esac
2882
Alexandre Julliard71440f32005-05-19 14:28:17 +00002883
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002885$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2886set x ${MAKE-make}
2887ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Alexandre Julliard9797da42011-04-27 17:37:43 +02002888if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002889 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002890else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002891 cat >conftest.make <<\_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002892SHELL = /bin/sh
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002893all:
Jeremy White0ebeb532006-06-20 13:18:41 +02002894 @echo '@@@%%%=$(MAKE)=@@@%%%'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002895_ACEOF
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002896# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Jeremy White0ebeb532006-06-20 13:18:41 +02002897case `${MAKE-make} -f conftest.make 2>/dev/null` in
2898 *@@@%%%=?*=@@@%%%*)
2899 eval ac_cv_prog_make_${ac_make}_set=yes;;
2900 *)
2901 eval ac_cv_prog_make_${ac_make}_set=no;;
2902esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002903rm -f conftest.make
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002904fi
Jeremy White0ebeb532006-06-20 13:18:41 +02002905if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002907$as_echo "yes" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002908 SET_MAKE=
2909else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002911$as_echo "no" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002912 SET_MAKE="MAKE=${MAKE-make}"
2913fi
2914
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002915ac_ext=c
2916ac_cpp='$CPP $CPPFLAGS'
2917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2919ac_compiler_gnu=$ac_cv_c_compiler_gnu
2920if test -n "$ac_tool_prefix"; then
2921 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2922set dummy ${ac_tool_prefix}gcc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002924$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002925if ${ac_cv_prog_CC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002926 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002927else
2928 if test -n "$CC"; then
2929 ac_cv_prog_CC="$CC" # Let the user override the test.
2930else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932for as_dir in $PATH
2933do
2934 IFS=$as_save_IFS
2935 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002936 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02002937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002938 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002940 break 2
2941 fi
2942done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002943 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002944IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002945
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002946fi
2947fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002948CC=$ac_cv_prog_CC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002949if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002951$as_echo "$CC" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002952else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002954$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002955fi
2956
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002957
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002958fi
2959if test -z "$ac_cv_prog_CC"; then
2960 ac_ct_CC=$CC
2961 # Extract the first word of "gcc", so it can be a program name with args.
2962set dummy gcc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002964$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002965if ${ac_cv_prog_ac_ct_CC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002966 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002967else
2968 if test -n "$ac_ct_CC"; then
2969 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2970else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972for as_dir in $PATH
2973do
2974 IFS=$as_save_IFS
2975 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002976 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02002977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002978 ac_cv_prog_ac_ct_CC="gcc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002980 break 2
2981 fi
2982done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002983 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002984IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002985
2986fi
2987fi
2988ac_ct_CC=$ac_cv_prog_ac_ct_CC
2989if test -n "$ac_ct_CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002991$as_echo "$ac_ct_CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002992else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002994$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002995fi
2996
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002997 if test "x$ac_ct_CC" = x; then
2998 CC=""
2999 else
3000 case $cross_compiling:$ac_tool_warned in
3001yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003002{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003003$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003004ac_tool_warned=yes ;;
3005esac
3006 CC=$ac_ct_CC
3007 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003008else
3009 CC="$ac_cv_prog_CC"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003010fi
3011
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003012if test -z "$CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003013 if test -n "$ac_tool_prefix"; then
3014 # 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 +00003015set dummy ${ac_tool_prefix}cc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003017$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003018if ${ac_cv_prog_CC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003019 $as_echo_n "(cached) " >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003020else
3021 if test -n "$CC"; then
3022 ac_cv_prog_CC="$CC" # Let the user override the test.
3023else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025for as_dir in $PATH
3026do
3027 IFS=$as_save_IFS
3028 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003029 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02003030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003031 ac_cv_prog_CC="${ac_tool_prefix}cc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003033 break 2
3034 fi
3035done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003036 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003037IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003038
3039fi
3040fi
3041CC=$ac_cv_prog_CC
3042if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003044$as_echo "$CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003045else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003047$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003048fi
3049
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003050
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003051 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003052fi
3053if test -z "$CC"; then
3054 # Extract the first word of "cc", so it can be a program name with args.
3055set dummy cc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003057$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003058if ${ac_cv_prog_CC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003059 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003060else
3061 if test -n "$CC"; then
3062 ac_cv_prog_CC="$CC" # Let the user override the test.
3063else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003064 ac_prog_rejected=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066for as_dir in $PATH
3067do
3068 IFS=$as_save_IFS
3069 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003070 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02003071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003072 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3073 ac_prog_rejected=yes
3074 continue
3075 fi
3076 ac_cv_prog_CC="cc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003078 break 2
3079 fi
3080done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003081 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003082IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003083
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003084if test $ac_prog_rejected = yes; then
3085 # We found a bogon in the path, so make sure we never use it.
3086 set dummy $ac_cv_prog_CC
3087 shift
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003088 if test $# != 0; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003089 # We chose a different compiler from the bogus one.
3090 # However, it has the same basename, so the bogon will be chosen
3091 # first if we set CC to just the basename; use the full file name.
3092 shift
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003093 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003094 fi
3095fi
3096fi
3097fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003098CC=$ac_cv_prog_CC
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003099if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003101$as_echo "$CC" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003102else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003104$as_echo "no" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003105fi
3106
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003107
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003108fi
3109if test -z "$CC"; then
3110 if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003111 for ac_prog in cl.exe
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003112 do
3113 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3114set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003116$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003117if ${ac_cv_prog_CC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003118 $as_echo_n "(cached) " >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00003119else
3120 if test -n "$CC"; then
3121 ac_cv_prog_CC="$CC" # Let the user override the test.
3122else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124for as_dir in $PATH
3125do
3126 IFS=$as_save_IFS
3127 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003128 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02003129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003130 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003132 break 2
3133 fi
3134done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003135 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003136IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003137
Eric Pouech18ad24a2000-01-16 22:16:33 +00003138fi
3139fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003140CC=$ac_cv_prog_CC
Eric Pouech18ad24a2000-01-16 22:16:33 +00003141if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003143$as_echo "$CC" >&6; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003144else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003146$as_echo "no" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003147fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003148
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003149
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003150 test -n "$CC" && break
3151 done
3152fi
3153if test -z "$CC"; then
3154 ac_ct_CC=$CC
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003155 for ac_prog in cl.exe
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003156do
3157 # Extract the first word of "$ac_prog", so it can be a program name with args.
3158set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003160$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003161if ${ac_cv_prog_ac_ct_CC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003162 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003163else
3164 if test -n "$ac_ct_CC"; then
3165 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3166else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168for as_dir in $PATH
3169do
3170 IFS=$as_save_IFS
3171 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003172 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02003173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003174 ac_cv_prog_ac_ct_CC="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003176 break 2
3177 fi
3178done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003179 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003180IFS=$as_save_IFS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003181
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003182fi
3183fi
3184ac_ct_CC=$ac_cv_prog_ac_ct_CC
3185if test -n "$ac_ct_CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003187$as_echo "$ac_ct_CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003188else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003190$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003191fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003192
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003193
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003194 test -n "$ac_ct_CC" && break
3195done
Eric Pouech18ad24a2000-01-16 22:16:33 +00003196
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003197 if test "x$ac_ct_CC" = x; then
3198 CC=""
3199 else
3200 case $cross_compiling:$ac_tool_warned in
3201yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003202{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003203$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003204ac_tool_warned=yes ;;
3205esac
3206 CC=$ac_ct_CC
3207 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003208fi
3209
3210fi
3211
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003212
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003213test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003215as_fn_error $? "no acceptable C compiler found in \$PATH
Alexandre Julliard9797da42011-04-27 17:37:43 +02003216See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003217
3218# Provide some information about the compiler.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003219$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003220set X $ac_compile
3221ac_compiler=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003222for ac_option in --version -v -V -qversion; do
3223 { { ac_try="$ac_compiler $ac_option >&5"
Jeremy White0ebeb532006-06-20 13:18:41 +02003224case "(($ac_try" in
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3227esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003228eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3229$as_echo "$ac_try_echo"; } >&5
3230 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003231 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003232 if test -s conftest.err; then
3233 sed '10a\
3234... rest of stderr output deleted ...
3235 10q' conftest.err >conftest.er1
3236 cat conftest.er1 >&5
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003237 fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003238 rm -f conftest.er1 conftest.err
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3240 test $ac_status = 0; }
3241done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003242
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003244/* end confdefs.h. */
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003245
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003246int
3247main ()
3248{
3249
3250 ;
3251 return 0;
3252}
3253_ACEOF
3254ac_clean_files_save=$ac_clean_files
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003255ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003256# Try to create an executable without -o first, disregard a.out.
3257# It will help us diagnose broken compilers, and finding out an intuition
3258# of exeext.
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3260$as_echo_n "checking whether the C compiler works... " >&6; }
Alexandre Julliardabf50482008-10-31 12:56:53 +01003261ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3262
3263# The possible output files:
3264ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3265
Jeremy White0ebeb532006-06-20 13:18:41 +02003266ac_rmfiles=
3267for ac_file in $ac_files
3268do
3269 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jeremy White0ebeb532006-06-20 13:18:41 +02003271 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3272 esac
3273done
3274rm -f $ac_rmfiles
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003275
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003276if { { ac_try="$ac_link_default"
Jeremy White0ebeb532006-06-20 13:18:41 +02003277case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003281eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3282$as_echo "$ac_try_echo"; } >&5
Jeremy White0ebeb532006-06-20 13:18:41 +02003283 (eval "$ac_link_default") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003284 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286 test $ac_status = 0; }; then :
Jeremy White0ebeb532006-06-20 13:18:41 +02003287 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3288# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3289# in a Makefile. We should not override ac_cv_exeext if it was cached,
3290# so that the user can short-circuit this test for compilers unknown to
3291# Autoconf.
Alexandre Julliard78bd1942006-08-14 20:42:56 +02003292for ac_file in $ac_files ''
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003293do
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003294 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003295 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Jeremy White0ebeb532006-06-20 13:18:41 +02003297 ;;
3298 [ab].out )
3299 # We found the default executable, but exeext='' is most
3300 # certainly right.
3301 break;;
3302 *.* )
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003303 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Jeremy White0ebeb532006-06-20 13:18:41 +02003304 then :; else
3305 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3306 fi
3307 # We set ac_cv_exeext here because the later test for it is not
3308 # safe: cross compilers may not add the suffix if given an `-o'
3309 # argument, so we may need to know it at that point already.
3310 # Even if this section looks crufty: it has the advantage of
3311 # actually working.
3312 break;;
3313 * )
3314 break;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003315 esac
3316done
Jeremy White0ebeb532006-06-20 13:18:41 +02003317test "$ac_cv_exeext" = no && ac_cv_exeext=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003318
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003319else
Alexandre Julliard78bd1942006-08-14 20:42:56 +02003320 ac_file=''
3321fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003322if test -z "$ac_file"; then :
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324$as_echo "no" >&6; }
3325$as_echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003326sed 's/^/| /' conftest.$ac_ext >&5
3327
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003328{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003330as_fn_error 77 "C compiler cannot create executables
Alexandre Julliard9797da42011-04-27 17:37:43 +02003331See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003332else
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3334$as_echo "yes" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003335fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3337$as_echo_n "checking for C compiler default output file name... " >&6; }
3338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3339$as_echo "$ac_file" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02003340ac_exeext=$ac_cv_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02003341
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003342rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Jeremy White0ebeb532006-06-20 13:18:41 +02003343ac_clean_files=$ac_clean_files_save
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003345$as_echo_n "checking for suffix of executables... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003346if { { ac_try="$ac_link"
Jeremy White0ebeb532006-06-20 13:18:41 +02003347case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3350esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003351eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3352$as_echo "$ac_try_echo"; } >&5
Jeremy White0ebeb532006-06-20 13:18:41 +02003353 (eval "$ac_link") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003354 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3356 test $ac_status = 0; }; then :
Jeremy White0ebeb532006-06-20 13:18:41 +02003357 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3358# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3359# work properly (i.e., refer to `conftest.exe'), while it won't with
3360# `rm'.
3361for ac_file in conftest.exe conftest conftest.*; do
3362 test -f "$ac_file" || continue
3363 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003364 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jeremy White0ebeb532006-06-20 13:18:41 +02003365 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3366 break;;
3367 * ) break;;
3368 esac
3369done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003370else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003372$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003373as_fn_error $? "cannot compute suffix of executables: cannot compile and link
Alexandre Julliard9797da42011-04-27 17:37:43 +02003374See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003375fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003376rm -f conftest conftest$ac_cv_exeext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003378$as_echo "$ac_cv_exeext" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02003379
3380rm -f conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003381EXEEXT=$ac_cv_exeext
3382ac_exeext=$EXEEXT
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384/* end confdefs.h. */
3385#include <stdio.h>
3386int
3387main ()
3388{
3389FILE *f = fopen ("conftest.out", "w");
3390 return ferror (f) || fclose (f) != 0;
3391
3392 ;
3393 return 0;
3394}
3395_ACEOF
3396ac_clean_files="$ac_clean_files conftest.out"
3397# Check that the compiler produces executables we can run. If not, either
3398# the compiler is broken, or we cross compile.
3399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3400$as_echo_n "checking whether we are cross compiling... " >&6; }
3401if test "$cross_compiling" != yes; then
3402 { { ac_try="$ac_link"
3403case "(($ac_try" in
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3406esac
3407eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408$as_echo "$ac_try_echo"; } >&5
3409 (eval "$ac_link") 2>&5
3410 ac_status=$?
3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412 test $ac_status = 0; }
3413 if { ac_try='./conftest$ac_cv_exeext'
3414 { { case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3417esac
3418eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3419$as_echo "$ac_try_echo"; } >&5
3420 (eval "$ac_try") 2>&5
3421 ac_status=$?
3422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3423 test $ac_status = 0; }; }; then
3424 cross_compiling=no
3425 else
3426 if test "$cross_compiling" = maybe; then
3427 cross_compiling=yes
3428 else
3429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003431as_fn_error $? "cannot run C compiled programs.
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003432If you meant to cross compile, use \`--host'.
Alexandre Julliard9797da42011-04-27 17:37:43 +02003433See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003434 fi
3435 fi
3436fi
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3438$as_echo "$cross_compiling" >&6; }
3439
3440rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3441ac_clean_files=$ac_clean_files_save
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003443$as_echo_n "checking for suffix of object files... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003444if ${ac_cv_objext+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003445 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003446else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jeremy White0ebeb532006-06-20 13:18:41 +02003448/* end confdefs.h. */
3449
3450int
3451main ()
3452{
3453
3454 ;
3455 return 0;
3456}
3457_ACEOF
3458rm -f conftest.o conftest.obj
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003459if { { ac_try="$ac_compile"
Jeremy White0ebeb532006-06-20 13:18:41 +02003460case "(($ac_try" in
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3463esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003464eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3465$as_echo "$ac_try_echo"; } >&5
Jeremy White0ebeb532006-06-20 13:18:41 +02003466 (eval "$ac_compile") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003467 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3469 test $ac_status = 0; }; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003470 for ac_file in conftest.o conftest.obj conftest.*; do
3471 test -f "$ac_file" || continue;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003472 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003474 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3475 break;;
3476 esac
3477done
3478else
Alexandre Julliardabf50482008-10-31 12:56:53 +01003479 $as_echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003480sed 's/^/| /' conftest.$ac_ext >&5
3481
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003482{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003483$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003484as_fn_error $? "cannot compute suffix of object files: cannot compile
Alexandre Julliard9797da42011-04-27 17:37:43 +02003485See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003486fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003487rm -f conftest.$ac_cv_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003488fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003490$as_echo "$ac_cv_objext" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003491OBJEXT=$ac_cv_objext
3492ac_objext=$OBJEXT
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003494$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003495if ${ac_cv_c_compiler_gnu+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003496 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003497else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003499/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003500
3501int
3502main ()
3503{
3504#ifndef __GNUC__
3505 choke me
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003506#endif
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003507
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003508 ;
3509 return 0;
3510}
3511_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003512if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003513 ac_compiler_gnu=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +00003514else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003515 ac_compiler_gnu=no
Eric Pouech18ad24a2000-01-16 22:16:33 +00003516fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003518ac_cv_c_compiler_gnu=$ac_compiler_gnu
Eric Pouech18ad24a2000-01-16 22:16:33 +00003519
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003520fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003522$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3523if test $ac_compiler_gnu = yes; then
3524 GCC=yes
3525else
3526 GCC=
3527fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003528ac_test_CFLAGS=${CFLAGS+set}
3529ac_save_CFLAGS=$CFLAGS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003531$as_echo_n "checking whether $CC accepts -g... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003532if ${ac_cv_prog_cc_g+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003533 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003534else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003535 ac_save_c_werror_flag=$ac_c_werror_flag
3536 ac_c_werror_flag=yes
3537 ac_cv_prog_cc_g=no
3538 CFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003540/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003541
3542int
3543main ()
3544{
3545
3546 ;
3547 return 0;
3548}
3549_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003550if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00003551 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003552else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003553 CFLAGS=""
3554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003555/* end confdefs.h. */
3556
3557int
3558main ()
3559{
3560
3561 ;
3562 return 0;
3563}
3564_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003565if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003566
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003567else
3568 ac_c_werror_flag=$ac_save_c_werror_flag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003569 CFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003571/* end confdefs.h. */
3572
3573int
3574main ()
3575{
3576
3577 ;
3578 return 0;
3579}
3580_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003581if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003582 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003583fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003585fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003587fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003589 ac_c_werror_flag=$ac_save_c_werror_flag
3590fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003592$as_echo "$ac_cv_prog_cc_g" >&6; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003593if test "$ac_test_CFLAGS" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003594 CFLAGS=$ac_save_CFLAGS
Eric Pouech18ad24a2000-01-16 22:16:33 +00003595elif test $ac_cv_prog_cc_g = yes; then
3596 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003597 CFLAGS="-g -O2"
3598 else
Eric Pouech18ad24a2000-01-16 22:16:33 +00003599 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003600 fi
3601else
Eric Pouech18ad24a2000-01-16 22:16:33 +00003602 if test "$GCC" = yes; then
3603 CFLAGS="-O2"
3604 else
3605 CFLAGS=
3606 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003607fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003609$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003610if ${ac_cv_prog_cc_c89+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003611 $as_echo_n "(cached) " >&6
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003612else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003613 ac_cv_prog_cc_c89=no
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003614ac_save_CC=$CC
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003616/* end confdefs.h. */
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003617#include <stdarg.h>
3618#include <stdio.h>
André Hentschelcecf1052012-06-02 18:58:39 +02003619struct stat;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003620/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3621struct buf { int x; };
3622FILE * (*rcsopen) (struct buf *, struct stat *, int);
3623static char *e (p, i)
3624 char **p;
3625 int i;
3626{
3627 return p[i];
3628}
3629static char *f (char * (*g) (char **, int), char **p, ...)
3630{
3631 char *s;
3632 va_list v;
3633 va_start (v,p);
3634 s = g (p, va_arg (v,int));
3635 va_end (v);
3636 return s;
3637}
Alexandre Julliard875927f2004-01-02 01:55:29 +00003638
3639/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3640 function prototypes and stuff, but not '\xHH' hex character constants.
3641 These don't provoke an error unfortunately, instead are silently treated
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003642 as 'x'. The following induces an error, until -std is added to get
Alexandre Julliard875927f2004-01-02 01:55:29 +00003643 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3644 array size at least. It's necessary to write '\x00'==0 to get something
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003645 that's true only with -std. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00003646int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3647
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02003648/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3649 inside strings and character constants. */
3650#define FOO(x) 'x'
3651int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3652
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003653int test (int i, double x);
3654struct s1 {int (*f) (int a);};
3655struct s2 {int (*f) (double a);};
3656int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3657int argc;
3658char **argv;
3659int
3660main ()
3661{
3662return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3663 ;
3664 return 0;
3665}
3666_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003667for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3668 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003669do
3670 CC="$ac_save_CC $ac_arg"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003671 if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003672 ac_cv_prog_cc_c89=$ac_arg
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003673fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003674rm -f core conftest.err conftest.$ac_objext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003675 test "x$ac_cv_prog_cc_c89" != "xno" && break
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003676done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003677rm -f conftest.$ac_ext
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003678CC=$ac_save_CC
3679
3680fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003681# AC_CACHE_VAL
3682case "x$ac_cv_prog_cc_c89" in
3683 x)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003685$as_echo "none needed" >&6; } ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003686 xno)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003688$as_echo "unsupported" >&6; } ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003689 *)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003690 CC="$CC $ac_cv_prog_cc_c89"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003692$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003693esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003694if test "x$ac_cv_prog_cc_c89" != xno; then :
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003695
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003696fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003697
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003698ac_ext=c
3699ac_cpp='$CPP $CPPFLAGS'
3700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702ac_compiler_gnu=$ac_cv_c_compiler_gnu
3703
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003704ac_ext=cpp
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003705ac_cpp='$CXXCPP $CPPFLAGS'
3706ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003709if test -z "$CXX"; then
3710 if test -n "$CCC"; then
3711 CXX=$CCC
3712 else
3713 if test -n "$ac_tool_prefix"; then
3714 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 +00003715 do
3716 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3717set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003719$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003720if ${ac_cv_prog_CXX+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003721 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003722else
3723 if test -n "$CXX"; then
3724 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3725else
3726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727for as_dir in $PATH
3728do
3729 IFS=$as_save_IFS
3730 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003731 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02003732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003733 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003735 break 2
3736 fi
3737done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003738 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003739IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003740
3741fi
3742fi
3743CXX=$ac_cv_prog_CXX
3744if test -n "$CXX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003746$as_echo "$CXX" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003747else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003749$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003750fi
3751
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003752
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003753 test -n "$CXX" && break
3754 done
3755fi
3756if test -z "$CXX"; then
3757 ac_ct_CXX=$CXX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003758 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 +00003759do
3760 # Extract the first word of "$ac_prog", so it can be a program name with args.
3761set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003763$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003764if ${ac_cv_prog_ac_ct_CXX+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003765 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003766else
3767 if test -n "$ac_ct_CXX"; then
3768 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3769else
3770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771for as_dir in $PATH
3772do
3773 IFS=$as_save_IFS
3774 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003775 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02003776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003777 ac_cv_prog_ac_ct_CXX="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003779 break 2
3780 fi
3781done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003782 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003783IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003784
3785fi
3786fi
3787ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3788if test -n "$ac_ct_CXX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003790$as_echo "$ac_ct_CXX" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003791else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003793$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003794fi
3795
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003796
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003797 test -n "$ac_ct_CXX" && break
3798done
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003799
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003800 if test "x$ac_ct_CXX" = x; then
3801 CXX="g++"
3802 else
3803 case $cross_compiling:$ac_tool_warned in
3804yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003805{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003806$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003807ac_tool_warned=yes ;;
3808esac
3809 CXX=$ac_ct_CXX
3810 fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003811fi
3812
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003813 fi
3814fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003815# Provide some information about the compiler.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003816$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003817set X $ac_compile
3818ac_compiler=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003819for ac_option in --version -v -V -qversion; do
3820 { { ac_try="$ac_compiler $ac_option >&5"
Jeremy White0ebeb532006-06-20 13:18:41 +02003821case "(($ac_try" in
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3824esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3826$as_echo "$ac_try_echo"; } >&5
3827 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003828 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003829 if test -s conftest.err; then
3830 sed '10a\
3831... rest of stderr output deleted ...
3832 10q' conftest.err >conftest.er1
3833 cat conftest.er1 >&5
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003834 fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003835 rm -f conftest.er1 conftest.err
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837 test $ac_status = 0; }
3838done
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003839
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003841$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003842if ${ac_cv_cxx_compiler_gnu+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003843 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003844else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003846/* end confdefs.h. */
3847
3848int
3849main ()
3850{
3851#ifndef __GNUC__
3852 choke me
3853#endif
3854
3855 ;
3856 return 0;
3857}
3858_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003859if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003860 ac_compiler_gnu=yes
3861else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003862 ac_compiler_gnu=no
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003863fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003865ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3866
3867fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003869$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3870if test $ac_compiler_gnu = yes; then
3871 GXX=yes
3872else
3873 GXX=
3874fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003875ac_test_CXXFLAGS=${CXXFLAGS+set}
3876ac_save_CXXFLAGS=$CXXFLAGS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003878$as_echo_n "checking whether $CXX accepts -g... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003879if ${ac_cv_prog_cxx_g+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003880 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003881else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003882 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3883 ac_cxx_werror_flag=yes
3884 ac_cv_prog_cxx_g=no
3885 CXXFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003887/* end confdefs.h. */
3888
3889int
3890main ()
3891{
3892
3893 ;
3894 return 0;
3895}
3896_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003897if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003898 ac_cv_prog_cxx_g=yes
3899else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003900 CXXFLAGS=""
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003902/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003903
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003904int
3905main ()
3906{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003907
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003908 ;
3909 return 0;
3910}
3911_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003912if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003913
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003914else
3915 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003916 CXXFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003918/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003919
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003920int
3921main ()
3922{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003923
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003924 ;
3925 return 0;
3926}
3927_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003928if ac_fn_cxx_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003929 ac_cv_prog_cxx_g=yes
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003930fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003932fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003934fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003936 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3937fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003939$as_echo "$ac_cv_prog_cxx_g" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003940if test "$ac_test_CXXFLAGS" = set; then
3941 CXXFLAGS=$ac_save_CXXFLAGS
3942elif test $ac_cv_prog_cxx_g = yes; then
3943 if test "$GXX" = yes; then
3944 CXXFLAGS="-g -O2"
3945 else
3946 CXXFLAGS="-g"
3947 fi
3948else
3949 if test "$GXX" = yes; then
3950 CXXFLAGS="-O2"
3951 else
3952 CXXFLAGS=
3953 fi
3954fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003955ac_ext=c
3956ac_cpp='$CPP $CPPFLAGS'
3957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3959ac_compiler_gnu=$ac_cv_c_compiler_gnu
3960
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003961if test -n "$ac_tool_prefix"; then
3962 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3963set dummy ${ac_tool_prefix}cpp; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003965$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003966if ${ac_cv_prog_CPPBIN+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003967 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003968else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003969 if test -n "$CPPBIN"; then
3970 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003971else
3972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973for as_dir in $PATH
3974do
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003977 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02003978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003979 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003981 break 2
3982 fi
3983done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003984 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003985IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003986
3987fi
3988fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003989CPPBIN=$ac_cv_prog_CPPBIN
3990if test -n "$CPPBIN"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003992$as_echo "$CPPBIN" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003993else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003995$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003996fi
3997
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003998
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003999fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00004000if test -z "$ac_cv_prog_CPPBIN"; then
4001 ac_ct_CPPBIN=$CPPBIN
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004002 # Extract the first word of "cpp", so it can be a program name with args.
4003set dummy cpp; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004005$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004006if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004007 $as_echo_n "(cached) " >&6
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004008else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00004009 if test -n "$ac_ct_CPPBIN"; then
4010 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004011else
4012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013for as_dir in $PATH
4014do
4015 IFS=$as_save_IFS
4016 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004017 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02004018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliarda631ef62004-03-03 20:30:46 +00004019 ac_cv_prog_ac_ct_CPPBIN="cpp"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004021 break 2
4022 fi
4023done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004024 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004025IFS=$as_save_IFS
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004026
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004027fi
4028fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00004029ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4030if test -n "$ac_ct_CPPBIN"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004032$as_echo "$ac_ct_CPPBIN" >&6; }
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004033else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004035$as_echo "no" >&6; }
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004036fi
4037
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004038 if test "x$ac_ct_CPPBIN" = x; then
4039 CPPBIN="cpp"
4040 else
4041 case $cross_compiling:$ac_tool_warned in
4042yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004043{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004044$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004045ac_tool_warned=yes ;;
4046esac
4047 CPPBIN=$ac_ct_CPPBIN
4048 fi
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004049else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00004050 CPPBIN="$ac_cv_prog_CPPBIN"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004051fi
4052
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004053
Alexandre Julliard1aea4ef2009-08-27 13:35:46 +02004054cat >>confdefs.h <<_ACEOF
4055#define EXEEXT "$ac_exeext"
4056_ACEOF
4057
4058
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004059case $host in
Ken Thomases42664332009-05-01 22:59:52 -05004060 *-darwin*)
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004061 if test "x$enable_win64" = "xyes"
Ken Thomases42664332009-05-01 22:59:52 -05004062 then
4063 CC="$CC -m64"
4064 CXX="$CXX -m64"
Ken Thomases42664332009-05-01 22:59:52 -05004065 host_cpu="x86_64"
4066 notice_platform="64-bit "
4067 TARGETFLAGS="-m64"
4068
4069 else
4070 CC="$CC -m32"
4071 CXX="$CXX -m32"
Ken Thomases42664332009-05-01 22:59:52 -05004072 host_cpu="i386"
4073 notice_platform="32-bit "
4074 TARGETFLAGS="-m32"
4075
4076 enable_win16=${enable_win16:-yes}
4077 fi
Ken Thomases9cb7a972012-04-04 17:41:10 -05004078 with_fontconfig=${with_fontconfig:-no}
Ken Thomases42664332009-05-01 22:59:52 -05004079 ;;
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004080 x86_64*)
Alexandre Julliard6b4ed0f2009-01-12 19:29:43 +01004081 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004082 then
4083 CC="$CC -m32"
4084 CXX="$CXX -m32"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004086$as_echo_n "checking whether $CC works... " >&6; }
4087
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004089/* end confdefs.h. */
4090
4091int
4092main ()
4093{
4094
4095 ;
4096 return 0;
4097}
4098_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004099if ac_fn_c_try_link "$LINENO"; then :
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004101$as_echo "yes" >&6; }
4102else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004104$as_echo "no" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004105 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 +01004106fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004107rm -f core conftest.err conftest.$ac_objext \
4108 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004109 host_cpu="i386"
4110 notice_platform="32-bit "
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004111 TARGETFLAGS="-m32"
4112
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004113 enable_win16=${enable_win16:-yes}
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004114 else
Alexandre Julliard8812d242009-06-14 11:19:54 +02004115 if test "x${GCC}" = "xyes"
4116 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004118$as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard8812d242009-06-14 11:19:54 +02004120/* end confdefs.h. */
4121#include <stdarg.h>
4122int
4123main ()
4124{
4125void func(__builtin_ms_va_list *args);
4126 ;
4127 return 0;
4128}
4129_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004130if ac_fn_c_try_compile "$LINENO"; then :
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004132$as_echo "yes" >&6; }
4133else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004135$as_echo "no" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004136 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004137fi
Alexandre Julliard8812d242009-06-14 11:19:54 +02004138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139 fi
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004140 TARGETFLAGS="-m64"
4141
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004142 fi
4143 ;;
André Hentschel33ca0512012-04-29 21:43:43 +02004144 arm*)
André Hentschel74518c82012-06-25 00:22:16 +02004145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb" >&5
4146$as_echo_n "checking whether $CC supports Thumb... " >&6; }
André Hentschel33ca0512012-04-29 21:43:43 +02004147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148/* end confdefs.h. */
4149int ac_test(int i) { return i; }
4150int
4151main ()
4152{
André Hentschel74518c82012-06-25 00:22:16 +02004153asm(".thumb\nblx ac_test\n.arm"); if (ac_test(1)) return 1
André Hentschel33ca0512012-04-29 21:43:43 +02004154 ;
4155 return 0;
4156}
4157_ACEOF
4158if ac_fn_c_try_link "$LINENO"; then :
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4160$as_echo "yes" >&6; }
4161else
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163$as_echo "no" >&6; }
André Hentschel74518c82012-06-25 00:22:16 +02004164 as_fn_error $? "You need a target with Thumb support to build Wine for ARM." "$LINENO" 5
André Hentschel33ca0512012-04-29 21:43:43 +02004165fi
4166rm -f core conftest.err conftest.$ac_objext \
4167 conftest$ac_exeext conftest.$ac_ext
4168 CFLAGS="$CFLAGS -marm"
4169 ;;
Alexandre Julliard391fce62009-04-02 12:59:52 +02004170 *-mingw32*|*-cygwin*)
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004171 enable_win16=${enable_win16:-no}
Alexandre Goujonac0a38c2010-03-01 21:39:40 +01004172 CFLAGS="$CFLAGS -D_WIN32"
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004173 ;;
4174 i[3456789]86*)
4175 enable_win16=${enable_win16:-yes}
4176 ;;
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004177esac
4178
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004179enable_win16=${enable_win16:-no}
Alexandre Julliard4422d222011-05-10 13:26:28 +02004180enable_win64=${enable_win64:-no}
Alexandre Julliard776820e2009-02-23 17:46:33 +01004181
Alexandre Julliard95081552010-02-09 19:08:17 +01004182enable_winetest=${enable_winetest:-$enable_tests}
4183
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004184if test -n "$with_wine64"
4185then
4186 if test "x$enable_win64" = "xyes"
4187 then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004188 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004189--enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4190 fi
Alexandre Julliard90647772009-08-13 19:48:42 +02004191 WOW64_DISABLE=\#
4192
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004193 enable_fonts=${enable_fonts:-no}
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004194 enable_server=${enable_server:-no}
4195 enable_tools=${enable_tools:-no}
Alexandre Julliardb3265322010-04-21 12:28:22 +02004196elif test "x$enable_win64" = "xyes"
4197then
4198 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004199fi
4200
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004202$as_echo_n "checking for the directory containing the Wine tools... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004203if ${wine_cv_toolsdir+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004204 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004205else
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004206 wine_cv_toolsdir="$with_wine_tools"
4207 if test -z "$with_wine_tools"; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004208 if test "$cross_compiling" = "yes"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004209 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004210 elif test -n "$with_wine64"; then
4211 wine_cv_toolsdir="$with_wine64"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004212 fi
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004213 fi
4214 if test -z "$wine_cv_toolsdir"; then
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02004215 wine_cv_toolsdir="\$(top_builddir)"
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004216 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4217 case "$wine_cv_toolsdir" in
4218 /*) ;;
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02004219 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004220 esac
4221 else
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004222 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004223 fi
4224fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004226$as_echo "$wine_cv_toolsdir" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004227TOOLSDIR=$wine_cv_toolsdir
4228
Alexandre Julliard4d135d92009-02-16 13:08:44 +01004229if test -n "$host_alias" -a "$host_alias" != "$build_alias"
Alexandre Julliard424cb272008-12-26 17:54:50 +01004230then
Alexandre Julliard0fea4a52009-02-12 10:28:23 +01004231 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
Alexandre Julliard424cb272008-12-26 17:54:50 +01004232
4233fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004234
Alexandre Julliard40916272007-03-08 13:19:50 +01004235for ac_prog in flex
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004236do
4237 # Extract the first word of "$ac_prog", so it can be a program name with args.
4238set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004240$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004241if ${ac_cv_prog_FLEX+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004242 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004243else
Alexandre Julliard40916272007-03-08 13:19:50 +01004244 if test -n "$FLEX"; then
4245 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004246else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248for as_dir in $PATH
4249do
4250 IFS=$as_save_IFS
4251 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004252 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02004253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliard40916272007-03-08 13:19:50 +01004254 ac_cv_prog_FLEX="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004256 break 2
4257 fi
4258done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004259 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004260IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004261
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004262fi
4263fi
Alexandre Julliard40916272007-03-08 13:19:50 +01004264FLEX=$ac_cv_prog_FLEX
4265if test -n "$FLEX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004267$as_echo "$FLEX" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004268else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004270$as_echo "no" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004271fi
4272
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004273
Alexandre Julliard40916272007-03-08 13:19:50 +01004274 test -n "$FLEX" && break
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004275done
Alexandre Julliard40916272007-03-08 13:19:50 +01004276test -n "$FLEX" || FLEX="none"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004277
Alexandre Julliard40916272007-03-08 13:19:50 +01004278if test "$FLEX" = "none"
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004279then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004280 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004281fi
Michael Stefaniucce307332009-12-29 18:07:02 +01004282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4283$as_echo_n "checking whether flex is recent enough... " >&6; }
4284cat >conftest.l <<EOF
4285%top{
4286#include "prediluvian.h"
4287}
4288%%
4289EOF
Alexandre Julliard27816c72010-07-28 11:04:46 +02004290if $FLEX -t conftest.l >/dev/null 2>&5
Michael Stefaniucce307332009-12-29 18:07:02 +01004291then
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4293$as_echo "yes" >&6; }
4294else
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296$as_echo "no" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004297 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 +01004298fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004299
Mike McCormackc068f672004-03-16 03:11:39 +00004300for ac_prog in bison
4301do
4302 # Extract the first word of "$ac_prog", so it can be a program name with args.
4303set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004305$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004306if ${ac_cv_prog_BISON+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004307 $as_echo_n "(cached) " >&6
Mike McCormackc068f672004-03-16 03:11:39 +00004308else
4309 if test -n "$BISON"; then
4310 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4311else
4312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313for as_dir in $PATH
4314do
4315 IFS=$as_save_IFS
4316 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004317 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02004318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Mike McCormackc068f672004-03-16 03:11:39 +00004319 ac_cv_prog_BISON="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormackc068f672004-03-16 03:11:39 +00004321 break 2
4322 fi
4323done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004324 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004325IFS=$as_save_IFS
Mike McCormackc068f672004-03-16 03:11:39 +00004326
4327fi
4328fi
4329BISON=$ac_cv_prog_BISON
4330if test -n "$BISON"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004332$as_echo "$BISON" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00004333else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004335$as_echo "no" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00004336fi
4337
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004338
Mike McCormackc068f672004-03-16 03:11:39 +00004339 test -n "$BISON" && break
4340done
4341test -n "$BISON" || BISON="none"
4342
4343if test "$BISON" = "none"
4344then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004345 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
Mike McCormackc068f672004-03-16 03:11:39 +00004346fi
4347
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004348if test -n "$ac_tool_prefix"; then
Francois Gouget86bd0462008-06-26 14:05:57 +02004349 for ac_prog in ar gar
4350 do
4351 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4352set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004354$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004355if ${ac_cv_prog_AR+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004356 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004357else
4358 if test -n "$AR"; then
4359 ac_cv_prog_AR="$AR" # Let the user override the test.
4360else
4361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362for as_dir in $PATH
4363do
4364 IFS=$as_save_IFS
4365 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004366 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02004367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Francois Gouget86bd0462008-06-26 14:05:57 +02004368 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004370 break 2
4371 fi
4372done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004373 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004374IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004375
4376fi
4377fi
4378AR=$ac_cv_prog_AR
4379if test -n "$AR"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004381$as_echo "$AR" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004382else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004384$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004385fi
4386
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004387
Francois Gouget86bd0462008-06-26 14:05:57 +02004388 test -n "$AR" && break
4389 done
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004390fi
Francois Gouget86bd0462008-06-26 14:05:57 +02004391if test -z "$AR"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004392 ac_ct_AR=$AR
Francois Gouget86bd0462008-06-26 14:05:57 +02004393 for ac_prog in ar gar
4394do
4395 # Extract the first word of "$ac_prog", so it can be a program name with args.
4396set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004398$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004399if ${ac_cv_prog_ac_ct_AR+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004400 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004401else
4402 if test -n "$ac_ct_AR"; then
4403 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4404else
4405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406for as_dir in $PATH
4407do
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004410 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02004411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Francois Gouget86bd0462008-06-26 14:05:57 +02004412 ac_cv_prog_ac_ct_AR="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004414 break 2
4415 fi
4416done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004417 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004418IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004419
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004420fi
4421fi
4422ac_ct_AR=$ac_cv_prog_ac_ct_AR
4423if test -n "$ac_ct_AR"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004425$as_echo "$ac_ct_AR" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004426else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004428$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004429fi
4430
Francois Gouget86bd0462008-06-26 14:05:57 +02004431
4432 test -n "$ac_ct_AR" && break
4433done
4434
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004435 if test "x$ac_ct_AR" = x; then
4436 AR="ar"
4437 else
4438 case $cross_compiling:$ac_tool_warned in
4439yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004440{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004441$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004442ac_tool_warned=yes ;;
4443esac
4444 AR=$ac_ct_AR
4445 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004446fi
4447
Rob Shearman0c694d72008-03-04 15:53:41 +00004448ARFLAGS=rc
4449
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004450if test -n "$ac_tool_prefix"; then
4451 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4452set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004454$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004455if ${ac_cv_prog_RANLIB+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004456 $as_echo_n "(cached) " >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004457else
4458 if test -n "$RANLIB"; then
4459 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4460else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462for as_dir in $PATH
4463do
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004466 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02004467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004468 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004470 break 2
4471 fi
4472done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004473 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004474IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004475
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004476fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004477fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004478RANLIB=$ac_cv_prog_RANLIB
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004479if test -n "$RANLIB"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004481$as_echo "$RANLIB" >&6; }
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004482else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004484$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004485fi
4486
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004487
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004488fi
4489if test -z "$ac_cv_prog_RANLIB"; then
4490 ac_ct_RANLIB=$RANLIB
4491 # Extract the first word of "ranlib", so it can be a program name with args.
4492set dummy ranlib; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004494$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004495if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004496 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004497else
4498 if test -n "$ac_ct_RANLIB"; then
4499 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4500else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502for as_dir in $PATH
4503do
4504 IFS=$as_save_IFS
4505 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004506 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02004507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004508 ac_cv_prog_ac_ct_RANLIB="ranlib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004510 break 2
4511 fi
4512done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004513 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004514IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004515
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004516fi
4517fi
4518ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4519if test -n "$ac_ct_RANLIB"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004521$as_echo "$ac_ct_RANLIB" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004522else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004524$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004525fi
4526
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004527 if test "x$ac_ct_RANLIB" = x; then
4528 RANLIB=":"
4529 else
4530 case $cross_compiling:$ac_tool_warned in
4531yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004532{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004533$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004534ac_tool_warned=yes ;;
4535esac
4536 RANLIB=$ac_ct_RANLIB
4537 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004538else
4539 RANLIB="$ac_cv_prog_RANLIB"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004540fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004541
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004543$as_echo_n "checking whether ln -s works... " >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004544LN_S=$as_ln_s
4545if test "$LN_S" = "ln -s"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004547$as_echo "yes" >&6; }
Alexandre Julliard641ee761997-08-04 16:34:36 +00004548else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004550$as_echo "no, using $LN_S" >&6; }
Alexandre Julliard641ee761997-08-04 16:34:36 +00004551fi
4552
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004554$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004555if ${ac_cv_path_GREP+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004556 $as_echo_n "(cached) " >&6
Alexandre Julliardc6264912004-08-16 20:09:37 +00004557else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004558 if test -z "$GREP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004559 ac_path_GREP_found=false
Alexandre Julliardabf50482008-10-31 12:56:53 +01004560 # Loop through the user's path and test for each of PROGNAME-LIST
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004562for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4563do
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004566 for ac_prog in grep ggrep; do
Alexandre Julliardabf50482008-10-31 12:56:53 +01004567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
André Hentschelcecf1052012-06-02 18:58:39 +02004569 as_fn_executable_p "$ac_path_GREP" || continue
Alexandre Julliardabf50482008-10-31 12:56:53 +01004570# Check for GNU ac_path_GREP and select it if it is found.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004571 # Check for GNU $ac_path_GREP
4572case `"$ac_path_GREP" --version 2>&1` in
4573*GNU*)
4574 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4575*)
4576 ac_count=0
Alexandre Julliardabf50482008-10-31 12:56:53 +01004577 $as_echo_n 0123456789 >"conftest.in"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004578 while :
4579 do
4580 cat "conftest.in" "conftest.in" >"conftest.tmp"
4581 mv "conftest.tmp" "conftest.in"
4582 cp "conftest.in" "conftest.nl"
Alexandre Julliardabf50482008-10-31 12:56:53 +01004583 $as_echo 'GREP' >> "conftest.nl"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004584 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4585 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004586 as_fn_arith $ac_count + 1 && ac_count=$as_val
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004587 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4588 # Best one so far, save it but keep looking for a better one
4589 ac_cv_path_GREP="$ac_path_GREP"
4590 ac_path_GREP_max=$ac_count
Alexandre Julliardc6264912004-08-16 20:09:37 +00004591 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004592 # 10*(2^10) chars as input seems more than enough
4593 test $ac_count -gt 10 && break
4594 done
Jeremy White0ebeb532006-06-20 13:18:41 +02004595 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004596esac
4597
Alexandre Julliardabf50482008-10-31 12:56:53 +01004598 $ac_path_GREP_found && break 3
4599 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004600 done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004601 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004602IFS=$as_save_IFS
Alexandre Julliardabf50482008-10-31 12:56:53 +01004603 if test -z "$ac_cv_path_GREP"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004604 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 +01004605 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004606else
4607 ac_cv_path_GREP=$GREP
4608fi
4609
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004610fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004612$as_echo "$ac_cv_path_GREP" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004613 GREP="$ac_cv_path_GREP"
4614
4615
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004617$as_echo_n "checking for egrep... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004618if ${ac_cv_path_EGREP+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004619 $as_echo_n "(cached) " >&6
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004620else
4621 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4622 then ac_cv_path_EGREP="$GREP -E"
4623 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004624 if test -z "$EGREP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004625 ac_path_EGREP_found=false
Alexandre Julliardabf50482008-10-31 12:56:53 +01004626 # Loop through the user's path and test for each of PROGNAME-LIST
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004628for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4629do
4630 IFS=$as_save_IFS
4631 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004632 for ac_prog in egrep; do
Alexandre Julliardabf50482008-10-31 12:56:53 +01004633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
André Hentschelcecf1052012-06-02 18:58:39 +02004635 as_fn_executable_p "$ac_path_EGREP" || continue
Alexandre Julliardabf50482008-10-31 12:56:53 +01004636# Check for GNU ac_path_EGREP and select it if it is found.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004637 # Check for GNU $ac_path_EGREP
4638case `"$ac_path_EGREP" --version 2>&1` in
4639*GNU*)
4640 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4641*)
4642 ac_count=0
Alexandre Julliardabf50482008-10-31 12:56:53 +01004643 $as_echo_n 0123456789 >"conftest.in"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004644 while :
4645 do
4646 cat "conftest.in" "conftest.in" >"conftest.tmp"
4647 mv "conftest.tmp" "conftest.in"
4648 cp "conftest.in" "conftest.nl"
Alexandre Julliardabf50482008-10-31 12:56:53 +01004649 $as_echo 'EGREP' >> "conftest.nl"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004650 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4651 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004652 as_fn_arith $ac_count + 1 && ac_count=$as_val
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004653 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4654 # Best one so far, save it but keep looking for a better one
4655 ac_cv_path_EGREP="$ac_path_EGREP"
4656 ac_path_EGREP_max=$ac_count
4657 fi
4658 # 10*(2^10) chars as input seems more than enough
4659 test $ac_count -gt 10 && break
4660 done
Jeremy White0ebeb532006-06-20 13:18:41 +02004661 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004662esac
4663
Alexandre Julliardabf50482008-10-31 12:56:53 +01004664 $ac_path_EGREP_found && break 3
4665 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004666 done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004667 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004668IFS=$as_save_IFS
Alexandre Julliardabf50482008-10-31 12:56:53 +01004669 if test -z "$ac_cv_path_EGREP"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004670 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 +01004671 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004672else
4673 ac_cv_path_EGREP=$EGREP
4674fi
4675
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004676 fi
4677fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004679$as_echo "$ac_cv_path_EGREP" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004680 EGREP="$ac_cv_path_EGREP"
Alexandre Julliardc6264912004-08-16 20:09:37 +00004681
4682
James Juranffe6b761999-06-12 08:21:57 +00004683# Extract the first word of "ldconfig", so it can be a program name with args.
4684set dummy ldconfig; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004686$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004687if ${ac_cv_path_LDCONFIG+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004688 $as_echo_n "(cached) " >&6
James Juranffe6b761999-06-12 08:21:57 +00004689else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004690 case $LDCONFIG in
4691 [\\/]* | ?:[\\/]*)
James Juranffe6b761999-06-12 08:21:57 +00004692 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4693 ;;
4694 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Medland91372b32002-04-20 21:00:42 +00004696for as_dir in /sbin /usr/sbin $PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004697do
4698 IFS=$as_save_IFS
4699 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004700 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02004701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004702 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004704 break 2
4705 fi
4706done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004707 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004708IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004709
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004710 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00004711 ;;
4712esac
4713fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004714LDCONFIG=$ac_cv_path_LDCONFIG
James Juranffe6b761999-06-12 08:21:57 +00004715if test -n "$LDCONFIG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004717$as_echo "$LDCONFIG" >&6; }
James Juranffe6b761999-06-12 08:21:57 +00004718else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004720$as_echo "no" >&6; }
James Juranffe6b761999-06-12 08:21:57 +00004721fi
4722
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004723
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004724# Find a good install program. We prefer a C program (faster),
4725# so one script is as good as another. But avoid the broken or
4726# incompatible versions:
4727# SysV /etc/install, /usr/sbin/install
4728# SunOS /usr/etc/install
4729# IRIX /sbin/install
4730# AIX /bin/install
4731# AmigaOS /C/install, which installs bootblocks on floppy discs
4732# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4733# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4734# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Alexandre Julliard875927f2004-01-02 01:55:29 +00004735# OS/2's system install, which has a completely different semantic
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004736# ./install, which can be erroneously created by make from ./install.sh.
Alexandre Julliardabf50482008-10-31 12:56:53 +01004737# Reject install programs that cannot install multiple files.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004739$as_echo_n "checking for a BSD-compatible install... " >&6; }
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004740if test -z "$INSTALL"; then
Alexandre Julliard9797da42011-04-27 17:37:43 +02004741if ${ac_cv_path_install+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004742 $as_echo_n "(cached) " >&6
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004743else
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745for as_dir in $PATH
4746do
4747 IFS=$as_save_IFS
4748 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004749 # Account for people who put trailing slashes in PATH elements.
4750case $as_dir/ in #((
4751 ./ | .// | /[cC]/* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004752 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004753 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004754 /usr/ucb/* ) ;;
4755 *)
4756 # OSF1 and SCO ODT 3.0 have their own names for install.
4757 # Don't use installbsd from OSF since it installs stuff as root
4758 # by default.
4759 for ac_prog in ginstall scoinst install; do
4760 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02004761 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00004762 if test $ac_prog = install &&
4763 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4764 # AIX install. It has an incompatible calling convention.
4765 :
4766 elif test $ac_prog = install &&
4767 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4768 # program-specific install script used by HP pwplus--don't use.
4769 :
4770 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004771 rm -rf conftest.one conftest.two conftest.dir
4772 echo one > conftest.one
4773 echo two > conftest.two
4774 mkdir conftest.dir
4775 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4776 test -s conftest.one && test -s conftest.two &&
4777 test -s conftest.dir/conftest.one &&
4778 test -s conftest.dir/conftest.two
4779 then
4780 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4781 break 3
4782 fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004783 fi
4784 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004785 done
4786 done
4787 ;;
4788esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01004789
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004790 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004791IFS=$as_save_IFS
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004792
Alexandre Julliardabf50482008-10-31 12:56:53 +01004793rm -rf conftest.one conftest.two conftest.dir
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004794
4795fi
4796 if test "${ac_cv_path_install+set}" = set; then
4797 INSTALL=$ac_cv_path_install
4798 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004799 # As a last resort, use the slow shell script. Don't cache a
4800 # value for INSTALL within a source directory, because that will
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004801 # break other packages using the cache if that directory is
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004802 # removed, or if the value is a relative name.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004803 INSTALL=$ac_install_sh
4804 fi
4805fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004807$as_echo "$INSTALL" >&6; }
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004808
4809# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4810# It thinks the first close brace ends the variable substitution.
4811test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4812
4813test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4814
4815test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4816
4817case "$INSTALL" in
Alexandre Julliard8418d8f2002-12-24 02:39:47 +00004818 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02004819 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004820esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004821
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004822for ac_prog in lclint lint
4823do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004824 # Extract the first word of "$ac_prog", so it can be a program name with args.
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004825set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004827$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004828if ${ac_cv_prog_LINT+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004829 $as_echo_n "(cached) " >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004830else
4831 if test -n "$LINT"; then
4832 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4833else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835for as_dir in $PATH
4836do
4837 IFS=$as_save_IFS
4838 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004839 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02004840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004841 ac_cv_prog_LINT="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004843 break 2
4844 fi
4845done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004846 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004847IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004848
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004849fi
4850fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004851LINT=$ac_cv_prog_LINT
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004852if test -n "$LINT"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004854$as_echo "$LINT" >&6; }
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004855else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004857$as_echo "no" >&6; }
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004858fi
4859
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004860
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004861 test -n "$LINT" && break
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004862done
4863
4864if test "$LINT" = "lint"
4865then
4866 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4867 fi
4868
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004869
Huw Davies00acb5f2004-08-17 22:33:14 +00004870for ac_prog in fontforge
4871do
4872 # Extract the first word of "$ac_prog", so it can be a program name with args.
4873set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004875$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004876if ${ac_cv_prog_FONTFORGE+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004877 $as_echo_n "(cached) " >&6
Huw Davies00acb5f2004-08-17 22:33:14 +00004878else
4879 if test -n "$FONTFORGE"; then
4880 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4881else
4882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883for as_dir in $PATH
4884do
4885 IFS=$as_save_IFS
4886 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004887 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02004888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Huw Davies00acb5f2004-08-17 22:33:14 +00004889 ac_cv_prog_FONTFORGE="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Huw Davies00acb5f2004-08-17 22:33:14 +00004891 break 2
4892 fi
4893done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004894 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004895IFS=$as_save_IFS
Huw Davies00acb5f2004-08-17 22:33:14 +00004896
4897fi
4898fi
4899FONTFORGE=$ac_cv_prog_FONTFORGE
4900if test -n "$FONTFORGE"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004902$as_echo "$FONTFORGE" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00004903else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004905$as_echo "no" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00004906fi
4907
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004908
Huw Davies00acb5f2004-08-17 22:33:14 +00004909 test -n "$FONTFORGE" && break
4910done
4911test -n "$FONTFORGE" || FONTFORGE="false"
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00004912
Mike McCormack90c75bd2005-08-08 18:36:53 +00004913for ac_prog in pkg-config
4914do
4915 # Extract the first word of "$ac_prog", so it can be a program name with args.
4916set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004918$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004919if ${ac_cv_prog_PKG_CONFIG+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004920 $as_echo_n "(cached) " >&6
Mike McCormack90c75bd2005-08-08 18:36:53 +00004921else
4922 if test -n "$PKG_CONFIG"; then
4923 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4924else
4925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926for as_dir in $PATH
4927do
4928 IFS=$as_save_IFS
4929 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004930 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02004931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Mike McCormack90c75bd2005-08-08 18:36:53 +00004932 ac_cv_prog_PKG_CONFIG="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormack90c75bd2005-08-08 18:36:53 +00004934 break 2
4935 fi
4936done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004937 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004938IFS=$as_save_IFS
Mike McCormack90c75bd2005-08-08 18:36:53 +00004939
4940fi
4941fi
4942PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4943if test -n "$PKG_CONFIG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004945$as_echo "$PKG_CONFIG" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00004946else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004948$as_echo "no" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00004949fi
4950
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004951
Mike McCormack90c75bd2005-08-08 18:36:53 +00004952 test -n "$PKG_CONFIG" && break
4953done
4954test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4955
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004956for ac_prog in rsvg
4957do
4958 # Extract the first word of "$ac_prog", so it can be a program name with args.
4959set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004961$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004962if ${ac_cv_prog_RSVG+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004963 $as_echo_n "(cached) " >&6
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004964else
4965 if test -n "$RSVG"; then
4966 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4967else
4968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969for as_dir in $PATH
4970do
4971 IFS=$as_save_IFS
4972 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004973 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02004974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004975 ac_cv_prog_RSVG="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004977 break 2
4978 fi
4979done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004980 done
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004981IFS=$as_save_IFS
4982
4983fi
4984fi
4985RSVG=$ac_cv_prog_RSVG
4986if test -n "$RSVG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004988$as_echo "$RSVG" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004989else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004991$as_echo "no" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004992fi
4993
4994
4995 test -n "$RSVG" && break
4996done
4997test -n "$RSVG" || RSVG="false"
4998
Joel Holdsworth476a2be2010-04-05 11:15:03 +01004999for ac_prog in convert
5000do
5001 # Extract the first word of "$ac_prog", so it can be a program name with args.
5002set dummy $ac_prog; ac_word=$2
5003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005005if ${ac_cv_prog_CONVERT+:} false; then :
Joel Holdsworth476a2be2010-04-05 11:15:03 +01005006 $as_echo_n "(cached) " >&6
5007else
5008 if test -n "$CONVERT"; then
5009 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5010else
5011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012for as_dir in $PATH
5013do
5014 IFS=$as_save_IFS
5015 test -z "$as_dir" && as_dir=.
5016 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02005017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Joel Holdsworth476a2be2010-04-05 11:15:03 +01005018 ac_cv_prog_CONVERT="$ac_prog"
5019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5020 break 2
5021 fi
5022done
5023 done
5024IFS=$as_save_IFS
5025
5026fi
5027fi
5028CONVERT=$ac_cv_prog_CONVERT
5029if test -n "$CONVERT"; then
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5031$as_echo "$CONVERT" >&6; }
5032else
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034$as_echo "no" >&6; }
5035fi
5036
5037
5038 test -n "$CONVERT" && break
5039done
5040test -n "$CONVERT" || CONVERT="false"
5041
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005042for ac_prog in icotool
5043do
5044 # Extract the first word of "$ac_prog", so it can be a program name with args.
5045set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005047$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005048if ${ac_cv_prog_ICOTOOL+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005049 $as_echo_n "(cached) " >&6
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005050else
5051 if test -n "$ICOTOOL"; then
5052 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5053else
5054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055for as_dir in $PATH
5056do
5057 IFS=$as_save_IFS
5058 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005059 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02005060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005061 ac_cv_prog_ICOTOOL="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005063 break 2
5064 fi
5065done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005066 done
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005067IFS=$as_save_IFS
5068
5069fi
5070fi
5071ICOTOOL=$ac_cv_prog_ICOTOOL
5072if test -n "$ICOTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005074$as_echo "$ICOTOOL" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005075else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005077$as_echo "no" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005078fi
5079
5080
5081 test -n "$ICOTOOL" && break
5082done
5083test -n "$ICOTOOL" || ICOTOOL="false"
5084
Alexandre Julliard268976b2011-10-22 15:23:14 +02005085for ac_prog in msgfmt
5086do
5087 # Extract the first word of "$ac_prog", so it can be a program name with args.
5088set dummy $ac_prog; ac_word=$2
5089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090$as_echo_n "checking for $ac_word... " >&6; }
5091if ${ac_cv_prog_MSGFMT+:} false; then :
5092 $as_echo_n "(cached) " >&6
5093else
5094 if test -n "$MSGFMT"; then
5095 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5096else
5097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098for as_dir in $PATH
5099do
5100 IFS=$as_save_IFS
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02005103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliard268976b2011-10-22 15:23:14 +02005104 ac_cv_prog_MSGFMT="$ac_prog"
5105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 break 2
5107 fi
5108done
5109 done
5110IFS=$as_save_IFS
5111
5112fi
5113fi
5114MSGFMT=$ac_cv_prog_MSGFMT
5115if test -n "$MSGFMT"; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5117$as_echo "$MSGFMT" >&6; }
5118else
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120$as_echo "no" >&6; }
5121fi
5122
5123
5124 test -n "$MSGFMT" && break
5125done
5126test -n "$MSGFMT" || MSGFMT="false"
5127
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005128
Andrew Nguyen2eda9c72010-05-25 22:20:14 -05005129if test "x$enable_maintainer_mode" != "xyes"
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005130then
Andrew Nguyen2eda9c72010-05-25 22:20:14 -05005131 MAINTAINER_MODE=\#
5132
5133else
Alexandre Julliard9797da42011-04-27 17:37:43 +02005134 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5135 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 +01005136
5137 if test "$CONVERT" = false
5138 then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005139 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
Joel Holdsworthb9eae1e2010-05-16 23:07:40 +01005140 else
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5142$as_echo_n "checking for recent enough imagemagick... " >&6; }
5143 convert_version=`convert --version | head -n1`
5144 if test "x$convert_version" != "x"
5145 then
5146 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5147 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5148 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5149 then
5150 CONVERT=false
Joel Holdsworthb9eae1e2010-05-16 23:07:40 +01005151 fi
5152 fi
5153 if test "$CONVERT" = false
5154 then
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5156$as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005157 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 +01005158 else
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5160$as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5161 fi
5162 fi
Joel Holdsworth425f1382010-04-05 11:14:47 +01005163
5164 if test "$ICOTOOL" = false
5165 then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005166 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
Joel Holdsworth425f1382010-04-05 11:14:47 +01005167 else
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5169$as_echo_n "checking for recent enough icotool... " >&6; }
5170 icotool_version=`icotool --version | head -n1`
5171 if test "x$icotool_version" != "x"
5172 then
Joel Holdsworth9571f782010-05-16 23:07:33 +01005173 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5174 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
Joel Holdsworth425f1382010-04-05 11:14:47 +01005175 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5176 then
5177 ICOTOOL=false
5178 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5179 fi
5180 fi
5181 if test "$ICOTOOL" = false
5182 then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5184$as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005185 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 +01005186 else
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5188$as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5189 fi
5190 fi
5191
Alexandre Julliard268976b2011-10-22 15:23:14 +02005192 with_gettext=yes
5193 with_gettextpo=yes
5194 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5195fi
5196
5197test "x$with_gettext" != xno || MSGFMT=false
Christian Costa94969302012-03-05 20:00:20 +01005198if test "$MSGFMT" != "false"
5199then
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5201$as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5202 cat >conftest.po <<EOF
5203# comment
5204msgctxt "ctxt"
5205msgid "id"
5206msgstr "str"
5207EOF
5208 if $MSGFMT -o /dev/null conftest.po 2>&5
5209 then
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5211$as_echo "yes" >&6; }
5212 else
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5214$as_echo "no" >&6; }
5215 MSGFMT=false
5216 fi
5217fi
Alexandre Julliard268976b2011-10-22 15:23:14 +02005218if test "$MSGFMT" = false; then :
5219 case "x$with_gettext" in
Christian Costa94969302012-03-05 20:00:20 +01005220 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 +02005221 xno) ;;
Christian Costa94969302012-03-05 20:00:20 +01005222 *) as_fn_error $? "gettext tools not found (or too old), translations won't be built.
Alexandre Julliard268976b2011-10-22 15:23:14 +02005223This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5224esac
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005225fi
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00005226
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005227
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005229$as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005230if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005231 $as_echo_n "(cached) " >&6
Alexandre Julliard902da691995-11-05 14:39:02 +00005232else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005233 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005234LIBS="-li386 $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 i386_set_ldt ();
5245int
5246main ()
5247{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005248return i386_set_ldt ();
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_i386_i386_set_ldt=yes
Alexandre Julliard902da691995-11-05 14:39:02 +00005255else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005256 ac_cv_lib_i386_i386_set_ldt=no
Alexandre Julliard902da691995-11-05 14:39: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
Alexandre Julliard902da691995-11-05 14:39:02 +00005261fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005263$as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005264if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005265 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005266#define HAVE_LIBI386 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005267_ACEOF
Alexandre Julliard02e90081998-01-04 17:49:09 +00005268
5269 LIBS="-li386 $LIBS"
5270
Alexandre Julliard02e90081998-01-04 17:49:09 +00005271fi
5272
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005274$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005275if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005276 $as_echo_n "(cached) " >&6
Todd Vierlingecc76691998-12-15 17:49:02 +00005277else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005278 ac_check_lib_save_LIBS=$LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005279LIBS="-lossaudio $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005281/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005282
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005283/* Override any GCC internal prototype to avoid an error.
5284 Use char because int might match the return type of a GCC
5285 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005286#ifdef __cplusplus
5287extern "C"
5288#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005289char _oss_ioctl ();
5290int
5291main ()
5292{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005293return _oss_ioctl ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005294 ;
5295 return 0;
5296}
5297_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005298if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005299 ac_cv_lib_ossaudio__oss_ioctl=yes
Todd Vierlingecc76691998-12-15 17:49:02 +00005300else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005301 ac_cv_lib_ossaudio__oss_ioctl=no
Todd Vierlingecc76691998-12-15 17:49:02 +00005302fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005303rm -f core conftest.err conftest.$ac_objext \
5304 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005305LIBS=$ac_check_lib_save_LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005306fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005308$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005309if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005310 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005311#define HAVE_LIBOSSAUDIO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005312_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00005313
5314 LIBS="-lossaudio $LIBS"
5315
Todd Vierlingecc76691998-12-15 17:49:02 +00005316fi
5317
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005318
Alexandre Julliard82776022005-08-08 11:17:25 +00005319XLIB=""
Huw Daviese82dfab2004-08-04 19:10:26 +00005320
Huw Daviese82dfab2004-08-04 19:10:26 +00005321OPENGL_LIBS=""
Huw Daviese82dfab2004-08-04 19:10:26 +00005322
Rein Klazes7ff12562004-11-09 20:16:35 +00005323
Alexandre Julliard82776022005-08-08 11:17:25 +00005324
Ken Thomases9cb7a972012-04-04 17:41:10 -05005325test "x$with_fontconfig" != "xno" || ac_cv_header_fontconfig_fontconfig_h=no
5326
Eric Pouechbc56c4e2009-08-25 19:33:28 +02005327# Check whether --enable-largefile was given.
5328if test "${enable_largefile+set}" = set; then :
5329 enableval=$enable_largefile;
5330fi
5331
5332if test "$enable_largefile" != no; then
5333
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5335$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005336if ${ac_cv_sys_largefile_CC+:} false; then :
Eric Pouechbc56c4e2009-08-25 19:33:28 +02005337 $as_echo_n "(cached) " >&6
5338else
5339 ac_cv_sys_largefile_CC=no
5340 if test "$GCC" != yes; then
5341 ac_save_CC=$CC
5342 while :; do
5343 # IRIX 6.2 and later do not support large files by default,
5344 # so use the C compiler's -n32 option if that helps.
5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346/* end confdefs.h. */
5347#include <sys/types.h>
5348 /* Check that off_t can represent 2**63 - 1 correctly.
5349 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5350 since some C++ compilers masquerading as C compilers
5351 incorrectly reject 9223372036854775807. */
5352#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5353 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5354 && LARGE_OFF_T % 2147483647 == 1)
5355 ? 1 : -1];
5356int
5357main ()
5358{
5359
5360 ;
5361 return 0;
5362}
5363_ACEOF
5364 if ac_fn_c_try_compile "$LINENO"; then :
5365 break
5366fi
5367rm -f core conftest.err conftest.$ac_objext
5368 CC="$CC -n32"
5369 if ac_fn_c_try_compile "$LINENO"; then :
5370 ac_cv_sys_largefile_CC=' -n32'; break
5371fi
5372rm -f core conftest.err conftest.$ac_objext
5373 break
5374 done
5375 CC=$ac_save_CC
5376 rm -f conftest.$ac_ext
5377 fi
5378fi
5379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5380$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5381 if test "$ac_cv_sys_largefile_CC" != no; then
5382 CC=$CC$ac_cv_sys_largefile_CC
5383 fi
5384
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5386$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005387if ${ac_cv_sys_file_offset_bits+:} false; then :
Eric Pouechbc56c4e2009-08-25 19:33:28 +02005388 $as_echo_n "(cached) " >&6
5389else
5390 while :; do
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392/* end confdefs.h. */
5393#include <sys/types.h>
5394 /* Check that off_t can represent 2**63 - 1 correctly.
5395 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5396 since some C++ compilers masquerading as C compilers
5397 incorrectly reject 9223372036854775807. */
5398#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5399 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5400 && LARGE_OFF_T % 2147483647 == 1)
5401 ? 1 : -1];
5402int
5403main ()
5404{
5405
5406 ;
5407 return 0;
5408}
5409_ACEOF
5410if ac_fn_c_try_compile "$LINENO"; then :
5411 ac_cv_sys_file_offset_bits=no; break
5412fi
5413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415/* end confdefs.h. */
5416#define _FILE_OFFSET_BITS 64
5417#include <sys/types.h>
5418 /* Check that off_t can represent 2**63 - 1 correctly.
5419 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5420 since some C++ compilers masquerading as C compilers
5421 incorrectly reject 9223372036854775807. */
5422#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5423 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5424 && LARGE_OFF_T % 2147483647 == 1)
5425 ? 1 : -1];
5426int
5427main ()
5428{
5429
5430 ;
5431 return 0;
5432}
5433_ACEOF
5434if ac_fn_c_try_compile "$LINENO"; then :
5435 ac_cv_sys_file_offset_bits=64; break
5436fi
5437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5438 ac_cv_sys_file_offset_bits=unknown
5439 break
5440done
5441fi
5442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5443$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5444case $ac_cv_sys_file_offset_bits in #(
5445 no | unknown) ;;
5446 *)
5447cat >>confdefs.h <<_ACEOF
5448#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5449_ACEOF
5450;;
5451esac
5452rm -rf conftest*
5453 if test $ac_cv_sys_file_offset_bits = unknown; then
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5455$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005456if ${ac_cv_sys_large_files+:} false; then :
Eric Pouechbc56c4e2009-08-25 19:33:28 +02005457 $as_echo_n "(cached) " >&6
5458else
5459 while :; do
5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461/* end confdefs.h. */
5462#include <sys/types.h>
5463 /* Check that off_t can represent 2**63 - 1 correctly.
5464 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5465 since some C++ compilers masquerading as C compilers
5466 incorrectly reject 9223372036854775807. */
5467#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5468 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5469 && LARGE_OFF_T % 2147483647 == 1)
5470 ? 1 : -1];
5471int
5472main ()
5473{
5474
5475 ;
5476 return 0;
5477}
5478_ACEOF
5479if ac_fn_c_try_compile "$LINENO"; then :
5480 ac_cv_sys_large_files=no; break
5481fi
5482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484/* end confdefs.h. */
5485#define _LARGE_FILES 1
5486#include <sys/types.h>
5487 /* Check that off_t can represent 2**63 - 1 correctly.
5488 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5489 since some C++ compilers masquerading as C compilers
5490 incorrectly reject 9223372036854775807. */
5491#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5492 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5493 && LARGE_OFF_T % 2147483647 == 1)
5494 ? 1 : -1];
5495int
5496main ()
5497{
5498
5499 ;
5500 return 0;
5501}
5502_ACEOF
5503if ac_fn_c_try_compile "$LINENO"; then :
5504 ac_cv_sys_large_files=1; break
5505fi
5506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5507 ac_cv_sys_large_files=unknown
5508 break
5509done
5510fi
5511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5512$as_echo "$ac_cv_sys_large_files" >&6; }
5513case $ac_cv_sys_large_files in #(
5514 no | unknown) ;;
5515 *)
5516cat >>confdefs.h <<_ACEOF
5517#define _LARGE_FILES $ac_cv_sys_large_files
5518_ACEOF
5519;;
5520esac
5521rm -rf conftest*
5522 fi
André Hentschelcecf1052012-06-02 18:58:39 +02005523
5524
Eric Pouechbc56c4e2009-08-25 19:33:28 +02005525fi
5526
5527
Alexandre Julliard40664c02009-02-11 20:40:58 +01005528ac_ext=c
5529ac_cpp='$CPP $CPPFLAGS'
5530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5532ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005534$as_echo_n "checking how to run the C preprocessor... " >&6; }
5535# On Suns, sometimes $CPP names a directory.
5536if test -n "$CPP" && test -d "$CPP"; then
5537 CPP=
5538fi
5539if test -z "$CPP"; then
Alexandre Julliard9797da42011-04-27 17:37:43 +02005540 if ${ac_cv_prog_CPP+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005541 $as_echo_n "(cached) " >&6
5542else
5543 # Double quotes because CPP needs to be expanded
5544 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5545 do
5546 ac_preproc_ok=false
5547for ac_c_preproc_warn_flag in '' yes
5548do
5549 # Use a header file that comes with gcc, so configuring glibc
5550 # with a fresh cross-compiler works.
5551 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5552 # <limits.h> exists even on freestanding compilers.
5553 # On the NeXT, cc -E runs the code through the compiler's parser,
5554 # not just through cpp. "Syntax error" is here to catch this case.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005556/* end confdefs.h. */
5557#ifdef __STDC__
5558# include <limits.h>
5559#else
5560# include <assert.h>
5561#endif
5562 Syntax error
5563_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005564if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005565
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005566else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005567 # Broken: fails on valid input.
5568continue
5569fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005570rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005571
5572 # OK, works on sane cases. Now check whether nonexistent headers
5573 # can be detected and how.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005575/* end confdefs.h. */
5576#include <ac_nonexistent.h>
5577_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005578if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005579 # Broken: success on invalid input.
5580continue
5581else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005582 # Passes both tests.
5583ac_preproc_ok=:
5584break
5585fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005586rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005587
5588done
5589# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005590rm -f conftest.i conftest.err conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005591if $ac_preproc_ok; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005592 break
5593fi
5594
5595 done
5596 ac_cv_prog_CPP=$CPP
5597
5598fi
5599 CPP=$ac_cv_prog_CPP
5600else
5601 ac_cv_prog_CPP=$CPP
5602fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005604$as_echo "$CPP" >&6; }
5605ac_preproc_ok=false
5606for ac_c_preproc_warn_flag in '' yes
5607do
5608 # Use a header file that comes with gcc, so configuring glibc
5609 # with a fresh cross-compiler works.
5610 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5611 # <limits.h> exists even on freestanding compilers.
5612 # On the NeXT, cc -E runs the code through the compiler's parser,
5613 # not just through cpp. "Syntax error" is here to catch this case.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005615/* end confdefs.h. */
5616#ifdef __STDC__
5617# include <limits.h>
5618#else
5619# include <assert.h>
5620#endif
5621 Syntax error
5622_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005623if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005624
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005625else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005626 # Broken: fails on valid input.
5627continue
5628fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005629rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005630
5631 # OK, works on sane cases. Now check whether nonexistent headers
5632 # can be detected and how.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005634/* end confdefs.h. */
5635#include <ac_nonexistent.h>
5636_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005637if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005638 # Broken: success on invalid input.
5639continue
5640else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005641 # Passes both tests.
5642ac_preproc_ok=:
5643break
5644fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005645rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005646
5647done
5648# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005649rm -f conftest.i conftest.err conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005650if $ac_preproc_ok; then :
5651
Alexandre Julliard40664c02009-02-11 20:40:58 +01005652else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005653 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005654$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005655as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
Alexandre Julliard9797da42011-04-27 17:37:43 +02005656See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliard40664c02009-02-11 20:40:58 +01005657fi
5658
5659ac_ext=c
5660ac_cpp='$CPP $CPPFLAGS'
5661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5663ac_compiler_gnu=$ac_cv_c_compiler_gnu
5664
5665
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005667$as_echo_n "checking for ANSI C header files... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005668if ${ac_cv_header_stdc+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005669 $as_echo_n "(cached) " >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00005670else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005672/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005673#include <stdlib.h>
5674#include <stdarg.h>
5675#include <string.h>
5676#include <float.h>
5677
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005678int
5679main ()
5680{
5681
5682 ;
5683 return 0;
5684}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005685_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005686if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005687 ac_cv_header_stdc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005688else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005689 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005690fi
Jeremy White0ebeb532006-06-20 13:18:41 +02005691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005692
5693if test $ac_cv_header_stdc = yes; then
5694 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005696/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005697#include <string.h>
5698
5699_ACEOF
5700if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005701 $EGREP "memchr" >/dev/null 2>&1; then :
5702
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005703else
5704 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005705fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005706rm -f conftest*
5707
5708fi
5709
5710if test $ac_cv_header_stdc = yes; then
5711 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005713/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005714#include <stdlib.h>
5715
5716_ACEOF
5717if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005718 $EGREP "free" >/dev/null 2>&1; then :
5719
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005720else
5721 ac_cv_header_stdc=no
5722fi
5723rm -f conftest*
5724
5725fi
5726
5727if test $ac_cv_header_stdc = yes; then
5728 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005729 if test "$cross_compiling" = yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005730 :
5731else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005733/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005734#include <ctype.h>
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005735#include <stdlib.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005736#if ((' ' & 0x0FF) == 0x020)
5737# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5738# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5739#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005740# define ISLOWER(c) \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005741 (('a' <= (c) && (c) <= 'i') \
5742 || ('j' <= (c) && (c) <= 'r') \
5743 || ('s' <= (c) && (c) <= 'z'))
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005744# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5745#endif
5746
5747#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5748int
5749main ()
5750{
5751 int i;
5752 for (i = 0; i < 256; i++)
5753 if (XOR (islower (i), ISLOWER (i))
Alexandre Julliard875927f2004-01-02 01:55:29 +00005754 || toupper (i) != TOUPPER (i))
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005755 return 2;
5756 return 0;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005757}
5758_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005759if ac_fn_c_try_run "$LINENO"; then :
5760
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005761else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005762 ac_cv_header_stdc=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005763fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005764rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5765 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005766fi
5767
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005768fi
5769fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005771$as_echo "$ac_cv_header_stdc" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005772if test $ac_cv_header_stdc = yes; then
5773
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005774$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005775
5776fi
5777
5778# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005779for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005780 inttypes.h stdint.h unistd.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005781do :
5782 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5783ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5784"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005785if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005786 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005787#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005788_ACEOF
5789
5790fi
5791
5792done
5793
5794
Rein Klazes7ff12562004-11-09 20:16:35 +00005795for ac_header in \
Chris Robinson862965f2009-08-25 03:26:35 -07005796 AL/al.h \
Ken Thomases21137cd2011-01-05 07:25:23 -06005797 ApplicationServices/ApplicationServices.h \
Aric Stewart4430ab42010-03-17 10:58:32 -05005798 AudioToolbox/AudioConverter.h \
Emmanuel Maillard144a5352006-05-28 22:46:23 +02005799 AudioUnit/AudioUnit.h \
Charles Davis459d9422011-01-29 16:45:53 -07005800 AudioUnit/AudioComponent.h \
Adam Martinson2eb2f712010-12-28 12:46:09 -06005801 CL/cl.h \
Pierre d'Herbemont08884512006-10-24 15:26:33 +02005802 Carbon/Carbon.h \
Emmanuel Maillard144a5352006-05-28 22:46:23 +02005803 CoreAudio/CoreAudio.h \
Ken Thomasescd454fd2012-03-14 16:49:47 -05005804 CoreServices/CoreServices.h \
Alexandre Julliard66f45a52006-11-06 13:33:16 +01005805 DiskArbitration/DiskArbitration.h \
Phil Krylov0f6c0392005-07-01 19:15:26 +00005806 IOKit/IOKitLib.h \
Aric Stewart225a4942009-03-10 14:59:20 -05005807 IOKit/hid/IOHIDLib.h \
Ken Thomases0b08f192009-09-09 22:23:35 -05005808 OpenAL/al.h \
Peter Urbanec65c84d72010-12-02 23:41:48 +11005809 OpenCL/opencl.h \
Alexandre Julliardfa3ddd82011-01-14 15:59:51 +01005810 QuickTime/ImageCompression.h \
Ken Thomases25ed6872011-03-13 18:58:44 -05005811 Security/Security.h \
Eric Durbin020b0ef2008-06-24 22:45:51 -05005812 alias.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005813 alsa/asoundlib.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005814 arpa/inet.h \
5815 arpa/nameser.h \
Maarten Lankhorst888eaae2005-04-27 09:46:25 +00005816 asm/types.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005817 capi20.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005818 curses.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005819 direct.h \
Rob Shearman87175c62008-10-03 12:55:21 +01005820 dirent.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005821 dlfcn.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005822 elf.h \
5823 float.h \
Alexandre Julliard7d5e5652009-06-01 12:51:54 +02005824 fnmatch.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005825 fontconfig/fontconfig.h \
5826 getopt.h \
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +01005827 gettext-po.h \
Alexandre Julliard46678dc2008-12-09 17:09:42 +01005828 grp.h \
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +02005829 gsm.h \
Maarten Lankhorstc186d8a2009-08-05 11:35:50 +02005830 gsm/gsm.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005831 ieeefp.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005832 inet/mib2.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005833 io.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005834 jpeglib.h \
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +01005835 kstat.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00005836 lber.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005837 lcms.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005838 lcms/lcms.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00005839 ldap.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005840 link.h \
5841 linux/cdrom.h \
5842 linux/compiler.h \
5843 linux/hdreg.h \
5844 linux/input.h \
5845 linux/ioctl.h \
5846 linux/joystick.h \
5847 linux/major.h \
5848 linux/param.h \
5849 linux/serial.h \
Francois Gougetda1a3522008-12-28 10:35:02 +01005850 linux/types.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005851 linux/ucdrom.h \
Ken Thomasesd35c0e82009-03-11 09:05:53 -05005852 mach-o/nlist.h \
Austin English95740b32010-10-08 00:33:52 -07005853 mach-o/loader.h \
Alexandre Julliard150b5dc2006-12-29 20:02:02 +01005854 mach/mach.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00005855 mach/machine.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005856 machine/cpu.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00005857 machine/limits.h \
Austin English40b3d2e2010-05-23 21:18:17 -05005858 machine/sysarch.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005859 mntent.h \
Aric Stewartdb71d7c2009-08-19 09:37:48 -05005860 mpg123.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005861 ncurses.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005862 netdb.h \
5863 netinet/in.h \
5864 netinet/in_systm.h \
5865 netinet/tcp.h \
5866 netinet/tcp_fsm.h \
Robert Shearman1e5153c2005-12-01 11:18:43 +01005867 openssl/err.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005868 openssl/ssl.h \
Alexandre Julliard00302152007-07-02 19:54:00 +02005869 png.h \
Steven Edwards57279182005-03-04 12:38:36 +00005870 poll.h \
Albert Lee01b972d2009-11-20 18:35:26 -05005871 port.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005872 process.h \
5873 pthread.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005874 pwd.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005875 sched.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005876 scsi/scsi.h \
5877 scsi/scsi_ioctl.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005878 scsi/sg.h \
Austin English2d7ccb32009-06-13 18:01:24 -05005879 stdbool.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005880 stdint.h \
5881 strings.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005882 stropts.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005883 sys/asoundlib.h \
Charles Davis4e44e152011-01-18 13:09:44 -07005884 sys/attr.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005885 sys/cdio.h \
5886 sys/elf32.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005887 sys/epoll.h \
Alexandre Julliardc8278922006-08-04 22:11:00 +02005888 sys/event.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005889 sys/exec_elf.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005890 sys/filio.h \
Alexandre Julliard61a70362009-06-26 15:45:03 +02005891 sys/inotify.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005892 sys/ioctl.h \
5893 sys/ipc.h \
Gerald Pfeiferebe04842005-08-22 09:33:37 +00005894 sys/limits.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005895 sys/link.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005896 sys/mman.h \
5897 sys/modem.h \
5898 sys/msg.h \
Hans Leidekker0844b702006-01-26 13:23:08 +01005899 sys/mtio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005900 sys/param.h \
5901 sys/poll.h \
Alexandre Julliard9603ee02006-04-06 11:57:37 +02005902 sys/prctl.h \
Austin English94021a12009-01-20 17:42:53 -06005903 sys/protosw.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005904 sys/ptrace.h \
Mike McCormack0cd06262006-03-01 01:07:04 +09005905 sys/resource.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005906 sys/scsiio.h \
5907 sys/shm.h \
5908 sys/signal.h \
5909 sys/socket.h \
Mark Adams25696352007-07-10 23:39:21 -04005910 sys/socketvar.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005911 sys/sockio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005912 sys/statvfs.h \
5913 sys/strtio.h \
5914 sys/syscall.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005915 sys/tihdr.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005916 sys/time.h \
Austin English8b195912009-01-21 21:59:11 -06005917 sys/timeout.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005918 sys/times.h \
5919 sys/uio.h \
5920 sys/un.h \
Alexandre Julliard66eb4bd2008-12-09 19:33:06 +01005921 sys/utsname.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005922 sys/vm86.h \
5923 sys/wait.h \
5924 syscall.h \
5925 termios.h \
Vincent Povirk73cd5692010-03-08 17:07:29 -06005926 tiffio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005927 unistd.h \
5928 utime.h \
John Reiser0a2c94e2008-07-24 13:31:53 -07005929 valgrind/memcheck.h \
Jacek Caban11ca05f2009-05-29 23:35:13 +02005930 valgrind/valgrind.h \
5931 zlib.h
Rein Klazes7ff12562004-11-09 20:16:35 +00005932
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005933do :
5934 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5935ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005936if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Rein Klazes7ff12562004-11-09 20:16:35 +00005937 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005938#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Rein Klazes7ff12562004-11-09 20:16:35 +00005939_ACEOF
5940
5941fi
5942
5943done
5944
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005946$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005947if ${ac_cv_header_stat_broken+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005948 $as_echo_n "(cached) " >&6
Rein Klazes7ff12562004-11-09 20:16:35 +00005949else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Rein Klazes7ff12562004-11-09 20:16:35 +00005951/* end confdefs.h. */
5952#include <sys/types.h>
5953#include <sys/stat.h>
5954
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005955#if defined S_ISBLK && defined S_IFDIR
Phil Krylovf0ca5862006-11-05 23:03:46 +03005956extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005957#endif
5958
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005959#if defined S_ISBLK && defined S_IFCHR
Phil Krylovf0ca5862006-11-05 23:03:46 +03005960extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005961#endif
5962
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005963#if defined S_ISLNK && defined S_IFREG
Phil Krylovf0ca5862006-11-05 23:03:46 +03005964extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005965#endif
5966
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005967#if defined S_ISSOCK && defined S_IFREG
Phil Krylovf0ca5862006-11-05 23:03:46 +03005968extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005969#endif
5970
5971_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005972if ac_fn_c_try_compile "$LINENO"; then :
Rein Klazes7ff12562004-11-09 20:16:35 +00005973 ac_cv_header_stat_broken=no
Phil Krylovf0ca5862006-11-05 23:03:46 +03005974else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005975 ac_cv_header_stat_broken=yes
Phil Krylovf0ca5862006-11-05 23:03:46 +03005976fi
Phil Krylovf0ca5862006-11-05 23:03:46 +03005977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Rein Klazes7ff12562004-11-09 20:16:35 +00005978fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005980$as_echo "$ac_cv_header_stat_broken" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00005981if test $ac_cv_header_stat_broken = yes; then
5982
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005983$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
Rein Klazes7ff12562004-11-09 20:16:35 +00005984
5985fi
5986
5987
5988
Austin English51094be2008-12-27 14:53:53 -06005989for 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 +02005990do :
5991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5992ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Francois Gouget9e67edf2008-03-06 12:34:48 +01005993 #ifdef HAVE_SYS_PARAM_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005994 # include <sys/param.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
6006
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02006007for ac_header in \
6008 netinet/ip.h \
6009 net/if.h \
6010 net/if_arp.h \
6011 net/if_dl.h \
6012 net/if_types.h \
6013 net/route.h \
6014 netinet/if_ether.h \
Austin English337067a2009-01-22 10:44:06 -06006015 netinet/if_inarp.h \
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02006016 netinet/in_pcb.h \
6017 netinet/ip_icmp.h \
6018 netinet/ip_var.h \
6019 netinet/udp.h \
6020 netipx/ipx.h \
6021
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006022do :
6023 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6024ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Francois Gouget9e67edf2008-03-06 12:34:48 +01006025 #ifdef HAVE_SYS_SOCKET_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006026 # include <sys/socket.h>
6027 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006028 #ifdef HAVE_SYS_SOCKETVAR_H
Ken Thomasesa609fee2007-10-19 16:18:17 -05006029 # include <sys/socketvar.h>
6030 #endif
Austin Englishbb3f2582009-01-26 23:34:42 -06006031 #ifdef HAVE_NET_ROUTE_H
6032 # include <net/route.h>
6033 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006034 #ifdef HAVE_NETINET_IN_H
Ken Thomasesffd78b12007-10-19 16:18:27 -05006035 # include <netinet/in.h>
6036 #endif
Austin English03173932009-01-23 13:29:42 -06006037 #ifdef HAVE_NETINET_IN_SYSTM_H
6038 # include <netinet/in_systm.h>
6039 #endif
Alexandre Julliardd7e846c2009-01-30 14:01:12 +01006040 #ifdef HAVE_NET_IF_H
6041 # include <net/if.h>
6042 #endif
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02006043 #ifdef HAVE_NETINET_IP_H
6044 # include <netinet/ip.h>
6045 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006046"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006047if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006048 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01006049#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006050_ACEOF
6051
6052fi
6053
6054done
6055
Mark Adams25696352007-07-10 23:39:21 -04006056
Austin English03173932009-01-23 13:29:42 -06006057for 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 +02006058do :
6059 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6060ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Eric Durbin020b0ef2008-06-24 22:45:51 -05006061 #ifdef HAVE_ALIAS_H
6062 # include <alias.h>
6063 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006064 #ifdef HAVE_SYS_SOCKET_H
Mark Adams25696352007-07-10 23:39:21 -04006065 # include <sys/socket.h>
6066 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006067 #ifdef HAVE_SYS_SOCKETVAR_H
Mark Adams25696352007-07-10 23:39:21 -04006068 # include <sys/socketvar.h>
6069 #endif
Austin English53d3c462009-01-26 23:47:49 -06006070 #ifdef HAVE_SYS_TIMEOUT_H
6071 # include <sys/timeout.h>
6072 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006073 #ifdef HAVE_NETINET_IN_H
Mark Adams25696352007-07-10 23:39:21 -04006074 # include <netinet/in.h>
6075 #endif
Austin English03173932009-01-23 13:29:42 -06006076 #ifdef HAVE_NETINET_IN_SYSTM_H
6077 # include <netinet/in_systm.h>
6078 #endif
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02006079 #ifdef HAVE_NETINET_IP_H
6080 # include <netinet/ip.h>
6081 #endif
Eric Durbin6d4eab92008-06-24 22:44:13 -05006082 #ifdef HAVE_NETINET_IP_VAR_H
6083 # include <netinet/ip_var.h>
6084 #endif
Eric Durbin020b0ef2008-06-24 22:45:51 -05006085 #ifdef HAVE_NETINET_IP_ICMP_H
6086 # include <netinet/ip_icmp.h>
6087 #endif
Eric Durbin6d4eab92008-06-24 22:44:13 -05006088 #ifdef HAVE_NETINET_UDP_H
6089 # include <netinet/udp.h>
6090 #endif
Mark Adams25696352007-07-10 23:39:21 -04006091 #ifdef HAVE_NETINET_TCP_H
6092 # include <netinet/tcp.h>
6093 #endif
Austin English03173932009-01-23 13:29:42 -06006094 #ifdef HAVE_NETINET_TCP_TIMER_H
6095 #include <netinet/tcp_timer.h>
6096 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006097"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006098if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Mark Adams25696352007-07-10 23:39:21 -04006099 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01006100#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Mark Adams25696352007-07-10 23:39:21 -04006101_ACEOF
6102
6103fi
6104
6105done
6106
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006107
Juan Lang0ce420d2009-08-12 09:14:16 -07006108for ac_header in linux/ipx.h linux/irda.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006109do :
Juan Lang0ce420d2009-08-12 09:14:16 -07006110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6111ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Francois Gougetfaf05df2006-08-07 21:52:36 +02006112 #ifdef HAVE_ASM_TYPES_H
6113 # include <asm/types.h>
6114 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006115 #ifdef HAVE_SYS_SOCKET_H
Francois Gougetfaf05df2006-08-07 21:52:36 +02006116 # include <sys/socket.h>
6117 #endif
Francois Gougetda1a3522008-12-28 10:35:02 +01006118 #ifdef HAVE_LINUX_TYPES_H
6119 # include <linux/types.h>
6120 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006121"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006122if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Francois Gougetfaf05df2006-08-07 21:52:36 +02006123 cat >>confdefs.h <<_ACEOF
Juan Lang0ce420d2009-08-12 09:14:16 -07006124#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Francois Gougetfaf05df2006-08-07 21:52:36 +02006125_ACEOF
6126
6127fi
6128
6129done
6130
6131
Austin English2d7ccb32009-06-13 18:01:24 -05006132for ac_header in mach-o/dyld_images.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006133do :
6134 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 -05006135 # include <stdbool.h>
6136 #endif
6137 #ifdef HAVE_STDINT_H
6138 # include <stdint.h>
6139 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006140"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006141if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
Austin English2d7ccb32009-06-13 18:01:24 -05006142 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006143#define HAVE_MACH_O_DYLD_IMAGES_H 1
Austin English2d7ccb32009-06-13 18:01:24 -05006144_ACEOF
6145
6146fi
6147
6148done
6149
6150
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006151for ac_header in resolv.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006152do :
6153 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 +01006154 #ifdef HAVE_SYS_SOCKET_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006155 # include <sys/socket.h>
6156 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006157 #ifdef HAVE_NETINET_IN_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006158 # include <netinet/in.h>
6159 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006160 #ifdef HAVE_ARPA_NAMESER_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006161 # include <arpa/nameser.h>
6162 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006163"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006164if test "x$ac_cv_header_resolv_h" = xyes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006165 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006166#define HAVE_RESOLV_H 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006167_ACEOF
6168
6169fi
6170
6171done
6172
6173
Juan Lange3c0e302010-03-11 18:36:46 -08006174for ac_header in ifaddrs.h
6175do :
6176 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6177"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006178if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
Juan Lange3c0e302010-03-11 18:36:46 -08006179 cat >>confdefs.h <<_ACEOF
6180#define HAVE_IFADDRS_H 1
6181_ACEOF
6182
6183fi
6184
6185done
6186
6187
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006188for ac_header in ucontext.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006189do :
6190 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6191"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006192if test "x$ac_cv_header_ucontext_h" = xyes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006193 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006194#define HAVE_UCONTEXT_H 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006195_ACEOF
6196
6197fi
6198
6199done
6200
6201
Tijl Coosemans60833da2007-08-08 00:25:24 +02006202for ac_header in sys/thr.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006203do :
6204 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 +01006205#ifdef HAVE_UCONTEXT_H
Tijl Coosemans60833da2007-08-08 00:25:24 +02006206#include <ucontext.h>
6207#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006208"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006209if test "x$ac_cv_header_sys_thr_h" = xyes; then :
Tijl Coosemans60833da2007-08-08 00:25:24 +02006210 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006211#define HAVE_SYS_THR_H 1
Tijl Coosemans60833da2007-08-08 00:25:24 +02006212_ACEOF
6213
6214fi
6215
6216done
6217
6218
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006219for ac_header in pthread_np.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006220do :
6221 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 +02006222#include <pthread.h>
6223#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006224"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006225if test "x$ac_cv_header_pthread_np_h" = xyes; then :
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006226 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006227#define HAVE_PTHREAD_NP_H 1
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006228_ACEOF
6229
6230fi
6231
6232done
6233
6234
Rafał Mużyło898d8ab2011-07-14 21:38:14 +02006235for ac_header in linux/videodev.h linux/videodev2.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006236do :
Rafał Mużyło898d8ab2011-07-14 21:38:14 +02006237 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6238ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006239#include <sys/time.h>
6240#endif
6241#include <sys/types.h>
6242#ifdef HAVE_ASM_TYPES_H
6243#include <asm/types.h>
6244#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006245"
Rafał Mużyło898d8ab2011-07-14 21:38:14 +02006246if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006247 cat >>confdefs.h <<_ACEOF
Rafał Mużyło898d8ab2011-07-14 21:38:14 +02006248#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006249_ACEOF
6250
6251fi
6252
6253done
6254
6255
Alexandre Julliardb079add2006-02-24 11:46:17 +01006256for ac_header in linux/capi.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006257do :
6258 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6259"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006260if test "x$ac_cv_header_linux_capi_h" = xyes; then :
Alexandre Julliardb079add2006-02-24 11:46:17 +01006261 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006262#define HAVE_LINUX_CAPI_H 1
Alexandre Julliardb079add2006-02-24 11:46:17 +01006263_ACEOF
6264
6265fi
6266
6267done
6268
6269
6270
Alexandre Julliarda3097622007-07-02 17:27:48 +02006271DLLEXT=""
6272
6273DLLFLAGS="-D_REENTRANT"
6274
6275LDSHARED=""
6276
6277LDDLLFLAGS=""
6278
6279LIBEXT="so"
6280
6281IMPLIBEXT="def"
6282
6283LDRPATH_INSTALL=""
6284
6285LDRPATH_LOCAL=""
6286
Alexandre Julliard950a0f82010-01-26 21:10:14 +01006287STATIC_IMPLIBEXT="def.a"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006288# Extract the first word of "ldd", so it can be a program name with args.
6289set dummy ldd; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006291$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006292if ${ac_cv_path_LDD+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006293 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006294else
6295 case $LDD in
6296 [\\/]* | ?:[\\/]*)
6297 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6298 ;;
6299 *)
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301as_dummy="/sbin:/usr/sbin:$PATH"
6302for as_dir in $as_dummy
6303do
6304 IFS=$as_save_IFS
6305 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006306 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02006307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliarda3097622007-07-02 17:27:48 +02006308 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006310 break 2
6311 fi
6312done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006313 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006314IFS=$as_save_IFS
6315
6316 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6317 ;;
6318esac
6319fi
6320LDD=$ac_cv_path_LDD
6321if test -n "$LDD"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006323$as_echo "$LDD" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006324else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006326$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006327fi
6328
6329
6330
6331case $host_os in
6332 cygwin*|mingw32*)
6333 if test -n "$ac_tool_prefix"; then
6334 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6335set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006337$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006338if ${ac_cv_prog_DLLTOOL+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006339 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006340else
6341 if test -n "$DLLTOOL"; then
6342 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6343else
6344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345for as_dir in $PATH
6346do
6347 IFS=$as_save_IFS
6348 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006349 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02006350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliarda3097622007-07-02 17:27:48 +02006351 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006353 break 2
6354 fi
6355done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006356 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006357IFS=$as_save_IFS
6358
6359fi
6360fi
6361DLLTOOL=$ac_cv_prog_DLLTOOL
6362if test -n "$DLLTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006364$as_echo "$DLLTOOL" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006365else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006367$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006368fi
6369
6370
6371fi
6372if test -z "$ac_cv_prog_DLLTOOL"; then
6373 ac_ct_DLLTOOL=$DLLTOOL
6374 # Extract the first word of "dlltool", so it can be a program name with args.
6375set dummy dlltool; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006377$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006378if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006379 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006380else
6381 if test -n "$ac_ct_DLLTOOL"; then
6382 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6383else
6384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385for as_dir in $PATH
6386do
6387 IFS=$as_save_IFS
6388 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006389 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02006390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliarda3097622007-07-02 17:27:48 +02006391 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006393 break 2
6394 fi
6395done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006396 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006397IFS=$as_save_IFS
6398
6399fi
6400fi
6401ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6402if test -n "$ac_ct_DLLTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006404$as_echo "$ac_ct_DLLTOOL" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006405else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006407$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006408fi
6409
6410 if test "x$ac_ct_DLLTOOL" = x; then
6411 DLLTOOL="false"
6412 else
6413 case $cross_compiling:$ac_tool_warned in
6414yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006415{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006416$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006417ac_tool_warned=yes ;;
6418esac
6419 DLLTOOL=$ac_ct_DLLTOOL
6420 fi
6421else
6422 DLLTOOL="$ac_cv_prog_DLLTOOL"
6423fi
6424
6425 if test -n "$ac_tool_prefix"; then
6426 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6427set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006429$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006430if ${ac_cv_prog_DLLWRAP+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006431 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006432else
6433 if test -n "$DLLWRAP"; then
6434 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6435else
6436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437for as_dir in $PATH
6438do
6439 IFS=$as_save_IFS
6440 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006441 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02006442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliarda3097622007-07-02 17:27:48 +02006443 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006445 break 2
6446 fi
6447done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006448 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006449IFS=$as_save_IFS
6450
6451fi
6452fi
6453DLLWRAP=$ac_cv_prog_DLLWRAP
6454if test -n "$DLLWRAP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006456$as_echo "$DLLWRAP" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006457else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006459$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006460fi
6461
6462
6463fi
6464if test -z "$ac_cv_prog_DLLWRAP"; then
6465 ac_ct_DLLWRAP=$DLLWRAP
6466 # Extract the first word of "dllwrap", so it can be a program name with args.
6467set dummy dllwrap; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006469$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006470if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006471 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006472else
6473 if test -n "$ac_ct_DLLWRAP"; then
6474 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6475else
6476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477for as_dir in $PATH
6478do
6479 IFS=$as_save_IFS
6480 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006481 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02006482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliarda3097622007-07-02 17:27:48 +02006483 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006485 break 2
6486 fi
6487done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006488 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006489IFS=$as_save_IFS
6490
6491fi
6492fi
6493ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6494if test -n "$ac_ct_DLLWRAP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006496$as_echo "$ac_ct_DLLWRAP" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006497else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006499$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006500fi
6501
6502 if test "x$ac_ct_DLLWRAP" = x; then
6503 DLLWRAP="false"
6504 else
6505 case $cross_compiling:$ac_tool_warned in
6506yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006507{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006508$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006509ac_tool_warned=yes ;;
6510esac
6511 DLLWRAP=$ac_ct_DLLWRAP
6512 fi
6513else
6514 DLLWRAP="$ac_cv_prog_DLLWRAP"
6515fi
6516
Alexandre Julliarda3097622007-07-02 17:27:48 +02006517 if test "$DLLWRAP" = "false"; then
6518 LIBEXT="a"
6519 else
6520 LIBEXT="dll"
6521 fi
6522 IMPLIBEXT="a"
Alexandre Julliard950a0f82010-01-26 21:10:14 +01006523 STATIC_IMPLIBEXT="a"
Alexandre Julliardec1ebfb2008-09-04 12:29:07 +02006524 enable_iphlpapi=${enable_iphlpapi:-no}
6525 enable_kernel32=${enable_kernel32:-no}
6526 enable_msvcrt=${enable_msvcrt:-no}
6527 enable_ntdll=${enable_ntdll:-no}
6528 enable_ws2_32=${enable_ws2_32:-no}
6529 enable_loader=${enable_loader:-no}
6530 enable_server=${enable_server:-no}
Alexandre Julliard40664c02009-02-11 20:40:58 +01006531 with_x=${with_x:-no}
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01006532 with_pthread=${with_pthread:-no}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006533 ;;
6534 darwin*|macosx*)
6535 DLLEXT=".so"
6536 LIBEXT="dylib"
6537 DLLFLAGS="$DLLFLAGS -fPIC"
6538 LDDLLFLAGS="-bundle -multiply_defined suppress"
6539 LIBWINE_LDFLAGS="-multiply_defined suppress"
6540 LDSHARED="\$(CC) -dynamiclib"
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02006541 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 +01006542 COREFOUNDATIONLIB="-framework CoreFoundation"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006543
6544 IOKITLIB="-framework IOKit -framework CoreFoundation"
6545
Ken Thomases21137cd2011-01-05 07:25:23 -06006546 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6547
Ken Thomasescd454fd2012-03-14 16:49:47 -05006548 CORESERVICESLIB="-framework CoreServices"
6549
Camillo Lugaresi0b5dcba2011-08-02 04:31:53 +02006550 case $host_os in
6551 darwin11*)
6552 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6553 ;;
6554 *)
6555 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6556 ;;
6557 esac
Alexandre Julliarda3097622007-07-02 17:27:48 +02006558 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6559 then
6560 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6561
6562 fi
Alexandre Julliard45db3482011-03-14 14:25:45 +01006563 if test "$ac_cv_header_Security_Security_h" = "yes"
6564 then
6565 SECURITYLIB="-framework Security -framework CoreFoundation"
6566
Charles Davis65634bc2011-10-26 22:57:30 -06006567 ac_save_LIBS="$LIBS"
6568 LIBS="$LIBS $SECURITYLIB"
6569 for ac_func in SSLCopyPeerCertificates
6570do :
6571 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
6572if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
6573 cat >>confdefs.h <<_ACEOF
6574#define HAVE_SSLCOPYPEERCERTIFICATES 1
6575_ACEOF
6576
6577fi
6578done
6579
6580 LIBS="$ac_save_LIBS"
Alexandre Julliard45db3482011-03-14 14:25:45 +01006581 with_gnutls=${with_gnutls:-no}
6582 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006583 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6584 then
Charles Davis459d9422011-01-29 16:45:53 -07006585 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6586 then
6587 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006588
Charles Davis459d9422011-01-29 16:45:53 -07006589 else
6590 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6591
6592 fi
Charles Davisb149d7b2011-01-29 16:45:54 -07006593 ac_save_LIBS="$LIBS"
6594 LIBS="$LIBS $COREAUDIO"
6595 for ac_func in AUGraphAddNode
6596do :
6597 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006598if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
Charles Davisb149d7b2011-01-29 16:45:54 -07006599 cat >>confdefs.h <<_ACEOF
6600#define HAVE_AUGRAPHADDNODE 1
6601_ACEOF
6602
6603fi
6604done
6605
6606 LIBS="$ac_save_LIBS"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006607 fi
Ken Thomases0b08f192009-09-09 22:23:35 -05006608 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6609 then
Maarten Lankhorstd4354992009-12-09 11:52:09 +01006610 FRAMEWORK_OPENAL="-framework OpenAL"
Ken Thomases0b08f192009-09-09 22:23:35 -05006611
Maarten Lankhorstd4354992009-12-09 11:52:09 +01006612
6613cat >>confdefs.h <<_ACEOF
6614#define HAVE_OPENAL 1
6615_ACEOF
6616
6617 ac_cv_lib_openal=yes
Ken Thomases0b08f192009-09-09 22:23:35 -05006618 fi
Alexandre Julliardfac67412010-12-03 14:16:55 +01006619 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6620 then
6621 LIBOPENCL="-framework OpenCL"
6622
6623 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6624 fi
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006625 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6626 then
6627 ac_save_LIBS="$LIBS"
6628 LIBS="$LIBS $IOKITLIB"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006629 for ac_func in IOHIDManagerCreate
6630do :
6631 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006632if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006633 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006634#define HAVE_IOHIDMANAGERCREATE 1
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006635_ACEOF
6636
6637fi
6638done
6639
6640 LIBS="$ac_save_LIBS"
6641 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006642 case $host_cpu in
6643 *powerpc*)
6644 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6645 esac
Alexandre Julliardfa3ddd82011-01-14 15:59:51 +01006646 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6647 then
6648 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6649
6650 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6651 else
6652 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6653 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006654 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6655 then
6656 CARBONLIB="-framework Carbon"
6657
Alexandre Julliarddbb535e2008-08-25 12:12:28 +02006658 enable_winequartz_drv=${enable_winequartz_drv:-yes}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006659 fi
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006660 if test "x$enable_win16" = "xyes"
6661 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006663$as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006664 if test "$cross_compiling" = yes; then :
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006666$as_echo "cross-compiling, assuming yes" >&6; }
6667else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006669/* end confdefs.h. */
6670asm(".text\n"
6671 "bad:\tnop;nop\n"
6672 "good:\tnop;nop\n\t"
6673 ".globl _testfunc\n"
6674 "_testfunc:\tcallw good");
6675 extern void testfunc();
6676int
6677main ()
6678{
6679unsigned short *p = (unsigned short *)testfunc;
6680 return p[0] != 0xe866 || p[1] != 0xfffa
6681 ;
6682 return 0;
6683}
6684_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006685if ac_fn_c_try_run "$LINENO"; then :
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006687$as_echo "yes" >&6; }
6688else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006690$as_echo "no" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006691 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 +02006692fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006693rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6694 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006695fi
6696
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006697 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006698 ;;
6699 *)
6700 DLLFLAGS="$DLLFLAGS -fPIC"
6701 DLLEXT=".so"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006702 { $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 +01006703$as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006704if ${ac_cv_c_dll_gnuelf+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006705 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006706else
6707 ac_wine_try_cflags_saved=$CFLAGS
6708CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710/* end confdefs.h. */
Alexandre Julliarda3097622007-07-02 17:27:48 +02006711void myfunc() {}
6712_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006713if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006714 ac_cv_c_dll_gnuelf="yes"
6715else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006716 ac_cv_c_dll_gnuelf="no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006717fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006718rm -f core conftest.err conftest.$ac_objext \
6719 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006720CFLAGS=$ac_wine_try_cflags_saved
6721fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006723$as_echo "$ac_cv_c_dll_gnuelf" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006724 if test "$ac_cv_c_dll_gnuelf" = "yes"
6725 then
6726 LDSHARED="\$(CC) -shared"
6727 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006728 { $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 +01006729$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006730if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} 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,-soname,confest.so.1"
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__soname_confest_so_1=yes
6741else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006742 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=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__soname_confest_so_1" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006749$as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006750if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006751 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6752else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006753 { $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 +01006754$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006755if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006756 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006757else
6758 ac_wine_try_cflags_saved=$CFLAGS
6759CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006761/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006762int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006763_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006764if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006765 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6766else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006767 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006768fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006769rm -f core conftest.err conftest.$ac_objext \
6770 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006771CFLAGS=$ac_wine_try_cflags_saved
6772fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006773{ $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 +01006774$as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006775if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006776 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6777fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006778fi
6779
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006780 { $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 +01006781$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006782if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006783 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006784else
6785 ac_wine_try_cflags_saved=$CFLAGS
6786CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006788/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006789int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006790_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006791if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006792 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6793else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006794 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006795fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006796rm -f core conftest.err conftest.$ac_objext \
6797 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006798CFLAGS=$ac_wine_try_cflags_saved
6799fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006800{ $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 +01006801$as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006802if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006803 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6804fi
6805
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006806 { $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 +01006807$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 +02006808if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006809 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006810else
6811 ac_wine_try_cflags_saved=$CFLAGS
6812CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006814/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006815int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006816_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006817if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006818 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6819else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006820 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006821fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006822rm -f core conftest.err conftest.$ac_objext \
6823 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006824CFLAGS=$ac_wine_try_cflags_saved
6825fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006826{ $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 +01006827$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 +02006828if 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 +02006829 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6830fi
6831
Alexandre Julliarda3097622007-07-02 17:27:48 +02006832 echo '{ global: *; };' >conftest.map
André Hentschelcecf1052012-06-02 18:58:39 +02006833 { $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 +01006834$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
André Hentschelcecf1052012-06-02 18:58:39 +02006835if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006836 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006837else
6838 ac_wine_try_cflags_saved=$CFLAGS
6839CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006841/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006842int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006843_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006844if ac_fn_c_try_link "$LINENO"; then :
André Hentschelcecf1052012-06-02 18:58:39 +02006845 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
Alexandre Julliarda3097622007-07-02 17:27:48 +02006846else
André Hentschelcecf1052012-06-02 18:58:39 +02006847 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006848fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006849rm -f core conftest.err conftest.$ac_objext \
6850 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006851CFLAGS=$ac_wine_try_cflags_saved
6852fi
André Hentschelcecf1052012-06-02 18:58:39 +02006853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
6854$as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
6855if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006856 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6857fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006858 rm -f conftest.map
6859
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006861$as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006862if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006863 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006864else
6865 ac_wine_try_cflags_saved=$CFLAGS
6866CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006868/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006869int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006870_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006871if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006872 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6873else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006874 ac_cv_cflags__fPIC__Wl___export_dynamic=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006875fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006876rm -f core conftest.err conftest.$ac_objext \
6877 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006878CFLAGS=$ac_wine_try_cflags_saved
6879fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006881$as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006882if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006883 LDEXECFLAGS="-Wl,--export-dynamic"
6884
6885fi
6886
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006887 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6888{ $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 +01006889$as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006890if eval \${$as_ac_var+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006891 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006892else
6893 ac_wine_try_cflags_saved=$CFLAGS
6894CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006896/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006897int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006898_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006899if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006900 eval "$as_ac_var=yes"
6901else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006902 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006903fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006904rm -f core conftest.err conftest.$ac_objext \
6905 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006906CFLAGS=$ac_wine_try_cflags_saved
6907fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006908eval ac_res=\$$as_ac_var
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006910$as_echo "$ac_res" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006911if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006912 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02006913 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006914else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006915 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6916{ $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 +01006917$as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006918if eval \${$as_ac_var+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006919 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006920else
6921 ac_wine_try_cflags_saved=$CFLAGS
6922CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006924/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006925int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006926_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006927if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006928 eval "$as_ac_var=yes"
6929else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006930 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006931fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006932rm -f core conftest.err conftest.$ac_objext \
6933 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006934CFLAGS=$ac_wine_try_cflags_saved
6935fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006936eval ac_res=\$$as_ac_var
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006938$as_echo "$ac_res" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006939if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006940 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02006941 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006942fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006943fi
6944
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006946$as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006947if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006948 $as_echo_n "(cached) " >&6
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006949else
6950 ac_wine_try_cflags_saved=$CFLAGS
6951CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006953/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006954int main(int argc, char **argv) { return 0; }
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006955_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006956if ac_fn_c_try_link "$LINENO"; then :
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006957 ac_cv_cflags__Wl___enable_new_dtags=yes
6958else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006959 ac_cv_cflags__Wl___enable_new_dtags=no
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006960fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006961rm -f core conftest.err conftest.$ac_objext \
6962 conftest$ac_exeext conftest.$ac_ext
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006963CFLAGS=$ac_wine_try_cflags_saved
6964fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006966$as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006967if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006968 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6969fi
6970
Alexandre Julliarda3097622007-07-02 17:27:48 +02006971 case $host_cpu in
6972 *i[3456789]86* | x86_64)
André Hentschelcecf1052012-06-02 18:58:39 +02006973 { $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 +01006974$as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
André Hentschelcecf1052012-06-02 18:58:39 +02006975if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006976 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006977else
6978 ac_wine_try_cflags_saved=$CFLAGS
6979CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006981/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006982int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006983_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006984if ac_fn_c_try_link "$LINENO"; then :
André Hentschelcecf1052012-06-02 18:58:39 +02006985 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
Alexandre Julliarda3097622007-07-02 17:27:48 +02006986else
André Hentschelcecf1052012-06-02 18:58:39 +02006987 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006988fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006989rm -f core conftest.err conftest.$ac_objext \
6990 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006991CFLAGS=$ac_wine_try_cflags_saved
6992fi
André Hentschelcecf1052012-06-02 18:58:39 +02006993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
6994$as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
6995if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
Francois Gouget5f694dd2010-11-26 16:18:32 +01006996 case $host_os in
Robert Millan535a55e2011-08-23 20:39:45 +02006997 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
Francois Gouget5f694dd2010-11-26 16:18:32 +01006998 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6999 esac
7000
Alexandre Julliarda3097622007-07-02 17:27:48 +02007001fi
Alexandre Julliardb5d824b2010-08-24 13:42:10 +02007002 # Extract the first word of "prelink", so it can be a program name with args.
7003set dummy prelink; ac_word=$2
7004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007006if ${ac_cv_path_PRELINK+:} false; then :
Alexandre Julliardb5d824b2010-08-24 13:42:10 +02007007 $as_echo_n "(cached) " >&6
7008else
7009 case $PRELINK in
7010 [\\/]* | ?:[\\/]*)
7011 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
7012 ;;
7013 *)
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015for as_dir in /sbin /usr/sbin $PATH
7016do
7017 IFS=$as_save_IFS
7018 test -z "$as_dir" && as_dir=.
7019 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02007020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliardb5d824b2010-08-24 13:42:10 +02007021 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
7022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 break 2
7024 fi
7025done
7026 done
7027IFS=$as_save_IFS
7028
7029 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
7030 ;;
7031esac
7032fi
7033PRELINK=$ac_cv_path_PRELINK
7034if test -n "$PRELINK"; then
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
7036$as_echo "$PRELINK" >&6; }
7037else
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039$as_echo "no" >&6; }
7040fi
7041
7042
7043 if test "x$PRELINK" = xfalse
7044 then
7045 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
7046 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02007047 ;;
7048 esac
7049
7050 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007052$as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007053if ${ac_cv_c_dll_unixware+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007054 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02007055else
7056 ac_wine_try_cflags_saved=$CFLAGS
7057CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059/* end confdefs.h. */
Alexandre Julliarda3097622007-07-02 17:27:48 +02007060void myfunc() {}
7061_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007062if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02007063 ac_cv_c_dll_unixware="yes"
7064else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007065 ac_cv_c_dll_unixware="no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02007066fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007067rm -f core conftest.err conftest.$ac_objext \
7068 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02007069CFLAGS=$ac_wine_try_cflags_saved
7070fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007072$as_echo "$ac_cv_c_dll_unixware" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02007073 if test "$ac_cv_c_dll_unixware" = "yes"
7074 then
7075 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7076 LDDLLFLAGS="-Wl,-G,-B,symbolic"
7077
7078 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007080$as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007081if ${ac_cv_c_dll_hpux+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007082 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02007083else
7084 ac_wine_try_cflags_saved=$CFLAGS
7085CFLAGS="$CFLAGS -shared"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7087/* end confdefs.h. */
Alexandre Julliarda3097622007-07-02 17:27:48 +02007088void myfunc() {}
7089_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007090if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02007091 ac_cv_c_dll_hpux="yes"
7092else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007093 ac_cv_c_dll_hpux="no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02007094fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007095rm -f core conftest.err conftest.$ac_objext \
7096 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02007097CFLAGS=$ac_wine_try_cflags_saved
7098fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007100$as_echo "$ac_cv_c_dll_hpux" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02007101 if test "$ac_cv_c_dll_hpux" = "yes"
7102 then
7103 LIBEXT="sl"
7104 DLLEXT=".sl"
7105 LDDLLFLAGS="-shared -fPIC"
7106 LDSHARED="\$(CC) -shared"
7107 fi
7108 fi
7109 fi
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007110 ;;
7111esac
Alexandre Julliarda3097622007-07-02 17:27:48 +02007112
Aric Stewarteefe6f62010-12-03 07:33:08 -06007113enable_wineqtdecoder=${enable_wineqtdecoder:-no}
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007114enable_winequartz_drv=${enable_winequartz_drv:-no}
Alexandre Julliarda3097622007-07-02 17:27:48 +02007115
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007116if test "$LIBEXT" = "a"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02007117 as_fn_error $? "could not find a way to build shared libraries.
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007118It is currently not possible to build Wine without shared library
7119(.so) support to allow transparent switch between .so and .dll files.
7120If you are using Linux, you will need a newer binutils.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007121" "$LINENO" 5
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007122fi
7123
Alexandre Julliard7d2e7722010-07-26 12:13:47 +02007124CROSSTEST_DISABLE=\#
7125
7126if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007127then
Alexandre Julliarda91fb212009-12-07 15:36:09 +01007128 case "$host_cpu" in
7129 i[3456789]86*)
Damjan Jovanovic009ad8a2012-06-14 08:20:58 +02007130 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
7131 mingw32-gcc" ;;
Alexandre Julliarda91fb212009-12-07 15:36:09 +01007132 x86_64)
Vincent Povirkd2103752010-10-11 15:55:40 -05007133 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 +01007134 *)
7135 ac_prefix_list="" ;;
7136esac
7137for ac_prog in $ac_prefix_list
Alexandre Julliarda3097622007-07-02 17:27:48 +02007138do
7139 # Extract the first word of "$ac_prog", so it can be a program name with args.
7140set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007142$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007143if ${ac_cv_prog_CROSSCC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007144 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02007145else
7146 if test -n "$CROSSCC"; then
7147 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7148else
7149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150for as_dir in $PATH
7151do
7152 IFS=$as_save_IFS
7153 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007154 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02007155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliarda3097622007-07-02 17:27:48 +02007156 ac_cv_prog_CROSSCC="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02007158 break 2
7159 fi
7160done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007161 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02007162IFS=$as_save_IFS
7163
7164fi
7165fi
7166CROSSCC=$ac_cv_prog_CROSSCC
7167if test -n "$CROSSCC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007169$as_echo "$CROSSCC" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02007170else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007172$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02007173fi
7174
7175
7176 test -n "$CROSSCC" && break
7177done
7178test -n "$CROSSCC" || CROSSCC="false"
7179
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007180 if test "$CROSSCC" != "false"
7181 then
Alexandre Julliardc2a29db2010-08-04 13:16:19 +02007182 ac_save_CC="$CC"
7183 CC="$CROSSCC"
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7185$as_echo_n "checking whether $CROSSCC works... " >&6; }
7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187/* end confdefs.h. */
Alexandre Julliarda2d88ab2009-05-30 17:08:06 +02007188
Alexandre Julliardc2a29db2010-08-04 13:16:19 +02007189int
7190main ()
7191{
7192
7193 ;
7194 return 0;
7195}
7196_ACEOF
7197if ac_fn_c_try_compile "$LINENO"; then :
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7199$as_echo "yes" >&6; }
7200 set x $CROSSCC
7201 shift
7202 target=""
7203 while test $# -ge 1
7204 do
7205 case "$1" in
7206 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7207 esac
7208 shift
7209 done
7210 if test -n "$target"
7211 then
7212 CROSSTEST_DISABLE=""
7213 CROSSTARGET="$target"
7214
7215 fi
7216else
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7218$as_echo "no" >&6; }
7219fi
7220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7221 CC="$ac_save_CC"
Alexandre Julliarda3097622007-07-02 17:27:48 +02007222 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02007223fi
7224
7225
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007226if test "$ac_cv_header_pthread_h" = "yes"
7227then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007229$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007230if ${ac_cv_lib_pthread_pthread_create+:} false; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007231 $as_echo_n "(cached) " >&6
7232else
7233 ac_check_lib_save_LIBS=$LIBS
7234LIBS="-lpthread $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007236/* end confdefs.h. */
7237
7238/* Override any GCC internal prototype to avoid an error.
7239 Use char because int might match the return type of a GCC
7240 builtin and then its argument prototype would still apply. */
7241#ifdef __cplusplus
7242extern "C"
7243#endif
7244char pthread_create ();
7245int
7246main ()
7247{
7248return pthread_create ();
7249 ;
7250 return 0;
7251}
7252_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007253if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007254 ac_cv_lib_pthread_pthread_create=yes
7255else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007256 ac_cv_lib_pthread_pthread_create=no
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007257fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007258rm -f core conftest.err conftest.$ac_objext \
7259 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007260LIBS=$ac_check_lib_save_LIBS
7261fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007263$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007264if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007265 LIBPTHREAD="-lpthread"
7266
7267fi
7268
7269fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007270if test "x$LIBPTHREAD" = "x"; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007271 case "x$with_pthread" in
7272 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02007273 *) as_fn_error $? "pthread ${notice_platform}development files not found.
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007274Wine cannot support threads without libpthread.
Alexandre Julliard9797da42011-04-27 17:37:43 +02007275Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007276esac
7277fi
7278
7279
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007281$as_echo_n "checking for X... " >&6; }
7282
7283
7284# Check whether --with-x was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007285if test "${with_x+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007286 withval=$with_x;
7287fi
7288
7289# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7290if test "x$with_x" = xno; then
7291 # The user explicitly disabled X.
7292 have_x=disabled
7293else
7294 case $x_includes,$x_libraries in #(
Alexandre Julliard9797da42011-04-27 17:37:43 +02007295 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7296 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007297 $as_echo_n "(cached) " >&6
7298else
7299 # One or both of the vars are not set, and there is no cached value.
7300ac_x_includes=no ac_x_libraries=no
7301rm -f -r conftest.dir
7302if mkdir conftest.dir; then
7303 cd conftest.dir
7304 cat >Imakefile <<'_ACEOF'
7305incroot:
7306 @echo incroot='${INCROOT}'
7307usrlibdir:
7308 @echo usrlibdir='${USRLIBDIR}'
7309libdir:
7310 @echo libdir='${LIBDIR}'
7311_ACEOF
7312 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02007313 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Alexandre Julliard40664c02009-02-11 20:40:58 +01007314 for ac_var in incroot usrlibdir libdir; do
7315 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7316 done
7317 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7318 for ac_extension in a so sl dylib la dll; do
7319 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7320 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7321 ac_im_usrlibdir=$ac_im_libdir; break
7322 fi
7323 done
7324 # Screen out bogus values from the imake configuration. They are
7325 # bogus both because they are the default anyway, and because
7326 # using them would break gcc on systems where it needs fixed includes.
7327 case $ac_im_incroot in
7328 /usr/include) ac_x_includes= ;;
7329 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7330 esac
7331 case $ac_im_usrlibdir in
7332 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7333 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7334 esac
7335 fi
7336 cd ..
7337 rm -f -r conftest.dir
7338fi
7339
7340# Standard set of common directories for X headers.
7341# Check X11 before X11Rn because it is often a symlink to the current release.
7342ac_x_header_dirs='
7343/usr/X11/include
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007344/usr/X11R7/include
Alexandre Julliard40664c02009-02-11 20:40:58 +01007345/usr/X11R6/include
7346/usr/X11R5/include
7347/usr/X11R4/include
7348
7349/usr/include/X11
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007350/usr/include/X11R7
Alexandre Julliard40664c02009-02-11 20:40:58 +01007351/usr/include/X11R6
7352/usr/include/X11R5
7353/usr/include/X11R4
7354
7355/usr/local/X11/include
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007356/usr/local/X11R7/include
Alexandre Julliard40664c02009-02-11 20:40:58 +01007357/usr/local/X11R6/include
7358/usr/local/X11R5/include
7359/usr/local/X11R4/include
7360
7361/usr/local/include/X11
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007362/usr/local/include/X11R7
Alexandre Julliard40664c02009-02-11 20:40:58 +01007363/usr/local/include/X11R6
7364/usr/local/include/X11R5
7365/usr/local/include/X11R4
7366
7367/usr/X386/include
7368/usr/x386/include
7369/usr/XFree86/include/X11
7370
7371/usr/include
7372/usr/local/include
7373/usr/unsupported/include
7374/usr/athena/include
7375/usr/local/x11r5/include
7376/usr/lpp/Xamples/include
7377
7378/usr/openwin/include
7379/usr/openwin/share/include'
7380
7381if test "$ac_x_includes" = no; then
7382 # Guess where to find include files, by looking for Xlib.h.
7383 # First, try using that file with no special directory specified.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007385/* end confdefs.h. */
7386#include <X11/Xlib.h>
7387_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007388if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007389 # We can compile using X headers with no special include directory.
7390ac_x_includes=
7391else
Alexandre Julliard40664c02009-02-11 20:40:58 +01007392 for ac_dir in $ac_x_header_dirs; do
7393 if test -r "$ac_dir/X11/Xlib.h"; then
7394 ac_x_includes=$ac_dir
7395 break
7396 fi
7397done
7398fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02007399rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007400fi # $ac_x_includes = no
7401
7402if test "$ac_x_libraries" = no; then
7403 # Check for the libraries.
7404 # See if we find them without any special options.
7405 # Don't add to $LIBS permanently.
7406 ac_save_LIBS=$LIBS
7407 LIBS="-lX11 $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007409/* end confdefs.h. */
7410#include <X11/Xlib.h>
7411int
7412main ()
7413{
7414XrmInitialize ()
7415 ;
7416 return 0;
7417}
7418_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007419if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007420 LIBS=$ac_save_LIBS
7421# We can link X programs with no special library path.
7422ac_x_libraries=
7423else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007424 LIBS=$ac_save_LIBS
Alexandre Julliard40664c02009-02-11 20:40:58 +01007425for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7426do
7427 # Don't even attempt the hair of trying to link an X program!
7428 for ac_extension in a so sl dylib la dll; do
7429 if test -r "$ac_dir/libX11.$ac_extension"; then
7430 ac_x_libraries=$ac_dir
7431 break 2
7432 fi
7433 done
7434done
7435fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007436rm -f core conftest.err conftest.$ac_objext \
7437 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007438fi # $ac_x_libraries = no
7439
7440case $ac_x_includes,$ac_x_libraries in #(
7441 no,* | *,no | *\'*)
7442 # Didn't find X, or a directory has "'" in its name.
7443 ac_cv_have_x="have_x=no";; #(
7444 *)
7445 # Record where we found X for the cache.
7446 ac_cv_have_x="have_x=yes\
7447 ac_x_includes='$ac_x_includes'\
7448 ac_x_libraries='$ac_x_libraries'"
7449esac
7450fi
7451;; #(
7452 *) have_x=yes;;
7453 esac
7454 eval "$ac_cv_have_x"
7455fi # $with_x != no
7456
7457if test "$have_x" != yes; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007459$as_echo "$have_x" >&6; }
7460 no_x=yes
7461else
7462 # If each of the values was on the command line, it overrides each guess.
7463 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7464 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7465 # Update the cache value to reflect the command line values.
7466 ac_cv_have_x="have_x=yes\
7467 ac_x_includes='$x_includes'\
7468 ac_x_libraries='$x_libraries'"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007470$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7471fi
7472
7473if test "$no_x" = yes; then
7474 # Not all programs may use this symbol, but it does not hurt to define it.
7475
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007476$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
Alexandre Julliard40664c02009-02-11 20:40:58 +01007477
7478 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7479else
7480 if test -n "$x_includes"; then
7481 X_CFLAGS="$X_CFLAGS -I$x_includes"
7482 fi
7483
7484 # It would also be nice to do this for all -L options, not just this one.
7485 if test -n "$x_libraries"; then
7486 X_LIBS="$X_LIBS -L$x_libraries"
7487 # For Solaris; some versions of Sun CC require a space after -R and
7488 # others require no space. Words are not sufficient . . . .
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007490$as_echo_n "checking whether -R must be followed by a space... " >&6; }
7491 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7492 ac_xsave_c_werror_flag=$ac_c_werror_flag
7493 ac_c_werror_flag=yes
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007495/* end confdefs.h. */
7496
7497int
7498main ()
7499{
7500
7501 ;
7502 return 0;
7503}
7504_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007505if ac_fn_c_try_link "$LINENO"; then :
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007507$as_echo "no" >&6; }
7508 X_LIBS="$X_LIBS -R$x_libraries"
7509else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007510 LIBS="$ac_xsave_LIBS -R $x_libraries"
7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007512/* end confdefs.h. */
7513
7514int
7515main ()
7516{
7517
7518 ;
7519 return 0;
7520}
7521_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007522if ac_fn_c_try_link "$LINENO"; then :
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007524$as_echo "yes" >&6; }
7525 X_LIBS="$X_LIBS -R $x_libraries"
7526else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007528$as_echo "neither works" >&6; }
7529fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007530rm -f core conftest.err conftest.$ac_objext \
7531 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007532fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007533rm -f core conftest.err conftest.$ac_objext \
7534 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007535 ac_c_werror_flag=$ac_xsave_c_werror_flag
7536 LIBS=$ac_xsave_LIBS
7537 fi
7538
7539 # Check for system-dependent libraries X programs must link with.
7540 # Do this before checking for the system-independent R6 libraries
7541 # (-lICE), since we may need -lsocket or whatever for X linking.
7542
7543 if test "$ISC" = yes; then
7544 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7545 else
7546 # Martyn Johnson says this is needed for Ultrix, if the X
7547 # libraries were built with DECnet support. And Karl Berry says
7548 # the Alpha needs dnet_stub (dnet does not exist).
7549 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007551/* end confdefs.h. */
7552
7553/* Override any GCC internal prototype to avoid an error.
7554 Use char because int might match the return type of a GCC
7555 builtin and then its argument prototype would still apply. */
7556#ifdef __cplusplus
7557extern "C"
7558#endif
7559char XOpenDisplay ();
7560int
7561main ()
7562{
7563return XOpenDisplay ();
7564 ;
7565 return 0;
7566}
7567_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007568if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007569
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007570else
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007572$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007573if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007574 $as_echo_n "(cached) " >&6
7575else
7576 ac_check_lib_save_LIBS=$LIBS
7577LIBS="-ldnet $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007579/* end confdefs.h. */
7580
7581/* Override any GCC internal prototype to avoid an error.
7582 Use char because int might match the return type of a GCC
7583 builtin and then its argument prototype would still apply. */
7584#ifdef __cplusplus
7585extern "C"
7586#endif
7587char dnet_ntoa ();
7588int
7589main ()
7590{
7591return dnet_ntoa ();
7592 ;
7593 return 0;
7594}
7595_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007596if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007597 ac_cv_lib_dnet_dnet_ntoa=yes
7598else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007599 ac_cv_lib_dnet_dnet_ntoa=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007600fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007601rm -f core conftest.err conftest.$ac_objext \
7602 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007603LIBS=$ac_check_lib_save_LIBS
7604fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007606$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007607if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007608 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7609fi
7610
7611 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007613$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007614if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007615 $as_echo_n "(cached) " >&6
7616else
7617 ac_check_lib_save_LIBS=$LIBS
7618LIBS="-ldnet_stub $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007620/* end confdefs.h. */
7621
7622/* Override any GCC internal prototype to avoid an error.
7623 Use char because int might match the return type of a GCC
7624 builtin and then its argument prototype would still apply. */
7625#ifdef __cplusplus
7626extern "C"
7627#endif
7628char dnet_ntoa ();
7629int
7630main ()
7631{
7632return dnet_ntoa ();
7633 ;
7634 return 0;
7635}
7636_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007637if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007638 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7639else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007640 ac_cv_lib_dnet_stub_dnet_ntoa=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007641fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007642rm -f core conftest.err conftest.$ac_objext \
7643 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007644LIBS=$ac_check_lib_save_LIBS
7645fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007647$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007648if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007649 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7650fi
7651
7652 fi
7653fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007654rm -f core conftest.err conftest.$ac_objext \
7655 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007656 LIBS="$ac_xsave_LIBS"
7657
7658 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7659 # to get the SysV transport functions.
7660 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7661 # needs -lnsl.
7662 # The nsl library prevents programs from opening the X display
7663 # on Irix 5.2, according to T.E. Dickey.
7664 # The functions gethostbyname, getservbyname, and inet_addr are
7665 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007666 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
Alexandre Julliard9797da42011-04-27 17:37:43 +02007667if test "x$ac_cv_func_gethostbyname" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007668
Alexandre Julliard40664c02009-02-11 20:40:58 +01007669fi
7670
Alexandre Julliard40664c02009-02-11 20:40:58 +01007671 if test $ac_cv_func_gethostbyname = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007673$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007674if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007675 $as_echo_n "(cached) " >&6
7676else
7677 ac_check_lib_save_LIBS=$LIBS
7678LIBS="-lnsl $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007680/* end confdefs.h. */
7681
7682/* Override any GCC internal prototype to avoid an error.
7683 Use char because int might match the return type of a GCC
7684 builtin and then its argument prototype would still apply. */
7685#ifdef __cplusplus
7686extern "C"
7687#endif
7688char gethostbyname ();
7689int
7690main ()
7691{
7692return gethostbyname ();
7693 ;
7694 return 0;
7695}
7696_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007697if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007698 ac_cv_lib_nsl_gethostbyname=yes
7699else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007700 ac_cv_lib_nsl_gethostbyname=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007701fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007702rm -f core conftest.err conftest.$ac_objext \
7703 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007704LIBS=$ac_check_lib_save_LIBS
7705fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007707$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007708if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007709 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7710fi
7711
7712 if test $ac_cv_lib_nsl_gethostbyname = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007714$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007715if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007716 $as_echo_n "(cached) " >&6
7717else
7718 ac_check_lib_save_LIBS=$LIBS
7719LIBS="-lbsd $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007721/* end confdefs.h. */
7722
7723/* Override any GCC internal prototype to avoid an error.
7724 Use char because int might match the return type of a GCC
7725 builtin and then its argument prototype would still apply. */
7726#ifdef __cplusplus
7727extern "C"
7728#endif
7729char gethostbyname ();
7730int
7731main ()
7732{
7733return gethostbyname ();
7734 ;
7735 return 0;
7736}
7737_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007738if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007739 ac_cv_lib_bsd_gethostbyname=yes
7740else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007741 ac_cv_lib_bsd_gethostbyname=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007742fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007743rm -f core conftest.err conftest.$ac_objext \
7744 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007745LIBS=$ac_check_lib_save_LIBS
7746fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007748$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007749if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007750 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7751fi
7752
7753 fi
7754 fi
7755
7756 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7757 # socket/setsockopt and other routines are undefined under SCO ODT
7758 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7759 # on later versions), says Simon Leinen: it contains gethostby*
7760 # variants that don't use the name server (or something). -lsocket
7761 # must be given before -lnsl if both are needed. We assume that
7762 # if connect needs -lnsl, so does gethostbyname.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007763 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
Alexandre Julliard9797da42011-04-27 17:37:43 +02007764if test "x$ac_cv_func_connect" = 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_connect = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007770$as_echo_n "checking for connect in -lsocket... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007771if ${ac_cv_lib_socket_connect+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007772 $as_echo_n "(cached) " >&6
7773else
7774 ac_check_lib_save_LIBS=$LIBS
7775LIBS="-lsocket $X_EXTRA_LIBS $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 connect ();
7786int
7787main ()
7788{
7789return connect ();
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_socket_connect=yes
7796else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007797 ac_cv_lib_socket_connect=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_socket_connect" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007804$as_echo "$ac_cv_lib_socket_connect" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007805if test "x$ac_cv_lib_socket_connect" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007806 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7807fi
7808
7809 fi
7810
7811 # Guillermo Gomez says -lposix is necessary on A/UX.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007812 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
Alexandre Julliard9797da42011-04-27 17:37:43 +02007813if test "x$ac_cv_func_remove" = 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_remove = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007819$as_echo_n "checking for remove in -lposix... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007820if ${ac_cv_lib_posix_remove+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007821 $as_echo_n "(cached) " >&6
7822else
7823 ac_check_lib_save_LIBS=$LIBS
7824LIBS="-lposix $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 remove ();
7835int
7836main ()
7837{
7838return remove ();
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_posix_remove=yes
7845else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007846 ac_cv_lib_posix_remove=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_posix_remove" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007853$as_echo "$ac_cv_lib_posix_remove" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007854if test "x$ac_cv_lib_posix_remove" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007855 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7856fi
7857
7858 fi
7859
7860 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007861 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
Alexandre Julliard9797da42011-04-27 17:37:43 +02007862if test "x$ac_cv_func_shmat" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007863
Alexandre Julliard40664c02009-02-11 20:40:58 +01007864fi
7865
Alexandre Julliard40664c02009-02-11 20:40:58 +01007866 if test $ac_cv_func_shmat = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007868$as_echo_n "checking for shmat in -lipc... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007869if ${ac_cv_lib_ipc_shmat+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007870 $as_echo_n "(cached) " >&6
7871else
7872 ac_check_lib_save_LIBS=$LIBS
7873LIBS="-lipc $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007875/* end confdefs.h. */
7876
7877/* Override any GCC internal prototype to avoid an error.
7878 Use char because int might match the return type of a GCC
7879 builtin and then its argument prototype would still apply. */
7880#ifdef __cplusplus
7881extern "C"
7882#endif
7883char shmat ();
7884int
7885main ()
7886{
7887return shmat ();
7888 ;
7889 return 0;
7890}
7891_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007892if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007893 ac_cv_lib_ipc_shmat=yes
7894else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007895 ac_cv_lib_ipc_shmat=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007896fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007897rm -f core conftest.err conftest.$ac_objext \
7898 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007899LIBS=$ac_check_lib_save_LIBS
7900fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007902$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007903if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007904 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7905fi
7906
7907 fi
7908 fi
7909
7910 # Check for libraries that X11R6 Xt/Xaw programs need.
7911 ac_save_LDFLAGS=$LDFLAGS
7912 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7913 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7914 # check for ICE first), but we must link in the order -lSM -lICE or
7915 # we get undefined symbols. So assume we have SM if we have ICE.
7916 # These have to be linked with before -lX11, unlike the other
7917 # libraries we check for below, so use a different variable.
7918 # John Interrante, Karl Berry
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007920$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007921if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007922 $as_echo_n "(cached) " >&6
7923else
7924 ac_check_lib_save_LIBS=$LIBS
7925LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007927/* end confdefs.h. */
7928
7929/* Override any GCC internal prototype to avoid an error.
7930 Use char because int might match the return type of a GCC
7931 builtin and then its argument prototype would still apply. */
7932#ifdef __cplusplus
7933extern "C"
7934#endif
7935char IceConnectionNumber ();
7936int
7937main ()
7938{
7939return IceConnectionNumber ();
7940 ;
7941 return 0;
7942}
7943_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007944if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007945 ac_cv_lib_ICE_IceConnectionNumber=yes
7946else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007947 ac_cv_lib_ICE_IceConnectionNumber=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007948fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007949rm -f core conftest.err conftest.$ac_objext \
7950 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007951LIBS=$ac_check_lib_save_LIBS
7952fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007954$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007955if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007956 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7957fi
7958
7959 LDFLAGS=$ac_save_LDFLAGS
7960
7961fi
7962
7963
Rein Klazes7ff12562004-11-09 20:16:35 +00007964if test "$have_x" = "yes"
7965then
Alexandre Julliardfd03c502009-08-17 15:11:08 +02007966 XLIB="-lX11"
Rein Klazes7ff12562004-11-09 20:16:35 +00007967 ac_save_CPPFLAGS="$CPPFLAGS"
7968 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7969
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007971$as_echo_n "checking for -lX11... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007972if ${ac_cv_lib_soname_X11+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007973 $as_echo_n "(cached) " >&6
Alexandre Julliarda8518542007-07-09 22:43:45 +02007974else
7975 ac_check_soname_save_LIBS=$LIBS
7976LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007978/* end confdefs.h. */
7979
7980/* Override any GCC internal prototype to avoid an error.
7981 Use char because int might match the return type of a GCC
7982 builtin and then its argument prototype would still apply. */
7983#ifdef __cplusplus
7984extern "C"
7985#endif
7986char XCreateWindow ();
7987int
7988main ()
7989{
7990return XCreateWindow ();
7991 ;
7992 return 0;
7993}
7994_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007995if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda8518542007-07-09 22:43:45 +02007996 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01007997 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 +02007998 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'` ;;
7999 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8000 esac
Alexandre Julliarda8518542007-07-09 22:43:45 +02008001fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008002rm -f core conftest.err conftest.$ac_objext \
8003 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02008004 LIBS=$ac_check_soname_save_LIBS
8005fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008006if test "x$ac_cv_lib_soname_X11" = "x"; then :
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008008$as_echo "not found" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02008009
8010else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008012$as_echo "$ac_cv_lib_soname_X11" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02008013
8014cat >>confdefs.h <<_ACEOF
8015#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
8016_ACEOF
8017
8018
8019fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008021$as_echo_n "checking for -lXext... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008022if ${ac_cv_lib_soname_Xext+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008023 $as_echo_n "(cached) " >&6
Alexandre Julliarda8518542007-07-09 22:43:45 +02008024else
8025 ac_check_soname_save_LIBS=$LIBS
8026LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02008028/* end confdefs.h. */
8029
8030/* Override any GCC internal prototype to avoid an error.
8031 Use char because int might match the return type of a GCC
8032 builtin and then its argument prototype would still apply. */
8033#ifdef __cplusplus
8034extern "C"
8035#endif
8036char XextCreateExtension ();
8037int
8038main ()
8039{
8040return XextCreateExtension ();
8041 ;
8042 return 0;
8043}
8044_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008045if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda8518542007-07-09 22:43:45 +02008046 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008047 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 +02008048 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'` ;;
8049 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8050 esac
Alexandre Julliarda8518542007-07-09 22:43:45 +02008051fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008052rm -f core conftest.err conftest.$ac_objext \
8053 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02008054 LIBS=$ac_check_soname_save_LIBS
8055fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008056if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008058$as_echo "not found" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02008059
8060else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008062$as_echo "$ac_cv_lib_soname_Xext" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02008063
8064cat >>confdefs.h <<_ACEOF
8065#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8066_ACEOF
8067
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008068 XLIB="-lXext $XLIB"
Alexandre Julliarda8518542007-07-09 22:43:45 +02008069fi
8070
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008071 for ac_header in X11/Xlib.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008072 X11/XKBlib.h \
8073 X11/Xutil.h \
Andrew Riedi23e2cb12007-03-22 12:06:19 -07008074 X11/Xcursor/Xcursor.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008075 X11/extensions/shape.h \
8076 X11/extensions/XInput.h \
Alexandre Julliard77e05ce2011-04-13 18:51:50 +02008077 X11/extensions/XInput2.h \
Chris Robinson42584652007-09-22 18:19:08 -07008078 X11/extensions/Xcomposite.h \
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008079 X11/extensions/Xinerama.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008080 X11/extensions/Xrandr.h \
8081 X11/extensions/Xrender.h \
André Hentschel7b285a42009-09-19 19:08:09 +02008082 X11/extensions/xf86vmode.h \
8083 X11/extensions/xf86vmproto.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008084do :
8085 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8086ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
Alexandre Julliard73482142005-08-03 19:21:04 +00008087# include <X11/Xlib.h>
8088#endif
8089#ifdef HAVE_X11_XUTIL_H
8090# include <X11/Xutil.h>
8091#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008092"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008093if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008094 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01008095#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008096_ACEOF
Alexandre Julliard255b4862003-10-15 04:09:55 +00008097
8098fi
8099
8100done
8101
8102
8103 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8104 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008106$as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008107if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008108 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008109else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008110 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008111LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008113/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008114
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008115/* Override any GCC internal prototype to avoid an error.
8116 Use char because int might match the return type of a GCC
8117 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008118#ifdef __cplusplus
8119extern "C"
8120#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008121char XkbQueryExtension ();
8122int
8123main ()
8124{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008125return XkbQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008126 ;
8127 return 0;
8128}
8129_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008130if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008131 ac_cv_lib_X11_XkbQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00008132else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008133 ac_cv_lib_X11_XkbQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008134fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008135rm -f core conftest.err conftest.$ac_objext \
8136 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008137LIBS=$ac_check_lib_save_LIBS
8138fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008140$as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008141if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
Patrik Stridvall24110281999-02-04 10:09:54 +00008142
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008143$as_echo "#define HAVE_XKB 1" >>confdefs.h
Patrik Stridvall24110281999-02-04 10:09:54 +00008144
Patrik Stridvall24110281999-02-04 10:09:54 +00008145fi
8146
Alexandre Julliard255b4862003-10-15 04:09:55 +00008147 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008148
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008149 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8150 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008152$as_echo_n "checking for -lXcursor... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008153if ${ac_cv_lib_soname_Xcursor+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008154 $as_echo_n "(cached) " >&6
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008155else
8156 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008157LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008159/* end confdefs.h. */
8160
8161/* Override any GCC internal prototype to avoid an error.
8162 Use char because int might match the return type of a GCC
8163 builtin and then its argument prototype would still apply. */
8164#ifdef __cplusplus
8165extern "C"
8166#endif
8167char XcursorImageLoadCursor ();
8168int
8169main ()
8170{
8171return XcursorImageLoadCursor ();
8172 ;
8173 return 0;
8174}
8175_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008176if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008177 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008178 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 +02008179 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'` ;;
8180 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8181 esac
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008182fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008183rm -f core conftest.err conftest.$ac_objext \
8184 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008185 LIBS=$ac_check_soname_save_LIBS
8186fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008187if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008189$as_echo "not found" >&6; }
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008190
8191else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008193$as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008194
8195cat >>confdefs.h <<_ACEOF
8196#define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8197_ACEOF
8198
8199
8200fi
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008201 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008202 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008203 case "x$with_xcursor" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008204 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 +01008205 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008206 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008207This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008208esac
8209fi
8210
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008211 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8212 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008214$as_echo_n "checking for -lXi... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008215if ${ac_cv_lib_soname_Xi+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008216 $as_echo_n "(cached) " >&6
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008217else
8218 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008219LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008221/* end confdefs.h. */
8222
8223/* Override any GCC internal prototype to avoid an error.
8224 Use char because int might match the return type of a GCC
8225 builtin and then its argument prototype would still apply. */
8226#ifdef __cplusplus
8227extern "C"
8228#endif
8229char XOpenDevice ();
8230int
8231main ()
8232{
8233return XOpenDevice ();
8234 ;
8235 return 0;
8236}
8237_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008238if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008239 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008240 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 +02008241 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'` ;;
8242 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8243 esac
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008244fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008245rm -f core conftest.err conftest.$ac_objext \
8246 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008247 LIBS=$ac_check_soname_save_LIBS
8248fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008249if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008251$as_echo "not found" >&6; }
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008252
8253else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008255$as_echo "$ac_cv_lib_soname_Xi" >&6; }
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008256
8257cat >>confdefs.h <<_ACEOF
8258#define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8259_ACEOF
8260
8261
8262fi
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008263 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008264 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008265 case "x$with_xinput" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008266 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 +01008267 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008268 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008269This is an error since --with-xinput was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008270esac
8271fi
8272
Alexandre Julliard77e05ce2011-04-13 18:51:50 +02008273 if test "x$ac_cv_lib_soname_Xi" != x
8274 then
8275 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8276 case "x$with_xinput2" in
8277 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8278 xno) ;;
8279 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008280This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
Alexandre Julliard77e05ce2011-04-13 18:51:50 +02008281esac
8282fi
8283 fi
8284
Alexandre Julliard255b4862003-10-15 04:09:55 +00008285 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8286 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008288$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008289if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008290 $as_echo_n "(cached) " >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00008291else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008292 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008293LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008295/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008296
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008297/* Override any GCC internal prototype to avoid an error.
8298 Use char because int might match the return type of a GCC
8299 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008300#ifdef __cplusplus
8301extern "C"
8302#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008303char XShapeQueryExtension ();
8304int
8305main ()
8306{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008307return XShapeQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008308 ;
8309 return 0;
8310}
8311_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008312if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008313 ac_cv_lib_Xext_XShapeQueryExtension=yes
Ove Kaavenc90fb252001-01-02 22:39:14 +00008314else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008315 ac_cv_lib_Xext_XShapeQueryExtension=no
Ove Kaavenc90fb252001-01-02 22:39:14 +00008316fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008317rm -f core conftest.err conftest.$ac_objext \
8318 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008319LIBS=$ac_check_lib_save_LIBS
8320fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008322$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008323if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
Ove Kaavenc90fb252001-01-02 22:39:14 +00008324
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008325$as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
Ove Kaavenc90fb252001-01-02 22:39:14 +00008326
Ove Kaavenc90fb252001-01-02 22:39:14 +00008327fi
8328
Alexandre Julliard255b4862003-10-15 04:09:55 +00008329 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008330 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008331 case "x$with_xshape" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008332 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 +01008333 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008334 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008335This is an error since --with-xshape was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008336esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008337fi
8338
André Hentschel7b285a42009-09-19 19:08:09 +02008339 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 +00008340 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008342$as_echo_n "checking for -lXxf86vm... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008343if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008344 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008345else
Francois Gougeta49beb42008-06-26 14:02:17 +02008346 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008347LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008349/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008350
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008351/* Override any GCC internal prototype to avoid an error.
8352 Use char because int might match the return type of a GCC
8353 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008354#ifdef __cplusplus
8355extern "C"
8356#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008357char XF86VidModeQueryExtension ();
8358int
8359main ()
8360{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008361return XF86VidModeQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008362 ;
8363 return 0;
8364}
8365_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008366if ac_fn_c_try_link "$LINENO"; then :
Francois Gougeta49beb42008-06-26 14:02:17 +02008367 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008368 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 +02008369 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'` ;;
8370 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8371 esac
Patrik Stridvall24110281999-02-04 10:09:54 +00008372fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008373rm -f core conftest.err conftest.$ac_objext \
8374 conftest$ac_exeext conftest.$ac_ext
Francois Gougeta49beb42008-06-26 14:02:17 +02008375 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008376fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008377if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008379$as_echo "not found" >&6; }
Patrik Stridvall24110281999-02-04 10:09:54 +00008380
Francois Gougeta49beb42008-06-26 14:02:17 +02008381else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008383$as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
Francois Gougeta49beb42008-06-26 14:02:17 +02008384
8385cat >>confdefs.h <<_ACEOF
8386#define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008387_ACEOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008388
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008389
Patrik Stridvall24110281999-02-04 10:09:54 +00008390fi
Alexandre Julliard255b4862003-10-15 04:09:55 +00008391 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008392 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
Francois Gougeta49beb42008-06-26 14:02:17 +02008393 case "x$with_xxf86vm" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008394 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 +01008395 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008396 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008397This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008398esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008399fi
8400
Alexandre Julliarda8518542007-07-09 22:43:45 +02008401 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 +02008402 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008404$as_echo_n "checking for -lXrender... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008405if ${ac_cv_lib_soname_Xrender+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008406 $as_echo_n "(cached) " >&6
Alexandre Julliard629639e2007-07-04 12:47:57 +02008407else
8408 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008409LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008411/* end confdefs.h. */
8412
8413/* Override any GCC internal prototype to avoid an error.
8414 Use char because int might match the return type of a GCC
8415 builtin and then its argument prototype would still apply. */
8416#ifdef __cplusplus
8417extern "C"
8418#endif
8419char XRenderQueryExtension ();
8420int
8421main ()
8422{
8423return XRenderQueryExtension ();
8424 ;
8425 return 0;
8426}
8427_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008428if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008429 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008430 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 +02008431 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'` ;;
8432 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8433 esac
Alexandre Julliard629639e2007-07-04 12:47:57 +02008434fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008435rm -f core conftest.err conftest.$ac_objext \
8436 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008437 LIBS=$ac_check_soname_save_LIBS
8438fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008439if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008441$as_echo "not found" >&6; }
Alexandre Julliard629639e2007-07-04 12:47:57 +02008442
8443else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008445$as_echo "$ac_cv_lib_soname_Xrender" >&6; }
Alexandre Julliard629639e2007-07-04 12:47:57 +02008446
8447cat >>confdefs.h <<_ACEOF
8448#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8449_ACEOF
8450
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008452$as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008453if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008454 $as_echo_n "(cached) " >&6
Alexandre Julliard629639e2007-07-04 12:47:57 +02008455else
8456 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008457LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008459/* end confdefs.h. */
8460
8461/* Override any GCC internal prototype to avoid an error.
8462 Use char because int might match the return type of a GCC
8463 builtin and then its argument prototype would still apply. */
8464#ifdef __cplusplus
8465extern "C"
8466#endif
8467char XRenderSetPictureTransform ();
8468int
8469main ()
8470{
8471return XRenderSetPictureTransform ();
8472 ;
8473 return 0;
8474}
8475_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008476if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008477 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8478else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008479 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
Alexandre Julliard629639e2007-07-04 12:47:57 +02008480fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008481rm -f core conftest.err conftest.$ac_objext \
8482 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008483LIBS=$ac_check_lib_save_LIBS
8484fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008486$as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008487if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008488
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008489$as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
Alexandre Julliard629639e2007-07-04 12:47:57 +02008490
8491fi
8492
Alexandre Julliard76358212011-11-30 13:22:21 +01008493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
8494$as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
8495if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
8496 $as_echo_n "(cached) " >&6
8497else
8498 ac_check_lib_save_LIBS=$LIBS
8499LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501/* end confdefs.h. */
8502
8503/* Override any GCC internal prototype to avoid an error.
8504 Use char because int might match the return type of a GCC
8505 builtin and then its argument prototype would still apply. */
8506#ifdef __cplusplus
8507extern "C"
8508#endif
8509char XRenderCreateLinearGradient ();
8510int
8511main ()
8512{
8513return XRenderCreateLinearGradient ();
8514 ;
8515 return 0;
8516}
8517_ACEOF
8518if ac_fn_c_try_link "$LINENO"; then :
8519 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
8520else
8521 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
8522fi
8523rm -f core conftest.err conftest.$ac_objext \
8524 conftest$ac_exeext conftest.$ac_ext
8525LIBS=$ac_check_lib_save_LIBS
8526fi
8527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
8528$as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
8529if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
8530
8531$as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
8532
8533fi
8534
Alexandre Julliard629639e2007-07-04 12:47:57 +02008535fi
8536
Alexandre Julliard629639e2007-07-04 12:47:57 +02008537 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008538 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008539 case "x$with_xrender" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008540 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 +01008541 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008542 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008543This is an error since --with-xrender was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008544esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008545fi
8546
Alexandre Julliard629639e2007-07-04 12:47:57 +02008547 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 +00008548 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008550/* end confdefs.h. */
Mike McCormackc7c9f932004-04-07 03:57:35 +00008551#include <X11/Xlib.h>
8552#include <X11/extensions/Xrandr.h>
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008553int
8554main ()
8555{
Dan Kegel45725be2011-08-31 17:35:49 -07008556static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008557 ;
8558 return 0;
8559}
8560_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008561if ac_fn_c_try_compile "$LINENO"; then :
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008563$as_echo_n "checking for -lXrandr... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008564if ${ac_cv_lib_soname_Xrandr+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008565 $as_echo_n "(cached) " >&6
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008566else
8567 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008568LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008570/* end confdefs.h. */
8571
8572/* Override any GCC internal prototype to avoid an error.
8573 Use char because int might match the return type of a GCC
8574 builtin and then its argument prototype would still apply. */
8575#ifdef __cplusplus
8576extern "C"
8577#endif
8578char XRRQueryExtension ();
8579int
8580main ()
8581{
8582return XRRQueryExtension ();
8583 ;
8584 return 0;
8585}
8586_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008587if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008588 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008589 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 +02008590 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'` ;;
8591 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8592 esac
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008593fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008594rm -f core conftest.err conftest.$ac_objext \
8595 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008596 LIBS=$ac_check_soname_save_LIBS
8597fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008598if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008600$as_echo "not found" >&6; }
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008601
8602else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008604$as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008605
8606cat >>confdefs.h <<_ACEOF
8607#define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8608_ACEOF
8609
8610
8611fi
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008612fi
Jeremy White0ebeb532006-06-20 13:18:41 +02008613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard255b4862003-10-15 04:09:55 +00008614 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008615 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008616 case "x$with_xrandr" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008617 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 +01008618 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008619 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008620This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008621esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008622fi
8623
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008624 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8625 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008627/* end confdefs.h. */
8628#include <X11/Xlib.h>
8629#include <X11/extensions/Xinerama.h>
8630int
8631main ()
8632{
Dan Kegel45725be2011-08-31 17:35:49 -07008633static typeof(XineramaQueryScreens) * func; if (func) return 0;
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008634 ;
8635 return 0;
8636}
8637_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008638if ac_fn_c_try_compile "$LINENO"; then :
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008640$as_echo_n "checking for -lXinerama... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008641if ${ac_cv_lib_soname_Xinerama+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008642 $as_echo_n "(cached) " >&6
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008643else
8644 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008645LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008647/* end confdefs.h. */
8648
8649/* Override any GCC internal prototype to avoid an error.
8650 Use char because int might match the return type of a GCC
8651 builtin and then its argument prototype would still apply. */
8652#ifdef __cplusplus
8653extern "C"
8654#endif
8655char XineramaQueryScreens ();
8656int
8657main ()
8658{
8659return XineramaQueryScreens ();
8660 ;
8661 return 0;
8662}
8663_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008664if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008665 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008666 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 +02008667 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'` ;;
8668 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8669 esac
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008670fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008671rm -f core conftest.err conftest.$ac_objext \
8672 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008673 LIBS=$ac_check_soname_save_LIBS
8674fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008675if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008677$as_echo "not found" >&6; }
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008678
8679else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008681$as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008682
8683cat >>confdefs.h <<_ACEOF
8684#define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8685_ACEOF
8686
8687
8688fi
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008689fi
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8691 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008692 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008693 case "x$with_xinerama" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008694 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 +01008695 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008696 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008697This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008698esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008699fi
8700
Chris Robinson42584652007-09-22 18:19:08 -07008701 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8702 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008704$as_echo_n "checking for -lXcomposite... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008705if ${ac_cv_lib_soname_Xcomposite+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008706 $as_echo_n "(cached) " >&6
Chris Robinson42584652007-09-22 18:19:08 -07008707else
8708 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008709LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris Robinson42584652007-09-22 18:19:08 -07008711/* end confdefs.h. */
8712
8713/* Override any GCC internal prototype to avoid an error.
8714 Use char because int might match the return type of a GCC
8715 builtin and then its argument prototype would still apply. */
8716#ifdef __cplusplus
8717extern "C"
8718#endif
8719char XCompositeRedirectWindow ();
8720int
8721main ()
8722{
8723return XCompositeRedirectWindow ();
8724 ;
8725 return 0;
8726}
8727_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008728if ac_fn_c_try_link "$LINENO"; then :
Chris Robinson42584652007-09-22 18:19:08 -07008729 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008730 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 -07008731 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'` ;;
8732 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8733 esac
Chris Robinson42584652007-09-22 18:19:08 -07008734fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008735rm -f core conftest.err conftest.$ac_objext \
8736 conftest$ac_exeext conftest.$ac_ext
Chris Robinson42584652007-09-22 18:19:08 -07008737 LIBS=$ac_check_soname_save_LIBS
8738fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008739if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008741$as_echo "not found" >&6; }
Chris Robinson42584652007-09-22 18:19:08 -07008742
8743else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008745$as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
Chris Robinson42584652007-09-22 18:19:08 -07008746
8747cat >>confdefs.h <<_ACEOF
8748#define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8749_ACEOF
8750
8751
8752fi
Chris Robinson42584652007-09-22 18:19:08 -07008753 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008754 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008755 case "x$with_xcomposite" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008756 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 +01008757 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008758 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008759This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008760esac
Chris Robinson42584652007-09-22 18:19:08 -07008761fi
8762
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008763 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 +09008764#include <X11/Xlib.h>
8765#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008766"
Alexandre Julliard9797da42011-04-27 17:37:43 +02008767if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
Kusanagi Kouichi75e40222008-04-16 00:34:54 +09008768
8769cat >>confdefs.h <<_ACEOF
8770#define HAVE_XICCALLBACK_CALLBACK 1
8771_ACEOF
8772
8773
8774fi
Alexandre Julliarda8575a82011-04-12 21:16:15 +02008775ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
8776#include <X11/Xlib.h>
8777#endif
8778"
Alexandre Julliard9797da42011-04-27 17:37:43 +02008779if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
Alexandre Julliarda8575a82011-04-12 21:16:15 +02008780
8781cat >>confdefs.h <<_ACEOF
8782#define HAVE_XEVENT_XCOOKIE 1
8783_ACEOF
8784
8785
8786fi
Kusanagi Kouichi75e40222008-04-16 00:34:54 +09008787
8788
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008789
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008790 opengl_msg=""
8791 if test "x$with_opengl" != "xno"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008792 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008793 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8794do :
8795 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8796ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
Alexandre Julliard73482142005-08-03 19:21:04 +00008797# include <GL/glx.h>
8798#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008799"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008800if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008801 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01008802#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008803_ACEOF
8804
8805fi
8806
8807done
8808
Alexandre Julliard73482142005-08-03 19:21:04 +00008809 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8810 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008812$as_echo_n "checking for up-to-date OpenGL version... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008813if ${wine_cv_opengl_header_version_OK+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008814 $as_echo_n "(cached) " >&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00008815else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008817/* end confdefs.h. */
Lionel Ulmer5c085701999-02-28 19:48:53 +00008818#include <GL/gl.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008819int
8820main ()
8821{
Dan Kegel45725be2011-08-31 17:35:49 -07008822GLenum test = GL_UNSIGNED_SHORT_5_6_5; return (test == GL_UNSIGNED_SHORT_5_6_5);
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008823 ;
8824 return 0;
8825}
8826_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008827if ac_fn_c_try_compile "$LINENO"; then :
Roderick Colenbranderbc66d7e2006-08-24 01:11:27 +02008828 wine_cv_opengl_header_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00008829else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008830 wine_cv_opengl_header_version_OK="no"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008831fi
Jeremy White0ebeb532006-06-20 13:18:41 +02008832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008833fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008835$as_echo "$wine_cv_opengl_header_version_OK" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008836
Alexandre Julliardcc6a08c2006-08-24 14:34:22 +02008837 if test "$wine_cv_opengl_header_version_OK" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008838 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008840$as_echo_n "checking for -lGL... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008841if ${ac_cv_lib_soname_GL+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008842 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008843else
Alexandre Julliard31353e12007-07-04 12:44:12 +02008844 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008845LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008847/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008848
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008849/* Override any GCC internal prototype to avoid an error.
8850 Use char because int might match the return type of a GCC
8851 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008852#ifdef __cplusplus
8853extern "C"
8854#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008855char glXCreateContext ();
8856int
8857main ()
8858{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008859return glXCreateContext ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008860 ;
8861 return 0;
8862}
8863_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008864if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard31353e12007-07-04 12:44:12 +02008865 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008866 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 +02008867 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'` ;;
8868 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8869 esac
Patrik Stridvall24110281999-02-04 10:09:54 +00008870fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008871rm -f core conftest.err conftest.$ac_objext \
8872 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard31353e12007-07-04 12:44:12 +02008873 LIBS=$ac_check_soname_save_LIBS
Patrik Stridvall24110281999-02-04 10:09:54 +00008874fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008875if test "x$ac_cv_lib_soname_GL" = "x"; then :
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008877$as_echo "not found" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008879$as_echo_n "checking for -lGL... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008880if ${ac_cv_lib_soname_GL+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008881 $as_echo_n "(cached) " >&6
Francois Gougetd701ee22007-12-18 10:17:20 +01008882else
8883 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008884LIBS="-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 +02008885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetd701ee22007-12-18 10:17:20 +01008886/* end confdefs.h. */
8887
8888/* Override any GCC internal prototype to avoid an error.
8889 Use char because int might match the return type of a GCC
8890 builtin and then its argument prototype would still apply. */
8891#ifdef __cplusplus
8892extern "C"
8893#endif
8894char glXCreateContext ();
8895int
8896main ()
8897{
8898return glXCreateContext ();
8899 ;
8900 return 0;
8901}
8902_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008903if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetd701ee22007-12-18 10:17:20 +01008904 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008905 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 +01008906 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'` ;;
8907 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8908 esac
Francois Gougetd701ee22007-12-18 10:17:20 +01008909fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008910rm -f core conftest.err conftest.$ac_objext \
8911 conftest$ac_exeext conftest.$ac_ext
Francois Gougetd701ee22007-12-18 10:17:20 +01008912 LIBS=$ac_check_soname_save_LIBS
8913fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008914if test "x$ac_cv_lib_soname_GL" = "x"; then :
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008916$as_echo "not found" >&6; }
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008917 if test -f /usr/X11R6/lib/libGL.a
Francois Gougetd701ee22007-12-18 10:17:20 +01008918 then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008919 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008920This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
Francois Gougetd701ee22007-12-18 10:17:20 +01008921 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008922 opengl_msg="No OpenGL library found on this system."
Francois Gougetd701ee22007-12-18 10:17:20 +01008923 fi
8924else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008926$as_echo "$ac_cv_lib_soname_GL" >&6; }
Francois Gougetd701ee22007-12-18 10:17:20 +01008927
8928cat >>confdefs.h <<_ACEOF
8929#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8930_ACEOF
8931
8932 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 +01008933
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008934$as_echo "#define HAVE_OPENGL 1" >>confdefs.h
Francois Gougetd701ee22007-12-18 10:17:20 +01008935
8936fi
Alexandre Julliard31353e12007-07-04 12:44:12 +02008937else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008939$as_echo "$ac_cv_lib_soname_GL" >&6; }
Alexandre Julliard31353e12007-07-04 12:44:12 +02008940
8941cat >>confdefs.h <<_ACEOF
8942#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8943_ACEOF
8944
8945 OPENGL_LIBS="-lGL"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008946
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008947$as_echo "#define HAVE_OPENGL 1" >>confdefs.h
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008948
Alexandre Julliardc84c4782006-09-22 09:36:12 +02008949fi
Alexandre Julliardad798732008-05-01 13:29:02 +02008950 if test "$ac_cv_header_GL_glu_h" = "yes"
8951 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008953$as_echo_n "checking for -lGLU... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008954if ${ac_cv_lib_soname_GLU+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008955 $as_echo_n "(cached) " >&6
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008956else
Alexandre Julliardad798732008-05-01 13:29:02 +02008957 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008958LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008960/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008961
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008962/* Override any GCC internal prototype to avoid an error.
8963 Use char because int might match the return type of a GCC
8964 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008965#ifdef __cplusplus
8966extern "C"
8967#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008968char gluLookAt ();
8969int
8970main ()
8971{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008972return gluLookAt ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008973 ;
8974 return 0;
8975}
8976_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008977if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02008978 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008979 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 +02008980 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'` ;;
8981 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8982 esac
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008983fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008984rm -f core conftest.err conftest.$ac_objext \
8985 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardad798732008-05-01 13:29:02 +02008986 LIBS=$ac_check_soname_save_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008987fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008988if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008990$as_echo "not found" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008991
Alexandre Julliardad798732008-05-01 13:29:02 +02008992else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008994$as_echo "$ac_cv_lib_soname_GLU" >&6; }
Alexandre Julliardad798732008-05-01 13:29:02 +02008995
8996cat >>confdefs.h <<_ACEOF
8997#define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8998_ACEOF
8999
Alexandre Julliarddbb535e2008-08-25 12:12:28 +02009000
Alexandre Julliardad798732008-05-01 13:29:02 +02009001fi
Alexandre Julliardad798732008-05-01 13:29:02 +02009002 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009003 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02009004 case "x$with_glu" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009005 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 +02009006 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009007 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009008This is an error since --with-glu was requested." "$LINENO" 5 ;;
Alexandre Julliardad798732008-05-01 13:29:02 +02009009esac
Marcus Meissnerb63ab442001-06-08 19:02:57 +00009010fi
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009011 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009012 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00009013 fi
Roderick Colenbranderbc66d7e2006-08-24 01:11:27 +02009014 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009015 opengl_msg="OpenGL development headers not found."
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00009016 fi
Alexandre Julliard8e9504d2008-09-24 13:11:11 +02009017 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
9018 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
9019 else
9020 enable_opengl32=${enable_opengl32:-no}
9021 enable_glu32=${enable_glu32:-no}
Patrik Stridvall24110281999-02-04 10:09:54 +00009022 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009023 if test -n "$opengl_msg"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009024 case "x$with_opengl" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009025 x) as_fn_append wine_warnings "|$opengl_msg
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009026OpenGL and Direct3D won't be supported." ;;
9027 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009028 *) as_fn_error $? "$opengl_msg
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009029OpenGL and Direct3D won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009030This is an error since --with-opengl was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009031esac
9032fi
9033
Ove Kaaven1eb593c1999-02-14 09:34:46 +00009034 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvallea584721998-11-01 16:22:07 +00009035else
9036 XLIB=""
9037 X_CFLAGS=""
9038 X_LIBS=""
Alexandre Julliarddbb535e2008-08-25 12:12:28 +02009039 enable_winex11_drv=${enable_winex11_drv:-no}
9040 enable_opengl32=${enable_opengl32:-no}
9041 enable_glu32=${enable_glu32:-no}
Patrik Stridvallea584721998-11-01 16:22:07 +00009042fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009043if test "x$XLIB" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009044 case "x$with_x" in
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009045 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009046 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
Gerald Pfeifer5805d8b2010-09-19 21:10:13 +02009047without X support, which probably isn't what you want. You will need
9048to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009049Use the --without-x option if you really want this." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009050esac
9051fi
9052
Adam Martinson2eb2f712010-12-28 12:46:09 -06009053if test "$ac_cv_header_CL_cl_h" = "yes"
Peter Urbanec65c84d72010-12-02 23:41:48 +11009054then
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9056$as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009057if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
Peter Urbanec65c84d72010-12-02 23:41:48 +11009058 $as_echo_n "(cached) " >&6
9059else
9060 ac_check_lib_save_LIBS=$LIBS
9061LIBS="-lOpenCL $LIBS"
9062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9063/* end confdefs.h. */
9064
9065/* Override any GCC internal prototype to avoid an error.
9066 Use char because int might match the return type of a GCC
9067 builtin and then its argument prototype would still apply. */
9068#ifdef __cplusplus
9069extern "C"
9070#endif
9071char clGetPlatformInfo ();
9072int
9073main ()
9074{
9075return clGetPlatformInfo ();
9076 ;
9077 return 0;
9078}
9079_ACEOF
9080if ac_fn_c_try_link "$LINENO"; then :
9081 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9082else
9083 ac_cv_lib_OpenCL_clGetPlatformInfo=no
9084fi
9085rm -f core conftest.err conftest.$ac_objext \
9086 conftest$ac_exeext conftest.$ac_ext
9087LIBS=$ac_check_lib_save_LIBS
9088fi
9089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9090$as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009091if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
Peter Urbanec65c84d72010-12-02 23:41:48 +11009092 LIBOPENCL="-lOpenCL"
9093
9094fi
9095
9096fi
9097if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9098 case "x$with_opencl" in
9099 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9100 xno) ;;
9101 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009102This is an error since --with-opencl was requested." "$LINENO" 5 ;;
Peter Urbanec65c84d72010-12-02 23:41:48 +11009103esac
9104fi
9105test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9106
Alexandre Julliard902da691995-11-05 14:39:02 +00009107
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009108XML2LIBS=""
9109
9110XML2INCL=""
9111
Mike McCormackf3719a82005-09-03 09:39:38 +00009112XSLTINCL=""
9113
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009114if test "x$with_xml" != "xno"
Mike McCormack90c75bd2005-08-08 18:36:53 +00009115then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009116 ac_save_CPPFLAGS="$CPPFLAGS"
9117 if test "$PKG_CONFIG" != "false"
9118 then
9119 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9120 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9121 else
9122 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9123 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
9124 fi
9125 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009126 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009127do :
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009128 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9129ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9130if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009131 cat >>confdefs.h <<_ACEOF
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009132#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009133_ACEOF
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009134
9135fi
9136
9137done
9138
9139 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"
9140 then
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009142$as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009143if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009144 $as_echo_n "(cached) " >&6
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009145else
9146 ac_check_lib_save_LIBS=$LIBS
Mike McCormack90c75bd2005-08-08 18:36:53 +00009147LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009149/* end confdefs.h. */
9150
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009151/* Override any GCC internal prototype to avoid an error.
9152 Use char because int might match the return type of a GCC
9153 builtin and then its argument prototype would still apply. */
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009154#ifdef __cplusplus
9155extern "C"
9156#endif
Mike McCormack90c75bd2005-08-08 18:36:53 +00009157char xmlParseMemory ();
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009158int
9159main ()
9160{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009161return xmlParseMemory ();
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009162 ;
9163 return 0;
9164}
9165_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009166if ac_fn_c_try_link "$LINENO"; then :
Mike McCormack90c75bd2005-08-08 18:36:53 +00009167 ac_cv_lib_xml2_xmlParseMemory=yes
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009168else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009169 ac_cv_lib_xml2_xmlParseMemory=no
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009170fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009171rm -f core conftest.err conftest.$ac_objext \
9172 conftest$ac_exeext conftest.$ac_ext
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009173LIBS=$ac_check_lib_save_LIBS
9174fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009176$as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009177if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009178
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009179$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009180
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009181 XML2LIBS="$ac_xml_libs"
9182 XML2INCL="$ac_xml_cflags"
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009183fi
9184
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009186$as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009187if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009188 $as_echo_n "(cached) " >&6
Mike McCormack70adb8f2005-08-12 10:35:17 +00009189else
9190 ac_check_lib_save_LIBS=$LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009191LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormack70adb8f2005-08-12 10:35:17 +00009193/* end confdefs.h. */
9194
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009195/* Override any GCC internal prototype to avoid an error.
9196 Use char because int might match the return type of a GCC
9197 builtin and then its argument prototype would still apply. */
Mike McCormack70adb8f2005-08-12 10:35:17 +00009198#ifdef __cplusplus
9199extern "C"
9200#endif
Mike McCormack70adb8f2005-08-12 10:35:17 +00009201char xmlReadMemory ();
9202int
9203main ()
9204{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009205return xmlReadMemory ();
Mike McCormack70adb8f2005-08-12 10:35:17 +00009206 ;
9207 return 0;
9208}
9209_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009210if ac_fn_c_try_link "$LINENO"; then :
Mike McCormack70adb8f2005-08-12 10:35:17 +00009211 ac_cv_lib_xml2_xmlReadMemory=yes
9212else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009213 ac_cv_lib_xml2_xmlReadMemory=no
Mike McCormack70adb8f2005-08-12 10:35:17 +00009214fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009215rm -f core conftest.err conftest.$ac_objext \
9216 conftest$ac_exeext conftest.$ac_ext
Mike McCormack70adb8f2005-08-12 10:35:17 +00009217LIBS=$ac_check_lib_save_LIBS
9218fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009220$as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009221if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
Mike McCormack70adb8f2005-08-12 10:35:17 +00009222
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009223$as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
Mike McCormack70adb8f2005-08-12 10:35:17 +00009224
9225fi
9226
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009228$as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009229if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009230 $as_echo_n "(cached) " >&6
Lei Zhang6a530ab2006-11-29 15:59:03 -08009231else
9232 ac_check_lib_save_LIBS=$LIBS
9233LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lei Zhang6a530ab2006-11-29 15:59:03 -08009235/* end confdefs.h. */
9236
9237/* Override any GCC internal prototype to avoid an error.
9238 Use char because int might match the return type of a GCC
9239 builtin and then its argument prototype would still apply. */
9240#ifdef __cplusplus
9241extern "C"
9242#endif
9243char xmlNewDocPI ();
9244int
9245main ()
9246{
9247return xmlNewDocPI ();
9248 ;
9249 return 0;
9250}
9251_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009252if ac_fn_c_try_link "$LINENO"; then :
Lei Zhang6a530ab2006-11-29 15:59:03 -08009253 ac_cv_lib_xml2_xmlNewDocPI=yes
9254else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009255 ac_cv_lib_xml2_xmlNewDocPI=no
Lei Zhang6a530ab2006-11-29 15:59:03 -08009256fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009257rm -f core conftest.err conftest.$ac_objext \
9258 conftest$ac_exeext conftest.$ac_ext
Lei Zhang6a530ab2006-11-29 15:59:03 -08009259LIBS=$ac_check_lib_save_LIBS
9260fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009262$as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009263if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
Lei Zhang6a530ab2006-11-29 15:59:03 -08009264
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009265$as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
Lei Zhang6a530ab2006-11-29 15:59:03 -08009266
9267fi
9268
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
Adam Martinson6ee22312010-11-22 20:54:54 -06009270$as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009271if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
Adam Martinson6ee22312010-11-22 20:54:54 -06009272 $as_echo_n "(cached) " >&6
9273else
9274 ac_check_lib_save_LIBS=$LIBS
9275LIBS="-lxml2 $ac_xml_libs $LIBS"
9276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9277/* end confdefs.h. */
9278
9279/* Override any GCC internal prototype to avoid an error.
9280 Use char because int might match the return type of a GCC
9281 builtin and then its argument prototype would still apply. */
9282#ifdef __cplusplus
9283extern "C"
9284#endif
9285char xmlSchemaSetParserStructuredErrors ();
9286int
9287main ()
9288{
9289return xmlSchemaSetParserStructuredErrors ();
9290 ;
9291 return 0;
9292}
9293_ACEOF
9294if ac_fn_c_try_link "$LINENO"; then :
9295 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9296else
9297 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9298fi
9299rm -f core conftest.err conftest.$ac_objext \
9300 conftest$ac_exeext conftest.$ac_ext
9301LIBS=$ac_check_lib_save_LIBS
9302fi
9303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9304$as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009305if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
Adam Martinson6ee22312010-11-22 20:54:54 -06009306
9307$as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9308
9309fi
9310
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
Adam Martinsonbe4d0e92010-11-01 14:11:16 -05009312$as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009313if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
Adam Martinsonbe4d0e92010-11-01 14:11:16 -05009314 $as_echo_n "(cached) " >&6
9315else
9316 ac_check_lib_save_LIBS=$LIBS
9317LIBS="-lxml2 $ac_xml_libs $LIBS"
9318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9319/* end confdefs.h. */
9320
9321/* Override any GCC internal prototype to avoid an error.
9322 Use char because int might match the return type of a GCC
9323 builtin and then its argument prototype would still apply. */
9324#ifdef __cplusplus
9325extern "C"
9326#endif
9327char xmlSchemaSetValidStructuredErrors ();
9328int
9329main ()
9330{
9331return xmlSchemaSetValidStructuredErrors ();
9332 ;
9333 return 0;
9334}
9335_ACEOF
9336if ac_fn_c_try_link "$LINENO"; then :
9337 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9338else
9339 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9340fi
9341rm -f core conftest.err conftest.$ac_objext \
9342 conftest$ac_exeext conftest.$ac_ext
9343LIBS=$ac_check_lib_save_LIBS
9344fi
9345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9346$as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009347if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
Adam Martinsonbe4d0e92010-11-01 14:11:16 -05009348
9349$as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9350
9351fi
9352
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
Adam Martinson82f73c82010-11-11 15:16:24 -06009354$as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009355if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
Adam Martinson82f73c82010-11-11 15:16:24 -06009356 $as_echo_n "(cached) " >&6
9357else
9358 ac_check_lib_save_LIBS=$LIBS
9359LIBS="-lxml2 $ac_xml_libs $LIBS"
9360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9361/* end confdefs.h. */
9362
9363/* Override any GCC internal prototype to avoid an error.
9364 Use char because int might match the return type of a GCC
9365 builtin and then its argument prototype would still apply. */
9366#ifdef __cplusplus
9367extern "C"
9368#endif
9369char xmlFirstElementChild ();
9370int
9371main ()
9372{
9373return xmlFirstElementChild ();
9374 ;
9375 return 0;
9376}
9377_ACEOF
9378if ac_fn_c_try_link "$LINENO"; then :
9379 ac_cv_lib_xml2_xmlFirstElementChild=yes
9380else
9381 ac_cv_lib_xml2_xmlFirstElementChild=no
9382fi
9383rm -f core conftest.err conftest.$ac_objext \
9384 conftest$ac_exeext conftest.$ac_ext
9385LIBS=$ac_check_lib_save_LIBS
9386fi
9387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9388$as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009389if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
Adam Martinson82f73c82010-11-11 15:16:24 -06009390
9391$as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9392
9393fi
9394
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009395 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
Adam Martinson9408b492010-11-02 17:20:08 -05009396"
Alexandre Julliard9797da42011-04-27 17:37:43 +02009397if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
Adam Martinson9408b492010-11-02 17:20:08 -05009398
9399$as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9400
9401fi
9402
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009403 fi
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009404 CPPFLAGS="$ac_save_CPPFLAGS"
9405fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009406if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009407 case "x$with_xml" in
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009408 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 +01009409 xno) ;;
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009410 *) 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 +02009411This is an error since --with-xml was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009412esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009413fi
9414
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009415if test "x$with_xslt" != "xno"
Emmanuel Maillard2a98b402007-06-22 02:58:39 +02009416then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009417 if test "$PKG_CONFIG" != "false"
9418 then
9419 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9420 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9421 else
9422 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9423 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9424 fi
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009425 ac_save_CPPFLAGS="$CPPFLAGS"
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009426 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009427 for ac_header in libxslt/pattern.h libxslt/transform.h
9428do :
9429 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9430ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
Vincent Bérond7f64242005-09-15 09:39:09 +00009431# include <libxslt/pattern.h>
9432#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009433"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009434if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Mike McCormackf3719a82005-09-03 09:39:38 +00009435 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01009436#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Mike McCormackf3719a82005-09-03 09:39:38 +00009437_ACEOF
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009438
9439fi
9440
9441done
9442
9443 CPPFLAGS="$ac_save_CPPFLAGS"
9444 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9445 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009447$as_echo_n "checking for -lxslt... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009448if ${ac_cv_lib_soname_xslt+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009449 $as_echo_n "(cached) " >&6
Mike McCormackf3719a82005-09-03 09:39:38 +00009450else
Francois Gouget3d384f12008-11-17 19:29:32 +01009451 ac_check_soname_save_LIBS=$LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009452LIBS="-lxslt $ac_xslt_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackf3719a82005-09-03 09:39:38 +00009454/* end confdefs.h. */
9455
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009456/* Override any GCC internal prototype to avoid an error.
9457 Use char because int might match the return type of a GCC
9458 builtin and then its argument prototype would still apply. */
Mike McCormackf3719a82005-09-03 09:39:38 +00009459#ifdef __cplusplus
9460extern "C"
9461#endif
Mike McCormackf3719a82005-09-03 09:39:38 +00009462char xsltCompilePattern ();
9463int
9464main ()
9465{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009466return xsltCompilePattern ();
Mike McCormackf3719a82005-09-03 09:39:38 +00009467 ;
9468 return 0;
9469}
9470_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009471if ac_fn_c_try_link "$LINENO"; then :
Francois Gouget3d384f12008-11-17 19:29:32 +01009472 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009473 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 +01009474 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'` ;;
9475 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9476 esac
Mike McCormackf3719a82005-09-03 09:39:38 +00009477fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009478rm -f core conftest.err conftest.$ac_objext \
9479 conftest$ac_exeext conftest.$ac_ext
Francois Gouget3d384f12008-11-17 19:29:32 +01009480 LIBS=$ac_check_soname_save_LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009481fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009482if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009484$as_echo "not found" >&6; }
Mike McCormackf3719a82005-09-03 09:39:38 +00009485
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009486else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009488$as_echo "$ac_cv_lib_soname_xslt" >&6; }
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009489
Francois Gouget3d384f12008-11-17 19:29:32 +01009490cat >>confdefs.h <<_ACEOF
9491#define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009492_ACEOF
Mike McCormackf3719a82005-09-03 09:39:38 +00009493
Francois Gouget3d384f12008-11-17 19:29:32 +01009494 XSLTINCL="$ac_xslt_cflags"
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009495fi
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009496 fi
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009497fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009498if test "x$ac_cv_lib_soname_xslt" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009499 case "x$with_xslt" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009500 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 +01009501 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009502 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009503This is an error since --with-xslt was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009504esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009505fi
9506
Alexandre Julliarde45d1242011-12-20 10:36:35 +01009507if test "x$with_dbus" != "xno"
Alexandre Julliard00068982006-04-18 16:47:53 +02009508then
9509 ac_save_CPPFLAGS="$CPPFLAGS"
Francois Gouget295a0cd2009-01-09 20:22:22 +01009510 if test "$PKG_CONFIG" != "false"
9511 then
Alexandre Julliarde45d1242011-12-20 10:36:35 +01009512 ac_dbus_libs="`$PKG_CONFIG --libs dbus-1 2>/dev/null`"
9513 ac_dbus_cflags="`$PKG_CONFIG --cflags dbus-1 2>/dev/null`"
9514 CPPFLAGS="$CPPFLAGS $ac_dbus_cflags"
Francois Gouget295a0cd2009-01-09 20:22:22 +01009515 fi
Alexandre Julliarde45d1242011-12-20 10:36:35 +01009516 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
9517if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
9519$as_echo_n "checking for -ldbus-1... " >&6; }
9520if ${ac_cv_lib_soname_dbus_1+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009521 $as_echo_n "(cached) " >&6
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009522else
Alexandre Julliarde45d1242011-12-20 10:36:35 +01009523 ac_check_soname_save_LIBS=$LIBS
9524LIBS="-ldbus-1 $ac_dbus_libs $LIBS"
9525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009526/* end confdefs.h. */
9527
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009528/* Override any GCC internal prototype to avoid an error.
9529 Use char because int might match the return type of a GCC
9530 builtin and then its argument prototype would still apply. */
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009531#ifdef __cplusplus
9532extern "C"
9533#endif
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009534char dbus_connection_close ();
9535int
9536main ()
9537{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009538return dbus_connection_close ();
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009539 ;
9540 return 0;
9541}
9542_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009543if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarde45d1242011-12-20 10:36:35 +01009544 case "$LIBEXT" in
9545 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9546 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'` ;;
9547 *) 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'` ;;
9548 esac
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009549fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009550rm -f core conftest.err conftest.$ac_objext \
9551 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde45d1242011-12-20 10:36:35 +01009552 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009553fi
Alexandre Julliarde45d1242011-12-20 10:36:35 +01009554if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9556$as_echo "not found" >&6; }
9557
9558else
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
9560$as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
9561
9562cat >>confdefs.h <<_ACEOF
9563#define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
9564_ACEOF
9565
9566 DBUSINCL="$ac_dbus_cflags"
9567
9568fi
9569fi
9570
9571
9572 CPPFLAGS="$ac_save_CPPFLAGS"
9573fi
9574if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
9575 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9576 case "x$with_dbus" in
9577 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9578 xno) ;;
9579 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
9580This is an error since --with-dbus was requested." "$LINENO" 5 ;;
9581esac
9582fi
9583
9584if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
9585then
9586 ac_save_CPPFLAGS="$CPPFLAGS"
9587 if test "$PKG_CONFIG" != "false"
9588 then
9589 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9590 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9591 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9592 fi
9593 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
9594if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009596$as_echo_n "checking for -lhal... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009597if ${ac_cv_lib_soname_hal+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009598 $as_echo_n "(cached) " >&6
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009599else
9600 ac_check_soname_save_LIBS=$LIBS
9601LIBS="-lhal $ac_hal_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009603/* end confdefs.h. */
Alexandre Julliard00068982006-04-18 16:47:53 +02009604
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009605/* Override any GCC internal prototype to avoid an error.
9606 Use char because int might match the return type of a GCC
9607 builtin and then its argument prototype would still apply. */
9608#ifdef __cplusplus
9609extern "C"
9610#endif
9611char libhal_ctx_new ();
9612int
9613main ()
9614{
9615return libhal_ctx_new ();
9616 ;
9617 return 0;
9618}
9619_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009620if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009621 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009622 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 +02009623 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'` ;;
9624 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9625 esac
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009626fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009627rm -f core conftest.err conftest.$ac_objext \
9628 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009629 LIBS=$ac_check_soname_save_LIBS
9630fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009631if test "x$ac_cv_lib_soname_hal" = "x"; then :
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009633$as_echo "not found" >&6; }
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009634
9635else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009637$as_echo "$ac_cv_lib_soname_hal" >&6; }
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009638
9639cat >>confdefs.h <<_ACEOF
9640#define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
Alexandre Julliard00068982006-04-18 16:47:53 +02009641_ACEOF
9642
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009643 HALINCL="$ac_hal_cflags"
Alexandre Julliarde45d1242011-12-20 10:36:35 +01009644
Alexandre Julliard00068982006-04-18 16:47:53 +02009645fi
Alexandre Julliard00068982006-04-18 16:47:53 +02009646fi
9647
Alexandre Julliarde45d1242011-12-20 10:36:35 +01009648
Alexandre Julliard00068982006-04-18 16:47:53 +02009649 CPPFLAGS="$ac_save_CPPFLAGS"
Alexandre Julliarde45d1242011-12-20 10:36:35 +01009650 if test "x$ac_cv_lib_soname_hal" = "x" -a \
9651 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009652 case "x$with_hal" in
Alexandre Julliarde45d1242011-12-20 10:36:35 +01009653 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 +01009654 xno) ;;
Alexandre Julliarde45d1242011-12-20 10:36:35 +01009655 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009656This is an error since --with-hal was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009657esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009658fi
Alexandre Julliarde45d1242011-12-20 10:36:35 +01009659fi
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009660
Francois Gouget295a0cd2009-01-09 20:22:22 +01009661if test "x$with_gnutls" != "xno"
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009662then
9663 ac_save_CPPFLAGS="$CPPFLAGS"
Francois Gouget295a0cd2009-01-09 20:22:22 +01009664 if test "$PKG_CONFIG" != "false"
9665 then
9666 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9667 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9668 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9669 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009670 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 +02009671if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gouget3aae9542008-10-24 11:24:58 +02009673/* end confdefs.h. */
9674#include <gnutls/gnutls.h>
9675int
9676main ()
9677{
Dan Kegel45725be2011-08-31 17:35:49 -07009678static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
Francois Gouget3aae9542008-10-24 11:24:58 +02009679 ;
9680 return 0;
9681}
9682_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009683if ac_fn_c_try_compile "$LINENO"; then :
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009685$as_echo_n "checking for -lgnutls... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009686if ${ac_cv_lib_soname_gnutls+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009687 $as_echo_n "(cached) " >&6
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009688else
9689 ac_check_soname_save_LIBS=$LIBS
9690LIBS="-lgnutls $ac_gnutls_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009692/* end confdefs.h. */
9693
9694/* Override any GCC internal prototype to avoid an error.
9695 Use char because int might match the return type of a GCC
9696 builtin and then its argument prototype would still apply. */
9697#ifdef __cplusplus
9698extern "C"
9699#endif
9700char gnutls_global_init ();
9701int
9702main ()
9703{
9704return gnutls_global_init ();
9705 ;
9706 return 0;
9707}
9708_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009709if ac_fn_c_try_link "$LINENO"; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009710 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009711 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 +02009712 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'` ;;
9713 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9714 esac
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009715fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009716rm -f core conftest.err conftest.$ac_objext \
9717 conftest$ac_exeext conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009718 LIBS=$ac_check_soname_save_LIBS
9719fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009720if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009722$as_echo "not found" >&6; }
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009723
9724else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009726$as_echo "$ac_cv_lib_soname_gnutls" >&6; }
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009727
9728cat >>confdefs.h <<_ACEOF
9729#define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9730_ACEOF
9731
9732 GNUTLSINCL="$ac_gnutls_cflags"
9733
9734fi
Francois Gouget3aae9542008-10-24 11:24:58 +02009735fi
Francois Gouget3aae9542008-10-24 11:24:58 +02009736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009737fi
9738
9739
9740 CPPFLAGS="$ac_save_CPPFLAGS"
9741fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009742if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009743 case "x$with_gnutls" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009744 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009745 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009746 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009747This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009748esac
9749fi
9750
Alexandre Julliard48957682001-12-26 23:08:31 +00009751CURSESLIBS=""
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009752if test "$ac_cv_header_ncurses_h" = "yes"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00009753then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009755$as_echo_n "checking for -lncurses... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009756if ${ac_cv_lib_soname_ncurses+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009757 $as_echo_n "(cached) " >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009758else
Alexandre Julliardd0783772007-07-02 17:28:50 +02009759 ac_check_soname_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009760LIBS="-lncurses $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009762/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009763
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009764/* Override any GCC internal prototype to avoid an error.
9765 Use char because int might match the return type of a GCC
9766 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009767#ifdef __cplusplus
9768extern "C"
9769#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009770char waddch ();
9771int
9772main ()
9773{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009774return waddch ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009775 ;
9776 return 0;
9777}
9778_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009779if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0783772007-07-02 17:28:50 +02009780 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009781 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 +02009782 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'` ;;
9783 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9784 esac
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009785fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009786rm -f core conftest.err conftest.$ac_objext \
9787 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0783772007-07-02 17:28:50 +02009788 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009789fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009790if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009792$as_echo "not found" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009793
9794else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009796$as_echo "$ac_cv_lib_soname_ncurses" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009797
9798cat >>confdefs.h <<_ACEOF
9799#define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9800_ACEOF
9801
9802 CURSESLIBS="-lncurses"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009803fi
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009804elif test "$ac_cv_header_curses_h" = "yes"
9805then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009807$as_echo_n "checking for -lcurses... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009808if ${ac_cv_lib_soname_curses+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009809 $as_echo_n "(cached) " >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009810else
Alexandre Julliardd0783772007-07-02 17:28:50 +02009811 ac_check_soname_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009812LIBS="-lcurses $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009814/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009815
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009816/* Override any GCC internal prototype to avoid an error.
9817 Use char because int might match the return type of a GCC
9818 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009819#ifdef __cplusplus
9820extern "C"
9821#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009822char waddch ();
9823int
9824main ()
9825{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009826return waddch ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009827 ;
9828 return 0;
9829}
9830_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009831if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0783772007-07-02 17:28:50 +02009832 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009833 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 +02009834 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'` ;;
9835 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9836 esac
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009837fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009838rm -f core conftest.err conftest.$ac_objext \
9839 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0783772007-07-02 17:28:50 +02009840 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009841fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009842if test "x$ac_cv_lib_soname_curses" = "x"; then :
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009844$as_echo "not found" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009845
9846else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009848$as_echo "$ac_cv_lib_soname_curses" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009849
9850cat >>confdefs.h <<_ACEOF
9851#define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9852_ACEOF
9853
9854 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009855fi
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009856fi
9857ac_save_LIBS="$LIBS"
9858LIBS="$LIBS $CURSESLIBS"
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009859for ac_func in mousemask
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009860do :
9861 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
Alexandre Julliard9797da42011-04-27 17:37:43 +02009862if test "x$ac_cv_func_mousemask" = xyes; then :
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009863 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009864#define HAVE_MOUSEMASK 1
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009865_ACEOF
9866
9867fi
9868done
9869
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009870LIBS="$ac_save_LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009871if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009872 case "x$with_curses" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009873 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 +01009874 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009875 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009876This is an error since --with-curses was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009877esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009878fi
9879
Francois Gouget3fe5d802009-01-14 14:16:06 +01009880if test "x$with_sane" != "xno"
9881then
9882 ac_save_CPPFLAGS="$CPPFLAGS"
9883 # Extract the first word of "sane-config", so it can be a program name with args.
Shi Quan He6b0720f2002-03-21 02:58:39 +00009884set dummy sane-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009886$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009887if ${ac_cv_prog_sane_devel+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009888 $as_echo_n "(cached) " >&6
Shi Quan He6b0720f2002-03-21 02:58:39 +00009889else
9890 if test -n "$sane_devel"; then
9891 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9892else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9894for as_dir in $PATH
9895do
9896 IFS=$as_save_IFS
9897 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009898 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +02009899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009900 ac_cv_prog_sane_devel="sane-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009902 break 2
9903 fi
9904done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009905 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009906IFS=$as_save_IFS
Shi Quan He6b0720f2002-03-21 02:58:39 +00009907
9908 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9909fi
9910fi
9911sane_devel=$ac_cv_prog_sane_devel
9912if test -n "$sane_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009914$as_echo "$sane_devel" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009915else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009917$as_echo "no" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009918fi
9919
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009920
Francois Gouget3fe5d802009-01-14 14:16:06 +01009921 if test "$sane_devel" != "no"
9922 then
9923 ac_sane_incl="`$sane_devel --cflags`"
9924 ac_sane_libs="`$sane_devel --ldflags`"
9925 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9926 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009927 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 +02009928if test "x$ac_cv_header_sane_sane_h" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009930$as_echo_n "checking for -lsane... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009931if ${ac_cv_lib_soname_sane+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009932 $as_echo_n "(cached) " >&6
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009933else
9934 ac_check_soname_save_LIBS=$LIBS
Francois Gougeta9d7bab2008-07-20 22:41:41 +02009935LIBS="-lsane $ac_sane_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009937/* end confdefs.h. */
9938
9939/* Override any GCC internal prototype to avoid an error.
9940 Use char because int might match the return type of a GCC
9941 builtin and then its argument prototype would still apply. */
9942#ifdef __cplusplus
9943extern "C"
9944#endif
9945char sane_init ();
9946int
9947main ()
9948{
9949return sane_init ();
9950 ;
9951 return 0;
9952}
9953_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009954if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009955 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009956 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 +02009957 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'` ;;
9958 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9959 esac
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009960fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009961rm -f core conftest.err conftest.$ac_objext \
9962 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009963 LIBS=$ac_check_soname_save_LIBS
9964fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009965if test "x$ac_cv_lib_soname_sane" = "x"; then :
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009967$as_echo "not found" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009968
9969else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009971$as_echo "$ac_cv_lib_soname_sane" >&6; }
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009972
9973cat >>confdefs.h <<_ACEOF
9974#define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9975_ACEOF
9976
9977 SANEINCL="$ac_sane_incl"
9978
9979fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00009980fi
9981
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009982
Shi Quan He6b0720f2002-03-21 02:58:39 +00009983 CPPFLAGS="$ac_save_CPPFLAGS"
9984fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009985if test "x$ac_cv_lib_soname_sane" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009986 case "x$with_sane" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009987 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 +01009988 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009989 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009990This is an error since --with-sane was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009991esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009992fi
9993
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01009994if test "x$with_v4l" != "xno"
9995then
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9997$as_echo_n "checking for -lv4l1... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009998if ${ac_cv_lib_soname_v4l1+:} false; then :
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01009999 $as_echo_n "(cached) " >&6
10000else
10001 ac_check_soname_save_LIBS=$LIBS
10002LIBS="-lv4l1 $LIBS"
10003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10004/* end confdefs.h. */
10005
10006/* Override any GCC internal prototype to avoid an error.
10007 Use char because int might match the return type of a GCC
10008 builtin and then its argument prototype would still apply. */
10009#ifdef __cplusplus
10010extern "C"
10011#endif
10012char v4l1_open ();
10013int
10014main ()
10015{
10016return v4l1_open ();
10017 ;
10018 return 0;
10019}
10020_ACEOF
10021if ac_fn_c_try_link "$LINENO"; then :
10022 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010023 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 +010010024 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'` ;;
10025 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10026 esac
10027fi
10028rm -f core conftest.err conftest.$ac_objext \
10029 conftest$ac_exeext conftest.$ac_ext
10030 LIBS=$ac_check_soname_save_LIBS
10031fi
10032if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10034$as_echo "not found" >&6; }
10035
10036else
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10038$as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10039
10040cat >>confdefs.h <<_ACEOF
10041#define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10042_ACEOF
10043
10044
10045fi
10046fi
10047if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10048 case "x$with_v4l" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010049 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +010010050 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010051 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010052This is an error since --with-v4l was requested." "$LINENO" 5 ;;
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +010010053esac
10054fi
10055
Francois Gouget3fe5d802009-01-14 14:16:06 +010010056if test "x$with_gphoto" != "xno"
10057then
10058 ac_save_CPPFLAGS="$CPPFLAGS"
10059 # Extract the first word of "gphoto2-config", so it can be a program name with args.
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010060set dummy gphoto2-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010062$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010063if ${ac_cv_prog_gphoto2_devel+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010064 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010065else
10066 if test -n "$gphoto2_devel"; then
10067 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10068else
10069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10070for as_dir in $PATH
10071do
10072 IFS=$as_save_IFS
10073 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010074 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +020010075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010076 ac_cv_prog_gphoto2_devel="gphoto2-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010078 break 2
10079 fi
10080done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010081 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010082IFS=$as_save_IFS
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010083
10084 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10085fi
10086fi
10087gphoto2_devel=$ac_cv_prog_gphoto2_devel
10088if test -n "$gphoto2_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010090$as_echo "$gphoto2_devel" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010091else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010093$as_echo "no" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010094fi
10095
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010096
Francois Gouget3fe5d802009-01-14 14:16:06 +010010097 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010098set dummy gphoto2-port-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010100$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010101if ${ac_cv_prog_gphoto2port_devel+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010102 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010103else
10104 if test -n "$gphoto2port_devel"; then
10105 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10106else
10107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10108for as_dir in $PATH
10109do
10110 IFS=$as_save_IFS
10111 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010112 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +020010113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010114 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010116 break 2
10117 fi
10118done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010119 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010120IFS=$as_save_IFS
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010121
10122 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10123fi
10124fi
10125gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10126if test -n "$gphoto2port_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010128$as_echo "$gphoto2port_devel" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010129else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010131$as_echo "no" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010132fi
10133
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010134
Francois Gouget3fe5d802009-01-14 14:16:06 +010010135 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10136 then
10137 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10138 ac_gphoto2_libs=""
10139 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10140 do
10141 case "$i" in
10142 -L/usr/lib|-L/usr/lib64) ;;
10143 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10144 esac
10145 done
10146 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10147 fi
Shunichi Fuji4bf77d62009-01-20 15:24:46 +090010148 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010149 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 +020010150if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010152$as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010153if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010154 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010155else
10156 ac_check_lib_save_LIBS=$LIBS
Francois Gouget4bc03fe2008-07-21 17:10:45 +020010157LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010159/* end confdefs.h. */
10160
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010161/* Override any GCC internal prototype to avoid an error.
10162 Use char because int might match the return type of a GCC
10163 builtin and then its argument prototype would still apply. */
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010164#ifdef __cplusplus
10165extern "C"
10166#endif
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010167char gp_camera_new ();
10168int
10169main ()
10170{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010171return gp_camera_new ();
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010172 ;
10173 return 0;
10174}
10175_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010176if ac_fn_c_try_link "$LINENO"; then :
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010177 ac_cv_lib_gphoto2_gp_camera_new=yes
10178else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010179 ac_cv_lib_gphoto2_gp_camera_new=no
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010180fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010181rm -f core conftest.err conftest.$ac_objext \
10182 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010183LIBS=$ac_check_lib_save_LIBS
10184fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010186$as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010187if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010188
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010189$as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010190
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010191 GPHOTO2LIBS="$ac_gphoto2_libs"
10192
10193 GPHOTO2INCL="$ac_gphoto2_incl"
10194
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010195fi
10196
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010197fi
10198
10199
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010200 CPPFLAGS="$ac_save_CPPFLAGS"
10201fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010202if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010203 case "x$with_gphoto" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010204 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 +010010205 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010206 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010207This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010208esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010209fi
10210
10211
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010212if test "$ac_cv_header_resolv_h" = "yes"
10213then
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +010010214 ac_save_LIBS="$LIBS"
Tijl Coosemanse7ec1642010-09-23 18:20:31 +020010215 for lib in '' -lresolv
10216 do
10217 LIBS="$lib $ac_save_LIBS"
10218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010219/* end confdefs.h. */
Rob Shearmanba349212009-01-02 12:12:06 +000010220#ifdef HAVE_NETINET_IN_H
10221#include <netinet/in.h>
10222#endif
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +010010223#include <resolv.h>
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010224int
10225main ()
10226{
Tijl Coosemanse7ec1642010-09-23 18:20:31 +020010227res_query("foo",ns_c_in,0,0,0);
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010228 ;
10229 return 0;
10230}
10231_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010232if ac_fn_c_try_link "$LINENO"; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010233
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010234$as_echo "#define HAVE_RESOLV 1" >>confdefs.h
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010235
Tijl Coosemanse7ec1642010-09-23 18:20:31 +020010236 RESOLVLIBS="$lib"
10237
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010238fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010239rm -f core conftest.err conftest.$ac_objext \
10240 conftest$ac_exeext conftest.$ac_ext
Tijl Coosemanse7ec1642010-09-23 18:20:31 +020010241 if test "${RESOLVLIBS+set}" = set; then
10242 break
10243 fi
10244 done
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +010010245 LIBS="$ac_save_LIBS"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010246fi
10247
Hans Leidekkerd3447022005-07-15 10:09:43 +000010248LCMSLIBS=""
10249
10250if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10251then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010253$as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010254if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010255 $as_echo_n "(cached) " >&6
Hans Leidekkerd3447022005-07-15 10:09:43 +000010256else
10257 ac_check_lib_save_LIBS=$LIBS
10258LIBS="-llcms $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Hans Leidekkerd3447022005-07-15 10:09:43 +000010260/* end confdefs.h. */
10261
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010262/* Override any GCC internal prototype to avoid an error.
10263 Use char because int might match the return type of a GCC
10264 builtin and then its argument prototype would still apply. */
Hans Leidekkerd3447022005-07-15 10:09:43 +000010265#ifdef __cplusplus
10266extern "C"
10267#endif
Hans Leidekkerd3447022005-07-15 10:09:43 +000010268char cmsOpenProfileFromFile ();
10269int
10270main ()
10271{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010272return cmsOpenProfileFromFile ();
Hans Leidekkerd3447022005-07-15 10:09:43 +000010273 ;
10274 return 0;
10275}
10276_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010277if ac_fn_c_try_link "$LINENO"; then :
Hans Leidekkerd3447022005-07-15 10:09:43 +000010278 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10279else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010280 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
Hans Leidekkerd3447022005-07-15 10:09:43 +000010281fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010282rm -f core conftest.err conftest.$ac_objext \
10283 conftest$ac_exeext conftest.$ac_ext
Hans Leidekkerd3447022005-07-15 10:09:43 +000010284LIBS=$ac_check_lib_save_LIBS
10285fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010287$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010288if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
Hans Leidekkerd3447022005-07-15 10:09:43 +000010289
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010290$as_echo "#define HAVE_LCMS 1" >>confdefs.h
Hans Leidekkerd3447022005-07-15 10:09:43 +000010291
10292 LCMSLIBS="-llcms"
10293fi
10294
10295fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010296if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010297 case "x$with_cms" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010298 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 +010010299 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010300 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010301This is an error since --with-cms was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010302esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010303fi
10304
Francois Gouget3fe5d802009-01-14 14:16:06 +010010305if test "x$with_freetype" != "xno"
10306then
Nicolas Le Cama37f74f2012-04-07 22:46:58 +020010307 if test "$PKG_CONFIG" != "false"
10308 then
10309 ac_freetype_incl="`$PKG_CONFIG --cflags freetype2 2>/dev/null`"
10310 ac_freetype_libs="`$PKG_CONFIG --libs freetype2 2>/dev/null`"
10311 else
10312 for ac_prog in freetype-config freetype2-config
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010313do
10314 # Extract the first word of "$ac_prog", so it can be a program name with args.
10315set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010317$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010318if ${ac_cv_prog_ft_devel+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010319 $as_echo_n "(cached) " >&6
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010320else
10321 if test -n "$ft_devel"; then
10322 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10323else
10324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10325for as_dir in $PATH
10326do
10327 IFS=$as_save_IFS
10328 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010329 for ac_exec_ext in '' $ac_executable_extensions; do
André Hentschelcecf1052012-06-02 18:58:39 +020010330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010331 ac_cv_prog_ft_devel="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010333 break 2
10334 fi
10335done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010336 done
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010337IFS=$as_save_IFS
10338
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010339fi
10340fi
10341ft_devel=$ac_cv_prog_ft_devel
10342if test -n "$ft_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010344$as_echo "$ft_devel" >&6; }
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010345else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010347$as_echo "no" >&6; }
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010348fi
10349
10350
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010351 test -n "$ft_devel" && break
10352done
Francois Gouget3fe5d802009-01-14 14:16:06 +010010353test -n "$ft_devel" || ft_devel="no"
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010354
Nicolas Le Cama37f74f2012-04-07 22:46:58 +020010355 if test "$ft_devel" != "no"
10356 then
10357 ac_freetype_incl=`$ft_devel --cflags`
10358 ac_freetype_libs=`$ft_devel --libs`
10359 fi
Francois Gouget3fe5d802009-01-14 14:16:06 +010010360 fi
Shunichi Fuji4bf77d62009-01-20 15:24:46 +090010361 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010363$as_echo_n "checking for -lfreetype... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010364if ${ac_cv_lib_soname_freetype+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010365 $as_echo_n "(cached) " >&6
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010366else
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010367 ac_check_soname_save_LIBS=$LIBS
10368LIBS="-lfreetype $ac_freetype_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010370/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010371
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010372/* Override any GCC internal prototype to avoid an error.
10373 Use char because int might match the return type of a GCC
10374 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010375#ifdef __cplusplus
10376extern "C"
10377#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010378char FT_Init_FreeType ();
10379int
10380main ()
10381{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010382return FT_Init_FreeType ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010383 ;
10384 return 0;
10385}
10386_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010387if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010388 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010389 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 +020010390 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'` ;;
10391 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10392 esac
Ian Pilcher563598d2001-05-16 20:56:05 +000010393fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010394rm -f core conftest.err conftest.$ac_objext \
10395 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010396 LIBS=$ac_check_soname_save_LIBS
Ian Pilcher563598d2001-05-16 20:56:05 +000010397fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010398if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010400$as_echo "not found" >&6; }
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010401 ft_lib=no
Ian Pilcher563598d2001-05-16 20:56:05 +000010402else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010404$as_echo "$ac_cv_lib_soname_freetype" >&6; }
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010405
10406cat >>confdefs.h <<_ACEOF
10407#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10408_ACEOF
10409
10410 ft_lib=yes
Ian Pilcher563598d2001-05-16 20:56:05 +000010411fi
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010412 if test "$ft_lib" = "yes"
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010413 then
Ian Pilcher40432fe2001-06-06 21:05:23 +000010414 ac_save_CPPFLAGS="$CPPFLAGS"
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010415 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010416 for ac_header in ft2build.h \
Rein Klazese617a9c2003-11-19 02:18:13 +000010417 freetype/freetype.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010418 freetype/ftglyph.h \
Dmitry Timoshkovb0d15902007-09-20 19:10:31 +090010419 freetype/fttypes.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010420 freetype/tttables.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010421 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +000010422 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000010423 freetype/ftoutln.h \
Huw Daviesc2217182004-06-16 20:06:26 +000010424 freetype/ftwinfnt.h \
Huw Davies603d21c2006-01-24 10:57:35 +010010425 freetype/ftmodapi.h \
Huw Davies6ee2eae2011-10-11 10:14:55 +010010426 freetype/ftlcdfil.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010427do :
10428 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10429ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
Francois Gouget9e67edf2008-03-06 12:34:48 +010010430 # include <ft2build.h>
Rein Klazes9c269172003-11-20 04:17:33 +000010431 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010432"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010433if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010434 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010010435#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010436_ACEOF
10437
10438fi
10439
Ian Pilcher40432fe2001-06-06 21:05:23 +000010440done
10441
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010443/* end confdefs.h. */
Alexandre Julliard18d75732002-01-29 03:02:50 +000010444#include <ft2build.h>
10445 #include <freetype/fttrigon.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010446_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010447if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010448
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010449$as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
Alexandre Julliard18d75732002-01-29 03:02:50 +000010450
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010451 wine_cv_fttrigon=yes
Alexandre Julliard18d75732002-01-29 03:02:50 +000010452else
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010453 wine_cv_fttrigon=no
Alexandre Julliard18d75732002-01-29 03:02:50 +000010454fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010455rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010456 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10457"
Alexandre Julliard9797da42011-04-27 17:37:43 +020010458if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
Huw Daviesd8a6c272006-02-22 12:24:25 +000010459
10460cat >>confdefs.h <<_ACEOF
10461#define HAVE_FT_TRUETYPEENGINETYPE 1
10462_ACEOF
10463
10464
10465fi
10466
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010467 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010468 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010469
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010470$as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010471
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010472 FREETYPELIBS="$ac_freetype_libs"
10473
10474 FREETYPEINCL="$ac_freetype_incl"
10475
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010476 fi
Ian Pilcher563598d2001-05-16 20:56:05 +000010477 fi
10478fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010479if test "x$FREETYPELIBS" = "x"; then :
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010480 case "x$with_freetype" in
10481 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010482 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010483Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010484esac
Huw Davies00acb5f2004-08-17 22:33:14 +000010485fi
Alexandre Julliard6de0af12008-08-25 14:41:03 +020010486test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010487
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010489$as_echo_n "checking for parport header/ppdev.h... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010490if ${ac_cv_c_ppdev+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010491 $as_echo_n "(cached) " >&6
Pavel Roskin94d99641998-12-26 11:52:51 +000010492else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010494/* end confdefs.h. */
Yann Droneauddd33ee92010-03-08 14:46:46 +010010495#ifdef HAVE_SYS_IOCTL_H
10496# include <sys/ioctl.h>
10497#endif
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010498#include <linux/ppdev.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010499int
10500main ()
10501{
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010502ioctl (1,PPCLAIM,0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010503 ;
10504 return 0;
10505}
10506_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010507if ac_fn_c_try_compile "$LINENO"; then :
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010508 ac_cv_c_ppdev="yes"
10509else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010510 ac_cv_c_ppdev="no"
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010511fi
Jeremy White0ebeb532006-06-20 13:18:41 +020010512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010513fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010515$as_echo "$ac_cv_c_ppdev" >&6; }
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010516if test "$ac_cv_c_ppdev" = "yes"
10517then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010518
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010519$as_echo "#define HAVE_PPDEV 1" >>confdefs.h
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010520
10521fi
10522
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010523ac_wine_check_funcs_save_LIBS="$LIBS"
Alexandre Julliard821ab862003-11-12 22:44:56 +000010524LIBS="$LIBS $LIBPTHREAD"
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000010525for ac_func in \
Tijl Coosemansfc8172f2006-08-05 23:31:07 +020010526 pthread_attr_get_np \
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000010527 pthread_getattr_np \
10528 pthread_get_stackaddr_np \
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010529 pthread_get_stacksize_np
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010530do :
10531 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10532ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010533if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Alexandre Julliard821ab862003-11-12 22:44:56 +000010534 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010010535#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliard821ab862003-11-12 22:44:56 +000010536_ACEOF
10537
10538fi
10539done
10540
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010541LIBS="$ac_wine_check_funcs_save_LIBS"
Alexandre Julliard821ab862003-11-12 22:44:56 +000010542
Jacek Caban11ca05f2009-05-29 23:35:13 +020010543if test "$ac_cv_header_zlib_h" = "yes"
10544then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
Jacek Caban11ca05f2009-05-29 23:35:13 +020010546$as_echo_n "checking for inflate in -lz... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010547if ${ac_cv_lib_z_inflate+:} false; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010548 $as_echo_n "(cached) " >&6
10549else
10550 ac_check_lib_save_LIBS=$LIBS
10551LIBS="-lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jacek Caban11ca05f2009-05-29 23:35:13 +020010553/* end confdefs.h. */
10554
10555/* Override any GCC internal prototype to avoid an error.
10556 Use char because int might match the return type of a GCC
10557 builtin and then its argument prototype would still apply. */
10558#ifdef __cplusplus
10559extern "C"
10560#endif
10561char inflate ();
10562int
10563main ()
10564{
10565return inflate ();
10566 ;
10567 return 0;
10568}
10569_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010570if ac_fn_c_try_link "$LINENO"; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010571 ac_cv_lib_z_inflate=yes
10572else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010573 ac_cv_lib_z_inflate=no
Jacek Caban11ca05f2009-05-29 23:35:13 +020010574fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010575rm -f core conftest.err conftest.$ac_objext \
10576 conftest$ac_exeext conftest.$ac_ext
Jacek Caban11ca05f2009-05-29 23:35:13 +020010577LIBS=$ac_check_lib_save_LIBS
10578fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
Jacek Caban11ca05f2009-05-29 23:35:13 +020010580$as_echo "$ac_cv_lib_z_inflate" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010581if test "x$ac_cv_lib_z_inflate" = xyes; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010582
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010583$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
Jacek Caban11ca05f2009-05-29 23:35:13 +020010584
10585 ZLIB="-lz"
10586
10587fi
10588
10589fi
Alexandre Julliardba6a41a2011-02-18 13:07:27 +010010590if test "x$ZLIB" = "x"; then :
10591 case "x$with_zlib" in
10592 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10593 xno) ;;
10594 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010595This is an error since --with-zlib was requested." "$LINENO" 5 ;;
Alexandre Julliardba6a41a2011-02-18 13:07:27 +010010596esac
10597fi
Jacek Caban11ca05f2009-05-29 23:35:13 +020010598
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010599if test "x$enable_tools" != xno
10600then
10601 if test "$ac_cv_header_gettext_po_h" = "yes"
10602 then
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10604$as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010605if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010606 $as_echo_n "(cached) " >&6
10607else
10608 ac_check_lib_save_LIBS=$LIBS
10609LIBS="-lgettextpo $LIBS"
10610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10611/* end confdefs.h. */
10612
10613/* Override any GCC internal prototype to avoid an error.
10614 Use char because int might match the return type of a GCC
10615 builtin and then its argument prototype would still apply. */
10616#ifdef __cplusplus
10617extern "C"
10618#endif
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010619char po_message_msgctxt ();
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010620int
10621main ()
10622{
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010623return po_message_msgctxt ();
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010624 ;
10625 return 0;
10626}
10627_ACEOF
10628if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010629 ac_cv_lib_gettextpo_po_message_msgctxt=yes
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010630else
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010631 ac_cv_lib_gettextpo_po_message_msgctxt=no
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010632fi
10633rm -f core conftest.err conftest.$ac_objext \
10634 conftest$ac_exeext conftest.$ac_ext
10635LIBS=$ac_check_lib_save_LIBS
10636fi
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10638$as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010639if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010640
10641$as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10642
10643 LIBGETTEXTPO="-lgettextpo"
10644
10645fi
10646
10647 fi
Alexandre Julliard9159cfe2011-10-22 20:46:36 +020010648 test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010649 case "x$with_gettextpo" in
Alexandre Julliard9159cfe2011-10-22 20:46:36 +020010650 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 +010010651 xno) ;;
Alexandre Julliard9159cfe2011-10-22 20:46:36 +020010652 *) 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 +020010653This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010654esac
10655fi
10656fi
10657
Aric Stewart2914d652010-10-20 13:55:16 -050010658if test "x$with_gstreamer" != "xno"
10659then
10660 ac_save_CPPFLAGS="$CPPFLAGS"
10661 if test "$PKG_CONFIG" != "false"; then
10662 ac_gst_incl=""
10663 for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10664 do
10665 case "$i" in
10666 -I*) ac_gst_incl="$ac_gst_incl $i";;
10667 esac
10668 done
10669 ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10670 CPPFLAGS="$CPPFLAGS $ac_gst_incl"
Andrew Nguyende417972010-10-29 00:26:04 -050010671 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 +020010672if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
Andrew Nguyende417972010-10-29 00:26:04 -050010673 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 +020010674if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
Octavian Voicub113af12011-08-03 01:38:43 +030010675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
10676$as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
10677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10678/* end confdefs.h. */
10679#include <gst/app/gstappsink.h>
10680int
10681main ()
10682{
Dan Kegel45725be2011-08-31 17:35:49 -070010683static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
Octavian Voicub113af12011-08-03 01:38:43 +030010684 ;
10685 return 0;
10686}
10687_ACEOF
10688if ac_fn_c_try_compile "$LINENO"; then :
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10690$as_echo "yes" >&6; }
10691 { $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 -050010692$as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010693if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
Andrew Nguyende417972010-10-29 00:26:04 -050010694 $as_echo_n "(cached) " >&6
10695else
10696 ac_check_lib_save_LIBS=$LIBS
10697LIBS="-lgstreamer-0.10 $LIBS"
10698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10699/* end confdefs.h. */
10700
10701/* Override any GCC internal prototype to avoid an error.
10702 Use char because int might match the return type of a GCC
10703 builtin and then its argument prototype would still apply. */
10704#ifdef __cplusplus
10705extern "C"
10706#endif
10707char gst_pad_get_caps_reffed ();
10708int
10709main ()
10710{
10711return gst_pad_get_caps_reffed ();
10712 ;
10713 return 0;
10714}
10715_ACEOF
10716if ac_fn_c_try_link "$LINENO"; then :
10717 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10718else
10719 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10720fi
10721rm -f core conftest.err conftest.$ac_objext \
10722 conftest$ac_exeext conftest.$ac_ext
10723LIBS=$ac_check_lib_save_LIBS
10724fi
10725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10726$as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010727if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
Aric Stewart2914d652010-10-20 13:55:16 -050010728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10729$as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010730if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
Aric Stewart2914d652010-10-20 13:55:16 -050010731 $as_echo_n "(cached) " >&6
10732else
10733 ac_check_lib_save_LIBS=$LIBS
10734LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736/* end confdefs.h. */
10737
10738/* Override any GCC internal prototype to avoid an error.
10739 Use char because int might match the return type of a GCC
10740 builtin and then its argument prototype would still apply. */
10741#ifdef __cplusplus
10742extern "C"
10743#endif
10744char gst_app_buffer_new ();
10745int
10746main ()
10747{
10748return gst_app_buffer_new ();
10749 ;
10750 return 0;
10751}
10752_ACEOF
10753if ac_fn_c_try_link "$LINENO"; then :
10754 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10755else
10756 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10757fi
10758rm -f core conftest.err conftest.$ac_objext \
10759 conftest$ac_exeext conftest.$ac_ext
10760LIBS=$ac_check_lib_save_LIBS
10761fi
10762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10763$as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010764if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
Aric Stewart2914d652010-10-20 13:55:16 -050010765 GSTREAMER_LIBS="$ac_gst_libs"
10766
Octavian Voicub113af12011-08-03 01:38:43 +030010767 GSTREAMER_INCL="$ac_gst_incl"
Aric Stewart2914d652010-10-20 13:55:16 -050010768
10769fi
10770
10771fi
10772
Octavian Voicub113af12011-08-03 01:38:43 +030010773else
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10775$as_echo "no" >&6; }
10776fi
10777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Andrew Nguyende417972010-10-29 00:26:04 -050010778fi
10779
10780
10781fi
10782
Aric Stewart2914d652010-10-20 13:55:16 -050010783
10784 fi
10785 CPPFLAGS="$ac_save_CPPFLAGS"
10786fi
Alexandre Julliardfa3ddd82011-01-14 15:59:51 +010010787if 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 -050010788 case "x$with_gstreamer" in
Detlef Riekenberg654bb4a2010-12-12 22:48:56 +010010789 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 -050010790 xno) ;;
Detlef Riekenberg654bb4a2010-12-12 22:48:56 +010010791 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
Alexandre Julliard9797da42011-04-27 17:37:43 +020010792This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
Aric Stewart2914d652010-10-20 13:55:16 -050010793esac
10794fi
10795test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10796
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010797ALSALIBS=""
10798
Marco Pietrobono0e79a412002-08-29 01:51:31 +000010799if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010800then
Austin Englishaeb78cb2011-01-12 01:43:46 -080010801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10802$as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010803if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010804 $as_echo_n "(cached) " >&6
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010805else
10806 ac_check_lib_save_LIBS=$LIBS
10807LIBS="-lasound $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010809/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010810
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010811/* Override any GCC internal prototype to avoid an error.
10812 Use char because int might match the return type of a GCC
10813 builtin and then its argument prototype would still apply. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010814#ifdef __cplusplus
10815extern "C"
10816#endif
Austin Englishaeb78cb2011-01-12 01:43:46 -080010817char snd_pcm_hw_params_get_access_mask ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010818int
10819main ()
10820{
Austin Englishaeb78cb2011-01-12 01:43:46 -080010821return snd_pcm_hw_params_get_access_mask ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010822 ;
10823 return 0;
10824}
10825_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010826if ac_fn_c_try_link "$LINENO"; then :
Austin Englishaeb78cb2011-01-12 01:43:46 -080010827 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010828else
Austin Englishaeb78cb2011-01-12 01:43:46 -080010829 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010830fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010831rm -f core conftest.err conftest.$ac_objext \
10832 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010833LIBS=$ac_check_lib_save_LIBS
10834fi
Austin Englishaeb78cb2011-01-12 01:43:46 -080010835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
10836$as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010837if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Vincent Béron151015f2005-01-10 13:26:33 +000010839/* end confdefs.h. */
10840#ifdef HAVE_ALSA_ASOUNDLIB_H
10841#include <alsa/asoundlib.h>
10842#elif defined(HAVE_SYS_ASOUNDLIB_H)
10843#include <sys/asoundlib.h>
10844#endif
10845int
10846main ()
10847{
Austin English8521ebe2011-06-13 21:26:40 -070010848snd_pcm_hw_params_get_access_mask(NULL, NULL)
Vincent Béron151015f2005-01-10 13:26:33 +000010849 ;
10850 return 0;
10851}
10852_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010853if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard255cc212011-03-28 22:07:26 +020010854 ALSALIBS="-lasound"
Vincent Béron151015f2005-01-10 13:26:33 +000010855fi
Jeremy White0ebeb532006-06-20 13:18:41 +020010856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010857fi
10858
10859fi
10860
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020010861if test "x$with_oss" != xno
Andrew Eikumbe332322011-04-27 09:12:36 -050010862then
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020010863 ac_save_CPPFLAGS="$CPPFLAGS"
10864 if test -f /etc/oss.conf
10865 then
10866 . /etc/oss.conf
10867 fi
10868 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
10869 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
10870 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10871if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
10872 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 -050010873"
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020010874if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
Andrew Eikumbe332322011-04-27 09:12:36 -050010875
10876cat >>confdefs.h <<_ACEOF
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020010877#define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
Andrew Eikumbe332322011-04-27 09:12:36 -050010878_ACEOF
10879
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020010880OSS4INCL="$ac_oss_incl"
Andrew Eikumbe332322011-04-27 09:12:36 -050010881
10882fi
10883
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020010884fi
10885
10886
10887 CPPFLAGS="$ac_save_CPPFLAGS"
10888 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
Andrew Eikumbe332322011-04-27 09:12:36 -050010889 then
10890 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
10891 fi
10892fi
10893
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010894
Alexandre Julliard73482142005-08-03 19:21:04 +000010895if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10896then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010898$as_echo_n "checking for -lcapi20... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010899if ${ac_cv_lib_soname_capi20+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010900 $as_echo_n "(cached) " >&6
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010901else
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010902 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010903LIBS="-lcapi20 $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010905/* end confdefs.h. */
10906
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010907/* Override any GCC internal prototype to avoid an error.
10908 Use char because int might match the return type of a GCC
10909 builtin and then its argument prototype would still apply. */
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010910#ifdef __cplusplus
10911extern "C"
10912#endif
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010913char capi20_register ();
10914int
10915main ()
10916{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010917return capi20_register ();
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010918 ;
10919 return 0;
10920}
10921_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010922if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010923 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010924 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 +020010925 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'` ;;
10926 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10927 esac
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010928fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010929rm -f core conftest.err conftest.$ac_objext \
10930 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010931 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010932fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010933if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010935$as_echo "not found" >&6; }
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010936
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010937else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010939$as_echo "$ac_cv_lib_soname_capi20" >&6; }
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010940
10941cat >>confdefs.h <<_ACEOF
10942#define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010943_ACEOF
10944
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010945
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010946fi
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010947fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010948if test "x$ac_cv_lib_soname_capi20" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010949 case "x$with_capi" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010950 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 +010010951 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010952 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010953This is an error since --with-capi was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010954esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010955fi
10956
Francois Gouget289ea332008-07-24 16:09:07 +020010957CUPSINCL=""
10958
10959if test "x$with_cups" != "xno"
Alexandre Julliard702d3552007-07-02 17:30:44 +020010960then
Francois Gouget289ea332008-07-24 16:09:07 +020010961 ac_save_CPPFLAGS="$CPPFLAGS"
10962 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
Alexandre Julliarda991a562008-07-28 12:04:46 +020010963 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
Francois Gouget289ea332008-07-24 16:09:07 +020010964 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010965 for ac_header in cups/cups.h
10966do :
10967 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 +020010968if test "x$ac_cv_header_cups_cups_h" = xyes; then :
Francois Gouget289ea332008-07-24 16:09:07 +020010969 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010970#define HAVE_CUPS_CUPS_H 1
Francois Gouget289ea332008-07-24 16:09:07 +020010971_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010973$as_echo_n "checking for -lcups... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010974if ${ac_cv_lib_soname_cups+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010975 $as_echo_n "(cached) " >&6
Alexandre Julliard702d3552007-07-02 17:30:44 +020010976else
10977 ac_check_soname_save_LIBS=$LIBS
Francois Gouget289ea332008-07-24 16:09:07 +020010978LIBS="-lcups $ac_cups_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard702d3552007-07-02 17:30:44 +020010980/* end confdefs.h. */
10981
10982/* Override any GCC internal prototype to avoid an error.
10983 Use char because int might match the return type of a GCC
10984 builtin and then its argument prototype would still apply. */
10985#ifdef __cplusplus
10986extern "C"
10987#endif
10988char cupsGetDefault ();
10989int
10990main ()
10991{
10992return cupsGetDefault ();
10993 ;
10994 return 0;
10995}
10996_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010997if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard702d3552007-07-02 17:30:44 +020010998 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010999 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 +020011000 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'` ;;
11001 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11002 esac
Alexandre Julliard702d3552007-07-02 17:30:44 +020011003fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011004rm -f core conftest.err conftest.$ac_objext \
11005 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard702d3552007-07-02 17:30:44 +020011006 LIBS=$ac_check_soname_save_LIBS
11007fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011008if test "x$ac_cv_lib_soname_cups" = "x"; then :
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011010$as_echo "not found" >&6; }
Alexandre Julliard702d3552007-07-02 17:30:44 +020011011
11012else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011014$as_echo "$ac_cv_lib_soname_cups" >&6; }
Alexandre Julliard702d3552007-07-02 17:30:44 +020011015
11016cat >>confdefs.h <<_ACEOF
11017#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11018_ACEOF
11019
Francois Gouget289ea332008-07-24 16:09:07 +020011020 CUPSINCL="$ac_cups_cflags"
11021fi
Alexandre Julliard702d3552007-07-02 17:30:44 +020011022fi
11023
Francois Gouget289ea332008-07-24 16:09:07 +020011024done
11025
11026 CPPFLAGS="$ac_save_CPPFLAGS"
Alexandre Julliard702d3552007-07-02 17:30:44 +020011027fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011028if test "x$ac_cv_lib_soname_cups" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011029 case "x$with_cups" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011030 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 +010011031 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011032 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011033This is an error since --with-cups was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011034esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020011035fi
11036
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011037if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11038then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011040$as_echo_n "checking for -lfontconfig... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011041if ${ac_cv_lib_soname_fontconfig+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011042 $as_echo_n "(cached) " >&6
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011043else
11044 ac_check_soname_save_LIBS=$LIBS
11045LIBS="-lfontconfig $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011047/* end confdefs.h. */
11048
11049/* Override any GCC internal prototype to avoid an error.
11050 Use char because int might match the return type of a GCC
11051 builtin and then its argument prototype would still apply. */
11052#ifdef __cplusplus
11053extern "C"
11054#endif
11055char FcInit ();
11056int
11057main ()
11058{
11059return FcInit ();
11060 ;
11061 return 0;
11062}
11063_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011064if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011065 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011066 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 +020011067 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'` ;;
11068 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11069 esac
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011070fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011071rm -f core conftest.err conftest.$ac_objext \
11072 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011073 LIBS=$ac_check_soname_save_LIBS
11074fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011075if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011077$as_echo "not found" >&6; }
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011078
11079else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011081$as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011082
11083cat >>confdefs.h <<_ACEOF
11084#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11085_ACEOF
11086
11087
11088fi
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011089elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
Alexandre Julliard5c076732007-10-17 17:04:01 +020011090then
11091 ac_save_CPPFLAGS="$CPPFLAGS"
11092 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11093 $as_unset ac_cv_header_fontconfig_fontconfig_h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011094 for ac_header in fontconfig/fontconfig.h
11095do :
11096 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 +020011097if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
Alexandre Julliard5c076732007-10-17 17:04:01 +020011098 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011099#define HAVE_FONTCONFIG_FONTCONFIG_H 1
Alexandre Julliard5c076732007-10-17 17:04:01 +020011100_ACEOF
11101
11102fi
11103
11104done
11105
11106 CPPFLAGS="$ac_save_CPPFLAGS"
11107 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11108 then
11109 FONTCONFIGINCL="$X_CFLAGS"
11110
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011112$as_echo_n "checking for -lfontconfig... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011113if ${ac_cv_lib_soname_fontconfig+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011114 $as_echo_n "(cached) " >&6
Alexandre Julliard5c076732007-10-17 17:04:01 +020011115else
11116 ac_check_soname_save_LIBS=$LIBS
11117LIBS="-lfontconfig $X_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard5c076732007-10-17 17:04:01 +020011119/* end confdefs.h. */
11120
11121/* Override any GCC internal prototype to avoid an error.
11122 Use char because int might match the return type of a GCC
11123 builtin and then its argument prototype would still apply. */
11124#ifdef __cplusplus
11125extern "C"
11126#endif
11127char FcInit ();
11128int
11129main ()
11130{
11131return FcInit ();
11132 ;
11133 return 0;
11134}
11135_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011136if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard5c076732007-10-17 17:04:01 +020011137 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011138 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 +020011139 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'` ;;
11140 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11141 esac
Alexandre Julliard5c076732007-10-17 17:04:01 +020011142fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011143rm -f core conftest.err conftest.$ac_objext \
11144 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard5c076732007-10-17 17:04:01 +020011145 LIBS=$ac_check_soname_save_LIBS
11146fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011147if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011149$as_echo "not found" >&6; }
Alexandre Julliard5c076732007-10-17 17:04:01 +020011150
11151else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011153$as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
Alexandre Julliard5c076732007-10-17 17:04:01 +020011154
11155cat >>confdefs.h <<_ACEOF
11156#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11157_ACEOF
11158
11159
11160fi
Alexandre Julliard5c076732007-10-17 17:04:01 +020011161 fi
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011162fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011163if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011164 case "x$with_fontconfig" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011165 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 +010011166 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011167 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011168This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011169esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011170fi
11171
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011172if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11173then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011175$as_echo_n "checking for -lssl... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011176if ${ac_cv_lib_soname_ssl+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011177 $as_echo_n "(cached) " >&6
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011178else
11179 ac_check_soname_save_LIBS=$LIBS
11180LIBS="-lssl $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011182/* end confdefs.h. */
11183
11184/* Override any GCC internal prototype to avoid an error.
11185 Use char because int might match the return type of a GCC
11186 builtin and then its argument prototype would still apply. */
11187#ifdef __cplusplus
11188extern "C"
11189#endif
11190char SSL_library_init ();
11191int
11192main ()
11193{
11194return SSL_library_init ();
11195 ;
11196 return 0;
11197}
11198_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011199if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011200 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011201 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 +020011202 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'` ;;
11203 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11204 esac
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011205fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011206rm -f core conftest.err conftest.$ac_objext \
11207 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011208 LIBS=$ac_check_soname_save_LIBS
11209fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011210if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011212$as_echo "not found" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011213
11214else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011216$as_echo "$ac_cv_lib_soname_ssl" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011217
11218cat >>confdefs.h <<_ACEOF
11219#define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11220_ACEOF
11221
11222
11223fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011225$as_echo_n "checking for -lcrypto... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011226if ${ac_cv_lib_soname_crypto+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011227 $as_echo_n "(cached) " >&6
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011228else
11229 ac_check_soname_save_LIBS=$LIBS
11230LIBS="-lcrypto $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011232/* end confdefs.h. */
11233
11234/* Override any GCC internal prototype to avoid an error.
11235 Use char because int might match the return type of a GCC
11236 builtin and then its argument prototype would still apply. */
11237#ifdef __cplusplus
11238extern "C"
11239#endif
11240char BIO_new_socket ();
11241int
11242main ()
11243{
11244return BIO_new_socket ();
11245 ;
11246 return 0;
11247}
11248_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011249if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011250 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011251 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 +020011252 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'` ;;
11253 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11254 esac
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011255fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011256rm -f core conftest.err conftest.$ac_objext \
11257 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011258 LIBS=$ac_check_soname_save_LIBS
11259fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011260if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011262$as_echo "not found" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011263
11264else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011266$as_echo "$ac_cv_lib_soname_crypto" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011267
11268cat >>confdefs.h <<_ACEOF
11269#define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11270_ACEOF
11271
11272
11273fi
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011274fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011275if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011276 case "x$with_openssl" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011277 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 +010011278 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011279 *) as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011280This is an error since --with-openssl was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011281esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011282fi
11283
Maarten Lankhorstc186d8a2009-08-05 11:35:50 +020011284if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011285then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011287$as_echo_n "checking for -lgsm... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011288if ${ac_cv_lib_soname_gsm+:} false; then :
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011289 $as_echo_n "(cached) " >&6
11290else
11291 ac_check_soname_save_LIBS=$LIBS
11292LIBS="-lgsm $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011294/* end confdefs.h. */
11295
11296/* Override any GCC internal prototype to avoid an error.
11297 Use char because int might match the return type of a GCC
11298 builtin and then its argument prototype would still apply. */
11299#ifdef __cplusplus
11300extern "C"
11301#endif
11302char gsm_create ();
11303int
11304main ()
11305{
11306return gsm_create ();
11307 ;
11308 return 0;
11309}
11310_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011311if ac_fn_c_try_link "$LINENO"; then :
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011312 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011313 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 +020011314 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'` ;;
11315 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11316 esac
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011317fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011318rm -f core conftest.err conftest.$ac_objext \
11319 conftest$ac_exeext conftest.$ac_ext
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011320 LIBS=$ac_check_soname_save_LIBS
11321fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011322if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011324$as_echo "not found" >&6; }
11325
11326else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011328$as_echo "$ac_cv_lib_soname_gsm" >&6; }
11329
11330cat >>confdefs.h <<_ACEOF
11331#define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11332_ACEOF
11333
11334
11335fi
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011336fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011337if test "x$ac_cv_lib_soname_gsm" = "x"; then :
Alexandre Julliard6ce32e02009-08-19 15:53:04 +020011338 case "x$with_gsm" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011339 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 +020011340 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011341 *) 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 +020011342This is an error since --with-gsm was requested." "$LINENO" 5 ;;
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011343esac
11344fi
11345
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011346if test "$ac_cv_header_jpeglib_h" = "yes"
11347then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011349$as_echo_n "checking for -ljpeg... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011350if ${ac_cv_lib_soname_jpeg+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011351 $as_echo_n "(cached) " >&6
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011352else
11353 ac_check_soname_save_LIBS=$LIBS
11354LIBS="-ljpeg $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011356/* end confdefs.h. */
11357
11358/* Override any GCC internal prototype to avoid an error.
11359 Use char because int might match the return type of a GCC
11360 builtin and then its argument prototype would still apply. */
11361#ifdef __cplusplus
11362extern "C"
11363#endif
11364char jpeg_start_decompress ();
11365int
11366main ()
11367{
11368return jpeg_start_decompress ();
11369 ;
11370 return 0;
11371}
11372_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011373if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011374 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011375 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 +020011376 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'` ;;
11377 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11378 esac
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011379fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011380rm -f core conftest.err conftest.$ac_objext \
11381 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011382 LIBS=$ac_check_soname_save_LIBS
11383fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011384if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011386$as_echo "not found" >&6; }
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011387
11388else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011390$as_echo "$ac_cv_lib_soname_jpeg" >&6; }
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011391
11392cat >>confdefs.h <<_ACEOF
11393#define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11394_ACEOF
11395
11396
11397fi
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011398fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011399if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011400 case "x$with_jpeg" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011401 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 +010011402 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011403 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011404This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011405esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011406fi
11407
Alexandre Julliard00302152007-07-02 19:54:00 +020011408if test "$ac_cv_header_png_h" = "yes"
11409then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011411$as_echo_n "checking for -lpng... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011412if ${ac_cv_lib_soname_png+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011413 $as_echo_n "(cached) " >&6
Alexandre Julliard00302152007-07-02 19:54:00 +020011414else
11415 ac_check_soname_save_LIBS=$LIBS
Austin Englishfe8879e2008-12-28 19:10:19 -060011416LIBS="-lpng -lm -lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard00302152007-07-02 19:54:00 +020011418/* end confdefs.h. */
11419
11420/* Override any GCC internal prototype to avoid an error.
11421 Use char because int might match the return type of a GCC
11422 builtin and then its argument prototype would still apply. */
11423#ifdef __cplusplus
11424extern "C"
11425#endif
11426char png_create_read_struct ();
11427int
11428main ()
11429{
11430return png_create_read_struct ();
11431 ;
11432 return 0;
11433}
11434_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011435if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard00302152007-07-02 19:54:00 +020011436 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011437 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 +020011438 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'` ;;
11439 *) 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'` ;;
11440 esac
Alexandre Julliard00302152007-07-02 19:54:00 +020011441fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011442rm -f core conftest.err conftest.$ac_objext \
11443 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard00302152007-07-02 19:54:00 +020011444 LIBS=$ac_check_soname_save_LIBS
11445fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011446if test "x$ac_cv_lib_soname_png" = "x"; then :
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011448$as_echo "not found" >&6; }
Alexandre Julliard00302152007-07-02 19:54:00 +020011449
11450else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011452$as_echo "$ac_cv_lib_soname_png" >&6; }
Alexandre Julliard00302152007-07-02 19:54:00 +020011453
11454cat >>confdefs.h <<_ACEOF
11455#define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11456_ACEOF
11457
11458
11459fi
Marcus Meissner615e0e62010-02-27 23:13:21 +010011460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11461$as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011462if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
Marcus Meissner615e0e62010-02-27 23:13:21 +010011463 $as_echo_n "(cached) " >&6
11464else
11465 ac_check_lib_save_LIBS=$LIBS
11466LIBS="-lpng -lm -lz $LIBS"
11467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11468/* end confdefs.h. */
11469
11470/* Override any GCC internal prototype to avoid an error.
11471 Use char because int might match the return type of a GCC
11472 builtin and then its argument prototype would still apply. */
11473#ifdef __cplusplus
11474extern "C"
11475#endif
11476char png_set_expand_gray_1_2_4_to_8 ();
11477int
11478main ()
11479{
11480return png_set_expand_gray_1_2_4_to_8 ();
11481 ;
11482 return 0;
11483}
11484_ACEOF
11485if ac_fn_c_try_link "$LINENO"; then :
11486 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11487else
11488 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11489fi
11490rm -f core conftest.err conftest.$ac_objext \
11491 conftest$ac_exeext conftest.$ac_ext
11492LIBS=$ac_check_lib_save_LIBS
11493fi
11494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11495$as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011496if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
Marcus Meissner615e0e62010-02-27 23:13:21 +010011497
11498$as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11499
11500
11501fi
11502
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011503elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11504then
11505 ac_save_CPPFLAGS="$CPPFLAGS"
11506 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11507 $as_unset ac_cv_header_png_h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011508 for ac_header in png.h
11509do :
11510 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020011511if test "x$ac_cv_header_png_h" = xyes; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011512 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011513#define HAVE_PNG_H 1
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011514_ACEOF
11515
11516fi
11517
11518done
11519
11520 CPPFLAGS="$ac_save_CPPFLAGS"
11521 if test "$ac_cv_header_png_h" = "yes"
11522 then
11523 PNGINCL="$X_CFLAGS"
11524
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011526$as_echo_n "checking for -lpng... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011527if ${ac_cv_lib_soname_png+:} false; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011528 $as_echo_n "(cached) " >&6
11529else
11530 ac_check_soname_save_LIBS=$LIBS
11531LIBS="-lpng $X_LIBS -lm -lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011533/* end confdefs.h. */
11534
11535/* Override any GCC internal prototype to avoid an error.
11536 Use char because int might match the return type of a GCC
11537 builtin and then its argument prototype would still apply. */
11538#ifdef __cplusplus
11539extern "C"
11540#endif
11541char png_create_read_struct ();
11542int
11543main ()
11544{
11545return png_create_read_struct ();
11546 ;
11547 return 0;
11548}
11549_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011550if ac_fn_c_try_link "$LINENO"; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011551 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011552 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 +020011553 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'` ;;
11554 *) 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'` ;;
11555 esac
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011556fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011557rm -f core conftest.err conftest.$ac_objext \
11558 conftest$ac_exeext conftest.$ac_ext
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011559 LIBS=$ac_check_soname_save_LIBS
11560fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011561if test "x$ac_cv_lib_soname_png" = "x"; then :
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011563$as_echo "not found" >&6; }
11564
11565else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011566 { $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 +020011567$as_echo "$ac_cv_lib_soname_png" >&6; }
11568
11569cat >>confdefs.h <<_ACEOF
11570#define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11571_ACEOF
11572
11573
11574fi
Marcus Meissner615e0e62010-02-27 23:13:21 +010011575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11576$as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011577if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
Marcus Meissner615e0e62010-02-27 23:13:21 +010011578 $as_echo_n "(cached) " >&6
11579else
11580 ac_check_lib_save_LIBS=$LIBS
11581LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11583/* end confdefs.h. */
11584
11585/* Override any GCC internal prototype to avoid an error.
11586 Use char because int might match the return type of a GCC
11587 builtin and then its argument prototype would still apply. */
11588#ifdef __cplusplus
11589extern "C"
11590#endif
11591char png_set_expand_gray_1_2_4_to_8 ();
11592int
11593main ()
11594{
11595return png_set_expand_gray_1_2_4_to_8 ();
11596 ;
11597 return 0;
11598}
11599_ACEOF
11600if ac_fn_c_try_link "$LINENO"; then :
11601 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11602else
11603 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11604fi
11605rm -f core conftest.err conftest.$ac_objext \
11606 conftest$ac_exeext conftest.$ac_ext
11607LIBS=$ac_check_lib_save_LIBS
11608fi
11609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11610$as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011611if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
Marcus Meissner615e0e62010-02-27 23:13:21 +010011612 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11613
11614fi
11615
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011616 fi
Alexandre Julliard00302152007-07-02 19:54:00 +020011617fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011618if test "x$ac_cv_lib_soname_png" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011619 case "x$with_png" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011620 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 +010011621 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011622 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011623This is an error since --with-png was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011624esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011625fi
11626
Vincent Povirk73cd5692010-03-08 17:07:29 -060011627if test "$ac_cv_header_tiffio_h" = "yes"
11628then
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11630$as_echo_n "checking for -ltiff... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011631if ${ac_cv_lib_soname_tiff+:} false; then :
Vincent Povirk73cd5692010-03-08 17:07:29 -060011632 $as_echo_n "(cached) " >&6
11633else
11634 ac_check_soname_save_LIBS=$LIBS
11635LIBS="-ltiff $LIBS"
11636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11637/* end confdefs.h. */
11638
11639/* Override any GCC internal prototype to avoid an error.
11640 Use char because int might match the return type of a GCC
11641 builtin and then its argument prototype would still apply. */
11642#ifdef __cplusplus
11643extern "C"
11644#endif
11645char TIFFClientOpen ();
11646int
11647main ()
11648{
11649return TIFFClientOpen ();
11650 ;
11651 return 0;
11652}
11653_ACEOF
11654if ac_fn_c_try_link "$LINENO"; then :
11655 case "$LIBEXT" in
11656 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11657 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'` ;;
11658 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11659 esac
11660fi
11661rm -f core conftest.err conftest.$ac_objext \
11662 conftest$ac_exeext conftest.$ac_ext
11663 LIBS=$ac_check_soname_save_LIBS
11664fi
11665if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11667$as_echo "not found" >&6; }
11668
11669else
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11671$as_echo "$ac_cv_lib_soname_tiff" >&6; }
11672
11673cat >>confdefs.h <<_ACEOF
11674#define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11675_ACEOF
11676
11677
11678fi
11679fi
11680if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11681 case "x$with_tiff" in
11682 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11683 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011684 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011685This is an error since --with-tiff was requested." "$LINENO" 5 ;;
Vincent Povirk73cd5692010-03-08 17:07:29 -060011686esac
11687fi
11688
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011689if test "$ac_cv_header_mpg123_h" = "yes"
11690then
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11692$as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011693if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011694 $as_echo_n "(cached) " >&6
11695else
11696 ac_check_lib_save_LIBS=$LIBS
11697LIBS="-lmpg123 $LIBS"
11698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11699/* end confdefs.h. */
11700
11701/* Override any GCC internal prototype to avoid an error.
11702 Use char because int might match the return type of a GCC
11703 builtin and then its argument prototype would still apply. */
11704#ifdef __cplusplus
11705extern "C"
11706#endif
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011707char mpg123_feed ();
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011708int
11709main ()
11710{
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011711return mpg123_feed ();
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011712 ;
11713 return 0;
11714}
11715_ACEOF
11716if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011717 ac_cv_lib_mpg123_mpg123_feed=yes
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011718else
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011719 ac_cv_lib_mpg123_mpg123_feed=no
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011720fi
11721rm -f core conftest.err conftest.$ac_objext \
11722 conftest$ac_exeext conftest.$ac_ext
11723LIBS=$ac_check_lib_save_LIBS
11724fi
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11726$as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011727if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011728 LIBMPG123="-lmpg123"
11729
11730fi
11731
11732fi
Aric Stewart4430ab42010-03-17 10:58:32 -050011733if 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 -050011734 case "x$with_mpg123" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011735 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 -050011736 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011737 *) 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 +020011738This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011739esac
11740fi
Kristofer Henrikssonc58eff62010-05-24 15:04:42 -040011741test "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 -050011742
Chris Robinson862965f2009-08-25 03:26:35 -070011743if test "$ac_cv_header_AL_al_h" = "yes"
11744then
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11746$as_echo_n "checking for -lopenal... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011747if ${ac_cv_lib_soname_openal+:} false; then :
Chris Robinson862965f2009-08-25 03:26:35 -070011748 $as_echo_n "(cached) " >&6
11749else
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011750 ac_check_soname_save_LIBS=$LIBS
Chris Robinson862965f2009-08-25 03:26:35 -070011751LIBS="-lopenal $LIBS"
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris Robinson862965f2009-08-25 03:26:35 -070011753/* end confdefs.h. */
11754
11755/* Override any GCC internal prototype to avoid an error.
11756 Use char because int might match the return type of a GCC
11757 builtin and then its argument prototype would still apply. */
11758#ifdef __cplusplus
11759extern "C"
11760#endif
11761char alGetSource3i ();
11762int
11763main ()
11764{
11765return alGetSource3i ();
11766 ;
11767 return 0;
11768}
11769_ACEOF
11770if ac_fn_c_try_link "$LINENO"; then :
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011771 case "$LIBEXT" in
11772 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11773 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'` ;;
11774 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11775 esac
Chris Robinson862965f2009-08-25 03:26:35 -070011776fi
11777rm -f core conftest.err conftest.$ac_objext \
11778 conftest$ac_exeext conftest.$ac_ext
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011779 LIBS=$ac_check_soname_save_LIBS
Chris Robinson862965f2009-08-25 03:26:35 -070011780fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011781if test "x$ac_cv_lib_soname_openal" = "x"; then :
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11783$as_echo "not found" >&6; }
11784
11785else
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11787$as_echo "$ac_cv_lib_soname_openal" >&6; }
11788
11789cat >>confdefs.h <<_ACEOF
11790#define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11791_ACEOF
11792
11793 LIBOPENAL="-lopenal"
11794
11795 ac_cv_lib_openal=yes
11796
11797cat >>confdefs.h <<_ACEOF
11798#define HAVE_OPENAL 1
11799_ACEOF
Chris Robinson862965f2009-08-25 03:26:35 -070011800
11801fi
Chris Robinson862965f2009-08-25 03:26:35 -070011802fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011803if test "x$ac_cv_lib_openal" != xyes; then :
Chris Robinson862965f2009-08-25 03:26:35 -070011804 case "x$with_openal" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011805 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 -070011806 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011807 *) 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 +020011808This is an error since --with-openal was requested." "$LINENO" 5 ;;
Chris Robinson862965f2009-08-25 03:26:35 -070011809esac
11810fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011811test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
Chris Robinson862965f2009-08-25 03:26:35 -070011812
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011813if test "$ac_cv_header_kstat_h" = "yes"
11814then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011816$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011817if ${ac_cv_lib_kstat_kstat_open+:} false; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011818 $as_echo_n "(cached) " >&6
11819else
11820 ac_check_lib_save_LIBS=$LIBS
11821LIBS="-lkstat $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011823/* end confdefs.h. */
11824
11825/* Override any GCC internal prototype to avoid an error.
11826 Use char because int might match the return type of a GCC
11827 builtin and then its argument prototype would still apply. */
11828#ifdef __cplusplus
11829extern "C"
11830#endif
11831char kstat_open ();
11832int
11833main ()
11834{
11835return kstat_open ();
11836 ;
11837 return 0;
11838}
11839_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011840if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011841 ac_cv_lib_kstat_kstat_open=yes
11842else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011843 ac_cv_lib_kstat_kstat_open=no
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011844fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011845rm -f core conftest.err conftest.$ac_objext \
11846 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011847LIBS=$ac_check_lib_save_LIBS
11848fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011850$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011851if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011852
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011853$as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011854
11855 LIBKSTAT="-lkstat"
11856
11857fi
11858
11859fi
11860
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011862$as_echo_n "checking for -lodbc... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011863if ${ac_cv_lib_soname_odbc+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011864 $as_echo_n "(cached) " >&6
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011865else
11866 ac_check_soname_save_LIBS=$LIBS
11867LIBS="-lodbc $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011869/* end confdefs.h. */
11870
11871/* Override any GCC internal prototype to avoid an error.
11872 Use char because int might match the return type of a GCC
11873 builtin and then its argument prototype would still apply. */
11874#ifdef __cplusplus
11875extern "C"
11876#endif
11877char SQLConnect ();
11878int
11879main ()
11880{
11881return SQLConnect ();
11882 ;
11883 return 0;
11884}
11885_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011886if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011887 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011888 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 +010011889 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'` ;;
11890 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11891 esac
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011892fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011893rm -f core conftest.err conftest.$ac_objext \
11894 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011895 LIBS=$ac_check_soname_save_LIBS
11896fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011897if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011899$as_echo "not found" >&6; }
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011900 cat >>confdefs.h <<_ACEOF
11901#define SONAME_LIBODBC "libodbc.$LIBEXT"
11902_ACEOF
11903
11904else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011906$as_echo "$ac_cv_lib_soname_odbc" >&6; }
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011907
11908cat >>confdefs.h <<_ACEOF
11909#define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11910_ACEOF
11911
11912
11913fi
11914
Alexandre Julliard98cb21f2011-03-17 11:42:17 +010011915test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
11916test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020011917test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
Alexandre Julliard98cb21f2011-03-17 11:42:17 +010011918test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
11919
Austin Englisheb17b8c2011-07-23 23:05:04 -050011920if test "x$ALSALIBS$COREAUDIO" = "x" -a \
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020011921 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
Andrew Eikum55f9ac82011-07-13 14:20:47 -050011922 "x$with_alsa$with_coreaudio$with_oss" != xnonono
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011923then
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011924 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
Alexandre Julliardf9dec942007-07-10 15:14:15 +020011925fi
11926
11927
Alexandre Julliardfc094232003-04-14 21:46:41 +000011928EXTRACFLAGS=""
11929
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011930if test "x${GCC}" = "xyes"
11931then
Hans Leidekkerd17b2322004-01-06 21:37:44 +000011932 EXTRACFLAGS="-Wall -pipe"
Mike McCormackc509bc42003-02-25 04:01:58 +000011933
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011935$as_echo_n "checking for gcc strength-reduce bug... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011936if ${ac_cv_c_gcc_strength_bug+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011937 $as_echo_n "(cached) " >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011938else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011939 if test "$cross_compiling" = yes; then :
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011940 ac_cv_c_gcc_strength_bug="yes"
11941else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011943/* end confdefs.h. */
Alexandre Julliardad356de2007-06-08 20:23:16 +020011944int L[4] = {0,1,2,3};
11945int
11946main ()
11947{
11948static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011949 unsigned int B = 3;
11950 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000011951 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +000011952 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11953 L[i] = 4;
Alexandre Julliard95251a72009-02-16 12:46:58 +010011954 return (Array[1] != -2 || L[2] != 3)
Alexandre Julliardad356de2007-06-08 20:23:16 +020011955 ;
11956 return 0;
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011957}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011958_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011959if ac_fn_c_try_run "$LINENO"; then :
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011960 ac_cv_c_gcc_strength_bug="no"
11961else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011962 ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011963fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011964rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11965 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011966fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011967
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011968fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011970$as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011971 if test "$ac_cv_c_gcc_strength_bug" = "yes"
11972 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000011973 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011974 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000011975
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011977$as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011978if ${ac_cv_cflags__fno_builtin+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011979 $as_echo_n "(cached) " >&6
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011980else
11981 ac_wine_try_cflags_saved=$CFLAGS
11982CFLAGS="$CFLAGS -fno-builtin"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011984/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011985int main(int argc, char **argv) { return 0; }
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011986_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011987if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011988 ac_cv_cflags__fno_builtin=yes
11989else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011990 ac_cv_cflags__fno_builtin=no
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011991fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011992rm -f core conftest.err conftest.$ac_objext \
11993 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011994CFLAGS=$ac_wine_try_cflags_saved
11995fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011997$as_echo "$ac_cv_cflags__fno_builtin" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011998if test $ac_cv_cflags__fno_builtin = yes; then :
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011999 BUILTINFLAG="-fno-builtin"
12000
12001fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012003$as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012004if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012005 $as_echo_n "(cached) " >&6
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012006else
12007 ac_wine_try_cflags_saved=$CFLAGS
12008CFLAGS="$CFLAGS -fno-strict-aliasing"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012010/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012011int main(int argc, char **argv) { return 0; }
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012012_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012013if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020012014 ac_cv_cflags__fno_strict_aliasing=yes
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012015else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012016 ac_cv_cflags__fno_strict_aliasing=no
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012017fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012018rm -f core conftest.err conftest.$ac_objext \
12019 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012020CFLAGS=$ac_wine_try_cflags_saved
12021fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012023$as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012024if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020012025 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12026fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012028$as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012029if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012030 $as_echo_n "(cached) " >&6
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000012031else
12032 ac_wine_try_cflags_saved=$CFLAGS
12033CFLAGS="$CFLAGS -Wdeclaration-after-statement"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000012035/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012036int main(int argc, char **argv) { return 0; }
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000012037_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012038if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020012039 ac_cv_cflags__Wdeclaration_after_statement=yes
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000012040else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012041 ac_cv_cflags__Wdeclaration_after_statement=no
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000012042fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012043rm -f core conftest.err conftest.$ac_objext \
12044 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000012045CFLAGS=$ac_wine_try_cflags_saved
12046fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012048$as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012049if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020012050 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12051fi
Gerald Pfeifer8213f542011-05-08 02:53:23 +020012052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
12053$as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
12054if ${ac_cv_cflags__Wempty_body+:} false; then :
12055 $as_echo_n "(cached) " >&6
12056else
12057 ac_wine_try_cflags_saved=$CFLAGS
12058CFLAGS="$CFLAGS -Wempty-body"
12059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12060/* end confdefs.h. */
12061int main(int argc, char **argv) { return 0; }
12062_ACEOF
12063if ac_fn_c_try_link "$LINENO"; then :
12064 ac_cv_cflags__Wempty_body=yes
12065else
12066 ac_cv_cflags__Wempty_body=no
12067fi
12068rm -f core conftest.err conftest.$ac_objext \
12069 conftest$ac_exeext conftest.$ac_ext
12070CFLAGS=$ac_wine_try_cflags_saved
12071fi
12072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
12073$as_echo "$ac_cv_cflags__Wempty_body" >&6; }
12074if test $ac_cv_cflags__Wempty_body = yes; then :
12075 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
12076fi
Gerald Pfeifer2505dfc2012-01-23 21:58:35 +010012077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
12078$as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
12079if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
12080 $as_echo_n "(cached) " >&6
12081else
12082 ac_wine_try_cflags_saved=$CFLAGS
12083CFLAGS="$CFLAGS -Wignored-qualifiers"
12084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12085/* end confdefs.h. */
12086int main(int argc, char **argv) { return 0; }
12087_ACEOF
12088if ac_fn_c_try_link "$LINENO"; then :
12089 ac_cv_cflags__Wignored_qualifiers=yes
12090else
12091 ac_cv_cflags__Wignored_qualifiers=no
12092fi
12093rm -f core conftest.err conftest.$ac_objext \
12094 conftest$ac_exeext conftest.$ac_ext
12095CFLAGS=$ac_wine_try_cflags_saved
12096fi
12097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
12098$as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
12099if test $ac_cv_cflags__Wignored_qualifiers = yes; then :
12100 EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
12101fi
Alexandre Julliard295806f2009-10-07 13:46:06 +020012102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12103$as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012104if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
Alexandre Julliard295806f2009-10-07 13:46:06 +020012105 $as_echo_n "(cached) " >&6
12106else
12107 ac_wine_try_cflags_saved=$CFLAGS
12108CFLAGS="$CFLAGS -Wstrict-prototypes"
12109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12110/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012111int main(int argc, char **argv) { return 0; }
Alexandre Julliard295806f2009-10-07 13:46:06 +020012112_ACEOF
12113if ac_fn_c_try_link "$LINENO"; then :
12114 ac_cv_cflags__Wstrict_prototypes=yes
12115else
12116 ac_cv_cflags__Wstrict_prototypes=no
12117fi
12118rm -f core conftest.err conftest.$ac_objext \
12119 conftest$ac_exeext conftest.$ac_ext
12120CFLAGS=$ac_wine_try_cflags_saved
12121fi
12122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12123$as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12124if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12125 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12126fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012128$as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012129if ${ac_cv_cflags__Wtype_limits+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012130 $as_echo_n "(cached) " >&6
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012131else
12132 ac_wine_try_cflags_saved=$CFLAGS
12133CFLAGS="$CFLAGS -Wtype-limits"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012135/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012136int main(int argc, char **argv) { return 0; }
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012137_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012138if ac_fn_c_try_link "$LINENO"; then :
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012139 ac_cv_cflags__Wtype_limits=yes
12140else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012141 ac_cv_cflags__Wtype_limits=no
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012142fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012143rm -f core conftest.err conftest.$ac_objext \
12144 conftest$ac_exeext conftest.$ac_ext
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012145CFLAGS=$ac_wine_try_cflags_saved
12146fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012148$as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012149if test $ac_cv_cflags__Wtype_limits = yes; then :
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012150 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12151fi
Gerald Pfeifer3ec82c52011-04-10 20:38:52 +020012152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12153$as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012154if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
Gerald Pfeifer3ec82c52011-04-10 20:38:52 +020012155 $as_echo_n "(cached) " >&6
12156else
12157 ac_wine_try_cflags_saved=$CFLAGS
12158CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12160/* end confdefs.h. */
12161int main(int argc, char **argv) { return 0; }
12162_ACEOF
12163if ac_fn_c_try_link "$LINENO"; then :
12164 ac_cv_cflags__Wunused_but_set_parameter=yes
12165else
12166 ac_cv_cflags__Wunused_but_set_parameter=no
12167fi
12168rm -f core conftest.err conftest.$ac_objext \
12169 conftest$ac_exeext conftest.$ac_ext
12170CFLAGS=$ac_wine_try_cflags_saved
12171fi
12172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12173$as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12174if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12175 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12176fi
Gerald Pfeifereae58292010-01-02 15:13:43 +010012177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12178$as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012179if ${ac_cv_cflags__Wwrite_strings+:} false; then :
Gerald Pfeifereae58292010-01-02 15:13:43 +010012180 $as_echo_n "(cached) " >&6
12181else
12182 ac_wine_try_cflags_saved=$CFLAGS
12183CFLAGS="$CFLAGS -Wwrite-strings"
12184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012186int main(int argc, char **argv) { return 0; }
Gerald Pfeifereae58292010-01-02 15:13:43 +010012187_ACEOF
12188if ac_fn_c_try_link "$LINENO"; then :
12189 ac_cv_cflags__Wwrite_strings=yes
12190else
12191 ac_cv_cflags__Wwrite_strings=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__Wwrite_strings" >&5
12198$as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12199if test $ac_cv_cflags__Wwrite_strings = yes; then :
12200 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12201fi
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012202
Austin English5cfe7db2011-10-18 12:17:37 -070012203 case $host_cpu in
12204 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
12205$as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
12206if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
12207 $as_echo_n "(cached) " >&6
12208else
12209 ac_wine_try_cflags_saved=$CFLAGS
12210CFLAGS="$CFLAGS -fno-omit-frame-pointer"
12211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12212/* end confdefs.h. */
12213int main(int argc, char **argv) { return 0; }
12214_ACEOF
12215if ac_fn_c_try_link "$LINENO"; then :
12216 ac_cv_cflags__fno_omit_frame_pointer=yes
12217else
12218 ac_cv_cflags__fno_omit_frame_pointer=no
12219fi
12220rm -f core conftest.err conftest.$ac_objext \
12221 conftest$ac_exeext conftest.$ac_ext
12222CFLAGS=$ac_wine_try_cflags_saved
12223fi
12224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
12225$as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
12226if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
12227 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
12228fi ;;
12229 esac
12230
Alexandre Julliardb71f83b2012-01-16 16:31:11 +010012231 case $host in
12232 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
12233$as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
12234if ${ac_cv_cflags__Wno_format+:} false; then :
12235 $as_echo_n "(cached) " >&6
12236else
12237 ac_wine_try_cflags_saved=$CFLAGS
12238CFLAGS="$CFLAGS -Wno-format"
12239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240/* end confdefs.h. */
12241int main(int argc, char **argv) { return 0; }
12242_ACEOF
12243if ac_fn_c_try_link "$LINENO"; then :
12244 ac_cv_cflags__Wno_format=yes
12245else
12246 ac_cv_cflags__Wno_format=no
12247fi
12248rm -f core conftest.err conftest.$ac_objext \
12249 conftest$ac_exeext conftest.$ac_ext
12250CFLAGS=$ac_wine_try_cflags_saved
12251fi
12252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
12253$as_echo "$ac_cv_cflags__Wno_format" >&6; }
12254if test $ac_cv_cflags__Wno_format = yes; then :
12255 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
12256fi ;;
12257 esac
12258
Alexandre Julliard4d52d372003-03-24 19:33:20 +000012259 saved_CFLAGS="$CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000012260 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
Marcus Meissnerf825f0d2010-12-17 21:29:20 +010012261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12262$as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012263if ${ac_cv_c_string_h_warnings+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012264 $as_echo_n "(cached) " >&6
Mike McCormackc509bc42003-02-25 04:01:58 +000012265else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000012267/* end confdefs.h. */
12268#include <string.h>
12269int
12270main ()
12271{
12272
12273 ;
12274 return 0;
12275}
12276_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012277if ac_fn_c_try_compile "$LINENO"; then :
Mike McCormackc509bc42003-02-25 04:01:58 +000012278 ac_cv_c_string_h_warnings=no
12279else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012280 ac_cv_c_string_h_warnings=yes
Mike McCormackc509bc42003-02-25 04:01:58 +000012281fi
Jeremy White0ebeb532006-06-20 13:18:41 +020012282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000012283fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012285$as_echo "$ac_cv_c_string_h_warnings" >&6; }
Alexandre Julliard4d52d372003-03-24 19:33:20 +000012286 CFLAGS="$saved_CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000012287 if test "$ac_cv_c_string_h_warnings" = "no"
12288 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012289 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
Mike McCormackc509bc42003-02-25 04:01:58 +000012290 fi
Alexandre Julliard12753c52009-10-02 14:39:49 +020012291
Marcus Meissnerf825f0d2010-12-17 21:29:20 +010012292 saved_CFLAGS="$CFLAGS"
12293 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12295$as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012296if ${ac_cv_c_logicalop_noisy+:} false; then :
Marcus Meissnerf825f0d2010-12-17 21:29:20 +010012297 $as_echo_n "(cached) " >&6
12298else
12299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300/* end confdefs.h. */
12301#include <string.h>
12302int
12303main ()
12304{
12305char*f(const char *h,char n) {return strchr(h,n);}
12306 ;
12307 return 0;
12308}
12309_ACEOF
12310if ac_fn_c_try_compile "$LINENO"; then :
12311 ac_cv_c_logicalop_noisy=no
12312else
12313 ac_cv_c_logicalop_noisy=yes
12314fi
12315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12316fi
12317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12318$as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12319 CFLAGS="$saved_CFLAGS"
12320 if test "$ac_cv_c_logicalop_noisy" = "no"
12321 then
12322 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12323 fi
12324
Andrew Nguyen2eda9c72010-05-25 22:20:14 -050012325 if test "x$enable_maintainer_mode" = "xyes"
Alexandre Julliard12753c52009-10-02 14:39:49 +020012326 then
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12328$as_echo_n "checking whether the compiler supports -Werror... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012329if ${ac_cv_cflags__Werror+:} false; then :
Alexandre Julliard12753c52009-10-02 14:39:49 +020012330 $as_echo_n "(cached) " >&6
12331else
12332 ac_wine_try_cflags_saved=$CFLAGS
12333CFLAGS="$CFLAGS -Werror"
12334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12335/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012336int main(int argc, char **argv) { return 0; }
Alexandre Julliard12753c52009-10-02 14:39:49 +020012337_ACEOF
12338if ac_fn_c_try_link "$LINENO"; then :
12339 ac_cv_cflags__Werror=yes
12340else
12341 ac_cv_cflags__Werror=no
12342fi
12343rm -f core conftest.err conftest.$ac_objext \
12344 conftest$ac_exeext conftest.$ac_ext
12345CFLAGS=$ac_wine_try_cflags_saved
12346fi
12347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12348$as_echo "$ac_cv_cflags__Werror" >&6; }
12349if test $ac_cv_cflags__Werror = yes; then :
12350 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12351fi
12352 fi
Stefan Dösingerfdac5e52009-09-12 14:08:53 +020012353
12354 saved_CFLAGS="$CFLAGS"
12355 CFLAGS="$CFLAGS -Werror"
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12357$as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012358if ${ac_cv_have_ms_hook_prologue+:} false; then :
Stefan Dösingerfdac5e52009-09-12 14:08:53 +020012359 $as_echo_n "(cached) " >&6
12360else
12361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12362/* end confdefs.h. */
12363int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12364int
12365main ()
12366{
12367
12368 ;
12369 return 0;
12370}
12371_ACEOF
12372if ac_fn_c_try_compile "$LINENO"; then :
12373 ac_cv_have_ms_hook_prologue="yes"
12374else
12375 ac_cv_have_ms_hook_prologue="no"
12376fi
12377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12378fi
12379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12380$as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12381 CFLAGS="$saved_CFLAGS"
12382 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12383 then
12384
12385$as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12386
12387 else
12388 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12389
12390 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012391fi
12392
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012393
Alexandre Julliard105793b2010-10-22 17:13:57 +020012394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12395$as_echo_n "checking for the need to disable Fortify... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012396if ${ac_cv_c_fortify_enabled+:} false; then :
Alexandre Julliard105793b2010-10-22 17:13:57 +020012397 $as_echo_n "(cached) " >&6
12398else
12399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12400/* end confdefs.h. */
12401#include <string.h>
12402int
12403main ()
12404{
12405#if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12406#error Fortify enabled
12407#endif
12408 ;
12409 return 0;
12410}
12411_ACEOF
12412if ac_fn_c_try_compile "$LINENO"; then :
12413 ac_cv_c_fortify_enabled=no
12414else
12415 ac_cv_c_fortify_enabled=yes
12416fi
12417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12418fi
12419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12420$as_echo "$ac_cv_c_fortify_enabled" >&6; }
12421if test "$ac_cv_c_fortify_enabled" = yes
12422then
Alexandre Julliardb10fb862010-10-29 14:25:01 +020012423 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
Alexandre Julliard105793b2010-10-22 17:13:57 +020012424fi
12425
12426
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012428$as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012429if ${ac_cv_c_extern_prefix+:} false; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012430 $as_echo_n "(cached) " >&6
12431else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012433/* end confdefs.h. */
12434extern int ac_test;
12435int
12436main ()
12437{
12438asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12439 ;
12440 return 0;
12441}
12442_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012443if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012444 ac_cv_c_extern_prefix="yes"
12445else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012446 ac_cv_c_extern_prefix="no"
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012447fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012448rm -f core conftest.err conftest.$ac_objext \
12449 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012450fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012452$as_echo "$ac_cv_c_extern_prefix" >&6; }
12453
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012454case $host_cpu in
12455 *i[3456789]86*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012457$as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012458if ${ac_cv_c_stdcall_suffix+:} false; then :
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012459 $as_echo_n "(cached) " >&6
12460else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012462/* end confdefs.h. */
12463#ifndef _MSC_VER
12464#define __stdcall __attribute__((__stdcall__))
12465#endif
12466int __stdcall ac_test(int i) { return i; }
12467int
12468main ()
12469{
12470asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12471 ;
12472 return 0;
12473}
12474_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012475if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012476 ac_cv_c_stdcall_suffix="yes"
12477else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012478 ac_cv_c_stdcall_suffix="no"
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012479fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012480rm -f core conftest.err conftest.$ac_objext \
12481 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012482fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012484$as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12485 *) ac_cv_c_stdcall_suffix="no" ;;
12486esac
12487
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012488
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012489if test "$ac_cv_c_extern_prefix" = "yes"
12490then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012491 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012492
12493 asm_name_prefix="_"
12494else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012495 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012496
12497 asm_name_prefix=""
12498fi
12499
12500
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012501if test "$ac_cv_c_stdcall_suffix" = "yes"
12502then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012503 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012504
12505else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012506 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012507
12508fi
12509
12510
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012512$as_echo_n "checking how to define a function in assembly code... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012513if ${ac_cv_asm_func_def+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012514 $as_echo_n "(cached) " >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012515else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012517/* end confdefs.h. */
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012518
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012519int
12520main ()
12521{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012522asm("\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 +000012523 ;
12524 return 0;
12525}
12526_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012527if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012528 ac_cv_asm_func_def=".def"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012529else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012531/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012532
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012533int
12534main ()
12535{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012536asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012537 ;
12538 return 0;
12539}
12540_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012541if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012542 ac_cv_asm_func_def=".type @function"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012543else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012545/* end confdefs.h. */
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012546
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012547int
12548main ()
12549{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012550asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012551 ;
12552 return 0;
12553}
12554_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012555if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012556 ac_cv_asm_func_def=".type 2"
12557else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012558 ac_cv_asm_func_def="unknown"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012559fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012560rm -f core conftest.err conftest.$ac_objext \
12561 conftest$ac_exeext conftest.$ac_ext
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012562fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012563rm -f core conftest.err conftest.$ac_objext \
12564 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012565fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012566rm -f core conftest.err conftest.$ac_objext \
12567 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012568fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012570$as_echo "$ac_cv_asm_func_def" >&6; }
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012571
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012572
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012573case "$ac_cv_asm_func_def" in
12574 ".def")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012575 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012576
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012577 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012578 ".type @function")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012579 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012580
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012581 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012582 ".type 2")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012583 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012584
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012585 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012586 *)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012587 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012588
12589 asm_func_header="" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012590esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012591
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012593$as_echo_n "checking whether asm() works outside of functions... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012594if ${ac_cv_c_asm_outside_funcs+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012595 $as_echo_n "(cached) " >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012596else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012598/* end confdefs.h. */
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012599asm(".text\n\t.long 0");
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012600int
12601main ()
12602{
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012603
12604 ;
12605 return 0;
12606}
12607_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012608if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012609 ac_cv_c_asm_outside_funcs="yes"
12610else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012611 ac_cv_c_asm_outside_funcs="no"
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012612fi
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12614fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012616$as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12617
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012619$as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012620if ${ac_cv_c_dot_previous+:} false; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012621 $as_echo_n "(cached) " >&6
12622else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012624/* end confdefs.h. */
12625
12626int
12627main ()
12628{
12629asm(".text\nac_test:\t.long 0\n\t.previous");
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012630 ;
12631 return 0;
12632}
12633_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012634if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012635 ac_cv_c_dot_previous="yes"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012636else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012637 ac_cv_c_dot_previous="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012638fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012639rm -f core conftest.err conftest.$ac_objext \
12640 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012641fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012643$as_echo "$ac_cv_c_dot_previous" >&6; }
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012644
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012646$as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012647if ${ac_cv_c_cfi_support+:} false; then :
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012648 $as_echo_n "(cached) " >&6
12649else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012651/* end confdefs.h. */
12652asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12653int
12654main ()
12655{
12656
12657 ;
12658 return 0;
12659}
12660_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012661if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012662 ac_cv_c_cfi_support="yes"
12663else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012664 ac_cv_c_cfi_support="no"
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012665fi
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12667fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012669$as_echo "$ac_cv_c_cfi_support" >&6; }
12670
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012671asm_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 +020012672asm_func_trailer=""
12673if test "$ac_cv_c_dot_previous" = "yes"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012674then
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012675 asm_func_trailer="\\n\\t.previous"
12676fi
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012677if test "$ac_cv_c_cfi_support" = "yes"
12678then
12679 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12680 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012681
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012682$as_echo "#define __ASM_CFI(str) str" >>confdefs.h
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012683
Alexandre Julliard6c142382010-04-11 12:47:30 +020012684 UNWINDFLAGS=-fasynchronous-unwind-tables
12685
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012686else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012687 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012688
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012689fi
12690
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012691asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12692
12693
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012694if test "$ac_cv_c_asm_outside_funcs" = "yes"
12695then
12696 cat >>confdefs.h <<_ACEOF
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012697#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 +000012698_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012699
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012700else
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012701 cat >>confdefs.h <<_ACEOF
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012702#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 +000012703_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012704
12705fi
12706
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012707$as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012708
12709
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012710$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 +020012711
12712
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012713
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012714LDPATH=""
12715
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012716case $build_os in
12717 cygwin*|mingw32*)
Alexandre Julliardb860c4a2009-09-01 22:36:13 +020012718 TOOLSEXT=".exe"
12719
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020012720 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012721 ;;
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000012722 darwin*|macosx*)
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012723 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012724 *)
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020012725 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012726 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012727esac
12728
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012729case $host_os in
12730 mingw32*)
Alexandre Julliard546839f2003-11-11 00:48:21 +000012731 CRTLIBS="-lmsvcrt"
Steven Edwardsc91ae452004-09-03 18:57:19 +000012732
Alexandre Julliardbd9852c2010-09-19 12:40:12 +020012733 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
Steven Edwardsc91ae452004-09-03 18:57:19 +000012734
12735 ;;
Alexandre Julliard546839f2003-11-11 00:48:21 +000012736esac
12737
Alexandre Julliard3e6eab32009-08-13 19:54:31 +020012738MAIN_BINARY="wine"
12739
Alexandre Julliardf3831cf2010-05-16 17:01:52 +020012740test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
Alexandre Julliard3e6eab32009-08-13 19:54:31 +020012741
Alexandre Julliard0a086202010-12-16 16:54:15 +010012742case $host_os in
12743 linux*)
12744 case $host_cpu in
12745 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12746 ;;
12747 x86_64*) EXTRA_BINARIES="wine64-preloader"
Tijl Coosemans9f5c69c2007-08-24 15:46:36 +020012748 ;;
Alexandre Julliard2cdfd4d2006-02-18 15:03:51 +010012749 esac
Emmanuel Maillard3bc8d2e2004-07-19 20:11:10 +000012750 ;;
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012751esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012752
12753
Alexandre Julliard95251a72009-02-16 12:46:58 +010012754ac_save_CFLAGS="$CFLAGS"
12755CFLAGS="$CFLAGS $BUILTINFLAG"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012756for ac_func in \
Stefan Dösingera7741522011-05-24 21:05:28 +020012757 _finite \
12758 _isnan \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012759 _pclose \
12760 _popen \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000012761 _snprintf \
Alexandre Julliardc45bbad2003-04-01 00:12:02 +000012762 _spawnvp \
Bang Jun-youngff96bd62007-10-15 17:09:12 +090012763 _strdup \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012764 _stricmp \
12765 _strnicmp \
Rob Shearmane9f5bce2008-03-03 21:48:18 +000012766 _strtoi64 \
12767 _strtoui64 \
Steven Edwardsbe514b92003-01-14 19:35:03 +000012768 _vsnprintf \
Alexandre Julliardf9e5b0f2006-01-14 17:22:03 +010012769 asctime_r \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012770 chsize \
Alexandre Julliarde533e972006-08-15 12:11:30 +020012771 dlopen \
Alexandre Julliard969f57c2004-09-23 04:48:24 +000012772 epoll_create \
Hans Leidekkerc3de6ef2004-10-19 23:53:26 +000012773 ffs \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000012774 finite \
Alexandre Julliard7d5e5652009-06-01 12:51:54 +020012775 fnmatch \
Hans Leidekkerbed38422004-10-14 03:08:57 +000012776 fork \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000012777 fpclass \
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000012778 fstatfs \
12779 fstatvfs \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012780 ftruncate \
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000012781 futimes \
Robert Lunnonc0cb4d32005-05-07 14:53:38 +000012782 futimesat \
Charles Davis4e44e152011-01-18 13:09:44 -070012783 getattrlist \
Alexandre Julliarda9f214c2006-11-13 15:42:48 +010012784 getdirentries \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000012785 getopt_long \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012786 getpagesize \
Alexandre Julliard142dab82002-07-01 18:17:30 +000012787 getpwuid \
Alexandre Julliard8d7b8e52003-03-23 20:11:45 +000012788 gettimeofday \
Steven Edwardse7c3ab12004-10-04 20:45:49 +000012789 getuid \
Alexandre Julliardc8278922006-08-04 22:11:00 +020012790 kqueue \
Alexandre Julliard27bb3112000-11-29 17:48:06 +000012791 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012792 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +000012793 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012794 pclose \
Alexandre Julliard6f68b772009-07-01 12:13:34 +020012795 pipe2 \
Alexandre Julliard10892602006-08-15 11:41:59 +020012796 poll \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012797 popen \
Albert Lee01b972d2009-11-20 18:35:26 -050012798 port_create \
Alexandre Julliard9603ee02006-04-06 11:57:37 +020012799 prctl \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012800 pread \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +000012801 pwrite \
Rob Shearman87175c62008-10-03 12:55:21 +010012802 readdir \
Alexandre Julliarde2930742004-01-08 05:07:05 +000012803 readlink \
Jeremy White08c0f692004-10-09 02:26:29 +000012804 sched_yield \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012805 select \
Gerald Pfeifer39f67272008-01-20 21:23:08 +010012806 setproctitle \
Paul Millardf10b7d2006-07-16 15:06:28 +010012807 setrlimit \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012808 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012809 sigaltstack \
Paul Millar10a6c562004-12-07 17:19:54 +000012810 sigprocmask \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000012811 snprintf \
Pavel Roskin7add08a2003-09-24 18:54:40 +000012812 spawnvp \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012813 statfs \
Alexandre Julliard13af4892004-03-05 21:03:46 +000012814 statvfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000012815 strcasecmp \
Bang Jun-youngff96bd62007-10-15 17:09:12 +090012816 strdup \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012817 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000012818 strncasecmp \
Louis Lenders6c04a182006-12-17 17:56:50 +000012819 strtold \
Rob Shearmane9f5bce2008-03-03 21:48:18 +000012820 strtoll \
12821 strtoull \
Alexandre Julliard0fbd5562008-12-22 10:47:16 +010012822 symlink \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012823 tcgetattr \
Tijl Coosemans0c4f1522007-08-23 14:12:37 +020012824 thr_kill2 \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012825 timegm \
12826 usleep \
Steven Edwardsbe514b92003-01-14 19:35:03 +000012827 vsnprintf \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012828 wait4 \
12829 waitpid \
12830
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012831do :
12832 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12833ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020012834if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012835 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010012836#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012837_ACEOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000012838
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012839fi
12840done
12841
Alexandre Julliard95251a72009-02-16 12:46:58 +010012842CFLAGS="$ac_save_CFLAGS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012843
Alexandre Julliarde533e972006-08-15 12:11:30 +020012844if test "$ac_cv_func_dlopen" = no
12845then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012847$as_echo_n "checking for dlopen in -ldl... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012848if ${ac_cv_lib_dl_dlopen+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012849 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012850else
12851 ac_check_lib_save_LIBS=$LIBS
12852LIBS="-ldl $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012854/* end confdefs.h. */
12855
12856/* Override any GCC internal prototype to avoid an error.
12857 Use char because int might match the return type of a GCC
12858 builtin and then its argument prototype would still apply. */
12859#ifdef __cplusplus
12860extern "C"
12861#endif
12862char dlopen ();
12863int
12864main ()
12865{
12866return dlopen ();
12867 ;
12868 return 0;
12869}
12870_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012871if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarde533e972006-08-15 12:11:30 +020012872 ac_cv_lib_dl_dlopen=yes
12873else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012874 ac_cv_lib_dl_dlopen=no
Alexandre Julliarde533e972006-08-15 12:11:30 +020012875fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012876rm -f core conftest.err conftest.$ac_objext \
12877 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012878LIBS=$ac_check_lib_save_LIBS
12879fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012881$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012882if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012883 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
Alexandre Julliarde533e972006-08-15 12:11:30 +020012884 LIBDL="-ldl"
12885
12886fi
12887
12888fi
12889ac_wine_check_funcs_save_LIBS="$LIBS"
12890LIBS="$LIBS $LIBDL"
Alexandre Julliarde533e972006-08-15 12:11:30 +020012891for ac_func in dladdr
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012892do :
12893 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
Alexandre Julliard9797da42011-04-27 17:37:43 +020012894if test "x$ac_cv_func_dladdr" = xyes; then :
Alexandre Julliarde533e972006-08-15 12:11:30 +020012895 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012896#define HAVE_DLADDR 1
Alexandre Julliarde533e972006-08-15 12:11:30 +020012897_ACEOF
12898
12899fi
12900done
12901
12902LIBS="$ac_wine_check_funcs_save_LIBS"
12903
Alexandre Julliard10892602006-08-15 11:41:59 +020012904if test "$ac_cv_func_poll" = no
12905then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012907$as_echo_n "checking for poll in -lpoll... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012908if ${ac_cv_lib_poll_poll+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012909 $as_echo_n "(cached) " >&6
Alexandre Julliard10892602006-08-15 11:41:59 +020012910else
12911 ac_check_lib_save_LIBS=$LIBS
12912LIBS="-lpoll $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard10892602006-08-15 11:41:59 +020012914/* end confdefs.h. */
12915
12916/* Override any GCC internal prototype to avoid an error.
12917 Use char because int might match the return type of a GCC
12918 builtin and then its argument prototype would still apply. */
12919#ifdef __cplusplus
12920extern "C"
12921#endif
12922char poll ();
12923int
12924main ()
12925{
12926return poll ();
12927 ;
12928 return 0;
12929}
12930_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012931if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard10892602006-08-15 11:41:59 +020012932 ac_cv_lib_poll_poll=yes
12933else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012934 ac_cv_lib_poll_poll=no
Alexandre Julliard10892602006-08-15 11:41:59 +020012935fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012936rm -f core conftest.err conftest.$ac_objext \
12937 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard10892602006-08-15 11:41:59 +020012938LIBS=$ac_check_lib_save_LIBS
12939fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012941$as_echo "$ac_cv_lib_poll_poll" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012942if test "x$ac_cv_lib_poll_poll" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012943 $as_echo "#define HAVE_POLL 1" >>confdefs.h
Alexandre Julliard10892602006-08-15 11:41:59 +020012944 LIBPOLL="-lpoll"
12945
12946fi
12947
12948fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012949
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012951$as_echo_n "checking for library containing gethostbyname... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012952if ${ac_cv_search_gethostbyname+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012953 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012954else
Alexandre Julliard28710412007-04-23 16:31:58 +020012955 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012957/* end confdefs.h. */
12958
12959/* Override any GCC internal prototype to avoid an error.
12960 Use char because int might match the return type of a GCC
12961 builtin and then its argument prototype would still apply. */
12962#ifdef __cplusplus
12963extern "C"
12964#endif
12965char gethostbyname ();
12966int
12967main ()
12968{
12969return gethostbyname ();
12970 ;
12971 return 0;
12972}
12973_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020012974for ac_lib in '' nsl; do
12975 if test -z "$ac_lib"; then
12976 ac_res="none required"
12977 else
12978 ac_res=-l$ac_lib
12979 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12980 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012981 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012982 ac_cv_search_gethostbyname=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020012983fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012984rm -f core conftest.err conftest.$ac_objext \
12985 conftest$ac_exeext
Alexandre Julliard9797da42011-04-27 17:37:43 +020012986 if ${ac_cv_search_gethostbyname+:} false; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012987 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020012988fi
Alexandre Julliard28710412007-04-23 16:31:58 +020012989done
Alexandre Julliard9797da42011-04-27 17:37:43 +020012990if ${ac_cv_search_gethostbyname+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012991
Alexandre Julliard28710412007-04-23 16:31:58 +020012992else
12993 ac_cv_search_gethostbyname=no
12994fi
12995rm conftest.$ac_ext
12996LIBS=$ac_func_search_save_LIBS
12997fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012999$as_echo "$ac_cv_search_gethostbyname" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020013000ac_res=$ac_cv_search_gethostbyname
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013001if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013002 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020013003
13004fi
13005
Alexandre Julliarde533e972006-08-15 12:11:30 +020013006
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013008$as_echo_n "checking for library containing connect... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013009if ${ac_cv_search_connect+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013010 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020013011else
Alexandre Julliard28710412007-04-23 16:31:58 +020013012 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020013014/* end confdefs.h. */
13015
13016/* Override any GCC internal prototype to avoid an error.
13017 Use char because int might match the return type of a GCC
13018 builtin and then its argument prototype would still apply. */
13019#ifdef __cplusplus
13020extern "C"
13021#endif
13022char connect ();
13023int
13024main ()
13025{
13026return connect ();
13027 ;
13028 return 0;
13029}
13030_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020013031for ac_lib in '' socket; do
13032 if test -z "$ac_lib"; then
13033 ac_res="none required"
13034 else
13035 ac_res=-l$ac_lib
13036 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13037 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013038 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013039 ac_cv_search_connect=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020013040fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013041rm -f core conftest.err conftest.$ac_objext \
13042 conftest$ac_exeext
Alexandre Julliard9797da42011-04-27 17:37:43 +020013043 if ${ac_cv_search_connect+:} false; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013044 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020013045fi
Alexandre Julliard28710412007-04-23 16:31:58 +020013046done
Alexandre Julliard9797da42011-04-27 17:37:43 +020013047if ${ac_cv_search_connect+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013048
Alexandre Julliard28710412007-04-23 16:31:58 +020013049else
13050 ac_cv_search_connect=no
13051fi
13052rm conftest.$ac_ext
13053LIBS=$ac_func_search_save_LIBS
13054fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013056$as_echo "$ac_cv_search_connect" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020013057ac_res=$ac_cv_search_connect
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013058if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013059 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020013060
13061fi
13062
Alexandre Julliarde533e972006-08-15 12:11:30 +020013063
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013065$as_echo_n "checking for library containing inet_aton... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013066if ${ac_cv_search_inet_aton+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013067 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020013068else
Alexandre Julliard28710412007-04-23 16:31:58 +020013069 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020013071/* end confdefs.h. */
13072
13073/* Override any GCC internal prototype to avoid an error.
13074 Use char because int might match the return type of a GCC
13075 builtin and then its argument prototype would still apply. */
13076#ifdef __cplusplus
13077extern "C"
13078#endif
13079char inet_aton ();
13080int
13081main ()
13082{
13083return inet_aton ();
13084 ;
13085 return 0;
13086}
13087_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020013088for ac_lib in '' resolv; do
13089 if test -z "$ac_lib"; then
13090 ac_res="none required"
13091 else
13092 ac_res=-l$ac_lib
13093 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13094 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013095 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013096 ac_cv_search_inet_aton=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020013097fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013098rm -f core conftest.err conftest.$ac_objext \
13099 conftest$ac_exeext
Alexandre Julliard9797da42011-04-27 17:37:43 +020013100 if ${ac_cv_search_inet_aton+:} false; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013101 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020013102fi
Alexandre Julliard28710412007-04-23 16:31:58 +020013103done
Alexandre Julliard9797da42011-04-27 17:37:43 +020013104if ${ac_cv_search_inet_aton+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013105
Alexandre Julliard28710412007-04-23 16:31:58 +020013106else
13107 ac_cv_search_inet_aton=no
13108fi
13109rm conftest.$ac_ext
13110LIBS=$ac_func_search_save_LIBS
13111fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013113$as_echo "$ac_cv_search_inet_aton" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020013114ac_res=$ac_cv_search_inet_aton
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013115if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013116 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020013117
13118fi
13119
Alexandre Julliarde533e972006-08-15 12:11:30 +020013120
Ben Taylor41c59962007-04-23 13:41:42 +000013121for ac_func in \
13122 getaddrinfo \
13123 getnameinfo \
13124 getnetbyname \
13125 getprotobyname \
13126 getprotobynumber \
13127 getservbyport \
13128 inet_network \
Austin English06566912009-03-28 00:13:09 -050013129 inet_ntop \
13130 inet_pton \
Ben Taylor41c59962007-04-23 13:41:42 +000013131 sendmsg \
Alexandre Julliard98bec052009-03-26 11:07:28 +010013132 socketpair \
Ben Taylor41c59962007-04-23 13:41:42 +000013133
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013134do :
13135 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13136ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020013137if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Ben Taylor41c59962007-04-23 13:41:42 +000013138 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010013139#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Ben Taylor41c59962007-04-23 13:41:42 +000013140_ACEOF
13141
13142fi
13143done
13144
13145
Francois Gougetbcba2702008-07-10 12:36:06 +020013146LDAPLIBS=""
13147
13148if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13149then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013150 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13151"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013152if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013154$as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013155if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013156 $as_echo_n "(cached) " >&6
Francois Gougetbcba2702008-07-10 12:36:06 +020013157else
13158 ac_check_lib_save_LIBS=$LIBS
13159LIBS="-lldap_r $LIBPTHREAD $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020013161/* end confdefs.h. */
13162
13163/* Override any GCC internal prototype to avoid an error.
13164 Use char because int might match the return type of a GCC
13165 builtin and then its argument prototype would still apply. */
13166#ifdef __cplusplus
13167extern "C"
13168#endif
13169char ldap_initialize ();
13170int
13171main ()
13172{
13173return ldap_initialize ();
13174 ;
13175 return 0;
13176}
13177_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013178if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020013179 ac_cv_lib_ldap_r_ldap_initialize=yes
13180else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013181 ac_cv_lib_ldap_r_ldap_initialize=no
Francois Gougetbcba2702008-07-10 12:36:06 +020013182fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013183rm -f core conftest.err conftest.$ac_objext \
13184 conftest$ac_exeext conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020013185LIBS=$ac_check_lib_save_LIBS
13186fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013188$as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013189if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013191$as_echo_n "checking for ber_init in -llber... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013192if ${ac_cv_lib_lber_ber_init+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013193 $as_echo_n "(cached) " >&6
Francois Gougetbcba2702008-07-10 12:36:06 +020013194else
13195 ac_check_lib_save_LIBS=$LIBS
13196LIBS="-llber $LIBPTHREAD $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020013198/* end confdefs.h. */
13199
13200/* Override any GCC internal prototype to avoid an error.
13201 Use char because int might match the return type of a GCC
13202 builtin and then its argument prototype would still apply. */
13203#ifdef __cplusplus
13204extern "C"
13205#endif
13206char ber_init ();
13207int
13208main ()
13209{
13210return ber_init ();
13211 ;
13212 return 0;
13213}
13214_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013215if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020013216 ac_cv_lib_lber_ber_init=yes
13217else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013218 ac_cv_lib_lber_ber_init=no
Francois Gougetbcba2702008-07-10 12:36:06 +020013219fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013220rm -f core conftest.err conftest.$ac_objext \
13221 conftest$ac_exeext conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020013222LIBS=$ac_check_lib_save_LIBS
13223fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013225$as_echo "$ac_cv_lib_lber_ber_init" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013226if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020013227
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013228$as_echo "#define HAVE_LDAP 1" >>confdefs.h
Francois Gougetbcba2702008-07-10 12:36:06 +020013229
13230 LDAPLIBS="-lldap_r -llber"
13231fi
13232
13233fi
13234
13235fi
13236
13237 ac_wine_check_funcs_save_LIBS="$LIBS"
13238LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
Francois Gougetbcba2702008-07-10 12:36:06 +020013239for ac_func in \
13240 ldap_count_references \
13241 ldap_first_reference \
13242 ldap_next_reference \
13243 ldap_parse_reference \
13244 ldap_parse_sort_control \
13245 ldap_parse_sortresponse_control \
13246 ldap_parse_vlv_control \
13247 ldap_parse_vlvresponse_control
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013248do :
13249 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13250ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020013251if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020013252 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010013253#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Francois Gougetbcba2702008-07-10 12:36:06 +020013254_ACEOF
13255
13256fi
13257done
13258
13259LIBS="$ac_wine_check_funcs_save_LIBS"
13260fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013261if test "x$LDAPLIBS" = "x"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020013262 case "x$with_ldap" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010013263 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 +020013264 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020013265 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020013266This is an error since --with-ldap was requested." "$LINENO" 5 ;;
Francois Gougetbcba2702008-07-10 12:36:06 +020013267esac
13268fi
13269
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
Alexandre Julliard921e6622008-12-22 10:39:11 +010013271$as_echo_n "checking whether mkdir takes only one argument... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013272if ${wine_cv_one_arg_mkdir+:} false; then :
Alexandre Julliard921e6622008-12-22 10:39:11 +010013273 $as_echo_n "(cached) " >&6
13274else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard921e6622008-12-22 10:39:11 +010013276/* end confdefs.h. */
13277#include <sys/stat.h>
13278int
13279main ()
13280{
13281mkdir("foo");
13282 ;
13283 return 0;
13284}
13285_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013286if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard921e6622008-12-22 10:39:11 +010013287 wine_cv_one_arg_mkdir=yes
13288else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013289 wine_cv_one_arg_mkdir=no
Alexandre Julliard921e6622008-12-22 10:39:11 +010013290fi
Alexandre Julliard921e6622008-12-22 10:39:11 +010013291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13292fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
Alexandre Julliard921e6622008-12-22 10:39:11 +010013294$as_echo "$wine_cv_one_arg_mkdir" >&6; }
13295if test "$wine_cv_one_arg_mkdir" = "yes"
13296then
13297
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013298$as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
Alexandre Julliard921e6622008-12-22 10:39:11 +010013299
13300fi
13301
Andrew Nguyen2f22a502011-02-22 07:10:22 -060013302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13303$as_echo_n "checking for sched_setaffinity... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013304if ${wine_cv_have_sched_setaffinity+:} false; then :
Andrew Nguyen2f22a502011-02-22 07:10:22 -060013305 $as_echo_n "(cached) " >&6
13306else
13307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308/* end confdefs.h. */
13309#define _GNU_SOURCE
13310#include <sched.h>
13311int
13312main ()
13313{
13314sched_setaffinity(0, 0, 0);
13315 ;
13316 return 0;
13317}
13318_ACEOF
13319if ac_fn_c_try_link "$LINENO"; then :
13320 wine_cv_have_sched_setaffinity=yes
13321else
13322 wine_cv_have_sched_setaffinity=no
13323fi
13324rm -f core conftest.err conftest.$ac_objext \
13325 conftest$ac_exeext conftest.$ac_ext
13326fi
13327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13328$as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13329if test "$wine_cv_have_sched_setaffinity" = "yes"
13330then
13331
13332$as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13333
13334fi
13335
Ben Taylor41c59962007-04-23 13:41:42 +000013336
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013338$as_echo_n "checking for inline... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013339if ${ac_cv_c_inline+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013340 $as_echo_n "(cached) " >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013341else
13342 ac_cv_c_inline=no
13343for ac_kw in inline __inline__ __inline; do
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013345/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013346#ifndef __cplusplus
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013347typedef int foo_t;
13348static $ac_kw foo_t static_foo () {return 0; }
13349$ac_kw foo_t foo () {return 0; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013350#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013351
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013352_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013353if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013354 ac_cv_c_inline=$ac_kw
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013355fi
Jeremy White0ebeb532006-06-20 13:18:41 +020013356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013357 test "$ac_cv_c_inline" != no && break
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013358done
13359
13360fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013362$as_echo "$ac_cv_c_inline" >&6; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000013363
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013364case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013365 inline | yes) ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000013366 *)
13367 case $ac_cv_c_inline in
13368 no) ac_val=;;
13369 *) ac_val=$ac_cv_c_inline;;
13370 esac
13371 cat >>confdefs.h <<_ACEOF
13372#ifndef __cplusplus
13373#define inline $ac_val
13374#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013375_ACEOF
Alexandre Julliard875927f2004-01-02 01:55:29 +000013376 ;;
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013377esac
13378
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013379ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013380if test "x$ac_cv_type_mode_t" = xyes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013381
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013382cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013383#define HAVE_MODE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013384_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013385
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013386
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013387fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013388ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013389if test "x$ac_cv_type_off_t" = xyes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013390
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013391cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013392#define HAVE_OFF_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013393_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013394
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013395
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013396fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013397ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013398if test "x$ac_cv_type_pid_t" = xyes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013399
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013400cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013401#define HAVE_PID_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013402_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013403
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013404
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013405fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013406ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013407if test "x$ac_cv_type_size_t" = xyes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013408
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013409cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013410#define HAVE_SIZE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013411_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013412
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013413
13414fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013415ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013416if test "x$ac_cv_type_ssize_t" = xyes; then :
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013417
13418cat >>confdefs.h <<_ACEOF
13419#define HAVE_SSIZE_T 1
13420_ACEOF
13421
13422
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013423fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013424ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013425if test "x$ac_cv_type_long_long" = xyes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013426
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013427cat >>confdefs.h <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013428#define HAVE_LONG_LONG 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013429_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013430
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013431
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013432fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013433ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013434if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013435
13436cat >>confdefs.h <<_ACEOF
13437#define HAVE_FSBLKCNT_T 1
13438_ACEOF
13439
13440
13441fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013442ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013443if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013444
13445cat >>confdefs.h <<_ACEOF
13446#define HAVE_FSFILCNT_T 1
13447_ACEOF
13448
13449
13450fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013451
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013452ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
Alexandre Julliardabf50482008-10-31 12:56:53 +010013453#include <signal.h>
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013454"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013455if test "x$ac_cv_type_sigset_t" = xyes; then :
Paul Millar10a6c562004-12-07 17:19:54 +000013456
13457cat >>confdefs.h <<_ACEOF
13458#define HAVE_SIGSET_T 1
13459_ACEOF
13460
13461
13462fi
13463
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013464ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13465"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013466if test "x$ac_cv_type_request_sense" = xyes; then :
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000013467
13468cat >>confdefs.h <<_ACEOF
13469#define HAVE_REQUEST_SENSE 1
13470_ACEOF
13471
13472
13473fi
13474
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013475
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013476ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
Austin English68f2db22009-01-29 08:28:37 -060013477#ifdef HAVE_SYS_SOCKET_H
13478#include <sys/socket.h>
13479#endif
13480#ifdef HAVE_SYS_SOCKETVAR_H
13481#include <sys/socketvar.h>
13482#endif
13483#ifdef HAVE_NET_ROUTE_H
13484#include <net/route.h>
13485#endif
13486#ifdef HAVE_NETINET_IN_H
13487#include <netinet/in.h>
13488#endif
13489#ifdef HAVE_NETINET_IN_SYSTM_H
13490#include <netinet/in_systm.h>
13491#endif
13492#ifdef HAVE_NETINET_IP_H
13493#include <netinet/ip.h>
13494#endif
13495#ifdef HAVE_NETINET_IN_PCB_H
13496#include <netinet/in_pcb.h>
13497#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013498"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013499if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
Austin English68f2db22009-01-29 08:28:37 -060013500
13501cat >>confdefs.h <<_ACEOF
13502#define HAVE_STRUCT_XINPGEN 1
13503_ACEOF
13504
13505
13506fi
13507
13508
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013509ac_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 +000013510#include <linux/input.h>
13511#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013512"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013513if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
Daniel Remenake491e8f2005-07-29 14:18:58 +000013514
13515cat >>confdefs.h <<_ACEOF
13516#define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13517_ACEOF
13518
13519
13520fi
13521
13522
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013524$as_echo_n "checking for sigaddset... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013525if ${wine_cv_have_sigaddset+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013526 $as_echo_n "(cached) " >&6
Paul Millar10a6c562004-12-07 17:19:54 +000013527else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Paul Millar10a6c562004-12-07 17:19:54 +000013529/* end confdefs.h. */
13530#include <signal.h>
13531int
13532main ()
13533{
13534sigset_t set; sigaddset(&set,SIGTERM);
13535 ;
13536 return 0;
13537}
13538_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013539if ac_fn_c_try_link "$LINENO"; then :
Paul Millar10a6c562004-12-07 17:19:54 +000013540 wine_cv_have_sigaddset=yes
13541else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013542 wine_cv_have_sigaddset=no
Paul Millar10a6c562004-12-07 17:19:54 +000013543fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013544rm -f core conftest.err conftest.$ac_objext \
13545 conftest$ac_exeext conftest.$ac_ext
Paul Millar10a6c562004-12-07 17:19:54 +000013546fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013548$as_echo "$wine_cv_have_sigaddset" >&6; }
Paul Millar10a6c562004-12-07 17:19:54 +000013549if test "$wine_cv_have_sigaddset" = "yes"
13550then
13551
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013552$as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
Paul Millar10a6c562004-12-07 17:19:54 +000013553
13554fi
13555
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013556
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013557{ $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 +010013558$as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013559if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013560 $as_echo_n "(cached) " >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000013561else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013563/* end confdefs.h. */
Rein Klazesff7a61f2000-09-24 19:41:57 +000013564#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013565int
13566main ()
13567{
Rein Klazesff7a61f2000-09-24 19:41:57 +000013568
Ken Thomases20d9bad2007-10-19 16:18:51 -050013569 char *name=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013570 struct hostent he;
13571 struct hostent *result;
Ken Thomases20d9bad2007-10-19 16:18:51 -050013572 char *buf=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013573 int bufsize=0;
Austin English8521ebe2011-06-13 21:26:40 -070013574 int errnr;
Ken Thomases20d9bad2007-10-19 16:18:51 -050013575 char *addr=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013576 int addrlen=0;
13577 int addrtype=0;
Austin English8521ebe2011-06-13 21:26:40 -070013578 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13579 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013580
13581 ;
13582 return 0;
13583}
13584_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013585if ac_fn_c_try_link "$LINENO"; then :
Rein Klazesff7a61f2000-09-24 19:41:57 +000013586 wine_cv_linux_gethostbyname_r_6=yes
13587else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013588 wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +000013589
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013590fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013591rm -f core conftest.err conftest.$ac_objext \
13592 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013593
13594fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013596$as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
Rein Klazesff7a61f2000-09-24 19:41:57 +000013597 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13598 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013599
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013600$as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
Rein Klazesff7a61f2000-09-24 19:41:57 +000013601
13602 fi
13603
Marcus Meissner028e9a11999-08-04 15:07:56 +000013604if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013605then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013606 { $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 +010013607$as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013608if ${wine_cv_linux_joystick_22_api+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013609 $as_echo_n "(cached) " >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013610else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013612/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013613
Marcus Meissner028e9a11999-08-04 15:07:56 +000013614 #include <sys/ioctl.h>
Marcus Meissner7c434992007-04-12 12:12:05 +020013615 #include <sys/types.h>
Marcus Meissner028e9a11999-08-04 15:07:56 +000013616 #include <linux/joystick.h>
13617
13618 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +000013619 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13620 #error "no 2.2 header"
13621 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013622
13623int
13624main ()
13625{
Marcus Meissner028e9a11999-08-04 15:07:56 +000013626/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013627 ;
13628 return 0;
13629}
13630_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013631if ac_fn_c_try_compile "$LINENO"; then :
Marcus Meissner028e9a11999-08-04 15:07:56 +000013632 wine_cv_linux_joystick_22_api=yes
13633else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013634 wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +000013635fi
Jeremy White0ebeb532006-06-20 13:18:41 +020013636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +000013637
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013638fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013640$as_echo "$wine_cv_linux_joystick_22_api" >&6; }
Rein Klazes87d224a2000-04-24 17:33:49 +000013641 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +000013642 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013643
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013644$as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
Marcus Meissner028e9a11999-08-04 15:07:56 +000013645
13646 fi
13647fi
13648
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013649
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013650ac_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 +000013651#ifdef HAVE_SYS_PARAM_H
13652# include <sys/param.h>
13653#endif
Robert Millan55b74482006-02-06 21:53:27 +010013654#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013655# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013656#endif
13657#ifdef HAVE_SYS_VFS_H
13658# include <sys/vfs.h>
13659#endif
13660#ifdef HAVE_SYS_STATFS_H
13661# include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013662#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013663"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013664if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013665
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013666cat >>confdefs.h <<_ACEOF
13667#define HAVE_STRUCT_STATFS_F_BFREE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013668_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013669
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013670
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013671fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013672ac_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 +000013673#ifdef HAVE_SYS_PARAM_H
13674# include <sys/param.h>
13675#endif
Robert Millan55b74482006-02-06 21:53:27 +010013676#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013677# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013678#endif
13679#ifdef HAVE_SYS_VFS_H
13680# include <sys/vfs.h>
13681#endif
13682#ifdef HAVE_SYS_STATFS_H
13683# include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013684#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013685"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013686if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
Patrik Stridvall09da9662001-07-08 22:30:50 +000013687
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013688cat >>confdefs.h <<_ACEOF
13689#define HAVE_STRUCT_STATFS_F_BAVAIL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013690_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000013691
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013692
Patrik Stridvall09da9662001-07-08 22:30:50 +000013693fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013694ac_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 +000013695#ifdef HAVE_SYS_PARAM_H
13696# include <sys/param.h>
13697#endif
Robert Millan55b74482006-02-06 21:53:27 +010013698#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013699# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013700#endif
13701#ifdef HAVE_SYS_VFS_H
13702# include <sys/vfs.h>
13703#endif
13704#ifdef HAVE_SYS_STATFS_H
13705# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013706#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013707"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013708if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013709
13710cat >>confdefs.h <<_ACEOF
13711#define HAVE_STRUCT_STATFS_F_FRSIZE 1
13712_ACEOF
13713
13714
13715fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013716ac_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 +000013717#ifdef HAVE_SYS_PARAM_H
13718# include <sys/param.h>
13719#endif
Robert Millan55b74482006-02-06 21:53:27 +010013720#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013721# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013722#endif
13723#ifdef HAVE_SYS_VFS_H
13724# include <sys/vfs.h>
13725#endif
13726#ifdef HAVE_SYS_STATFS_H
13727# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013728#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013729"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013730if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013731
13732cat >>confdefs.h <<_ACEOF
13733#define HAVE_STRUCT_STATFS_F_FFREE 1
13734_ACEOF
13735
13736
13737fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013738ac_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 +000013739#ifdef HAVE_SYS_PARAM_H
13740# include <sys/param.h>
13741#endif
Robert Millan55b74482006-02-06 21:53:27 +010013742#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013743# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013744#endif
13745#ifdef HAVE_SYS_VFS_H
13746# include <sys/vfs.h>
13747#endif
13748#ifdef HAVE_SYS_STATFS_H
13749# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013750#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013751"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013752if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013753
13754cat >>confdefs.h <<_ACEOF
13755#define HAVE_STRUCT_STATFS_F_FAVAIL 1
13756_ACEOF
13757
13758
13759fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013760ac_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 +000013761#ifdef HAVE_SYS_PARAM_H
13762# include <sys/param.h>
13763#endif
Robert Millan55b74482006-02-06 21:53:27 +010013764#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardb859a682004-03-07 03:16:43 +000013765# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013766#endif
13767#ifdef HAVE_SYS_VFS_H
13768# include <sys/vfs.h>
13769#endif
13770#ifdef HAVE_SYS_STATFS_H
13771# include <sys/statfs.h>
Alexandre Julliardb859a682004-03-07 03:16:43 +000013772#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013773"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013774if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
Alexandre Julliardb859a682004-03-07 03:16:43 +000013775
13776cat >>confdefs.h <<_ACEOF
13777#define HAVE_STRUCT_STATFS_F_NAMELEN 1
13778_ACEOF
13779
13780
13781fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000013782
13783
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013784ac_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 +000013785#include <sys/statvfs.h>
13786#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013787"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013788if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013789
13790cat >>confdefs.h <<_ACEOF
13791#define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13792_ACEOF
13793
13794
13795fi
Patrik Stridvall09da9662001-07-08 22:30:50 +000013796
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013797
André Hentschel54a9c0f2012-06-02 19:05:30 +020013798ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#ifdef HAVE_DIRENT_H
13799#include <dirent.h>
13800#endif
13801"
13802if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
13803
13804cat >>confdefs.h <<_ACEOF
13805#define HAVE_STRUCT_DIRENT_D_RECLEN 1
13806_ACEOF
13807
13808
13809fi
13810
13811
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013812ac_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 +000013813#ifdef HAVE_SYS_SOCKET_H
13814# include <sys/socket.h>
13815#endif
13816#ifdef HAVE_SYS_UN_H
13817# include <sys/un.h>
13818#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013819"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013820if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
Juergen Lock2d33ab92000-02-13 16:03:29 +000013821
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013822cat >>confdefs.h <<_ACEOF
13823#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013824_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000013825
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013826
13827fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013828ac_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 +000013829#ifdef HAVE_SYS_SOCKET_H
13830# include <sys/socket.h>
13831#endif
13832#ifdef HAVE_SYS_UN_H
13833# include <sys/un.h>
13834#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013835"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013836if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013837
13838cat >>confdefs.h <<_ACEOF
13839#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13840_ACEOF
13841
13842
13843fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013844ac_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 +000013845#ifdef HAVE_SYS_SOCKET_H
13846# include <sys/socket.h>
13847#endif
13848#ifdef HAVE_SYS_UN_H
13849# include <sys/un.h>
13850#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013851"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013852if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013853
13854cat >>confdefs.h <<_ACEOF
13855#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13856_ACEOF
13857
13858
Juergen Lock2d33ab92000-02-13 16:03:29 +000013859fi
13860
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013861
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013862ac_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 +000013863#ifdef HAVE_SCSI_SG_H
13864#include <scsi/sg.h>
13865#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013866"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013867if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000013868
13869cat >>confdefs.h <<_ACEOF
13870#define HAVE_SCSIREQ_T_CMD 1
13871_ACEOF
13872
13873
13874fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013875ac_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 +000013876#ifdef HAVE_SCSI_SG_H
13877#include <scsi/sg.h>
13878#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013879"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013880if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000013881
13882cat >>confdefs.h <<_ACEOF
13883#define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13884_ACEOF
13885
13886
13887fi
13888
13889
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013890ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13891"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013892if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013893
13894cat >>confdefs.h <<_ACEOF
13895#define HAVE_SIGINFO_T_SI_FD 1
13896_ACEOF
13897
13898
13899fi
13900
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013901
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013902ac_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 +010013903#ifdef HAVE_SYS_MTIO_H
13904#include <sys/mtio.h>
13905#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013906"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013907if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010013908
13909cat >>confdefs.h <<_ACEOF
13910#define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13911_ACEOF
13912
13913
13914fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013915ac_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 +010013916#ifdef HAVE_SYS_MTIO_H
13917#include <sys/mtio.h>
13918#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013919"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013920if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010013921
13922cat >>confdefs.h <<_ACEOF
13923#define HAVE_STRUCT_MTGET_MT_GSTAT 1
13924_ACEOF
13925
13926
13927fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013928ac_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 +010013929#ifdef HAVE_SYS_MTIO_H
13930#include <sys/mtio.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_mtget_mt_blkno" = xyes; then :
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010013934
13935cat >>confdefs.h <<_ACEOF
13936#define HAVE_STRUCT_MTGET_MT_BLKNO 1
13937_ACEOF
13938
13939
13940fi
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010013941
13942
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013943ac_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 +000013944#include <getopt.h>
13945#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013946"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013947if test "x$ac_cv_member_struct_option_name" = xyes; then :
Alexandre Julliarddb89a542003-04-20 02:56:14 +000013948
13949cat >>confdefs.h <<_ACEOF
13950#define HAVE_STRUCT_OPTION_NAME 1
13951_ACEOF
13952
13953
13954fi
13955
13956
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013957ac_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 +020013958if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
Pavel Roskind6507192003-10-03 03:28:40 +000013959
13960cat >>confdefs.h <<_ACEOF
13961#define HAVE_STRUCT_STAT_ST_BLOCKS 1
13962_ACEOF
13963
13964
13965fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013966ac_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 +020013967if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020013968
13969cat >>confdefs.h <<_ACEOF
13970#define HAVE_STRUCT_STAT_ST_MTIM 1
13971_ACEOF
13972
13973
13974fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013975ac_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 +020013976if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020013977
13978cat >>confdefs.h <<_ACEOF
13979#define HAVE_STRUCT_STAT_ST_CTIM 1
13980_ACEOF
13981
13982
13983fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013984ac_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 +020013985if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020013986
13987cat >>confdefs.h <<_ACEOF
13988#define HAVE_STRUCT_STAT_ST_ATIM 1
13989_ACEOF
13990
13991
13992fi
Pavel Roskind6507192003-10-03 03:28:40 +000013993
13994
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013995ac_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 +030013996#include <sys/types.h>
13997#endif
13998#ifdef HAVE_NETINET_IN_H
13999#include <netinet/in.h>
14000#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014001"
Alexandre Julliard9797da42011-04-27 17:37:43 +020014002if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030014003
14004cat >>confdefs.h <<_ACEOF
14005#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14006_ACEOF
14007
14008
14009fi
14010
14011
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014012ac_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 +020014013#include <sys/types.h>
14014#endif
14015#ifdef HAVE_NETINET_IN_H
14016# include <netinet/in.h>
14017#endif
14018#ifdef HAVE_ARPA_NAMESER_H
14019# include <arpa/nameser.h>
14020#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014021"
Alexandre Julliard9797da42011-04-27 17:37:43 +020014022if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
Alexandre Julliard788e30f2006-05-31 14:43:21 +020014023
14024cat >>confdefs.h <<_ACEOF
14025#define HAVE_NS_MSG__MSG_PTR 1
14026_ACEOF
14027
14028
14029fi
14030
14031
André Hentschelbc99d862012-06-07 17:19:59 +020014032ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_inhist" "ac_cv_member_struct_icmpstat_icps_inhist" "#ifdef HAVE_NETINET_ICMP_VAR
14033#include <netinet/icmp_var.h>
14034#endif
14035"
14036if test "x$ac_cv_member_struct_icmpstat_icps_inhist" = xyes; then :
14037
14038cat >>confdefs.h <<_ACEOF
14039#define HAVE_STRUCT_ICMPSTAT_ICPS_INHIST 1
14040_ACEOF
14041
14042
14043fi
14044
14045
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014046ac_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 -060014047#include <sys/types.h>
14048#endif
14049#ifdef HAVE_ALIAS_H
14050#include <alias.h>
14051#endif
14052#ifdef HAVE_SYS_SOCKET_H
14053#include <sys/socket.h>
14054#endif
14055#ifdef HAVE_SYS_SOCKETVAR_H
14056#include <sys/socketvar.h>
14057#endif
14058#ifdef HAVE_SYS_TIMEOUT_H
14059#include <sys/timeout.h>
14060#endif
14061#ifdef HAVE_NETINET_IN_H
14062#include <netinet/in.h>
14063#endif
14064#ifdef HAVE_NETINET_IN_SYSTM_H
14065#include <netinet/in_systm.h>
14066#endif
14067#ifdef HAVE_NETINET_IP_H
14068#include <netinet/ip.h>
14069#endif
14070#ifdef HAVE_NETINET_IP_VAR_H
14071#include <netinet/ip_var.h>
14072#endif
14073#ifdef HAVE_NETINET_IP_ICMP_H
14074#include <netinet/ip_icmp.h>
14075#endif
14076#ifdef HAVE_NETINET_ICMP_VAR
14077#include <netinet/icmp_var.h>
14078#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014079"
Alexandre Julliard9797da42011-04-27 17:37:43 +020014080if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
Austin Englishac0252d2009-01-30 10:18:10 -060014081
14082cat >>confdefs.h <<_ACEOF
14083#define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14084_ACEOF
14085
14086
14087fi
14088
14089
André Hentschelcecf1052012-06-02 18:58:39 +020014090ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_total" "ac_cv_member_struct_ipstat_ips_total" "#ifdef HAVE_NETINET_IP_VAR_H
14091#include <netinet/ip_var.h>
14092#endif
14093"
14094if test "x$ac_cv_member_struct_ipstat_ips_total" = xyes; then :
14095
14096cat >>confdefs.h <<_ACEOF
14097#define HAVE_STRUCT_IPSTAT_IPS_TOTAL 1
14098_ACEOF
14099
14100
14101fi
14102
14103
14104ac_fn_c_check_member "$LINENO" "struct ip_stats" "ips_total" "ac_cv_member_struct_ip_stats_ips_total" "#ifdef HAVE_NETINET_IP_VAR_H
14105#include <netinet/ip_var.h>
14106#endif
14107"
14108if test "x$ac_cv_member_struct_ip_stats_ips_total" = xyes; then :
14109
14110cat >>confdefs.h <<_ACEOF
14111#define HAVE_STRUCT_IP_STATS_IPS_TOTAL 1
14112_ACEOF
14113
14114
14115fi
14116
14117
André Hentscheleaab7a82012-06-03 14:32:20 +020014118ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcps_connattempt" "ac_cv_member_struct_tcpstat_tcps_connattempt" "#ifdef HAVE_NETINET_TCP_VAR_H
14119#include <netinet/tcp_var.h>
14120#endif
14121"
14122if test "x$ac_cv_member_struct_tcpstat_tcps_connattempt" = xyes; then :
14123
14124cat >>confdefs.h <<_ACEOF
14125#define HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT 1
14126_ACEOF
14127
14128
14129fi
14130
14131
14132ac_fn_c_check_member "$LINENO" "struct tcp_stats" "tcps_connattempt" "ac_cv_member_struct_tcp_stats_tcps_connattempt" "#ifdef HAVE_NETINET_TCP_VAR_H
14133#include <netinet/tcp_var.h>
14134#endif
14135"
14136if test "x$ac_cv_member_struct_tcp_stats_tcps_connattempt" = xyes; then :
14137
14138cat >>confdefs.h <<_ACEOF
14139#define HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT 1
14140_ACEOF
14141
14142
14143fi
14144
14145
André Hentschel20dbe912012-06-07 17:19:49 +020014146ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" "#ifdef HAVE_NETINET_UDP_VAR_H
14147#include <netinet/udp_var.h>
14148#endif
14149"
14150if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes; then :
14151
14152cat >>confdefs.h <<_ACEOF
14153#define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1
14154_ACEOF
14155
14156
14157fi
14158
14159
Juan Lang984c3b22010-03-12 10:38:46 -080014160ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14161#include <sys/types.h>
14162#endif
14163#ifdef HAVE_NET_IF_H
14164# include <net/if.h>
14165#endif
14166"
Alexandre Julliard9797da42011-04-27 17:37:43 +020014167if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
Juan Lang984c3b22010-03-12 10:38:46 -080014168
14169cat >>confdefs.h <<_ACEOF
14170#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14171_ACEOF
14172
14173
14174fi
14175
14176
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014178$as_echo_n "checking for timezone variable... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014179if ${ac_cv_have_timezone+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014180 $as_echo_n "(cached) " >&6
Phil Krylov6618b032005-05-24 11:52:46 +000014181else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000014183/* end confdefs.h. */
14184#include <time.h>
14185int
14186main ()
14187{
Alexandre Julliardff2bd662006-08-25 13:23:29 +020014188timezone = 1
Phil Krylov6618b032005-05-24 11:52:46 +000014189 ;
14190 return 0;
14191}
14192_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014193if ac_fn_c_try_link "$LINENO"; then :
Phil Krylov6618b032005-05-24 11:52:46 +000014194 ac_cv_have_timezone="yes"
14195else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014196 ac_cv_have_timezone="no"
Phil Krylov6618b032005-05-24 11:52:46 +000014197fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014198rm -f core conftest.err conftest.$ac_objext \
14199 conftest$ac_exeext conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000014200fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014202$as_echo "$ac_cv_have_timezone" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000014203if test "$ac_cv_have_timezone" = "yes"
14204then
14205
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014206$as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
Phil Krylov6618b032005-05-24 11:52:46 +000014207
14208fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014210$as_echo_n "checking for daylight variable... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014211if ${ac_cv_have_daylight+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014212 $as_echo_n "(cached) " >&6
Phil Krylov6618b032005-05-24 11:52:46 +000014213else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000014215/* end confdefs.h. */
14216#include <time.h>
14217int
14218main ()
14219{
Alexandre Julliardff2bd662006-08-25 13:23:29 +020014220daylight = 1
Phil Krylov6618b032005-05-24 11:52:46 +000014221 ;
14222 return 0;
14223}
14224_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014225if ac_fn_c_try_link "$LINENO"; then :
Phil Krylov6618b032005-05-24 11:52:46 +000014226 ac_cv_have_daylight="yes"
14227else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014228 ac_cv_have_daylight="no"
Phil Krylov6618b032005-05-24 11:52:46 +000014229fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014230rm -f core conftest.err conftest.$ac_objext \
14231 conftest$ac_exeext conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000014232fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014234$as_echo "$ac_cv_have_daylight" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000014235if test "$ac_cv_have_daylight" = "yes"
14236then
14237
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014238$as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
Phil Krylov6618b032005-05-24 11:52:46 +000014239
14240fi
14241
Natanael Copa3b11f792011-07-06 08:58:01 +000014242ac_save_LIBS="$LIBS"
14243LIBS="$LIBS -lm"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014245$as_echo_n "checking for isinf... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014246if ${ac_cv_have_isinf+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014247 $as_echo_n "(cached) " >&6
Petr Sumbera4992b652008-04-29 17:08:53 +020014248else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Petr Sumbera4992b652008-04-29 17:08:53 +020014250/* end confdefs.h. */
14251#include <math.h>
14252int
14253main ()
14254{
Austin English8521ebe2011-06-13 21:26:40 -070014255float f = 0.0; return isinf(f)
Petr Sumbera4992b652008-04-29 17:08:53 +020014256 ;
14257 return 0;
14258}
14259_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014260if ac_fn_c_try_link "$LINENO"; then :
Petr Sumbera4992b652008-04-29 17:08:53 +020014261 ac_cv_have_isinf="yes"
14262else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014263 ac_cv_have_isinf="no"
Petr Sumbera4992b652008-04-29 17:08:53 +020014264fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014265rm -f core conftest.err conftest.$ac_objext \
14266 conftest$ac_exeext conftest.$ac_ext
Petr Sumbera4992b652008-04-29 17:08:53 +020014267fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014269$as_echo "$ac_cv_have_isinf" >&6; }
Petr Sumbera4992b652008-04-29 17:08:53 +020014270if test "$ac_cv_have_isinf" = "yes"
14271then
14272
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014273$as_echo "#define HAVE_ISINF 1" >>confdefs.h
Petr Sumbera4992b652008-04-29 17:08:53 +020014274
14275fi
14276
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014278$as_echo_n "checking for isnan... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014279if ${ac_cv_have_isnan+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014280 $as_echo_n "(cached) " >&6
Jacek Caban1715dcb2008-10-14 16:06:49 -050014281else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jacek Caban1715dcb2008-10-14 16:06:49 -050014283/* end confdefs.h. */
14284#include <math.h>
14285int
14286main ()
14287{
Austin English8521ebe2011-06-13 21:26:40 -070014288float f = 0.0; return isnan(f)
Jacek Caban1715dcb2008-10-14 16:06:49 -050014289 ;
14290 return 0;
14291}
14292_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014293if ac_fn_c_try_link "$LINENO"; then :
Jacek Caban1715dcb2008-10-14 16:06:49 -050014294 ac_cv_have_isnan="yes"
14295else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014296 ac_cv_have_isnan="no"
Jacek Caban1715dcb2008-10-14 16:06:49 -050014297fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014298rm -f core conftest.err conftest.$ac_objext \
14299 conftest$ac_exeext conftest.$ac_ext
Jacek Caban1715dcb2008-10-14 16:06:49 -050014300fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014302$as_echo "$ac_cv_have_isnan" >&6; }
Jacek Caban1715dcb2008-10-14 16:06:49 -050014303if test "$ac_cv_have_isnan" = "yes"
14304then
14305
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014306$as_echo "#define HAVE_ISNAN 1" >>confdefs.h
Jacek Caban1715dcb2008-10-14 16:06:49 -050014307
14308fi
Natanael Copa3b11f792011-07-06 08:58:01 +000014309LIBS="$ac_save_LIBS"
Jacek Caban1715dcb2008-10-14 16:06:49 -050014310
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014311
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014312case $host_cpu in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014313 *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 +010014314$as_echo_n "checking whether we need to define __i386__... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014315if ${ac_cv_cpp_def___i386__+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014316 $as_echo_n "(cached) " >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000014317else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014319/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014320#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014321yes
14322#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014323_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014324if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014325 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014326 ac_cv_cpp_def___i386__=yes
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014327else
Alexandre Julliard05783b52002-12-11 00:21:55 +000014328 ac_cv_cpp_def___i386__=no
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014329fi
14330rm -f conftest*
14331
14332fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014334$as_echo "$ac_cv_cpp_def___i386__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014335if test $ac_cv_cpp_def___i386__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014336 CFLAGS="$CFLAGS -D__i386__"
14337 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014338fi ;;
14339 *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 +010014340$as_echo_n "checking whether we need to define __x86_64__... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014341if ${ac_cv_cpp_def___x86_64__+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014342 $as_echo_n "(cached) " >&6
Alexandre Julliarde3be5642005-09-09 09:30:02 +000014343else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde3be5642005-09-09 09:30:02 +000014345/* end confdefs.h. */
14346#ifndef __x86_64__
14347yes
14348#endif
14349_ACEOF
14350if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014351 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliarde3be5642005-09-09 09:30:02 +000014352 ac_cv_cpp_def___x86_64__=yes
14353else
14354 ac_cv_cpp_def___x86_64__=no
14355fi
14356rm -f conftest*
14357
14358fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014360$as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014361if test $ac_cv_cpp_def___x86_64__ = yes; then :
Alexandre Julliarde3be5642005-09-09 09:30:02 +000014362 CFLAGS="$CFLAGS -D__x86_64__"
14363 LINTFLAGS="$LINTFLAGS -D__x86_64__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014364fi ;;
André Hentschelfca621f2011-11-30 01:07:33 +010014365 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
14366$as_echo_n "checking whether we need to define __sparc64__... " >&6; }
14367if ${ac_cv_cpp_def___sparc64__+:} false; then :
14368 $as_echo_n "(cached) " >&6
14369else
14370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14371/* end confdefs.h. */
14372#ifndef __sparc64__
14373yes
14374#endif
14375_ACEOF
14376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14377 $EGREP "yes" >/dev/null 2>&1; then :
14378 ac_cv_cpp_def___sparc64__=yes
14379else
14380 ac_cv_cpp_def___sparc64__=no
14381fi
14382rm -f conftest*
14383
14384fi
14385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
14386$as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
14387if test $ac_cv_cpp_def___sparc64__ = yes; then :
14388 CFLAGS="$CFLAGS -D__sparc64__"
14389 LINTFLAGS="$LINTFLAGS -D__sparc64__"
14390fi ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014391 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014392$as_echo_n "checking whether we need to define __sparc__... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014393if ${ac_cv_cpp_def___sparc__+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014394 $as_echo_n "(cached) " >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014395else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014397/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014398#ifndef __sparc__
14399yes
14400#endif
14401_ACEOF
14402if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014403 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014404 ac_cv_cpp_def___sparc__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014405else
Alexandre Julliard05783b52002-12-11 00:21:55 +000014406 ac_cv_cpp_def___sparc__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014407fi
14408rm -f conftest*
14409
14410fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014412$as_echo "$ac_cv_cpp_def___sparc__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014413if test $ac_cv_cpp_def___sparc__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014414 CFLAGS="$CFLAGS -D__sparc__"
14415 LINTFLAGS="$LINTFLAGS -D__sparc__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014416fi ;;
André Hentschelfca621f2011-11-30 01:07:33 +010014417 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
14418$as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
14419if ${ac_cv_cpp_def___powerpc64__+:} false; then :
14420 $as_echo_n "(cached) " >&6
14421else
14422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14423/* end confdefs.h. */
14424#ifndef __powerpc64__
14425yes
14426#endif
14427_ACEOF
14428if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14429 $EGREP "yes" >/dev/null 2>&1; then :
14430 ac_cv_cpp_def___powerpc64__=yes
14431else
14432 ac_cv_cpp_def___powerpc64__=no
14433fi
14434rm -f conftest*
14435
14436fi
14437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
14438$as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
14439if test $ac_cv_cpp_def___powerpc64__ = yes; then :
14440 CFLAGS="$CFLAGS -D__powerpc64__"
14441 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
14442fi ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014443 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014444$as_echo_n "checking whether we need to define __powerpc__... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014445if ${ac_cv_cpp_def___powerpc__+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014446 $as_echo_n "(cached) " >&6
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000014447else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000014449/* end confdefs.h. */
14450#ifndef __powerpc__
14451yes
14452#endif
14453_ACEOF
14454if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014455 $EGREP "yes" >/dev/null 2>&1; then :
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000014456 ac_cv_cpp_def___powerpc__=yes
14457else
14458 ac_cv_cpp_def___powerpc__=no
14459fi
14460rm -f conftest*
14461
14462fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014464$as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014465if test $ac_cv_cpp_def___powerpc__ = yes; then :
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000014466 CFLAGS="$CFLAGS -D__powerpc__"
14467 LINTFLAGS="$LINTFLAGS -D__powerpc__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014468fi ;;
André Hentschel50ada0f2011-04-19 19:37:05 +020014469 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
14470$as_echo_n "checking whether we need to define __arm__... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014471if ${ac_cv_cpp_def___arm__+:} false; then :
André Hentschel50ada0f2011-04-19 19:37:05 +020014472 $as_echo_n "(cached) " >&6
14473else
14474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14475/* end confdefs.h. */
14476#ifndef __arm__
14477yes
14478#endif
14479_ACEOF
14480if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14481 $EGREP "yes" >/dev/null 2>&1; then :
14482 ac_cv_cpp_def___arm__=yes
14483else
14484 ac_cv_cpp_def___arm__=no
14485fi
14486rm -f conftest*
14487
14488fi
14489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
14490$as_echo "$ac_cv_cpp_def___arm__" >&6; }
14491if test $ac_cv_cpp_def___arm__ = yes; then :
14492 CFLAGS="$CFLAGS -D__arm__"
14493 LINTFLAGS="$LINTFLAGS -D__arm__"
14494fi ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000014495esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014496
14497case $host_vendor in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014498 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014499$as_echo_n "checking whether we need to define __sun__... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014500if ${ac_cv_cpp_def___sun__+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014501 $as_echo_n "(cached) " >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014502else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014504/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014505#ifndef __sun__
14506yes
14507#endif
14508_ACEOF
14509if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014510 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014511 ac_cv_cpp_def___sun__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014512else
Alexandre Julliard05783b52002-12-11 00:21:55 +000014513 ac_cv_cpp_def___sun__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014514fi
14515rm -f conftest*
14516
14517fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014519$as_echo "$ac_cv_cpp_def___sun__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014520if test $ac_cv_cpp_def___sun__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014521 CFLAGS="$CFLAGS -D__sun__"
14522 LINTFLAGS="$LINTFLAGS -D__sun__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014523fi ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000014524esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014525
14526
Alexandre Julliarda360e932008-08-20 16:02:37 +020014527
Alexandre Julliard7d831152010-03-20 15:07:45 +010014528
Alexandre Julliard6c142382010-04-11 12:47:30 +020014529
Alexandre Julliard7d831152010-03-20 15:07:45 +010014530ac_config_commands="$ac_config_commands include/stamp-h"
14531
Alexandre Julliard03642412010-03-20 15:24:22 +010014532
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014533ALL_MAKEFILE_DEPENDS="
14534# Rules automatically generated by configure
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014535
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014536.INIT: Makefile
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014537.MAKEFILEDEPS:
Alexandre Julliardbd3110d2010-05-23 10:34:36 +020014538all: Makefile
Alexandre Julliard81b8ee82010-09-19 12:36:48 +020014539Makefile: Makefile.in Make.vars.in Make.rules config.status
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014540 @./config.status Make.tmp Makefile"
Alexandre Julliarda360e932008-08-20 16:02:37 +020014541
Alexandre Julliard367fd222011-01-04 17:05:21 +010014542ALL_POT_FILES=""
Alexandre Julliard9b99cd12011-05-24 11:11:22 +020014543ALL_TEST_RESOURCES=""
Alexandre Julliard454fb3c2010-02-08 21:29:13 +010014544
Alexandre Julliard49163da2008-08-25 12:02:27 +020014545
Alexandre Julliard2de10c42010-02-11 23:23:45 +010014546wine_fn_append_file ()
14547{
14548 as_fn_append $1 " \\$as_nl $2"
14549}
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014550
Alexandre Julliard2de10c42010-02-11 23:23:45 +010014551wine_fn_append_rule ()
14552{
14553 as_fn_append $1 "$as_nl$2"
14554}
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014555
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014556wine_fn_has_flag ()
14557{
14558 expr ",$2," : ".*,$1,.*" >/dev/null
14559}
14560
Alexandre Julliard943cd732010-03-25 21:52:56 +010014561wine_fn_all_dir_rules ()
14562{
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014563 ac_dir=$1
14564 ac_alldeps=$2
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014565 ac_makedep="\$(MAKEDEP)"
14566 ac_input=Make.vars.in:$ac_dir/Makefile.in
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014567 if test $ac_dir != tools
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014568 then
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014569 ac_alldeps="$2 $ac_makedep"
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014570 fi
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014571 case $2 in
14572 *.in) ac_input=$ac_input:$2 ;;
14573 *) ac_makedep="$2 $ac_makedep" ;;
14574 esac
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014575
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014576 wine_fn_append_file ALL_DIRS $ac_dir
Alexandre Julliard943cd732010-03-25 21:52:56 +010014577 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014578"__clean__: $ac_dir/__clean__
14579.PHONY: $ac_dir/__clean__
14580$ac_dir/__clean__: $ac_dir/Makefile
14581 @cd $ac_dir && \$(MAKE) clean
14582 \$(RM) $ac_dir/Makefile
14583$ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014584 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014585depend: $ac_dir/__depend__
14586.PHONY: $ac_dir/__depend__
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014587$ac_dir/__depend__: $ac_makedep dummy
14588 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
Alexandre Julliard943cd732010-03-25 21:52:56 +010014589}
14590
Alexandre Julliard9c98f692011-10-22 14:54:03 +020014591wine_fn_pot_rules ()
14592{
14593 ac_dir=$1
14594 ac_flags=$2
14595
Alexandre Julliard9159cfe2011-10-22 20:46:36 +020014596 test "x$with_gettextpo" = xyes || return
Alexandre Julliard9c98f692011-10-22 14:54:03 +020014597
14598 if wine_fn_has_flag mc $ac_flags
14599 then
14600 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14601 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14602"$ac_dir/msg.pot: $ac_dir/Makefile dummy
14603 @cd $ac_dir && \$(MAKE) msg.pot
14604$ac_dir/msg.pot: tools/wmc include"
14605 fi
14606 if wine_fn_has_flag po $ac_flags
14607 then
14608 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14609 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14610"$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
14611 @cd $ac_dir && \$(MAKE) rsrc.pot
Rafał Mużyło78f717b2011-11-04 23:20:30 +010014612$ac_dir/rsrc.pot: tools/wrc include"
Alexandre Julliard9c98f692011-10-22 14:54:03 +020014613 fi
14614}
14615
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014616wine_fn_config_makefile ()
14617{
14618 ac_dir=$1
Alexandre Julliard03642412010-03-20 15:24:22 +010014619 ac_enable=$2
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014620 ac_flags=$3
Alexandre Julliarda0b8fa92011-06-12 12:44:03 +020014621 ac_rules=$4
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020014622 if eval test \"x\$"$ac_enable"\" = x"no"; then :
Alexandre Julliard9bdd0272010-06-30 17:34:20 +020014623 return 0
14624fi
Alexandre Julliard03642412010-03-20 15:24:22 +010014625
Alexandre Julliarda0b8fa92011-06-12 12:44:03 +020014626 wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
Alexandre Julliard9bdd0272010-06-30 17:34:20 +020014627 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014628"all: $ac_dir
14629.PHONY: $ac_dir
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014630$ac_dir: $ac_dir/Makefile dummy
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020014631 @cd $ac_dir && \$(MAKE)"
14632
14633 wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
14634
14635 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014636".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14637$ac_dir/__install__:: $ac_dir
Alexandre Julliarde84063b2010-03-25 21:46:41 +010014638 @cd $ac_dir && \$(MAKE) install
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014639$ac_dir/__uninstall__:: $ac_dir/Makefile
14640 @cd $ac_dir && \$(MAKE) uninstall
14641install:: $ac_dir/__install__
14642__uninstall__: $ac_dir/__uninstall__"
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020014643
14644 if wine_fn_has_flag install-lib $ac_flags
14645 then
14646 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014647".PHONY: $ac_dir/__install-lib__
14648$ac_dir/__install-lib__:: $ac_dir
14649 @cd $ac_dir && \$(MAKE) install-lib
14650install-lib:: $ac_dir/__install-lib__"
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020014651 fi
14652
14653 if wine_fn_has_flag install-dev $ac_flags
14654 then
14655 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014656".PHONY: $ac_dir/__install-dev
14657$ac_dir/__install-dev__:: $ac_dir
14658 @cd $ac_dir && \$(MAKE) install-dev
14659install-dev:: $ac_dir/__install-dev__"
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020014660 fi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014661}
14662
14663wine_fn_config_lib ()
14664{
14665 ac_name=$1
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014666 ac_flags=$2
Alexandre Julliardb8fb1d52010-03-20 14:50:53 +010014667 ac_dir=dlls/$ac_name
Alexandre Julliardf64a6752011-07-09 17:58:47 +020014668 wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
14669
14670 if wine_fn_has_flag install-dev $ac_flags
14671 then :
14672 else
14673 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14674".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14675$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
14676 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14677$ac_dir/__uninstall__::
14678 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14679install install-dev:: $ac_dir/__install__
14680__uninstall__: $ac_dir/__uninstall__"
14681 fi
14682
Alexandre Julliarda0b8fa92011-06-12 12:44:03 +020014683 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
14684 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014685}
14686
Alexandre Julliard50231942010-03-16 22:00:02 +010014687wine_fn_config_dll ()
14688{
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014689 ac_name=$1
14690 ac_dir=dlls/$ac_name
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014691 ac_enable=$2
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014692 ac_flags=$3
Alexandre Julliard1858f432010-12-29 14:10:47 +010014693 ac_implib=${4:-$ac_name}
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014694 ac_file=$ac_dir/lib$ac_implib
Alexandre Julliardbf8f4352011-07-25 11:39:42 +020014695 ac_dll=$ac_name
Alexandre Julliard50231942010-03-16 22:00:02 +010014696 ac_deps="tools/widl tools/winebuild tools/winegcc include"
Alexandre Julliardb0e48e12010-07-26 21:06:28 +020014697 ac_implibflags=""
14698
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014699 case $ac_name in
Alexandre Julliardb0e48e12010-07-26 21:06:28 +020014700 *16) ac_implibflags=" -m16" ;;
Alexandre Julliardbf8f4352011-07-25 11:39:42 +020014701 *.*) ;;
14702 *) ac_dll=$ac_dll.dll ;;
Alexandre Julliardb0e48e12010-07-26 21:06:28 +020014703 esac
Alexandre Julliard50231942010-03-16 22:00:02 +010014704
Alexandre Julliardbf8f4352011-07-25 11:39:42 +020014705 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
Alexandre Julliard82b743f2010-03-25 11:15:32 +010014706
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020014707 if eval test \"x\$"$ac_enable"\" = x"no"; then :
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014708 test "$ac_enable" != enable_win16 || return 0
Alexandre Julliard28449912011-07-25 22:05:51 +020014709 wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014710else
Alexandre Julliard60a05ad2010-03-25 12:05:44 +010014711 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardbf8f4352011-07-25 11:39:42 +020014712"$ac_dir: __builddeps__
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014713manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014714 @cd $ac_dir && \$(MAKE) \$@"
Alexandre Julliard367fd222011-01-04 17:05:21 +010014715
Alexandre Julliardbf8f4352011-07-25 11:39:42 +020014716 if wine_fn_has_flag install-lib $ac_flags
14717 then :
14718 else
14719 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14720".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
14721install install-lib:: $ac_dir/__install-lib__
14722__uninstall__: $ac_dir/__uninstall__"
14723 if test -n "$DLLEXT"
14724 then
14725 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14726"$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14727 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
14728 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
14729$ac_dir/__uninstall__::
14730 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
14731 else
14732 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14733"$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14734 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
14735$ac_dir/__uninstall__::
14736 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
14737 fi
14738 fi
14739
Alexandre Julliard9c98f692011-10-22 14:54:03 +020014740 wine_fn_pot_rules $ac_dir $ac_flags
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014741fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014742
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014743 if wine_fn_has_flag staticimplib $ac_flags
Alexandre Julliard50231942010-03-16 22:00:02 +010014744 then
14745 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014746"__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014747$ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014748$ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14749 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14750$ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14751 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
Alexandre Julliard6cba5c42011-07-09 18:01:42 +020014752.PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14753$ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14754 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14755$ac_dir/__uninstall__::
14756 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14757install install-dev:: $ac_dir/__install-dev__
14758__uninstall__: $ac_dir/__uninstall__"
14759
14760 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
14761 then
14762 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14763"$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
14764 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
14765$ac_dir/__uninstall__::
14766 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
14767 fi
14768
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014769 if test "x$CROSSTEST_DISABLE" = x
14770 then
14771 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14772"__builddeps__: $ac_file.cross.a
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014773$ac_file.cross.a: $ac_dir/Makefile dummy
14774 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014775 fi
14776
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014777 elif wine_fn_has_flag implib $ac_flags
Alexandre Julliard50231942010-03-16 22:00:02 +010014778 then
14779 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014780"__builddeps__: $ac_file.$IMPLIBEXT
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014781$ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14782 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14783$ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14784 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
Alexandre Julliard6cba5c42011-07-09 18:01:42 +020014785.PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14786$ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14787 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14788$ac_dir/__uninstall__::
14789 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14790install install-dev:: $ac_dir/__install-dev__
14791__uninstall__: $ac_dir/__uninstall__"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014792 if test "x$CROSSTEST_DISABLE" = x
14793 then
14794 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14795"__builddeps__: $ac_file.cross.a
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014796$ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14797 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014798 fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014799
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014800 if test "$ac_name" != "$ac_implib"
Alexandre Julliard50231942010-03-16 22:00:02 +010014801 then
14802 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014803"__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014804dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014805 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
Alexandre Julliard50231942010-03-16 22:00:02 +010014806clean::
14807 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014808 if test "x$CROSSTEST_DISABLE" = x
14809 then
14810 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14811"__builddeps__: dlls/lib$ac_implib.cross.a
14812dlls/lib$ac_implib.cross.a: $ac_file.cross.a
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014813 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014814 fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014815 fi
14816 fi
14817}
14818
14819wine_fn_config_program ()
14820{
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014821 ac_name=$1
14822 ac_dir=programs/$ac_name
Alexandre Julliardd394e042010-03-20 14:53:39 +010014823 ac_enable=$2
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014824 ac_flags=$3
Alexandre Julliardfda8b652011-07-09 21:04:23 +020014825 ac_program=$ac_name
14826
14827 case $ac_name in
14828 *.*) ;;
14829 *) ac_program=$ac_program.exe ;;
14830 esac
14831
14832 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014833
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020014834 if eval test \"x\$"$ac_enable"\" = x"no"; then :
Alexandre Julliardd394e042010-03-20 14:53:39 +010014835
14836else
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014837 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardfda8b652011-07-09 21:04:23 +020014838"$ac_dir: __builddeps__"
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014839
Alexandre Julliard9c98f692011-10-22 14:54:03 +020014840 wine_fn_pot_rules $ac_dir $ac_flags
Alexandre Julliard367fd222011-01-04 17:05:21 +010014841
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014842 wine_fn_has_flag install $ac_flags || return
Alexandre Julliard2fb30212010-03-26 09:24:33 +010014843 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014844".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014845install install-lib:: $ac_dir/__install__
14846__uninstall__: $ac_dir/__uninstall__"
Alexandre Julliardfda8b652011-07-09 21:04:23 +020014847
14848 if test -n "$DLLEXT"
Alexandre Julliard2fb30212010-03-26 09:24:33 +010014849 then
14850 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardfda8b652011-07-09 21:04:23 +020014851"$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14852 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
14853 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
14854$ac_dir/__uninstall__::
14855 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
14856
14857 if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
14858 then
14859 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014860"$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014861 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014862$ac_dir/__uninstall__::
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014863 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
Alexandre Julliardfda8b652011-07-09 21:04:23 +020014864 fi
14865 else
14866 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14867"$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14868 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
14869$ac_dir/__uninstall__::
14870 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014871 fi
Alexandre Julliard41107a92011-08-01 13:40:19 +020014872
14873 if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
14874 then
14875 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14876"$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
14877 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
14878$ac_dir/__uninstall__::
14879 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
14880 fi
Alexandre Julliardd394e042010-03-20 14:53:39 +010014881fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014882}
14883
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014884wine_fn_config_test ()
14885{
14886 ac_dir=$1
14887 ac_name=$2
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014888 ac_flags=$3
Alexandre Julliard9b99cd12011-05-24 11:11:22 +020014889 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014890 wine_fn_all_dir_rules $ac_dir Maketest.rules
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014891
Alexandre Julliard9797da42011-04-27 17:37:43 +020014892 if test "x$enable_tests" = xno; then :
Alexandre Julliarddc3afa12010-03-20 14:51:52 +010014893
14894else
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014895 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard9b99cd12011-05-24 11:11:22 +020014896"all: $ac_dir
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014897.PHONY: $ac_dir
Alexandre Julliarddbbed382011-05-26 12:04:45 +020014898$ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014899 @cd $ac_dir && \$(MAKE)
Alexandre Julliard9b99cd12011-05-24 11:11:22 +020014900programs/winetest: $ac_dir
Alexandre Julliarde4eff852011-05-22 13:15:03 +020014901check test: $ac_dir/__test__
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014902.PHONY: $ac_dir/__test__
Alexandre Julliardeab7efd2010-03-25 21:42:54 +010014903$ac_dir/__test__: dummy
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014904 @cd $ac_dir && \$(MAKE) test
14905testclean::
14906 \$(RM) $ac_dir/*.ok"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014907
14908 if test "x$CROSSTEST_DISABLE" = x
14909 then
14910 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14911"crosstest: $ac_dir/__crosstest__
14912.PHONY: $ac_dir/__crosstest__
14913$ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14914 @cd $ac_dir && \$(MAKE) crosstest"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014915 fi
Alexandre Julliarddc3afa12010-03-20 14:51:52 +010014916fi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014917}
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010014918
14919wine_fn_config_tool ()
14920{
14921 ac_dir=$1
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014922 ac_flags=$2
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020014923 if test "x$enable_tools" = xno; then :
14924 return 0
14925fi
14926
Alexandre Julliard49c31e32011-06-12 12:13:17 +020014927 wine_fn_config_makefile $ac_dir enable_tools $ac_flags
Alexandre Julliard6dbe7a02010-03-25 11:51:24 +010014928
Alexandre Julliard49c31e32011-06-12 12:13:17 +020014929 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
14930 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020014931 case $ac_dir in
14932 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14933 esac
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010014934}
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014935
14936wine_fn_config_makerules ()
14937{
14938 ac_rules=$1
14939 ac_deps=$2
14940 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14941"$ac_rules: $ac_rules.in $ac_deps config.status
14942 @./config.status $ac_rules
14943distclean::
14944 \$(RM) $ac_rules"
14945}
14946
14947wine_fn_config_symlink ()
14948{
14949 ac_link=$1
14950 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14951"$ac_link:
14952 @./config.status $ac_link
14953distclean::
14954 \$(RM) $ac_link"
14955}
Alexandre Julliarda070f9b2010-07-26 20:53:12 +020014956
14957if test "x$CROSSTEST_DISABLE" != x
14958then
14959 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14960"crosstest:
14961 @echo \"crosstest is not supported (mingw not installed?)\" && false"
14962fi
Alexandre Julliard40977bf2010-11-11 12:24:46 +010014963ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14964wine_fn_config_symlink dlls/shell32/AUTHORS
Alexandre Julliarda6320522010-02-03 13:14:03 +010014965ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014966test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014967if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014968ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014969test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014970fi
14971if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014972ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014973test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014974fi
14975if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014976ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014977test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014978fi
14979if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014980ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014981test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014982fi
Alexandre Julliard268976b2011-10-22 15:23:14 +020014983ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
14984test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020014985if test "x$enable_tools" != xno; then
Alexandre Julliard321d3882010-05-06 20:51:53 +020014986ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14987test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020014988fi
Alexandre Julliard7d020c92010-02-03 13:12:12 +010014989ac_config_links="$ac_config_links wine:tools/winewrapper"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014990wine_fn_config_symlink wine
Alexandre Julliard4422d222011-05-10 13:26:28 +020014991if test "x$enable_win64" != xno; then
14992ac_config_links="$ac_config_links wine64:tools/winewrapper"
14993wine_fn_config_symlink wine64
14994fi
Alexandre Julliard7d020c92010-02-03 13:12:12 +010014995
Huw Davies4cffb2d2011-04-01 15:27:48 +010014996ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
14997
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020014998ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000014999
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020015000ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000015001
Alexandre Julliard1c60e3b2006-09-12 16:10:51 +020015002ac_config_commands="$ac_config_commands dlls/kernel32/nls"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015003
Alexandre Julliardb8a2e3b2006-11-16 14:49:25 +010015004ac_config_commands="$ac_config_commands dlls/user32/resources"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015005
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015006ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015007
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015008ac_config_commands="$ac_config_commands include/wine"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015009
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000015010
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010015011wine_fn_config_makerules Make.rules
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000015012MAKE_RULES=Make.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010015013ac_config_files="$ac_config_files Make.rules"
15014
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010015015wine_fn_config_makerules Maketest.rules Make.rules
Alexandre Julliardcb1fc8f2010-02-10 11:18:58 +010015016MAKE_TEST_RULES=Maketest.rules
15017ac_config_files="$ac_config_files Maketest.rules"
15018
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010015019wine_fn_config_makerules dlls/Makedll.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020015020MAKE_DLL_RULES=dlls/Makedll.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010015021ac_config_files="$ac_config_files dlls/Makedll.rules"
15022
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010015023wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020015024MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010015025ac_config_files="$ac_config_files dlls/Makeimplib.rules"
15026
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010015027wine_fn_config_makerules programs/Makeprog.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020015028MAKE_PROG_RULES=programs/Makeprog.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010015029ac_config_files="$ac_config_files programs/Makeprog.rules"
15030
Alexandre Julliarda360e932008-08-20 16:02:37 +020015031
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015032wine_fn_config_dll acledit enable_acledit
Alexandre Julliard1858f432010-12-29 14:10:47 +010015033wine_fn_config_dll aclui enable_aclui implib
15034wine_fn_config_dll activeds enable_activeds implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015035wine_fn_config_dll actxprxy enable_actxprxy
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015036wine_fn_config_lib adsiid
Alexandre Julliard1858f432010-12-29 14:10:47 +010015037wine_fn_config_dll advapi32 enable_advapi32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015038wine_fn_config_test dlls/advapi32/tests advapi32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015039wine_fn_config_dll advpack enable_advpack implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015040wine_fn_config_test dlls/advpack/tests advpack_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015041wine_fn_config_dll amstream enable_amstream
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015042wine_fn_config_test dlls/amstream/tests amstream_test
André Hentschele14e8382011-10-31 20:05:49 +010015043wine_fn_config_dll apphelp enable_apphelp
Alexandre Julliard902f10c2011-01-13 15:16:02 +010015044wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
Alexandre Julliard1858f432010-12-29 14:10:47 +010015045wine_fn_config_dll atl enable_atl implib
Marcus Meissnerb3f04252010-06-15 11:04:33 +020015046wine_fn_config_test dlls/atl/tests atl_test
Stefan Leichter887f0092012-04-04 22:31:02 +020015047wine_fn_config_dll atl80 enable_atl80
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015048wine_fn_config_dll authz enable_authz
Alexandre Julliard1858f432010-12-29 14:10:47 +010015049wine_fn_config_dll avicap32 enable_avicap32 implib
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015050wine_fn_config_dll avifil32 enable_avifil32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015051wine_fn_config_test dlls/avifil32/tests avifil32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015052wine_fn_config_dll avifile.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015053wine_fn_config_dll avrt enable_avrt implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015054wine_fn_config_dll bcrypt enable_bcrypt
Alexandre Julliard44479002011-01-11 12:56:17 +010015055wine_fn_config_dll browseui enable_browseui po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015056wine_fn_config_test dlls/browseui/tests browseui_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015057wine_fn_config_dll cabinet enable_cabinet implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015058wine_fn_config_test dlls/cabinet/tests cabinet_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015059wine_fn_config_dll capi2032 enable_capi2032 implib
15060wine_fn_config_dll cards enable_cards implib
15061wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
15062wine_fn_config_dll clusapi enable_clusapi implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015063wine_fn_config_dll comcat enable_comcat
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015064wine_fn_config_test dlls/comcat/tests comcat_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015065wine_fn_config_dll comctl32 enable_comctl32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015066wine_fn_config_test dlls/comctl32/tests comctl32_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015067wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015068wine_fn_config_test dlls/comdlg32/tests comdlg32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015069wine_fn_config_dll comm.drv16 enable_win16
15070wine_fn_config_dll commdlg.dll16 enable_win16
15071wine_fn_config_dll compobj.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015072wine_fn_config_dll compstui enable_compstui implib
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015073wine_fn_config_dll credui enable_credui implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015074wine_fn_config_test dlls/credui/tests credui_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015075wine_fn_config_dll crtdll enable_crtdll implib
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015076wine_fn_config_dll crypt32 enable_crypt32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015077wine_fn_config_test dlls/crypt32/tests crypt32_test
Alexandre Julliard8484e962011-01-06 12:28:26 +010015078wine_fn_config_dll cryptdlg enable_cryptdlg po
Alexandre Julliard1858f432010-12-29 14:10:47 +010015079wine_fn_config_dll cryptdll enable_cryptdll implib
15080wine_fn_config_dll cryptnet enable_cryptnet implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015081wine_fn_config_test dlls/cryptnet/tests cryptnet_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015082wine_fn_config_dll cryptui enable_cryptui implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015083wine_fn_config_test dlls/cryptui/tests cryptui_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015084wine_fn_config_dll ctapi32 enable_ctapi32
15085wine_fn_config_dll ctl3d.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015086wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015087wine_fn_config_dll ctl3dv2.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015088wine_fn_config_dll d3d10 enable_d3d10 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015089wine_fn_config_test dlls/d3d10/tests d3d10_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015090wine_fn_config_dll d3d10core enable_d3d10core implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015091wine_fn_config_test dlls/d3d10core/tests d3d10core_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015092wine_fn_config_dll d3d8 enable_d3d8 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015093wine_fn_config_test dlls/d3d8/tests d3d8_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015094wine_fn_config_dll d3d9 enable_d3d9 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015095wine_fn_config_test dlls/d3d9/tests d3d9_test
Matteo Bruni0ac336f2010-07-29 01:53:54 +020015096wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
Matteo Bruni66d44992010-07-29 01:47:13 +020015097wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
Matteo Bruni8ea75832010-07-28 16:44:37 +020015098wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
Matteo Bruni458eb082010-07-28 16:37:28 +020015099wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
Matteo Bruni3c59b9c2010-07-28 16:22:11 +020015100wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
Matteo Brunifbf1e832010-07-28 16:13:40 +020015101wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
Matteo Bruni99491462010-07-28 04:31:18 +020015102wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
Matteo Brunifd4efcd2010-07-28 04:09:13 +020015103wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
Matteo Bruni79c1bc42010-08-03 18:44:25 +020015104wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
Matteo Brunife050702010-08-03 18:44:25 +020015105wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010015106wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
Rico Schüller5ad7f7b2010-08-19 21:33:43 +020015107wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015108wine_fn_config_dll d3dim enable_d3dim implib
15109wine_fn_config_dll d3drm enable_d3drm implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015110wine_fn_config_test dlls/d3drm/tests d3drm_test
Owen Rudge9870c042010-08-18 16:02:22 -050015111wine_fn_config_dll d3dx10_33 enable_d3dx10_33
Owen Rudge49dbdc12010-08-18 16:02:20 -050015112wine_fn_config_dll d3dx10_34 enable_d3dx10_34
Owen Rudge955b8442010-08-18 16:02:18 -050015113wine_fn_config_dll d3dx10_35 enable_d3dx10_35
Owen Rudgef44830e2010-08-18 16:02:16 -050015114wine_fn_config_dll d3dx10_36 enable_d3dx10_36
Owen Rudge4196ba22010-08-18 16:02:10 -050015115wine_fn_config_dll d3dx10_37 enable_d3dx10_37
Owen Rudge199ff9b2010-08-18 16:02:08 -050015116wine_fn_config_dll d3dx10_38 enable_d3dx10_38
Owen Rudgefb8d7cd2010-08-18 16:02:06 -050015117wine_fn_config_dll d3dx10_39 enable_d3dx10_39
Owen Rudge662cbb12010-08-18 16:02:03 -050015118wine_fn_config_dll d3dx10_40 enable_d3dx10_40
Owen Rudge17591cc2010-08-18 16:01:59 -050015119wine_fn_config_dll d3dx10_41 enable_d3dx10_41
Owen Rudgee5d9e122010-08-18 16:01:57 -050015120wine_fn_config_dll d3dx10_42 enable_d3dx10_42
Owen Rudge3c5b2e62010-08-18 16:01:53 -050015121wine_fn_config_dll d3dx10_43 enable_d3dx10_43
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015122wine_fn_config_dll d3dx9_24 enable_d3dx9_24
15123wine_fn_config_dll d3dx9_25 enable_d3dx9_25
15124wine_fn_config_dll d3dx9_26 enable_d3dx9_26
15125wine_fn_config_dll d3dx9_27 enable_d3dx9_27
15126wine_fn_config_dll d3dx9_28 enable_d3dx9_28
15127wine_fn_config_dll d3dx9_29 enable_d3dx9_29
15128wine_fn_config_dll d3dx9_30 enable_d3dx9_30
15129wine_fn_config_dll d3dx9_31 enable_d3dx9_31
15130wine_fn_config_dll d3dx9_32 enable_d3dx9_32
15131wine_fn_config_dll d3dx9_33 enable_d3dx9_33
15132wine_fn_config_dll d3dx9_34 enable_d3dx9_34
15133wine_fn_config_dll d3dx9_35 enable_d3dx9_35
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010015134wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015135wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015136wine_fn_config_dll d3dx9_37 enable_d3dx9_37
15137wine_fn_config_dll d3dx9_38 enable_d3dx9_38
15138wine_fn_config_dll d3dx9_39 enable_d3dx9_39
15139wine_fn_config_dll d3dx9_40 enable_d3dx9_40
15140wine_fn_config_dll d3dx9_41 enable_d3dx9_41
15141wine_fn_config_dll d3dx9_42 enable_d3dx9_42
Matteo Bruni90c615a2010-08-25 17:12:51 +020015142wine_fn_config_dll d3dx9_43 enable_d3dx9_43
Alexandre Julliard1858f432010-12-29 14:10:47 +010015143wine_fn_config_dll d3dxof enable_d3dxof implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015144wine_fn_config_test dlls/d3dxof/tests d3dxof_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015145wine_fn_config_dll dbgeng enable_dbgeng implib
15146wine_fn_config_dll dbghelp enable_dbghelp implib
15147wine_fn_config_dll dciman32 enable_dciman32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015148wine_fn_config_dll ddeml.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015149wine_fn_config_dll ddraw enable_ddraw implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015150wine_fn_config_test dlls/ddraw/tests ddraw_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015151wine_fn_config_dll ddrawex enable_ddrawex
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015152wine_fn_config_test dlls/ddrawex/tests ddrawex_test
Alexandre Julliard0cdd1472011-01-06 12:37:11 +010015153wine_fn_config_dll devenum enable_devenum po
Christian Costac1b92ca2012-03-28 00:38:39 +020015154wine_fn_config_test dlls/devenum/tests devenum_test
Stefan Leichter9aeda0d2011-12-22 00:04:05 +010015155wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
Lucas Fialho Zawacki0ae47102011-09-01 15:34:35 -030015156wine_fn_config_dll dinput enable_dinput implib,po,staticimplib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015157wine_fn_config_test dlls/dinput/tests dinput_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015158wine_fn_config_dll dinput8 enable_dinput8 implib
Lucas Fialho Zawacki1fbf8572011-04-29 19:29:19 -030015159wine_fn_config_test dlls/dinput8/tests dinput8_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015160wine_fn_config_dll dispdib.dll16 enable_win16
15161wine_fn_config_dll dispex enable_dispex
Huw Daviesdf075612010-03-19 13:34:53 +000015162wine_fn_config_test dlls/dispex/tests dispex_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015163wine_fn_config_dll display.drv16 enable_win16
15164wine_fn_config_dll dmband enable_dmband
Christian Costa54168bd2012-04-12 08:28:35 +020015165wine_fn_config_test dlls/dmband/tests dmband_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015166wine_fn_config_dll dmcompos enable_dmcompos
15167wine_fn_config_dll dmime enable_dmime
Austin Lund203272e2010-08-06 17:50:49 +100015168wine_fn_config_test dlls/dmime/tests dmime_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015169wine_fn_config_dll dmloader enable_dmloader
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015170wine_fn_config_test dlls/dmloader/tests dmloader_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015171wine_fn_config_dll dmscript enable_dmscript
15172wine_fn_config_dll dmstyle enable_dmstyle
15173wine_fn_config_dll dmsynth enable_dmsynth
Christian Costad2d5d0e2012-04-06 13:39:02 +020015174wine_fn_config_test dlls/dmsynth/tests dmsynth_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015175wine_fn_config_dll dmusic enable_dmusic
Christian Costa997be9c2012-03-29 09:09:31 +020015176wine_fn_config_test dlls/dmusic/tests dmusic_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015177wine_fn_config_dll dmusic32 enable_dmusic32 implib
15178wine_fn_config_dll dnsapi enable_dnsapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015179wine_fn_config_test dlls/dnsapi/tests dnsapi_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015180wine_fn_config_dll dplay enable_dplay implib
15181wine_fn_config_dll dplayx enable_dplayx implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015182wine_fn_config_test dlls/dplayx/tests dplayx_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015183wine_fn_config_dll dpnaddr enable_dpnaddr
Alexandre Julliard1858f432010-12-29 14:10:47 +010015184wine_fn_config_dll dpnet enable_dpnet implib
Louis Lenders78445352011-08-29 22:56:35 +020015185wine_fn_config_test dlls/dpnet/tests dpnet_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015186wine_fn_config_dll dpnhpast enable_dpnhpast
15187wine_fn_config_dll dpnlobby enable_dpnlobby
15188wine_fn_config_dll dpwsockx enable_dpwsockx
15189wine_fn_config_dll drmclien enable_drmclien
Alexandre Julliard1858f432010-12-29 14:10:47 +010015190wine_fn_config_dll dsound enable_dsound implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015191wine_fn_config_test dlls/dsound/tests dsound_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015192wine_fn_config_dll dssenh enable_dssenh
15193wine_fn_config_dll dswave enable_dswave
Alexandre Julliard1858f432010-12-29 14:10:47 +010015194wine_fn_config_dll dwmapi enable_dwmapi implib
Andrew Nguyenf9c8e462011-04-03 20:55:32 -050015195wine_fn_config_dll dxdiagn enable_dxdiagn po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015196wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015197wine_fn_config_lib dxerr8
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015198wine_fn_config_lib dxerr9
Alexandre Julliard1858f432010-12-29 14:10:47 +010015199wine_fn_config_dll dxgi enable_dxgi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015200wine_fn_config_test dlls/dxgi/tests dxgi_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015201wine_fn_config_lib dxguid
David Hedberge2cf9ad2010-07-31 20:02:45 +020015202wine_fn_config_dll explorerframe enable_explorerframe
David Hedberg87212d52010-07-31 20:02:49 +020015203wine_fn_config_test dlls/explorerframe/tests explorerframe_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015204wine_fn_config_dll faultrep enable_faultrep implib
Detlef Riekenberg53fca112010-10-26 10:11:13 +020015205wine_fn_config_test dlls/faultrep/tests faultrep_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015206wine_fn_config_dll fltlib enable_fltlib
15207wine_fn_config_dll fusion enable_fusion
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015208wine_fn_config_test dlls/fusion/tests fusion_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015209wine_fn_config_dll fwpuclnt enable_fwpuclnt
Mariusz Plucińskib3a9ce42010-07-22 23:59:34 +020015210wine_fn_config_dll gameux enable_gameux
Mariusz Plucińskicb886f42010-08-03 11:58:01 +020015211wine_fn_config_test dlls/gameux/tests gameux_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015212wine_fn_config_dll gdi.exe16 enable_win16
Akihiro Sagawab5db70f2011-11-03 22:11:33 +090015213wine_fn_config_dll gdi32 enable_gdi32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015214wine_fn_config_test dlls/gdi32/tests gdi32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015215wine_fn_config_dll gdiplus enable_gdiplus implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015216wine_fn_config_test dlls/gdiplus/tests gdiplus_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015217wine_fn_config_dll glu32 enable_glu32 implib
Alexandre Julliard479857c2011-11-22 13:51:09 +010015218wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015219wine_fn_config_dll gpkcsp enable_gpkcsp
15220wine_fn_config_dll hal enable_hal
Alexandre Julliardc9b52d22011-01-06 13:19:58 +010015221wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
Alexandre Julliard1858f432010-12-29 14:10:47 +010015222wine_fn_config_dll hid enable_hid implib
15223wine_fn_config_dll hlink enable_hlink implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015224wine_fn_config_test dlls/hlink/tests hlink_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015225wine_fn_config_dll hnetcfg enable_hnetcfg
15226wine_fn_config_dll httpapi enable_httpapi
Alexandre Julliard9c6444c2011-01-06 13:31:16 +010015227wine_fn_config_dll iccvid enable_iccvid po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015228wine_fn_config_dll icmp enable_icmp
Jacek Cabanc685f8c2011-07-27 14:45:47 +020015229wine_fn_config_dll ieframe enable_ieframe implib,po
Jacek Cabanf42d9e22011-07-28 13:32:01 +020015230wine_fn_config_test dlls/ieframe/tests ieframe_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015231wine_fn_config_dll ifsmgr.vxd enable_win16
15232wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
Alexandre Julliard1858f432010-12-29 14:10:47 +010015233wine_fn_config_dll imagehlp enable_imagehlp implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015234wine_fn_config_test dlls/imagehlp/tests imagehlp_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015235wine_fn_config_dll imm.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015236wine_fn_config_dll imm32 enable_imm32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015237wine_fn_config_test dlls/imm32/tests imm32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015238wine_fn_config_dll inetcomm enable_inetcomm implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015239wine_fn_config_test dlls/inetcomm/tests inetcomm_test
Alexandre Julliardbe521062011-01-12 15:49:32 +010015240wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015241wine_fn_config_dll inetmib1 enable_inetmib1
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015242wine_fn_config_test dlls/inetmib1/tests inetmib1_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015243wine_fn_config_dll infosoft enable_infosoft
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015244wine_fn_config_test dlls/infosoft/tests infosoft_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015245wine_fn_config_dll initpki enable_initpki
15246wine_fn_config_dll inkobj enable_inkobj
15247wine_fn_config_dll inseng enable_inseng
Alexandre Julliard1858f432010-12-29 14:10:47 +010015248wine_fn_config_dll iphlpapi enable_iphlpapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015249wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015250wine_fn_config_dll itircl enable_itircl
15251wine_fn_config_dll itss enable_itss
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015252wine_fn_config_test dlls/itss/tests itss_test
Lucas Zawacki033f4ae2012-06-05 12:01:37 -030015253wine_fn_config_dll joy.cpl enable_joy_cpl po
Alexandre Julliard0ccf1d82011-01-06 13:38:57 +010015254wine_fn_config_dll jscript enable_jscript po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015255wine_fn_config_test dlls/jscript/tests jscript_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015256wine_fn_config_dll kernel32 enable_kernel32 implib,mc
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015257wine_fn_config_test dlls/kernel32/tests kernel32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015258wine_fn_config_dll keyboard.drv16 enable_win16
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010015259wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
Vincent Povirk8f874592010-09-26 16:38:44 -050015260wine_fn_config_dll ktmw32 enable_ktmw32
Alexandre Julliard1858f432010-12-29 14:10:47 +010015261wine_fn_config_dll loadperf enable_loadperf implib
Alexandre Julliard7df87f32011-01-06 14:24:05 +010015262wine_fn_config_dll localspl enable_localspl po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015263wine_fn_config_test dlls/localspl/tests localspl_test
Alexandre Julliard0546dd52011-01-12 16:11:26 +010015264wine_fn_config_dll localui enable_localui po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015265wine_fn_config_test dlls/localui/tests localui_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015266wine_fn_config_dll lz32 enable_lz32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015267wine_fn_config_test dlls/lz32/tests lz32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015268wine_fn_config_dll lzexpand.dll16 enable_win16
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015269wine_fn_config_dll mapi32 enable_mapi32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015270wine_fn_config_test dlls/mapi32/tests mapi32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015271wine_fn_config_dll mapistub enable_mapistub
15272wine_fn_config_dll mciavi32 enable_mciavi32
15273wine_fn_config_dll mcicda enable_mcicda
15274wine_fn_config_dll mciqtz32 enable_mciqtz32
15275wine_fn_config_dll mciseq enable_mciseq
15276wine_fn_config_dll mciwave enable_mciwave
Stefan Leichterf91c9cc2012-03-09 00:31:49 +010015277wine_fn_config_dll mgmtapi enable_mgmtapi
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015278wine_fn_config_dll midimap enable_midimap
Alexandre Julliard1858f432010-12-29 14:10:47 +010015279wine_fn_config_dll mlang enable_mlang implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015280wine_fn_config_test dlls/mlang/tests mlang_test
Alistair Leslie-Hughesdbefe8c2011-10-06 21:45:02 +110015281wine_fn_config_dll mmcndmgr enable_mmcndmgr
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015282wine_fn_config_dll mmdevapi enable_mmdevapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015283wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015284wine_fn_config_dll mmdevldr.vxd enable_win16
15285wine_fn_config_dll mmsystem.dll16 enable_win16
15286wine_fn_config_dll monodebg.vxd enable_win16
15287wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15288wine_fn_config_dll mouse.drv16 enable_win16
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015289wine_fn_config_dll mpr enable_mpr implib,po
Alexandre Julliard1858f432010-12-29 14:10:47 +010015290wine_fn_config_dll mprapi enable_mprapi implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015291wine_fn_config_dll msacm.dll16 enable_win16
15292wine_fn_config_dll msacm32.drv enable_msacm32_drv
Alexandre Julliard855d32d2011-11-24 20:50:11 +010015293wine_fn_config_dll msacm32 enable_msacm32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015294wine_fn_config_test dlls/msacm32/tests msacm32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015295wine_fn_config_dll msadp32.acm enable_msadp32_acm
15296wine_fn_config_dll mscat32 enable_mscat32
Alexandre Julliard1858f432010-12-29 14:10:47 +010015297wine_fn_config_dll mscms enable_mscms implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015298wine_fn_config_test dlls/mscms/tests mscms_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015299wine_fn_config_dll mscoree enable_mscoree
Louis Lendersa8528702010-08-24 11:48:01 +020015300wine_fn_config_test dlls/mscoree/tests mscoree_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015301wine_fn_config_dll msctf enable_msctf
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015302wine_fn_config_test dlls/msctf/tests msctf_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015303wine_fn_config_dll msdaps enable_msdaps
Alexandre Julliard1858f432010-12-29 14:10:47 +010015304wine_fn_config_dll msdmo enable_msdmo implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015305wine_fn_config_dll msftedit enable_msftedit
15306wine_fn_config_dll msg711.acm enable_msg711_acm
15307wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15308wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015309wine_fn_config_dll mshtml enable_mshtml implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015310wine_fn_config_test dlls/mshtml/tests mshtml_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015311wine_fn_config_dll msi enable_msi implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015312wine_fn_config_test dlls/msi/tests msi_test
Jacek Cabanaadc5cb2012-03-09 11:12:25 +010015313wine_fn_config_dll msident enable_msident
Alexandre Julliard1858f432010-12-29 14:10:47 +010015314wine_fn_config_dll msimg32 enable_msimg32 implib
Hans Leidekker530e9472011-03-10 10:59:44 +010015315wine_fn_config_dll msimsg enable_msimsg
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015316wine_fn_config_dll msimtf enable_msimtf
15317wine_fn_config_dll msisip enable_msisip
15318wine_fn_config_dll msisys.ocx enable_msisys_ocx
15319wine_fn_config_dll msnet32 enable_msnet32
David Hedberg21085ed2011-03-22 04:16:56 +010015320wine_fn_config_dll mspatcha enable_mspatcha
Alexandre Julliardad5605b2011-01-06 16:36:14 +010015321wine_fn_config_dll msrle32 enable_msrle32 po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015322wine_fn_config_dll mssign32 enable_mssign32
15323wine_fn_config_dll mssip32 enable_mssip32
15324wine_fn_config_dll mstask enable_mstask
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015325wine_fn_config_test dlls/mstask/tests mstask_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015326wine_fn_config_dll msvcirt enable_msvcirt
Vincent Povirk7e8ce7b2012-05-02 14:15:32 -050015327wine_fn_config_dll msvcm80 enable_msvcm80
Vincent Povirk94f0da92012-05-07 10:31:31 -050015328wine_fn_config_dll msvcm90 enable_msvcm90
Austin Englishdfbf47b2011-04-05 12:47:46 -070015329wine_fn_config_dll msvcp100 enable_msvcp100
Alexandre Julliarda3172a52011-04-28 23:30:07 +020015330wine_fn_config_dll msvcp60 enable_msvcp60
Alexandre Julliard2f9c02e2011-05-03 11:09:58 +020015331wine_fn_config_dll msvcp70 enable_msvcp70
Alexandre Julliard4be20262011-05-02 17:32:22 +020015332wine_fn_config_dll msvcp71 enable_msvcp71
Piotr Caban71a49eb2010-08-23 16:36:24 +020015333wine_fn_config_dll msvcp80 enable_msvcp80
Piotr Caban9ae9d262010-07-20 23:22:16 +020015334wine_fn_config_dll msvcp90 enable_msvcp90
Piotr Caband589d952010-07-20 23:24:32 +020015335wine_fn_config_test dlls/msvcp90/tests msvcp90_test
Detlef Riekenberg1434ef42010-04-30 14:07:34 +020015336wine_fn_config_dll msvcr100 enable_msvcr100
Alexandre Julliard1858f432010-12-29 14:10:47 +010015337wine_fn_config_dll msvcr70 enable_msvcr70 implib
15338wine_fn_config_dll msvcr71 enable_msvcr71 implib
Piotr Cabanc4522492010-03-25 11:06:29 +010015339wine_fn_config_dll msvcr80 enable_msvcr80
15340wine_fn_config_dll msvcr90 enable_msvcr90
Detlef Riekenberg73e669c2010-03-20 00:32:17 +010015341wine_fn_config_test dlls/msvcr90/tests msvcr90_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015342wine_fn_config_dll msvcrt enable_msvcrt implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015343wine_fn_config_test dlls/msvcrt/tests msvcrt_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015344wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15345wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15346wine_fn_config_dll msvcrtd enable_msvcrtd implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015347wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015348wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015349wine_fn_config_test dlls/msvfw32/tests msvfw32_test
Alexandre Julliard958ecd62011-01-06 17:07:23 +010015350wine_fn_config_dll msvidc32 enable_msvidc32 po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015351wine_fn_config_dll msvideo.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015352wine_fn_config_dll mswsock enable_mswsock implib
Alexandre Julliard25ccc902010-12-21 12:03:14 +010015353wine_fn_config_dll msxml enable_msxml
Alexandre Julliard41d6a922010-12-21 13:27:20 +010015354wine_fn_config_dll msxml2 enable_msxml2
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015355wine_fn_config_dll msxml3 enable_msxml3
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015356wine_fn_config_test dlls/msxml3/tests msxml3_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015357wine_fn_config_dll msxml4 enable_msxml4
Nikolay Sivov25bce452010-08-30 01:31:07 +040015358wine_fn_config_dll msxml6 enable_msxml6
Alexandre Julliard1858f432010-12-29 14:10:47 +010015359wine_fn_config_dll nddeapi enable_nddeapi implib
15360wine_fn_config_dll netapi32 enable_netapi32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015361wine_fn_config_test dlls/netapi32/tests netapi32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015362wine_fn_config_dll newdev enable_newdev implib
Thomas Mullaly858ccff2011-01-02 17:13:43 -050015363wine_fn_config_dll normaliz enable_normaliz implib
Jacek Caban4a912652010-12-02 19:15:28 +010015364wine_fn_config_dll npmshtml enable_npmshtml
Alexandre Julliard1858f432010-12-29 14:10:47 +010015365wine_fn_config_dll ntdll enable_ntdll implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015366wine_fn_config_test dlls/ntdll/tests ntdll_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015367wine_fn_config_dll ntdsapi enable_ntdsapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015368wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015369wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015370wine_fn_config_dll ntprint enable_ntprint
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015371wine_fn_config_test dlls/ntprint/tests ntprint_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015372wine_fn_config_dll objsel enable_objsel
Alexandre Julliard1858f432010-12-29 14:10:47 +010015373wine_fn_config_dll odbc32 enable_odbc32 implib
15374wine_fn_config_dll odbccp32 enable_odbccp32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015375wine_fn_config_test dlls/odbccp32/tests odbccp32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015376wine_fn_config_dll ole2.dll16 enable_win16
15377wine_fn_config_dll ole2conv.dll16 enable_win16
15378wine_fn_config_dll ole2disp.dll16 enable_win16
15379wine_fn_config_dll ole2nls.dll16 enable_win16
15380wine_fn_config_dll ole2prox.dll16 enable_win16
15381wine_fn_config_dll ole2thk.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015382wine_fn_config_dll ole32 enable_ole32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015383wine_fn_config_test dlls/ole32/tests ole32_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015384wine_fn_config_dll oleacc enable_oleacc implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015385wine_fn_config_test dlls/oleacc/tests oleacc_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015386wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015387wine_fn_config_test dlls/oleaut32/tests oleaut32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015388wine_fn_config_dll olecli.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015389wine_fn_config_dll olecli32 enable_olecli32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015390wine_fn_config_dll oledb32 enable_oledb32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015391wine_fn_config_test dlls/oledb32/tests oledb32_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015392wine_fn_config_dll oledlg enable_oledlg implib,po
Alexandre Julliard1858f432010-12-29 14:10:47 +010015393wine_fn_config_dll olepro32 enable_olepro32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015394wine_fn_config_dll olesvr.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015395wine_fn_config_dll olesvr32 enable_olesvr32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015396wine_fn_config_dll olethk32 enable_olethk32
15397wine_fn_config_dll openal32 enable_openal32
Peter Urbanec65c84d72010-12-02 23:41:48 +110015398wine_fn_config_dll opencl enable_opencl
Alexandre Julliard1858f432010-12-29 14:10:47 +010015399wine_fn_config_dll opengl32 enable_opengl32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015400wine_fn_config_test dlls/opengl32/tests opengl32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015401wine_fn_config_dll pdh enable_pdh implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015402wine_fn_config_test dlls/pdh/tests pdh_test
Austin Englishe3fb0782012-01-11 11:12:41 -080015403wine_fn_config_dll photometadatahandler enable_photometadatahandler
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015404wine_fn_config_dll pidgen enable_pidgen
Alexandre Julliard1858f432010-12-29 14:10:47 +010015405wine_fn_config_dll powrprof enable_powrprof implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015406wine_fn_config_dll printui enable_printui
Alexandre Julliard1858f432010-12-29 14:10:47 +010015407wine_fn_config_dll propsys enable_propsys implib
Andrew Nguyenc20908b2010-07-25 21:57:59 -050015408wine_fn_config_test dlls/propsys/tests propsys_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015409wine_fn_config_dll psapi enable_psapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015410wine_fn_config_test dlls/psapi/tests psapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015411wine_fn_config_dll pstorec enable_pstorec
15412wine_fn_config_dll qcap enable_qcap
15413wine_fn_config_dll qedit enable_qedit
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015414wine_fn_config_test dlls/qedit/tests qedit_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015415wine_fn_config_dll qmgr enable_qmgr
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015416wine_fn_config_test dlls/qmgr/tests qmgr_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015417wine_fn_config_dll qmgrprxy enable_qmgrprxy
Alexandre Julliard1858f432010-12-29 14:10:47 +010015418wine_fn_config_dll quartz enable_quartz implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015419wine_fn_config_test dlls/quartz/tests quartz_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015420wine_fn_config_dll query enable_query
15421wine_fn_config_dll rasapi16.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015422wine_fn_config_dll rasapi32 enable_rasapi32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015423wine_fn_config_test dlls/rasapi32/tests rasapi32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015424wine_fn_config_dll rasdlg enable_rasdlg implib
Austin Englishd8d77802011-05-21 20:17:07 -050015425wine_fn_config_dll regapi enable_regapi
Alexandre Julliard1858f432010-12-29 14:10:47 +010015426wine_fn_config_dll resutils enable_resutils implib
15427wine_fn_config_dll riched20 enable_riched20 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015428wine_fn_config_test dlls/riched20/tests riched20_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015429wine_fn_config_dll riched32 enable_riched32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015430wine_fn_config_test dlls/riched32/tests riched32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015431wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015432wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015433wine_fn_config_dll rsabase enable_rsabase
Alexandre Julliard1858f432010-12-29 14:10:47 +010015434wine_fn_config_dll rsaenh enable_rsaenh implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015435wine_fn_config_test dlls/rsaenh/tests rsaenh_test
Louis Lenders85b3f292010-08-27 11:45:11 +020015436wine_fn_config_dll rstrtmgr enable_rstrtmgr
Alexandre Julliard1858f432010-12-29 14:10:47 +010015437wine_fn_config_dll rtutils enable_rtutils implib
Louis Lenders1ae673f2010-05-11 22:59:22 +020015438wine_fn_config_dll samlib enable_samlib
Alexandre Julliard036fe882011-01-14 12:48:59 +010015439wine_fn_config_dll sane.ds enable_sane_ds po
Stefan Leichter81f3d682011-04-03 23:50:40 +020015440wine_fn_config_dll scarddlg enable_scarddlg
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015441wine_fn_config_dll sccbase enable_sccbase
15442wine_fn_config_dll schannel enable_schannel
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015443wine_fn_config_test dlls/schannel/tests schannel_test
Hans Leidekker8e74ee52011-11-09 15:03:53 +010015444wine_fn_config_dll scrrun enable_scrrun
Alistair Leslie-Hughes1c62c9f2012-03-22 16:24:24 +110015445wine_fn_config_test dlls/scrrun/tests scrrun_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015446wine_fn_config_dll secur32 enable_secur32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015447wine_fn_config_test dlls/secur32/tests secur32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015448wine_fn_config_dll security enable_security
Alexandre Julliard1858f432010-12-29 14:10:47 +010015449wine_fn_config_dll sensapi enable_sensapi implib
Alexandre Julliardc994db72011-11-30 17:51:45 +010015450wine_fn_config_dll serialui enable_serialui implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015451wine_fn_config_test dlls/serialui/tests serialui_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015452wine_fn_config_dll setupapi enable_setupapi implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015453wine_fn_config_test dlls/setupapi/tests setupapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015454wine_fn_config_dll setupx.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015455wine_fn_config_dll sfc enable_sfc implib
15456wine_fn_config_dll sfc_os enable_sfc_os implib
Alexandre Julliardb31d2312011-01-06 17:42:05 +010015457wine_fn_config_dll shdoclc enable_shdoclc po
Jacek Cabanc685f8c2011-07-27 14:45:47 +020015458wine_fn_config_dll shdocvw enable_shdocvw implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015459wine_fn_config_test dlls/shdocvw/tests shdocvw_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015460wine_fn_config_dll shell.dll16 enable_win16
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015461wine_fn_config_dll shell32 enable_shell32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015462wine_fn_config_test dlls/shell32/tests shell32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015463wine_fn_config_dll shfolder enable_shfolder implib
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015464wine_fn_config_dll shlwapi enable_shlwapi implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015465wine_fn_config_test dlls/shlwapi/tests shlwapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015466wine_fn_config_dll slbcsp enable_slbcsp
Alexandre Julliard1858f432010-12-29 14:10:47 +010015467wine_fn_config_dll slc enable_slc implib
15468wine_fn_config_dll snmpapi enable_snmpapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015469wine_fn_config_test dlls/snmpapi/tests snmpapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015470wine_fn_config_dll softpub enable_softpub
15471wine_fn_config_dll sound.drv16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015472wine_fn_config_dll spoolss enable_spoolss implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015473wine_fn_config_test dlls/spoolss/tests spoolss_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015474wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15475wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
Alexandre Julliard1858f432010-12-29 14:10:47 +010015476wine_fn_config_dll sti enable_sti implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015477wine_fn_config_test dlls/sti/tests sti_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015478wine_fn_config_dll storage.dll16 enable_win16
15479wine_fn_config_dll stress.dll16 enable_win16
Aric Stewart96192102010-10-04 09:48:25 -050015480wine_fn_config_lib strmbase
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015481wine_fn_config_lib strmiids
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015482wine_fn_config_dll svrapi enable_svrapi
Hans Leidekker45696152012-03-28 15:33:44 +020015483wine_fn_config_dll sxs enable_sxs implib
15484wine_fn_config_test dlls/sxs/tests sxs_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015485wine_fn_config_dll system.drv16 enable_win16
15486wine_fn_config_dll t2embed enable_t2embed
Alexandre Julliard1858f432010-12-29 14:10:47 +010015487wine_fn_config_dll tapi32 enable_tapi32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015488wine_fn_config_dll toolhelp.dll16 enable_win16
15489wine_fn_config_dll traffic enable_traffic
15490wine_fn_config_dll twain.dll16 enable_win16
15491wine_fn_config_dll twain_32 enable_twain_32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015492wine_fn_config_test dlls/twain_32/tests twain_32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015493wine_fn_config_dll typelib.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015494wine_fn_config_dll unicows enable_unicows implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015495wine_fn_config_dll updspapi enable_updspapi
Alexandre Julliard1858f432010-12-29 14:10:47 +010015496wine_fn_config_dll url enable_url implib
15497wine_fn_config_dll urlmon enable_urlmon implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015498wine_fn_config_test dlls/urlmon/tests urlmon_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015499wine_fn_config_dll usbd.sys enable_usbd_sys implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015500wine_fn_config_dll user.exe16 enable_win16
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015501wine_fn_config_dll user32 enable_user32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015502wine_fn_config_test dlls/user32/tests user32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015503wine_fn_config_dll userenv enable_userenv implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015504wine_fn_config_test dlls/userenv/tests userenv_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015505wine_fn_config_dll usp10 enable_usp10 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015506wine_fn_config_test dlls/usp10/tests usp10_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015507wine_fn_config_lib uuid
Alexandre Julliard1858f432010-12-29 14:10:47 +010015508wine_fn_config_dll uxtheme enable_uxtheme implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015509wine_fn_config_test dlls/uxtheme/tests uxtheme_test
Jacek Cabanc35aa012011-06-21 16:14:04 +020015510wine_fn_config_dll vbscript enable_vbscript
Jacek Caban68c6f582011-07-19 13:46:50 +020015511wine_fn_config_test dlls/vbscript/tests vbscript_test
Austin Englishdd2159c2011-04-08 18:03:47 +000015512wine_fn_config_dll vcomp enable_vcomp
André Hentschel4078b0f2012-03-18 19:29:23 +010015513wine_fn_config_dll vcomp100 enable_vcomp100
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015514wine_fn_config_dll vdhcp.vxd enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015515wine_fn_config_dll vdmdbg enable_vdmdbg implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015516wine_fn_config_dll ver.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015517wine_fn_config_dll version enable_version implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015518wine_fn_config_test dlls/version/tests version_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015519wine_fn_config_dll vmm.vxd enable_win16
15520wine_fn_config_dll vnbt.vxd enable_win16
15521wine_fn_config_dll vnetbios.vxd enable_win16
15522wine_fn_config_dll vtdapi.vxd enable_win16
15523wine_fn_config_dll vwin32.vxd enable_win16
15524wine_fn_config_dll w32skrnl enable_win16
15525wine_fn_config_dll w32sys.dll16 enable_win16
15526wine_fn_config_dll wbemprox enable_wbemprox
Hans Leidekker9614ddb2012-06-18 09:32:22 +020015527wine_fn_config_test dlls/wbemprox/tests wbemprox_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015528wine_fn_config_dll wer enable_wer implib
Detlef Riekenbergd8a5bc92010-10-26 11:37:17 +020015529wine_fn_config_test dlls/wer/tests wer_test
Austin English9381e932012-03-04 16:08:21 -080015530wine_fn_config_dll wevtapi enable_wevtapi
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015531wine_fn_config_dll wiaservc enable_wiaservc
15532wine_fn_config_dll win32s16.dll16 enable_win16
15533wine_fn_config_dll win87em.dll16 enable_win16
15534wine_fn_config_dll winaspi.dll16 enable_win16
15535wine_fn_config_dll windebug.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015536wine_fn_config_dll windowscodecs enable_windowscodecs implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015537wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015538wine_fn_config_dll winealsa.drv enable_winealsa_drv
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015539wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015540wine_fn_config_lib winecrt0
Alexandre Julliard1858f432010-12-29 14:10:47 +010015541wine_fn_config_dll wined3d enable_wined3d implib
Aric Stewart2914d652010-10-20 13:55:16 -050015542wine_fn_config_dll winegstreamer enable_winegstreamer
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015543wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15544wine_fn_config_dll winemapi enable_winemapi
15545wine_fn_config_dll winemp3.acm enable_winemp3_acm
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015546wine_fn_config_dll wineoss.drv enable_wineoss_drv
Alexandre Julliard6b5cfe2c2011-11-17 22:44:29 +010015547wine_fn_config_dll wineps.drv enable_wineps_drv install-lib,po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015548wine_fn_config_dll wineps16.drv16 enable_win16
Aric Stewarteefe6f62010-12-03 07:33:08 -060015549wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015550wine_fn_config_dll winequartz.drv enable_winequartz_drv
15551wine_fn_config_dll winex11.drv enable_winex11_drv
15552wine_fn_config_dll wing.dll16 enable_win16
15553wine_fn_config_dll wing32 enable_wing32
Alexandre Julliard1858f432010-12-29 14:10:47 +010015554wine_fn_config_dll winhttp enable_winhttp implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015555wine_fn_config_test dlls/winhttp/tests winhttp_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015556wine_fn_config_dll wininet enable_wininet implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015557wine_fn_config_test dlls/wininet/tests wininet_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015558wine_fn_config_dll winmm enable_winmm implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015559wine_fn_config_test dlls/winmm/tests winmm_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015560wine_fn_config_dll winnls.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015561wine_fn_config_dll winnls32 enable_winnls32 implib
15562wine_fn_config_dll winscard enable_winscard implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015563wine_fn_config_dll winsock.dll16 enable_win16
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015564wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015565wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
Austin English14067ac2011-05-21 20:14:37 -050015566wine_fn_config_dll winsta enable_winsta
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015567wine_fn_config_dll wintab.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015568wine_fn_config_dll wintab32 enable_wintab32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015569wine_fn_config_test dlls/wintab32/tests wintab32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015570wine_fn_config_dll wintrust enable_wintrust implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015571wine_fn_config_test dlls/wintrust/tests wintrust_test
Ričardas Barkauskas303079f2010-10-20 11:21:15 +030015572wine_fn_config_dll wlanapi enable_wlanapi
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015573wine_fn_config_dll wldap32 enable_wldap32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015574wine_fn_config_test dlls/wldap32/tests wldap32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015575wine_fn_config_dll wmi enable_wmi
15576wine_fn_config_dll wmiutils enable_wmiutils
Austin Englishd1cfbbb2012-05-03 12:41:30 -050015577wine_fn_config_dll wmvcore enable_wmvcore
Alexandre Julliard1858f432010-12-29 14:10:47 +010015578wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15579wine_fn_config_dll wow32 enable_win16 implib
15580wine_fn_config_dll ws2_32 enable_ws2_32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015581wine_fn_config_test dlls/ws2_32/tests ws2_32_test
Jacek Caban1c2f0662011-08-03 13:22:54 +020015582wine_fn_config_dll wshom.ocx enable_wshom_ocx
Jacek Caban13fef512011-09-20 11:55:52 +020015583wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test
Stefan Leichter0c1bd482012-05-01 08:07:57 +020015584wine_fn_config_dll wsnmp32 enable_wsnmp32
Alexandre Julliard1858f432010-12-29 14:10:47 +010015585wine_fn_config_dll wsock32 enable_wsock32 implib
15586wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015587wine_fn_config_dll wuapi enable_wuapi
15588wine_fn_config_dll wuaueng enable_wuaueng
Louis Lenders934d6762010-11-12 11:23:37 +010015589wine_fn_config_dll xapofx1_1 enable_xapofx1_1
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015590wine_fn_config_dll xinput1_1 enable_xinput1_1
15591wine_fn_config_dll xinput1_2 enable_xinput1_2
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010015592wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015593wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015594wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15595wine_fn_config_dll xmllite enable_xmllite
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015596wine_fn_config_test dlls/xmllite/tests xmllite_test
Hans Leidekker1edf2d42011-09-05 11:44:51 +020015597wine_fn_config_dll xolehlp enable_xolehlp
Austin English1c92d202012-01-11 11:13:08 -080015598wine_fn_config_dll xpsprint enable_xpsprint
Alexandre Julliard03642412010-03-20 15:24:22 +010015599wine_fn_config_makefile documentation enable_documentation
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020015600wine_fn_config_makefile fonts enable_fonts install-lib
15601wine_fn_config_makefile include enable_include install-dev
Alexandre Julliard03642412010-03-20 15:24:22 +010015602wine_fn_config_makefile libs/port enable_libs_port
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020015603wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
Alexandre Julliard03642412010-03-20 15:24:22 +010015604wine_fn_config_makefile libs/wpp enable_libs_wpp
Alexandre Julliard41107a92011-08-01 13:40:19 +020015605wine_fn_config_makefile loader enable_loader install-lib,manpage
Hans Leidekkerab789c62010-10-13 14:23:09 +020015606wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
Christian Costa7b41ffb2011-09-06 09:35:02 +020015607wine_fn_config_program attrib enable_attrib install,po
Alexandre Julliard30bdbed2011-02-02 22:44:47 +010015608wine_fn_config_program cabarc enable_cabarc install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015609wine_fn_config_program cacls enable_cacls install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015610wine_fn_config_program clock enable_clock install,po
15611wine_fn_config_program cmd enable_cmd install,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015612wine_fn_config_test programs/cmd/tests cmd.exe_test
Alexandre Julliardd394e042010-03-20 14:53:39 +010015613wine_fn_config_program control enable_control install
André Hentschel07ed25c2011-12-28 16:08:26 +010015614wine_fn_config_program cscript enable_cscript install
Andrew Nguyen4122cf22011-06-14 08:01:45 -050015615wine_fn_config_program dxdiag enable_dxdiag install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015616wine_fn_config_program eject enable_eject install
15617wine_fn_config_program expand enable_expand install
Jay Yangf2ac4862011-06-11 17:42:17 -040015618wine_fn_config_program explorer enable_explorer install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015619wine_fn_config_program extrac32 enable_extrac32 install
15620wine_fn_config_program hh enable_hh install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015621wine_fn_config_program hostname enable_hostname install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015622wine_fn_config_program icinfo enable_icinfo install
15623wine_fn_config_program iexplore enable_iexplore install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015624wine_fn_config_program ipconfig enable_ipconfig install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015625wine_fn_config_program lodctr enable_lodctr install
Hans Leidekkerf15aea22010-09-29 09:57:34 +020015626wine_fn_config_program mofcomp enable_mofcomp install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015627wine_fn_config_program mshta enable_mshta install
Alexandre Julliard41107a92011-08-01 13:40:19 +020015628wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015629wine_fn_config_program net enable_net install,po
Hans Leidekker8ad7d2e2010-12-06 13:19:41 +010015630wine_fn_config_program netsh enable_netsh install
Vincent Povirk4d3e6f42010-04-02 10:19:18 -050015631wine_fn_config_program ngen enable_ngen install
Alexandre Julliard41107a92011-08-01 13:40:19 +020015632wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015633wine_fn_config_program oleview enable_oleview install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015634wine_fn_config_program ping enable_ping install
Hans Leidekker2133b6c2011-01-31 15:26:17 +010015635wine_fn_config_program plugplay enable_plugplay install
Hans Leidekker89599612011-08-24 10:23:57 +020015636wine_fn_config_program presentationfontcache enable_presentationfontcache install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015637wine_fn_config_program progman enable_progman install,po
15638wine_fn_config_program reg enable_reg install,po
Hans Leidekker29a072e2011-09-05 11:44:17 +020015639wine_fn_config_program regasm enable_regasm install
Alexandre Julliard41107a92011-08-01 13:40:19 +020015640wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
Andrew Eikumf3c6c622010-07-30 16:02:34 -050015641wine_fn_config_test programs/regedit/tests regedit.exe_test
Hans Leidekkerab5fbeb2010-11-12 13:07:40 +010015642wine_fn_config_program regsvcs enable_regsvcs install
Alexandre Julliard41107a92011-08-01 13:40:19 +020015643wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
Alexandre Julliardd394e042010-03-20 14:53:39 +010015644wine_fn_config_program rpcss enable_rpcss install
Detlef Riekenbergdf898ea2010-07-18 19:15:57 +020015645wine_fn_config_program rundll.exe16 enable_win16 install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015646wine_fn_config_program rundll32 enable_rundll32 install
Hans Leidekker544da282010-05-03 12:56:58 +020015647wine_fn_config_program sc enable_sc install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015648wine_fn_config_program secedit enable_secedit install
Hans Leidekker1885c3d2010-11-18 12:09:11 +010015649wine_fn_config_program servicemodelreg enable_servicemodelreg install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015650wine_fn_config_program services enable_services install
Jacek Caband0244d72012-06-15 15:35:19 +020015651wine_fn_config_test programs/services/tests services.exe_test
Alexandre Julliardd394e042010-03-20 14:53:39 +010015652wine_fn_config_program spoolsv enable_spoolsv install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015653wine_fn_config_program start enable_start install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015654wine_fn_config_program svchost enable_svchost install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015655wine_fn_config_program taskkill enable_taskkill install,po
15656wine_fn_config_program taskmgr enable_taskmgr install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015657wine_fn_config_program termsv enable_termsv install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015658wine_fn_config_program uninstaller enable_uninstaller install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015659wine_fn_config_program unlodctr enable_unlodctr install
André Hentschel31f0f092011-09-01 21:04:14 +020015660wine_fn_config_program view enable_view install,po
Alexandre Julliard393a1252011-10-31 13:29:58 +010015661wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015662wine_fn_config_program winebrowser enable_winebrowser install
Alexandre Julliard41107a92011-08-01 13:40:19 +020015663wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
15664wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
15665wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015666wine_fn_config_program winedevice enable_winedevice install
Alexandre Julliard41107a92011-08-01 13:40:19 +020015667wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015668wine_fn_config_program winemenubuilder enable_winemenubuilder install
Alexandre Julliard41107a92011-08-01 13:40:19 +020015669wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
Hans Leidekker13700722011-02-01 14:01:42 +010015670wine_fn_config_program winemsibuilder enable_winemsibuilder install
Alexandre Julliard41107a92011-08-01 13:40:19 +020015671wine_fn_config_program winepath enable_winepath install,installbin,manpage
Alexandre Julliardd394e042010-03-20 14:53:39 +010015672wine_fn_config_program winetest enable_winetest
15673wine_fn_config_program winevdm enable_win16 install
15674wine_fn_config_program winhelp.exe16 enable_win16 install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015675wine_fn_config_program winhlp32 enable_winhlp32 install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015676wine_fn_config_program winoldap.mod16 enable_win16 install
15677wine_fn_config_program winver enable_winver install
Hans Leidekkerae9697f2012-06-19 10:19:59 +020015678wine_fn_config_program wmic enable_wmic install,po
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015679wine_fn_config_program wordpad enable_wordpad install,po
15680wine_fn_config_program write enable_write install,po
Jacek Caban16bad582010-07-27 15:51:18 +020015681wine_fn_config_program wscript enable_wscript install
Jacek Cabanf5eb15a2011-02-22 19:48:37 +010015682wine_fn_config_test programs/wscript/tests wscript.exe_test
Austin Englishbec293f2012-03-04 14:34:36 -080015683wine_fn_config_program wusa enable_wusa install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015684wine_fn_config_program xcopy enable_xcopy install,po
Alexandre Julliard41107a92011-08-01 13:40:19 +020015685wine_fn_config_makefile server enable_server install-lib,manpage
15686wine_fn_config_tool tools install-dev,install-lib,manpage
15687wine_fn_config_tool tools/widl install-dev,manpage
15688wine_fn_config_tool tools/winebuild install-dev,manpage
15689wine_fn_config_tool tools/winedump install-dev,manpage
15690wine_fn_config_tool tools/winegcc install-dev,manpage
15691wine_fn_config_tool tools/wmc install-dev,manpage
15692wine_fn_config_tool tools/wrc install-dev,manpage
Alexandre Julliard626f4252000-11-10 23:35:20 +000015693
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015694LINGUAS="\
Alexandre Julliardff71d912011-01-08 12:53:31 +010015695ar \
Alexandre Julliard4bca3342011-01-04 19:38:45 +010015696bg \
Alexandre Julliard39558f82011-01-13 17:24:15 +010015697ca \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015698cs \
15699da \
15700de \
Alexandre Julliardc9b52d22011-01-06 13:19:58 +010015701el \
15702en \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015703en_US \
15704eo \
15705es \
Alexandre Julliardff71d912011-01-08 12:53:31 +010015706fa \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015707fi \
15708fr \
15709he \
15710hi \
15711hu \
15712it \
15713ja \
15714ko \
15715lt \
15716ml \
15717nb_NO \
15718nl \
15719or \
15720pa \
15721pl \
15722pt_BR \
15723pt_PT \
Alexandre Julliard433e2402011-01-10 20:30:14 +010015724rm \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015725ro \
15726ru \
15727sk \
15728sl \
Alexandre Julliardc0b813f2011-01-07 12:11:41 +010015729sr_RS@cyrillic \
15730sr_RS@latin \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015731sv \
15732te \
15733th \
15734tr \
15735uk \
15736wa \
15737zh_CN \
15738zh_TW"
15739
15740
15741
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010015742ac_config_commands="$ac_config_commands Makefile"
15743
15744
Alexandre Julliard81b8ee82010-09-19 12:36:48 +020015745ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
Alexandre Julliard92b57312010-03-22 20:25:30 +010015746
15747
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015748
Alexandre Julliard5eee9202011-01-01 12:04:45 +010015749if test "x$enable_maintainer_mode" = xyes
15750then
15751 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15752 cd \$(srcdir) && autoconf --warnings=all
Alexandre Julliard5eee9202011-01-01 12:04:45 +010015753\$(srcdir)/include/config.h.in: include/stamp-h.in
15754\$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15755 cd \$(srcdir) && autoheader --warnings=all
Alexandre Julliard9159cfe2011-10-22 20:46:36 +020015756 @echo timestamp > \$@"
15757fi
Alexandre Julliard367fd222011-01-04 17:05:21 +010015758
Alexandre Julliard9159cfe2011-10-22 20:46:36 +020015759if test "x$with_gettextpo" = xyes
15760then
15761 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
15762 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "ALL_POT_FILES =$ALL_POT_FILES
15763\$(LINGUAS:%=po/%.po): \$(srcdir)/po/wine.pot
Jaka Kranjc08e74912012-02-21 22:51:28 +010015764 msgmerge --previous -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
Alexandre Julliard367fd222011-01-04 17:05:21 +010015765\$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15766 msgcat -o \$@ \$(ALL_POT_FILES)"
Alexandre Julliard5eee9202011-01-01 12:04:45 +010015767fi
15768
Alexandre Julliard268976b2011-10-22 15:23:14 +020015769if test "$MSGFMT" != false
15770then
Alexandre Julliardf4ec0972011-10-22 18:21:04 +020015771 PORCFLAGS="--po-dir=\$(top_builddir)/po"
15772
Alexandre Julliard268976b2011-10-22 15:23:14 +020015773 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: \$(ALL_MO_FILES)"
Alexandre Julliardf4ec0972011-10-22 18:21:04 +020015774else
15775 LINGUAS=
Alexandre Julliard268976b2011-10-22 15:23:14 +020015776fi
15777
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020015778if test "x$enable_tools" != xno
15779then
15780 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
15781clean:: __clean__
15782 \$(RM) tools/makedep\$(EXEEXT)"
15783fi
15784
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015785if test -n "$with_wine64"
15786then
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020015787wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15788fonts server tools:
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015789 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
Alexandre Julliardf3831cf2010-05-16 17:01:52 +020015790$with_wine64/loader/wine:
15791 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
Alexandre Julliard3c42b622010-12-27 14:37:57 +010015792$with_wine64/loader/wine-preloader:
15793 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015794clean::
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020015795 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015796fi
15797
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015798cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015799# This file is a shell script that caches the results of configure
15800# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015801# scripts and configure runs, see configure's option --config-cache.
15802# It is not useful on other systems. If it contains results you don't
15803# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015804#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015805# config.status only pays attention to the cache file if you give it
15806# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015807#
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015808# `ac_cv_env_foo' variables (set or unset) will be overridden when
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015809# loading this file, other *unset* `ac_cv_foo' will be assigned the
15810# following values.
15811
15812_ACEOF
15813
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000015814# The following way of writing the cache mishandles newlines in values,
15815# but we know of no workaround that is simple, portable, and efficient.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015816# So, we kill variables containing newlines.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015817# Ultrix sh set writes to stderr and can't be redirected directly,
15818# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015819(
15820 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15821 eval ac_val=\$$ac_var
15822 case $ac_val in #(
15823 *${as_nl}*)
15824 case $ac_var in #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015825 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015826$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015827 esac
15828 case $ac_var in #(
15829 _ | IFS | as_nl) ;; #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010015830 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015831 *) { eval $ac_var=; unset $ac_var;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015832 esac ;;
15833 esac
15834 done
15835
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015836 (set) 2>&1 |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015837 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15838 *${as_nl}ac_space=\ *)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015839 # `set' does not quote correctly, so add quotes: double-quote
15840 # substitution turns \\\\ into \\, and sed turns \\ into \.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015841 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015842 "s/'/'\\\\''/g;
15843 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015844 ;; #(
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015845 *)
15846 # `set' quotes correctly as required by POSIX, so do not add quotes.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015847 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015848 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015849 esac |
15850 sort
15851) |
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015852 sed '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015853 /^ac_cv_env_/b end
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015854 t clear
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015855 :clear
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015856 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15857 t end
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015858 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15859 :end' >>confcache
Jeremy White0ebeb532006-06-20 13:18:41 +020015860if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15861 if test -w "$cache_file"; then
Alexandre Julliard9797da42011-04-27 17:37:43 +020015862 if test "x$cache_file" != "x/dev/null"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015863 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015864$as_echo "$as_me: updating cache $cache_file" >&6;}
Alexandre Julliard9797da42011-04-27 17:37:43 +020015865 if test ! -f "$cache_file" || test -h "$cache_file"; then
15866 cat confcache >"$cache_file"
15867 else
15868 case $cache_file in #(
15869 */* | ?:*)
15870 mv -f confcache "$cache_file"$$ &&
15871 mv -f "$cache_file"$$ "$cache_file" ;; #(
15872 *)
15873 mv -f confcache "$cache_file" ;;
15874 esac
15875 fi
15876 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015877 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015878 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015879$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015880 fi
15881fi
15882rm -f confcache
15883
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015884test "x$prefix" = xNONE && prefix=$ac_default_prefix
15885# Let make expand exec_prefix.
15886test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15887
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015888DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015889
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015890ac_libobjs=
15891ac_ltlibobjs=
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015892U=
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015893for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15894 # 1. Remove the extension, and $U if already installed.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015895 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Alexandre Julliardabf50482008-10-31 12:56:53 +010015896 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015897 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15898 # will be set to the directory where LIBOBJS objects are built.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015899 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15900 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015901done
15902LIBOBJS=$ac_libobjs
15903
15904LTLIBOBJS=$ac_ltlibobjs
15905
15906
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015907
Alexandre Julliard9797da42011-04-27 17:37:43 +020015908: "${CONFIG_STATUS=./config.status}"
Alexandre Julliardabf50482008-10-31 12:56:53 +010015909ac_write_fail=0
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015910ac_clean_files_save=$ac_clean_files
15911ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015912{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015913$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015914as_write_fail=0
15915cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015916#! $SHELL
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015917# Generated by $as_me.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015918# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015919# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015920# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015921
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015922debug=false
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015923ac_cs_recheck=false
15924ac_cs_silent=false
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015925
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015926SHELL=\${CONFIG_SHELL-$SHELL}
15927export SHELL
15928_ASEOF
15929cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15930## -------------------- ##
15931## M4sh Initialization. ##
15932## -------------------- ##
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015933
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015934# Be more Bourne compatible
15935DUALCASE=1; export DUALCASE # for MKS sh
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015936if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015937 emulate sh
15938 NULLCMD=:
Alexandre Julliardabf50482008-10-31 12:56:53 +010015939 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015940 # is contrary to our usage. Disable this feature.
15941 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015942 setopt NO_GLOB_SUBST
15943else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015944 case `(set -o) 2>/dev/null` in #(
15945 *posix*) :
15946 set -o posix ;; #(
15947 *) :
15948 ;;
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015949esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000015950fi
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015951
15952
Alexandre Julliardabf50482008-10-31 12:56:53 +010015953as_nl='
15954'
15955export as_nl
15956# Printing a long string crashes Solaris 7 /usr/bin/printf.
15957as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15958as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15959as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015960# Prefer a ksh shell builtin over an external printf program on Solaris,
15961# but without wasting forks for bash or zsh.
15962if test -z "$BASH_VERSION$ZSH_VERSION" \
15963 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15964 as_echo='print -r --'
15965 as_echo_n='print -rn --'
15966elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015967 as_echo='printf %s\n'
15968 as_echo_n='printf %s'
15969else
15970 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15971 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15972 as_echo_n='/usr/ucb/echo -n'
15973 else
15974 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15975 as_echo_n_body='eval
15976 arg=$1;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015977 case $arg in #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010015978 *"$as_nl"*)
15979 expr "X$arg" : "X\\(.*\\)$as_nl";
15980 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15981 esac;
15982 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15983 '
15984 export as_echo_n_body
15985 as_echo_n='sh -c $as_echo_n_body as_echo'
15986 fi
15987 export as_echo_body
15988 as_echo='sh -c $as_echo_body as_echo'
15989fi
15990
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015991# The user is always right.
15992if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015993 PATH_SEPARATOR=:
15994 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15995 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15996 PATH_SEPARATOR=';'
15997 }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015998fi
15999
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016000
16001# IFS
16002# We need space, tab and new line, in precisely that order. Quoting is
16003# there to prevent editors from complaining about space-tab.
16004# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16005# splitting by setting IFS to empty value.)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016006IFS=" "" $as_nl"
16007
16008# Find who we are. Look in the path if we contain no directory separator.
Alexandre Julliard9797da42011-04-27 17:37:43 +020016009as_myself=
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016010case $0 in #((
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016011 *[\\/]* ) as_myself=$0 ;;
16012 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016013for as_dir in $PATH
16014do
16015 IFS=$as_save_IFS
16016 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016017 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16018 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016019IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016020
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016021 ;;
16022esac
16023# We did not find ourselves, most probably we were run as `sh COMMAND'
16024# in which case we are not to be found in the path.
16025if test "x$as_myself" = x; then
16026 as_myself=$0
16027fi
16028if test ! -f "$as_myself"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010016029 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016030 exit 1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016031fi
16032
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016033# Unset variables that we do not need and which cause bugs (e.g. in
16034# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16035# suppresses any "Segmentation fault" message there. '((' could
16036# trigger a bug in pdksh 5.2.14.
16037for as_var in BASH_ENV ENV MAIL MAILPATH
16038do eval test x\${$as_var+set} = xset \
16039 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016040done
16041PS1='$ '
16042PS2='> '
16043PS4='+ '
16044
16045# NLS nuisances.
Alexandre Julliardabf50482008-10-31 12:56:53 +010016046LC_ALL=C
16047export LC_ALL
16048LANGUAGE=C
16049export LANGUAGE
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016050
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016051# CDPATH.
16052(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16053
16054
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016055# as_fn_error STATUS ERROR [LINENO LOG_FD]
16056# ----------------------------------------
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016057# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16058# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016059# script with STATUS, using 1 if that was 0.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016060as_fn_error ()
16061{
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016062 as_status=$1; test $as_status -eq 0 && as_status=1
16063 if test "$4"; then
16064 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16065 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016066 fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016067 $as_echo "$as_me: error: $2" >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016068 as_fn_exit $as_status
16069} # as_fn_error
16070
16071
16072# as_fn_set_status STATUS
16073# -----------------------
16074# Set $? to STATUS, without forking.
16075as_fn_set_status ()
16076{
16077 return $1
16078} # as_fn_set_status
16079
16080# as_fn_exit STATUS
16081# -----------------
16082# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16083as_fn_exit ()
16084{
16085 set +e
16086 as_fn_set_status $1
16087 exit $1
16088} # as_fn_exit
16089
16090# as_fn_unset VAR
16091# ---------------
16092# Portably unset VAR.
16093as_fn_unset ()
16094{
16095 { eval $1=; unset $1;}
16096}
16097as_unset=as_fn_unset
16098# as_fn_append VAR VALUE
16099# ----------------------
16100# Append the text in VALUE to the end of the definition contained in VAR. Take
16101# advantage of any shell optimizations that allow amortized linear growth over
16102# repeated appends, instead of the typical quadratic growth present in naive
16103# implementations.
16104if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16105 eval 'as_fn_append ()
16106 {
16107 eval $1+=\$2
16108 }'
16109else
16110 as_fn_append ()
16111 {
16112 eval $1=\$$1\$2
16113 }
16114fi # as_fn_append
16115
16116# as_fn_arith ARG...
16117# ------------------
16118# Perform arithmetic evaluation on the ARGs, and store the result in the
16119# global $as_val. Take advantage of shells that can avoid forks. The arguments
16120# must be portable across $(()) and expr.
16121if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16122 eval 'as_fn_arith ()
16123 {
16124 as_val=$(( $* ))
16125 }'
16126else
16127 as_fn_arith ()
16128 {
16129 as_val=`expr "$@" || test $? -eq 1`
16130 }
16131fi # as_fn_arith
16132
16133
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016134if expr a : '\(a\)' >/dev/null 2>&1 &&
16135 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16136 as_expr=expr
16137else
16138 as_expr=false
16139fi
16140
16141if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16142 as_basename=basename
16143else
16144 as_basename=false
16145fi
16146
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016147if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16148 as_dirname=dirname
16149else
16150 as_dirname=false
16151fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016152
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016153as_me=`$as_basename -- "$0" ||
16154$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16155 X"$0" : 'X\(//\)$' \| \
16156 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliardabf50482008-10-31 12:56:53 +010016157$as_echo X/"$0" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016158 sed '/^.*\/\([^/][^/]*\)\/*$/{
16159 s//\1/
16160 q
16161 }
16162 /^X\/\(\/\/\)$/{
16163 s//\1/
16164 q
16165 }
16166 /^X\/\(\/\).*/{
16167 s//\1/
16168 q
16169 }
16170 s/.*/./; q'`
16171
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016172# Avoid depending upon Character Ranges.
16173as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16174as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16175as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16176as_cr_digits='0123456789'
16177as_cr_alnum=$as_cr_Letters$as_cr_digits
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016178
16179ECHO_C= ECHO_N= ECHO_T=
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016180case `echo -n x` in #(((((
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016181-n*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016182 case `echo 'xy\c'` in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016183 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016184 xy) ECHO_C='\c';;
16185 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16186 ECHO_T=' ';;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016187 esac;;
16188*)
16189 ECHO_N='-n';;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016190esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016191
16192rm -f conf$$ conf$$.exe conf$$.file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016193if test -d conf$$.dir; then
16194 rm -f conf$$.dir/conf$$.file
16195else
16196 rm -f conf$$.dir
Alexandre Julliardabf50482008-10-31 12:56:53 +010016197 mkdir conf$$.dir 2>/dev/null
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016198fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010016199if (echo >conf$$.file) 2>/dev/null; then
16200 if ln -s conf$$.file conf$$ 2>/dev/null; then
16201 as_ln_s='ln -s'
16202 # ... but there are two gotchas:
16203 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16204 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
André Hentschelcecf1052012-06-02 18:58:39 +020016205 # In both cases, we have to default to `cp -pR'.
Alexandre Julliardabf50482008-10-31 12:56:53 +010016206 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
André Hentschelcecf1052012-06-02 18:58:39 +020016207 as_ln_s='cp -pR'
Alexandre Julliardabf50482008-10-31 12:56:53 +010016208 elif ln conf$$.file conf$$ 2>/dev/null; then
16209 as_ln_s=ln
16210 else
André Hentschelcecf1052012-06-02 18:58:39 +020016211 as_ln_s='cp -pR'
Alexandre Julliardabf50482008-10-31 12:56:53 +010016212 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016213else
André Hentschelcecf1052012-06-02 18:58:39 +020016214 as_ln_s='cp -pR'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016215fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016216rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16217rmdir conf$$.dir 2>/dev/null
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016218
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016219
16220# as_fn_mkdir_p
16221# -------------
16222# Create "$as_dir" as a directory, including parents if necessary.
16223as_fn_mkdir_p ()
16224{
16225
16226 case $as_dir in #(
16227 -*) as_dir=./$as_dir;;
16228 esac
16229 test -d "$as_dir" || eval $as_mkdir_p || {
16230 as_dirs=
16231 while :; do
16232 case $as_dir in #(
16233 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16234 *) as_qdir=$as_dir;;
16235 esac
16236 as_dirs="'$as_qdir' $as_dirs"
16237 as_dir=`$as_dirname -- "$as_dir" ||
16238$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16239 X"$as_dir" : 'X\(//\)[^/]' \| \
16240 X"$as_dir" : 'X\(//\)$' \| \
16241 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16242$as_echo X"$as_dir" |
16243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16244 s//\1/
16245 q
16246 }
16247 /^X\(\/\/\)[^/].*/{
16248 s//\1/
16249 q
16250 }
16251 /^X\(\/\/\)$/{
16252 s//\1/
16253 q
16254 }
16255 /^X\(\/\).*/{
16256 s//\1/
16257 q
16258 }
16259 s/.*/./; q'`
16260 test -d "$as_dir" && break
16261 done
16262 test -z "$as_dirs" || eval "mkdir $as_dirs"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016263 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016264
16265
16266} # as_fn_mkdir_p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016267if mkdir -p . 2>/dev/null; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016268 as_mkdir_p='mkdir -p "$as_dir"'
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016269else
Alexandre Julliard875927f2004-01-02 01:55:29 +000016270 test -d ./-p && rmdir ./-p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016271 as_mkdir_p=false
16272fi
16273
André Hentschelcecf1052012-06-02 18:58:39 +020016274
16275# as_fn_executable_p FILE
16276# -----------------------
16277# Test if FILE is an executable regular file.
16278as_fn_executable_p ()
16279{
16280 test -f "$1" && test -x "$1"
16281} # as_fn_executable_p
16282as_test_x='test -x'
16283as_executable_p=as_fn_executable_p
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016284
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016285# Sed expression to map a string onto a valid CPP name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000016286as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016287
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016288# Sed expression to map a string onto a valid variable name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000016289as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016290
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016291
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016292exec 6>&1
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016293## ----------------------------------- ##
16294## Main body of $CONFIG_STATUS script. ##
16295## ----------------------------------- ##
16296_ASEOF
16297test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016298
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016299cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16300# Save the log message, to keep $0 and so on meaningful, and to
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016301# report actual input values of CONFIG_FILES etc. instead of their
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016302# values after options handling.
16303ac_log="
Alexandre Julliardd35cb812012-06-22 20:16:32 +020016304This file was extended by Wine $as_me 1.5.7, which was
André Hentschelcecf1052012-06-02 18:58:39 +020016305generated by GNU Autoconf 2.69. Invocation command line was
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016306
16307 CONFIG_FILES = $CONFIG_FILES
16308 CONFIG_HEADERS = $CONFIG_HEADERS
16309 CONFIG_LINKS = $CONFIG_LINKS
16310 CONFIG_COMMANDS = $CONFIG_COMMANDS
16311 $ $0 $@
16312
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016313on `(hostname || uname -n) 2>/dev/null | sed 1q`
16314"
16315
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016316_ACEOF
16317
Alexandre Julliardabf50482008-10-31 12:56:53 +010016318case $ac_config_files in *"
16319"*) set x $ac_config_files; shift; ac_config_files=$*;;
16320esac
16321
16322case $ac_config_headers in *"
16323"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16324esac
16325
16326
16327cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016328# Files that config.status was made for.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016329config_files="$ac_config_files"
16330config_headers="$ac_config_headers"
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016331config_links="$ac_config_links"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016332config_commands="$ac_config_commands"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016333
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016334_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016335
Alexandre Julliardabf50482008-10-31 12:56:53 +010016336cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016337ac_cs_usage="\
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016338\`$as_me' instantiates files and other configuration actions
16339from templates according to the current configuration. Unless the files
16340and actions are specified as TAGs, all are instantiated by default.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016341
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016342Usage: $0 [OPTION]... [TAG]...
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016343
16344 -h, --help print this help, then exit
Alexandre Julliard78bd1942006-08-14 20:42:56 +020016345 -V, --version print version number and configuration settings, then exit
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016346 --config print configuration, then exit
Alexandre Julliardabf50482008-10-31 12:56:53 +010016347 -q, --quiet, --silent
16348 do not print progress messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016349 -d, --debug don't remove temporary files
16350 --recheck update $as_me by reconfiguring in the same conditions
Alexandre Julliardabf50482008-10-31 12:56:53 +010016351 --file=FILE[:TEMPLATE]
16352 instantiate the configuration file FILE
16353 --header=FILE[:TEMPLATE]
16354 instantiate the configuration header FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016355
16356Configuration files:
16357$config_files
16358
16359Configuration headers:
16360$config_headers
16361
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016362Configuration links:
16363$config_links
16364
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016365Configuration commands:
16366$config_commands
16367
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016368Report bugs to <wine-devel@winehq.org>.
16369Wine home page: <http://www.winehq.org>."
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000016370
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016371_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016372cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016373ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016374ac_cs_version="\\
Alexandre Julliardd35cb812012-06-22 20:16:32 +020016375Wine config.status 1.5.7
André Hentschelcecf1052012-06-02 18:58:39 +020016376configured by $0, generated by GNU Autoconf 2.69,
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016377 with options \\"\$ac_cs_config\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016378
André Hentschelcecf1052012-06-02 18:58:39 +020016379Copyright (C) 2012 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016380This config.status script is free software; the Free Software Foundation
16381gives unlimited permission to copy, distribute and modify it."
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016382
16383ac_pwd='$ac_pwd'
16384srcdir='$srcdir'
16385INSTALL='$INSTALL'
Alexandre Julliardabf50482008-10-31 12:56:53 +010016386test -n "\$AWK" || AWK=awk
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016387_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016388
Alexandre Julliardabf50482008-10-31 12:56:53 +010016389cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16390# The default lists apply if the user does not specify any file.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016391ac_need_defaults=:
16392while test $# != 0
16393do
16394 case $1 in
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016395 --*=?*)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016396 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16397 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016398 ac_shift=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016399 ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016400 --*=)
16401 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16402 ac_optarg=
16403 ac_shift=:
16404 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016405 *)
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016406 ac_option=$1
16407 ac_optarg=$2
16408 ac_shift=shift
16409 ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016410 esac
16411
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016412 case $ac_option in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016413 # Handling of the options.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016414 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16415 ac_cs_recheck=: ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016416 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Alexandre Julliardabf50482008-10-31 12:56:53 +010016417 $as_echo "$ac_cs_version"; exit ;;
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016418 --config | --confi | --conf | --con | --co | --c )
16419 $as_echo "$ac_cs_config"; exit ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016420 --debug | --debu | --deb | --de | --d | -d )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016421 debug=: ;;
16422 --file | --fil | --fi | --f )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016423 $ac_shift
Alexandre Julliardabf50482008-10-31 12:56:53 +010016424 case $ac_optarg in
16425 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016426 '') as_fn_error $? "missing file argument" ;;
Alexandre Julliardabf50482008-10-31 12:56:53 +010016427 esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016428 as_fn_append CONFIG_FILES " '$ac_optarg'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016429 ac_need_defaults=false;;
16430 --header | --heade | --head | --hea )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016431 $ac_shift
Alexandre Julliardabf50482008-10-31 12:56:53 +010016432 case $ac_optarg in
16433 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16434 esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016435 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016436 ac_need_defaults=false;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016437 --he | --h)
16438 # Conflict between --help and --header
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016439 as_fn_error $? "ambiguous option: \`$1'
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016440Try \`$0 --help' for more information.";;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016441 --help | --hel | -h )
Alexandre Julliardabf50482008-10-31 12:56:53 +010016442 $as_echo "$ac_cs_usage"; exit ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016443 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16444 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16445 ac_cs_silent=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016446
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016447 # This is an error.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016448 -*) as_fn_error $? "unrecognized option: \`$1'
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016449Try \`$0 --help' for more information." ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016450
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016451 *) as_fn_append ac_config_targets " $1"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016452 ac_need_defaults=false ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016453
16454 esac
16455 shift
16456done
16457
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016458ac_configure_extra_args=
16459
16460if $ac_cs_silent; then
16461 exec 6>/dev/null
16462 ac_configure_extra_args="$ac_configure_extra_args --silent"
16463fi
16464
16465_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016467if \$ac_cs_recheck; then
André Hentschelcecf1052012-06-02 18:58:39 +020016468 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Alexandre Julliardabf50482008-10-31 12:56:53 +010016469 shift
16470 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16471 CONFIG_SHELL='$SHELL'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016472 export CONFIG_SHELL
Alexandre Julliardabf50482008-10-31 12:56:53 +010016473 exec "\$@"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016474fi
16475
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016476_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016478exec 5>>config.log
16479{
16480 echo
16481 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16482## Running $as_me. ##
16483_ASBOX
Alexandre Julliardabf50482008-10-31 12:56:53 +010016484 $as_echo "$ac_log"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016485} >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016486
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016487_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010016489#
16490# INIT-COMMANDS
16491#
16492wine_fn_output_makefile ()
16493{
16494 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16495$ALL_MAKEFILE_DEPENDS
16496_WINE_EOF
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016497 as_fn_error $? "could not create Makefile" "$LINENO" 5
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010016498}
16499
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016500_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016501
Alexandre Julliardabf50482008-10-31 12:56:53 +010016502cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016503
16504# Handling of arguments.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016505for ac_config_target in $ac_config_targets
16506do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016507 case $ac_config_target in
16508 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
Alexandre Julliardc4704c22006-09-22 09:33:00 +020016509 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
Alexandre Julliard40977bf2010-11-11 12:24:46 +010016510 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
Alexandre Julliarda6320522010-02-03 13:14:03 +010016511 "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 +010016512 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16513 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16514 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16515 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
Alexandre Julliard268976b2011-10-22 15:23:14 +020016516 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
Alexandre Julliard321d3882010-05-06 20:51:53 +020016517 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016518 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
Alexandre Julliard4422d222011-05-10 13:26:28 +020016519 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
Huw Davies4cffb2d2011-04-01 15:27:48 +010016520 "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020016521 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16522 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
Alexandre Julliard1c60e3b2006-09-12 16:10:51 +020016523 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
Alexandre Julliardb8a2e3b2006-11-16 14:49:25 +010016524 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016525 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16526 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16527 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
Alexandre Julliardcb1fc8f2010-02-10 11:18:58 +010016528 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016529 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16530 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016531 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010016532 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
Alexandre Julliard81b8ee82010-09-19 12:36:48 +020016533 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016534
Alexandre Julliard9797da42011-04-27 17:37:43 +020016535 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016536 esac
16537done
16538
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016539
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016540# If the user did not use the arguments to specify the items to instantiate,
16541# then the envvar interface is used. Set only those that are not.
16542# We use the long form for the default assignment because of an extremely
16543# bizarre bug on SunOS 4.1.3.
16544if $ac_need_defaults; then
16545 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16546 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016547 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016548 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16549fi
16550
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016551# Have a temporary directory for convenience. Make it in the build tree
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016552# simply because there is no reason against having it here, and in addition,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016553# creating and moving files from /tmp can sometimes cause problems.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016554# Hook for its removal unless debugging.
16555# Note that there is a small window in which the directory will not be cleaned:
16556# after its creation but before its name has been assigned to `$tmp'.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016557$debug ||
16558{
Alexandre Julliard9797da42011-04-27 17:37:43 +020016559 tmp= ac_tmp=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016560 trap 'exit_status=$?
Alexandre Julliard9797da42011-04-27 17:37:43 +020016561 : "${ac_tmp:=$tmp}"
16562 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016563' 0
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016564 trap 'as_fn_exit 1' 1 2 13 15
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016565}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016566# Create a (secure) tmp directory for tmp files.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016567
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016568{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016569 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Alexandre Julliard9797da42011-04-27 17:37:43 +020016570 test -d "$tmp"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016571} ||
16572{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016573 tmp=./conf$$-$RANDOM
16574 (umask 077 && mkdir "$tmp")
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016575} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Alexandre Julliard9797da42011-04-27 17:37:43 +020016576ac_tmp=$tmp
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016577
Alexandre Julliardabf50482008-10-31 12:56:53 +010016578# Set up the scripts for CONFIG_FILES section.
16579# No need to generate them if there are no CONFIG_FILES.
16580# This happens for instance with `./config.status config.h'.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016581if test -n "$CONFIG_FILES"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016582
Alexandre Julliardabf50482008-10-31 12:56:53 +010016583if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16584 ac_cs_awk_getline=:
16585 ac_cs_awk_pipe_init=
16586 ac_cs_awk_read_file='
16587 while ((getline aline < (F[key])) > 0)
16588 print(aline)
16589 close(F[key])'
16590 ac_cs_awk_pipe_fini=
16591else
16592 ac_cs_awk_getline=false
16593 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16594 ac_cs_awk_read_file='
16595 print "|#_!!_#|"
16596 print "cat " F[key] " &&"
16597 '$ac_cs_awk_pipe_init
16598 # The final `:' finishes the AND list.
16599 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16600fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016601ac_cr=`echo X | tr X '\015'`
16602# On cygwin, bash can eat \r inside `` if the user requested igncr.
16603# But we know of no other shell where ac_cr would be empty at this
16604# point, so we can use a bashism as a fallback.
16605if test "x$ac_cr" = x; then
16606 eval ac_cr=\$\'\\r\'
16607fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010016608ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16609if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016610 ac_cs_awk_cr='\\r'
Alexandre Julliardabf50482008-10-31 12:56:53 +010016611else
16612 ac_cs_awk_cr=$ac_cr
16613fi
16614
Alexandre Julliard9797da42011-04-27 17:37:43 +020016615echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016616_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016617
Alexandre Julliardabf50482008-10-31 12:56:53 +010016618# Create commands to substitute file output variables.
16619{
16620 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
Alexandre Julliard9797da42011-04-27 17:37:43 +020016621 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
Alexandre Julliardabf50482008-10-31 12:56:53 +010016622 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16623 echo "_ACAWK" &&
16624 echo "_ACEOF"
16625} >conf$$files.sh &&
16626. ./conf$$files.sh ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016627 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016628rm -f conf$$files.sh
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016629
Alexandre Julliardabf50482008-10-31 12:56:53 +010016630{
16631 echo "cat >conf$$subs.awk <<_ACEOF" &&
16632 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16633 echo "_ACEOF"
16634} >conf$$subs.sh ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016635 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16636ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016637ac_delim='%!_!# '
16638for ac_last_try in false false false false false :; do
Alexandre Julliardabf50482008-10-31 12:56:53 +010016639 . ./conf$$subs.sh ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016640 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016641
Alexandre Julliardabf50482008-10-31 12:56:53 +010016642 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16643 if test $ac_delim_n = $ac_delim_num; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016644 break
16645 elif $ac_last_try; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016646 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016647 else
16648 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016649 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016650done
Alexandre Julliardabf50482008-10-31 12:56:53 +010016651rm -f conf$$subs.sh
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016652
Alexandre Julliardabf50482008-10-31 12:56:53 +010016653cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliard9797da42011-04-27 17:37:43 +020016654cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016655_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016656sed -n '
16657h
16658s/^/S["/; s/!.*/"]=/
16659p
16660g
16661s/^[^!]*!//
16662:repl
16663t repl
16664s/'"$ac_delim"'$//
16665t delim
16666:nl
16667h
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016668s/\(.\{148\}\)..*/\1/
Alexandre Julliardabf50482008-10-31 12:56:53 +010016669t more1
16670s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16671p
16672n
16673b repl
16674:more1
16675s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16676p
16677g
16678s/.\{148\}//
16679t nl
16680:delim
16681h
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016682s/\(.\{148\}\)..*/\1/
Alexandre Julliardabf50482008-10-31 12:56:53 +010016683t more2
16684s/["\\]/\\&/g; s/^/"/; s/$/"/
16685p
16686b
16687:more2
16688s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16689p
16690g
16691s/.\{148\}//
16692t delim
16693' <conf$$subs.awk | sed '
16694/^[^""]/{
16695 N
16696 s/\n//
16697}
16698' >>$CONFIG_STATUS || ac_write_fail=1
16699rm -f conf$$subs.awk
16700cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16701_ACAWK
Alexandre Julliard9797da42011-04-27 17:37:43 +020016702cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Alexandre Julliardabf50482008-10-31 12:56:53 +010016703 for (key in S) S_is_set[key] = 1
16704 FS = ""
16705 \$ac_cs_awk_pipe_init
16706}
16707{
16708 line = $ 0
16709 nfields = split(line, field, "@")
16710 substed = 0
16711 len = length(field[1])
16712 for (i = 2; i < nfields; i++) {
16713 key = field[i]
16714 keylen = length(key)
16715 if (S_is_set[key]) {
16716 value = S[key]
16717 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16718 len += length(value) + length(field[++i])
16719 substed = 1
16720 } else
16721 len += 1 + keylen
16722 }
16723 if (nfields == 3 && !substed) {
16724 key = field[2]
16725 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16726 \$ac_cs_awk_read_file
16727 next
16728 }
16729 }
16730 print line
16731}
16732\$ac_cs_awk_pipe_fini
16733_ACAWK
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016734_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16736if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16737 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16738else
16739 cat
Alexandre Julliard9797da42011-04-27 17:37:43 +020016740fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016741 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016742_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016743
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016744# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16745# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016746# trailing colons and then remove the whole line if VPATH becomes empty
16747# (actually we leave an empty line to preserve line numbers).
16748if test "x$srcdir" = x.; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016749 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16750h
16751s///
16752s/^/:/
16753s/[ ]*$/:/
16754s/:\$(srcdir):/:/g
16755s/:\${srcdir}:/:/g
16756s/:@srcdir@:/:/g
16757s/^:*//
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016758s/:*$//
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016759x
16760s/\(=[ ]*\).*/\1/
16761G
16762s/\n//
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016763s/^[^=]*=[ ]*$//
16764}'
16765fi
16766
Alexandre Julliardabf50482008-10-31 12:56:53 +010016767cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016768fi # test -n "$CONFIG_FILES"
16769
Alexandre Julliardabf50482008-10-31 12:56:53 +010016770# Set up the scripts for CONFIG_HEADERS section.
16771# No need to generate them if there are no CONFIG_HEADERS.
16772# This happens for instance with `./config.status Makefile'.
16773if test -n "$CONFIG_HEADERS"; then
Alexandre Julliard9797da42011-04-27 17:37:43 +020016774cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Alexandre Julliardabf50482008-10-31 12:56:53 +010016775BEGIN {
16776_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016777
Alexandre Julliardabf50482008-10-31 12:56:53 +010016778# Transform confdefs.h into an awk script `defines.awk', embedded as
16779# here-document in config.status, that substitutes the proper values into
16780# config.h.in to produce config.h.
16781
16782# Create a delimiter string that does not exist in confdefs.h, to ease
16783# handling of long lines.
16784ac_delim='%!_!# '
16785for ac_last_try in false false :; do
Alexandre Julliard9797da42011-04-27 17:37:43 +020016786 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16787 if test -z "$ac_tt"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010016788 break
16789 elif $ac_last_try; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016790 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016791 else
16792 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16793 fi
16794done
16795
16796# For the awk script, D is an array of macro values keyed by name,
16797# likewise P contains macro parameters if any. Preserve backslash
16798# newline sequences.
16799
16800ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16801sed -n '
16802s/.\{148\}/&'"$ac_delim"'/g
16803t rset
16804:rset
16805s/^[ ]*#[ ]*define[ ][ ]*/ /
16806t def
16807d
16808:def
16809s/\\$//
16810t bsnl
16811s/["\\]/\\&/g
16812s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16813D["\1"]=" \3"/p
16814s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16815d
16816:bsnl
16817s/["\\]/\\&/g
16818s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16819D["\1"]=" \3\\\\\\n"\\/p
16820t cont
16821s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16822t cont
16823d
16824:cont
16825n
16826s/.\{148\}/&'"$ac_delim"'/g
16827t clear
16828:clear
16829s/\\$//
16830t bsnlc
16831s/["\\]/\\&/g; s/^/"/; s/$/"/p
16832d
16833:bsnlc
16834s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16835b cont
16836' <confdefs.h | sed '
16837s/'"$ac_delim"'/"\\\
16838"/g' >>$CONFIG_STATUS || ac_write_fail=1
16839
16840cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16841 for (key in D) D_is_set[key] = 1
16842 FS = ""
16843}
16844/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16845 line = \$ 0
16846 split(line, arg, " ")
16847 if (arg[1] == "#") {
16848 defundef = arg[2]
16849 mac1 = arg[3]
16850 } else {
16851 defundef = substr(arg[1], 2)
16852 mac1 = arg[2]
16853 }
16854 split(mac1, mac2, "(") #)
16855 macro = mac2[1]
16856 prefix = substr(line, 1, index(line, defundef) - 1)
16857 if (D_is_set[macro]) {
16858 # Preserve the white space surrounding the "#".
16859 print prefix "define", macro P[macro] D[macro]
16860 next
16861 } else {
16862 # Replace #undef with comments. This is necessary, for example,
16863 # in the case of _POSIX_SOURCE, which is predefined and required
16864 # on some systems where configure will not decide to define it.
16865 if (defundef == "undef") {
16866 print "/*", prefix defundef, macro, "*/"
16867 next
16868 }
16869 }
16870}
16871{ print }
16872_ACAWK
16873_ACEOF
16874cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016875 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016876fi # test -n "$CONFIG_HEADERS"
16877
16878
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016879eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
Alexandre Julliardabf50482008-10-31 12:56:53 +010016880shift
16881for ac_tag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016882do
16883 case $ac_tag in
16884 :[FHLC]) ac_mode=$ac_tag; continue;;
16885 esac
16886 case $ac_mode$ac_tag in
16887 :[FHL]*:*);;
Alexandre Julliard9797da42011-04-27 17:37:43 +020016888 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016889 :[FH]-) ac_tag=-:-;;
16890 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16891 esac
16892 ac_save_IFS=$IFS
16893 IFS=:
16894 set x $ac_tag
16895 IFS=$ac_save_IFS
16896 shift
16897 ac_file=$1
16898 shift
16899
16900 case $ac_mode in
16901 :L) ac_source=$1;;
16902 :[FH])
16903 ac_file_inputs=
16904 for ac_f
16905 do
16906 case $ac_f in
Alexandre Julliard9797da42011-04-27 17:37:43 +020016907 -) ac_f="$ac_tmp/stdin";;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016908 *) # Look for the file first in the build tree, then in the source tree
16909 # (if the path is not absolute). The absolute path cannot be DOS-style,
16910 # because $ac_f cannot contain `:'.
16911 test -f "$ac_f" ||
16912 case $ac_f in
16913 [\\/$]*) false;;
16914 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16915 esac ||
Alexandre Julliard9797da42011-04-27 17:37:43 +020016916 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016917 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +010016918 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016919 as_fn_append ac_file_inputs " '$ac_f'"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016920 done
16921
16922 # Let's still pretend it is `configure' which instantiates (i.e., don't
16923 # use $as_me), people would be surprised to read:
16924 # /* config.h. Generated by config.status. */
Alexandre Julliardabf50482008-10-31 12:56:53 +010016925 configure_input='Generated from '`
16926 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16927 `' by configure.'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016928 if test x"$ac_file" != x-; then
16929 configure_input="$ac_file. $configure_input"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016930 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016931$as_echo "$as_me: creating $ac_file" >&6;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016932 fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010016933 # Neutralize special characters interpreted by sed in replacement strings.
16934 case $configure_input in #(
16935 *\&* | *\|* | *\\* )
16936 ac_sed_conf_input=`$as_echo "$configure_input" |
16937 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16938 *) ac_sed_conf_input=$configure_input;;
16939 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016940
16941 case $ac_tag in
Alexandre Julliard9797da42011-04-27 17:37:43 +020016942 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16943 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016944 esac
16945 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016946 esac
16947
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016948 ac_dir=`$as_dirname -- "$ac_file" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016949$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000016950 X"$ac_file" : 'X\(//\)[^/]' \| \
16951 X"$ac_file" : 'X\(//\)$' \| \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016952 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliardabf50482008-10-31 12:56:53 +010016953$as_echo X"$ac_file" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16955 s//\1/
16956 q
16957 }
16958 /^X\(\/\/\)[^/].*/{
16959 s//\1/
16960 q
16961 }
16962 /^X\(\/\/\)$/{
16963 s//\1/
16964 q
16965 }
16966 /^X\(\/\).*/{
16967 s//\1/
16968 q
16969 }
16970 s/.*/./; q'`
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016971 as_dir="$ac_dir"; as_fn_mkdir_p
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016972 ac_builddir=.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016973
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016974case "$ac_dir" in
16975.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16976*)
Alexandre Julliardabf50482008-10-31 12:56:53 +010016977 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016978 # A ".." for each directory in $ac_dir_suffix.
Alexandre Julliardabf50482008-10-31 12:56:53 +010016979 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016980 case $ac_top_builddir_sub in
16981 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16982 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16983 esac ;;
16984esac
16985ac_abs_top_builddir=$ac_pwd
16986ac_abs_builddir=$ac_pwd$ac_dir_suffix
16987# for backward compatibility:
16988ac_top_builddir=$ac_top_build_prefix
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016989
16990case $srcdir in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016991 .) # We are building in place.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016992 ac_srcdir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016993 ac_top_srcdir=$ac_top_builddir_sub
16994 ac_abs_top_srcdir=$ac_pwd ;;
16995 [\\/]* | ?:[\\/]* ) # Absolute name.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016996 ac_srcdir=$srcdir$ac_dir_suffix;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016997 ac_top_srcdir=$srcdir
16998 ac_abs_top_srcdir=$srcdir ;;
16999 *) # Relative name.
17000 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17001 ac_top_srcdir=$ac_top_build_prefix$srcdir
17002 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017003esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017004ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Alexandre Julliard875927f2004-01-02 01:55:29 +000017005
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017006
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017007 case $ac_mode in
17008 :F)
17009 #
17010 # CONFIG_FILE
17011 #
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017012
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017013 case $INSTALL in
17014 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017015 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000017016 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017017_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017018
Alexandre Julliardabf50482008-10-31 12:56:53 +010017019cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017020# If the template does not know about datarootdir, expand it.
17021# FIXME: This hack should be removed a few years after 2.60.
Jeremy White0ebeb532006-06-20 13:18:41 +020017022ac_datarootdir_hack=; ac_datarootdir_seen=
Alexandre Julliardabf50482008-10-31 12:56:53 +010017023ac_sed_dataroot='
17024/datarootdir/ {
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017025 p
17026 q
17027}
17028/@datadir@/p
17029/@docdir@/p
17030/@infodir@/p
17031/@localedir@/p
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020017032/@mandir@/p'
Alexandre Julliardabf50482008-10-31 12:56:53 +010017033case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Jeremy White0ebeb532006-06-20 13:18:41 +020017034*datarootdir*) ac_datarootdir_seen=yes;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017035*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020017036 { $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 +010017037$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017038_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010017039cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017040 ac_datarootdir_hack='
17041 s&@datadir@&$datadir&g
17042 s&@docdir@&$docdir&g
17043 s&@infodir@&$infodir&g
17044 s&@localedir@&$localedir&g
17045 s&@mandir@&$mandir&g
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020017046 s&\\\${datarootdir}&$datarootdir&g' ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017047esac
17048_ACEOF
17049
17050# Neutralize VPATH when `$srcdir' = `.'.
17051# Shell code in configure.ac might set extrasub.
17052# FIXME: do we really want to maintain this feature?
Alexandre Julliardabf50482008-10-31 12:56:53 +010017053cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17054ac_sed_extra="$ac_vpsub
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017055$extrasub
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017056_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010017057cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017058:t
17059/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Alexandre Julliardabf50482008-10-31 12:56:53 +010017060s|@configure_input@|$ac_sed_conf_input|;t t
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017061s&@top_builddir@&$ac_top_builddir_sub&;t t
Alexandre Julliardabf50482008-10-31 12:56:53 +010017062s&@top_build_prefix@&$ac_top_build_prefix&;t t
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017063s&@srcdir@&$ac_srcdir&;t t
17064s&@abs_srcdir@&$ac_abs_srcdir&;t t
17065s&@top_srcdir@&$ac_top_srcdir&;t t
17066s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17067s&@builddir@&$ac_builddir&;t t
17068s&@abs_builddir@&$ac_abs_builddir&;t t
17069s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17070s&@INSTALL@&$ac_INSTALL&;t t
17071$ac_datarootdir_hack
Alexandre Julliardabf50482008-10-31 12:56:53 +010017072"
17073eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17074if $ac_cs_awk_getline; then
Alexandre Julliard9797da42011-04-27 17:37:43 +020017075 $AWK -f "$ac_tmp/subs.awk"
Alexandre Julliardabf50482008-10-31 12:56:53 +010017076else
Alexandre Julliard9797da42011-04-27 17:37:43 +020017077 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17078fi \
17079 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017080
Jeremy White0ebeb532006-06-20 13:18:41 +020017081test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Alexandre Julliard9797da42011-04-27 17:37:43 +020017082 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17083 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17084 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020017085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020017086which seems to be undefined. Please make sure it is defined" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010017087$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020017088which seems to be undefined. Please make sure it is defined" >&2;}
Jeremy White0ebeb532006-06-20 13:18:41 +020017089
Alexandre Julliard9797da42011-04-27 17:37:43 +020017090 rm -f "$ac_tmp/stdin"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017091 case $ac_file in
Alexandre Julliard9797da42011-04-27 17:37:43 +020017092 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17093 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Alexandre Julliardabf50482008-10-31 12:56:53 +010017094 esac \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020017095 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017096 ;;
17097 :H)
17098 #
17099 # CONFIG_HEADER
17100 #
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017101 if test x"$ac_file" != x-; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010017102 {
17103 $as_echo "/* $configure_input */" \
Alexandre Julliard9797da42011-04-27 17:37:43 +020017104 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17105 } >"$ac_tmp/config.h" \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020017106 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Alexandre Julliard9797da42011-04-27 17:37:43 +020017107 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020017108 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010017109$as_echo "$as_me: $ac_file is unchanged" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017110 else
Alexandre Julliardabf50482008-10-31 12:56:53 +010017111 rm -f "$ac_file"
Alexandre Julliard9797da42011-04-27 17:37:43 +020017112 mv "$ac_tmp/config.h" "$ac_file" \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020017113 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017114 fi
17115 else
Alexandre Julliardabf50482008-10-31 12:56:53 +010017116 $as_echo "/* $configure_input */" \
Alexandre Julliard9797da42011-04-27 17:37:43 +020017117 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020017118 || as_fn_error $? "could not create -" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017119 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017120 ;;
Alexandre Julliard7d020c92010-02-03 13:12:12 +010017121 :L)
17122 #
17123 # CONFIG_LINK
17124 #
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017125
Alexandre Julliard7d020c92010-02-03 13:12:12 +010017126 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17127 :
17128 else
17129 # Prefer the file from the source tree if names are identical.
17130 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17131 ac_source=$srcdir/$ac_source
17132 fi
17133
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17135$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17136
17137 if test ! -r "$ac_source"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020017138 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
Alexandre Julliard7d020c92010-02-03 13:12:12 +010017139 fi
17140 rm -f "$ac_file"
17141
17142 # Try a relative symlink, then a hard link, then a copy.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020017143 case $ac_source in
Alexandre Julliard7d020c92010-02-03 13:12:12 +010017144 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17145 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17146 esac
17147 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17148 ln "$ac_source" "$ac_file" 2>/dev/null ||
17149 cp -p "$ac_source" "$ac_file" ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020017150 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
Alexandre Julliard7d020c92010-02-03 13:12:12 +010017151 fi
17152 ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020017153 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010017154$as_echo "$as_me: executing $ac_file commands" >&6;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017155 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017156 esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017157
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017158
17159 case $ac_file$ac_mode in
Alexandre Julliardc4704c22006-09-22 09:33:00 +020017160 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
Huw Davies4cffb2d2011-04-01 15:27:48 +010017161 "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
17162$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 +010017163 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
17164$as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
17165 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
17166$as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
17167 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
17168$as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
17169 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
17170$as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
17171 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
17172$as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
17173 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
17174$as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010017175 "Makefile":C) wine_fn_output_makefile Makefile ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017176
17177 esac
17178done # for ac_tag
17179
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000017180
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020017181as_fn_exit 0
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017182_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017183ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017184
Alexandre Julliardabf50482008-10-31 12:56:53 +010017185test $ac_write_fail = 0 ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020017186 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010017187
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017188
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017189# configure is writing to config.log, and then calls config.status.
17190# config.status does its own redirection, appending to config.log.
17191# Unfortunately, on DOS this fails, as config.log is still kept open
17192# by configure, so config.status won't be able to write to it; its
17193# output is simply discarded. So we exec the FD to /dev/null,
17194# effectively closing config.log, so it can be properly (re)opened and
17195# appended to by config.status. When coming back to configure, we
17196# need to make the FD available again.
17197if test "$no_create" != yes; then
17198 ac_cs_success=:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017199 ac_config_status_args=
17200 test "$silent" = yes &&
17201 ac_config_status_args="$ac_config_status_args --quiet"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017202 exec 5>/dev/null
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017203 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017204 exec 5>>config.log
17205 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17206 # would make configure fail if this is the last instruction.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020017207 $ac_cs_success || as_fn_exit 1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017208fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010017209if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020017210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010017211$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17212fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017213
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017214
Alexandre Julliarde3bd1112006-09-21 11:14:38 +020017215if test "$no_create" = "yes"
17216then
17217 exit 0
17218fi
17219
Alexandre Julliardf9dec942007-07-10 15:14:15 +020017220ac_save_IFS="$IFS"
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010017221if test "x$wine_notices != "x; then
17222 echo >&6
Rafał Mużyło4736c992008-10-20 21:43:21 +020017223 IFS="|"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020017224 for msg in $wine_notices; do
Rafał Mużyło4736c992008-10-20 21:43:21 +020017225 IFS="$ac_save_IFS"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020017226 if test -n "$msg"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020017227 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010017228$as_echo "$as_me: $msg" >&6;}
Alexandre Julliardf9dec942007-07-10 15:14:15 +020017229 fi
17230 done
17231fi
Rafał Mużyło4736c992008-10-20 21:43:21 +020017232IFS="|"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020017233for msg in $wine_warnings; do
Rafał Mużyło4736c992008-10-20 21:43:21 +020017234 IFS="$ac_save_IFS"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020017235 if test -n "$msg"; then
17236 echo >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020017237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010017238$as_echo "$as_me: WARNING: $msg" >&2;}
Detlef Riekenberge84a3822006-08-21 05:28:17 +020017239 fi
Alexandre Julliardf9dec942007-07-10 15:14:15 +020017240done
17241IFS="$ac_save_IFS"
Francois Gouget99d026f2005-03-19 17:08:18 +000017242
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010017243echo "
Alexandre Julliard64362ac2010-02-23 13:33:52 +010017244$as_me: Finished. Do '${ac_make}' to compile Wine.
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010017245" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017246