blob: a01d5f66fe0402510458c4688c69780b69455f15 [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 Julliard65174622010-06-11 19:40:31 +02003# Generated by GNU Autoconf 2.65 for Wine 1.2-rc3.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004#
Alexandre Julliard875927f2004-01-02 01:55:29 +00005# Report bugs to <wine-devel@winehq.org>.
6#
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01007#
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010019# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022 emulate sh
23 NULLCMD=:
Alexandre Julliardabf50482008-10-31 12:56:53 +010024 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Alexandre Julliard11af04e2002-10-10 03:48:04 +000025 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020027 setopt NO_GLOB_SUBST
28else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010034esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000035fi
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010036
37
Alexandre Julliardabf50482008-10-31 12:56:53 +010038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020062 case $arg in #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010063 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
Alexandre Julliarddaa28862002-04-11 21:54:01 +000076# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010078 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000083fi
84
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020091IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020094case $0 in #((
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020095 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliarddaa28862002-04-11 21:54:01 +000097for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200103IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000104
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +0100113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200114 exit 1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200115fi
116
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
Alexandre Julliardabf50482008-10-31 12:56:53 +0100130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200134
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: wine-devel@winehq.org about your system, including any
235$0: error possibly output before this message. Then install
236$0: a modern shell, or manually run the script under such a
237$0: shell if you do have one."
238 fi
239 exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257 { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266 return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274 set +e
275 as_fn_set_status $1
276 exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359fi # as_fn_arith
360
361
362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with status $?, using 1 if that was 0.
367as_fn_error ()
368{
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 fi
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376} # as_fn_error
377
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200378if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381else
382 as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387else
388 as_basename=false
389fi
390
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393else
394 as_dirname=false
395fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200396
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliardabf50482008-10-31 12:56:53 +0100401$as_echo X/"$0" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200422
423
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000433 sed '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000438 N
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000441 t loop
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200442 s/-\n.*//
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000443 ' >$as_me.lineno &&
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200444 chmod +x "$as_me.lineno" ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200445 { $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 +0000446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000451 # Exit status is that of the last command.
452 exit
453}
454
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200455ECHO_C= ECHO_N= ECHO_T=
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200456case `echo -n x` in #(((((
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200457-n*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200458 case `echo 'xy\c'` in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200463 esac;;
464*)
465 ECHO_N='-n';;
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000466esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000467
468rm -f conf$$ conf$$.exe conf$$.file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200469if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471else
472 rm -f conf$$.dir
Alexandre Julliardabf50482008-10-31 12:56:53 +0100473 mkdir conf$$.dir 2>/dev/null
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200474fi
Alexandre Julliardabf50482008-10-31 12:56:53 +0100475if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000487 as_ln_s='cp -p'
Alexandre Julliardabf50482008-10-31 12:56:53 +0100488 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000489else
490 as_ln_s='cp -p'
491fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000494
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000495if mkdir -p . 2>/dev/null; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200496 as_mkdir_p='mkdir -p "$as_dir"'
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000497else
Alexandre Julliard875927f2004-01-02 01:55:29 +0000498 test -d ./-p && rmdir ./-p
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000499 as_mkdir_p=false
500fi
501
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200504else
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +0100513 test -d "$1/.";
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100514 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200515 case $1 in #(
Alexandre Julliardabf50482008-10-31 12:56:53 +0100516 -*)set "./$1";;
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100517 esac;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200522fi
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100523as_executable_p=$as_test_x
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000524
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000525# Sed expression to map a string onto a valid CPP name.
Alexandre Julliard875927f2004-01-02 01:55:29 +0000526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000527
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000528# Sed expression to map a string onto a valid variable name.
Alexandre Julliard875927f2004-01-02 01:55:29 +0000529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000530
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000531
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +0100532test -n "$DJDIR" || exec 7<&0 </dev/null
533exec 6>&1
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000534
535# Name of the host.
536# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537# so uname gets run too.
538ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000540#
541# Initializations.
542#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000543ac_default_prefix=/usr/local
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200544ac_clean_files=
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000545ac_config_libobj_dir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200546LIBOBJS=
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000547cross_compiling=no
548subdirs=
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000549MFLAGS=
550MAKEFLAGS=
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000551
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000552# Identity of this package.
553PACKAGE_NAME='Wine'
554PACKAGE_TARNAME='wine'
Alexandre Julliard65174622010-06-11 19:40:31 +0200555PACKAGE_VERSION='1.2-rc3'
556PACKAGE_STRING='Wine 1.2-rc3'
Alexandre Julliard875927f2004-01-02 01:55:29 +0000557PACKAGE_BUGREPORT='wine-devel@winehq.org'
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200558PACKAGE_URL='http://www.winehq.org'
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000559
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000560ac_unique_file="server/atom.c"
561# Factoring default headers for most tests.
562ac_includes_default="\
563#include <stdio.h>
Phil Krylovf0ca5862006-11-05 23:03:46 +0300564#ifdef HAVE_SYS_TYPES_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000565# include <sys/types.h>
566#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300567#ifdef HAVE_SYS_STAT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000568# include <sys/stat.h>
569#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300570#ifdef STDC_HEADERS
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000571# include <stdlib.h>
572# include <stddef.h>
573#else
Phil Krylovf0ca5862006-11-05 23:03:46 +0300574# ifdef HAVE_STDLIB_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000575# include <stdlib.h>
576# endif
577#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300578#ifdef HAVE_STRING_H
579# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000580# include <memory.h>
581# endif
582# include <string.h>
583#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300584#ifdef HAVE_STRINGS_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000585# include <strings.h>
586#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300587#ifdef HAVE_INTTYPES_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000588# include <inttypes.h>
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200589#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300590#ifdef HAVE_STDINT_H
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200591# include <stdint.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000592#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300593#ifdef HAVE_UNISTD_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000594# include <unistd.h>
595#endif"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000596
Alexandre Julliardabf50482008-10-31 12:56:53 +0100597ac_subst_vars='LTLIBOBJS
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200598LIBOBJS
Alexandre Julliard454fb3c2010-02-08 21:29:13 +0100599ALL_TEST_BINARIES
Alexandre Julliard7d831152010-03-20 15:07:45 +0100600ALL_WINETEST_DEPENDS
Alexandre Julliardabf50482008-10-31 12:56:53 +0100601LDAPLIBS
602LIBPOLL
603LIBDL
604EXTRA_BINARIES
Alexandre Julliard3e6eab32009-08-13 19:54:31 +0200605MAIN_BINARY
Alexandre Julliardabf50482008-10-31 12:56:53 +0100606SOCKETLIBS
607CRTLIBS
Alexandre Julliardb860c4a2009-09-01 22:36:13 +0200608TOOLSEXT
Alexandre Julliardabf50482008-10-31 12:56:53 +0100609LDPATH
Alexandre Julliard6c142382010-04-11 12:47:30 +0200610UNWINDFLAGS
Alexandre Julliardabf50482008-10-31 12:56:53 +0100611BUILTINFLAG
612EXTRACFLAGS
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +0100613LIBKSTAT
Maarten Lankhorstd4354992009-12-09 11:52:09 +0100614LIBOPENAL
Aric Stewartdb71d7c2009-08-19 09:37:48 -0500615LIBMPG123
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +0200616PNGINCL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100617FONTCONFIGINCL
618CUPSINCL
619AUDIOIOLIBS
620ALSALIBS
621ESDLIBS
622ESDINCL
623ESDCONFIG
Jacek Caban11ca05f2009-05-29 23:35:13 +0200624ZLIB
Alexandre Julliardabf50482008-10-31 12:56:53 +0100625FREETYPEINCL
626FREETYPELIBS
627ft_devel
628LCMSLIBS
629RESOLVLIBS
630GPHOTO2INCL
631GPHOTO2LIBS
632gphoto2port_devel
633gphoto2_devel
634SANEINCL
635sane_devel
636GNUTLSINCL
637HALINCL
638XSLTINCL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100639XML2INCL
640XML2LIBS
641NASLIBS
Alexandre Julliard40664c02009-02-11 20:40:58 +0100642X_EXTRA_LIBS
643X_LIBS
644X_PRE_LIBS
645X_CFLAGS
646XMKMF
Alexandre Julliardc891f6b2009-02-11 20:41:50 +0100647LIBPTHREAD
Alexandre Julliard1f254212010-01-23 20:26:49 +0100648CROSSTARGET
Alexandre Julliardabf50482008-10-31 12:56:53 +0100649CROSSTEST
Alexandre Julliardabf50482008-10-31 12:56:53 +0100650CROSSCC
651CARBONLIB
Maarten Lankhorstd4354992009-12-09 11:52:09 +0100652FRAMEWORK_OPENAL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100653COREAUDIO
654DISKARBITRATIONLIB
655LDEXECFLAGS
656IOKITLIB
657COREFOUNDATIONLIB
658SECURITYLIB
Alexandre Julliardabf50482008-10-31 12:56:53 +0100659DLLWRAP
660DLLTOOL
661LDD
662LDRPATH_LOCAL
663LDRPATH_INSTALL
664IMPLIBEXT
665LIBEXT
666LDDLLFLAGS
667LDSHARED
668DLLFLAGS
669DLLEXT
Alexandre Julliard40664c02009-02-11 20:40:58 +0100670CPP
Alexandre Julliardabf50482008-10-31 12:56:53 +0100671OPENGL_LIBS
672XLIB
Alexandre Julliardabf50482008-10-31 12:56:53 +0100673PRELINK
Andrew Nguyen2eda9c72010-05-25 22:20:14 -0500674MAINTAINER_MODE
Alexandre Julliardabf50482008-10-31 12:56:53 +0100675ICOTOOL
Joel Holdsworth476a2be2010-04-05 11:15:03 +0100676CONVERT
Alexandre Julliardabf50482008-10-31 12:56:53 +0100677RSVG
678PKG_CONFIG
679FONTFORGE
680LINTFLAGS
681LINT
682INSTALL_DATA
683INSTALL_SCRIPT
684INSTALL_PROGRAM
685LDCONFIG
686EGREP
687GREP
Alexandre Julliardabf50482008-10-31 12:56:53 +0100688LN_S
Alexandre Julliardabf50482008-10-31 12:56:53 +0100689STRIP
690RANLIB
691ARFLAGS
692ac_ct_AR
693AR
Alexandre Julliardabf50482008-10-31 12:56:53 +0100694BISON
695FLEX
Alexandre Julliardabf50482008-10-31 12:56:53 +0100696TOOLSDIR
Alexandre Julliard90647772009-08-13 19:48:42 +0200697WOW64_DISABLE
Alexandre Julliard07f77c42009-01-15 21:17:51 +0100698TARGETFLAGS
Alexandre Julliardabf50482008-10-31 12:56:53 +0100699CPPBIN
700ac_ct_CXX
701CXXFLAGS
702CXX
703OBJEXT
704EXEEXT
705ac_ct_CC
706CPPFLAGS
707LDFLAGS
708CFLAGS
709CC
710SET_MAKE
Alexandre Julliardabf50482008-10-31 12:56:53 +0100711host_os
712host_vendor
713host_cpu
714host
715build_os
716build_vendor
717build_cpu
718build
Alexandre Julliardabf50482008-10-31 12:56:53 +0100719target_alias
720host_alias
721build_alias
722LIBS
723ECHO_T
724ECHO_N
725ECHO_C
726DEFS
727mandir
728localedir
729libdir
730psdir
731pdfdir
732dvidir
733htmldir
734infodir
735docdir
736oldincludedir
737includedir
738localstatedir
739sharedstatedir
740sysconfdir
741datadir
742datarootdir
743libexecdir
744sbindir
745bindir
746program_transform_name
747prefix
748exec_prefix
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200749PACKAGE_URL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100750PACKAGE_BUGREPORT
751PACKAGE_STRING
752PACKAGE_VERSION
753PACKAGE_TARNAME
754PACKAGE_NAME
755PATH_SEPARATOR
756SHELL'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200757ac_subst_files='MAKE_RULES
Alexandre Julliardcb1fc8f2010-02-10 11:18:58 +0100758MAKE_TEST_RULES
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200759MAKE_DLL_RULES
760MAKE_IMPLIB_RULES
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200761MAKE_PROG_RULES'
Alexandre Julliardabf50482008-10-31 12:56:53 +0100762ac_user_opts='
763enable_option_checking
764enable_win16
765enable_win64
Alexandre Julliard35078f42008-11-21 10:16:12 +0100766enable_tests
Alexandre Julliardabf50482008-10-31 12:56:53 +0100767enable_maintainer_mode
768with_alsa
769with_audioio
770with_capi
771with_cms
772with_coreaudio
773with_cups
774with_curses
775with_esd
776with_fontconfig
777with_freetype
778with_gphoto
779with_glu
780with_gnutls
Alexandre Julliard6ce32e02009-08-19 15:53:04 +0200781with_gsm
Alexandre Julliardabf50482008-10-31 12:56:53 +0100782with_hal
783with_jack
784with_jpeg
785with_ldap
Aric Stewartdb71d7c2009-08-19 09:37:48 -0500786with_mpg123
Alexandre Julliardabf50482008-10-31 12:56:53 +0100787with_nas
Chris Robinson862965f2009-08-25 03:26:35 -0700788with_openal
Alexandre Julliardabf50482008-10-31 12:56:53 +0100789with_opengl
790with_openssl
791with_oss
792with_png
Alexandre Julliardc891f6b2009-02-11 20:41:50 +0100793with_pthread
Alexandre Julliardabf50482008-10-31 12:56:53 +0100794with_sane
Vincent Povirk73cd5692010-03-08 17:07:29 -0600795with_tiff
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +0100796with_v4l
Alexandre Julliardabf50482008-10-31 12:56:53 +0100797with_xcomposite
798with_xcursor
799with_xinerama
800with_xinput
801with_xml
802with_xrandr
803with_xrender
804with_xshape
805with_xshm
806with_xslt
807with_xxf86vm
808with_wine_tools
Alexandre Julliard39a75d32009-08-13 19:45:31 +0200809with_wine64
Eric Pouechbc56c4e2009-08-25 19:33:28 +0200810enable_largefile
Alexandre Julliardabf50482008-10-31 12:56:53 +0100811with_x
812'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200813 ac_precious_vars='build_alias
814host_alias
815target_alias
816CC
817CFLAGS
818LDFLAGS
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100819LIBS
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200820CPPFLAGS
821CXX
822CXXFLAGS
823CCC
Alexandre Julliard40664c02009-02-11 20:40:58 +0100824CPP
825XMKMF'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200826
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000827
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000828# Initialize some variables set by options.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000829ac_init_help=
830ac_init_version=false
Alexandre Julliardabf50482008-10-31 12:56:53 +0100831ac_unrecognized_opts=
832ac_unrecognized_sep=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000833# The variables have the same names as the options, with
834# dashes changed to underlines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000835cache_file=/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000836exec_prefix=NONE
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000837no_create=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000838no_recursion=
839prefix=NONE
840program_prefix=NONE
841program_suffix=NONE
842program_transform_name=s,x,x,
843silent=
844site=
845srcdir=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000846verbose=
847x_includes=NONE
848x_libraries=NONE
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000849
850# Installation directory options.
851# These are left unexpanded so users can "make install exec_prefix=/foo"
852# and all the variables that are supposed to be based on exec_prefix
853# by default will actually change.
854# Use braces instead of parens because sh, perl, etc. also accept them.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200855# (The list follows the same order as the GNU Coding Standards.)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000856bindir='${exec_prefix}/bin'
857sbindir='${exec_prefix}/sbin'
858libexecdir='${exec_prefix}/libexec'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200859datarootdir='${prefix}/share'
860datadir='${datarootdir}'
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000861sysconfdir='${prefix}/etc'
862sharedstatedir='${prefix}/com'
863localstatedir='${prefix}/var'
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000864includedir='${prefix}/include'
865oldincludedir='/usr/include'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200866docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
867infodir='${datarootdir}/info'
868htmldir='${docdir}'
869dvidir='${docdir}'
870pdfdir='${docdir}'
871psdir='${docdir}'
872libdir='${exec_prefix}/lib'
873localedir='${datarootdir}/locale'
874mandir='${datarootdir}/man'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000875
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000876ac_prev=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200877ac_dashdash=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000878for ac_option
879do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000880 # If the previous option needs an argument, assign it.
881 if test -n "$ac_prev"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200882 eval $ac_prev=\$ac_option
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000883 ac_prev=
884 continue
885 fi
886
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200887 case $ac_option in
888 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889 *) ac_optarg=yes ;;
890 esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000891
892 # Accept the important Cygnus configure options, so we can diagnose typos.
893
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200894 case $ac_dashdash$ac_option in
895 --)
896 ac_dashdash=yes ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000897
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000898 -bindir | --bindir | --bindi | --bind | --bin | --bi)
899 ac_prev=bindir ;;
900 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000901 bindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000902
903 -build | --build | --buil | --bui | --bu)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000904 ac_prev=build_alias ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000905 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000906 build_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000907
908 -cache-file | --cache-file | --cache-fil | --cache-fi \
909 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910 ac_prev=cache_file ;;
911 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000913 cache_file=$ac_optarg ;;
914
915 --config-cache | -C)
916 cache_file=config.cache ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000917
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200918 -datadir | --datadir | --datadi | --datad)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000919 ac_prev=datadir ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200920 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000921 datadir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000922
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200923 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924 | --dataroo | --dataro | --datar)
925 ac_prev=datarootdir ;;
926 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928 datarootdir=$ac_optarg ;;
929
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000930 -disable-* | --disable-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +0100931 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000932 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +0100933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200934 as_fn_error "invalid feature name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +0100935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
938 *"
939"enable_$ac_useropt"
940"*) ;;
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
943 esac
944 eval enable_$ac_useropt=no ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200945
946 -docdir | --docdir | --docdi | --doc | --do)
947 ac_prev=docdir ;;
948 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949 docdir=$ac_optarg ;;
950
951 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952 ac_prev=dvidir ;;
953 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954 dvidir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000955
956 -enable-* | --enable-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +0100957 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000958 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +0100959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200960 as_fn_error "invalid feature name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +0100961 ac_useropt_orig=$ac_useropt
962 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963 case $ac_user_opts in
964 *"
965"enable_$ac_useropt"
966"*) ;;
967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
968 ac_unrecognized_sep=', ';;
969 esac
970 eval enable_$ac_useropt=\$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000971
972 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
973 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
974 | --exec | --exe | --ex)
975 ac_prev=exec_prefix ;;
976 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
977 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
978 | --exec=* | --exe=* | --ex=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000979 exec_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000980
981 -gas | --gas | --ga | --g)
982 # Obsolete; use --with-gas.
983 with_gas=yes ;;
984
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000985 -help | --help | --hel | --he | -h)
986 ac_init_help=long ;;
987 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
988 ac_init_help=recursive ;;
989 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
990 ac_init_help=short ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000991
992 -host | --host | --hos | --ho)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000993 ac_prev=host_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000994 -host=* | --host=* | --hos=* | --ho=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000995 host_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000996
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200997 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
998 ac_prev=htmldir ;;
999 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1000 | --ht=*)
1001 htmldir=$ac_optarg ;;
1002
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001003 -includedir | --includedir | --includedi | --included | --include \
1004 | --includ | --inclu | --incl | --inc)
1005 ac_prev=includedir ;;
1006 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1007 | --includ=* | --inclu=* | --incl=* | --inc=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001008 includedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001009
1010 -infodir | --infodir | --infodi | --infod | --info | --inf)
1011 ac_prev=infodir ;;
1012 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001013 infodir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001014
1015 -libdir | --libdir | --libdi | --libd)
1016 ac_prev=libdir ;;
1017 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001018 libdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001019
1020 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1021 | --libexe | --libex | --libe)
1022 ac_prev=libexecdir ;;
1023 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1024 | --libexe=* | --libex=* | --libe=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001025 libexecdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001026
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001027 -localedir | --localedir | --localedi | --localed | --locale)
1028 ac_prev=localedir ;;
1029 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1030 localedir=$ac_optarg ;;
1031
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001032 -localstatedir | --localstatedir | --localstatedi | --localstated \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001033 | --localstate | --localstat | --localsta | --localst | --locals)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001034 ac_prev=localstatedir ;;
1035 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001036 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001037 localstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001038
1039 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1040 ac_prev=mandir ;;
1041 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001042 mandir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001043
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001044 -nfp | --nfp | --nf)
1045 # Obsolete; use --without-fp.
1046 with_fp=no ;;
1047
1048 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001049 | --no-cr | --no-c | -n)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001050 no_create=yes ;;
1051
1052 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1053 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1054 no_recursion=yes ;;
1055
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001056 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1057 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1058 | --oldin | --oldi | --old | --ol | --o)
1059 ac_prev=oldincludedir ;;
1060 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1061 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1062 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001063 oldincludedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001064
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001065 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1066 ac_prev=prefix ;;
1067 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001068 prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001069
1070 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1071 | --program-pre | --program-pr | --program-p)
1072 ac_prev=program_prefix ;;
1073 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1074 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001075 program_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001076
1077 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1078 | --program-suf | --program-su | --program-s)
1079 ac_prev=program_suffix ;;
1080 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1081 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001082 program_suffix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001083
1084 -program-transform-name | --program-transform-name \
1085 | --program-transform-nam | --program-transform-na \
1086 | --program-transform-n | --program-transform- \
1087 | --program-transform | --program-transfor \
1088 | --program-transfo | --program-transf \
1089 | --program-trans | --program-tran \
1090 | --progr-tra | --program-tr | --program-t)
1091 ac_prev=program_transform_name ;;
1092 -program-transform-name=* | --program-transform-name=* \
1093 | --program-transform-nam=* | --program-transform-na=* \
1094 | --program-transform-n=* | --program-transform-=* \
1095 | --program-transform=* | --program-transfor=* \
1096 | --program-transfo=* | --program-transf=* \
1097 | --program-trans=* | --program-tran=* \
1098 | --progr-tra=* | --program-tr=* | --program-t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001099 program_transform_name=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001100
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001101 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1102 ac_prev=pdfdir ;;
1103 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1104 pdfdir=$ac_optarg ;;
1105
1106 -psdir | --psdir | --psdi | --psd | --ps)
1107 ac_prev=psdir ;;
1108 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1109 psdir=$ac_optarg ;;
1110
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1112 | -silent | --silent | --silen | --sile | --sil)
1113 silent=yes ;;
1114
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001115 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1116 ac_prev=sbindir ;;
1117 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1118 | --sbi=* | --sb=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001119 sbindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001120
1121 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1122 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1123 | --sharedst | --shareds | --shared | --share | --shar \
1124 | --sha | --sh)
1125 ac_prev=sharedstatedir ;;
1126 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1127 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1128 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1129 | --sha=* | --sh=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001130 sharedstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001131
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001132 -site | --site | --sit)
1133 ac_prev=site ;;
1134 -site=* | --site=* | --sit=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001135 site=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001136
1137 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1138 ac_prev=srcdir ;;
1139 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001140 srcdir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001141
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001142 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1143 | --syscon | --sysco | --sysc | --sys | --sy)
1144 ac_prev=sysconfdir ;;
1145 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1146 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001147 sysconfdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001148
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001149 -target | --target | --targe | --targ | --tar | --ta | --t)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001150 ac_prev=target_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001151 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001152 target_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001153
1154 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1155 verbose=yes ;;
1156
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001157 -version | --version | --versio | --versi | --vers | -V)
1158 ac_init_version=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001159
1160 -with-* | --with-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001161 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001162 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001164 as_fn_error "invalid package name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +01001165 ac_useropt_orig=$ac_useropt
1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in
1168 *"
1169"with_$ac_useropt"
1170"*) ;;
1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1172 ac_unrecognized_sep=', ';;
1173 esac
1174 eval with_$ac_useropt=\$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001175
1176 -without-* | --without-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001177 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001178 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001180 as_fn_error "invalid package name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +01001181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1184 *"
1185"with_$ac_useropt"
1186"*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=no ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001191
1192 --x)
1193 # Obsolete; use --with-x.
1194 with_x=yes ;;
1195
1196 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1197 | --x-incl | --x-inc | --x-in | --x-i)
1198 ac_prev=x_includes ;;
1199 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1200 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001201 x_includes=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001202
1203 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1204 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1205 ac_prev=x_libraries ;;
1206 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1207 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001208 x_libraries=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001209
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001210 -*) as_fn_error "unrecognized option: \`$ac_option'
1211Try \`$0 --help' for more information."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001212 ;;
1213
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001214 *=*)
1215 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1216 # Reject names that are not valid shell variable names.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001217 case $ac_envvar in #(
1218 '' | [0-9]* | *[!_$as_cr_alnum]* )
1219 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1220 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001221 eval $ac_envvar=\$ac_optarg
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001222 export $ac_envvar ;;
1223
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001224 *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001225 # FIXME: should be removed in autoconf 3.0.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001226 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001227 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Alexandre Julliardabf50482008-10-31 12:56:53 +01001228 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001229 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001230 ;;
1231
1232 esac
1233done
1234
1235if test -n "$ac_prev"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001236 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001237 as_fn_error "missing argument to $ac_option"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001238fi
1239
Alexandre Julliardabf50482008-10-31 12:56:53 +01001240if test -n "$ac_unrecognized_opts"; then
1241 case $enable_option_checking in
1242 no) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001243 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
Alexandre Julliardabf50482008-10-31 12:56:53 +01001244 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1245 esac
1246fi
1247
1248# Check all directory arguments for consistency.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001249for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1250 datadir sysconfdir sharedstatedir localstatedir includedir \
1251 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1252 libdir localedir mandir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001253do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001254 eval ac_val=\$$ac_var
Alexandre Julliardabf50482008-10-31 12:56:53 +01001255 # Remove trailing slashes.
1256 case $ac_val in
1257 */ )
1258 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1259 eval $ac_var=\$ac_val;;
1260 esac
1261 # Be sure to have absolute directory names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001262 case $ac_val in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001263 [\\/$]* | ?:[\\/]* ) continue;;
1264 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001265 esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001266 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001267done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001268
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001269# There might be people who depend on the old broken behavior: `$host'
1270# used to hold the argument of --host etc.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001271# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001272build=$build_alias
1273host=$host_alias
1274target=$target_alias
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001275
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001276# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001277if test "x$host_alias" != x; then
1278 if test "x$build_alias" = x; then
1279 cross_compiling=maybe
Alexandre Julliardabf50482008-10-31 12:56:53 +01001280 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001281 If a cross compiler is detected then cross compile mode will be used." >&2
1282 elif test "x$build_alias" != "x$host_alias"; then
1283 cross_compiling=yes
1284 fi
1285fi
1286
1287ac_tool_prefix=
1288test -n "$host_alias" && ac_tool_prefix=$host_alias-
1289
1290test "$silent" = yes && exec 6>/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001291
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001292
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001293ac_pwd=`pwd` && test -n "$ac_pwd" &&
1294ac_ls_di=`ls -di .` &&
1295ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001296 as_fn_error "working directory cannot be determined"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001297test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001298 as_fn_error "pwd does not report name of working directory"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001299
1300
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001301# Find the source files, if location was not specified.
1302if test -z "$srcdir"; then
1303 ac_srcdir_defaulted=yes
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001304 # Try the directory containing this script, then the parent directory.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001305 ac_confdir=`$as_dirname -- "$as_myself" ||
1306$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1307 X"$as_myself" : 'X\(//\)[^/]' \| \
1308 X"$as_myself" : 'X\(//\)$' \| \
1309 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1310$as_echo X"$as_myself" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1312 s//\1/
1313 q
1314 }
1315 /^X\(\/\/\)[^/].*/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)$/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\).*/{
1324 s//\1/
1325 q
1326 }
1327 s/.*/./; q'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001328 srcdir=$ac_confdir
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001329 if test ! -r "$srcdir/$ac_unique_file"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001330 srcdir=..
1331 fi
1332else
1333 ac_srcdir_defaulted=no
1334fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001335if test ! -r "$srcdir/$ac_unique_file"; then
1336 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001337 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001338fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001339ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1340ac_abs_confdir=`(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001341 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001342 pwd)`
1343# When building in place, set srcdir=.
1344if test "$ac_abs_confdir" = "$ac_pwd"; then
1345 srcdir=.
1346fi
1347# Remove unnecessary trailing slashes from srcdir.
1348# Double slashes in file names in object file debugging info
1349# mess up M-x gdb in Emacs.
1350case $srcdir in
1351*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1352esac
1353for ac_var in $ac_precious_vars; do
1354 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1355 eval ac_env_${ac_var}_value=\$${ac_var}
1356 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1358done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001359
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001360#
1361# Report the --help message.
1362#
1363if test "$ac_init_help" = "long"; then
1364 # Omit some internal or obsolete options to make the list less imposing.
1365 # This message is too long to be a string in the A/UX 3.1 sh.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001366 cat <<_ACEOF
Alexandre Julliard65174622010-06-11 19:40:31 +02001367\`configure' configures Wine 1.2-rc3 to adapt to many kinds of systems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001368
1369Usage: $0 [OPTION]... [VAR=VALUE]...
1370
1371To assign environment variables (e.g., CC, CFLAGS...), specify them as
1372VAR=VALUE. See below for descriptions of some of the useful variables.
1373
1374Defaults for the options are specified in brackets.
1375
1376Configuration:
1377 -h, --help display this help and exit
1378 --help=short display options specific to this package
1379 --help=recursive display the short help of all the included packages
1380 -V, --version display version information and exit
1381 -q, --quiet, --silent do not print \`checking...' messages
1382 --cache-file=FILE cache test results in FILE [disabled]
1383 -C, --config-cache alias for \`--cache-file=config.cache'
1384 -n, --no-create do not create output files
1385 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1386
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001387Installation directories:
1388 --prefix=PREFIX install architecture-independent files in PREFIX
Alexandre Julliardabf50482008-10-31 12:56:53 +01001389 [$ac_default_prefix]
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001390 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Alexandre Julliardabf50482008-10-31 12:56:53 +01001391 [PREFIX]
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001392
1393By default, \`make install' will install all the files in
1394\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1395an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1396for instance \`--prefix=\$HOME'.
1397
1398For better control, use the options below.
1399
1400Fine tuning of the installation directories:
Alexandre Julliardabf50482008-10-31 12:56:53 +01001401 --bindir=DIR user executables [EPREFIX/bin]
1402 --sbindir=DIR system admin executables [EPREFIX/sbin]
1403 --libexecdir=DIR program executables [EPREFIX/libexec]
1404 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1405 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1406 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1407 --libdir=DIR object code libraries [EPREFIX/lib]
1408 --includedir=DIR C header files [PREFIX/include]
1409 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1410 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1411 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1412 --infodir=DIR info documentation [DATAROOTDIR/info]
1413 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1414 --mandir=DIR man documentation [DATAROOTDIR/man]
1415 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1416 --htmldir=DIR html documentation [DOCDIR]
1417 --dvidir=DIR dvi documentation [DOCDIR]
1418 --pdfdir=DIR pdf documentation [DOCDIR]
1419 --psdir=DIR ps documentation [DOCDIR]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001420_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001421
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001422 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001423
1424X features:
1425 --x-includes=DIR X include files are in DIR
1426 --x-libraries=DIR X library files are in DIR
1427
1428System types:
1429 --build=BUILD configure for building on BUILD [guessed]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001430 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001431_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001432fi
1433
1434if test -n "$ac_init_help"; then
1435 case $ac_init_help in
Alexandre Julliard65174622010-06-11 19:40:31 +02001436 short | recursive ) echo "Configuration of Wine 1.2-rc3:";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001437 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001438 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001439
1440Optional Features:
Alexandre Julliardabf50482008-10-31 12:56:53 +01001441 --disable-option-checking ignore unrecognized --enable/--with options
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001442 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1443 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Eric Pouech53fa0d52004-02-05 01:27:38 +00001444 --disable-win16 do not include Win16 support
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001445 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1446 binaries)
Alexandre Julliard35078f42008-11-21 10:16:12 +01001447 --disable-tests do not build the regression tests
Alexandre Julliard9d037222008-03-20 13:00:12 +01001448 --enable-maintainer-mode
1449 enable maintainer-specific build rules
Eric Pouechbc56c4e2009-08-25 19:33:28 +02001450 --disable-largefile omit support for large files
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001451
1452Optional Packages:
1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001455 --without-alsa do not use the Alsa sound support
1456 --without-audioio do not use the AudioIO sound support
1457 --without-capi do not use CAPI (ISDN support)
1458 --without-cms do not use CMS (color management support)
1459 --without-coreaudio do not use the CoreAudio sound support
1460 --without-cups do not use CUPS
1461 --without-curses do not use (n)curses
1462 --without-esd do not use the EsounD sound support
1463 --without-fontconfig do not use fontconfig
Alexandre Julliarda20c0e12008-05-21 14:55:53 +02001464 --without-freetype do not use the FreeType library
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001465 --without-gphoto do not use gphoto (Digital Camera support)
Alexandre Julliardad798732008-05-01 13:29:02 +02001466 --without-glu do not use the GLU library
Henri Verbeet874c9ef2008-09-22 22:13:19 +02001467 --without-gnutls do not use GnuTLS (schannel support)
Alexandre Julliard6ce32e02009-08-19 15:53:04 +02001468 --without-gsm do not use libgsm (GSM 06.10 codec support)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001469 --without-hal do not use HAL (dynamic device support)
1470 --without-jack do not use the Jack sound support
1471 --without-jpeg do not use JPEG
1472 --without-ldap do not use LDAP
Aric Stewartdb71d7c2009-08-19 09:37:48 -05001473 --without-mpg123 do not use the mpg123 library
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001474 --without-nas do not use the NAS sound support
Chris Robinson862965f2009-08-25 03:26:35 -07001475 --without-openal do not use OpenAL
Eric Pouech53fa0d52004-02-05 01:27:38 +00001476 --without-opengl do not use OpenGL
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001477 --without-openssl do not use OpenSSL
1478 --without-oss do not use the OSS sound support
1479 --without-png do not use PNG
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01001480 --without-pthread do not use the pthread library
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001481 --without-sane do not use SANE (scanner support)
Vincent Povirk73cd5692010-03-08 17:07:29 -06001482 --without-tiff do not use TIFF
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01001483 --without-v4l do not use v4l1 (v4l support)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001484 --without-xcomposite do not use the Xcomposite extension
1485 --without-xcursor do not use the Xcursor extension
1486 --without-xinerama do not use Xinerama (multi-monitor support)
1487 --without-xinput do not use the Xinput extension
1488 --without-xml do not use XML
1489 --without-xrandr do not use Xrandr (resolution changes)
1490 --without-xrender do not use the Xrender extension
1491 --without-xshape do not use the Xshape extension
1492 --without-xshm do not use XShm (shared memory extension)
1493 --without-xslt do not use XSLT
Francois Gougeta49beb42008-06-26 14:02:17 +02001494 --without-xxf86vm do not use XFree video mode extension
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001495 --with-wine-tools=DIR use Wine tools from directory DIR
Alexandre Julliard39a75d32009-08-13 19:45:31 +02001496 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001497 --with-x use the X Window System
1498
1499Some influential environment variables:
Eric Pouech53fa0d52004-02-05 01:27:38 +00001500 CC C compiler command
1501 CFLAGS C compiler flags
1502 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1503 nonstandard directory <lib dir>
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01001504 LIBS libraries to pass to the linker, e.g. -l<library>
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001505 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001506 you have headers in a nonstandard directory <include dir>
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00001507 CXX C++ compiler command
1508 CXXFLAGS C++ compiler flags
Eric Pouech53fa0d52004-02-05 01:27:38 +00001509 CPP C preprocessor
Alexandre Julliard40664c02009-02-11 20:40:58 +01001510 XMKMF Path to xmkmf, Makefile generator for X Window System
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001511
1512Use these variables to override the choices made by `configure' or to help
1513it to find libraries and programs with nonstandard names/locations.
1514
Alexandre Julliard875927f2004-01-02 01:55:29 +00001515Report bugs to <wine-devel@winehq.org>.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001516Wine home page: <http://www.winehq.org>.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001517_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001518ac_status=$?
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001519fi
1520
1521if test "$ac_init_help" = "recursive"; then
1522 # If there are subdirs, report their specific --help.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001523 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Alexandre Julliardabf50482008-10-31 12:56:53 +01001524 test -d "$ac_dir" ||
1525 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1526 continue
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001527 ac_builddir=.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001528
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001529case "$ac_dir" in
1530.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001532 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001533 # A ".." for each directory in $ac_dir_suffix.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001534 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001535 case $ac_top_builddir_sub in
1536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1538 esac ;;
1539esac
1540ac_abs_top_builddir=$ac_pwd
1541ac_abs_builddir=$ac_pwd$ac_dir_suffix
1542# for backward compatibility:
1543ac_top_builddir=$ac_top_build_prefix
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001544
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001545case $srcdir in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001546 .) # We are building in place.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001547 ac_srcdir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001548 ac_top_srcdir=$ac_top_builddir_sub
1549 ac_abs_top_srcdir=$ac_pwd ;;
1550 [\\/]* | ?:[\\/]* ) # Absolute name.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001551 ac_srcdir=$srcdir$ac_dir_suffix;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001552 ac_top_srcdir=$srcdir
1553 ac_abs_top_srcdir=$srcdir ;;
1554 *) # Relative name.
1555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1556 ac_top_srcdir=$ac_top_build_prefix$srcdir
1557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001558esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001559ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Alexandre Julliard875927f2004-01-02 01:55:29 +00001560
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001561 cd "$ac_dir" || { ac_status=$?; continue; }
1562 # Check for guested configure.
Jeremy White0ebeb532006-06-20 13:18:41 +02001563 if test -f "$ac_srcdir/configure.gnu"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001564 echo &&
Jeremy White0ebeb532006-06-20 13:18:41 +02001565 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1566 elif test -f "$ac_srcdir/configure"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001567 echo &&
Jeremy White0ebeb532006-06-20 13:18:41 +02001568 $SHELL "$ac_srcdir/configure" --help=recursive
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001569 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01001570 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001571 fi || ac_status=$?
1572 cd "$ac_pwd" || { ac_status=$?; break; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001573 done
1574fi
1575
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001576test -n "$ac_init_help" && exit $ac_status
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001577if $ac_init_version; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001578 cat <<\_ACEOF
Alexandre Julliard65174622010-06-11 19:40:31 +02001579Wine configure 1.2-rc3
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001580generated by GNU Autoconf 2.65
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001581
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001582Copyright (C) 2009 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001583This configure script is free software; the Free Software Foundation
1584gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001585_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001586 exit
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001587fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001588
1589## ------------------------ ##
1590## Autoconf initialization. ##
1591## ------------------------ ##
1592
1593# ac_fn_c_try_compile LINENO
1594# --------------------------
1595# Try to compile conftest.$ac_ext, and return whether this succeeded.
1596ac_fn_c_try_compile ()
1597{
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 rm -f conftest.$ac_objext
1600 if { { ac_try="$ac_compile"
1601case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604esac
1605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606$as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_compile") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1613 fi
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } && {
1616 test -z "$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 } && test -s conftest.$ac_objext; then :
1619 ac_retval=0
1620else
1621 $as_echo "$as_me: failed program was:" >&5
1622sed 's/^/| /' conftest.$ac_ext >&5
1623
1624 ac_retval=1
1625fi
1626 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001627 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001628
1629} # ac_fn_c_try_compile
1630
1631# ac_fn_cxx_try_compile LINENO
1632# ----------------------------
1633# Try to compile conftest.$ac_ext, and return whether this succeeded.
1634ac_fn_cxx_try_compile ()
1635{
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 rm -f conftest.$ac_objext
1638 if { { ac_try="$ac_compile"
1639case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642esac
1643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644$as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_compile") 2>conftest.err
1646 ac_status=$?
1647 if test -s conftest.err; then
1648 grep -v '^ *+' conftest.err >conftest.er1
1649 cat conftest.er1 >&5
1650 mv -f conftest.er1 conftest.err
1651 fi
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && {
1654 test -z "$ac_cxx_werror_flag" ||
1655 test ! -s conftest.err
1656 } && test -s conftest.$ac_objext; then :
1657 ac_retval=0
1658else
1659 $as_echo "$as_me: failed program was:" >&5
1660sed 's/^/| /' conftest.$ac_ext >&5
1661
1662 ac_retval=1
1663fi
1664 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001665 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001666
1667} # ac_fn_cxx_try_compile
1668
1669# ac_fn_c_try_link LINENO
1670# -----------------------
1671# Try to link conftest.$ac_ext, and return whether this succeeded.
1672ac_fn_c_try_link ()
1673{
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 rm -f conftest.$ac_objext conftest$ac_exeext
1676 if { { ac_try="$ac_link"
1677case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680esac
1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682$as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_link") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1689 fi
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } && {
1692 test -z "$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 } && test -s conftest$ac_exeext && {
1695 test "$cross_compiling" = yes ||
1696 $as_test_x conftest$ac_exeext
1697 }; then :
1698 ac_retval=0
1699else
1700 $as_echo "$as_me: failed program was:" >&5
1701sed 's/^/| /' conftest.$ac_ext >&5
1702
1703 ac_retval=1
1704fi
1705 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1706 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1707 # interfere with the next link command; also delete a directory that is
1708 # left behind by Apple's compiler. We do this before executing the actions.
1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001711 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001712
1713} # ac_fn_c_try_link
1714
1715# ac_fn_c_try_cpp LINENO
1716# ----------------------
1717# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1718ac_fn_c_try_cpp ()
1719{
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 if { { ac_try="$ac_cpp conftest.$ac_ext"
1722case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1729 ac_status=$?
1730 if test -s conftest.err; then
1731 grep -v '^ *+' conftest.err >conftest.er1
1732 cat conftest.er1 >&5
1733 mv -f conftest.er1 conftest.err
1734 fi
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } >/dev/null && {
1737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1738 test ! -s conftest.err
1739 }; then :
1740 ac_retval=0
1741else
1742 $as_echo "$as_me: failed program was:" >&5
1743sed 's/^/| /' conftest.$ac_ext >&5
1744
1745 ac_retval=1
1746fi
1747 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001748 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001749
1750} # ac_fn_c_try_cpp
1751
1752# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1753# -------------------------------------------------------
1754# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1755# the include files in INCLUDES and setting the cache variable VAR
1756# accordingly.
1757ac_fn_c_check_header_mongrel ()
1758{
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762$as_echo_n "checking for $2... " >&6; }
1763if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1764 $as_echo_n "(cached) " >&6
1765fi
1766eval ac_res=\$$3
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768$as_echo "$ac_res" >&6; }
1769else
1770 # Is the header compilable?
1771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1772$as_echo_n "checking $2 usability... " >&6; }
1773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774/* end confdefs.h. */
1775$4
1776#include <$2>
1777_ACEOF
1778if ac_fn_c_try_compile "$LINENO"; then :
1779 ac_header_compiler=yes
1780else
1781 ac_header_compiler=no
1782fi
1783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1785$as_echo "$ac_header_compiler" >&6; }
1786
1787# Is the header present?
1788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1789$as_echo_n "checking $2 presence... " >&6; }
1790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791/* end confdefs.h. */
1792#include <$2>
1793_ACEOF
1794if ac_fn_c_try_cpp "$LINENO"; then :
1795 ac_header_preproc=yes
1796else
1797 ac_header_preproc=no
1798fi
1799rm -f conftest.err conftest.$ac_ext
1800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1801$as_echo "$ac_header_preproc" >&6; }
1802
1803# So? What about this header?
1804case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1805 yes:no: )
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1807$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1809$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1810 ;;
1811 no:yes:* )
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1813$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1815$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1817$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1819$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1821$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1822( cat <<\_ASBOX
1823## ------------------------------------ ##
1824## Report this to wine-devel@winehq.org ##
1825## ------------------------------------ ##
1826_ASBOX
1827 ) | sed "s/^/$as_me: WARNING: /" >&2
1828 ;;
1829esac
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831$as_echo_n "checking for $2... " >&6; }
1832if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1833 $as_echo_n "(cached) " >&6
1834else
1835 eval "$3=\$ac_header_compiler"
1836fi
1837eval ac_res=\$$3
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839$as_echo "$ac_res" >&6; }
1840fi
1841 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842
1843} # ac_fn_c_check_header_mongrel
1844
1845# ac_fn_c_try_run LINENO
1846# ----------------------
1847# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1848# that executables *can* be run.
1849ac_fn_c_try_run ()
1850{
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 if { { ac_try="$ac_link"
1853case "(($ac_try" in
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1856esac
1857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858$as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_link") 2>&5
1860 ac_status=$?
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1863 { { case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866esac
1867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868$as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_try") 2>&5
1870 ac_status=$?
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; }; }; then :
1873 ac_retval=0
1874else
1875 $as_echo "$as_me: program exited with status $ac_status" >&5
1876 $as_echo "$as_me: failed program was:" >&5
1877sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 ac_retval=$ac_status
1880fi
1881 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001883 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001884
1885} # ac_fn_c_try_run
1886
1887# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1888# -------------------------------------------------------
1889# Tests whether HEADER exists and can be compiled using the include files in
1890# INCLUDES, setting the cache variable VAR accordingly.
1891ac_fn_c_check_header_compile ()
1892{
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895$as_echo_n "checking for $2... " >&6; }
1896if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1897 $as_echo_n "(cached) " >&6
1898else
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900/* end confdefs.h. */
1901$4
1902#include <$2>
1903_ACEOF
1904if ac_fn_c_try_compile "$LINENO"; then :
1905 eval "$3=yes"
1906else
1907 eval "$3=no"
1908fi
1909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910fi
1911eval ac_res=\$$3
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913$as_echo "$ac_res" >&6; }
1914 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1915
1916} # ac_fn_c_check_header_compile
1917
1918# ac_fn_c_check_func LINENO FUNC VAR
1919# ----------------------------------
1920# Tests whether FUNC exists, setting the cache variable VAR accordingly
1921ac_fn_c_check_func ()
1922{
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925$as_echo_n "checking for $2... " >&6; }
1926if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1927 $as_echo_n "(cached) " >&6
1928else
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930/* end confdefs.h. */
1931/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1933#define $2 innocuous_$2
1934
1935/* System header to define __stub macros and hopefully few prototypes,
1936 which can conflict with char $2 (); below.
1937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1938 <limits.h> exists even on freestanding compilers. */
1939
1940#ifdef __STDC__
1941# include <limits.h>
1942#else
1943# include <assert.h>
1944#endif
1945
1946#undef $2
1947
1948/* Override any GCC internal prototype to avoid an error.
1949 Use char because int might match the return type of a GCC
1950 builtin and then its argument prototype would still apply. */
1951#ifdef __cplusplus
1952extern "C"
1953#endif
1954char $2 ();
1955/* The GNU C library defines this for functions which it implements
1956 to always fail with ENOSYS. Some functions are actually named
1957 something starting with __ and the normal name is an alias. */
1958#if defined __stub_$2 || defined __stub___$2
1959choke me
1960#endif
1961
1962int
1963main ()
1964{
1965return $2 ();
1966 ;
1967 return 0;
1968}
1969_ACEOF
1970if ac_fn_c_try_link "$LINENO"; then :
1971 eval "$3=yes"
1972else
1973 eval "$3=no"
1974fi
1975rm -f core conftest.err conftest.$ac_objext \
1976 conftest$ac_exeext conftest.$ac_ext
1977fi
1978eval ac_res=\$$3
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980$as_echo "$ac_res" >&6; }
1981 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1982
1983} # ac_fn_c_check_func
1984
1985# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1986# ----------------------------------------------------
1987# Tries to find if the field MEMBER exists in type AGGR, after including
1988# INCLUDES, setting cache variable VAR accordingly.
1989ac_fn_c_check_member ()
1990{
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1993$as_echo_n "checking for $2.$3... " >&6; }
1994if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1995 $as_echo_n "(cached) " >&6
1996else
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998/* end confdefs.h. */
1999$5
2000int
2001main ()
2002{
2003static $2 ac_aggr;
2004if (ac_aggr.$3)
2005return 0;
2006 ;
2007 return 0;
2008}
2009_ACEOF
2010if ac_fn_c_try_compile "$LINENO"; then :
2011 eval "$4=yes"
2012else
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014/* end confdefs.h. */
2015$5
2016int
2017main ()
2018{
2019static $2 ac_aggr;
2020if (sizeof ac_aggr.$3)
2021return 0;
2022 ;
2023 return 0;
2024}
2025_ACEOF
2026if ac_fn_c_try_compile "$LINENO"; then :
2027 eval "$4=yes"
2028else
2029 eval "$4=no"
2030fi
2031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032fi
2033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034fi
2035eval ac_res=\$$4
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037$as_echo "$ac_res" >&6; }
2038 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2039
2040} # ac_fn_c_check_member
2041
2042# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2043# -------------------------------------------
2044# Tests whether TYPE exists after having included INCLUDES, setting cache
2045# variable VAR accordingly.
2046ac_fn_c_check_type ()
2047{
2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2050$as_echo_n "checking for $2... " >&6; }
2051if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2052 $as_echo_n "(cached) " >&6
2053else
2054 eval "$3=no"
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056/* end confdefs.h. */
2057$4
2058int
2059main ()
2060{
2061if (sizeof ($2))
2062 return 0;
2063 ;
2064 return 0;
2065}
2066_ACEOF
2067if ac_fn_c_try_compile "$LINENO"; then :
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069/* end confdefs.h. */
2070$4
2071int
2072main ()
2073{
2074if (sizeof (($2)))
2075 return 0;
2076 ;
2077 return 0;
2078}
2079_ACEOF
2080if ac_fn_c_try_compile "$LINENO"; then :
2081
2082else
2083 eval "$3=yes"
2084fi
2085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086fi
2087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088fi
2089eval ac_res=\$$3
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2091$as_echo "$ac_res" >&6; }
2092 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2093
2094} # ac_fn_c_check_type
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002095cat >config.log <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002096This file contains any messages produced by compilers while
2097running configure, to aid debugging if configure makes a mistake.
2098
Alexandre Julliard65174622010-06-11 19:40:31 +02002099It was created by Wine $as_me 1.2-rc3, which was
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01002100generated by GNU Autoconf 2.65. Invocation command line was
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002101
2102 $ $0 $@
2103
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002104_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002105exec 5>>config.log
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002106{
2107cat <<_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002108## --------- ##
2109## Platform. ##
2110## --------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002111
2112hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2113uname -m = `(uname -m) 2>/dev/null || echo unknown`
2114uname -r = `(uname -r) 2>/dev/null || echo unknown`
2115uname -s = `(uname -s) 2>/dev/null || echo unknown`
2116uname -v = `(uname -v) 2>/dev/null || echo unknown`
2117
2118/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2119/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2120
2121/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2122/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2123/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002124/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002125/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2126/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2127/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2128
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002129_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002130
2131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132for as_dir in $PATH
2133do
2134 IFS=$as_save_IFS
2135 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002136 $as_echo "PATH: $as_dir"
2137 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002138IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002139
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002140} >&5
2141
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002142cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002143
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002144
2145## ----------- ##
2146## Core tests. ##
2147## ----------- ##
2148
2149_ACEOF
2150
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002151
2152# Keep a trace of the command line.
2153# Strip out --no-create and --no-recursion so they do not pile up.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002154# Strip out --silent because we don't want to record it for future runs.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002155# Also quote any args containing shell meta-characters.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002156# Make two passes to allow for proper duplicate-argument suppression.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002157ac_configure_args=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002158ac_configure_args0=
2159ac_configure_args1=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002160ac_must_keep_next=false
2161for ac_pass in 1 2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002162do
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002163 for ac_arg
2164 do
2165 case $ac_arg in
2166 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2168 | -silent | --silent | --silen | --sile | --sil)
2169 continue ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002170 *\'*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01002171 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002172 esac
2173 case $ac_pass in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002174 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002175 2)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002176 as_fn_append ac_configure_args1 " '$ac_arg'"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002177 if test $ac_must_keep_next = true; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00002178 ac_must_keep_next=false # Got value, back to normal.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002179 else
Alexandre Julliard875927f2004-01-02 01:55:29 +00002180 case $ac_arg in
2181 *=* | --config-cache | -C | -disable-* | --disable-* \
2182 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2183 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2184 | -with-* | --with-* | -without-* | --without-* | --x)
2185 case "$ac_configure_args0 " in
2186 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2187 esac
2188 ;;
2189 -* ) ac_must_keep_next=true ;;
2190 esac
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002191 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002192 as_fn_append ac_configure_args " '$ac_arg'"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002193 ;;
2194 esac
2195 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002196done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002197{ ac_configure_args0=; unset ac_configure_args0;}
2198{ ac_configure_args1=; unset ac_configure_args1;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002199
2200# When interrupted or exit'd, cleanup temporary files, and complete
2201# config.log. We remove comments because anyway the quotes in there
2202# would cause problems or look ugly.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002203# WARNING: Use '\'' to represent an apostrophe within the trap.
2204# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002205trap 'exit_status=$?
2206 # Save into config.log some information that might help in debugging.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002207 {
2208 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002209
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002210 cat <<\_ASBOX
2211## ---------------- ##
2212## Cache variables. ##
2213## ---------------- ##
2214_ASBOX
2215 echo
2216 # The following way of writing the cache mishandles newlines in values,
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002217(
2218 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2219 eval ac_val=\$$ac_var
2220 case $ac_val in #(
2221 *${as_nl}*)
2222 case $ac_var in #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002223 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002224$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002225 esac
2226 case $ac_var in #(
2227 _ | IFS | as_nl) ;; #(
Alexandre Julliardabf50482008-10-31 12:56:53 +01002228 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002229 *) { eval $ac_var=; unset $ac_var;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002230 esac ;;
2231 esac
2232 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002233 (set) 2>&1 |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002234 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2235 *${as_nl}ac_space=\ *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002236 sed -n \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002237 "s/'\''/'\''\\\\'\'''\''/g;
2238 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2239 ;; #(
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002240 *)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002241 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002242 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002243 esac |
2244 sort
2245)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002246 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002247
2248 cat <<\_ASBOX
2249## ----------------- ##
2250## Output variables. ##
2251## ----------------- ##
2252_ASBOX
2253 echo
2254 for ac_var in $ac_subst_vars
2255 do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002256 eval ac_val=\$$ac_var
Jeremy White0ebeb532006-06-20 13:18:41 +02002257 case $ac_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002258 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jeremy White0ebeb532006-06-20 13:18:41 +02002259 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01002260 $as_echo "$ac_var='\''$ac_val'\''"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002261 done | sort
2262 echo
2263
2264 if test -n "$ac_subst_files"; then
2265 cat <<\_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002266## ------------------- ##
2267## File substitutions. ##
2268## ------------------- ##
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002269_ASBOX
2270 echo
2271 for ac_var in $ac_subst_files
2272 do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002273 eval ac_val=\$$ac_var
Jeremy White0ebeb532006-06-20 13:18:41 +02002274 case $ac_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002275 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jeremy White0ebeb532006-06-20 13:18:41 +02002276 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01002277 $as_echo "$ac_var='\''$ac_val'\''"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002278 done | sort
2279 echo
2280 fi
2281
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002282 if test -s confdefs.h; then
2283 cat <<\_ASBOX
2284## ----------- ##
2285## confdefs.h. ##
2286## ----------- ##
2287_ASBOX
2288 echo
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002289 cat confdefs.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002290 echo
2291 fi
2292 test "$ac_signal" != 0 &&
Alexandre Julliardabf50482008-10-31 12:56:53 +01002293 $as_echo "$as_me: caught signal $ac_signal"
2294 $as_echo "$as_me: exit $exit_status"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002295 } >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002296 rm -f core *.core core.conftest.* &&
2297 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002298 exit $exit_status
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002299' 0
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002300for ac_signal in 1 2 13 15; do
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002301 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002302done
2303ac_signal=0
2304
2305# confdefs.h avoids OS command line length limits that DEFS can exceed.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002306rm -f -r conftest* confdefs.h
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002307
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002308$as_echo "/* confdefs.h */" > confdefs.h
2309
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002310# Predefined preprocessor variables.
2311
2312cat >>confdefs.h <<_ACEOF
2313#define PACKAGE_NAME "$PACKAGE_NAME"
2314_ACEOF
2315
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002316cat >>confdefs.h <<_ACEOF
2317#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2318_ACEOF
2319
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002320cat >>confdefs.h <<_ACEOF
2321#define PACKAGE_VERSION "$PACKAGE_VERSION"
2322_ACEOF
2323
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002324cat >>confdefs.h <<_ACEOF
2325#define PACKAGE_STRING "$PACKAGE_STRING"
2326_ACEOF
2327
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002328cat >>confdefs.h <<_ACEOF
2329#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2330_ACEOF
2331
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002332cat >>confdefs.h <<_ACEOF
2333#define PACKAGE_URL "$PACKAGE_URL"
2334_ACEOF
2335
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002336
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002337# Let the site file select an alternate cache file if it wants to.
Alexandre Julliardabf50482008-10-31 12:56:53 +01002338# Prefer an explicitly selected file to automatically selected ones.
2339ac_site_file1=NONE
2340ac_site_file2=NONE
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002341if test -n "$CONFIG_SITE"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +01002342 ac_site_file1=$CONFIG_SITE
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002343elif test "x$prefix" != xNONE; then
Alexandre Julliardabf50482008-10-31 12:56:53 +01002344 ac_site_file1=$prefix/share/config.site
2345 ac_site_file2=$prefix/etc/config.site
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002346else
Alexandre Julliardabf50482008-10-31 12:56:53 +01002347 ac_site_file1=$ac_default_prefix/share/config.site
2348 ac_site_file2=$ac_default_prefix/etc/config.site
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002349fi
Alexandre Julliardabf50482008-10-31 12:56:53 +01002350for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002351do
Alexandre Julliardabf50482008-10-31 12:56:53 +01002352 test "x$ac_site_file" = xNONE && continue
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01002353 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002354 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002355$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002356 sed 's/^/| /' "$ac_site_file" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002357 . "$ac_site_file"
2358 fi
2359done
2360
2361if test -r "$cache_file"; then
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01002362 # Some versions of bash will fail to source /dev/null (special files
2363 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2364 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002365 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002366$as_echo "$as_me: loading cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002367 case $cache_file in
Jeremy White0ebeb532006-06-20 13:18:41 +02002368 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2369 *) . "./$cache_file";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002370 esac
2371 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002372else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002373 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002374$as_echo "$as_me: creating cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002375 >$cache_file
2376fi
2377
2378# Check that the precious variables saved in the cache have kept the same
2379# value.
2380ac_cache_corrupted=false
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002381for ac_var in $ac_precious_vars; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002382 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2383 eval ac_new_set=\$ac_env_${ac_var}_set
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002384 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2385 eval ac_new_val=\$ac_env_${ac_var}_value
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002386 case $ac_old_set,$ac_new_set in
2387 set,)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002388 { $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 +01002389$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 +00002390 ac_cache_corrupted=: ;;
2391 ,set)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002392 { $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 +01002393$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002394 ac_cache_corrupted=: ;;
2395 ,);;
2396 *)
2397 if test "x$ac_old_val" != "x$ac_new_val"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +01002398 # differences in whitespace do not lead to failure.
2399 ac_old_val_w=`echo x $ac_old_val`
2400 ac_new_val_w=`echo x $ac_new_val`
2401 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002403$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2404 ac_cache_corrupted=:
2405 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002406 { $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 +01002407$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2408 eval $ac_var=\$ac_old_val
2409 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002410 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002411$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002412 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002413$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002414 fi;;
2415 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002416 # Pass precious variables to config.status.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002417 if test "$ac_new_set" = set; then
2418 case $ac_new_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002419 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002420 *) ac_arg=$ac_var=$ac_new_val ;;
2421 esac
2422 case " $ac_configure_args " in
2423 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002424 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002425 esac
2426 fi
2427done
2428if $ac_cache_corrupted; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002431 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002432$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002433 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002434fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002435## -------------------- ##
2436## Main body of script. ##
2437## -------------------- ##
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002438
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002439ac_ext=c
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002440ac_cpp='$CPP $CPPFLAGS'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2443ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002444
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002445
2446
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002447ac_config_headers="$ac_config_headers include/config.h"
Alexandre Julliard18f92e71996-07-17 20:02:21 +00002448
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002449ac_aux_dir=
Jeremy White0ebeb532006-06-20 13:18:41 +02002450for ac_dir in tools "$srcdir"/tools; do
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002451 for ac_t in install-sh install.sh shtool; do
2452 if test -f "$ac_dir/$ac_t"; then
2453 ac_aux_dir=$ac_dir
2454 ac_install_sh="$ac_aux_dir/$ac_t -c"
2455 break 2
2456 fi
2457 done
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002458done
2459if test -z "$ac_aux_dir"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002460 as_fn_error "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002461fi
Jeremy White0ebeb532006-06-20 13:18:41 +02002462
2463# These three variables are undocumented and unsupported,
2464# and are intended to be withdrawn in a future Autoconf release.
2465# They can cause serious problems if a builder's source tree is in a directory
2466# whose full name contains unusual characters.
2467ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2468ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2469ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2470
Howard Abrams13277481999-07-10 13:16:29 +00002471
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002472
2473
Alexandre Julliardd59227e2010-02-20 12:36:04 +01002474
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002475# Check whether --enable-win16 was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002476if test "${enable_win16+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002477 enableval=$enable_win16;
2478fi
Alexandre Julliardc728efc2002-10-02 02:34:09 +00002479
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002480# Check whether --enable-win64 was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002481if test "${enable_win64+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002482 enableval=$enable_win64;
2483fi
Alexandre Julliardb8074992002-11-21 21:51:24 +00002484
Alexandre Julliard35078f42008-11-21 10:16:12 +01002485# Check whether --enable-tests was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002486if test "${enable_tests+set}" = set; then :
Alexandre Julliard35078f42008-11-21 10:16:12 +01002487 enableval=$enable_tests;
2488fi
2489
Alexandre Julliard9d037222008-03-20 13:00:12 +01002490# Check whether --enable-maintainer-mode was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002491if test "${enable_maintainer_mode+set}" = set; then :
Alexandre Julliard9d037222008-03-20 13:00:12 +01002492 enableval=$enable_maintainer_mode;
Alexandre Julliard9d037222008-03-20 13:00:12 +01002493fi
2494
Alexandre Julliardb8074992002-11-21 21:51:24 +00002495
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002496
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002497# Check whether --with-alsa was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002498if test "${with_alsa+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002499 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2500fi
2501
2502
2503# Check whether --with-audioio was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002504if test "${with_audioio+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002505 withval=$with_audioio; if test "x$withval" = "xno"; then ac_cv_header_libaudioio_h=no; fi
2506fi
2507
2508
2509# Check whether --with-capi was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002510if test "${with_capi+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002511 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2512fi
2513
2514
2515# Check whether --with-cms was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002516if test "${with_cms+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002517 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2518fi
2519
2520
2521# Check whether --with-coreaudio was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002522if test "${with_coreaudio+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002523 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2524fi
2525
2526
2527# Check whether --with-cups was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002528if test "${with_cups+set}" = set; then :
Francois Gouget289ea332008-07-24 16:09:07 +02002529 withval=$with_cups;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002530fi
2531
2532
2533# Check whether --with-curses was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002534if test "${with_curses+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002535 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2536fi
2537
2538
2539# Check whether --with-esd was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002540if test "${with_esd+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002541 withval=$with_esd;
2542fi
2543
2544
2545# Check whether --with-fontconfig was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002546if test "${with_fontconfig+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002547 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2548fi
2549
2550
Alexandre Julliarda20c0e12008-05-21 14:55:53 +02002551# Check whether --with-freetype was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002552if test "${with_freetype+set}" = set; then :
Alexandre Julliarda20c0e12008-05-21 14:55:53 +02002553 withval=$with_freetype;
2554fi
2555
2556
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002557# Check whether --with-gphoto was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002558if test "${with_gphoto+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002559 withval=$with_gphoto;
2560fi
2561
2562
Alexandre Julliardad798732008-05-01 13:29:02 +02002563# Check whether --with-glu was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002564if test "${with_glu+set}" = set; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02002565 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2566fi
2567
2568
Henri Verbeet874c9ef2008-09-22 22:13:19 +02002569# Check whether --with-gnutls was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002570if test "${with_gnutls+set}" = set; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02002571 withval=$with_gnutls;
2572fi
2573
2574
Alexandre Julliard6ce32e02009-08-19 15:53:04 +02002575# Check whether --with-gsm was given.
2576if test "${with_gsm+set}" = set; then :
2577 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 +02002578fi
2579
2580
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002581# Check whether --with-hal was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002582if test "${with_hal+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002583 withval=$with_hal;
2584fi
2585
2586
2587# Check whether --with-jack was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002588if test "${with_jack+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002589 withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2590fi
2591
2592
2593# Check whether --with-jpeg was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002594if test "${with_jpeg+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002595 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2596fi
2597
2598
2599# Check whether --with-ldap was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002600if test "${with_ldap+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002601 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2602fi
2603
2604
Aric Stewartdb71d7c2009-08-19 09:37:48 -05002605# Check whether --with-mpg123 was given.
2606if test "${with_mpg123+set}" = set; then :
2607 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2608fi
2609
2610
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002611# Check whether --with-nas was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002612if test "${with_nas+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002613 withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2614fi
2615
2616
Chris Robinson862965f2009-08-25 03:26:35 -07002617# Check whether --with-openal was given.
2618if test "${with_openal+set}" = set; then :
Ken Thomases0b08f192009-09-09 22:23:35 -05002619 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 -07002620fi
2621
2622
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002623# Check whether --with-opengl was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002624if test "${with_opengl+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002625 withval=$with_opengl;
2626fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002627
Alexandre Julliardf90efa91998-06-14 15:24:15 +00002628
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002629# Check whether --with-openssl was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002630if test "${with_openssl+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002631 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2632fi
2633
2634
2635# Check whether --with-oss was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002636if test "${with_oss+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002637 withval=$with_oss; if test "x$withval" = "xno"; then ac_cv_header_soundcard_h=no; ac_cv_header_sys_soundcard_h=no; ac_cv_header_machine_soundcard_h=no; fi
2638fi
2639
2640
2641# Check whether --with-png was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002642if test "${with_png+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002643 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2644fi
2645
2646
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01002647# Check whether --with-pthread was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002648if test "${with_pthread+set}" = set; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01002649 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2650fi
2651
2652
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002653# Check whether --with-sane was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002654if test "${with_sane+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002655 withval=$with_sane;
2656fi
2657
2658
Vincent Povirk73cd5692010-03-08 17:07:29 -06002659# Check whether --with-tiff was given.
2660if test "${with_tiff+set}" = set; then :
2661 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2662fi
2663
2664
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01002665# Check whether --with-v4l was given.
2666if test "${with_v4l+set}" = set; then :
2667 withval=$with_v4l;
2668fi
2669
2670
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002671# Check whether --with-xcomposite was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002672if test "${with_xcomposite+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002673 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2674fi
2675
2676
2677# Check whether --with-xcursor was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002678if test "${with_xcursor+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002679 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2680fi
2681
2682
2683# Check whether --with-xinerama was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002684if test "${with_xinerama+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002685 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2686fi
2687
2688
2689# Check whether --with-xinput was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002690if test "${with_xinput+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002691 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2692fi
2693
2694
2695# Check whether --with-xml was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002696if test "${with_xml+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002697 withval=$with_xml;
2698fi
2699
2700
2701# Check whether --with-xrandr was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002702if test "${with_xrandr+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002703 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2704fi
2705
2706
2707# Check whether --with-xrender was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002708if test "${with_xrender+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002709 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2710fi
2711
2712
2713# Check whether --with-xshape was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002714if test "${with_xshape+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002715 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2716fi
2717
2718
2719# Check whether --with-xshm was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002720if test "${with_xshm+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002721 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2722fi
2723
2724
2725# Check whether --with-xslt was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002726if test "${with_xslt+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002727 withval=$with_xslt;
2728fi
2729
2730
Francois Gougeta49beb42008-06-26 14:02:17 +02002731# Check whether --with-xxf86vm was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002732if test "${with_xxf86vm+set}" = set; then :
André Hentschel7b285a42009-09-19 19:08:09 +02002733 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 +01002734fi
2735
2736
2737
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002738# Check whether --with-wine-tools was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002739if test "${with_wine_tools+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002740 withval=$with_wine_tools;
2741fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00002742
Alexandre Julliardfc01b722002-05-12 03:16:39 +00002743
Alexandre Julliard39a75d32009-08-13 19:45:31 +02002744# Check whether --with-wine64 was given.
2745if test "${with_wine64+set}" = set; then :
2746 withval=$with_wine64;
2747fi
2748
2749
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002750# Make sure we can run config.sub.
Jeremy White0ebeb532006-06-20 13:18:41 +02002751$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002752 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00002753
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002755$as_echo_n "checking build system type... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002756if test "${ac_cv_build+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002757 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002758else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002759 ac_build_alias=$build_alias
2760test "x$ac_build_alias" = x &&
Jeremy White0ebeb532006-06-20 13:18:41 +02002761 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002762test "x$ac_build_alias" = x &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002763 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
Jeremy White0ebeb532006-06-20 13:18:41 +02002764ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002765 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002766
2767fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002769$as_echo "$ac_cv_build" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002770case $ac_cv_build in
2771*-*-*) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002772*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002773esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002774build=$ac_cv_build
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002775ac_save_IFS=$IFS; IFS='-'
2776set x $ac_cv_build
2777shift
2778build_cpu=$1
2779build_vendor=$2
2780shift; shift
2781# Remember, the first character of IFS is used to create $*,
2782# except with old shells:
2783build_os=$*
2784IFS=$ac_save_IFS
2785case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002786
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002787
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002789$as_echo_n "checking host system type... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002790if test "${ac_cv_host+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002791 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002792else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002793 if test "x$host_alias" = x; then
2794 ac_cv_host=$ac_cv_build
2795else
Jeremy White0ebeb532006-06-20 13:18:41 +02002796 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002797 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002798fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002799
2800fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002802$as_echo "$ac_cv_host" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002803case $ac_cv_host in
2804*-*-*) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002805*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002806esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002807host=$ac_cv_host
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002808ac_save_IFS=$IFS; IFS='-'
2809set x $ac_cv_host
2810shift
2811host_cpu=$1
2812host_vendor=$2
2813shift; shift
2814# Remember, the first character of IFS is used to create $*,
2815# except with old shells:
2816host_os=$*
2817IFS=$ac_save_IFS
2818case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002819
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002820
Alexandre Julliard71440f32005-05-19 14:28:17 +00002821
Alexandre Julliard73b724e2006-12-28 11:40:19 +01002822case "$srcdir" in
2823 .) ;;
2824 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002825 as_fn_error "you are building out of the source tree, but the source tree contains object files.
2826You need to run 'make distclean' in the source tree first." "$LINENO" 5
Alexandre Julliard73b724e2006-12-28 11:40:19 +01002827 fi ;;
2828esac
2829
Alexandre Julliard71440f32005-05-19 14:28:17 +00002830
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002832$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2833set x ${MAKE-make}
2834ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002835if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002836 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002837else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002838 cat >conftest.make <<\_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002839SHELL = /bin/sh
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002840all:
Jeremy White0ebeb532006-06-20 13:18:41 +02002841 @echo '@@@%%%=$(MAKE)=@@@%%%'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002842_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002843# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Jeremy White0ebeb532006-06-20 13:18:41 +02002844case `${MAKE-make} -f conftest.make 2>/dev/null` in
2845 *@@@%%%=?*=@@@%%%*)
2846 eval ac_cv_prog_make_${ac_make}_set=yes;;
2847 *)
2848 eval ac_cv_prog_make_${ac_make}_set=no;;
2849esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002850rm -f conftest.make
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002851fi
Jeremy White0ebeb532006-06-20 13:18:41 +02002852if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002854$as_echo "yes" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002855 SET_MAKE=
2856else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002858$as_echo "no" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002859 SET_MAKE="MAKE=${MAKE-make}"
2860fi
2861
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002862ac_ext=c
2863ac_cpp='$CPP $CPPFLAGS'
2864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867if test -n "$ac_tool_prefix"; then
2868 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2869set dummy ${ac_tool_prefix}gcc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002871$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002872if test "${ac_cv_prog_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002873 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002874else
2875 if test -n "$CC"; then
2876 ac_cv_prog_CC="$CC" # Let the user override the test.
2877else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879for as_dir in $PATH
2880do
2881 IFS=$as_save_IFS
2882 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002883 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01002884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002885 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002887 break 2
2888 fi
2889done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002890 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002891IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002892
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002893fi
2894fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002895CC=$ac_cv_prog_CC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002896if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002898$as_echo "$CC" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002899else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002901$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002902fi
2903
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002904
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002905fi
2906if test -z "$ac_cv_prog_CC"; then
2907 ac_ct_CC=$CC
2908 # Extract the first word of "gcc", so it can be a program name with args.
2909set dummy gcc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002911$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002912if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002913 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002914else
2915 if test -n "$ac_ct_CC"; then
2916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2917else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919for as_dir in $PATH
2920do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002923 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01002924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002925 ac_cv_prog_ac_ct_CC="gcc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002927 break 2
2928 fi
2929done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002930 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002931IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002932
2933fi
2934fi
2935ac_ct_CC=$ac_cv_prog_ac_ct_CC
2936if test -n "$ac_ct_CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002938$as_echo "$ac_ct_CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002939else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002941$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002942fi
2943
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002944 if test "x$ac_ct_CC" = x; then
2945 CC=""
2946 else
2947 case $cross_compiling:$ac_tool_warned in
2948yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002949{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002951ac_tool_warned=yes ;;
2952esac
2953 CC=$ac_ct_CC
2954 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002955else
2956 CC="$ac_cv_prog_CC"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002957fi
2958
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002959if test -z "$CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002960 if test -n "$ac_tool_prefix"; then
2961 # 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 +00002962set dummy ${ac_tool_prefix}cc; 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 Julliard25e9e4f2009-08-10 14:27:28 +02002965if test "${ac_cv_prog_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002966 $as_echo_n "(cached) " >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002967else
2968 if test -n "$CC"; then
2969 ac_cv_prog_CC="$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
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01002977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002978 ac_cv_prog_CC="${ac_tool_prefix}cc"
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
2988CC=$ac_cv_prog_CC
2989if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002991$as_echo "$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
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002998 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002999fi
3000if test -z "$CC"; then
3001 # Extract the first word of "cc", so it can be a program name with args.
3002set dummy cc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003004$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003005if test "${ac_cv_prog_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003006 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003007else
3008 if test -n "$CC"; then
3009 ac_cv_prog_CC="$CC" # Let the user override the test.
3010else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003011 ac_prog_rejected=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013for as_dir in $PATH
3014do
3015 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003017 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003019 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3020 ac_prog_rejected=yes
3021 continue
3022 fi
3023 ac_cv_prog_CC="cc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003025 break 2
3026 fi
3027done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003028 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003029IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003030
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003031if test $ac_prog_rejected = yes; then
3032 # We found a bogon in the path, so make sure we never use it.
3033 set dummy $ac_cv_prog_CC
3034 shift
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003035 if test $# != 0; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003036 # We chose a different compiler from the bogus one.
3037 # However, it has the same basename, so the bogon will be chosen
3038 # first if we set CC to just the basename; use the full file name.
3039 shift
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003040 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003041 fi
3042fi
3043fi
3044fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003045CC=$ac_cv_prog_CC
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003046if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003048$as_echo "$CC" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003049else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003051$as_echo "no" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003052fi
3053
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003054
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003055fi
3056if test -z "$CC"; then
3057 if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003058 for ac_prog in cl.exe
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003059 do
3060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3061set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003063$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003064if test "${ac_cv_prog_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003065 $as_echo_n "(cached) " >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00003066else
3067 if test -n "$CC"; then
3068 ac_cv_prog_CC="$CC" # Let the user override the test.
3069else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071for as_dir in $PATH
3072do
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003075 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003077 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003079 break 2
3080 fi
3081done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003082 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003083IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003084
Eric Pouech18ad24a2000-01-16 22:16:33 +00003085fi
3086fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003087CC=$ac_cv_prog_CC
Eric Pouech18ad24a2000-01-16 22:16:33 +00003088if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003090$as_echo "$CC" >&6; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003091else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003093$as_echo "no" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003094fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003095
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003096
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003097 test -n "$CC" && break
3098 done
3099fi
3100if test -z "$CC"; then
3101 ac_ct_CC=$CC
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003102 for ac_prog in cl.exe
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003103do
3104 # Extract the first word of "$ac_prog", so it can be a program name with args.
3105set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003107$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003108if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003109 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003110else
3111 if test -n "$ac_ct_CC"; then
3112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3113else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115for as_dir in $PATH
3116do
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003119 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003121 ac_cv_prog_ac_ct_CC="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003123 break 2
3124 fi
3125done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003126 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003127IFS=$as_save_IFS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003128
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003129fi
3130fi
3131ac_ct_CC=$ac_cv_prog_ac_ct_CC
3132if test -n "$ac_ct_CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003134$as_echo "$ac_ct_CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003135else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003137$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003138fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003139
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003140
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003141 test -n "$ac_ct_CC" && break
3142done
Eric Pouech18ad24a2000-01-16 22:16:33 +00003143
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003144 if test "x$ac_ct_CC" = x; then
3145 CC=""
3146 else
3147 case $cross_compiling:$ac_tool_warned in
3148yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003149{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003150$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003151ac_tool_warned=yes ;;
3152esac
3153 CC=$ac_ct_CC
3154 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003155fi
3156
3157fi
3158
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003159
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003160test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003161$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003162as_fn_error "no acceptable C compiler found in \$PATH
3163See \`config.log' for more details." "$LINENO" 5; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003164
3165# Provide some information about the compiler.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003166$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003167set X $ac_compile
3168ac_compiler=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003169for ac_option in --version -v -V -qversion; do
3170 { { ac_try="$ac_compiler $ac_option >&5"
Jeremy White0ebeb532006-06-20 13:18:41 +02003171case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3174esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003175eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3176$as_echo "$ac_try_echo"; } >&5
3177 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003178 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003179 if test -s conftest.err; then
3180 sed '10a\
3181... rest of stderr output deleted ...
3182 10q' conftest.err >conftest.er1
3183 cat conftest.er1 >&5
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003184 fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003185 rm -f conftest.er1 conftest.err
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187 test $ac_status = 0; }
3188done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003189
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003191/* end confdefs.h. */
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003192
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003193int
3194main ()
3195{
3196
3197 ;
3198 return 0;
3199}
3200_ACEOF
3201ac_clean_files_save=$ac_clean_files
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003202ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003203# Try to create an executable without -o first, disregard a.out.
3204# It will help us diagnose broken compilers, and finding out an intuition
3205# of exeext.
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3207$as_echo_n "checking whether the C compiler works... " >&6; }
Alexandre Julliardabf50482008-10-31 12:56:53 +01003208ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3209
3210# The possible output files:
3211ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3212
Jeremy White0ebeb532006-06-20 13:18:41 +02003213ac_rmfiles=
3214for ac_file in $ac_files
3215do
3216 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jeremy White0ebeb532006-06-20 13:18:41 +02003218 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3219 esac
3220done
3221rm -f $ac_rmfiles
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003222
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003223if { { ac_try="$ac_link_default"
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
Jeremy White0ebeb532006-06-20 13:18:41 +02003230 (eval "$ac_link_default") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003231 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3233 test $ac_status = 0; }; then :
Jeremy White0ebeb532006-06-20 13:18:41 +02003234 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3235# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3236# in a Makefile. We should not override ac_cv_exeext if it was cached,
3237# so that the user can short-circuit this test for compilers unknown to
3238# Autoconf.
Alexandre Julliard78bd1942006-08-14 20:42:56 +02003239for ac_file in $ac_files ''
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003240do
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003241 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003242 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Jeremy White0ebeb532006-06-20 13:18:41 +02003244 ;;
3245 [ab].out )
3246 # We found the default executable, but exeext='' is most
3247 # certainly right.
3248 break;;
3249 *.* )
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003250 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Jeremy White0ebeb532006-06-20 13:18:41 +02003251 then :; else
3252 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3253 fi
3254 # We set ac_cv_exeext here because the later test for it is not
3255 # safe: cross compilers may not add the suffix if given an `-o'
3256 # argument, so we may need to know it at that point already.
3257 # Even if this section looks crufty: it has the advantage of
3258 # actually working.
3259 break;;
3260 * )
3261 break;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003262 esac
3263done
Jeremy White0ebeb532006-06-20 13:18:41 +02003264test "$ac_cv_exeext" = no && ac_cv_exeext=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003265
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003266else
Alexandre Julliard78bd1942006-08-14 20:42:56 +02003267 ac_file=''
3268fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003269if test -z "$ac_file"; then :
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271$as_echo "no" >&6; }
3272$as_echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003273sed 's/^/| /' conftest.$ac_ext >&5
3274
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003275{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003277{ as_fn_set_status 77
3278as_fn_error "C compiler cannot create executables
3279See \`config.log' for more details." "$LINENO" 5; }; }
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003280else
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3282$as_echo "yes" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003283fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3285$as_echo_n "checking for C compiler default output file name... " >&6; }
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3287$as_echo "$ac_file" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02003288ac_exeext=$ac_cv_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02003289
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003290rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Jeremy White0ebeb532006-06-20 13:18:41 +02003291ac_clean_files=$ac_clean_files_save
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003293$as_echo_n "checking for suffix of executables... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003294if { { ac_try="$ac_link"
Jeremy White0ebeb532006-06-20 13:18:41 +02003295case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003299eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300$as_echo "$ac_try_echo"; } >&5
Jeremy White0ebeb532006-06-20 13:18:41 +02003301 (eval "$ac_link") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003302 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304 test $ac_status = 0; }; then :
Jeremy White0ebeb532006-06-20 13:18:41 +02003305 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3306# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3307# work properly (i.e., refer to `conftest.exe'), while it won't with
3308# `rm'.
3309for ac_file in conftest.exe conftest conftest.*; do
3310 test -f "$ac_file" || continue
3311 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jeremy White0ebeb532006-06-20 13:18:41 +02003313 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3314 break;;
3315 * ) break;;
3316 esac
3317done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003318else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003321as_fn_error "cannot compute suffix of executables: cannot compile and link
3322See \`config.log' for more details." "$LINENO" 5; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003323fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003324rm -f conftest conftest$ac_cv_exeext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003326$as_echo "$ac_cv_exeext" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02003327
3328rm -f conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003329EXEEXT=$ac_cv_exeext
3330ac_exeext=$EXEEXT
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332/* end confdefs.h. */
3333#include <stdio.h>
3334int
3335main ()
3336{
3337FILE *f = fopen ("conftest.out", "w");
3338 return ferror (f) || fclose (f) != 0;
3339
3340 ;
3341 return 0;
3342}
3343_ACEOF
3344ac_clean_files="$ac_clean_files conftest.out"
3345# Check that the compiler produces executables we can run. If not, either
3346# the compiler is broken, or we cross compile.
3347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3348$as_echo_n "checking whether we are cross compiling... " >&6; }
3349if test "$cross_compiling" != yes; then
3350 { { ac_try="$ac_link"
3351case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3354esac
3355eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356$as_echo "$ac_try_echo"; } >&5
3357 (eval "$ac_link") 2>&5
3358 ac_status=$?
3359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360 test $ac_status = 0; }
3361 if { ac_try='./conftest$ac_cv_exeext'
3362 { { case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365esac
3366eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367$as_echo "$ac_try_echo"; } >&5
3368 (eval "$ac_try") 2>&5
3369 ac_status=$?
3370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371 test $ac_status = 0; }; }; then
3372 cross_compiling=no
3373 else
3374 if test "$cross_compiling" = maybe; then
3375 cross_compiling=yes
3376 else
3377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3378$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379as_fn_error "cannot run C compiled programs.
3380If you meant to cross compile, use \`--host'.
3381See \`config.log' for more details." "$LINENO" 5; }
3382 fi
3383 fi
3384fi
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3386$as_echo "$cross_compiling" >&6; }
3387
3388rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3389ac_clean_files=$ac_clean_files_save
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003391$as_echo_n "checking for suffix of object files... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003392if test "${ac_cv_objext+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003393 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003394else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jeremy White0ebeb532006-06-20 13:18:41 +02003396/* end confdefs.h. */
3397
3398int
3399main ()
3400{
3401
3402 ;
3403 return 0;
3404}
3405_ACEOF
3406rm -f conftest.o conftest.obj
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003407if { { ac_try="$ac_compile"
Jeremy White0ebeb532006-06-20 13:18:41 +02003408case "(($ac_try" in
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3411esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003412eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413$as_echo "$ac_try_echo"; } >&5
Jeremy White0ebeb532006-06-20 13:18:41 +02003414 (eval "$ac_compile") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003415 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417 test $ac_status = 0; }; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003418 for ac_file in conftest.o conftest.obj conftest.*; do
3419 test -f "$ac_file" || continue;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003420 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003422 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3423 break;;
3424 esac
3425done
3426else
Alexandre Julliardabf50482008-10-31 12:56:53 +01003427 $as_echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003428sed 's/^/| /' conftest.$ac_ext >&5
3429
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003430{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003432as_fn_error "cannot compute suffix of object files: cannot compile
3433See \`config.log' for more details." "$LINENO" 5; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003434fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003435rm -f conftest.$ac_cv_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003436fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003438$as_echo "$ac_cv_objext" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003439OBJEXT=$ac_cv_objext
3440ac_objext=$OBJEXT
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003442$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003443if test "${ac_cv_c_compiler_gnu+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003444 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003445else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003447/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003448
3449int
3450main ()
3451{
3452#ifndef __GNUC__
3453 choke me
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003454#endif
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003455
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003456 ;
3457 return 0;
3458}
3459_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003460if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003461 ac_compiler_gnu=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +00003462else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003463 ac_compiler_gnu=no
Eric Pouech18ad24a2000-01-16 22:16:33 +00003464fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003466ac_cv_c_compiler_gnu=$ac_compiler_gnu
Eric Pouech18ad24a2000-01-16 22:16:33 +00003467
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003468fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003470$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3471if test $ac_compiler_gnu = yes; then
3472 GCC=yes
3473else
3474 GCC=
3475fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003476ac_test_CFLAGS=${CFLAGS+set}
3477ac_save_CFLAGS=$CFLAGS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003479$as_echo_n "checking whether $CC accepts -g... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003480if test "${ac_cv_prog_cc_g+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003481 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003482else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003483 ac_save_c_werror_flag=$ac_c_werror_flag
3484 ac_c_werror_flag=yes
3485 ac_cv_prog_cc_g=no
3486 CFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003488/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003489
3490int
3491main ()
3492{
3493
3494 ;
3495 return 0;
3496}
3497_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003498if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00003499 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003500else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003501 CFLAGS=""
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003503/* end confdefs.h. */
3504
3505int
3506main ()
3507{
3508
3509 ;
3510 return 0;
3511}
3512_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003513if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003514
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003515else
3516 ac_c_werror_flag=$ac_save_c_werror_flag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003517 CFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003519/* end confdefs.h. */
3520
3521int
3522main ()
3523{
3524
3525 ;
3526 return 0;
3527}
3528_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003529if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003530 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003531fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003533fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003535fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003537 ac_c_werror_flag=$ac_save_c_werror_flag
3538fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003540$as_echo "$ac_cv_prog_cc_g" >&6; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003541if test "$ac_test_CFLAGS" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003542 CFLAGS=$ac_save_CFLAGS
Eric Pouech18ad24a2000-01-16 22:16:33 +00003543elif test $ac_cv_prog_cc_g = yes; then
3544 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003545 CFLAGS="-g -O2"
3546 else
Eric Pouech18ad24a2000-01-16 22:16:33 +00003547 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003548 fi
3549else
Eric Pouech18ad24a2000-01-16 22:16:33 +00003550 if test "$GCC" = yes; then
3551 CFLAGS="-O2"
3552 else
3553 CFLAGS=
3554 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003555fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003557$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003558if test "${ac_cv_prog_cc_c89+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003559 $as_echo_n "(cached) " >&6
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003560else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003561 ac_cv_prog_cc_c89=no
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003562ac_save_CC=$CC
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003564/* end confdefs.h. */
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003565#include <stdarg.h>
3566#include <stdio.h>
3567#include <sys/types.h>
3568#include <sys/stat.h>
3569/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3570struct buf { int x; };
3571FILE * (*rcsopen) (struct buf *, struct stat *, int);
3572static char *e (p, i)
3573 char **p;
3574 int i;
3575{
3576 return p[i];
3577}
3578static char *f (char * (*g) (char **, int), char **p, ...)
3579{
3580 char *s;
3581 va_list v;
3582 va_start (v,p);
3583 s = g (p, va_arg (v,int));
3584 va_end (v);
3585 return s;
3586}
Alexandre Julliard875927f2004-01-02 01:55:29 +00003587
3588/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3589 function prototypes and stuff, but not '\xHH' hex character constants.
3590 These don't provoke an error unfortunately, instead are silently treated
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003591 as 'x'. The following induces an error, until -std is added to get
Alexandre Julliard875927f2004-01-02 01:55:29 +00003592 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3593 array size at least. It's necessary to write '\x00'==0 to get something
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003594 that's true only with -std. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00003595int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3596
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02003597/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3598 inside strings and character constants. */
3599#define FOO(x) 'x'
3600int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3601
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003602int test (int i, double x);
3603struct s1 {int (*f) (int a);};
3604struct s2 {int (*f) (double a);};
3605int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3606int argc;
3607char **argv;
3608int
3609main ()
3610{
3611return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3612 ;
3613 return 0;
3614}
3615_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003616for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3617 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003618do
3619 CC="$ac_save_CC $ac_arg"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003620 if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003621 ac_cv_prog_cc_c89=$ac_arg
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003622fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003623rm -f core conftest.err conftest.$ac_objext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003624 test "x$ac_cv_prog_cc_c89" != "xno" && break
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003625done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003626rm -f conftest.$ac_ext
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003627CC=$ac_save_CC
3628
3629fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003630# AC_CACHE_VAL
3631case "x$ac_cv_prog_cc_c89" in
3632 x)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003634$as_echo "none needed" >&6; } ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003635 xno)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003637$as_echo "unsupported" >&6; } ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003638 *)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003639 CC="$CC $ac_cv_prog_cc_c89"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003641$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003642esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003643if test "x$ac_cv_prog_cc_c89" != xno; then :
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003644
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003645fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003646
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003647ac_ext=c
3648ac_cpp='$CPP $CPPFLAGS'
3649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651ac_compiler_gnu=$ac_cv_c_compiler_gnu
3652
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003653ac_ext=cpp
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003654ac_cpp='$CXXCPP $CPPFLAGS'
3655ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3656ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3657ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003658if test -z "$CXX"; then
3659 if test -n "$CCC"; then
3660 CXX=$CCC
3661 else
3662 if test -n "$ac_tool_prefix"; then
3663 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 +00003664 do
3665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3666set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003668$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003669if test "${ac_cv_prog_CXX+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003670 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003671else
3672 if test -n "$CXX"; then
3673 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3674else
3675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676for as_dir in $PATH
3677do
3678 IFS=$as_save_IFS
3679 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003680 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003682 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003684 break 2
3685 fi
3686done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003687 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003688IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003689
3690fi
3691fi
3692CXX=$ac_cv_prog_CXX
3693if test -n "$CXX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003695$as_echo "$CXX" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003696else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003698$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003699fi
3700
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003701
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003702 test -n "$CXX" && break
3703 done
3704fi
3705if test -z "$CXX"; then
3706 ac_ct_CXX=$CXX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003707 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 +00003708do
3709 # Extract the first word of "$ac_prog", so it can be a program name with args.
3710set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003712$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003713if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003714 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003715else
3716 if test -n "$ac_ct_CXX"; then
3717 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3718else
3719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720for as_dir in $PATH
3721do
3722 IFS=$as_save_IFS
3723 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003724 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003726 ac_cv_prog_ac_ct_CXX="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003728 break 2
3729 fi
3730done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003731 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003732IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003733
3734fi
3735fi
3736ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3737if test -n "$ac_ct_CXX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003739$as_echo "$ac_ct_CXX" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003740else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003742$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003743fi
3744
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003745
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003746 test -n "$ac_ct_CXX" && break
3747done
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003748
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003749 if test "x$ac_ct_CXX" = x; then
3750 CXX="g++"
3751 else
3752 case $cross_compiling:$ac_tool_warned in
3753yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003754{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003756ac_tool_warned=yes ;;
3757esac
3758 CXX=$ac_ct_CXX
3759 fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003760fi
3761
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003762 fi
3763fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003764# Provide some information about the compiler.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003765$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003766set X $ac_compile
3767ac_compiler=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003768for ac_option in --version -v -V -qversion; do
3769 { { ac_try="$ac_compiler $ac_option >&5"
Jeremy White0ebeb532006-06-20 13:18:41 +02003770case "(($ac_try" in
3771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772 *) ac_try_echo=$ac_try;;
3773esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3775$as_echo "$ac_try_echo"; } >&5
3776 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003777 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003778 if test -s conftest.err; then
3779 sed '10a\
3780... rest of stderr output deleted ...
3781 10q' conftest.err >conftest.er1
3782 cat conftest.er1 >&5
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003783 fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003784 rm -f conftest.er1 conftest.err
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3786 test $ac_status = 0; }
3787done
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003788
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003790$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003791if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003792 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003793else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003795/* end confdefs.h. */
3796
3797int
3798main ()
3799{
3800#ifndef __GNUC__
3801 choke me
3802#endif
3803
3804 ;
3805 return 0;
3806}
3807_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003808if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003809 ac_compiler_gnu=yes
3810else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003811 ac_compiler_gnu=no
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003812fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003814ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3815
3816fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003818$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3819if test $ac_compiler_gnu = yes; then
3820 GXX=yes
3821else
3822 GXX=
3823fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003824ac_test_CXXFLAGS=${CXXFLAGS+set}
3825ac_save_CXXFLAGS=$CXXFLAGS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003827$as_echo_n "checking whether $CXX accepts -g... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003828if test "${ac_cv_prog_cxx_g+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003829 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003830else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003831 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3832 ac_cxx_werror_flag=yes
3833 ac_cv_prog_cxx_g=no
3834 CXXFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003836/* end confdefs.h. */
3837
3838int
3839main ()
3840{
3841
3842 ;
3843 return 0;
3844}
3845_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003846if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003847 ac_cv_prog_cxx_g=yes
3848else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003849 CXXFLAGS=""
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003851/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003852
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003853int
3854main ()
3855{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003856
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003857 ;
3858 return 0;
3859}
3860_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003861if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003862
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003863else
3864 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003865 CXXFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003867/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003868
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003869int
3870main ()
3871{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003872
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003873 ;
3874 return 0;
3875}
3876_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003877if ac_fn_cxx_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003878 ac_cv_prog_cxx_g=yes
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003879fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003881fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003883fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003885 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3886fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003888$as_echo "$ac_cv_prog_cxx_g" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003889if test "$ac_test_CXXFLAGS" = set; then
3890 CXXFLAGS=$ac_save_CXXFLAGS
3891elif test $ac_cv_prog_cxx_g = yes; then
3892 if test "$GXX" = yes; then
3893 CXXFLAGS="-g -O2"
3894 else
3895 CXXFLAGS="-g"
3896 fi
3897else
3898 if test "$GXX" = yes; then
3899 CXXFLAGS="-O2"
3900 else
3901 CXXFLAGS=
3902 fi
3903fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003904ac_ext=c
3905ac_cpp='$CPP $CPPFLAGS'
3906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908ac_compiler_gnu=$ac_cv_c_compiler_gnu
3909
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003910if test -n "$ac_tool_prefix"; then
3911 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3912set dummy ${ac_tool_prefix}cpp; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003914$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003915if test "${ac_cv_prog_CPPBIN+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003916 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003917else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003918 if test -n "$CPPBIN"; then
3919 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003920else
3921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922for as_dir in $PATH
3923do
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003926 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003928 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003930 break 2
3931 fi
3932done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003933 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003934IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003935
3936fi
3937fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003938CPPBIN=$ac_cv_prog_CPPBIN
3939if test -n "$CPPBIN"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003941$as_echo "$CPPBIN" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003942else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003944$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003945fi
3946
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003947
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003948fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003949if test -z "$ac_cv_prog_CPPBIN"; then
3950 ac_ct_CPPBIN=$CPPBIN
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003951 # Extract the first word of "cpp", so it can be a program name with args.
3952set dummy cpp; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003954$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003955if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003956 $as_echo_n "(cached) " >&6
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003957else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003958 if test -n "$ac_ct_CPPBIN"; then
3959 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003960else
3961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962for as_dir in $PATH
3963do
3964 IFS=$as_save_IFS
3965 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003966 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003968 ac_cv_prog_ac_ct_CPPBIN="cpp"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003970 break 2
3971 fi
3972done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003973 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003974IFS=$as_save_IFS
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003975
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003976fi
3977fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003978ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3979if test -n "$ac_ct_CPPBIN"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003981$as_echo "$ac_ct_CPPBIN" >&6; }
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003982else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003984$as_echo "no" >&6; }
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003985fi
3986
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003987 if test "x$ac_ct_CPPBIN" = x; then
3988 CPPBIN="cpp"
3989 else
3990 case $cross_compiling:$ac_tool_warned in
3991yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003994ac_tool_warned=yes ;;
3995esac
3996 CPPBIN=$ac_ct_CPPBIN
3997 fi
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003998else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003999 CPPBIN="$ac_cv_prog_CPPBIN"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004000fi
4001
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004002
Alexandre Julliard1aea4ef2009-08-27 13:35:46 +02004003cat >>confdefs.h <<_ACEOF
4004#define EXEEXT "$ac_exeext"
4005_ACEOF
4006
4007
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004008case $host in
Ken Thomases42664332009-05-01 22:59:52 -05004009 *-darwin*)
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004010 if test "x$enable_win64" = "xyes"
Ken Thomases42664332009-05-01 22:59:52 -05004011 then
4012 CC="$CC -m64"
4013 CXX="$CXX -m64"
4014 LD="${LD:-ld} -arch x86_64"
4015 AS="${AS:-as} -arch x86_64"
4016 host_cpu="x86_64"
4017 notice_platform="64-bit "
4018 TARGETFLAGS="-m64"
4019
4020 else
4021 CC="$CC -m32"
4022 CXX="$CXX -m32"
4023 LD="${LD:-ld} -arch i386"
4024 AS="${AS:-as} -arch i386"
4025 host_cpu="i386"
4026 notice_platform="32-bit "
4027 TARGETFLAGS="-m32"
4028
4029 enable_win16=${enable_win16:-yes}
4030 fi
4031 ;;
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004032 x86_64*)
Alexandre Julliard6b4ed0f2009-01-12 19:29:43 +01004033 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004034 then
4035 CC="$CC -m32"
4036 CXX="$CXX -m32"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004038$as_echo_n "checking whether $CC works... " >&6; }
4039
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004041/* end confdefs.h. */
4042
4043int
4044main ()
4045{
4046
4047 ;
4048 return 0;
4049}
4050_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004051if ac_fn_c_try_link "$LINENO"; then :
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004053$as_echo "yes" >&6; }
4054else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004056$as_echo "no" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004057 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 +01004058fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004059rm -f core conftest.err conftest.$ac_objext \
4060 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004061 LD="${LD:-ld} -m elf_i386"
4062 AS="${AS:-as} --32"
4063 host_cpu="i386"
4064 notice_platform="32-bit "
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004065 TARGETFLAGS="-m32"
4066
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004067 enable_win16=${enable_win16:-yes}
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004068 else
Alexandre Julliard8812d242009-06-14 11:19:54 +02004069 if test "x${GCC}" = "xyes"
4070 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004072$as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard8812d242009-06-14 11:19:54 +02004074/* end confdefs.h. */
4075#include <stdarg.h>
4076int
4077main ()
4078{
4079void func(__builtin_ms_va_list *args);
4080 ;
4081 return 0;
4082}
4083_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004084if ac_fn_c_try_compile "$LINENO"; then :
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004086$as_echo "yes" >&6; }
4087else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004089$as_echo "no" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004090 as_fn_error "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004091fi
Alexandre Julliard8812d242009-06-14 11:19:54 +02004092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 fi
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004094 TARGETFLAGS="-m64"
4095
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004096 fi
4097 ;;
Alexandre Julliard391fce62009-04-02 12:59:52 +02004098 *-mingw32*|*-cygwin*)
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004099 enable_win16=${enable_win16:-no}
Alexandre Goujonac0a38c2010-03-01 21:39:40 +01004100 CFLAGS="$CFLAGS -D_WIN32"
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004101 ;;
4102 i[3456789]86*)
4103 enable_win16=${enable_win16:-yes}
4104 ;;
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004105esac
4106
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004107enable_win16=${enable_win16:-no}
Alexandre Julliard776820e2009-02-23 17:46:33 +01004108
Alexandre Julliard95081552010-02-09 19:08:17 +01004109enable_winetest=${enable_winetest:-$enable_tests}
4110
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004111if test -n "$with_wine64"
4112then
4113 if test "x$enable_win64" = "xyes"
4114 then
4115 as_fn_error "--enable-win64 and --with-wine64 are mutually exclusive.
4116--enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4117 fi
Alexandre Julliard90647772009-08-13 19:48:42 +02004118 WOW64_DISABLE=\#
4119
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004120 enable_fonts=${enable_fonts:-no}
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004121 enable_server=${enable_server:-no}
4122 enable_tools=${enable_tools:-no}
Alexandre Julliardb3265322010-04-21 12:28:22 +02004123elif test "x$enable_win64" = "xyes"
4124then
4125 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004126fi
4127
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004129$as_echo_n "checking for the directory containing the Wine tools... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004130if test "${wine_cv_toolsdir+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004131 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004132else
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004133 wine_cv_toolsdir="$with_wine_tools"
4134 if test -z "$with_wine_tools"; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004135 if test "$cross_compiling" = "yes"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004136 as_fn_error "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004137 elif test -n "$with_wine64"; then
4138 wine_cv_toolsdir="$with_wine64"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004139 fi
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004140 fi
4141 if test -z "$wine_cv_toolsdir"; then
4142 wine_cv_toolsdir="\$(TOPOBJDIR)"
4143 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4144 case "$wine_cv_toolsdir" in
4145 /*) ;;
4146 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$wine_cv_toolsdir" ;;
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004147 esac
4148 else
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004149 as_fn_error "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004150 fi
4151fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004153$as_echo "$wine_cv_toolsdir" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004154TOOLSDIR=$wine_cv_toolsdir
4155
Alexandre Julliard4d135d92009-02-16 13:08:44 +01004156if test -n "$host_alias" -a "$host_alias" != "$build_alias"
Alexandre Julliard424cb272008-12-26 17:54:50 +01004157then
Alexandre Julliard0fea4a52009-02-12 10:28:23 +01004158 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
Alexandre Julliard424cb272008-12-26 17:54:50 +01004159
4160fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004161
Alexandre Julliard40916272007-03-08 13:19:50 +01004162for ac_prog in flex
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004163do
4164 # Extract the first word of "$ac_prog", so it can be a program name with args.
4165set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004167$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004168if test "${ac_cv_prog_FLEX+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004169 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004170else
Alexandre Julliard40916272007-03-08 13:19:50 +01004171 if test -n "$FLEX"; then
4172 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004173else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175for as_dir in $PATH
4176do
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004179 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliard40916272007-03-08 13:19:50 +01004181 ac_cv_prog_FLEX="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004183 break 2
4184 fi
4185done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004186 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004187IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004188
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004189fi
4190fi
Alexandre Julliard40916272007-03-08 13:19:50 +01004191FLEX=$ac_cv_prog_FLEX
4192if test -n "$FLEX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004194$as_echo "$FLEX" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004195else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004197$as_echo "no" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004198fi
4199
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004200
Alexandre Julliard40916272007-03-08 13:19:50 +01004201 test -n "$FLEX" && break
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004202done
Alexandre Julliard40916272007-03-08 13:19:50 +01004203test -n "$FLEX" || FLEX="none"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004204
Alexandre Julliard40916272007-03-08 13:19:50 +01004205if test "$FLEX" = "none"
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004206then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004207 as_fn_error "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004208fi
Michael Stefaniucce307332009-12-29 18:07:02 +01004209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4210$as_echo_n "checking whether flex is recent enough... " >&6; }
4211cat >conftest.l <<EOF
4212%top{
4213#include "prediluvian.h"
4214}
4215%%
4216EOF
4217if $FLEX -t conftest.l >/dev/null 2>&1
4218then
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4220$as_echo "yes" >&6; }
4221else
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4223$as_echo "no" >&6; }
4224 as_fn_error "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4225fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004226
Mike McCormackc068f672004-03-16 03:11:39 +00004227for ac_prog in bison
4228do
4229 # Extract the first word of "$ac_prog", so it can be a program name with args.
4230set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004232$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004233if test "${ac_cv_prog_BISON+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004234 $as_echo_n "(cached) " >&6
Mike McCormackc068f672004-03-16 03:11:39 +00004235else
4236 if test -n "$BISON"; then
4237 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4238else
4239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240for as_dir in $PATH
4241do
4242 IFS=$as_save_IFS
4243 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004244 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Mike McCormackc068f672004-03-16 03:11:39 +00004246 ac_cv_prog_BISON="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormackc068f672004-03-16 03:11:39 +00004248 break 2
4249 fi
4250done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004251 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004252IFS=$as_save_IFS
Mike McCormackc068f672004-03-16 03:11:39 +00004253
4254fi
4255fi
4256BISON=$ac_cv_prog_BISON
4257if test -n "$BISON"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004259$as_echo "$BISON" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00004260else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004262$as_echo "no" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00004263fi
4264
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004265
Mike McCormackc068f672004-03-16 03:11:39 +00004266 test -n "$BISON" && break
4267done
4268test -n "$BISON" || BISON="none"
4269
4270if test "$BISON" = "none"
4271then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004272 as_fn_error "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
Mike McCormackc068f672004-03-16 03:11:39 +00004273fi
4274
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004275if test -n "$ac_tool_prefix"; then
Francois Gouget86bd0462008-06-26 14:05:57 +02004276 for ac_prog in ar gar
4277 do
4278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4279set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004281$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004282if test "${ac_cv_prog_AR+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004283 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004284else
4285 if test -n "$AR"; then
4286 ac_cv_prog_AR="$AR" # Let the user override the test.
4287else
4288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289for as_dir in $PATH
4290do
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004293 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Francois Gouget86bd0462008-06-26 14:05:57 +02004295 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004297 break 2
4298 fi
4299done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004300 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004301IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004302
4303fi
4304fi
4305AR=$ac_cv_prog_AR
4306if test -n "$AR"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004308$as_echo "$AR" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004309else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004311$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004312fi
4313
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004314
Francois Gouget86bd0462008-06-26 14:05:57 +02004315 test -n "$AR" && break
4316 done
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004317fi
Francois Gouget86bd0462008-06-26 14:05:57 +02004318if test -z "$AR"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004319 ac_ct_AR=$AR
Francois Gouget86bd0462008-06-26 14:05:57 +02004320 for ac_prog in ar gar
4321do
4322 # Extract the first word of "$ac_prog", so it can be a program name with args.
4323set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004325$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004326if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004327 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004328else
4329 if test -n "$ac_ct_AR"; then
4330 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4331else
4332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333for as_dir in $PATH
4334do
4335 IFS=$as_save_IFS
4336 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004337 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Francois Gouget86bd0462008-06-26 14:05:57 +02004339 ac_cv_prog_ac_ct_AR="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004341 break 2
4342 fi
4343done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004344 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004345IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004346
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004347fi
4348fi
4349ac_ct_AR=$ac_cv_prog_ac_ct_AR
4350if test -n "$ac_ct_AR"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004352$as_echo "$ac_ct_AR" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004353else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004355$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004356fi
4357
Francois Gouget86bd0462008-06-26 14:05:57 +02004358
4359 test -n "$ac_ct_AR" && break
4360done
4361
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004362 if test "x$ac_ct_AR" = x; then
4363 AR="ar"
4364 else
4365 case $cross_compiling:$ac_tool_warned in
4366yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004367{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004368$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004369ac_tool_warned=yes ;;
4370esac
4371 AR=$ac_ct_AR
4372 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004373fi
4374
Rob Shearman0c694d72008-03-04 15:53:41 +00004375ARFLAGS=rc
4376
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004377if test -n "$ac_tool_prefix"; then
4378 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4379set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004381$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004382if test "${ac_cv_prog_RANLIB+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004383 $as_echo_n "(cached) " >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004384else
4385 if test -n "$RANLIB"; then
4386 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4387else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389for as_dir in $PATH
4390do
4391 IFS=$as_save_IFS
4392 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004393 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004395 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004397 break 2
4398 fi
4399done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004400 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004401IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004402
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004403fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004404fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004405RANLIB=$ac_cv_prog_RANLIB
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004406if test -n "$RANLIB"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004408$as_echo "$RANLIB" >&6; }
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004409else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004411$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004412fi
4413
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004414
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004415fi
4416if test -z "$ac_cv_prog_RANLIB"; then
4417 ac_ct_RANLIB=$RANLIB
4418 # Extract the first word of "ranlib", so it can be a program name with args.
4419set dummy ranlib; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004421$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004422if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004423 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004424else
4425 if test -n "$ac_ct_RANLIB"; then
4426 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4427else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429for as_dir in $PATH
4430do
4431 IFS=$as_save_IFS
4432 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004433 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004435 ac_cv_prog_ac_ct_RANLIB="ranlib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004437 break 2
4438 fi
4439done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004440 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004441IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004442
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004443fi
4444fi
4445ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4446if test -n "$ac_ct_RANLIB"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004448$as_echo "$ac_ct_RANLIB" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004449else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004451$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004452fi
4453
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004454 if test "x$ac_ct_RANLIB" = x; then
4455 RANLIB=":"
4456 else
4457 case $cross_compiling:$ac_tool_warned in
4458yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004461ac_tool_warned=yes ;;
4462esac
4463 RANLIB=$ac_ct_RANLIB
4464 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004465else
4466 RANLIB="$ac_cv_prog_RANLIB"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004467fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004468
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004469if test -n "$ac_tool_prefix"; then
4470 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4471set dummy ${ac_tool_prefix}strip; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004473$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004474if test "${ac_cv_prog_STRIP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004475 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004476else
4477 if test -n "$STRIP"; then
4478 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4479else
4480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481for as_dir in $PATH
4482do
4483 IFS=$as_save_IFS
4484 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004485 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004487 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004489 break 2
4490 fi
4491done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004492 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004493IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004494
4495fi
4496fi
4497STRIP=$ac_cv_prog_STRIP
4498if test -n "$STRIP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004500$as_echo "$STRIP" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004501else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004503$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004504fi
4505
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004506
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004507fi
4508if test -z "$ac_cv_prog_STRIP"; then
4509 ac_ct_STRIP=$STRIP
4510 # Extract the first word of "strip", so it can be a program name with args.
4511set dummy strip; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004513$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004514if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004515 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004516else
4517 if test -n "$ac_ct_STRIP"; then
4518 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4519else
4520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521for as_dir in $PATH
4522do
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004525 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004527 ac_cv_prog_ac_ct_STRIP="strip"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004529 break 2
4530 fi
4531done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004532 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004533IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004534
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004535fi
4536fi
4537ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4538if test -n "$ac_ct_STRIP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004540$as_echo "$ac_ct_STRIP" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004541else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004543$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004544fi
4545
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004546 if test "x$ac_ct_STRIP" = x; then
4547 STRIP="strip"
4548 else
4549 case $cross_compiling:$ac_tool_warned in
4550yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004553ac_tool_warned=yes ;;
4554esac
4555 STRIP=$ac_ct_STRIP
4556 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004557else
4558 STRIP="$ac_cv_prog_STRIP"
4559fi
4560
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004562$as_echo_n "checking whether ln -s works... " >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004563LN_S=$as_ln_s
4564if test "$LN_S" = "ln -s"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004566$as_echo "yes" >&6; }
Alexandre Julliard641ee761997-08-04 16:34:36 +00004567else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004569$as_echo "no, using $LN_S" >&6; }
Alexandre Julliard641ee761997-08-04 16:34:36 +00004570fi
4571
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004573$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004574if test "${ac_cv_path_GREP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004575 $as_echo_n "(cached) " >&6
Alexandre Julliardc6264912004-08-16 20:09:37 +00004576else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004577 if test -z "$GREP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004578 ac_path_GREP_found=false
Alexandre Julliardabf50482008-10-31 12:56:53 +01004579 # Loop through the user's path and test for each of PROGNAME-LIST
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004581for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4582do
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004585 for ac_prog in grep ggrep; do
Alexandre Julliardabf50482008-10-31 12:56:53 +01004586 for ac_exec_ext in '' $ac_executable_extensions; do
4587 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4588 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4589# Check for GNU ac_path_GREP and select it if it is found.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004590 # Check for GNU $ac_path_GREP
4591case `"$ac_path_GREP" --version 2>&1` in
4592*GNU*)
4593 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4594*)
4595 ac_count=0
Alexandre Julliardabf50482008-10-31 12:56:53 +01004596 $as_echo_n 0123456789 >"conftest.in"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004597 while :
4598 do
4599 cat "conftest.in" "conftest.in" >"conftest.tmp"
4600 mv "conftest.tmp" "conftest.in"
4601 cp "conftest.in" "conftest.nl"
Alexandre Julliardabf50482008-10-31 12:56:53 +01004602 $as_echo 'GREP' >> "conftest.nl"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004603 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4604 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004605 as_fn_arith $ac_count + 1 && ac_count=$as_val
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004606 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4607 # Best one so far, save it but keep looking for a better one
4608 ac_cv_path_GREP="$ac_path_GREP"
4609 ac_path_GREP_max=$ac_count
Alexandre Julliardc6264912004-08-16 20:09:37 +00004610 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004611 # 10*(2^10) chars as input seems more than enough
4612 test $ac_count -gt 10 && break
4613 done
Jeremy White0ebeb532006-06-20 13:18:41 +02004614 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004615esac
4616
Alexandre Julliardabf50482008-10-31 12:56:53 +01004617 $ac_path_GREP_found && break 3
4618 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004619 done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004620 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004621IFS=$as_save_IFS
Alexandre Julliardabf50482008-10-31 12:56:53 +01004622 if test -z "$ac_cv_path_GREP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004623 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 +01004624 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004625else
4626 ac_cv_path_GREP=$GREP
4627fi
4628
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004629fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004631$as_echo "$ac_cv_path_GREP" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004632 GREP="$ac_cv_path_GREP"
4633
4634
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004636$as_echo_n "checking for egrep... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004637if test "${ac_cv_path_EGREP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004638 $as_echo_n "(cached) " >&6
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004639else
4640 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4641 then ac_cv_path_EGREP="$GREP -E"
4642 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004643 if test -z "$EGREP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004644 ac_path_EGREP_found=false
Alexandre Julliardabf50482008-10-31 12:56:53 +01004645 # Loop through the user's path and test for each of PROGNAME-LIST
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004647for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4648do
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004651 for ac_prog in egrep; do
Alexandre Julliardabf50482008-10-31 12:56:53 +01004652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4654 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4655# Check for GNU ac_path_EGREP and select it if it is found.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004656 # Check for GNU $ac_path_EGREP
4657case `"$ac_path_EGREP" --version 2>&1` in
4658*GNU*)
4659 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4660*)
4661 ac_count=0
Alexandre Julliardabf50482008-10-31 12:56:53 +01004662 $as_echo_n 0123456789 >"conftest.in"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004663 while :
4664 do
4665 cat "conftest.in" "conftest.in" >"conftest.tmp"
4666 mv "conftest.tmp" "conftest.in"
4667 cp "conftest.in" "conftest.nl"
Alexandre Julliardabf50482008-10-31 12:56:53 +01004668 $as_echo 'EGREP' >> "conftest.nl"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004669 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4670 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004671 as_fn_arith $ac_count + 1 && ac_count=$as_val
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004672 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4673 # Best one so far, save it but keep looking for a better one
4674 ac_cv_path_EGREP="$ac_path_EGREP"
4675 ac_path_EGREP_max=$ac_count
4676 fi
4677 # 10*(2^10) chars as input seems more than enough
4678 test $ac_count -gt 10 && break
4679 done
Jeremy White0ebeb532006-06-20 13:18:41 +02004680 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004681esac
4682
Alexandre Julliardabf50482008-10-31 12:56:53 +01004683 $ac_path_EGREP_found && break 3
4684 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004685 done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004686 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004687IFS=$as_save_IFS
Alexandre Julliardabf50482008-10-31 12:56:53 +01004688 if test -z "$ac_cv_path_EGREP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004689 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 +01004690 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004691else
4692 ac_cv_path_EGREP=$EGREP
4693fi
4694
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004695 fi
4696fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004698$as_echo "$ac_cv_path_EGREP" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004699 EGREP="$ac_cv_path_EGREP"
Alexandre Julliardc6264912004-08-16 20:09:37 +00004700
4701
James Juranffe6b761999-06-12 08:21:57 +00004702# Extract the first word of "ldconfig", so it can be a program name with args.
4703set dummy ldconfig; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004705$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004706if test "${ac_cv_path_LDCONFIG+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004707 $as_echo_n "(cached) " >&6
James Juranffe6b761999-06-12 08:21:57 +00004708else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004709 case $LDCONFIG in
4710 [\\/]* | ?:[\\/]*)
James Juranffe6b761999-06-12 08:21:57 +00004711 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4712 ;;
4713 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Medland91372b32002-04-20 21:00:42 +00004715for as_dir in /sbin /usr/sbin $PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004716do
4717 IFS=$as_save_IFS
4718 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004719 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004721 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004723 break 2
4724 fi
4725done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004726 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004727IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004728
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004729 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00004730 ;;
4731esac
4732fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004733LDCONFIG=$ac_cv_path_LDCONFIG
James Juranffe6b761999-06-12 08:21:57 +00004734if test -n "$LDCONFIG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004736$as_echo "$LDCONFIG" >&6; }
James Juranffe6b761999-06-12 08:21:57 +00004737else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004739$as_echo "no" >&6; }
James Juranffe6b761999-06-12 08:21:57 +00004740fi
4741
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004742
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004743# Find a good install program. We prefer a C program (faster),
4744# so one script is as good as another. But avoid the broken or
4745# incompatible versions:
4746# SysV /etc/install, /usr/sbin/install
4747# SunOS /usr/etc/install
4748# IRIX /sbin/install
4749# AIX /bin/install
4750# AmigaOS /C/install, which installs bootblocks on floppy discs
4751# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4752# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4753# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Alexandre Julliard875927f2004-01-02 01:55:29 +00004754# OS/2's system install, which has a completely different semantic
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004755# ./install, which can be erroneously created by make from ./install.sh.
Alexandre Julliardabf50482008-10-31 12:56:53 +01004756# Reject install programs that cannot install multiple files.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004758$as_echo_n "checking for a BSD-compatible install... " >&6; }
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004759if test -z "$INSTALL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004760if test "${ac_cv_path_install+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004761 $as_echo_n "(cached) " >&6
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004762else
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764for as_dir in $PATH
4765do
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004768 # Account for people who put trailing slashes in PATH elements.
4769case $as_dir/ in #((
4770 ./ | .// | /[cC]/* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004771 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004772 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004773 /usr/ucb/* ) ;;
4774 *)
4775 # OSF1 and SCO ODT 3.0 have their own names for install.
4776 # Don't use installbsd from OSF since it installs stuff as root
4777 # by default.
4778 for ac_prog in ginstall scoinst install; do
4779 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004780 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00004781 if test $ac_prog = install &&
4782 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4783 # AIX install. It has an incompatible calling convention.
4784 :
4785 elif test $ac_prog = install &&
4786 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4787 # program-specific install script used by HP pwplus--don't use.
4788 :
4789 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004790 rm -rf conftest.one conftest.two conftest.dir
4791 echo one > conftest.one
4792 echo two > conftest.two
4793 mkdir conftest.dir
4794 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4795 test -s conftest.one && test -s conftest.two &&
4796 test -s conftest.dir/conftest.one &&
4797 test -s conftest.dir/conftest.two
4798 then
4799 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4800 break 3
4801 fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004802 fi
4803 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004804 done
4805 done
4806 ;;
4807esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01004808
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004809 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004810IFS=$as_save_IFS
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004811
Alexandre Julliardabf50482008-10-31 12:56:53 +01004812rm -rf conftest.one conftest.two conftest.dir
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004813
4814fi
4815 if test "${ac_cv_path_install+set}" = set; then
4816 INSTALL=$ac_cv_path_install
4817 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004818 # As a last resort, use the slow shell script. Don't cache a
4819 # value for INSTALL within a source directory, because that will
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004820 # break other packages using the cache if that directory is
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004821 # removed, or if the value is a relative name.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004822 INSTALL=$ac_install_sh
4823 fi
4824fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004826$as_echo "$INSTALL" >&6; }
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004827
4828# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4829# It thinks the first close brace ends the variable substitution.
4830test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4831
4832test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4833
4834test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4835
4836case "$INSTALL" in
Alexandre Julliard8418d8f2002-12-24 02:39:47 +00004837 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004838 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4839esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004840
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004841for ac_prog in lclint lint
4842do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004843 # Extract the first word of "$ac_prog", so it can be a program name with args.
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004844set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004846$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004847if test "${ac_cv_prog_LINT+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004848 $as_echo_n "(cached) " >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004849else
4850 if test -n "$LINT"; then
4851 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4852else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854for as_dir in $PATH
4855do
4856 IFS=$as_save_IFS
4857 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004858 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004860 ac_cv_prog_LINT="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004862 break 2
4863 fi
4864done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004865 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004866IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004867
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004868fi
4869fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004870LINT=$ac_cv_prog_LINT
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004871if test -n "$LINT"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004873$as_echo "$LINT" >&6; }
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004874else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004876$as_echo "no" >&6; }
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004877fi
4878
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004879
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004880 test -n "$LINT" && break
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004881done
4882
4883if test "$LINT" = "lint"
4884then
4885 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4886 fi
4887
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004888
4889
Huw Davies00acb5f2004-08-17 22:33:14 +00004890for ac_prog in fontforge
4891do
4892 # Extract the first word of "$ac_prog", so it can be a program name with args.
4893set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004895$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004896if test "${ac_cv_prog_FONTFORGE+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004897 $as_echo_n "(cached) " >&6
Huw Davies00acb5f2004-08-17 22:33:14 +00004898else
4899 if test -n "$FONTFORGE"; then
4900 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4901else
4902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903for as_dir in $PATH
4904do
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004907 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Huw Davies00acb5f2004-08-17 22:33:14 +00004909 ac_cv_prog_FONTFORGE="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Huw Davies00acb5f2004-08-17 22:33:14 +00004911 break 2
4912 fi
4913done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004914 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004915IFS=$as_save_IFS
Huw Davies00acb5f2004-08-17 22:33:14 +00004916
4917fi
4918fi
4919FONTFORGE=$ac_cv_prog_FONTFORGE
4920if test -n "$FONTFORGE"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004922$as_echo "$FONTFORGE" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00004923else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004925$as_echo "no" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00004926fi
4927
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004928
Huw Davies00acb5f2004-08-17 22:33:14 +00004929 test -n "$FONTFORGE" && break
4930done
4931test -n "$FONTFORGE" || FONTFORGE="false"
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00004932
Mike McCormack90c75bd2005-08-08 18:36:53 +00004933for ac_prog in pkg-config
4934do
4935 # Extract the first word of "$ac_prog", so it can be a program name with args.
4936set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004938$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004939if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004940 $as_echo_n "(cached) " >&6
Mike McCormack90c75bd2005-08-08 18:36:53 +00004941else
4942 if test -n "$PKG_CONFIG"; then
4943 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4944else
4945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946for as_dir in $PATH
4947do
4948 IFS=$as_save_IFS
4949 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004950 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Mike McCormack90c75bd2005-08-08 18:36:53 +00004952 ac_cv_prog_PKG_CONFIG="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormack90c75bd2005-08-08 18:36:53 +00004954 break 2
4955 fi
4956done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004957 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004958IFS=$as_save_IFS
Mike McCormack90c75bd2005-08-08 18:36:53 +00004959
4960fi
4961fi
4962PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4963if test -n "$PKG_CONFIG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004965$as_echo "$PKG_CONFIG" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00004966else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004968$as_echo "no" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00004969fi
4970
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004971
Mike McCormack90c75bd2005-08-08 18:36:53 +00004972 test -n "$PKG_CONFIG" && break
4973done
4974test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4975
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004976for ac_prog in rsvg
4977do
4978 # Extract the first word of "$ac_prog", so it can be a program name with args.
4979set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004981$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004982if test "${ac_cv_prog_RSVG+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004983 $as_echo_n "(cached) " >&6
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004984else
4985 if test -n "$RSVG"; then
4986 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4987else
4988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989for as_dir in $PATH
4990do
4991 IFS=$as_save_IFS
4992 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004993 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995 ac_cv_prog_RSVG="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004997 break 2
4998 fi
4999done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005000 done
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005001IFS=$as_save_IFS
5002
5003fi
5004fi
5005RSVG=$ac_cv_prog_RSVG
5006if test -n "$RSVG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005008$as_echo "$RSVG" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005009else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005011$as_echo "no" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005012fi
5013
5014
5015 test -n "$RSVG" && break
5016done
5017test -n "$RSVG" || RSVG="false"
5018
Joel Holdsworth476a2be2010-04-05 11:15:03 +01005019for ac_prog in convert
5020do
5021 # Extract the first word of "$ac_prog", so it can be a program name with args.
5022set dummy $ac_prog; ac_word=$2
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024$as_echo_n "checking for $ac_word... " >&6; }
5025if test "${ac_cv_prog_CONVERT+set}" = set; then :
5026 $as_echo_n "(cached) " >&6
5027else
5028 if test -n "$CONVERT"; then
5029 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5030else
5031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032for as_dir in $PATH
5033do
5034 IFS=$as_save_IFS
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5038 ac_cv_prog_CONVERT="$ac_prog"
5039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 break 2
5041 fi
5042done
5043 done
5044IFS=$as_save_IFS
5045
5046fi
5047fi
5048CONVERT=$ac_cv_prog_CONVERT
5049if test -n "$CONVERT"; then
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5051$as_echo "$CONVERT" >&6; }
5052else
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054$as_echo "no" >&6; }
5055fi
5056
5057
5058 test -n "$CONVERT" && break
5059done
5060test -n "$CONVERT" || CONVERT="false"
5061
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005062for ac_prog in icotool
5063do
5064 # Extract the first word of "$ac_prog", so it can be a program name with args.
5065set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005067$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005068if test "${ac_cv_prog_ICOTOOL+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005069 $as_echo_n "(cached) " >&6
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005070else
5071 if test -n "$ICOTOOL"; then
5072 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5073else
5074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075for as_dir in $PATH
5076do
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005079 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081 ac_cv_prog_ICOTOOL="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005083 break 2
5084 fi
5085done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005086 done
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005087IFS=$as_save_IFS
5088
5089fi
5090fi
5091ICOTOOL=$ac_cv_prog_ICOTOOL
5092if test -n "$ICOTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005094$as_echo "$ICOTOOL" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005095else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005097$as_echo "no" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005098fi
5099
5100
5101 test -n "$ICOTOOL" && break
5102done
5103test -n "$ICOTOOL" || ICOTOOL="false"
5104
5105
Andrew Nguyen2eda9c72010-05-25 22:20:14 -05005106if test "x$enable_maintainer_mode" != "xyes"
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005107then
Andrew Nguyen2eda9c72010-05-25 22:20:14 -05005108 MAINTAINER_MODE=\#
5109
5110else
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01005111 if test "$FONTFORGE" = "false"; then as_fn_append wine_warnings "|fontforge is missing, fonts can't be rebuilt."; fi
5112 if test "$RSVG" = "false"; then as_fn_append wine_warnings "|rsvg is missing, icons can't be rebuilt."; fi
Joel Holdsworthb9eae1e2010-05-16 23:07:40 +01005113
5114 if test "$CONVERT" = false
5115 then
5116 as_fn_append wine_warnings "|imagemagick is missing, icons can't be rebuilt."
5117 else
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5119$as_echo_n "checking for recent enough imagemagick... " >&6; }
5120 convert_version=`convert --version | head -n1`
5121 if test "x$convert_version" != "x"
5122 then
5123 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5124 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5125 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5126 then
5127 CONVERT=false
5128 as_fn_append wine_warnings "|imagemagick version 6.6 or newer is needed to rebuild icons."
5129 fi
5130 fi
5131 if test "$CONVERT" = false
5132 then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5134$as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5135 else
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5137$as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5138 fi
5139 fi
Joel Holdsworth425f1382010-04-05 11:14:47 +01005140
5141 if test "$ICOTOOL" = false
5142 then
5143 as_fn_append wine_warnings "|icotool is missing, icons can't be rebuilt."
5144 else
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5146$as_echo_n "checking for recent enough icotool... " >&6; }
5147 icotool_version=`icotool --version | head -n1`
5148 if test "x$icotool_version" != "x"
5149 then
Joel Holdsworth9571f782010-05-16 23:07:33 +01005150 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5151 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
Joel Holdsworth425f1382010-04-05 11:14:47 +01005152 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5153 then
5154 ICOTOOL=false
5155 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5156 fi
5157 fi
5158 if test "$ICOTOOL" = false
5159 then
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5161$as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5162 else
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5164$as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5165 fi
5166 fi
5167
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005168fi
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00005169
Alexandre Julliardadbb0982005-08-09 11:12:29 +00005170case $host_cpu in
5171 *i[3456789]86*)
Alexandre Julliard3d08f5d2006-07-18 10:12:20 +02005172 # Extract the first word of "prelink", so it can be a program name with args.
5173set dummy prelink; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005175$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005176if test "${ac_cv_path_PRELINK+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005177 $as_echo_n "(cached) " >&6
Alexandre Julliardadbb0982005-08-09 11:12:29 +00005178else
Alexandre Julliard3d08f5d2006-07-18 10:12:20 +02005179 case $PRELINK in
5180 [\\/]* | ?:[\\/]*)
5181 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
5182 ;;
5183 *)
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliardadbb0982005-08-09 11:12:29 +00005185for as_dir in /sbin /usr/sbin $PATH
5186do
5187 IFS=$as_save_IFS
5188 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005189 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01005190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliard3d08f5d2006-07-18 10:12:20 +02005191 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardadbb0982005-08-09 11:12:29 +00005193 break 2
5194 fi
5195done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005196 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005197IFS=$as_save_IFS
Alexandre Julliardadbb0982005-08-09 11:12:29 +00005198
Alexandre Julliard3d08f5d2006-07-18 10:12:20 +02005199 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
5200 ;;
5201esac
Alexandre Julliardadbb0982005-08-09 11:12:29 +00005202fi
Alexandre Julliard3d08f5d2006-07-18 10:12:20 +02005203PRELINK=$ac_cv_path_PRELINK
Alexandre Julliardadbb0982005-08-09 11:12:29 +00005204if test -n "$PRELINK"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005206$as_echo "$PRELINK" >&6; }
Alexandre Julliardadbb0982005-08-09 11:12:29 +00005207else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005209$as_echo "no" >&6; }
Alexandre Julliardadbb0982005-08-09 11:12:29 +00005210fi
5211
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005212
Alexandre Julliardadbb0982005-08-09 11:12:29 +00005213 ;;
5214esac
5215
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005216
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005218$as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005219if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005220 $as_echo_n "(cached) " >&6
Alexandre Julliard902da691995-11-05 14:39:02 +00005221else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005222 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005223LIBS="-li386 $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005225/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005226
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005227/* Override any GCC internal prototype to avoid an error.
5228 Use char because int might match the return type of a GCC
5229 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005230#ifdef __cplusplus
5231extern "C"
5232#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005233char i386_set_ldt ();
5234int
5235main ()
5236{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005237return i386_set_ldt ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005238 ;
5239 return 0;
5240}
5241_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005242if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005243 ac_cv_lib_i386_i386_set_ldt=yes
Alexandre Julliard902da691995-11-05 14:39:02 +00005244else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005245 ac_cv_lib_i386_i386_set_ldt=no
Alexandre Julliard902da691995-11-05 14:39:02 +00005246fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005247rm -f core conftest.err conftest.$ac_objext \
5248 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005249LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005250fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005252$as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005253if test "x$ac_cv_lib_i386_i386_set_ldt" = x""yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005254 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005255#define HAVE_LIBI386 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005256_ACEOF
Alexandre Julliard02e90081998-01-04 17:49:09 +00005257
5258 LIBS="-li386 $LIBS"
5259
Alexandre Julliard02e90081998-01-04 17:49:09 +00005260fi
5261
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005263$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005264if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005265 $as_echo_n "(cached) " >&6
Todd Vierlingecc76691998-12-15 17:49:02 +00005266else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005267 ac_check_lib_save_LIBS=$LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005268LIBS="-lossaudio $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005270/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005271
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005272/* Override any GCC internal prototype to avoid an error.
5273 Use char because int might match the return type of a GCC
5274 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005275#ifdef __cplusplus
5276extern "C"
5277#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005278char _oss_ioctl ();
5279int
5280main ()
5281{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005282return _oss_ioctl ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005283 ;
5284 return 0;
5285}
5286_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005287if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005288 ac_cv_lib_ossaudio__oss_ioctl=yes
Todd Vierlingecc76691998-12-15 17:49:02 +00005289else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005290 ac_cv_lib_ossaudio__oss_ioctl=no
Todd Vierlingecc76691998-12-15 17:49:02 +00005291fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005292rm -f core conftest.err conftest.$ac_objext \
5293 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005294LIBS=$ac_check_lib_save_LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005295fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005297$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005298if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005299 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005300#define HAVE_LIBOSSAUDIO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005301_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00005302
5303 LIBS="-lossaudio $LIBS"
5304
Todd Vierlingecc76691998-12-15 17:49:02 +00005305fi
5306
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005307
Alexandre Julliard82776022005-08-08 11:17:25 +00005308XLIB=""
Huw Daviese82dfab2004-08-04 19:10:26 +00005309
Huw Daviese82dfab2004-08-04 19:10:26 +00005310OPENGL_LIBS=""
Huw Daviese82dfab2004-08-04 19:10:26 +00005311
Rein Klazes7ff12562004-11-09 20:16:35 +00005312
Alexandre Julliard82776022005-08-08 11:17:25 +00005313
Eric Pouechbc56c4e2009-08-25 19:33:28 +02005314# Check whether --enable-largefile was given.
5315if test "${enable_largefile+set}" = set; then :
5316 enableval=$enable_largefile;
5317fi
5318
5319if test "$enable_largefile" != no; then
5320
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5322$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5323if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5324 $as_echo_n "(cached) " >&6
5325else
5326 ac_cv_sys_largefile_CC=no
5327 if test "$GCC" != yes; then
5328 ac_save_CC=$CC
5329 while :; do
5330 # IRIX 6.2 and later do not support large files by default,
5331 # so use the C compiler's -n32 option if that helps.
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333/* end confdefs.h. */
5334#include <sys/types.h>
5335 /* Check that off_t can represent 2**63 - 1 correctly.
5336 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5337 since some C++ compilers masquerading as C compilers
5338 incorrectly reject 9223372036854775807. */
5339#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5340 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5341 && LARGE_OFF_T % 2147483647 == 1)
5342 ? 1 : -1];
5343int
5344main ()
5345{
5346
5347 ;
5348 return 0;
5349}
5350_ACEOF
5351 if ac_fn_c_try_compile "$LINENO"; then :
5352 break
5353fi
5354rm -f core conftest.err conftest.$ac_objext
5355 CC="$CC -n32"
5356 if ac_fn_c_try_compile "$LINENO"; then :
5357 ac_cv_sys_largefile_CC=' -n32'; break
5358fi
5359rm -f core conftest.err conftest.$ac_objext
5360 break
5361 done
5362 CC=$ac_save_CC
5363 rm -f conftest.$ac_ext
5364 fi
5365fi
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5367$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5368 if test "$ac_cv_sys_largefile_CC" != no; then
5369 CC=$CC$ac_cv_sys_largefile_CC
5370 fi
5371
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5373$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5374if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5375 $as_echo_n "(cached) " >&6
5376else
5377 while :; do
5378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379/* end confdefs.h. */
5380#include <sys/types.h>
5381 /* Check that off_t can represent 2**63 - 1 correctly.
5382 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5383 since some C++ compilers masquerading as C compilers
5384 incorrectly reject 9223372036854775807. */
5385#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5386 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5387 && LARGE_OFF_T % 2147483647 == 1)
5388 ? 1 : -1];
5389int
5390main ()
5391{
5392
5393 ;
5394 return 0;
5395}
5396_ACEOF
5397if ac_fn_c_try_compile "$LINENO"; then :
5398 ac_cv_sys_file_offset_bits=no; break
5399fi
5400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402/* end confdefs.h. */
5403#define _FILE_OFFSET_BITS 64
5404#include <sys/types.h>
5405 /* Check that off_t can represent 2**63 - 1 correctly.
5406 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5407 since some C++ compilers masquerading as C compilers
5408 incorrectly reject 9223372036854775807. */
5409#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5410 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5411 && LARGE_OFF_T % 2147483647 == 1)
5412 ? 1 : -1];
5413int
5414main ()
5415{
5416
5417 ;
5418 return 0;
5419}
5420_ACEOF
5421if ac_fn_c_try_compile "$LINENO"; then :
5422 ac_cv_sys_file_offset_bits=64; break
5423fi
5424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5425 ac_cv_sys_file_offset_bits=unknown
5426 break
5427done
5428fi
5429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5430$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5431case $ac_cv_sys_file_offset_bits in #(
5432 no | unknown) ;;
5433 *)
5434cat >>confdefs.h <<_ACEOF
5435#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5436_ACEOF
5437;;
5438esac
5439rm -rf conftest*
5440 if test $ac_cv_sys_file_offset_bits = unknown; then
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5442$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5443if test "${ac_cv_sys_large_files+set}" = set; then :
5444 $as_echo_n "(cached) " >&6
5445else
5446 while :; do
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448/* end confdefs.h. */
5449#include <sys/types.h>
5450 /* Check that off_t can represent 2**63 - 1 correctly.
5451 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5452 since some C++ compilers masquerading as C compilers
5453 incorrectly reject 9223372036854775807. */
5454#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5455 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5456 && LARGE_OFF_T % 2147483647 == 1)
5457 ? 1 : -1];
5458int
5459main ()
5460{
5461
5462 ;
5463 return 0;
5464}
5465_ACEOF
5466if ac_fn_c_try_compile "$LINENO"; then :
5467 ac_cv_sys_large_files=no; break
5468fi
5469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471/* end confdefs.h. */
5472#define _LARGE_FILES 1
5473#include <sys/types.h>
5474 /* Check that off_t can represent 2**63 - 1 correctly.
5475 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5476 since some C++ compilers masquerading as C compilers
5477 incorrectly reject 9223372036854775807. */
5478#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5479 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5480 && LARGE_OFF_T % 2147483647 == 1)
5481 ? 1 : -1];
5482int
5483main ()
5484{
5485
5486 ;
5487 return 0;
5488}
5489_ACEOF
5490if ac_fn_c_try_compile "$LINENO"; then :
5491 ac_cv_sys_large_files=1; break
5492fi
5493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494 ac_cv_sys_large_files=unknown
5495 break
5496done
5497fi
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5499$as_echo "$ac_cv_sys_large_files" >&6; }
5500case $ac_cv_sys_large_files in #(
5501 no | unknown) ;;
5502 *)
5503cat >>confdefs.h <<_ACEOF
5504#define _LARGE_FILES $ac_cv_sys_large_files
5505_ACEOF
5506;;
5507esac
5508rm -rf conftest*
5509 fi
5510fi
5511
5512
Alexandre Julliard40664c02009-02-11 20:40:58 +01005513ac_ext=c
5514ac_cpp='$CPP $CPPFLAGS'
5515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5517ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005519$as_echo_n "checking how to run the C preprocessor... " >&6; }
5520# On Suns, sometimes $CPP names a directory.
5521if test -n "$CPP" && test -d "$CPP"; then
5522 CPP=
5523fi
5524if test -z "$CPP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005525 if test "${ac_cv_prog_CPP+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005526 $as_echo_n "(cached) " >&6
5527else
5528 # Double quotes because CPP needs to be expanded
5529 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5530 do
5531 ac_preproc_ok=false
5532for ac_c_preproc_warn_flag in '' yes
5533do
5534 # Use a header file that comes with gcc, so configuring glibc
5535 # with a fresh cross-compiler works.
5536 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5537 # <limits.h> exists even on freestanding compilers.
5538 # On the NeXT, cc -E runs the code through the compiler's parser,
5539 # not just through cpp. "Syntax error" is here to catch this case.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005541/* end confdefs.h. */
5542#ifdef __STDC__
5543# include <limits.h>
5544#else
5545# include <assert.h>
5546#endif
5547 Syntax error
5548_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005549if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005550
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005551else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005552 # Broken: fails on valid input.
5553continue
5554fi
Alexandre Julliard40664c02009-02-11 20:40:58 +01005555rm -f conftest.err conftest.$ac_ext
5556
5557 # OK, works on sane cases. Now check whether nonexistent headers
5558 # can be detected and how.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005560/* end confdefs.h. */
5561#include <ac_nonexistent.h>
5562_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005563if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005564 # Broken: success on invalid input.
5565continue
5566else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005567 # Passes both tests.
5568ac_preproc_ok=:
5569break
5570fi
Alexandre Julliard40664c02009-02-11 20:40:58 +01005571rm -f conftest.err conftest.$ac_ext
5572
5573done
5574# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5575rm -f conftest.err conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005576if $ac_preproc_ok; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005577 break
5578fi
5579
5580 done
5581 ac_cv_prog_CPP=$CPP
5582
5583fi
5584 CPP=$ac_cv_prog_CPP
5585else
5586 ac_cv_prog_CPP=$CPP
5587fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005589$as_echo "$CPP" >&6; }
5590ac_preproc_ok=false
5591for ac_c_preproc_warn_flag in '' yes
5592do
5593 # Use a header file that comes with gcc, so configuring glibc
5594 # with a fresh cross-compiler works.
5595 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5596 # <limits.h> exists even on freestanding compilers.
5597 # On the NeXT, cc -E runs the code through the compiler's parser,
5598 # not just through cpp. "Syntax error" is here to catch this case.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005600/* end confdefs.h. */
5601#ifdef __STDC__
5602# include <limits.h>
5603#else
5604# include <assert.h>
5605#endif
5606 Syntax error
5607_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005608if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005609
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005610else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005611 # Broken: fails on valid input.
5612continue
5613fi
Alexandre Julliard40664c02009-02-11 20:40:58 +01005614rm -f conftest.err conftest.$ac_ext
5615
5616 # OK, works on sane cases. Now check whether nonexistent headers
5617 # can be detected and how.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005619/* end confdefs.h. */
5620#include <ac_nonexistent.h>
5621_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005622if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005623 # Broken: success on invalid input.
5624continue
5625else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005626 # Passes both tests.
5627ac_preproc_ok=:
5628break
5629fi
Alexandre Julliard40664c02009-02-11 20:40:58 +01005630rm -f conftest.err conftest.$ac_ext
5631
5632done
5633# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5634rm -f conftest.err conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005635if $ac_preproc_ok; then :
5636
Alexandre Julliard40664c02009-02-11 20:40:58 +01005637else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005639$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005640as_fn_error "C preprocessor \"$CPP\" fails sanity check
5641See \`config.log' for more details." "$LINENO" 5; }
Alexandre Julliard40664c02009-02-11 20:40:58 +01005642fi
5643
5644ac_ext=c
5645ac_cpp='$CPP $CPPFLAGS'
5646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5648ac_compiler_gnu=$ac_cv_c_compiler_gnu
5649
5650
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005652$as_echo_n "checking for ANSI C header files... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005653if test "${ac_cv_header_stdc+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005654 $as_echo_n "(cached) " >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00005655else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005657/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005658#include <stdlib.h>
5659#include <stdarg.h>
5660#include <string.h>
5661#include <float.h>
5662
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005663int
5664main ()
5665{
5666
5667 ;
5668 return 0;
5669}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005670_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005671if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005672 ac_cv_header_stdc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005673else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005674 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005675fi
Jeremy White0ebeb532006-06-20 13:18:41 +02005676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005677
5678if test $ac_cv_header_stdc = yes; then
5679 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005681/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005682#include <string.h>
5683
5684_ACEOF
5685if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005686 $EGREP "memchr" >/dev/null 2>&1; then :
5687
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005688else
5689 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005690fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005691rm -f conftest*
5692
5693fi
5694
5695if test $ac_cv_header_stdc = yes; then
5696 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005698/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005699#include <stdlib.h>
5700
5701_ACEOF
5702if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005703 $EGREP "free" >/dev/null 2>&1; then :
5704
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005705else
5706 ac_cv_header_stdc=no
5707fi
5708rm -f conftest*
5709
5710fi
5711
5712if test $ac_cv_header_stdc = yes; then
5713 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005714 if test "$cross_compiling" = yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005715 :
5716else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005718/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005719#include <ctype.h>
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005720#include <stdlib.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005721#if ((' ' & 0x0FF) == 0x020)
5722# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5723# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5724#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005725# define ISLOWER(c) \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005726 (('a' <= (c) && (c) <= 'i') \
5727 || ('j' <= (c) && (c) <= 'r') \
5728 || ('s' <= (c) && (c) <= 'z'))
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005729# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5730#endif
5731
5732#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5733int
5734main ()
5735{
5736 int i;
5737 for (i = 0; i < 256; i++)
5738 if (XOR (islower (i), ISLOWER (i))
Alexandre Julliard875927f2004-01-02 01:55:29 +00005739 || toupper (i) != TOUPPER (i))
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005740 return 2;
5741 return 0;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005742}
5743_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005744if ac_fn_c_try_run "$LINENO"; then :
5745
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005746else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005747 ac_cv_header_stdc=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005748fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005749rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5750 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005751fi
5752
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005753fi
5754fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005756$as_echo "$ac_cv_header_stdc" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005757if test $ac_cv_header_stdc = yes; then
5758
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005759$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005760
5761fi
5762
5763# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005764for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005765 inttypes.h stdint.h unistd.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005766do :
5767 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5768ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5769"
5770eval as_val=\$$as_ac_Header
5771 if test "x$as_val" = x""yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005772 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005773#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005774_ACEOF
5775
5776fi
5777
5778done
5779
5780
Rein Klazes7ff12562004-11-09 20:16:35 +00005781for ac_header in \
Chris Robinson862965f2009-08-25 03:26:35 -07005782 AL/al.h \
Aric Stewart4430ab42010-03-17 10:58:32 -05005783 AudioToolbox/AudioConverter.h \
Emmanuel Maillard144a5352006-05-28 22:46:23 +02005784 AudioUnit/AudioUnit.h \
Pierre d'Herbemont08884512006-10-24 15:26:33 +02005785 Carbon/Carbon.h \
Emmanuel Maillard144a5352006-05-28 22:46:23 +02005786 CoreAudio/CoreAudio.h \
Alexandre Julliard66f45a52006-11-06 13:33:16 +01005787 DiskArbitration/DiskArbitration.h \
Phil Krylov0f6c0392005-07-01 19:15:26 +00005788 IOKit/IOKitLib.h \
Aric Stewart225a4942009-03-10 14:59:20 -05005789 IOKit/hid/IOHIDLib.h \
Ken Thomases0b08f192009-09-09 22:23:35 -05005790 OpenAL/al.h \
Eric Durbin020b0ef2008-06-24 22:45:51 -05005791 alias.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005792 alsa/asoundlib.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005793 arpa/inet.h \
5794 arpa/nameser.h \
Maarten Lankhorst888eaae2005-04-27 09:46:25 +00005795 asm/types.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005796 capi20.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005797 curses.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005798 direct.h \
Rob Shearman87175c62008-10-03 12:55:21 +01005799 dirent.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005800 dlfcn.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005801 elf.h \
5802 float.h \
Alexandre Julliard7d5e5652009-06-01 12:51:54 +02005803 fnmatch.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005804 fontconfig/fontconfig.h \
5805 getopt.h \
Alexandre Julliard46678dc2008-12-09 17:09:42 +01005806 grp.h \
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +02005807 gsm.h \
Maarten Lankhorstc186d8a2009-08-05 11:35:50 +02005808 gsm/gsm.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005809 ieeefp.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005810 inet/mib2.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005811 io.h \
5812 jack/jack.h \
5813 jpeglib.h \
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +01005814 kstat.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00005815 lber.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005816 lcms.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005817 lcms/lcms.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00005818 ldap.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005819 libaudioio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005820 link.h \
5821 linux/cdrom.h \
5822 linux/compiler.h \
5823 linux/hdreg.h \
5824 linux/input.h \
5825 linux/ioctl.h \
5826 linux/joystick.h \
5827 linux/major.h \
5828 linux/param.h \
5829 linux/serial.h \
Francois Gougetda1a3522008-12-28 10:35:02 +01005830 linux/types.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005831 linux/ucdrom.h \
Ken Thomasesd35c0e82009-03-11 09:05:53 -05005832 mach-o/nlist.h \
Alexandre Julliard150b5dc2006-12-29 20:02:02 +01005833 mach/mach.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00005834 mach/machine.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005835 machine/cpu.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00005836 machine/limits.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005837 machine/soundcard.h \
Austin English40b3d2e2010-05-23 21:18:17 -05005838 machine/sysarch.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005839 mntent.h \
Aric Stewartdb71d7c2009-08-19 09:37:48 -05005840 mpg123.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005841 ncurses.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005842 netdb.h \
5843 netinet/in.h \
5844 netinet/in_systm.h \
5845 netinet/tcp.h \
5846 netinet/tcp_fsm.h \
Robert Shearman1e5153c2005-12-01 11:18:43 +01005847 openssl/err.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005848 openssl/ssl.h \
Alexandre Julliard00302152007-07-02 19:54:00 +02005849 png.h \
Steven Edwards57279182005-03-04 12:38:36 +00005850 poll.h \
Albert Lee01b972d2009-11-20 18:35:26 -05005851 port.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005852 process.h \
5853 pthread.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005854 pwd.h \
5855 regex.h \
5856 sched.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005857 scsi/scsi.h \
5858 scsi/scsi_ioctl.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005859 scsi/sg.h \
5860 soundcard.h \
Austin English2d7ccb32009-06-13 18:01:24 -05005861 stdbool.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005862 stdint.h \
5863 strings.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005864 stropts.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005865 sys/asoundlib.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005866 sys/cdio.h \
5867 sys/elf32.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005868 sys/epoll.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005869 sys/errno.h \
Alexandre Julliardc8278922006-08-04 22:11:00 +02005870 sys/event.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005871 sys/exec_elf.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005872 sys/filio.h \
Alexandre Julliard61a70362009-06-26 15:45:03 +02005873 sys/inotify.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005874 sys/ioctl.h \
5875 sys/ipc.h \
Gerald Pfeiferebe04842005-08-22 09:33:37 +00005876 sys/limits.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005877 sys/link.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005878 sys/mman.h \
5879 sys/modem.h \
5880 sys/msg.h \
Hans Leidekker0844b702006-01-26 13:23:08 +01005881 sys/mtio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005882 sys/param.h \
5883 sys/poll.h \
Alexandre Julliard9603ee02006-04-06 11:57:37 +02005884 sys/prctl.h \
Austin English94021a12009-01-20 17:42:53 -06005885 sys/protosw.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005886 sys/ptrace.h \
Mike McCormack0cd06262006-03-01 01:07:04 +09005887 sys/resource.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005888 sys/scsiio.h \
5889 sys/shm.h \
5890 sys/signal.h \
5891 sys/socket.h \
Mark Adams25696352007-07-10 23:39:21 -04005892 sys/socketvar.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005893 sys/sockio.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005894 sys/soundcard.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005895 sys/statvfs.h \
5896 sys/strtio.h \
5897 sys/syscall.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005898 sys/tihdr.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005899 sys/time.h \
Austin English8b195912009-01-21 21:59:11 -06005900 sys/timeout.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005901 sys/times.h \
5902 sys/uio.h \
5903 sys/un.h \
Alexandre Julliard66eb4bd2008-12-09 19:33:06 +01005904 sys/utsname.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005905 sys/vm86.h \
5906 sys/wait.h \
5907 syscall.h \
5908 termios.h \
Vincent Povirk73cd5692010-03-08 17:07:29 -06005909 tiffio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005910 unistd.h \
5911 utime.h \
John Reiser0a2c94e2008-07-24 13:31:53 -07005912 valgrind/memcheck.h \
Jacek Caban11ca05f2009-05-29 23:35:13 +02005913 valgrind/valgrind.h \
5914 zlib.h
Rein Klazes7ff12562004-11-09 20:16:35 +00005915
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005916do :
5917 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5918ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5919eval as_val=\$$as_ac_Header
5920 if test "x$as_val" = x""yes; then :
Rein Klazes7ff12562004-11-09 20:16:35 +00005921 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005922#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Rein Klazes7ff12562004-11-09 20:16:35 +00005923_ACEOF
5924
5925fi
5926
5927done
5928
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005930$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005931if test "${ac_cv_header_stat_broken+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005932 $as_echo_n "(cached) " >&6
Rein Klazes7ff12562004-11-09 20:16:35 +00005933else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Rein Klazes7ff12562004-11-09 20:16:35 +00005935/* end confdefs.h. */
5936#include <sys/types.h>
5937#include <sys/stat.h>
5938
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005939#if defined S_ISBLK && defined S_IFDIR
Phil Krylovf0ca5862006-11-05 23:03:46 +03005940extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005941#endif
5942
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005943#if defined S_ISBLK && defined S_IFCHR
Phil Krylovf0ca5862006-11-05 23:03:46 +03005944extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005945#endif
5946
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005947#if defined S_ISLNK && defined S_IFREG
Phil Krylovf0ca5862006-11-05 23:03:46 +03005948extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005949#endif
5950
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005951#if defined S_ISSOCK && defined S_IFREG
Phil Krylovf0ca5862006-11-05 23:03:46 +03005952extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005953#endif
5954
5955_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005956if ac_fn_c_try_compile "$LINENO"; then :
Rein Klazes7ff12562004-11-09 20:16:35 +00005957 ac_cv_header_stat_broken=no
Phil Krylovf0ca5862006-11-05 23:03:46 +03005958else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005959 ac_cv_header_stat_broken=yes
Phil Krylovf0ca5862006-11-05 23:03:46 +03005960fi
Phil Krylovf0ca5862006-11-05 23:03:46 +03005961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Rein Klazes7ff12562004-11-09 20:16:35 +00005962fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005964$as_echo "$ac_cv_header_stat_broken" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00005965if test $ac_cv_header_stat_broken = yes; then
5966
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005967$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
Rein Klazes7ff12562004-11-09 20:16:35 +00005968
5969fi
5970
5971
5972
Austin English51094be2008-12-27 14:53:53 -06005973for 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 +02005974do :
5975 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5976ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Francois Gouget9e67edf2008-03-06 12:34:48 +01005977 #ifdef HAVE_SYS_PARAM_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005978 # include <sys/param.h>
5979 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005980"
5981eval as_val=\$$as_ac_Header
5982 if test "x$as_val" = x""yes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005983 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005984#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005985_ACEOF
5986
5987fi
5988
5989done
5990
5991
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02005992for ac_header in \
5993 netinet/ip.h \
5994 net/if.h \
5995 net/if_arp.h \
5996 net/if_dl.h \
5997 net/if_types.h \
5998 net/route.h \
5999 netinet/if_ether.h \
Austin English337067a2009-01-22 10:44:06 -06006000 netinet/if_inarp.h \
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02006001 netinet/in_pcb.h \
6002 netinet/ip_icmp.h \
6003 netinet/ip_var.h \
6004 netinet/udp.h \
6005 netipx/ipx.h \
6006
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006007do :
6008 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6009ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Francois Gouget9e67edf2008-03-06 12:34:48 +01006010 #ifdef HAVE_SYS_SOCKET_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006011 # include <sys/socket.h>
6012 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006013 #ifdef HAVE_SYS_SOCKETVAR_H
Ken Thomasesa609fee2007-10-19 16:18:17 -05006014 # include <sys/socketvar.h>
6015 #endif
Austin Englishbb3f2582009-01-26 23:34:42 -06006016 #ifdef HAVE_NET_ROUTE_H
6017 # include <net/route.h>
6018 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006019 #ifdef HAVE_NETINET_IN_H
Ken Thomasesffd78b12007-10-19 16:18:27 -05006020 # include <netinet/in.h>
6021 #endif
Austin English03173932009-01-23 13:29:42 -06006022 #ifdef HAVE_NETINET_IN_SYSTM_H
6023 # include <netinet/in_systm.h>
6024 #endif
Alexandre Julliardd7e846c2009-01-30 14:01:12 +01006025 #ifdef HAVE_NET_IF_H
6026 # include <net/if.h>
6027 #endif
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02006028 #ifdef HAVE_NETINET_IP_H
6029 # include <netinet/ip.h>
6030 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006031"
6032eval as_val=\$$as_ac_Header
6033 if test "x$as_val" = x""yes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006034 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01006035#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006036_ACEOF
6037
6038fi
6039
6040done
6041
Mark Adams25696352007-07-10 23:39:21 -04006042
Austin English03173932009-01-23 13:29:42 -06006043for 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 +02006044do :
6045 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6046ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Eric Durbin020b0ef2008-06-24 22:45:51 -05006047 #ifdef HAVE_ALIAS_H
6048 # include <alias.h>
6049 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006050 #ifdef HAVE_SYS_SOCKET_H
Mark Adams25696352007-07-10 23:39:21 -04006051 # include <sys/socket.h>
6052 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006053 #ifdef HAVE_SYS_SOCKETVAR_H
Mark Adams25696352007-07-10 23:39:21 -04006054 # include <sys/socketvar.h>
6055 #endif
Austin English53d3c462009-01-26 23:47:49 -06006056 #ifdef HAVE_SYS_TIMEOUT_H
6057 # include <sys/timeout.h>
6058 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006059 #ifdef HAVE_NETINET_IN_H
Mark Adams25696352007-07-10 23:39:21 -04006060 # include <netinet/in.h>
6061 #endif
Austin English03173932009-01-23 13:29:42 -06006062 #ifdef HAVE_NETINET_IN_SYSTM_H
6063 # include <netinet/in_systm.h>
6064 #endif
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02006065 #ifdef HAVE_NETINET_IP_H
6066 # include <netinet/ip.h>
6067 #endif
Eric Durbin6d4eab92008-06-24 22:44:13 -05006068 #ifdef HAVE_NETINET_IP_VAR_H
6069 # include <netinet/ip_var.h>
6070 #endif
Eric Durbin020b0ef2008-06-24 22:45:51 -05006071 #ifdef HAVE_NETINET_IP_ICMP_H
6072 # include <netinet/ip_icmp.h>
6073 #endif
Eric Durbin6d4eab92008-06-24 22:44:13 -05006074 #ifdef HAVE_NETINET_UDP_H
6075 # include <netinet/udp.h>
6076 #endif
Mark Adams25696352007-07-10 23:39:21 -04006077 #ifdef HAVE_NETINET_TCP_H
6078 # include <netinet/tcp.h>
6079 #endif
Austin English03173932009-01-23 13:29:42 -06006080 #ifdef HAVE_NETINET_TCP_TIMER_H
6081 #include <netinet/tcp_timer.h>
6082 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006083"
6084eval as_val=\$$as_ac_Header
6085 if test "x$as_val" = x""yes; then :
Mark Adams25696352007-07-10 23:39:21 -04006086 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01006087#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Mark Adams25696352007-07-10 23:39:21 -04006088_ACEOF
6089
6090fi
6091
6092done
6093
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006094
Juan Lang0ce420d2009-08-12 09:14:16 -07006095for ac_header in linux/ipx.h linux/irda.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006096do :
Juan Lang0ce420d2009-08-12 09:14:16 -07006097 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6098ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Francois Gougetfaf05df2006-08-07 21:52:36 +02006099 #ifdef HAVE_ASM_TYPES_H
6100 # include <asm/types.h>
6101 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006102 #ifdef HAVE_SYS_SOCKET_H
Francois Gougetfaf05df2006-08-07 21:52:36 +02006103 # include <sys/socket.h>
6104 #endif
Francois Gougetda1a3522008-12-28 10:35:02 +01006105 #ifdef HAVE_LINUX_TYPES_H
6106 # include <linux/types.h>
6107 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006108"
Juan Lang0ce420d2009-08-12 09:14:16 -07006109eval as_val=\$$as_ac_Header
6110 if test "x$as_val" = x""yes; then :
Francois Gougetfaf05df2006-08-07 21:52:36 +02006111 cat >>confdefs.h <<_ACEOF
Juan Lang0ce420d2009-08-12 09:14:16 -07006112#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Francois Gougetfaf05df2006-08-07 21:52:36 +02006113_ACEOF
6114
6115fi
6116
6117done
6118
6119
Austin English2d7ccb32009-06-13 18:01:24 -05006120for ac_header in mach-o/dyld_images.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006121do :
6122 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 -05006123 # include <stdbool.h>
6124 #endif
6125 #ifdef HAVE_STDINT_H
6126 # include <stdint.h>
6127 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006128"
6129if test "x$ac_cv_header_mach_o_dyld_images_h" = x""yes; then :
Austin English2d7ccb32009-06-13 18:01:24 -05006130 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006131#define HAVE_MACH_O_DYLD_IMAGES_H 1
Austin English2d7ccb32009-06-13 18:01:24 -05006132_ACEOF
6133
6134fi
6135
6136done
6137
6138
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006139for ac_header in resolv.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006140do :
6141 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 +01006142 #ifdef HAVE_SYS_SOCKET_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006143 # include <sys/socket.h>
6144 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006145 #ifdef HAVE_NETINET_IN_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006146 # include <netinet/in.h>
6147 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006148 #ifdef HAVE_ARPA_NAMESER_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006149 # include <arpa/nameser.h>
6150 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006151"
6152if test "x$ac_cv_header_resolv_h" = x""yes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006153 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006154#define HAVE_RESOLV_H 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006155_ACEOF
6156
6157fi
6158
6159done
6160
6161
Juan Lange3c0e302010-03-11 18:36:46 -08006162for ac_header in ifaddrs.h
6163do :
6164 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6165"
6166if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
6167 cat >>confdefs.h <<_ACEOF
6168#define HAVE_IFADDRS_H 1
6169_ACEOF
6170
6171fi
6172
6173done
6174
6175
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006176for ac_header in ucontext.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006177do :
6178 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6179"
6180if test "x$ac_cv_header_ucontext_h" = x""yes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006181 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006182#define HAVE_UCONTEXT_H 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006183_ACEOF
6184
6185fi
6186
6187done
6188
6189
Tijl Coosemans60833da2007-08-08 00:25:24 +02006190for ac_header in sys/thr.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006191do :
6192 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 +01006193#ifdef HAVE_UCONTEXT_H
Tijl Coosemans60833da2007-08-08 00:25:24 +02006194#include <ucontext.h>
6195#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006196"
6197if test "x$ac_cv_header_sys_thr_h" = x""yes; then :
Tijl Coosemans60833da2007-08-08 00:25:24 +02006198 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006199#define HAVE_SYS_THR_H 1
Tijl Coosemans60833da2007-08-08 00:25:24 +02006200_ACEOF
6201
6202fi
6203
6204done
6205
6206
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006207for ac_header in pthread_np.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006208do :
6209 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 +02006210#include <pthread.h>
6211#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006212"
6213if test "x$ac_cv_header_pthread_np_h" = x""yes; then :
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006214 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006215#define HAVE_PTHREAD_NP_H 1
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006216_ACEOF
6217
6218fi
6219
6220done
6221
6222
Francois Gougetfaf05df2006-08-07 21:52:36 +02006223for ac_header in linux/videodev.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006224do :
6225 ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "#ifdef HAVE_SYS_TIME_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006226#include <sys/time.h>
6227#endif
6228#include <sys/types.h>
6229#ifdef HAVE_ASM_TYPES_H
6230#include <asm/types.h>
6231#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006232"
6233if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006234 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006235#define HAVE_LINUX_VIDEODEV_H 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006236_ACEOF
6237
6238fi
6239
6240done
6241
6242
Alexandre Julliardb079add2006-02-24 11:46:17 +01006243for ac_header in linux/capi.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006244do :
6245 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6246"
6247if test "x$ac_cv_header_linux_capi_h" = x""yes; then :
Alexandre Julliardb079add2006-02-24 11:46:17 +01006248 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006249#define HAVE_LINUX_CAPI_H 1
Alexandre Julliardb079add2006-02-24 11:46:17 +01006250_ACEOF
6251
6252fi
6253
6254done
6255
6256
6257
Alexandre Julliarda3097622007-07-02 17:27:48 +02006258DLLEXT=""
6259
6260DLLFLAGS="-D_REENTRANT"
6261
6262LDSHARED=""
6263
6264LDDLLFLAGS=""
6265
6266LIBEXT="so"
6267
6268IMPLIBEXT="def"
6269
6270LDRPATH_INSTALL=""
6271
6272LDRPATH_LOCAL=""
6273
Alexandre Julliard950a0f82010-01-26 21:10:14 +01006274STATIC_IMPLIBEXT="def.a"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006275# Extract the first word of "ldd", so it can be a program name with args.
6276set dummy ldd; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006278$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006279if test "${ac_cv_path_LDD+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006280 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006281else
6282 case $LDD in
6283 [\\/]* | ?:[\\/]*)
6284 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6285 ;;
6286 *)
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288as_dummy="/sbin:/usr/sbin:$PATH"
6289for as_dir in $as_dummy
6290do
6291 IFS=$as_save_IFS
6292 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006293 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6295 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006297 break 2
6298 fi
6299done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006300 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006301IFS=$as_save_IFS
6302
6303 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6304 ;;
6305esac
6306fi
6307LDD=$ac_cv_path_LDD
6308if test -n "$LDD"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006310$as_echo "$LDD" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006311else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006313$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006314fi
6315
6316
6317
6318case $host_os in
6319 cygwin*|mingw32*)
6320 if test -n "$ac_tool_prefix"; then
6321 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6322set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006324$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006325if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006326 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006327else
6328 if test -n "$DLLTOOL"; then
6329 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6330else
6331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332for as_dir in $PATH
6333do
6334 IFS=$as_save_IFS
6335 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006336 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6338 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006340 break 2
6341 fi
6342done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006343 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006344IFS=$as_save_IFS
6345
6346fi
6347fi
6348DLLTOOL=$ac_cv_prog_DLLTOOL
6349if test -n "$DLLTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006351$as_echo "$DLLTOOL" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006352else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006354$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006355fi
6356
6357
6358fi
6359if test -z "$ac_cv_prog_DLLTOOL"; then
6360 ac_ct_DLLTOOL=$DLLTOOL
6361 # Extract the first word of "dlltool", so it can be a program name with args.
6362set dummy dlltool; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006364$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006365if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006366 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006367else
6368 if test -n "$ac_ct_DLLTOOL"; then
6369 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6370else
6371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372for as_dir in $PATH
6373do
6374 IFS=$as_save_IFS
6375 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006376 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6378 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006380 break 2
6381 fi
6382done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006383 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006384IFS=$as_save_IFS
6385
6386fi
6387fi
6388ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6389if test -n "$ac_ct_DLLTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006391$as_echo "$ac_ct_DLLTOOL" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006392else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006394$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006395fi
6396
6397 if test "x$ac_ct_DLLTOOL" = x; then
6398 DLLTOOL="false"
6399 else
6400 case $cross_compiling:$ac_tool_warned in
6401yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006402{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006403$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006404ac_tool_warned=yes ;;
6405esac
6406 DLLTOOL=$ac_ct_DLLTOOL
6407 fi
6408else
6409 DLLTOOL="$ac_cv_prog_DLLTOOL"
6410fi
6411
6412 if test -n "$ac_tool_prefix"; then
6413 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6414set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006416$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006417if test "${ac_cv_prog_DLLWRAP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006418 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006419else
6420 if test -n "$DLLWRAP"; then
6421 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6422else
6423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424for as_dir in $PATH
6425do
6426 IFS=$as_save_IFS
6427 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006428 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6430 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006432 break 2
6433 fi
6434done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006435 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006436IFS=$as_save_IFS
6437
6438fi
6439fi
6440DLLWRAP=$ac_cv_prog_DLLWRAP
6441if test -n "$DLLWRAP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006443$as_echo "$DLLWRAP" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006444else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006446$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006447fi
6448
6449
6450fi
6451if test -z "$ac_cv_prog_DLLWRAP"; then
6452 ac_ct_DLLWRAP=$DLLWRAP
6453 # Extract the first word of "dllwrap", so it can be a program name with args.
6454set dummy dllwrap; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006456$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006457if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006458 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006459else
6460 if test -n "$ac_ct_DLLWRAP"; then
6461 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6462else
6463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464for as_dir in $PATH
6465do
6466 IFS=$as_save_IFS
6467 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006468 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6470 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006472 break 2
6473 fi
6474done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006475 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006476IFS=$as_save_IFS
6477
6478fi
6479fi
6480ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6481if test -n "$ac_ct_DLLWRAP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006483$as_echo "$ac_ct_DLLWRAP" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006484else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006486$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006487fi
6488
6489 if test "x$ac_ct_DLLWRAP" = x; then
6490 DLLWRAP="false"
6491 else
6492 case $cross_compiling:$ac_tool_warned in
6493yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006496ac_tool_warned=yes ;;
6497esac
6498 DLLWRAP=$ac_ct_DLLWRAP
6499 fi
6500else
6501 DLLWRAP="$ac_cv_prog_DLLWRAP"
6502fi
6503
Alexandre Julliarda3097622007-07-02 17:27:48 +02006504 if test "$DLLWRAP" = "false"; then
6505 LIBEXT="a"
6506 else
6507 LIBEXT="dll"
6508 fi
6509 IMPLIBEXT="a"
Alexandre Julliard950a0f82010-01-26 21:10:14 +01006510 STATIC_IMPLIBEXT="a"
Alexandre Julliardec1ebfb2008-09-04 12:29:07 +02006511 enable_iphlpapi=${enable_iphlpapi:-no}
6512 enable_kernel32=${enable_kernel32:-no}
6513 enable_msvcrt=${enable_msvcrt:-no}
6514 enable_ntdll=${enable_ntdll:-no}
6515 enable_ws2_32=${enable_ws2_32:-no}
6516 enable_loader=${enable_loader:-no}
6517 enable_server=${enable_server:-no}
Alexandre Julliard40664c02009-02-11 20:40:58 +01006518 with_x=${with_x:-no}
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01006519 with_pthread=${with_pthread:-no}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006520 ;;
6521 darwin*|macosx*)
6522 DLLEXT=".so"
6523 LIBEXT="dylib"
6524 DLLFLAGS="$DLLFLAGS -fPIC"
6525 LDDLLFLAGS="-bundle -multiply_defined suppress"
6526 LIBWINE_LDFLAGS="-multiply_defined suppress"
6527 LDSHARED="\$(CC) -dynamiclib"
6528 STRIP="$STRIP -x"
6529 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(TOPOBJDIR)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
Rob Shearman312a1db2007-11-26 22:57:35 +00006530 SECURITYLIB="-framework Security -framework CoreFoundation"
6531
6532 COREFOUNDATIONLIB="-framework CoreFoundation"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006533
6534 IOKITLIB="-framework IOKit -framework CoreFoundation"
6535
Alexandre Julliard691bdbd2009-06-23 20:51:37 +02006536 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006537
6538 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6539 then
6540 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6541
6542 fi
6543 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6544 then
6545 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6546
6547 fi
Ken Thomases0b08f192009-09-09 22:23:35 -05006548 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6549 then
Maarten Lankhorstd4354992009-12-09 11:52:09 +01006550 FRAMEWORK_OPENAL="-framework OpenAL"
Ken Thomases0b08f192009-09-09 22:23:35 -05006551
Maarten Lankhorstd4354992009-12-09 11:52:09 +01006552
6553cat >>confdefs.h <<_ACEOF
6554#define HAVE_OPENAL 1
6555_ACEOF
6556
6557 ac_cv_lib_openal=yes
Ken Thomases0b08f192009-09-09 22:23:35 -05006558 fi
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006559 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6560 then
6561 ac_save_LIBS="$LIBS"
6562 LIBS="$LIBS $IOKITLIB"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006563 for ac_func in IOHIDManagerCreate
6564do :
6565 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6566if test "x$ac_cv_func_IOHIDManagerCreate" = x""yes; then :
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006567 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006568#define HAVE_IOHIDMANAGERCREATE 1
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006569_ACEOF
6570
6571fi
6572done
6573
6574 LIBS="$ac_save_LIBS"
6575 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006576 case $host_cpu in
6577 *powerpc*)
6578 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6579 esac
6580 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6581 then
6582 CARBONLIB="-framework Carbon"
6583
Alexandre Julliarddbb535e2008-08-25 12:12:28 +02006584 enable_winequartz_drv=${enable_winequartz_drv:-yes}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006585 fi
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006586 if test "x$enable_win16" = "xyes"
6587 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006589$as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006590 if test "$cross_compiling" = yes; then :
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006592$as_echo "cross-compiling, assuming yes" >&6; }
6593else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006595/* end confdefs.h. */
6596asm(".text\n"
6597 "bad:\tnop;nop\n"
6598 "good:\tnop;nop\n\t"
6599 ".globl _testfunc\n"
6600 "_testfunc:\tcallw good");
6601 extern void testfunc();
6602int
6603main ()
6604{
6605unsigned short *p = (unsigned short *)testfunc;
6606 return p[0] != 0xe866 || p[1] != 0xfffa
6607 ;
6608 return 0;
6609}
6610_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006611if ac_fn_c_try_run "$LINENO"; then :
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006613$as_echo "yes" >&6; }
6614else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006616$as_echo "no" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006617 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 +02006618fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006619rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6620 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006621fi
6622
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006623 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006624 ;;
6625 *)
6626 DLLFLAGS="$DLLFLAGS -fPIC"
6627 DLLEXT=".so"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006628 { $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 +01006629$as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006630if test "${ac_cv_c_dll_gnuelf+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006631 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006632else
6633 ac_wine_try_cflags_saved=$CFLAGS
6634CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636/* end confdefs.h. */
Alexandre Julliarda3097622007-07-02 17:27:48 +02006637void myfunc() {}
6638_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006639if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006640 ac_cv_c_dll_gnuelf="yes"
6641else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006642 ac_cv_c_dll_gnuelf="no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006643fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006644rm -f core conftest.err conftest.$ac_objext \
6645 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006646CFLAGS=$ac_wine_try_cflags_saved
6647fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006649$as_echo "$ac_cv_c_dll_gnuelf" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006650 if test "$ac_cv_c_dll_gnuelf" = "yes"
6651 then
6652 LDSHARED="\$(CC) -shared"
6653 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006654 { $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 +01006655$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006656if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006657 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006658else
6659 ac_wine_try_cflags_saved=$CFLAGS
6660CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006662/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006663int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006664_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006665if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006666 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6667else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006668 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006669fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006670rm -f core conftest.err conftest.$ac_objext \
6671 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006672CFLAGS=$ac_wine_try_cflags_saved
6673fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006674{ $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 +01006675$as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006676if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006677 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6678else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006679 { $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 +01006680$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006681if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006682 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006683else
6684 ac_wine_try_cflags_saved=$CFLAGS
6685CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006687/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006688int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006689_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006690if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006691 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6692else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006693 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006694fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006695rm -f core conftest.err conftest.$ac_objext \
6696 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006697CFLAGS=$ac_wine_try_cflags_saved
6698fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006699{ $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 +01006700$as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006701if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006702 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6703fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006704fi
6705
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006706 { $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 +01006707$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006708if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006709 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006710else
6711 ac_wine_try_cflags_saved=$CFLAGS
6712CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006714/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006715int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006716_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006717if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006718 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6719else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006720 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006721fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006722rm -f core conftest.err conftest.$ac_objext \
6723 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006724CFLAGS=$ac_wine_try_cflags_saved
6725fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006726{ $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 +01006727$as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006728if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006729 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6730fi
6731
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006732 { $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 +01006733$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006734if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006735 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006736else
6737 ac_wine_try_cflags_saved=$CFLAGS
6738CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006740/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006741int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006742_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006743if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006744 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6745else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006746 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006747fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006748rm -f core conftest.err conftest.$ac_objext \
6749 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006750CFLAGS=$ac_wine_try_cflags_saved
6751fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006752{ $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 +01006753$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 +02006754if 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 +02006755 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6756fi
6757
Alexandre Julliarda3097622007-07-02 17:27:48 +02006758 echo '{ global: *; };' >conftest.map
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006759 { $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 +01006760$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006761if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006762 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006763else
6764 ac_wine_try_cflags_saved=$CFLAGS
6765CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006767/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006768int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006769_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006770if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006771 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
6772else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006773 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006774fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006775rm -f core conftest.err conftest.$ac_objext \
6776 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006777CFLAGS=$ac_wine_try_cflags_saved
6778fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006780$as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006781if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006782 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6783fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006784 rm -f conftest.map
6785
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006787$as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006788if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006789 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006790else
6791 ac_wine_try_cflags_saved=$CFLAGS
6792CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006794/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006795int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006796_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006797if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006798 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6799else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006800 ac_cv_cflags__fPIC__Wl___export_dynamic=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006801fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006802rm -f core conftest.err conftest.$ac_objext \
6803 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006804CFLAGS=$ac_wine_try_cflags_saved
6805fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006807$as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006808if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006809 LDEXECFLAGS="-Wl,--export-dynamic"
6810
6811fi
6812
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006813 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6814{ $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 +01006815$as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006816if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006817 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006818else
6819 ac_wine_try_cflags_saved=$CFLAGS
6820CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006822/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006823int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006824_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006825if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006826 eval "$as_ac_var=yes"
6827else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006828 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006829fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006830rm -f core conftest.err conftest.$ac_objext \
6831 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006832CFLAGS=$ac_wine_try_cflags_saved
6833fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006834eval ac_res=\$$as_ac_var
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006836$as_echo "$ac_res" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006837if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006838 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6839 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
6840else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006841 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6842{ $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 +01006843$as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006844if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006845 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006846else
6847 ac_wine_try_cflags_saved=$CFLAGS
6848CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006850/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006851int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006852_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006853if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006854 eval "$as_ac_var=yes"
6855else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006856 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006857fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006858rm -f core conftest.err conftest.$ac_objext \
6859 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006860CFLAGS=$ac_wine_try_cflags_saved
6861fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006862eval ac_res=\$$as_ac_var
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006864$as_echo "$ac_res" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006865if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006866 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6867 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
6868fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006869fi
6870
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006872$as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006873if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006874 $as_echo_n "(cached) " >&6
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006875else
6876 ac_wine_try_cflags_saved=$CFLAGS
6877CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006879/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006880int main(int argc, char **argv) { return 0; }
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006881_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006882if ac_fn_c_try_link "$LINENO"; then :
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006883 ac_cv_cflags__Wl___enable_new_dtags=yes
6884else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006885 ac_cv_cflags__Wl___enable_new_dtags=no
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006886fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006887rm -f core conftest.err conftest.$ac_objext \
6888 conftest$ac_exeext conftest.$ac_ext
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006889CFLAGS=$ac_wine_try_cflags_saved
6890fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006892$as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006893if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006894 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6895fi
6896
Alexandre Julliarda3097622007-07-02 17:27:48 +02006897 case $host_cpu in
6898 *i[3456789]86* | x86_64)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006899 { $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 +01006900$as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006901if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006902 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006903else
6904 ac_wine_try_cflags_saved=$CFLAGS
6905CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006907/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006908int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006909_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006910if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006911 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
6912else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006913 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006914fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006915rm -f core conftest.err conftest.$ac_objext \
6916 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006917CFLAGS=$ac_wine_try_cflags_saved
6918fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006920$as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006921if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006922 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
6923fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006924 ;;
6925 esac
6926
6927 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006929$as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006930if test "${ac_cv_c_dll_unixware+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006931 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006932else
6933 ac_wine_try_cflags_saved=$CFLAGS
6934CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936/* end confdefs.h. */
Alexandre Julliarda3097622007-07-02 17:27:48 +02006937void myfunc() {}
6938_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006939if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006940 ac_cv_c_dll_unixware="yes"
6941else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006942 ac_cv_c_dll_unixware="no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006943fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006944rm -f core conftest.err conftest.$ac_objext \
6945 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006946CFLAGS=$ac_wine_try_cflags_saved
6947fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006949$as_echo "$ac_cv_c_dll_unixware" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006950 if test "$ac_cv_c_dll_unixware" = "yes"
6951 then
6952 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
6953 LDDLLFLAGS="-Wl,-G,-B,symbolic"
6954
6955 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006957$as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006958if test "${ac_cv_c_dll_hpux+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006959 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006960else
6961 ac_wine_try_cflags_saved=$CFLAGS
6962CFLAGS="$CFLAGS -shared"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964/* end confdefs.h. */
Alexandre Julliarda3097622007-07-02 17:27:48 +02006965void myfunc() {}
6966_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006967if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006968 ac_cv_c_dll_hpux="yes"
6969else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006970 ac_cv_c_dll_hpux="no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006971fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006972rm -f core conftest.err conftest.$ac_objext \
6973 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006974CFLAGS=$ac_wine_try_cflags_saved
6975fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006977$as_echo "$ac_cv_c_dll_hpux" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006978 if test "$ac_cv_c_dll_hpux" = "yes"
6979 then
6980 LIBEXT="sl"
6981 DLLEXT=".sl"
6982 LDDLLFLAGS="-shared -fPIC"
6983 LDSHARED="\$(CC) -shared"
6984 fi
6985 fi
6986 fi
Alexandre Julliard9fb81982008-10-11 21:19:53 +02006987 ;;
6988esac
Alexandre Julliarda3097622007-07-02 17:27:48 +02006989
Alexandre Julliard9fb81982008-10-11 21:19:53 +02006990enable_winequartz_drv=${enable_winequartz_drv:-no}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006991
Alexandre Julliard9fb81982008-10-11 21:19:53 +02006992if test "$LIBEXT" = "a"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006993 as_fn_error "could not find a way to build shared libraries.
Alexandre Julliard9fb81982008-10-11 21:19:53 +02006994It is currently not possible to build Wine without shared library
6995(.so) support to allow transparent switch between .so and .dll files.
6996If you are using Linux, you will need a newer binutils.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006997" "$LINENO" 5
Alexandre Julliard9fb81982008-10-11 21:19:53 +02006998fi
6999
7000if test "$cross_compiling" = "no" -a "$LIBEXT" != "dll"
7001then
Alexandre Julliarda91fb212009-12-07 15:36:09 +01007002 case "$host_cpu" in
7003 i[3456789]86*)
7004 ac_prefix_list="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 " ;;
7005 x86_64)
7006 ac_prefix_list="x86_64-pc-mingw32-gcc x86_64-w64-mingw32-gcc " ;;
7007 *)
7008 ac_prefix_list="" ;;
7009esac
7010for ac_prog in $ac_prefix_list
Alexandre Julliarda3097622007-07-02 17:27:48 +02007011do
7012 # Extract the first word of "$ac_prog", so it can be a program name with args.
7013set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007015$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007016if test "${ac_cv_prog_CROSSCC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007017 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02007018else
7019 if test -n "$CROSSCC"; then
7020 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7021else
7022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023for as_dir in $PATH
7024do
7025 IFS=$as_save_IFS
7026 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007027 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02007028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7029 ac_cv_prog_CROSSCC="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02007031 break 2
7032 fi
7033done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007034 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02007035IFS=$as_save_IFS
7036
7037fi
7038fi
7039CROSSCC=$ac_cv_prog_CROSSCC
7040if test -n "$CROSSCC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007042$as_echo "$CROSSCC" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02007043else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007045$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02007046fi
7047
7048
7049 test -n "$CROSSCC" && break
7050done
7051test -n "$CROSSCC" || CROSSCC="false"
7052
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007053 if test "$CROSSCC" != "false"
7054 then
7055 CROSSTEST="\$(CROSSTEST)"
7056
Alexandre Julliard72a95ff2009-06-22 14:50:51 +02007057 set x $CROSSCC
7058 shift
7059 target=""
7060 while test $# -ge 1
7061 do
7062 case "$1" in
7063 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7064 esac
7065 shift
7066 done
7067 if test -n "$target"
7068 then
Alexandre Julliard1f254212010-01-23 20:26:49 +01007069 CROSSTARGET="$target"
Alexandre Julliarda2d88ab2009-05-30 17:08:06 +02007070
Alexandre Julliard72a95ff2009-06-22 14:50:51 +02007071 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02007072 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02007073fi
7074
7075
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007076if test "$ac_cv_header_pthread_h" = "yes"
7077then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007079$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007080if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007081 $as_echo_n "(cached) " >&6
7082else
7083 ac_check_lib_save_LIBS=$LIBS
7084LIBS="-lpthread $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007086/* end confdefs.h. */
7087
7088/* Override any GCC internal prototype to avoid an error.
7089 Use char because int might match the return type of a GCC
7090 builtin and then its argument prototype would still apply. */
7091#ifdef __cplusplus
7092extern "C"
7093#endif
7094char pthread_create ();
7095int
7096main ()
7097{
7098return pthread_create ();
7099 ;
7100 return 0;
7101}
7102_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007103if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007104 ac_cv_lib_pthread_pthread_create=yes
7105else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007106 ac_cv_lib_pthread_pthread_create=no
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007107fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007108rm -f core conftest.err conftest.$ac_objext \
7109 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007110LIBS=$ac_check_lib_save_LIBS
7111fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007113$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007114if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007115 LIBPTHREAD="-lpthread"
7116
7117fi
7118
7119fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007120if test "x$LIBPTHREAD" = "x"; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007121 case "x$with_pthread" in
7122 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007123 *) as_fn_error "pthread ${notice_platform}development files not found.
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007124Wine cannot support threads without libpthread.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007125Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007126esac
7127fi
7128
7129
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007131$as_echo_n "checking for X... " >&6; }
7132
7133
7134# Check whether --with-x was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007135if test "${with_x+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007136 withval=$with_x;
7137fi
7138
7139# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7140if test "x$with_x" = xno; then
7141 # The user explicitly disabled X.
7142 have_x=disabled
7143else
7144 case $x_includes,$x_libraries in #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007145 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
7146 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007147 $as_echo_n "(cached) " >&6
7148else
7149 # One or both of the vars are not set, and there is no cached value.
7150ac_x_includes=no ac_x_libraries=no
7151rm -f -r conftest.dir
7152if mkdir conftest.dir; then
7153 cd conftest.dir
7154 cat >Imakefile <<'_ACEOF'
7155incroot:
7156 @echo incroot='${INCROOT}'
7157usrlibdir:
7158 @echo usrlibdir='${USRLIBDIR}'
7159libdir:
7160 @echo libdir='${LIBDIR}'
7161_ACEOF
7162 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7163 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7164 for ac_var in incroot usrlibdir libdir; do
7165 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7166 done
7167 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7168 for ac_extension in a so sl dylib la dll; do
7169 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7170 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7171 ac_im_usrlibdir=$ac_im_libdir; break
7172 fi
7173 done
7174 # Screen out bogus values from the imake configuration. They are
7175 # bogus both because they are the default anyway, and because
7176 # using them would break gcc on systems where it needs fixed includes.
7177 case $ac_im_incroot in
7178 /usr/include) ac_x_includes= ;;
7179 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7180 esac
7181 case $ac_im_usrlibdir in
7182 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7183 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7184 esac
7185 fi
7186 cd ..
7187 rm -f -r conftest.dir
7188fi
7189
7190# Standard set of common directories for X headers.
7191# Check X11 before X11Rn because it is often a symlink to the current release.
7192ac_x_header_dirs='
7193/usr/X11/include
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007194/usr/X11R7/include
Alexandre Julliard40664c02009-02-11 20:40:58 +01007195/usr/X11R6/include
7196/usr/X11R5/include
7197/usr/X11R4/include
7198
7199/usr/include/X11
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007200/usr/include/X11R7
Alexandre Julliard40664c02009-02-11 20:40:58 +01007201/usr/include/X11R6
7202/usr/include/X11R5
7203/usr/include/X11R4
7204
7205/usr/local/X11/include
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007206/usr/local/X11R7/include
Alexandre Julliard40664c02009-02-11 20:40:58 +01007207/usr/local/X11R6/include
7208/usr/local/X11R5/include
7209/usr/local/X11R4/include
7210
7211/usr/local/include/X11
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007212/usr/local/include/X11R7
Alexandre Julliard40664c02009-02-11 20:40:58 +01007213/usr/local/include/X11R6
7214/usr/local/include/X11R5
7215/usr/local/include/X11R4
7216
7217/usr/X386/include
7218/usr/x386/include
7219/usr/XFree86/include/X11
7220
7221/usr/include
7222/usr/local/include
7223/usr/unsupported/include
7224/usr/athena/include
7225/usr/local/x11r5/include
7226/usr/lpp/Xamples/include
7227
7228/usr/openwin/include
7229/usr/openwin/share/include'
7230
7231if test "$ac_x_includes" = no; then
7232 # Guess where to find include files, by looking for Xlib.h.
7233 # First, try using that file with no special directory specified.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007235/* end confdefs.h. */
7236#include <X11/Xlib.h>
7237_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007238if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007239 # We can compile using X headers with no special include directory.
7240ac_x_includes=
7241else
Alexandre Julliard40664c02009-02-11 20:40:58 +01007242 for ac_dir in $ac_x_header_dirs; do
7243 if test -r "$ac_dir/X11/Xlib.h"; then
7244 ac_x_includes=$ac_dir
7245 break
7246 fi
7247done
7248fi
Alexandre Julliard40664c02009-02-11 20:40:58 +01007249rm -f conftest.err conftest.$ac_ext
7250fi # $ac_x_includes = no
7251
7252if test "$ac_x_libraries" = no; then
7253 # Check for the libraries.
7254 # See if we find them without any special options.
7255 # Don't add to $LIBS permanently.
7256 ac_save_LIBS=$LIBS
7257 LIBS="-lX11 $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007259/* end confdefs.h. */
7260#include <X11/Xlib.h>
7261int
7262main ()
7263{
7264XrmInitialize ()
7265 ;
7266 return 0;
7267}
7268_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007269if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007270 LIBS=$ac_save_LIBS
7271# We can link X programs with no special library path.
7272ac_x_libraries=
7273else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007274 LIBS=$ac_save_LIBS
Alexandre Julliard40664c02009-02-11 20:40:58 +01007275for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7276do
7277 # Don't even attempt the hair of trying to link an X program!
7278 for ac_extension in a so sl dylib la dll; do
7279 if test -r "$ac_dir/libX11.$ac_extension"; then
7280 ac_x_libraries=$ac_dir
7281 break 2
7282 fi
7283 done
7284done
7285fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007286rm -f core conftest.err conftest.$ac_objext \
7287 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007288fi # $ac_x_libraries = no
7289
7290case $ac_x_includes,$ac_x_libraries in #(
7291 no,* | *,no | *\'*)
7292 # Didn't find X, or a directory has "'" in its name.
7293 ac_cv_have_x="have_x=no";; #(
7294 *)
7295 # Record where we found X for the cache.
7296 ac_cv_have_x="have_x=yes\
7297 ac_x_includes='$ac_x_includes'\
7298 ac_x_libraries='$ac_x_libraries'"
7299esac
7300fi
7301;; #(
7302 *) have_x=yes;;
7303 esac
7304 eval "$ac_cv_have_x"
7305fi # $with_x != no
7306
7307if test "$have_x" != yes; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007309$as_echo "$have_x" >&6; }
7310 no_x=yes
7311else
7312 # If each of the values was on the command line, it overrides each guess.
7313 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7314 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7315 # Update the cache value to reflect the command line values.
7316 ac_cv_have_x="have_x=yes\
7317 ac_x_includes='$x_includes'\
7318 ac_x_libraries='$x_libraries'"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007320$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7321fi
7322
7323if test "$no_x" = yes; then
7324 # Not all programs may use this symbol, but it does not hurt to define it.
7325
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007326$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
Alexandre Julliard40664c02009-02-11 20:40:58 +01007327
7328 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7329else
7330 if test -n "$x_includes"; then
7331 X_CFLAGS="$X_CFLAGS -I$x_includes"
7332 fi
7333
7334 # It would also be nice to do this for all -L options, not just this one.
7335 if test -n "$x_libraries"; then
7336 X_LIBS="$X_LIBS -L$x_libraries"
7337 # For Solaris; some versions of Sun CC require a space after -R and
7338 # others require no space. Words are not sufficient . . . .
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007340$as_echo_n "checking whether -R must be followed by a space... " >&6; }
7341 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7342 ac_xsave_c_werror_flag=$ac_c_werror_flag
7343 ac_c_werror_flag=yes
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007345/* end confdefs.h. */
7346
7347int
7348main ()
7349{
7350
7351 ;
7352 return 0;
7353}
7354_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007355if ac_fn_c_try_link "$LINENO"; then :
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007357$as_echo "no" >&6; }
7358 X_LIBS="$X_LIBS -R$x_libraries"
7359else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007360 LIBS="$ac_xsave_LIBS -R $x_libraries"
7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007362/* end confdefs.h. */
7363
7364int
7365main ()
7366{
7367
7368 ;
7369 return 0;
7370}
7371_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007372if ac_fn_c_try_link "$LINENO"; then :
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007374$as_echo "yes" >&6; }
7375 X_LIBS="$X_LIBS -R $x_libraries"
7376else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007378$as_echo "neither works" >&6; }
7379fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007380rm -f core conftest.err conftest.$ac_objext \
7381 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007382fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007383rm -f core conftest.err conftest.$ac_objext \
7384 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007385 ac_c_werror_flag=$ac_xsave_c_werror_flag
7386 LIBS=$ac_xsave_LIBS
7387 fi
7388
7389 # Check for system-dependent libraries X programs must link with.
7390 # Do this before checking for the system-independent R6 libraries
7391 # (-lICE), since we may need -lsocket or whatever for X linking.
7392
7393 if test "$ISC" = yes; then
7394 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7395 else
7396 # Martyn Johnson says this is needed for Ultrix, if the X
7397 # libraries were built with DECnet support. And Karl Berry says
7398 # the Alpha needs dnet_stub (dnet does not exist).
7399 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007401/* end confdefs.h. */
7402
7403/* Override any GCC internal prototype to avoid an error.
7404 Use char because int might match the return type of a GCC
7405 builtin and then its argument prototype would still apply. */
7406#ifdef __cplusplus
7407extern "C"
7408#endif
7409char XOpenDisplay ();
7410int
7411main ()
7412{
7413return XOpenDisplay ();
7414 ;
7415 return 0;
7416}
7417_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007418if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007419
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007420else
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007422$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007423if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007424 $as_echo_n "(cached) " >&6
7425else
7426 ac_check_lib_save_LIBS=$LIBS
7427LIBS="-ldnet $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007429/* end confdefs.h. */
7430
7431/* Override any GCC internal prototype to avoid an error.
7432 Use char because int might match the return type of a GCC
7433 builtin and then its argument prototype would still apply. */
7434#ifdef __cplusplus
7435extern "C"
7436#endif
7437char dnet_ntoa ();
7438int
7439main ()
7440{
7441return dnet_ntoa ();
7442 ;
7443 return 0;
7444}
7445_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007446if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007447 ac_cv_lib_dnet_dnet_ntoa=yes
7448else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007449 ac_cv_lib_dnet_dnet_ntoa=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007450fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007451rm -f core conftest.err conftest.$ac_objext \
7452 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007453LIBS=$ac_check_lib_save_LIBS
7454fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007456$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007457if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007458 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7459fi
7460
7461 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007463$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007464if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007465 $as_echo_n "(cached) " >&6
7466else
7467 ac_check_lib_save_LIBS=$LIBS
7468LIBS="-ldnet_stub $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007470/* end confdefs.h. */
7471
7472/* Override any GCC internal prototype to avoid an error.
7473 Use char because int might match the return type of a GCC
7474 builtin and then its argument prototype would still apply. */
7475#ifdef __cplusplus
7476extern "C"
7477#endif
7478char dnet_ntoa ();
7479int
7480main ()
7481{
7482return dnet_ntoa ();
7483 ;
7484 return 0;
7485}
7486_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007487if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007488 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7489else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007490 ac_cv_lib_dnet_stub_dnet_ntoa=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007491fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007492rm -f core conftest.err conftest.$ac_objext \
7493 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007494LIBS=$ac_check_lib_save_LIBS
7495fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007497$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007498if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007499 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7500fi
7501
7502 fi
7503fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007504rm -f core conftest.err conftest.$ac_objext \
7505 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007506 LIBS="$ac_xsave_LIBS"
7507
7508 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7509 # to get the SysV transport functions.
7510 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7511 # needs -lnsl.
7512 # The nsl library prevents programs from opening the X display
7513 # on Irix 5.2, according to T.E. Dickey.
7514 # The functions gethostbyname, getservbyname, and inet_addr are
7515 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007516 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7517if test "x$ac_cv_func_gethostbyname" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007518
Alexandre Julliard40664c02009-02-11 20:40:58 +01007519fi
7520
Alexandre Julliard40664c02009-02-11 20:40:58 +01007521 if test $ac_cv_func_gethostbyname = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007523$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007524if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007525 $as_echo_n "(cached) " >&6
7526else
7527 ac_check_lib_save_LIBS=$LIBS
7528LIBS="-lnsl $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007530/* end confdefs.h. */
7531
7532/* Override any GCC internal prototype to avoid an error.
7533 Use char because int might match the return type of a GCC
7534 builtin and then its argument prototype would still apply. */
7535#ifdef __cplusplus
7536extern "C"
7537#endif
7538char gethostbyname ();
7539int
7540main ()
7541{
7542return gethostbyname ();
7543 ;
7544 return 0;
7545}
7546_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007547if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007548 ac_cv_lib_nsl_gethostbyname=yes
7549else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007550 ac_cv_lib_nsl_gethostbyname=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007551fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007552rm -f core conftest.err conftest.$ac_objext \
7553 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007554LIBS=$ac_check_lib_save_LIBS
7555fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007557$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007558if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007559 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7560fi
7561
7562 if test $ac_cv_lib_nsl_gethostbyname = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007564$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007565if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007566 $as_echo_n "(cached) " >&6
7567else
7568 ac_check_lib_save_LIBS=$LIBS
7569LIBS="-lbsd $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007571/* end confdefs.h. */
7572
7573/* Override any GCC internal prototype to avoid an error.
7574 Use char because int might match the return type of a GCC
7575 builtin and then its argument prototype would still apply. */
7576#ifdef __cplusplus
7577extern "C"
7578#endif
7579char gethostbyname ();
7580int
7581main ()
7582{
7583return gethostbyname ();
7584 ;
7585 return 0;
7586}
7587_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007588if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007589 ac_cv_lib_bsd_gethostbyname=yes
7590else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007591 ac_cv_lib_bsd_gethostbyname=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007592fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007593rm -f core conftest.err conftest.$ac_objext \
7594 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007595LIBS=$ac_check_lib_save_LIBS
7596fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007598$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007599if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007600 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7601fi
7602
7603 fi
7604 fi
7605
7606 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7607 # socket/setsockopt and other routines are undefined under SCO ODT
7608 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7609 # on later versions), says Simon Leinen: it contains gethostby*
7610 # variants that don't use the name server (or something). -lsocket
7611 # must be given before -lnsl if both are needed. We assume that
7612 # if connect needs -lnsl, so does gethostbyname.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007613 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7614if test "x$ac_cv_func_connect" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007615
Alexandre Julliard40664c02009-02-11 20:40:58 +01007616fi
7617
Alexandre Julliard40664c02009-02-11 20:40:58 +01007618 if test $ac_cv_func_connect = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007620$as_echo_n "checking for connect in -lsocket... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007621if test "${ac_cv_lib_socket_connect+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007622 $as_echo_n "(cached) " >&6
7623else
7624 ac_check_lib_save_LIBS=$LIBS
7625LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007627/* end confdefs.h. */
7628
7629/* Override any GCC internal prototype to avoid an error.
7630 Use char because int might match the return type of a GCC
7631 builtin and then its argument prototype would still apply. */
7632#ifdef __cplusplus
7633extern "C"
7634#endif
7635char connect ();
7636int
7637main ()
7638{
7639return connect ();
7640 ;
7641 return 0;
7642}
7643_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007644if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007645 ac_cv_lib_socket_connect=yes
7646else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007647 ac_cv_lib_socket_connect=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007648fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007649rm -f core conftest.err conftest.$ac_objext \
7650 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007651LIBS=$ac_check_lib_save_LIBS
7652fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007654$as_echo "$ac_cv_lib_socket_connect" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007655if test "x$ac_cv_lib_socket_connect" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007656 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7657fi
7658
7659 fi
7660
7661 # Guillermo Gomez says -lposix is necessary on A/UX.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007662 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7663if test "x$ac_cv_func_remove" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007664
Alexandre Julliard40664c02009-02-11 20:40:58 +01007665fi
7666
Alexandre Julliard40664c02009-02-11 20:40:58 +01007667 if test $ac_cv_func_remove = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007669$as_echo_n "checking for remove in -lposix... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007670if test "${ac_cv_lib_posix_remove+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007671 $as_echo_n "(cached) " >&6
7672else
7673 ac_check_lib_save_LIBS=$LIBS
7674LIBS="-lposix $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007676/* end confdefs.h. */
7677
7678/* Override any GCC internal prototype to avoid an error.
7679 Use char because int might match the return type of a GCC
7680 builtin and then its argument prototype would still apply. */
7681#ifdef __cplusplus
7682extern "C"
7683#endif
7684char remove ();
7685int
7686main ()
7687{
7688return remove ();
7689 ;
7690 return 0;
7691}
7692_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007693if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007694 ac_cv_lib_posix_remove=yes
7695else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007696 ac_cv_lib_posix_remove=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007697fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007698rm -f core conftest.err conftest.$ac_objext \
7699 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007700LIBS=$ac_check_lib_save_LIBS
7701fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007703$as_echo "$ac_cv_lib_posix_remove" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007704if test "x$ac_cv_lib_posix_remove" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007705 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7706fi
7707
7708 fi
7709
7710 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007711 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7712if test "x$ac_cv_func_shmat" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007713
Alexandre Julliard40664c02009-02-11 20:40:58 +01007714fi
7715
Alexandre Julliard40664c02009-02-11 20:40:58 +01007716 if test $ac_cv_func_shmat = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007718$as_echo_n "checking for shmat in -lipc... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007719if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007720 $as_echo_n "(cached) " >&6
7721else
7722 ac_check_lib_save_LIBS=$LIBS
7723LIBS="-lipc $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007725/* end confdefs.h. */
7726
7727/* Override any GCC internal prototype to avoid an error.
7728 Use char because int might match the return type of a GCC
7729 builtin and then its argument prototype would still apply. */
7730#ifdef __cplusplus
7731extern "C"
7732#endif
7733char shmat ();
7734int
7735main ()
7736{
7737return shmat ();
7738 ;
7739 return 0;
7740}
7741_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007742if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007743 ac_cv_lib_ipc_shmat=yes
7744else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007745 ac_cv_lib_ipc_shmat=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007746fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007747rm -f core conftest.err conftest.$ac_objext \
7748 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007749LIBS=$ac_check_lib_save_LIBS
7750fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007752$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007753if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007754 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7755fi
7756
7757 fi
7758 fi
7759
7760 # Check for libraries that X11R6 Xt/Xaw programs need.
7761 ac_save_LDFLAGS=$LDFLAGS
7762 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7763 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7764 # check for ICE first), but we must link in the order -lSM -lICE or
7765 # we get undefined symbols. So assume we have SM if we have ICE.
7766 # These have to be linked with before -lX11, unlike the other
7767 # libraries we check for below, so use a different variable.
7768 # John Interrante, Karl Berry
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007770$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007771if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007772 $as_echo_n "(cached) " >&6
7773else
7774 ac_check_lib_save_LIBS=$LIBS
7775LIBS="-lICE $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 IceConnectionNumber ();
7786int
7787main ()
7788{
7789return IceConnectionNumber ();
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_ICE_IceConnectionNumber=yes
7796else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007797 ac_cv_lib_ICE_IceConnectionNumber=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_ICE_IceConnectionNumber" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007804$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007805if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007806 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7807fi
7808
7809 LDFLAGS=$ac_save_LDFLAGS
7810
7811fi
7812
7813
Rein Klazes7ff12562004-11-09 20:16:35 +00007814if test "$have_x" = "yes"
7815then
Alexandre Julliardfd03c502009-08-17 15:11:08 +02007816 XLIB="-lX11"
Rein Klazes7ff12562004-11-09 20:16:35 +00007817 ac_save_CPPFLAGS="$CPPFLAGS"
7818 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7819
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007821$as_echo_n "checking for -lX11... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007822if test "${ac_cv_lib_soname_X11+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007823 $as_echo_n "(cached) " >&6
Alexandre Julliarda8518542007-07-09 22:43:45 +02007824else
7825 ac_check_soname_save_LIBS=$LIBS
7826LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007828/* end confdefs.h. */
7829
7830/* Override any GCC internal prototype to avoid an error.
7831 Use char because int might match the return type of a GCC
7832 builtin and then its argument prototype would still apply. */
7833#ifdef __cplusplus
7834extern "C"
7835#endif
7836char XCreateWindow ();
7837int
7838main ()
7839{
7840return XCreateWindow ();
7841 ;
7842 return 0;
7843}
7844_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007845if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda8518542007-07-09 22:43:45 +02007846 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01007847 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 +02007848 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'` ;;
7849 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7850 esac
Alexandre Julliarda8518542007-07-09 22:43:45 +02007851fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007852rm -f core conftest.err conftest.$ac_objext \
7853 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007854 LIBS=$ac_check_soname_save_LIBS
7855fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007856if test "x$ac_cv_lib_soname_X11" = "x"; then :
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007858$as_echo "not found" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007859
7860else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007862$as_echo "$ac_cv_lib_soname_X11" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007863
7864cat >>confdefs.h <<_ACEOF
7865#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7866_ACEOF
7867
7868
7869fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007871$as_echo_n "checking for -lXext... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007872if test "${ac_cv_lib_soname_Xext+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007873 $as_echo_n "(cached) " >&6
Alexandre Julliarda8518542007-07-09 22:43:45 +02007874else
7875 ac_check_soname_save_LIBS=$LIBS
7876LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007878/* end confdefs.h. */
7879
7880/* Override any GCC internal prototype to avoid an error.
7881 Use char because int might match the return type of a GCC
7882 builtin and then its argument prototype would still apply. */
7883#ifdef __cplusplus
7884extern "C"
7885#endif
7886char XextCreateExtension ();
7887int
7888main ()
7889{
7890return XextCreateExtension ();
7891 ;
7892 return 0;
7893}
7894_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007895if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda8518542007-07-09 22:43:45 +02007896 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01007897 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 +02007898 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'` ;;
7899 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7900 esac
Alexandre Julliarda8518542007-07-09 22:43:45 +02007901fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007902rm -f core conftest.err conftest.$ac_objext \
7903 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007904 LIBS=$ac_check_soname_save_LIBS
7905fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007906if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007908$as_echo "not found" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007909
7910else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007912$as_echo "$ac_cv_lib_soname_Xext" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007913
7914cat >>confdefs.h <<_ACEOF
7915#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
7916_ACEOF
7917
Alexandre Julliardfd03c502009-08-17 15:11:08 +02007918 XLIB="-lXext $XLIB"
Alexandre Julliarda8518542007-07-09 22:43:45 +02007919fi
7920
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007921 for ac_header in X11/Xlib.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007922 X11/XKBlib.h \
7923 X11/Xutil.h \
Andrew Riedi23e2cb12007-03-22 12:06:19 -07007924 X11/Xcursor/Xcursor.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007925 X11/extensions/shape.h \
7926 X11/extensions/XInput.h \
7927 X11/extensions/XShm.h \
Chris Robinson42584652007-09-22 18:19:08 -07007928 X11/extensions/Xcomposite.h \
Alexandre Julliard7d00b052006-10-23 13:46:34 +02007929 X11/extensions/Xinerama.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007930 X11/extensions/Xrandr.h \
7931 X11/extensions/Xrender.h \
André Hentschel7b285a42009-09-19 19:08:09 +02007932 X11/extensions/xf86vmode.h \
7933 X11/extensions/xf86vmproto.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007934do :
7935 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7936ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
Alexandre Julliard73482142005-08-03 19:21:04 +00007937# include <X11/Xlib.h>
7938#endif
7939#ifdef HAVE_X11_XUTIL_H
7940# include <X11/Xutil.h>
7941#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007942"
7943eval as_val=\$$as_ac_Header
7944 if test "x$as_val" = x""yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007945 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01007946#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007947_ACEOF
Alexandre Julliard255b4862003-10-15 04:09:55 +00007948
7949fi
7950
7951done
7952
7953
7954 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7955 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007957$as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007958if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007959 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007960else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007961 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02007962LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007964/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007965
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007966/* Override any GCC internal prototype to avoid an error.
7967 Use char because int might match the return type of a GCC
7968 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007969#ifdef __cplusplus
7970extern "C"
7971#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007972char XkbQueryExtension ();
7973int
7974main ()
7975{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007976return XkbQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007977 ;
7978 return 0;
7979}
7980_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007981if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007982 ac_cv_lib_X11_XkbQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00007983else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007984 ac_cv_lib_X11_XkbQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007985fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007986rm -f core conftest.err conftest.$ac_objext \
7987 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007988LIBS=$ac_check_lib_save_LIBS
7989fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007991$as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007992if test "x$ac_cv_lib_X11_XkbQueryExtension" = x""yes; then :
Patrik Stridvall24110281999-02-04 10:09:54 +00007993
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007994$as_echo "#define HAVE_XKB 1" >>confdefs.h
Patrik Stridvall24110281999-02-04 10:09:54 +00007995
Patrik Stridvall24110281999-02-04 10:09:54 +00007996fi
7997
Alexandre Julliard255b4862003-10-15 04:09:55 +00007998 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007999
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008000 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8001 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008003$as_echo_n "checking for -lXcursor... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008004if test "${ac_cv_lib_soname_Xcursor+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008005 $as_echo_n "(cached) " >&6
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008006else
8007 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008008LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008010/* end confdefs.h. */
8011
8012/* Override any GCC internal prototype to avoid an error.
8013 Use char because int might match the return type of a GCC
8014 builtin and then its argument prototype would still apply. */
8015#ifdef __cplusplus
8016extern "C"
8017#endif
8018char XcursorImageLoadCursor ();
8019int
8020main ()
8021{
8022return XcursorImageLoadCursor ();
8023 ;
8024 return 0;
8025}
8026_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008027if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008028 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008029 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 +02008030 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'` ;;
8031 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8032 esac
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008033fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008034rm -f core conftest.err conftest.$ac_objext \
8035 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008036 LIBS=$ac_check_soname_save_LIBS
8037fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008038if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008040$as_echo "not found" >&6; }
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008041
8042else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008044$as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008045
8046cat >>confdefs.h <<_ACEOF
8047#define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8048_ACEOF
8049
8050
8051fi
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008052 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008053 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008054 case "x$with_xcursor" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008055 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 +01008056 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008057 *) as_fn_error "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8058This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008059esac
8060fi
8061
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008062 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8063 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008065$as_echo_n "checking for -lXi... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008066if test "${ac_cv_lib_soname_Xi+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008067 $as_echo_n "(cached) " >&6
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008068else
8069 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008070LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008072/* end confdefs.h. */
8073
8074/* Override any GCC internal prototype to avoid an error.
8075 Use char because int might match the return type of a GCC
8076 builtin and then its argument prototype would still apply. */
8077#ifdef __cplusplus
8078extern "C"
8079#endif
8080char XOpenDevice ();
8081int
8082main ()
8083{
8084return XOpenDevice ();
8085 ;
8086 return 0;
8087}
8088_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008089if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008090 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008091 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 +02008092 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'` ;;
8093 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8094 esac
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008095fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008096rm -f core conftest.err conftest.$ac_objext \
8097 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008098 LIBS=$ac_check_soname_save_LIBS
8099fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008100if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008102$as_echo "not found" >&6; }
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008103
8104else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008106$as_echo "$ac_cv_lib_soname_Xi" >&6; }
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008107
8108cat >>confdefs.h <<_ACEOF
8109#define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8110_ACEOF
8111
8112
8113fi
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008114 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008115 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008116 case "x$with_xinput" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008117 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 +01008118 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008119 *) as_fn_error "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8120This is an error since --with-xinput was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008121esac
8122fi
8123
Alexandre Julliard255b4862003-10-15 04:09:55 +00008124 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8125 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008127$as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008128if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008129 $as_echo_n "(cached) " >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00008130else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008131 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008132LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008134/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008135
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008136/* Override any GCC internal prototype to avoid an error.
8137 Use char because int might match the return type of a GCC
8138 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008139#ifdef __cplusplus
8140extern "C"
8141#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008142char XShmQueryExtension ();
8143int
8144main ()
8145{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008146return XShmQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008147 ;
8148 return 0;
8149}
8150_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008151if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008152 ac_cv_lib_Xext_XShmQueryExtension=yes
Francois Jacques5b6879c2000-07-28 23:04:54 +00008153else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008154 ac_cv_lib_Xext_XShmQueryExtension=no
Francois Jacques5b6879c2000-07-28 23:04:54 +00008155fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008156rm -f core conftest.err conftest.$ac_objext \
8157 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008158LIBS=$ac_check_lib_save_LIBS
8159fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008161$as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008162if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
Francois Jacques5b6879c2000-07-28 23:04:54 +00008163
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008164$as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
Francois Jacques5b6879c2000-07-28 23:04:54 +00008165
Francois Jacques5b6879c2000-07-28 23:04:54 +00008166fi
8167
Alexandre Julliard255b4862003-10-15 04:09:55 +00008168 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008169 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008170 case "x$with_xshm" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008171 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008172 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008173 *) as_fn_error "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8174This is an error since --with-xshm was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008175esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008176fi
8177
Alexandre Julliard255b4862003-10-15 04:09:55 +00008178 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8179 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008181$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008182if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008183 $as_echo_n "(cached) " >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00008184else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008185 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008186LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008188/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008189
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008190/* Override any GCC internal prototype to avoid an error.
8191 Use char because int might match the return type of a GCC
8192 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008193#ifdef __cplusplus
8194extern "C"
8195#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008196char XShapeQueryExtension ();
8197int
8198main ()
8199{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008200return XShapeQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008201 ;
8202 return 0;
8203}
8204_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008205if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008206 ac_cv_lib_Xext_XShapeQueryExtension=yes
Ove Kaavenc90fb252001-01-02 22:39:14 +00008207else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008208 ac_cv_lib_Xext_XShapeQueryExtension=no
Ove Kaavenc90fb252001-01-02 22:39:14 +00008209fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008210rm -f core conftest.err conftest.$ac_objext \
8211 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008212LIBS=$ac_check_lib_save_LIBS
8213fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008215$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008216if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
Ove Kaavenc90fb252001-01-02 22:39:14 +00008217
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008218$as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
Ove Kaavenc90fb252001-01-02 22:39:14 +00008219
Ove Kaavenc90fb252001-01-02 22:39:14 +00008220fi
8221
Alexandre Julliard255b4862003-10-15 04:09:55 +00008222 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008223 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008224 case "x$with_xshape" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008225 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 +01008226 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008227 *) as_fn_error "XShape ${notice_platform}development files not found, XShape won't be supported.
8228This is an error since --with-xshape was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008229esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008230fi
8231
André Hentschel7b285a42009-09-19 19:08:09 +02008232 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 +00008233 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008235$as_echo_n "checking for -lXxf86vm... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008236if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008237 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008238else
Francois Gougeta49beb42008-06-26 14:02:17 +02008239 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008240LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008242/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008243
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008244/* Override any GCC internal prototype to avoid an error.
8245 Use char because int might match the return type of a GCC
8246 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008247#ifdef __cplusplus
8248extern "C"
8249#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008250char XF86VidModeQueryExtension ();
8251int
8252main ()
8253{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008254return XF86VidModeQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008255 ;
8256 return 0;
8257}
8258_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008259if ac_fn_c_try_link "$LINENO"; then :
Francois Gougeta49beb42008-06-26 14:02:17 +02008260 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008261 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 +02008262 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'` ;;
8263 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8264 esac
Patrik Stridvall24110281999-02-04 10:09:54 +00008265fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008266rm -f core conftest.err conftest.$ac_objext \
8267 conftest$ac_exeext conftest.$ac_ext
Francois Gougeta49beb42008-06-26 14:02:17 +02008268 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008269fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008270if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008272$as_echo "not found" >&6; }
Patrik Stridvall24110281999-02-04 10:09:54 +00008273
Francois Gougeta49beb42008-06-26 14:02:17 +02008274else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008276$as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
Francois Gougeta49beb42008-06-26 14:02:17 +02008277
8278cat >>confdefs.h <<_ACEOF
8279#define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008280_ACEOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008281
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008282
Patrik Stridvall24110281999-02-04 10:09:54 +00008283fi
Alexandre Julliard255b4862003-10-15 04:09:55 +00008284 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008285 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
Francois Gougeta49beb42008-06-26 14:02:17 +02008286 case "x$with_xxf86vm" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008287 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 +01008288 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008289 *) as_fn_error "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8290This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008291esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008292fi
8293
Alexandre Julliarda8518542007-07-09 22:43:45 +02008294 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 +02008295 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008297$as_echo_n "checking for -lXrender... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008298if test "${ac_cv_lib_soname_Xrender+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008299 $as_echo_n "(cached) " >&6
Alexandre Julliard629639e2007-07-04 12:47:57 +02008300else
8301 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008302LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008304/* end confdefs.h. */
8305
8306/* Override any GCC internal prototype to avoid an error.
8307 Use char because int might match the return type of a GCC
8308 builtin and then its argument prototype would still apply. */
8309#ifdef __cplusplus
8310extern "C"
8311#endif
8312char XRenderQueryExtension ();
8313int
8314main ()
8315{
8316return XRenderQueryExtension ();
8317 ;
8318 return 0;
8319}
8320_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008321if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008322 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008323 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 +02008324 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'` ;;
8325 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8326 esac
Alexandre Julliard629639e2007-07-04 12:47:57 +02008327fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008328rm -f core conftest.err conftest.$ac_objext \
8329 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008330 LIBS=$ac_check_soname_save_LIBS
8331fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008332if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008334$as_echo "not found" >&6; }
Alexandre Julliard629639e2007-07-04 12:47:57 +02008335
8336else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008338$as_echo "$ac_cv_lib_soname_Xrender" >&6; }
Alexandre Julliard629639e2007-07-04 12:47:57 +02008339
8340cat >>confdefs.h <<_ACEOF
8341#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8342_ACEOF
8343
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008345$as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008346if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008347 $as_echo_n "(cached) " >&6
Alexandre Julliard629639e2007-07-04 12:47:57 +02008348else
8349 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008350LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008352/* end confdefs.h. */
8353
8354/* Override any GCC internal prototype to avoid an error.
8355 Use char because int might match the return type of a GCC
8356 builtin and then its argument prototype would still apply. */
8357#ifdef __cplusplus
8358extern "C"
8359#endif
8360char XRenderSetPictureTransform ();
8361int
8362main ()
8363{
8364return XRenderSetPictureTransform ();
8365 ;
8366 return 0;
8367}
8368_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008369if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008370 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8371else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008372 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
Alexandre Julliard629639e2007-07-04 12:47:57 +02008373fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008374rm -f core conftest.err conftest.$ac_objext \
8375 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008376LIBS=$ac_check_lib_save_LIBS
8377fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008379$as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008380if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = x""yes; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008381
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008382$as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
Alexandre Julliard629639e2007-07-04 12:47:57 +02008383
8384fi
8385
8386fi
8387
Alexandre Julliard629639e2007-07-04 12:47:57 +02008388 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008389 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008390 case "x$with_xrender" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008391 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 +01008392 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008393 *) as_fn_error "libxrender ${notice_platform}development files not found, XRender won't be supported.
8394This is an error since --with-xrender was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008395esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008396fi
8397
Alexandre Julliard629639e2007-07-04 12:47:57 +02008398 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 +00008399 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008401/* end confdefs.h. */
Mike McCormackc7c9f932004-04-07 03:57:35 +00008402#include <X11/Xlib.h>
8403#include <X11/extensions/Xrandr.h>
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008404int
8405main ()
8406{
Mike McCormackc7c9f932004-04-07 03:57:35 +00008407static typeof(XRRSetScreenConfigAndRate) * func;
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008408 ;
8409 return 0;
8410}
8411_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008412if ac_fn_c_try_compile "$LINENO"; then :
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008414$as_echo_n "checking for -lXrandr... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008415if test "${ac_cv_lib_soname_Xrandr+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008416 $as_echo_n "(cached) " >&6
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008417else
8418 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008419LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008421/* end confdefs.h. */
8422
8423/* Override any GCC internal prototype to avoid an error.
8424 Use char because int might match the return type of a GCC
8425 builtin and then its argument prototype would still apply. */
8426#ifdef __cplusplus
8427extern "C"
8428#endif
8429char XRRQueryExtension ();
8430int
8431main ()
8432{
8433return XRRQueryExtension ();
8434 ;
8435 return 0;
8436}
8437_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008438if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008439 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008440 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 +02008441 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'` ;;
8442 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8443 esac
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008444fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008445rm -f core conftest.err conftest.$ac_objext \
8446 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008447 LIBS=$ac_check_soname_save_LIBS
8448fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008449if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008451$as_echo "not found" >&6; }
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008452
8453else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008455$as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008456
8457cat >>confdefs.h <<_ACEOF
8458#define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8459_ACEOF
8460
8461
8462fi
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008463fi
Jeremy White0ebeb532006-06-20 13:18:41 +02008464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard255b4862003-10-15 04:09:55 +00008465 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008466 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008467 case "x$with_xrandr" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008468 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 +01008469 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008470 *) as_fn_error "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8471This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008472esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008473fi
8474
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008475 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8476 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008478/* end confdefs.h. */
8479#include <X11/Xlib.h>
8480#include <X11/extensions/Xinerama.h>
8481int
8482main ()
8483{
8484static typeof(XineramaQueryScreens) * func;
8485 ;
8486 return 0;
8487}
8488_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008489if ac_fn_c_try_compile "$LINENO"; then :
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008491$as_echo_n "checking for -lXinerama... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008492if test "${ac_cv_lib_soname_Xinerama+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008493 $as_echo_n "(cached) " >&6
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008494else
8495 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008496LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008498/* end confdefs.h. */
8499
8500/* Override any GCC internal prototype to avoid an error.
8501 Use char because int might match the return type of a GCC
8502 builtin and then its argument prototype would still apply. */
8503#ifdef __cplusplus
8504extern "C"
8505#endif
8506char XineramaQueryScreens ();
8507int
8508main ()
8509{
8510return XineramaQueryScreens ();
8511 ;
8512 return 0;
8513}
8514_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008515if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008516 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008517 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 +02008518 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'` ;;
8519 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8520 esac
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008521fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008522rm -f core conftest.err conftest.$ac_objext \
8523 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008524 LIBS=$ac_check_soname_save_LIBS
8525fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008526if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008528$as_echo "not found" >&6; }
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008529
8530else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008532$as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008533
8534cat >>confdefs.h <<_ACEOF
8535#define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8536_ACEOF
8537
8538
8539fi
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008540fi
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8542 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008543 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008544 case "x$with_xinerama" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008545 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 +01008546 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008547 *) as_fn_error "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8548This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008549esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008550fi
8551
Chris Robinson42584652007-09-22 18:19:08 -07008552 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8553 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008555$as_echo_n "checking for -lXcomposite... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008556if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008557 $as_echo_n "(cached) " >&6
Chris Robinson42584652007-09-22 18:19:08 -07008558else
8559 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008560LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris Robinson42584652007-09-22 18:19:08 -07008562/* end confdefs.h. */
8563
8564/* Override any GCC internal prototype to avoid an error.
8565 Use char because int might match the return type of a GCC
8566 builtin and then its argument prototype would still apply. */
8567#ifdef __cplusplus
8568extern "C"
8569#endif
8570char XCompositeRedirectWindow ();
8571int
8572main ()
8573{
8574return XCompositeRedirectWindow ();
8575 ;
8576 return 0;
8577}
8578_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008579if ac_fn_c_try_link "$LINENO"; then :
Chris Robinson42584652007-09-22 18:19:08 -07008580 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008581 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 -07008582 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'` ;;
8583 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8584 esac
Chris Robinson42584652007-09-22 18:19:08 -07008585fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008586rm -f core conftest.err conftest.$ac_objext \
8587 conftest$ac_exeext conftest.$ac_ext
Chris Robinson42584652007-09-22 18:19:08 -07008588 LIBS=$ac_check_soname_save_LIBS
8589fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008590if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008592$as_echo "not found" >&6; }
Chris Robinson42584652007-09-22 18:19:08 -07008593
8594else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008596$as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
Chris Robinson42584652007-09-22 18:19:08 -07008597
8598cat >>confdefs.h <<_ACEOF
8599#define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8600_ACEOF
8601
8602
8603fi
Chris Robinson42584652007-09-22 18:19:08 -07008604 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008605 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008606 case "x$with_xcomposite" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008607 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 +01008608 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008609 *) as_fn_error "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8610This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008611esac
Chris Robinson42584652007-09-22 18:19:08 -07008612fi
8613
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008614 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 +09008615#include <X11/Xlib.h>
8616#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008617"
8618if test "x$ac_cv_member_XICCallback_callback" = x""yes; then :
Kusanagi Kouichi75e40222008-04-16 00:34:54 +09008619
8620cat >>confdefs.h <<_ACEOF
8621#define HAVE_XICCALLBACK_CALLBACK 1
8622_ACEOF
8623
8624
8625fi
8626
8627
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008628
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008629 opengl_msg=""
8630 if test "x$with_opengl" != "xno"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008631 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008632 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8633do :
8634 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8635ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
Alexandre Julliard73482142005-08-03 19:21:04 +00008636# include <GL/glx.h>
8637#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008638"
8639eval as_val=\$$as_ac_Header
8640 if test "x$as_val" = x""yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008641 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01008642#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008643_ACEOF
8644
8645fi
8646
8647done
8648
Alexandre Julliard73482142005-08-03 19:21:04 +00008649 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8650 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008652$as_echo_n "checking for up-to-date OpenGL version... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008653if test "${wine_cv_opengl_header_version_OK+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008654 $as_echo_n "(cached) " >&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00008655else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008657/* end confdefs.h. */
Lionel Ulmer5c085701999-02-28 19:48:53 +00008658#include <GL/gl.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008659int
8660main ()
8661{
Lionel Ulmer5c085701999-02-28 19:48:53 +00008662GLenum test = GL_UNSIGNED_SHORT_5_6_5;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008663 ;
8664 return 0;
8665}
8666_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008667if ac_fn_c_try_compile "$LINENO"; then :
Roderick Colenbranderbc66d7e2006-08-24 01:11:27 +02008668 wine_cv_opengl_header_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00008669else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008670 wine_cv_opengl_header_version_OK="no"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008671fi
Jeremy White0ebeb532006-06-20 13:18:41 +02008672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008673fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008675$as_echo "$wine_cv_opengl_header_version_OK" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008676
Alexandre Julliardcc6a08c2006-08-24 14:34:22 +02008677 if test "$wine_cv_opengl_header_version_OK" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008678 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008680$as_echo_n "checking for -lGL... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008681if test "${ac_cv_lib_soname_GL+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008682 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008683else
Alexandre Julliard31353e12007-07-04 12:44:12 +02008684 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008685LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008687/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008688
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008689/* Override any GCC internal prototype to avoid an error.
8690 Use char because int might match the return type of a GCC
8691 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008692#ifdef __cplusplus
8693extern "C"
8694#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008695char glXCreateContext ();
8696int
8697main ()
8698{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008699return glXCreateContext ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008700 ;
8701 return 0;
8702}
8703_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008704if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard31353e12007-07-04 12:44:12 +02008705 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008706 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 +02008707 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'` ;;
8708 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8709 esac
Patrik Stridvall24110281999-02-04 10:09:54 +00008710fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008711rm -f core conftest.err conftest.$ac_objext \
8712 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard31353e12007-07-04 12:44:12 +02008713 LIBS=$ac_check_soname_save_LIBS
Patrik Stridvall24110281999-02-04 10:09:54 +00008714fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008715if test "x$ac_cv_lib_soname_GL" = "x"; then :
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008717$as_echo "not found" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008719$as_echo_n "checking for -lGL... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008720if test "${ac_cv_lib_soname_GL+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008721 $as_echo_n "(cached) " >&6
Francois Gougetd701ee22007-12-18 10:17:20 +01008722else
8723 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008724LIBS="-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 +02008725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetd701ee22007-12-18 10:17:20 +01008726/* end confdefs.h. */
8727
8728/* Override any GCC internal prototype to avoid an error.
8729 Use char because int might match the return type of a GCC
8730 builtin and then its argument prototype would still apply. */
8731#ifdef __cplusplus
8732extern "C"
8733#endif
8734char glXCreateContext ();
8735int
8736main ()
8737{
8738return glXCreateContext ();
8739 ;
8740 return 0;
8741}
8742_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008743if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetd701ee22007-12-18 10:17:20 +01008744 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008745 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 +01008746 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'` ;;
8747 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8748 esac
Francois Gougetd701ee22007-12-18 10:17:20 +01008749fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008750rm -f core conftest.err conftest.$ac_objext \
8751 conftest$ac_exeext conftest.$ac_ext
Francois Gougetd701ee22007-12-18 10:17:20 +01008752 LIBS=$ac_check_soname_save_LIBS
8753fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008754if test "x$ac_cv_lib_soname_GL" = "x"; then :
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008756$as_echo "not found" >&6; }
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008757 if test -f /usr/X11R6/lib/libGL.a
Francois Gougetd701ee22007-12-18 10:17:20 +01008758 then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008759 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008760This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
Francois Gougetd701ee22007-12-18 10:17:20 +01008761 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008762 opengl_msg="No OpenGL library found on this system."
Francois Gougetd701ee22007-12-18 10:17:20 +01008763 fi
8764else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008766$as_echo "$ac_cv_lib_soname_GL" >&6; }
Francois Gougetd701ee22007-12-18 10:17:20 +01008767
8768cat >>confdefs.h <<_ACEOF
8769#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8770_ACEOF
8771
8772 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 +01008773
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008774$as_echo "#define HAVE_OPENGL 1" >>confdefs.h
Francois Gougetd701ee22007-12-18 10:17:20 +01008775
8776fi
Alexandre Julliard31353e12007-07-04 12:44:12 +02008777else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008779$as_echo "$ac_cv_lib_soname_GL" >&6; }
Alexandre Julliard31353e12007-07-04 12:44:12 +02008780
8781cat >>confdefs.h <<_ACEOF
8782#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8783_ACEOF
8784
8785 OPENGL_LIBS="-lGL"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008786
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008787$as_echo "#define HAVE_OPENGL 1" >>confdefs.h
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008788
Alexandre Julliardc84c4782006-09-22 09:36:12 +02008789fi
Alexandre Julliardad798732008-05-01 13:29:02 +02008790 if test "$ac_cv_header_GL_glu_h" = "yes"
8791 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008793$as_echo_n "checking for -lGLU... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008794if test "${ac_cv_lib_soname_GLU+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008795 $as_echo_n "(cached) " >&6
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008796else
Alexandre Julliardad798732008-05-01 13:29:02 +02008797 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008798LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008800/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008801
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008802/* Override any GCC internal prototype to avoid an error.
8803 Use char because int might match the return type of a GCC
8804 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008805#ifdef __cplusplus
8806extern "C"
8807#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008808char gluLookAt ();
8809int
8810main ()
8811{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008812return gluLookAt ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008813 ;
8814 return 0;
8815}
8816_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008817if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02008818 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008819 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 +02008820 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'` ;;
8821 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8822 esac
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008823fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008824rm -f core conftest.err conftest.$ac_objext \
8825 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardad798732008-05-01 13:29:02 +02008826 LIBS=$ac_check_soname_save_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008827fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008828if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008830$as_echo "not found" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008831
Alexandre Julliardad798732008-05-01 13:29:02 +02008832else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008834$as_echo "$ac_cv_lib_soname_GLU" >&6; }
Alexandre Julliardad798732008-05-01 13:29:02 +02008835
8836cat >>confdefs.h <<_ACEOF
8837#define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8838_ACEOF
8839
Alexandre Julliarddbb535e2008-08-25 12:12:28 +02008840
Alexandre Julliardad798732008-05-01 13:29:02 +02008841fi
Alexandre Julliardad798732008-05-01 13:29:02 +02008842 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008843 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02008844 case "x$with_glu" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008845 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 +02008846 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008847 *) as_fn_error "libGLU ${notice_platform}development files not found, GLU won't be supported.
8848This is an error since --with-glu was requested." "$LINENO" 5 ;;
Alexandre Julliardad798732008-05-01 13:29:02 +02008849esac
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008850fi
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008851 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008852 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008853 fi
Roderick Colenbranderbc66d7e2006-08-24 01:11:27 +02008854 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008855 opengl_msg="OpenGL development headers not found."
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008856 fi
Alexandre Julliard8e9504d2008-09-24 13:11:11 +02008857 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8858 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8859 else
8860 enable_opengl32=${enable_opengl32:-no}
8861 enable_glu32=${enable_glu32:-no}
Patrik Stridvall24110281999-02-04 10:09:54 +00008862 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008863 if test -n "$opengl_msg"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008864 case "x$with_opengl" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008865 x) as_fn_append wine_warnings "|$opengl_msg
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008866OpenGL and Direct3D won't be supported." ;;
8867 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008868 *) as_fn_error "$opengl_msg
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008869OpenGL and Direct3D won't be supported.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008870This is an error since --with-opengl was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008871esac
8872fi
8873
Francois Gouget6f670b12002-10-10 17:54:27 +00008874 NASLIBS=""
8875
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008876 for ac_header in audio/audiolib.h
8877do :
8878 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
8879if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then :
Francois Gouget6f670b12002-10-10 17:54:27 +00008880 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008881#define HAVE_AUDIO_AUDIOLIB_H 1
Francois Gouget6f670b12002-10-10 17:54:27 +00008882_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008883 for ac_header in audio/soundlib.h
8884do :
8885 ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
8886"
8887if test "x$ac_cv_header_audio_soundlib_h" = x""yes; then :
Francois Gouget6f670b12002-10-10 17:54:27 +00008888 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008889#define HAVE_AUDIO_SOUNDLIB_H 1
Francois Gouget6f670b12002-10-10 17:54:27 +00008890_ACEOF
8891
8892fi
8893
8894done
8895
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008897$as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008898if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008899 $as_echo_n "(cached) " >&6
Francois Gouget6f670b12002-10-10 17:54:27 +00008900else
8901 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008902LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008904/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008905
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008906/* Override any GCC internal prototype to avoid an error.
8907 Use char because int might match the return type of a GCC
8908 builtin and then its argument prototype would still apply. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008909#ifdef __cplusplus
8910extern "C"
8911#endif
Francois Gouget6f670b12002-10-10 17:54:27 +00008912char AuCreateFlow ();
8913int
8914main ()
8915{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008916return AuCreateFlow ();
Francois Gouget6f670b12002-10-10 17:54:27 +00008917 ;
8918 return 0;
8919}
8920_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008921if ac_fn_c_try_link "$LINENO"; then :
Francois Gouget6f670b12002-10-10 17:54:27 +00008922 ac_cv_lib_audio_AuCreateFlow=yes
8923else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008924 ac_cv_lib_audio_AuCreateFlow=no
Francois Gouget6f670b12002-10-10 17:54:27 +00008925fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008926rm -f core conftest.err conftest.$ac_objext \
8927 conftest$ac_exeext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +00008928LIBS=$ac_check_lib_save_LIBS
8929fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008931$as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008932if test "x$ac_cv_lib_audio_AuCreateFlow" = x""yes; then :
Francois Gouget6f670b12002-10-10 17:54:27 +00008933
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008934$as_echo "#define HAVE_NAS 1" >>confdefs.h
Francois Gouget6f670b12002-10-10 17:54:27 +00008935
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008937$as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008938if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008939 $as_echo_n "(cached) " >&6
Gerald Pfeifer575d8942007-03-25 00:44:50 +01008940else
8941 ac_check_lib_save_LIBS=$LIBS
8942LIBS="-lXau $X_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Gerald Pfeifer575d8942007-03-25 00:44:50 +01008944/* end confdefs.h. */
8945
8946/* Override any GCC internal prototype to avoid an error.
8947 Use char because int might match the return type of a GCC
8948 builtin and then its argument prototype would still apply. */
8949#ifdef __cplusplus
8950extern "C"
8951#endif
8952char XauGetBestAuthByAddr ();
8953int
8954main ()
8955{
8956return XauGetBestAuthByAddr ();
8957 ;
8958 return 0;
8959}
8960_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008961if ac_fn_c_try_link "$LINENO"; then :
Gerald Pfeifer575d8942007-03-25 00:44:50 +01008962 ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
8963else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008964 ac_cv_lib_Xau_XauGetBestAuthByAddr=no
Gerald Pfeifer575d8942007-03-25 00:44:50 +01008965fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008966rm -f core conftest.err conftest.$ac_objext \
8967 conftest$ac_exeext conftest.$ac_ext
Gerald Pfeifer575d8942007-03-25 00:44:50 +01008968LIBS=$ac_check_lib_save_LIBS
8969fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008971$as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008972if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = x""yes; then :
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008973 NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
Gerald Pfeifer575d8942007-03-25 00:44:50 +01008974else
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008975 NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
Gerald Pfeifer575d8942007-03-25 00:44:50 +01008976fi
8977
8978
Francois Gouget6f670b12002-10-10 17:54:27 +00008979fi
8980
8981fi
8982
8983done
8984
8985
Ove Kaaven1eb593c1999-02-14 09:34:46 +00008986 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvallea584721998-11-01 16:22:07 +00008987else
8988 XLIB=""
8989 X_CFLAGS=""
8990 X_LIBS=""
Alexandre Julliarddbb535e2008-08-25 12:12:28 +02008991 enable_winex11_drv=${enable_winex11_drv:-no}
8992 enable_opengl32=${enable_opengl32:-no}
8993 enable_glu32=${enable_glu32:-no}
Patrik Stridvallea584721998-11-01 16:22:07 +00008994fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008995if test "x$XLIB" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008996 case "x$with_x" in
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008997 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008998 *) as_fn_error "X ${notice_platform}development files not found. Wine will be built
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008999without X support, which probably isn't what you want. You will need to install
Alexandre Julliardd2c8bfb2008-11-24 13:45:25 +01009000${notice_platform}development packages of Xlib/Xfree86 at the very least.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009001Use the --without-x option if you really want this." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009002esac
9003fi
9004
Alexandre Julliard902da691995-11-05 14:39:02 +00009005
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009006XML2LIBS=""
9007
9008XML2INCL=""
9009
Mike McCormackf3719a82005-09-03 09:39:38 +00009010XSLTINCL=""
9011
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009012if test "x$with_xml" != "xno"
Mike McCormack90c75bd2005-08-08 18:36:53 +00009013then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009014 ac_save_CPPFLAGS="$CPPFLAGS"
9015 if test "$PKG_CONFIG" != "false"
9016 then
9017 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9018 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9019 else
9020 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9021 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
9022 fi
9023 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009024 for ac_header in libxml/parser.h
9025do :
9026 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
9027if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009028 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009029#define HAVE_LIBXML_PARSER_H 1
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009030_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009032$as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009033if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009034 $as_echo_n "(cached) " >&6
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009035else
9036 ac_check_lib_save_LIBS=$LIBS
Mike McCormack90c75bd2005-08-08 18:36:53 +00009037LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009039/* end confdefs.h. */
9040
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009041/* Override any GCC internal prototype to avoid an error.
9042 Use char because int might match the return type of a GCC
9043 builtin and then its argument prototype would still apply. */
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009044#ifdef __cplusplus
9045extern "C"
9046#endif
Mike McCormack90c75bd2005-08-08 18:36:53 +00009047char xmlParseMemory ();
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009048int
9049main ()
9050{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009051return xmlParseMemory ();
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009052 ;
9053 return 0;
9054}
9055_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009056if ac_fn_c_try_link "$LINENO"; then :
Mike McCormack90c75bd2005-08-08 18:36:53 +00009057 ac_cv_lib_xml2_xmlParseMemory=yes
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009058else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009059 ac_cv_lib_xml2_xmlParseMemory=no
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009060fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009061rm -f core conftest.err conftest.$ac_objext \
9062 conftest$ac_exeext conftest.$ac_ext
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009063LIBS=$ac_check_lib_save_LIBS
9064fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009066$as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009067if test "x$ac_cv_lib_xml2_xmlParseMemory" = x""yes; then :
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009068
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009069$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009070
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009071 XML2LIBS="$ac_xml_libs"
9072 XML2INCL="$ac_xml_cflags"
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009073fi
9074
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009076$as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009077if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009078 $as_echo_n "(cached) " >&6
Mike McCormack70adb8f2005-08-12 10:35:17 +00009079else
9080 ac_check_lib_save_LIBS=$LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009081LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormack70adb8f2005-08-12 10:35:17 +00009083/* end confdefs.h. */
9084
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009085/* Override any GCC internal prototype to avoid an error.
9086 Use char because int might match the return type of a GCC
9087 builtin and then its argument prototype would still apply. */
Mike McCormack70adb8f2005-08-12 10:35:17 +00009088#ifdef __cplusplus
9089extern "C"
9090#endif
Mike McCormack70adb8f2005-08-12 10:35:17 +00009091char xmlReadMemory ();
9092int
9093main ()
9094{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009095return xmlReadMemory ();
Mike McCormack70adb8f2005-08-12 10:35:17 +00009096 ;
9097 return 0;
9098}
9099_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009100if ac_fn_c_try_link "$LINENO"; then :
Mike McCormack70adb8f2005-08-12 10:35:17 +00009101 ac_cv_lib_xml2_xmlReadMemory=yes
9102else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009103 ac_cv_lib_xml2_xmlReadMemory=no
Mike McCormack70adb8f2005-08-12 10:35:17 +00009104fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009105rm -f core conftest.err conftest.$ac_objext \
9106 conftest$ac_exeext conftest.$ac_ext
Mike McCormack70adb8f2005-08-12 10:35:17 +00009107LIBS=$ac_check_lib_save_LIBS
9108fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009110$as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009111if test "x$ac_cv_lib_xml2_xmlReadMemory" = x""yes; then :
Mike McCormack70adb8f2005-08-12 10:35:17 +00009112
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009113$as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
Mike McCormack70adb8f2005-08-12 10:35:17 +00009114
9115fi
9116
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009118$as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009119if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009120 $as_echo_n "(cached) " >&6
Lei Zhang6a530ab2006-11-29 15:59:03 -08009121else
9122 ac_check_lib_save_LIBS=$LIBS
9123LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lei Zhang6a530ab2006-11-29 15:59:03 -08009125/* end confdefs.h. */
9126
9127/* Override any GCC internal prototype to avoid an error.
9128 Use char because int might match the return type of a GCC
9129 builtin and then its argument prototype would still apply. */
9130#ifdef __cplusplus
9131extern "C"
9132#endif
9133char xmlNewDocPI ();
9134int
9135main ()
9136{
9137return xmlNewDocPI ();
9138 ;
9139 return 0;
9140}
9141_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009142if ac_fn_c_try_link "$LINENO"; then :
Lei Zhang6a530ab2006-11-29 15:59:03 -08009143 ac_cv_lib_xml2_xmlNewDocPI=yes
9144else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009145 ac_cv_lib_xml2_xmlNewDocPI=no
Lei Zhang6a530ab2006-11-29 15:59:03 -08009146fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009147rm -f core conftest.err conftest.$ac_objext \
9148 conftest$ac_exeext conftest.$ac_ext
Lei Zhang6a530ab2006-11-29 15:59:03 -08009149LIBS=$ac_check_lib_save_LIBS
9150fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009152$as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009153if test "x$ac_cv_lib_xml2_xmlNewDocPI" = x""yes; then :
Lei Zhang6a530ab2006-11-29 15:59:03 -08009154
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009155$as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
Lei Zhang6a530ab2006-11-29 15:59:03 -08009156
9157fi
9158
Mike McCormack70adb8f2005-08-12 10:35:17 +00009159
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009160fi
9161
9162done
9163
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009164 CPPFLAGS="$ac_save_CPPFLAGS"
9165fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009166if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009167 case "x$with_xml" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009168 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found, XML won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009169 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009170 *) as_fn_error "libxml2 ${notice_platform}development files not found, XML won't be supported.
9171This is an error since --with-xml was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009172esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009173fi
9174
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009175if test "x$with_xslt" != "xno"
Emmanuel Maillard2a98b402007-06-22 02:58:39 +02009176then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009177 if test "$PKG_CONFIG" != "false"
9178 then
9179 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9180 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9181 else
9182 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9183 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9184 fi
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009185 ac_save_CPPFLAGS="$CPPFLAGS"
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009186 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009187 for ac_header in libxslt/pattern.h libxslt/transform.h
9188do :
9189 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9190ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
Vincent Bérond7f64242005-09-15 09:39:09 +00009191# include <libxslt/pattern.h>
9192#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009193"
9194eval as_val=\$$as_ac_Header
9195 if test "x$as_val" = x""yes; then :
Mike McCormackf3719a82005-09-03 09:39:38 +00009196 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01009197#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Mike McCormackf3719a82005-09-03 09:39:38 +00009198_ACEOF
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009199
9200fi
9201
9202done
9203
9204 CPPFLAGS="$ac_save_CPPFLAGS"
9205 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9206 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009208$as_echo_n "checking for -lxslt... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009209if test "${ac_cv_lib_soname_xslt+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009210 $as_echo_n "(cached) " >&6
Mike McCormackf3719a82005-09-03 09:39:38 +00009211else
Francois Gouget3d384f12008-11-17 19:29:32 +01009212 ac_check_soname_save_LIBS=$LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009213LIBS="-lxslt $ac_xslt_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackf3719a82005-09-03 09:39:38 +00009215/* end confdefs.h. */
9216
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009217/* Override any GCC internal prototype to avoid an error.
9218 Use char because int might match the return type of a GCC
9219 builtin and then its argument prototype would still apply. */
Mike McCormackf3719a82005-09-03 09:39:38 +00009220#ifdef __cplusplus
9221extern "C"
9222#endif
Mike McCormackf3719a82005-09-03 09:39:38 +00009223char xsltCompilePattern ();
9224int
9225main ()
9226{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009227return xsltCompilePattern ();
Mike McCormackf3719a82005-09-03 09:39:38 +00009228 ;
9229 return 0;
9230}
9231_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009232if ac_fn_c_try_link "$LINENO"; then :
Francois Gouget3d384f12008-11-17 19:29:32 +01009233 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009234 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 +01009235 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'` ;;
9236 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9237 esac
Mike McCormackf3719a82005-09-03 09:39:38 +00009238fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009239rm -f core conftest.err conftest.$ac_objext \
9240 conftest$ac_exeext conftest.$ac_ext
Francois Gouget3d384f12008-11-17 19:29:32 +01009241 LIBS=$ac_check_soname_save_LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009242fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009243if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009245$as_echo "not found" >&6; }
Mike McCormackf3719a82005-09-03 09:39:38 +00009246
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009247else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009249$as_echo "$ac_cv_lib_soname_xslt" >&6; }
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009250
Francois Gouget3d384f12008-11-17 19:29:32 +01009251cat >>confdefs.h <<_ACEOF
9252#define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009253_ACEOF
Mike McCormackf3719a82005-09-03 09:39:38 +00009254
Francois Gouget3d384f12008-11-17 19:29:32 +01009255 XSLTINCL="$ac_xslt_cflags"
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009256fi
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009257 fi
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009258fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009259if test "x$ac_cv_lib_soname_xslt" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009260 case "x$with_xslt" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009261 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 +01009262 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009263 *) as_fn_error "libxslt ${notice_platform}development files not found, xslt won't be supported.
9264This is an error since --with-xslt was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009265esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009266fi
9267
Alexandre Julliard00068982006-04-18 16:47:53 +02009268HALINCL=""
9269
Francois Gouget295a0cd2009-01-09 20:22:22 +01009270if test "x$with_hal" != "xno"
Alexandre Julliard00068982006-04-18 16:47:53 +02009271then
9272 ac_save_CPPFLAGS="$CPPFLAGS"
Francois Gouget295a0cd2009-01-09 20:22:22 +01009273 if test "$PKG_CONFIG" != "false"
9274 then
9275 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9276 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9277 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9278 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009279 for ac_header in dbus/dbus.h hal/libhal.h
9280do :
9281 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9282ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9283eval as_val=\$$as_ac_Header
9284 if test "x$as_val" = x""yes; then :
Alexandre Julliard00068982006-04-18 16:47:53 +02009285 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01009286#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliard00068982006-04-18 16:47:53 +02009287_ACEOF
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009288
9289fi
9290
9291done
9292
9293 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9294 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009296$as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009297if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009298 $as_echo_n "(cached) " >&6
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009299else
9300 ac_check_lib_save_LIBS=$LIBS
9301LIBS="-ldbus-1 $ac_hal_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009303/* end confdefs.h. */
9304
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009305/* Override any GCC internal prototype to avoid an error.
9306 Use char because int might match the return type of a GCC
9307 builtin and then its argument prototype would still apply. */
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009308#ifdef __cplusplus
9309extern "C"
9310#endif
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009311char dbus_connection_close ();
9312int
9313main ()
9314{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009315return dbus_connection_close ();
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009316 ;
9317 return 0;
9318}
9319_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009320if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009321 ac_cv_lib_dbus_1_dbus_connection_close=yes
9322else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009323 ac_cv_lib_dbus_1_dbus_connection_close=no
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009324fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009325rm -f core conftest.err conftest.$ac_objext \
9326 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009327LIBS=$ac_check_lib_save_LIBS
9328fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009330$as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009331if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = x""yes; then :
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009333$as_echo_n "checking for -lhal... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009334if test "${ac_cv_lib_soname_hal+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009335 $as_echo_n "(cached) " >&6
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009336else
9337 ac_check_soname_save_LIBS=$LIBS
9338LIBS="-lhal $ac_hal_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009340/* end confdefs.h. */
Alexandre Julliard00068982006-04-18 16:47:53 +02009341
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009342/* Override any GCC internal prototype to avoid an error.
9343 Use char because int might match the return type of a GCC
9344 builtin and then its argument prototype would still apply. */
9345#ifdef __cplusplus
9346extern "C"
9347#endif
9348char libhal_ctx_new ();
9349int
9350main ()
9351{
9352return libhal_ctx_new ();
9353 ;
9354 return 0;
9355}
9356_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009357if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009358 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009359 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 +02009360 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'` ;;
9361 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9362 esac
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009363fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009364rm -f core conftest.err conftest.$ac_objext \
9365 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009366 LIBS=$ac_check_soname_save_LIBS
9367fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009368if test "x$ac_cv_lib_soname_hal" = "x"; then :
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009370$as_echo "not found" >&6; }
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009371
9372else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009374$as_echo "$ac_cv_lib_soname_hal" >&6; }
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009375
9376cat >>confdefs.h <<_ACEOF
9377#define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
Alexandre Julliard00068982006-04-18 16:47:53 +02009378_ACEOF
9379
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009380 HALINCL="$ac_hal_cflags"
Alexandre Julliard00068982006-04-18 16:47:53 +02009381fi
Alexandre Julliard00068982006-04-18 16:47:53 +02009382fi
9383
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009384 fi
Alexandre Julliard00068982006-04-18 16:47:53 +02009385 CPPFLAGS="$ac_save_CPPFLAGS"
9386fi
Alexandre Julliardd8062732010-04-26 06:57:49 -05009387if test "x$ac_cv_lib_soname_hal" = "x" -a "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009388 case "x$with_hal" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009389 x) as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009390 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009391 *) as_fn_error "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9392This is an error since --with-hal was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009393esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009394fi
9395
Francois Gouget295a0cd2009-01-09 20:22:22 +01009396if test "x$with_gnutls" != "xno"
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009397then
9398 ac_save_CPPFLAGS="$CPPFLAGS"
Francois Gouget295a0cd2009-01-09 20:22:22 +01009399 if test "$PKG_CONFIG" != "false"
9400 then
9401 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9402 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9403 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9404 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009405 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9406if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
9407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gouget3aae9542008-10-24 11:24:58 +02009408/* end confdefs.h. */
9409#include <gnutls/gnutls.h>
9410int
9411main ()
9412{
Henri Verbeet8c4a2972008-12-30 09:45:20 +01009413typeof(gnutls_mac_get_key_size) *pfunc;
Francois Gouget3aae9542008-10-24 11:24:58 +02009414 ;
9415 return 0;
9416}
9417_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009418if ac_fn_c_try_compile "$LINENO"; then :
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009420$as_echo_n "checking for -lgnutls... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009421if test "${ac_cv_lib_soname_gnutls+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009422 $as_echo_n "(cached) " >&6
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009423else
9424 ac_check_soname_save_LIBS=$LIBS
9425LIBS="-lgnutls $ac_gnutls_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009427/* end confdefs.h. */
9428
9429/* Override any GCC internal prototype to avoid an error.
9430 Use char because int might match the return type of a GCC
9431 builtin and then its argument prototype would still apply. */
9432#ifdef __cplusplus
9433extern "C"
9434#endif
9435char gnutls_global_init ();
9436int
9437main ()
9438{
9439return gnutls_global_init ();
9440 ;
9441 return 0;
9442}
9443_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009444if ac_fn_c_try_link "$LINENO"; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009445 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009446 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 +02009447 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'` ;;
9448 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9449 esac
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009450fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009451rm -f core conftest.err conftest.$ac_objext \
9452 conftest$ac_exeext conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009453 LIBS=$ac_check_soname_save_LIBS
9454fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009455if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009457$as_echo "not found" >&6; }
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009458
9459else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009461$as_echo "$ac_cv_lib_soname_gnutls" >&6; }
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009462
9463cat >>confdefs.h <<_ACEOF
9464#define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9465_ACEOF
9466
9467 GNUTLSINCL="$ac_gnutls_cflags"
9468
9469fi
Francois Gouget3aae9542008-10-24 11:24:58 +02009470fi
Francois Gouget3aae9542008-10-24 11:24:58 +02009471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009472fi
9473
9474
9475 CPPFLAGS="$ac_save_CPPFLAGS"
9476fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009477if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009478 case "x$with_gnutls" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009479 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009480 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009481 *) as_fn_error "libgnutls ${notice_platform}development files not found, no schannel support.
9482This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009483esac
9484fi
9485
Alexandre Julliard48957682001-12-26 23:08:31 +00009486CURSESLIBS=""
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009487if test "$ac_cv_header_ncurses_h" = "yes"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00009488then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009490$as_echo_n "checking for -lncurses... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009491if test "${ac_cv_lib_soname_ncurses+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009492 $as_echo_n "(cached) " >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009493else
Alexandre Julliardd0783772007-07-02 17:28:50 +02009494 ac_check_soname_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009495LIBS="-lncurses $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009497/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009498
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009499/* Override any GCC internal prototype to avoid an error.
9500 Use char because int might match the return type of a GCC
9501 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009502#ifdef __cplusplus
9503extern "C"
9504#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009505char waddch ();
9506int
9507main ()
9508{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009509return waddch ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009510 ;
9511 return 0;
9512}
9513_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009514if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0783772007-07-02 17:28:50 +02009515 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009516 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 +02009517 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'` ;;
9518 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9519 esac
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009520fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009521rm -f core conftest.err conftest.$ac_objext \
9522 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0783772007-07-02 17:28:50 +02009523 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009524fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009525if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009527$as_echo "not found" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009528
9529else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009531$as_echo "$ac_cv_lib_soname_ncurses" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009532
9533cat >>confdefs.h <<_ACEOF
9534#define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9535_ACEOF
9536
9537 CURSESLIBS="-lncurses"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009538fi
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009539elif test "$ac_cv_header_curses_h" = "yes"
9540then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009542$as_echo_n "checking for -lcurses... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009543if test "${ac_cv_lib_soname_curses+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009544 $as_echo_n "(cached) " >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009545else
Alexandre Julliardd0783772007-07-02 17:28:50 +02009546 ac_check_soname_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009547LIBS="-lcurses $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009549/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009550
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009551/* Override any GCC internal prototype to avoid an error.
9552 Use char because int might match the return type of a GCC
9553 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009554#ifdef __cplusplus
9555extern "C"
9556#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009557char waddch ();
9558int
9559main ()
9560{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009561return waddch ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009562 ;
9563 return 0;
9564}
9565_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009566if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0783772007-07-02 17:28:50 +02009567 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009568 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 +02009569 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'` ;;
9570 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9571 esac
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009572fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009573rm -f core conftest.err conftest.$ac_objext \
9574 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0783772007-07-02 17:28:50 +02009575 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009576fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009577if test "x$ac_cv_lib_soname_curses" = "x"; then :
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009579$as_echo "not found" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009580
9581else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009583$as_echo "$ac_cv_lib_soname_curses" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009584
9585cat >>confdefs.h <<_ACEOF
9586#define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9587_ACEOF
9588
9589 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009590fi
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009591fi
9592ac_save_LIBS="$LIBS"
9593LIBS="$LIBS $CURSESLIBS"
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009594for ac_func in mousemask
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009595do :
9596 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9597if test "x$ac_cv_func_mousemask" = x""yes; then :
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009598 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009599#define HAVE_MOUSEMASK 1
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009600_ACEOF
9601
9602fi
9603done
9604
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009605LIBS="$ac_save_LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009606if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009607 case "x$with_curses" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009608 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 +01009609 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009610 *) as_fn_error "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9611This is an error since --with-curses was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009612esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009613fi
9614
Francois Gouget3fe5d802009-01-14 14:16:06 +01009615if test "x$with_sane" != "xno"
9616then
9617 ac_save_CPPFLAGS="$CPPFLAGS"
9618 # Extract the first word of "sane-config", so it can be a program name with args.
Shi Quan He6b0720f2002-03-21 02:58:39 +00009619set dummy sane-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009621$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009622if test "${ac_cv_prog_sane_devel+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009623 $as_echo_n "(cached) " >&6
Shi Quan He6b0720f2002-03-21 02:58:39 +00009624else
9625 if test -n "$sane_devel"; then
9626 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9627else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9629for as_dir in $PATH
9630do
9631 IFS=$as_save_IFS
9632 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009633 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01009634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009635 ac_cv_prog_sane_devel="sane-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009637 break 2
9638 fi
9639done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009640 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009641IFS=$as_save_IFS
Shi Quan He6b0720f2002-03-21 02:58:39 +00009642
9643 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9644fi
9645fi
9646sane_devel=$ac_cv_prog_sane_devel
9647if test -n "$sane_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009649$as_echo "$sane_devel" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009650else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009652$as_echo "no" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009653fi
9654
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009655
Francois Gouget3fe5d802009-01-14 14:16:06 +01009656 if test "$sane_devel" != "no"
9657 then
9658 ac_sane_incl="`$sane_devel --cflags`"
9659 ac_sane_libs="`$sane_devel --ldflags`"
9660 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9661 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009662 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9663if test "x$ac_cv_header_sane_sane_h" = x""yes; then :
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009665$as_echo_n "checking for -lsane... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009666if test "${ac_cv_lib_soname_sane+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009667 $as_echo_n "(cached) " >&6
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009668else
9669 ac_check_soname_save_LIBS=$LIBS
Francois Gougeta9d7bab2008-07-20 22:41:41 +02009670LIBS="-lsane $ac_sane_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009672/* end confdefs.h. */
9673
9674/* Override any GCC internal prototype to avoid an error.
9675 Use char because int might match the return type of a GCC
9676 builtin and then its argument prototype would still apply. */
9677#ifdef __cplusplus
9678extern "C"
9679#endif
9680char sane_init ();
9681int
9682main ()
9683{
9684return sane_init ();
9685 ;
9686 return 0;
9687}
9688_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009689if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009690 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009691 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 +02009692 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'` ;;
9693 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9694 esac
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009695fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009696rm -f core conftest.err conftest.$ac_objext \
9697 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009698 LIBS=$ac_check_soname_save_LIBS
9699fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009700if test "x$ac_cv_lib_soname_sane" = "x"; then :
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009702$as_echo "not found" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009703
9704else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009706$as_echo "$ac_cv_lib_soname_sane" >&6; }
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009707
9708cat >>confdefs.h <<_ACEOF
9709#define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9710_ACEOF
9711
9712 SANEINCL="$ac_sane_incl"
9713
9714fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00009715fi
9716
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009717
Shi Quan He6b0720f2002-03-21 02:58:39 +00009718 CPPFLAGS="$ac_save_CPPFLAGS"
9719fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009720if test "x$ac_cv_lib_soname_sane" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009721 case "x$with_sane" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009722 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 +01009723 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009724 *) as_fn_error "libsane ${notice_platform}development files not found, scanners won't be supported.
9725This is an error since --with-sane was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009726esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009727fi
9728
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01009729if test "x$with_v4l" != "xno"
9730then
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9732$as_echo_n "checking for -lv4l1... " >&6; }
9733if test "${ac_cv_lib_soname_v4l1+set}" = set; then :
9734 $as_echo_n "(cached) " >&6
9735else
9736 ac_check_soname_save_LIBS=$LIBS
9737LIBS="-lv4l1 $LIBS"
9738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9739/* end confdefs.h. */
9740
9741/* Override any GCC internal prototype to avoid an error.
9742 Use char because int might match the return type of a GCC
9743 builtin and then its argument prototype would still apply. */
9744#ifdef __cplusplus
9745extern "C"
9746#endif
9747char v4l1_open ();
9748int
9749main ()
9750{
9751return v4l1_open ();
9752 ;
9753 return 0;
9754}
9755_ACEOF
9756if ac_fn_c_try_link "$LINENO"; then :
9757 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009758 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 +01009759 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'` ;;
9760 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9761 esac
9762fi
9763rm -f core conftest.err conftest.$ac_objext \
9764 conftest$ac_exeext conftest.$ac_ext
9765 LIBS=$ac_check_soname_save_LIBS
9766fi
9767if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9769$as_echo "not found" >&6; }
9770
9771else
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
9773$as_echo "$ac_cv_lib_soname_v4l1" >&6; }
9774
9775cat >>confdefs.h <<_ACEOF
9776#define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
9777_ACEOF
9778
9779
9780fi
9781fi
9782if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9783 case "x$with_v4l" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009784 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01009785 xno) ;;
9786 *) as_fn_error "libv4l ${notice_platform}development files not found.
9787This is an error since --with-v4l was requested." "$LINENO" 5 ;;
9788esac
9789fi
9790
Francois Gouget3fe5d802009-01-14 14:16:06 +01009791if test "x$with_gphoto" != "xno"
9792then
9793 ac_save_CPPFLAGS="$CPPFLAGS"
9794 # Extract the first word of "gphoto2-config", so it can be a program name with args.
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009795set dummy gphoto2-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009797$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009798if test "${ac_cv_prog_gphoto2_devel+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009799 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009800else
9801 if test -n "$gphoto2_devel"; then
9802 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
9803else
9804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9805for as_dir in $PATH
9806do
9807 IFS=$as_save_IFS
9808 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009809 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01009810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009811 ac_cv_prog_gphoto2_devel="gphoto2-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009813 break 2
9814 fi
9815done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009816 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009817IFS=$as_save_IFS
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009818
9819 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
9820fi
9821fi
9822gphoto2_devel=$ac_cv_prog_gphoto2_devel
9823if test -n "$gphoto2_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009825$as_echo "$gphoto2_devel" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009826else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009828$as_echo "no" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009829fi
9830
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009831
Francois Gouget3fe5d802009-01-14 14:16:06 +01009832 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009833set dummy gphoto2-port-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009835$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009836if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009837 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009838else
9839 if test -n "$gphoto2port_devel"; then
9840 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
9841else
9842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9843for as_dir in $PATH
9844do
9845 IFS=$as_save_IFS
9846 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009847 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01009848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009849 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009851 break 2
9852 fi
9853done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009854 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009855IFS=$as_save_IFS
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009856
9857 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
9858fi
9859fi
9860gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
9861if test -n "$gphoto2port_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009863$as_echo "$gphoto2port_devel" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009864else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009866$as_echo "no" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009867fi
9868
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009869
Francois Gouget3fe5d802009-01-14 14:16:06 +01009870 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
9871 then
9872 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
9873 ac_gphoto2_libs=""
9874 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
9875 do
9876 case "$i" in
9877 -L/usr/lib|-L/usr/lib64) ;;
9878 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
9879 esac
9880 done
9881 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
9882 fi
Shunichi Fuji4bf77d62009-01-20 15:24:46 +09009883 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009884 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
9885if test "x$ac_cv_header_gphoto2_camera_h" = x""yes; then :
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009887$as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009888if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009889 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009890else
9891 ac_check_lib_save_LIBS=$LIBS
Francois Gouget4bc03fe2008-07-21 17:10:45 +02009892LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009894/* end confdefs.h. */
9895
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009896/* Override any GCC internal prototype to avoid an error.
9897 Use char because int might match the return type of a GCC
9898 builtin and then its argument prototype would still apply. */
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009899#ifdef __cplusplus
9900extern "C"
9901#endif
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009902char gp_camera_new ();
9903int
9904main ()
9905{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009906return gp_camera_new ();
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009907 ;
9908 return 0;
9909}
9910_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009911if ac_fn_c_try_link "$LINENO"; then :
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009912 ac_cv_lib_gphoto2_gp_camera_new=yes
9913else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009914 ac_cv_lib_gphoto2_gp_camera_new=no
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009915fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009916rm -f core conftest.err conftest.$ac_objext \
9917 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009918LIBS=$ac_check_lib_save_LIBS
9919fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009921$as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009922if test "x$ac_cv_lib_gphoto2_gp_camera_new" = x""yes; then :
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009923
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009924$as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009925
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009926 GPHOTO2LIBS="$ac_gphoto2_libs"
9927
9928 GPHOTO2INCL="$ac_gphoto2_incl"
9929
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009930fi
9931
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009932fi
9933
9934
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009935 CPPFLAGS="$ac_save_CPPFLAGS"
9936fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009937if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009938 case "x$with_gphoto" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009939 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 +01009940 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009941 *) as_fn_error "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
9942This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009943esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009944fi
9945
9946
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009947RESOLVLIBS=""
9948
9949if test "$ac_cv_header_resolv_h" = "yes"
9950then
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +01009951 ac_save_LIBS="$LIBS"
9952 LIBS="$LIBS -lresolv"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009954/* end confdefs.h. */
Rob Shearmanba349212009-01-02 12:12:06 +00009955#ifdef HAVE_NETINET_IN_H
9956#include <netinet/in.h>
9957#endif
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +01009958#include <resolv.h>
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009959int
9960main ()
9961{
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +01009962res_init();
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009963 ;
9964 return 0;
9965}
9966_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009967if ac_fn_c_try_link "$LINENO"; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009968
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009969$as_echo "#define HAVE_RESOLV 1" >>confdefs.h
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009970
9971 RESOLVLIBS="-lresolv"
9972fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009973rm -f core conftest.err conftest.$ac_objext \
9974 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +01009975 LIBS="$ac_save_LIBS"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009976fi
9977
Hans Leidekkerd3447022005-07-15 10:09:43 +00009978LCMSLIBS=""
9979
9980if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
9981then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009983$as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009984if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009985 $as_echo_n "(cached) " >&6
Hans Leidekkerd3447022005-07-15 10:09:43 +00009986else
9987 ac_check_lib_save_LIBS=$LIBS
9988LIBS="-llcms $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Hans Leidekkerd3447022005-07-15 10:09:43 +00009990/* end confdefs.h. */
9991
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009992/* Override any GCC internal prototype to avoid an error.
9993 Use char because int might match the return type of a GCC
9994 builtin and then its argument prototype would still apply. */
Hans Leidekkerd3447022005-07-15 10:09:43 +00009995#ifdef __cplusplus
9996extern "C"
9997#endif
Hans Leidekkerd3447022005-07-15 10:09:43 +00009998char cmsOpenProfileFromFile ();
9999int
10000main ()
10001{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010002return cmsOpenProfileFromFile ();
Hans Leidekkerd3447022005-07-15 10:09:43 +000010003 ;
10004 return 0;
10005}
10006_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010007if ac_fn_c_try_link "$LINENO"; then :
Hans Leidekkerd3447022005-07-15 10:09:43 +000010008 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10009else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010010 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
Hans Leidekkerd3447022005-07-15 10:09:43 +000010011fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010012rm -f core conftest.err conftest.$ac_objext \
10013 conftest$ac_exeext conftest.$ac_ext
Hans Leidekkerd3447022005-07-15 10:09:43 +000010014LIBS=$ac_check_lib_save_LIBS
10015fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010017$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010018if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
Hans Leidekkerd3447022005-07-15 10:09:43 +000010019
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010020$as_echo "#define HAVE_LCMS 1" >>confdefs.h
Hans Leidekkerd3447022005-07-15 10:09:43 +000010021
10022 LCMSLIBS="-llcms"
10023fi
10024
10025fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010026if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010027 case "x$with_cms" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010028 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 +010010029 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010030 *) as_fn_error "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10031This is an error since --with-cms was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010032esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010033fi
10034
Francois Gouget3fe5d802009-01-14 14:16:06 +010010035if test "x$with_freetype" != "xno"
10036then
10037 for ac_prog in freetype-config freetype2-config
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010038do
10039 # Extract the first word of "$ac_prog", so it can be a program name with args.
10040set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010042$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010043if test "${ac_cv_prog_ft_devel+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010044 $as_echo_n "(cached) " >&6
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010045else
10046 if test -n "$ft_devel"; then
10047 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10048else
10049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10050for as_dir in $PATH
10051do
10052 IFS=$as_save_IFS
10053 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010054 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010010055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010056 ac_cv_prog_ft_devel="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010058 break 2
10059 fi
10060done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010061 done
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010062IFS=$as_save_IFS
10063
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010064fi
10065fi
10066ft_devel=$ac_cv_prog_ft_devel
10067if test -n "$ft_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010069$as_echo "$ft_devel" >&6; }
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010070else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010072$as_echo "no" >&6; }
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010073fi
10074
10075
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010076 test -n "$ft_devel" && break
10077done
Francois Gouget3fe5d802009-01-14 14:16:06 +010010078test -n "$ft_devel" || ft_devel="no"
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010079
Francois Gouget3fe5d802009-01-14 14:16:06 +010010080 if test "$ft_devel" != "no"
10081 then
10082 ac_freetype_incl=`$ft_devel --cflags`
10083 ac_freetype_libs=`$ft_devel --libs`
10084 fi
Shunichi Fuji4bf77d62009-01-20 15:24:46 +090010085 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010087$as_echo_n "checking for -lfreetype... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010088if test "${ac_cv_lib_soname_freetype+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010089 $as_echo_n "(cached) " >&6
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010090else
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010091 ac_check_soname_save_LIBS=$LIBS
10092LIBS="-lfreetype $ac_freetype_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010094/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010095
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010096/* Override any GCC internal prototype to avoid an error.
10097 Use char because int might match the return type of a GCC
10098 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010099#ifdef __cplusplus
10100extern "C"
10101#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010102char FT_Init_FreeType ();
10103int
10104main ()
10105{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010106return FT_Init_FreeType ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010107 ;
10108 return 0;
10109}
10110_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010111if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010112 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010113 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 +020010114 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'` ;;
10115 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10116 esac
Ian Pilcher563598d2001-05-16 20:56:05 +000010117fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010118rm -f core conftest.err conftest.$ac_objext \
10119 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010120 LIBS=$ac_check_soname_save_LIBS
Ian Pilcher563598d2001-05-16 20:56:05 +000010121fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010122if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010124$as_echo "not found" >&6; }
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010125 ft_lib=no
Ian Pilcher563598d2001-05-16 20:56:05 +000010126else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010128$as_echo "$ac_cv_lib_soname_freetype" >&6; }
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010129
10130cat >>confdefs.h <<_ACEOF
10131#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10132_ACEOF
10133
10134 ft_lib=yes
Ian Pilcher563598d2001-05-16 20:56:05 +000010135fi
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010136 if test "$ft_lib" = "yes"
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010137 then
Ian Pilcher40432fe2001-06-06 21:05:23 +000010138 ac_save_CPPFLAGS="$CPPFLAGS"
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010139 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010140 for ac_header in ft2build.h \
Rein Klazese617a9c2003-11-19 02:18:13 +000010141 freetype/freetype.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010142 freetype/ftglyph.h \
Dmitry Timoshkovb0d15902007-09-20 19:10:31 +090010143 freetype/fttypes.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010144 freetype/tttables.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010145 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +000010146 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000010147 freetype/ftoutln.h \
Huw Daviesc2217182004-06-16 20:06:26 +000010148 freetype/ftwinfnt.h \
Huw Davies603d21c2006-01-24 10:57:35 +010010149 freetype/ftmodapi.h \
ByeongSik Jeon028617b2008-12-10 23:50:44 +090010150 freetype/ftlcdfil.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000010151 freetype/internal/sfnt.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010152do :
10153 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10154ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
Francois Gouget9e67edf2008-03-06 12:34:48 +010010155 # include <ft2build.h>
Rein Klazes9c269172003-11-20 04:17:33 +000010156 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010157"
10158eval as_val=\$$as_ac_Header
10159 if test "x$as_val" = x""yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010160 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010010161#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010162_ACEOF
10163
10164fi
10165
Ian Pilcher40432fe2001-06-06 21:05:23 +000010166done
10167
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010169/* end confdefs.h. */
Alexandre Julliard18d75732002-01-29 03:02:50 +000010170#include <ft2build.h>
10171 #include <freetype/fttrigon.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010172_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010173if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010174
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010175$as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
Alexandre Julliard18d75732002-01-29 03:02:50 +000010176
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010177 wine_cv_fttrigon=yes
Alexandre Julliard18d75732002-01-29 03:02:50 +000010178else
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010179 wine_cv_fttrigon=no
Alexandre Julliard18d75732002-01-29 03:02:50 +000010180fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010181rm -f conftest.err conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010182 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10183"
10184if test "x$ac_cv_type_FT_TrueTypeEngineType" = x""yes; then :
Huw Daviesd8a6c272006-02-22 12:24:25 +000010185
10186cat >>confdefs.h <<_ACEOF
10187#define HAVE_FT_TRUETYPEENGINETYPE 1
10188_ACEOF
10189
10190
10191fi
10192
Huw Davies35bca772006-04-12 12:14:27 +010010193 ac_save_CFLAGS="$CFLAGS"
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010194 CFLAGS="$CFLAGS $ac_freetype_libs"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010195 for ac_func in FT_Load_Sfnt_Table
10196do :
10197 ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10198if test "x$ac_cv_func_FT_Load_Sfnt_Table" = x""yes; then :
Huw Davies35bca772006-04-12 12:14:27 +010010199 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010200#define HAVE_FT_LOAD_SFNT_TABLE 1
Huw Davies35bca772006-04-12 12:14:27 +010010201_ACEOF
10202
10203fi
10204done
10205
10206 CFLAGS="$ac_save_CFLAGS"
Ian Pilcher40432fe2001-06-06 21:05:23 +000010207 CPPFLAGS="$ac_save_CPPFLAGS"
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010208 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010209 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010210
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010211$as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010212
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010213 FREETYPELIBS="$ac_freetype_libs"
10214
10215 FREETYPEINCL="$ac_freetype_incl"
10216
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010217 fi
Ian Pilcher563598d2001-05-16 20:56:05 +000010218 fi
10219fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010220if test "x$FREETYPELIBS" = "x"; then :
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010221 case "x$with_freetype" in
10222 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010223 *) as_fn_error "FreeType ${notice_platform}development files not found. Fonts will not be built.
10224Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010225esac
Huw Davies00acb5f2004-08-17 22:33:14 +000010226fi
Alexandre Julliard6de0af12008-08-25 14:41:03 +020010227test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010228
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010230$as_echo_n "checking for parport header/ppdev.h... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010231if test "${ac_cv_c_ppdev+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010232 $as_echo_n "(cached) " >&6
Pavel Roskin94d99641998-12-26 11:52:51 +000010233else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010235/* end confdefs.h. */
Yann Droneauddd33ee92010-03-08 14:46:46 +010010236#ifdef HAVE_SYS_IOCTL_H
10237# include <sys/ioctl.h>
10238#endif
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010239#include <linux/ppdev.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010240int
10241main ()
10242{
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010243ioctl (1,PPCLAIM,0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010244 ;
10245 return 0;
10246}
10247_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010248if ac_fn_c_try_compile "$LINENO"; then :
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010249 ac_cv_c_ppdev="yes"
10250else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010251 ac_cv_c_ppdev="no"
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010252fi
Jeremy White0ebeb532006-06-20 13:18:41 +020010253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010254fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010256$as_echo "$ac_cv_c_ppdev" >&6; }
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010257if test "$ac_cv_c_ppdev" = "yes"
10258then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010259
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010260$as_echo "#define HAVE_PPDEV 1" >>confdefs.h
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010261
10262fi
10263
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010264ac_wine_check_funcs_save_LIBS="$LIBS"
Alexandre Julliard821ab862003-11-12 22:44:56 +000010265LIBS="$LIBS $LIBPTHREAD"
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000010266for ac_func in \
Tijl Coosemansfc8172f2006-08-05 23:31:07 +020010267 pthread_attr_get_np \
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000010268 pthread_getattr_np \
10269 pthread_get_stackaddr_np \
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010270 pthread_get_stacksize_np
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010271do :
10272 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10273ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10274eval as_val=\$$as_ac_var
10275 if test "x$as_val" = x""yes; then :
Alexandre Julliard821ab862003-11-12 22:44:56 +000010276 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010010277#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliard821ab862003-11-12 22:44:56 +000010278_ACEOF
10279
10280fi
10281done
10282
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010283LIBS="$ac_wine_check_funcs_save_LIBS"
Alexandre Julliard821ab862003-11-12 22:44:56 +000010284
Jacek Caban11ca05f2009-05-29 23:35:13 +020010285if test "$ac_cv_header_zlib_h" = "yes"
10286then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
Jacek Caban11ca05f2009-05-29 23:35:13 +020010288$as_echo_n "checking for inflate in -lz... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010289if test "${ac_cv_lib_z_inflate+set}" = set; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010290 $as_echo_n "(cached) " >&6
10291else
10292 ac_check_lib_save_LIBS=$LIBS
10293LIBS="-lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jacek Caban11ca05f2009-05-29 23:35:13 +020010295/* end confdefs.h. */
10296
10297/* Override any GCC internal prototype to avoid an error.
10298 Use char because int might match the return type of a GCC
10299 builtin and then its argument prototype would still apply. */
10300#ifdef __cplusplus
10301extern "C"
10302#endif
10303char inflate ();
10304int
10305main ()
10306{
10307return inflate ();
10308 ;
10309 return 0;
10310}
10311_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010312if ac_fn_c_try_link "$LINENO"; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010313 ac_cv_lib_z_inflate=yes
10314else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010315 ac_cv_lib_z_inflate=no
Jacek Caban11ca05f2009-05-29 23:35:13 +020010316fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010317rm -f core conftest.err conftest.$ac_objext \
10318 conftest$ac_exeext conftest.$ac_ext
Jacek Caban11ca05f2009-05-29 23:35:13 +020010319LIBS=$ac_check_lib_save_LIBS
10320fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
Jacek Caban11ca05f2009-05-29 23:35:13 +020010322$as_echo "$ac_cv_lib_z_inflate" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010323if test "x$ac_cv_lib_z_inflate" = x""yes; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010324
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010325$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
Jacek Caban11ca05f2009-05-29 23:35:13 +020010326
10327 ZLIB="-lz"
10328
10329fi
10330
10331fi
10332
Francois Gouget3fe5d802009-01-14 14:16:06 +010010333if test "x$with_esd" != xno
10334then
10335 save_CFLAGS="$CFLAGS"
10336 # Extract the first word of "esd-config", so it can be a program name with args.
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010337set dummy esd-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010339$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010340if test "${ac_cv_path_ESDCONFIG+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010341 $as_echo_n "(cached) " >&6
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010342else
10343 case $ESDCONFIG in
10344 [\\/]* | ?:[\\/]*)
10345 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10346 ;;
10347 *)
10348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10349for as_dir in $PATH
10350do
10351 IFS=$as_save_IFS
10352 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010353 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010010354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010355 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010357 break 2
10358 fi
10359done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010360 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010361IFS=$as_save_IFS
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010362
Francois Gouget3fe5d802009-01-14 14:16:06 +010010363 test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010364 ;;
10365esac
10366fi
10367ESDCONFIG=$ac_cv_path_ESDCONFIG
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010368if test -n "$ESDCONFIG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010370$as_echo "$ESDCONFIG" >&6; }
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010371else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010373$as_echo "no" >&6; }
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010374fi
10375
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010376
Francois Gouget3fe5d802009-01-14 14:16:06 +010010377 if test "x$ESDCONFIG" != "xno"
10378 then
10379 ac_esd_incl=""
10380 for i in `$ESDCONFIG --cflags`
10381 do
10382 case "$i" in
10383 -I*) ac_esd_incl="$ac_esd_incl $i";;
10384 esac
10385 done
10386 ac_esd_libs=`$ESDCONFIG --libs`
10387 CFLAGS="$CFLAGS $ac_esd_incl"
10388 fi
Shunichi Fuji4bf77d62009-01-20 15:24:46 +090010389 ac_esd_libs=${ac_esd_libs:-"-lesd"}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010390 ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10391if test "x$ac_cv_header_esd_h" = x""yes; then :
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010393$as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010394if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010395 $as_echo_n "(cached) " >&6
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010396else
10397 ac_check_lib_save_LIBS=$LIBS
Francois Gougete9b1a402008-07-21 23:41:21 +020010398LIBS="-lesd $ac_esd_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010400/* end confdefs.h. */
10401
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010402/* Override any GCC internal prototype to avoid an error.
10403 Use char because int might match the return type of a GCC
10404 builtin and then its argument prototype would still apply. */
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010405#ifdef __cplusplus
10406extern "C"
10407#endif
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010408char esd_open_sound ();
10409int
10410main ()
10411{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010412return esd_open_sound ();
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010413 ;
10414 return 0;
10415}
10416_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010417if ac_fn_c_try_link "$LINENO"; then :
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010418 ac_cv_lib_esd_esd_open_sound=yes
10419else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010420 ac_cv_lib_esd_esd_open_sound=no
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010421fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010422rm -f core conftest.err conftest.$ac_objext \
10423 conftest$ac_exeext conftest.$ac_ext
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010424LIBS=$ac_check_lib_save_LIBS
10425fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010427$as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010428if test "x$ac_cv_lib_esd_esd_open_sound" = x""yes; then :
Francois Gougete9b1a402008-07-21 23:41:21 +020010429 ESDINCL="$ac_esd_incl"
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010430
Francois Gouget3fe5d802009-01-14 14:16:06 +010010431 ESDLIBS="$ac_esd_libs"
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010432
10433
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010434$as_echo "#define HAVE_ESD 1" >>confdefs.h
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010435
10436fi
10437
Francois Gouget3fe5d802009-01-14 14:16:06 +010010438fi
10439
10440
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010441 CFLAGS="$save_CFLAGS"
10442fi
10443
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010444ALSALIBS=""
10445
Marco Pietrobono0e79a412002-08-29 01:51:31 +000010446if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010447then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access in -lasound" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010449$as_echo_n "checking for snd_pcm_hw_params_get_access in -lasound... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010450if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010451 $as_echo_n "(cached) " >&6
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010452else
10453 ac_check_lib_save_LIBS=$LIBS
10454LIBS="-lasound $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010456/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010457
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010458/* Override any GCC internal prototype to avoid an error.
10459 Use char because int might match the return type of a GCC
10460 builtin and then its argument prototype would still apply. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010461#ifdef __cplusplus
10462extern "C"
10463#endif
Vincent Béron151015f2005-01-10 13:26:33 +000010464char snd_pcm_hw_params_get_access ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010465int
10466main ()
10467{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010468return snd_pcm_hw_params_get_access ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010469 ;
10470 return 0;
10471}
10472_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010473if ac_fn_c_try_link "$LINENO"; then :
Vincent Béron151015f2005-01-10 13:26:33 +000010474 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010475else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010476 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010477fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010478rm -f core conftest.err conftest.$ac_objext \
10479 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010480LIBS=$ac_check_lib_save_LIBS
10481fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010483$as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010484if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access" = x""yes; then :
10485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Vincent Béron151015f2005-01-10 13:26:33 +000010486/* end confdefs.h. */
10487#ifdef HAVE_ALSA_ASOUNDLIB_H
10488#include <alsa/asoundlib.h>
10489#elif defined(HAVE_SYS_ASOUNDLIB_H)
10490#include <sys/asoundlib.h>
10491#endif
10492int
10493main ()
10494{
10495int ret = snd_pcm_hw_params_get_access(NULL, NULL)
10496 ;
10497 return 0;
10498}
10499_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010500if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010501
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010502$as_echo "#define HAVE_ALSA 1" >>confdefs.h
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010503
Vincent Béron151015f2005-01-10 13:26:33 +000010504 ALSALIBS="-lasound"
Vincent Béron151015f2005-01-10 13:26:33 +000010505fi
Jeremy White0ebeb532006-06-20 13:18:41 +020010506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010507fi
10508
10509fi
10510
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010511AUDIOIOLIBS=""
10512
Alexandre Julliard73482142005-08-03 19:21:04 +000010513if test "$ac_cv_header_libaudioio_h" = "yes"
10514then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AudioIOGetVersion in -laudioio" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010516$as_echo_n "checking for AudioIOGetVersion in -laudioio... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010517if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010518 $as_echo_n "(cached) " >&6
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010519else
10520 ac_check_lib_save_LIBS=$LIBS
10521LIBS="-laudioio $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010523/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010524
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010525/* Override any GCC internal prototype to avoid an error.
10526 Use char because int might match the return type of a GCC
10527 builtin and then its argument prototype would still apply. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010528#ifdef __cplusplus
10529extern "C"
10530#endif
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010531char AudioIOGetVersion ();
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010532int
10533main ()
10534{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010535return AudioIOGetVersion ();
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010536 ;
10537 return 0;
10538}
10539_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010540if ac_fn_c_try_link "$LINENO"; then :
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010541 ac_cv_lib_audioio_AudioIOGetVersion=yes
10542else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010543 ac_cv_lib_audioio_AudioIOGetVersion=no
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010544fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010545rm -f core conftest.err conftest.$ac_objext \
10546 conftest$ac_exeext conftest.$ac_ext
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010547LIBS=$ac_check_lib_save_LIBS
10548fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010550$as_echo "$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010551if test "x$ac_cv_lib_audioio_AudioIOGetVersion" = x""yes; then :
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010552 AUDIOIOLIBS="-laudioio"
10553
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010554$as_echo "#define HAVE_LIBAUDIOIO 1" >>confdefs.h
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010555
10556fi
10557
10558fi
10559
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010560
Alexandre Julliard73482142005-08-03 19:21:04 +000010561if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10562then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010564$as_echo_n "checking for -lcapi20... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010565if test "${ac_cv_lib_soname_capi20+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010566 $as_echo_n "(cached) " >&6
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010567else
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010568 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010569LIBS="-lcapi20 $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010571/* end confdefs.h. */
10572
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010573/* Override any GCC internal prototype to avoid an error.
10574 Use char because int might match the return type of a GCC
10575 builtin and then its argument prototype would still apply. */
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010576#ifdef __cplusplus
10577extern "C"
10578#endif
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010579char capi20_register ();
10580int
10581main ()
10582{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010583return capi20_register ();
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010584 ;
10585 return 0;
10586}
10587_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010588if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010589 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010590 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 +020010591 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'` ;;
10592 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10593 esac
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010594fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010595rm -f core conftest.err conftest.$ac_objext \
10596 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010597 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010598fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010599if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010601$as_echo "not found" >&6; }
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010602
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010603else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010605$as_echo "$ac_cv_lib_soname_capi20" >&6; }
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010606
10607cat >>confdefs.h <<_ACEOF
10608#define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010609_ACEOF
10610
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010611
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010612fi
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010613fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010614if test "x$ac_cv_lib_soname_capi20" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010615 case "x$with_capi" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010616 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 +010010617 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010618 *) as_fn_error "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
10619This is an error since --with-capi was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010620esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010621fi
10622
Francois Gouget289ea332008-07-24 16:09:07 +020010623CUPSINCL=""
10624
10625if test "x$with_cups" != "xno"
Alexandre Julliard702d3552007-07-02 17:30:44 +020010626then
Francois Gouget289ea332008-07-24 16:09:07 +020010627 ac_save_CPPFLAGS="$CPPFLAGS"
10628 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
Alexandre Julliarda991a562008-07-28 12:04:46 +020010629 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
Francois Gouget289ea332008-07-24 16:09:07 +020010630 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010631 for ac_header in cups/cups.h
10632do :
10633 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
10634if test "x$ac_cv_header_cups_cups_h" = x""yes; then :
Francois Gouget289ea332008-07-24 16:09:07 +020010635 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010636#define HAVE_CUPS_CUPS_H 1
Francois Gouget289ea332008-07-24 16:09:07 +020010637_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010639$as_echo_n "checking for -lcups... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010640if test "${ac_cv_lib_soname_cups+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010641 $as_echo_n "(cached) " >&6
Alexandre Julliard702d3552007-07-02 17:30:44 +020010642else
10643 ac_check_soname_save_LIBS=$LIBS
Francois Gouget289ea332008-07-24 16:09:07 +020010644LIBS="-lcups $ac_cups_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard702d3552007-07-02 17:30:44 +020010646/* end confdefs.h. */
10647
10648/* Override any GCC internal prototype to avoid an error.
10649 Use char because int might match the return type of a GCC
10650 builtin and then its argument prototype would still apply. */
10651#ifdef __cplusplus
10652extern "C"
10653#endif
10654char cupsGetDefault ();
10655int
10656main ()
10657{
10658return cupsGetDefault ();
10659 ;
10660 return 0;
10661}
10662_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010663if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard702d3552007-07-02 17:30:44 +020010664 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010665 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 +020010666 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'` ;;
10667 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10668 esac
Alexandre Julliard702d3552007-07-02 17:30:44 +020010669fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010670rm -f core conftest.err conftest.$ac_objext \
10671 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard702d3552007-07-02 17:30:44 +020010672 LIBS=$ac_check_soname_save_LIBS
10673fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010674if test "x$ac_cv_lib_soname_cups" = "x"; then :
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010676$as_echo "not found" >&6; }
Alexandre Julliard702d3552007-07-02 17:30:44 +020010677
10678else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010680$as_echo "$ac_cv_lib_soname_cups" >&6; }
Alexandre Julliard702d3552007-07-02 17:30:44 +020010681
10682cat >>confdefs.h <<_ACEOF
10683#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10684_ACEOF
10685
Francois Gouget289ea332008-07-24 16:09:07 +020010686 CUPSINCL="$ac_cups_cflags"
10687fi
Alexandre Julliard702d3552007-07-02 17:30:44 +020010688fi
10689
Francois Gouget289ea332008-07-24 16:09:07 +020010690done
10691
10692 CPPFLAGS="$ac_save_CPPFLAGS"
Alexandre Julliard702d3552007-07-02 17:30:44 +020010693fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010694if test "x$ac_cv_lib_soname_cups" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010695 case "x$with_cups" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010696 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 +010010697 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010698 *) as_fn_error "libcups ${notice_platform}development files not found, CUPS won't be supported.
10699This is an error since --with-cups was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010700esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010701fi
10702
Alexandre Julliard34200c32007-07-02 17:31:19 +020010703if test "$ac_cv_header_jack_jack_h" = "yes"
10704then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010706$as_echo_n "checking for -ljack... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010707if test "${ac_cv_lib_soname_jack+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010708 $as_echo_n "(cached) " >&6
Alexandre Julliard34200c32007-07-02 17:31:19 +020010709else
10710 ac_check_soname_save_LIBS=$LIBS
10711LIBS="-ljack $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard34200c32007-07-02 17:31:19 +020010713/* end confdefs.h. */
10714
10715/* Override any GCC internal prototype to avoid an error.
10716 Use char because int might match the return type of a GCC
10717 builtin and then its argument prototype would still apply. */
10718#ifdef __cplusplus
10719extern "C"
10720#endif
10721char jack_client_new ();
10722int
10723main ()
10724{
10725return jack_client_new ();
10726 ;
10727 return 0;
10728}
10729_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010730if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard34200c32007-07-02 17:31:19 +020010731 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010732 dll) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest.exe | grep "jack" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Francois Gouget90a6fb02008-07-11 17:47:23 +020010733 dylib) ac_cv_lib_soname_jack=`otool -L conftest$ac_exeext | grep "libjack-*[0-9.]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libjack-*[0-9.]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10734 *) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjack-*[0-9.]*\\.$LIBEXT" | sed -e "s/^.*\(libjack-*[0-9.]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
Alexandre Julliard34200c32007-07-02 17:31:19 +020010735 esac
Alexandre Julliard34200c32007-07-02 17:31:19 +020010736fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010737rm -f core conftest.err conftest.$ac_objext \
10738 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard34200c32007-07-02 17:31:19 +020010739 LIBS=$ac_check_soname_save_LIBS
10740fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010741if test "x$ac_cv_lib_soname_jack" = "x"; then :
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010743$as_echo "not found" >&6; }
Alexandre Julliard34200c32007-07-02 17:31:19 +020010744
10745else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010747$as_echo "$ac_cv_lib_soname_jack" >&6; }
Alexandre Julliard34200c32007-07-02 17:31:19 +020010748
10749cat >>confdefs.h <<_ACEOF
10750#define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
10751_ACEOF
10752
10753
10754fi
Alexandre Julliard34200c32007-07-02 17:31:19 +020010755fi
10756
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010757if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10758then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010760$as_echo_n "checking for -lfontconfig... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010761if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010762 $as_echo_n "(cached) " >&6
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010763else
10764 ac_check_soname_save_LIBS=$LIBS
10765LIBS="-lfontconfig $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010767/* end confdefs.h. */
10768
10769/* Override any GCC internal prototype to avoid an error.
10770 Use char because int might match the return type of a GCC
10771 builtin and then its argument prototype would still apply. */
10772#ifdef __cplusplus
10773extern "C"
10774#endif
10775char FcInit ();
10776int
10777main ()
10778{
10779return FcInit ();
10780 ;
10781 return 0;
10782}
10783_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010784if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010785 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010786 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 +020010787 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'` ;;
10788 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10789 esac
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010790fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010791rm -f core conftest.err conftest.$ac_objext \
10792 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010793 LIBS=$ac_check_soname_save_LIBS
10794fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010795if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010797$as_echo "not found" >&6; }
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010798
10799else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010801$as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010802
10803cat >>confdefs.h <<_ACEOF
10804#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10805_ACEOF
10806
10807
10808fi
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010809elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
Alexandre Julliard5c076732007-10-17 17:04:01 +020010810then
10811 ac_save_CPPFLAGS="$CPPFLAGS"
10812 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10813 $as_unset ac_cv_header_fontconfig_fontconfig_h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010814 for ac_header in fontconfig/fontconfig.h
10815do :
10816 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
10817if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
Alexandre Julliard5c076732007-10-17 17:04:01 +020010818 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010819#define HAVE_FONTCONFIG_FONTCONFIG_H 1
Alexandre Julliard5c076732007-10-17 17:04:01 +020010820_ACEOF
10821
10822fi
10823
10824done
10825
10826 CPPFLAGS="$ac_save_CPPFLAGS"
10827 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10828 then
10829 FONTCONFIGINCL="$X_CFLAGS"
10830
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010832$as_echo_n "checking for -lfontconfig... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010833if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010834 $as_echo_n "(cached) " >&6
Alexandre Julliard5c076732007-10-17 17:04:01 +020010835else
10836 ac_check_soname_save_LIBS=$LIBS
10837LIBS="-lfontconfig $X_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard5c076732007-10-17 17:04:01 +020010839/* end confdefs.h. */
10840
10841/* Override any GCC internal prototype to avoid an error.
10842 Use char because int might match the return type of a GCC
10843 builtin and then its argument prototype would still apply. */
10844#ifdef __cplusplus
10845extern "C"
10846#endif
10847char FcInit ();
10848int
10849main ()
10850{
10851return FcInit ();
10852 ;
10853 return 0;
10854}
10855_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010856if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard5c076732007-10-17 17:04:01 +020010857 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010858 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 +020010859 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'` ;;
10860 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10861 esac
Alexandre Julliard5c076732007-10-17 17:04:01 +020010862fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010863rm -f core conftest.err conftest.$ac_objext \
10864 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard5c076732007-10-17 17:04:01 +020010865 LIBS=$ac_check_soname_save_LIBS
10866fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010867if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010869$as_echo "not found" >&6; }
Alexandre Julliard5c076732007-10-17 17:04:01 +020010870
10871else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010873$as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
Alexandre Julliard5c076732007-10-17 17:04:01 +020010874
10875cat >>confdefs.h <<_ACEOF
10876#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10877_ACEOF
10878
10879
10880fi
Alexandre Julliard5c076732007-10-17 17:04:01 +020010881 fi
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010882fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010883if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010884 case "x$with_fontconfig" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010885 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 +010010886 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010887 *) as_fn_error "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
10888This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010889esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020010890fi
10891
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010892if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
10893then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010895$as_echo_n "checking for -lssl... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010896if test "${ac_cv_lib_soname_ssl+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010897 $as_echo_n "(cached) " >&6
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010898else
10899 ac_check_soname_save_LIBS=$LIBS
10900LIBS="-lssl $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010902/* end confdefs.h. */
10903
10904/* Override any GCC internal prototype to avoid an error.
10905 Use char because int might match the return type of a GCC
10906 builtin and then its argument prototype would still apply. */
10907#ifdef __cplusplus
10908extern "C"
10909#endif
10910char SSL_library_init ();
10911int
10912main ()
10913{
10914return SSL_library_init ();
10915 ;
10916 return 0;
10917}
10918_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010919if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010920 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010921 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 +020010922 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'` ;;
10923 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10924 esac
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010925fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010926rm -f core conftest.err conftest.$ac_objext \
10927 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010928 LIBS=$ac_check_soname_save_LIBS
10929fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010930if test "x$ac_cv_lib_soname_ssl" = "x"; then :
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010932$as_echo "not found" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010933
10934else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010936$as_echo "$ac_cv_lib_soname_ssl" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010937
10938cat >>confdefs.h <<_ACEOF
10939#define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
10940_ACEOF
10941
10942
10943fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010945$as_echo_n "checking for -lcrypto... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010946if test "${ac_cv_lib_soname_crypto+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010947 $as_echo_n "(cached) " >&6
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010948else
10949 ac_check_soname_save_LIBS=$LIBS
10950LIBS="-lcrypto $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010952/* end confdefs.h. */
10953
10954/* Override any GCC internal prototype to avoid an error.
10955 Use char because int might match the return type of a GCC
10956 builtin and then its argument prototype would still apply. */
10957#ifdef __cplusplus
10958extern "C"
10959#endif
10960char BIO_new_socket ();
10961int
10962main ()
10963{
10964return BIO_new_socket ();
10965 ;
10966 return 0;
10967}
10968_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010969if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010970 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010971 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 +020010972 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'` ;;
10973 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10974 esac
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010975fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010976rm -f core conftest.err conftest.$ac_objext \
10977 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010978 LIBS=$ac_check_soname_save_LIBS
10979fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010980if test "x$ac_cv_lib_soname_crypto" = "x"; then :
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010982$as_echo "not found" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010983
10984else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010986$as_echo "$ac_cv_lib_soname_crypto" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010987
10988cat >>confdefs.h <<_ACEOF
10989#define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
10990_ACEOF
10991
10992
10993fi
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010994fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010995if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010996 case "x$with_openssl" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010997 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 +010010998 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010999 *) as_fn_error "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11000This is an error since --with-openssl was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011001esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011002fi
11003
Maarten Lankhorstc186d8a2009-08-05 11:35:50 +020011004if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011005then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011007$as_echo_n "checking for -lgsm... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011008if test "${ac_cv_lib_soname_gsm+set}" = set; then :
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011009 $as_echo_n "(cached) " >&6
11010else
11011 ac_check_soname_save_LIBS=$LIBS
11012LIBS="-lgsm $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011014/* end confdefs.h. */
11015
11016/* Override any GCC internal prototype to avoid an error.
11017 Use char because int might match the return type of a GCC
11018 builtin and then its argument prototype would still apply. */
11019#ifdef __cplusplus
11020extern "C"
11021#endif
11022char gsm_create ();
11023int
11024main ()
11025{
11026return gsm_create ();
11027 ;
11028 return 0;
11029}
11030_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011031if ac_fn_c_try_link "$LINENO"; then :
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011032 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011033 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 +020011034 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'` ;;
11035 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11036 esac
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011037fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011038rm -f core conftest.err conftest.$ac_objext \
11039 conftest$ac_exeext conftest.$ac_ext
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011040 LIBS=$ac_check_soname_save_LIBS
11041fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011042if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011044$as_echo "not found" >&6; }
11045
11046else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011048$as_echo "$ac_cv_lib_soname_gsm" >&6; }
11049
11050cat >>confdefs.h <<_ACEOF
11051#define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11052_ACEOF
11053
11054
11055fi
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011056fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011057if test "x$ac_cv_lib_soname_gsm" = "x"; then :
Alexandre Julliard6ce32e02009-08-19 15:53:04 +020011058 case "x$with_gsm" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011059 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 +020011060 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011061 *) as_fn_error "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
Alexandre Julliard6ce32e02009-08-19 15:53:04 +020011062This is an error since --with-gsm was requested." "$LINENO" 5 ;;
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011063esac
11064fi
11065
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011066if test "$ac_cv_header_jpeglib_h" = "yes"
11067then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011069$as_echo_n "checking for -ljpeg... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011070if test "${ac_cv_lib_soname_jpeg+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011071 $as_echo_n "(cached) " >&6
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011072else
11073 ac_check_soname_save_LIBS=$LIBS
11074LIBS="-ljpeg $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011076/* end confdefs.h. */
11077
11078/* Override any GCC internal prototype to avoid an error.
11079 Use char because int might match the return type of a GCC
11080 builtin and then its argument prototype would still apply. */
11081#ifdef __cplusplus
11082extern "C"
11083#endif
11084char jpeg_start_decompress ();
11085int
11086main ()
11087{
11088return jpeg_start_decompress ();
11089 ;
11090 return 0;
11091}
11092_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011093if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011094 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011095 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 +020011096 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'` ;;
11097 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11098 esac
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011099fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011100rm -f core conftest.err conftest.$ac_objext \
11101 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011102 LIBS=$ac_check_soname_save_LIBS
11103fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011104if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011106$as_echo "not found" >&6; }
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011107
11108else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011110$as_echo "$ac_cv_lib_soname_jpeg" >&6; }
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011111
11112cat >>confdefs.h <<_ACEOF
11113#define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11114_ACEOF
11115
11116
11117fi
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011118fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011119if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011120 case "x$with_jpeg" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011121 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 +010011122 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011123 *) as_fn_error "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11124This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011125esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011126fi
11127
Alexandre Julliard00302152007-07-02 19:54:00 +020011128if test "$ac_cv_header_png_h" = "yes"
11129then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011131$as_echo_n "checking for -lpng... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011132if test "${ac_cv_lib_soname_png+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011133 $as_echo_n "(cached) " >&6
Alexandre Julliard00302152007-07-02 19:54:00 +020011134else
11135 ac_check_soname_save_LIBS=$LIBS
Austin Englishfe8879e2008-12-28 19:10:19 -060011136LIBS="-lpng -lm -lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard00302152007-07-02 19:54:00 +020011138/* end confdefs.h. */
11139
11140/* Override any GCC internal prototype to avoid an error.
11141 Use char because int might match the return type of a GCC
11142 builtin and then its argument prototype would still apply. */
11143#ifdef __cplusplus
11144extern "C"
11145#endif
11146char png_create_read_struct ();
11147int
11148main ()
11149{
11150return png_create_read_struct ();
11151 ;
11152 return 0;
11153}
11154_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011155if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard00302152007-07-02 19:54:00 +020011156 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011157 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 +020011158 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'` ;;
11159 *) 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'` ;;
11160 esac
Alexandre Julliard00302152007-07-02 19:54:00 +020011161fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011162rm -f core conftest.err conftest.$ac_objext \
11163 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard00302152007-07-02 19:54:00 +020011164 LIBS=$ac_check_soname_save_LIBS
11165fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011166if test "x$ac_cv_lib_soname_png" = "x"; then :
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011168$as_echo "not found" >&6; }
Alexandre Julliard00302152007-07-02 19:54:00 +020011169
11170else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011172$as_echo "$ac_cv_lib_soname_png" >&6; }
Alexandre Julliard00302152007-07-02 19:54:00 +020011173
11174cat >>confdefs.h <<_ACEOF
11175#define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11176_ACEOF
11177
11178
11179fi
Marcus Meissner615e0e62010-02-27 23:13:21 +010011180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11181$as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11182if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11183 $as_echo_n "(cached) " >&6
11184else
11185 ac_check_lib_save_LIBS=$LIBS
11186LIBS="-lpng -lm -lz $LIBS"
11187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11188/* end confdefs.h. */
11189
11190/* Override any GCC internal prototype to avoid an error.
11191 Use char because int might match the return type of a GCC
11192 builtin and then its argument prototype would still apply. */
11193#ifdef __cplusplus
11194extern "C"
11195#endif
11196char png_set_expand_gray_1_2_4_to_8 ();
11197int
11198main ()
11199{
11200return png_set_expand_gray_1_2_4_to_8 ();
11201 ;
11202 return 0;
11203}
11204_ACEOF
11205if ac_fn_c_try_link "$LINENO"; then :
11206 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11207else
11208 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11209fi
11210rm -f core conftest.err conftest.$ac_objext \
11211 conftest$ac_exeext conftest.$ac_ext
11212LIBS=$ac_check_lib_save_LIBS
11213fi
11214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11215$as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11216if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11217
11218$as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11219
11220
11221fi
11222
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011223elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11224then
11225 ac_save_CPPFLAGS="$CPPFLAGS"
11226 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11227 $as_unset ac_cv_header_png_h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011228 for ac_header in png.h
11229do :
11230 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11231if test "x$ac_cv_header_png_h" = x""yes; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011232 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011233#define HAVE_PNG_H 1
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011234_ACEOF
11235
11236fi
11237
11238done
11239
11240 CPPFLAGS="$ac_save_CPPFLAGS"
11241 if test "$ac_cv_header_png_h" = "yes"
11242 then
11243 PNGINCL="$X_CFLAGS"
11244
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011246$as_echo_n "checking for -lpng... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011247if test "${ac_cv_lib_soname_png+set}" = set; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011248 $as_echo_n "(cached) " >&6
11249else
11250 ac_check_soname_save_LIBS=$LIBS
11251LIBS="-lpng $X_LIBS -lm -lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011253/* end confdefs.h. */
11254
11255/* Override any GCC internal prototype to avoid an error.
11256 Use char because int might match the return type of a GCC
11257 builtin and then its argument prototype would still apply. */
11258#ifdef __cplusplus
11259extern "C"
11260#endif
11261char png_create_read_struct ();
11262int
11263main ()
11264{
11265return png_create_read_struct ();
11266 ;
11267 return 0;
11268}
11269_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011270if ac_fn_c_try_link "$LINENO"; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011271 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011272 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 +020011273 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'` ;;
11274 *) 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'` ;;
11275 esac
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011276fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011277rm -f core conftest.err conftest.$ac_objext \
11278 conftest$ac_exeext conftest.$ac_ext
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011279 LIBS=$ac_check_soname_save_LIBS
11280fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011281if test "x$ac_cv_lib_soname_png" = "x"; then :
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011283$as_echo "not found" >&6; }
11284
11285else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011286 { $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 +020011287$as_echo "$ac_cv_lib_soname_png" >&6; }
11288
11289cat >>confdefs.h <<_ACEOF
11290#define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11291_ACEOF
11292
11293
11294fi
Marcus Meissner615e0e62010-02-27 23:13:21 +010011295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11296$as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11297if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11298 $as_echo_n "(cached) " >&6
11299else
11300 ac_check_lib_save_LIBS=$LIBS
11301LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303/* end confdefs.h. */
11304
11305/* Override any GCC internal prototype to avoid an error.
11306 Use char because int might match the return type of a GCC
11307 builtin and then its argument prototype would still apply. */
11308#ifdef __cplusplus
11309extern "C"
11310#endif
11311char png_set_expand_gray_1_2_4_to_8 ();
11312int
11313main ()
11314{
11315return png_set_expand_gray_1_2_4_to_8 ();
11316 ;
11317 return 0;
11318}
11319_ACEOF
11320if ac_fn_c_try_link "$LINENO"; then :
11321 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11322else
11323 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11324fi
11325rm -f core conftest.err conftest.$ac_objext \
11326 conftest$ac_exeext conftest.$ac_ext
11327LIBS=$ac_check_lib_save_LIBS
11328fi
11329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11330$as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11331if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11332 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11333
11334fi
11335
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011336 fi
Alexandre Julliard00302152007-07-02 19:54:00 +020011337fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011338if test "x$ac_cv_lib_soname_png" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011339 case "x$with_png" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011340 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 +010011341 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011342 *) as_fn_error "libpng ${notice_platform}development files not found, PNG won't be supported.
11343This is an error since --with-png was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011344esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011345fi
11346
Vincent Povirk73cd5692010-03-08 17:07:29 -060011347if test "$ac_cv_header_tiffio_h" = "yes"
11348then
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11350$as_echo_n "checking for -ltiff... " >&6; }
11351if test "${ac_cv_lib_soname_tiff+set}" = set; then :
11352 $as_echo_n "(cached) " >&6
11353else
11354 ac_check_soname_save_LIBS=$LIBS
11355LIBS="-ltiff $LIBS"
11356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11357/* end confdefs.h. */
11358
11359/* Override any GCC internal prototype to avoid an error.
11360 Use char because int might match the return type of a GCC
11361 builtin and then its argument prototype would still apply. */
11362#ifdef __cplusplus
11363extern "C"
11364#endif
11365char TIFFClientOpen ();
11366int
11367main ()
11368{
11369return TIFFClientOpen ();
11370 ;
11371 return 0;
11372}
11373_ACEOF
11374if ac_fn_c_try_link "$LINENO"; then :
11375 case "$LIBEXT" in
11376 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11377 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'` ;;
11378 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11379 esac
11380fi
11381rm -f core conftest.err conftest.$ac_objext \
11382 conftest$ac_exeext conftest.$ac_ext
11383 LIBS=$ac_check_soname_save_LIBS
11384fi
11385if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11387$as_echo "not found" >&6; }
11388
11389else
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11391$as_echo "$ac_cv_lib_soname_tiff" >&6; }
11392
11393cat >>confdefs.h <<_ACEOF
11394#define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11395_ACEOF
11396
11397
11398fi
11399fi
11400if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11401 case "x$with_tiff" in
11402 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11403 xno) ;;
11404 *) as_fn_error "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11405This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11406esac
11407fi
11408
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011409if test "$ac_cv_header_mpg123_h" = "yes"
11410then
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11412$as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11413if test "${ac_cv_lib_mpg123_mpg123_feed+set}" = set; then :
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011414 $as_echo_n "(cached) " >&6
11415else
11416 ac_check_lib_save_LIBS=$LIBS
11417LIBS="-lmpg123 $LIBS"
11418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11419/* end confdefs.h. */
11420
11421/* Override any GCC internal prototype to avoid an error.
11422 Use char because int might match the return type of a GCC
11423 builtin and then its argument prototype would still apply. */
11424#ifdef __cplusplus
11425extern "C"
11426#endif
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011427char mpg123_feed ();
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011428int
11429main ()
11430{
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011431return mpg123_feed ();
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011432 ;
11433 return 0;
11434}
11435_ACEOF
11436if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011437 ac_cv_lib_mpg123_mpg123_feed=yes
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011438else
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011439 ac_cv_lib_mpg123_mpg123_feed=no
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011440fi
11441rm -f core conftest.err conftest.$ac_objext \
11442 conftest$ac_exeext conftest.$ac_ext
11443LIBS=$ac_check_lib_save_LIBS
11444fi
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11446$as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11447if test "x$ac_cv_lib_mpg123_mpg123_feed" = x""yes; then :
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011448 LIBMPG123="-lmpg123"
11449
11450fi
11451
11452fi
Aric Stewart4430ab42010-03-17 10:58:32 -050011453if 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 -050011454 case "x$with_mpg123" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011455 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 -050011456 xno) ;;
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011457 *) as_fn_error "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011458This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11459esac
11460fi
Kristofer Henrikssonc58eff62010-05-24 15:04:42 -040011461test "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 -050011462
Chris Robinson862965f2009-08-25 03:26:35 -070011463if test "$ac_cv_header_AL_al_h" = "yes"
11464then
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11466$as_echo_n "checking for -lopenal... " >&6; }
11467if test "${ac_cv_lib_soname_openal+set}" = set; then :
Chris Robinson862965f2009-08-25 03:26:35 -070011468 $as_echo_n "(cached) " >&6
11469else
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011470 ac_check_soname_save_LIBS=$LIBS
Chris Robinson862965f2009-08-25 03:26:35 -070011471LIBS="-lopenal $LIBS"
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris Robinson862965f2009-08-25 03:26:35 -070011473/* end confdefs.h. */
11474
11475/* Override any GCC internal prototype to avoid an error.
11476 Use char because int might match the return type of a GCC
11477 builtin and then its argument prototype would still apply. */
11478#ifdef __cplusplus
11479extern "C"
11480#endif
11481char alGetSource3i ();
11482int
11483main ()
11484{
11485return alGetSource3i ();
11486 ;
11487 return 0;
11488}
11489_ACEOF
11490if ac_fn_c_try_link "$LINENO"; then :
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011491 case "$LIBEXT" in
11492 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11493 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'` ;;
11494 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11495 esac
Chris Robinson862965f2009-08-25 03:26:35 -070011496fi
11497rm -f core conftest.err conftest.$ac_objext \
11498 conftest$ac_exeext conftest.$ac_ext
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011499 LIBS=$ac_check_soname_save_LIBS
Chris Robinson862965f2009-08-25 03:26:35 -070011500fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011501if test "x$ac_cv_lib_soname_openal" = "x"; then :
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11503$as_echo "not found" >&6; }
11504
11505else
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11507$as_echo "$ac_cv_lib_soname_openal" >&6; }
11508
11509cat >>confdefs.h <<_ACEOF
11510#define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11511_ACEOF
11512
11513 LIBOPENAL="-lopenal"
11514
11515 ac_cv_lib_openal=yes
11516
11517cat >>confdefs.h <<_ACEOF
11518#define HAVE_OPENAL 1
11519_ACEOF
Chris Robinson862965f2009-08-25 03:26:35 -070011520
11521fi
Chris Robinson862965f2009-08-25 03:26:35 -070011522fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011523if test "x$ac_cv_lib_openal" != xyes; then :
Chris Robinson862965f2009-08-25 03:26:35 -070011524 case "x$with_openal" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011525 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 -070011526 xno) ;;
11527 *) as_fn_error "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11528This is an error since --with-openal was requested." "$LINENO" 5 ;;
11529esac
11530fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011531test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
Chris Robinson862965f2009-08-25 03:26:35 -070011532
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011533if test "$ac_cv_header_kstat_h" = "yes"
11534then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011536$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011537if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011538 $as_echo_n "(cached) " >&6
11539else
11540 ac_check_lib_save_LIBS=$LIBS
11541LIBS="-lkstat $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011543/* end confdefs.h. */
11544
11545/* Override any GCC internal prototype to avoid an error.
11546 Use char because int might match the return type of a GCC
11547 builtin and then its argument prototype would still apply. */
11548#ifdef __cplusplus
11549extern "C"
11550#endif
11551char kstat_open ();
11552int
11553main ()
11554{
11555return kstat_open ();
11556 ;
11557 return 0;
11558}
11559_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011560if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011561 ac_cv_lib_kstat_kstat_open=yes
11562else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011563 ac_cv_lib_kstat_kstat_open=no
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011564fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011565rm -f core conftest.err conftest.$ac_objext \
11566 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011567LIBS=$ac_check_lib_save_LIBS
11568fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011570$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011571if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011572
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011573$as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011574
11575 LIBKSTAT="-lkstat"
11576
11577fi
11578
11579fi
11580
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011582$as_echo_n "checking for -lodbc... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011583if test "${ac_cv_lib_soname_odbc+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011584 $as_echo_n "(cached) " >&6
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011585else
11586 ac_check_soname_save_LIBS=$LIBS
11587LIBS="-lodbc $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011589/* end confdefs.h. */
11590
11591/* Override any GCC internal prototype to avoid an error.
11592 Use char because int might match the return type of a GCC
11593 builtin and then its argument prototype would still apply. */
11594#ifdef __cplusplus
11595extern "C"
11596#endif
11597char SQLConnect ();
11598int
11599main ()
11600{
11601return SQLConnect ();
11602 ;
11603 return 0;
11604}
11605_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011606if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011607 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011608 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 +010011609 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'` ;;
11610 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11611 esac
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011612fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011613rm -f core conftest.err conftest.$ac_objext \
11614 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011615 LIBS=$ac_check_soname_save_LIBS
11616fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011617if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011619$as_echo "not found" >&6; }
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011620 cat >>confdefs.h <<_ACEOF
11621#define SONAME_LIBODBC "libodbc.$LIBEXT"
11622_ACEOF
11623
11624else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011626$as_echo "$ac_cv_lib_soname_odbc" >&6; }
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011627
11628cat >>confdefs.h <<_ACEOF
11629#define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11630_ACEOF
11631
11632
11633fi
11634
Francois Gouget3089a9f2008-07-31 18:59:50 +020011635if test "x$ALSALIBS$AUDIOIOLIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011636 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
11637 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
11638 "$ac_cv_header_soundcard_h" != "yes" -a \
11639 "x$with_alsa$with_audioio$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnonononononono
11640then
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011641 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
Alexandre Julliardf9dec942007-07-10 15:14:15 +020011642fi
11643
11644
Alexandre Julliardfc094232003-04-14 21:46:41 +000011645EXTRACFLAGS=""
11646
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011647if test "x${GCC}" = "xyes"
11648then
Hans Leidekkerd17b2322004-01-06 21:37:44 +000011649 EXTRACFLAGS="-Wall -pipe"
Mike McCormackc509bc42003-02-25 04:01:58 +000011650
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011652$as_echo_n "checking for gcc strength-reduce bug... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011653if test "${ac_cv_c_gcc_strength_bug+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011654 $as_echo_n "(cached) " >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011655else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011656 if test "$cross_compiling" = yes; then :
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011657 ac_cv_c_gcc_strength_bug="yes"
11658else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011660/* end confdefs.h. */
Alexandre Julliardad356de2007-06-08 20:23:16 +020011661int L[4] = {0,1,2,3};
11662int
11663main ()
11664{
11665static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011666 unsigned int B = 3;
11667 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000011668 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +000011669 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11670 L[i] = 4;
Alexandre Julliard95251a72009-02-16 12:46:58 +010011671 return (Array[1] != -2 || L[2] != 3)
Alexandre Julliardad356de2007-06-08 20:23:16 +020011672 ;
11673 return 0;
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011674}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011675_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011676if ac_fn_c_try_run "$LINENO"; then :
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011677 ac_cv_c_gcc_strength_bug="no"
11678else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011679 ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011680fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011681rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11682 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011683fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011684
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011685fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011687$as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011688 if test "$ac_cv_c_gcc_strength_bug" = "yes"
11689 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000011690 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011691 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000011692
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011694$as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011695if test "${ac_cv_cflags__fno_builtin+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011696 $as_echo_n "(cached) " >&6
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011697else
11698 ac_wine_try_cflags_saved=$CFLAGS
11699CFLAGS="$CFLAGS -fno-builtin"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011701/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011702int main(int argc, char **argv) { return 0; }
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011703_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011704if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011705 ac_cv_cflags__fno_builtin=yes
11706else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011707 ac_cv_cflags__fno_builtin=no
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011708fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011709rm -f core conftest.err conftest.$ac_objext \
11710 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011711CFLAGS=$ac_wine_try_cflags_saved
11712fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011714$as_echo "$ac_cv_cflags__fno_builtin" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011715if test $ac_cv_cflags__fno_builtin = yes; then :
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011716 BUILTINFLAG="-fno-builtin"
11717
11718fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011720$as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011721if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011722 $as_echo_n "(cached) " >&6
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011723else
11724 ac_wine_try_cflags_saved=$CFLAGS
11725CFLAGS="$CFLAGS -fno-strict-aliasing"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011727/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011728int main(int argc, char **argv) { return 0; }
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011729_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011730if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020011731 ac_cv_cflags__fno_strict_aliasing=yes
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011732else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011733 ac_cv_cflags__fno_strict_aliasing=no
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011734fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011735rm -f core conftest.err conftest.$ac_objext \
11736 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011737CFLAGS=$ac_wine_try_cflags_saved
11738fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011740$as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011741if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020011742 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11743fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011745$as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011746if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011747 $as_echo_n "(cached) " >&6
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011748else
11749 ac_wine_try_cflags_saved=$CFLAGS
11750CFLAGS="$CFLAGS -Wdeclaration-after-statement"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011752/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011753int main(int argc, char **argv) { return 0; }
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011754_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011755if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020011756 ac_cv_cflags__Wdeclaration_after_statement=yes
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011757else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011758 ac_cv_cflags__Wdeclaration_after_statement=no
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011759fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011760rm -f core conftest.err conftest.$ac_objext \
11761 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011762CFLAGS=$ac_wine_try_cflags_saved
11763fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011765$as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011766if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020011767 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
11768fi
Alexandre Julliard295806f2009-10-07 13:46:06 +020011769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
11770$as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
11771if test "${ac_cv_cflags__Wstrict_prototypes+set}" = set; then :
11772 $as_echo_n "(cached) " >&6
11773else
11774 ac_wine_try_cflags_saved=$CFLAGS
11775CFLAGS="$CFLAGS -Wstrict-prototypes"
11776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11777/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011778int main(int argc, char **argv) { return 0; }
Alexandre Julliard295806f2009-10-07 13:46:06 +020011779_ACEOF
11780if ac_fn_c_try_link "$LINENO"; then :
11781 ac_cv_cflags__Wstrict_prototypes=yes
11782else
11783 ac_cv_cflags__Wstrict_prototypes=no
11784fi
11785rm -f core conftest.err conftest.$ac_objext \
11786 conftest$ac_exeext conftest.$ac_ext
11787CFLAGS=$ac_wine_try_cflags_saved
11788fi
11789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
11790$as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
11791if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
11792 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
11793fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011795$as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011796if test "${ac_cv_cflags__Wtype_limits+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011797 $as_echo_n "(cached) " >&6
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011798else
11799 ac_wine_try_cflags_saved=$CFLAGS
11800CFLAGS="$CFLAGS -Wtype-limits"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011802/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011803int main(int argc, char **argv) { return 0; }
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011804_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011805if ac_fn_c_try_link "$LINENO"; then :
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011806 ac_cv_cflags__Wtype_limits=yes
11807else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011808 ac_cv_cflags__Wtype_limits=no
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011809fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011810rm -f core conftest.err conftest.$ac_objext \
11811 conftest$ac_exeext conftest.$ac_ext
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011812CFLAGS=$ac_wine_try_cflags_saved
11813fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011815$as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011816if test $ac_cv_cflags__Wtype_limits = yes; then :
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011817 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
11818fi
Gerald Pfeifereae58292010-01-02 15:13:43 +010011819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
11820$as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
11821if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then :
11822 $as_echo_n "(cached) " >&6
11823else
11824 ac_wine_try_cflags_saved=$CFLAGS
11825CFLAGS="$CFLAGS -Wwrite-strings"
11826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11827/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011828int main(int argc, char **argv) { return 0; }
Gerald Pfeifereae58292010-01-02 15:13:43 +010011829_ACEOF
11830if ac_fn_c_try_link "$LINENO"; then :
11831 ac_cv_cflags__Wwrite_strings=yes
11832else
11833 ac_cv_cflags__Wwrite_strings=no
11834fi
11835rm -f core conftest.err conftest.$ac_objext \
11836 conftest$ac_exeext conftest.$ac_ext
11837CFLAGS=$ac_wine_try_cflags_saved
11838fi
11839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
11840$as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
11841if test $ac_cv_cflags__Wwrite_strings = yes; then :
11842 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
11843fi
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011844
Alexandre Julliard4d52d372003-03-24 19:33:20 +000011845 saved_CFLAGS="$CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000011846 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011848$as_echo_n "checking for broken string.h that generates warnings... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011849if test "${ac_cv_c_string_h_warnings+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011850 $as_echo_n "(cached) " >&6
Mike McCormackc509bc42003-02-25 04:01:58 +000011851else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000011853/* end confdefs.h. */
11854#include <string.h>
11855int
11856main ()
11857{
11858
11859 ;
11860 return 0;
11861}
11862_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011863if ac_fn_c_try_compile "$LINENO"; then :
Mike McCormackc509bc42003-02-25 04:01:58 +000011864 ac_cv_c_string_h_warnings=no
11865else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011866 ac_cv_c_string_h_warnings=yes
Mike McCormackc509bc42003-02-25 04:01:58 +000011867fi
Jeremy White0ebeb532006-06-20 13:18:41 +020011868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000011869fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011871$as_echo "$ac_cv_c_string_h_warnings" >&6; }
Alexandre Julliard4d52d372003-03-24 19:33:20 +000011872 CFLAGS="$saved_CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000011873 if test "$ac_cv_c_string_h_warnings" = "no"
11874 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000011875 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
Mike McCormackc509bc42003-02-25 04:01:58 +000011876 fi
Alexandre Julliard12753c52009-10-02 14:39:49 +020011877
Andrew Nguyen2eda9c72010-05-25 22:20:14 -050011878 if test "x$enable_maintainer_mode" = "xyes"
Alexandre Julliard12753c52009-10-02 14:39:49 +020011879 then
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
11881$as_echo_n "checking whether the compiler supports -Werror... " >&6; }
11882if test "${ac_cv_cflags__Werror+set}" = set; then :
11883 $as_echo_n "(cached) " >&6
11884else
11885 ac_wine_try_cflags_saved=$CFLAGS
11886CFLAGS="$CFLAGS -Werror"
11887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11888/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011889int main(int argc, char **argv) { return 0; }
Alexandre Julliard12753c52009-10-02 14:39:49 +020011890_ACEOF
11891if ac_fn_c_try_link "$LINENO"; then :
11892 ac_cv_cflags__Werror=yes
11893else
11894 ac_cv_cflags__Werror=no
11895fi
11896rm -f core conftest.err conftest.$ac_objext \
11897 conftest$ac_exeext conftest.$ac_ext
11898CFLAGS=$ac_wine_try_cflags_saved
11899fi
11900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
11901$as_echo "$ac_cv_cflags__Werror" >&6; }
11902if test $ac_cv_cflags__Werror = yes; then :
11903 EXTRACFLAGS="$EXTRACFLAGS -Werror"
11904fi
11905 fi
Stefan Dösingerfdac5e52009-09-12 14:08:53 +020011906
11907 saved_CFLAGS="$CFLAGS"
11908 CFLAGS="$CFLAGS -Werror"
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
11910$as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
11911if test "${ac_cv_have_ms_hook_prologue+set}" = set; then :
11912 $as_echo_n "(cached) " >&6
11913else
11914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11915/* end confdefs.h. */
11916int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
11917int
11918main ()
11919{
11920
11921 ;
11922 return 0;
11923}
11924_ACEOF
11925if ac_fn_c_try_compile "$LINENO"; then :
11926 ac_cv_have_ms_hook_prologue="yes"
11927else
11928 ac_cv_have_ms_hook_prologue="no"
11929fi
11930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11931fi
11932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
11933$as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
11934 CFLAGS="$saved_CFLAGS"
11935 if test "$ac_cv_have_ms_hook_prologue" = "yes"
11936 then
11937
11938$as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
11939
11940 else
11941 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
11942
11943 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011944fi
11945
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011946
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020011948$as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011949if test "${ac_cv_c_extern_prefix+set}" = set; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020011950 $as_echo_n "(cached) " >&6
11951else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020011953/* end confdefs.h. */
11954extern int ac_test;
11955int
11956main ()
11957{
11958asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
11959 ;
11960 return 0;
11961}
11962_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011963if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020011964 ac_cv_c_extern_prefix="yes"
11965else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011966 ac_cv_c_extern_prefix="no"
Alexandre Julliard857f1e02009-06-11 16:32:42 +020011967fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011968rm -f core conftest.err conftest.$ac_objext \
11969 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020011970fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020011972$as_echo "$ac_cv_c_extern_prefix" >&6; }
11973
Alexandre Julliard9cebf092009-06-14 11:24:20 +020011974case $host_cpu in
11975 *i[3456789]86*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
Alexandre Julliard9cebf092009-06-14 11:24:20 +020011977$as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011978if test "${ac_cv_c_stdcall_suffix+set}" = set; then :
Alexandre Julliard9cebf092009-06-14 11:24:20 +020011979 $as_echo_n "(cached) " >&6
11980else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard9cebf092009-06-14 11:24:20 +020011982/* end confdefs.h. */
11983#ifndef _MSC_VER
11984#define __stdcall __attribute__((__stdcall__))
11985#endif
11986int __stdcall ac_test(int i) { return i; }
11987int
11988main ()
11989{
11990asm("jmp _ac_test@4"); if (ac_test(1)) return 1
11991 ;
11992 return 0;
11993}
11994_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011995if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard9cebf092009-06-14 11:24:20 +020011996 ac_cv_c_stdcall_suffix="yes"
11997else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011998 ac_cv_c_stdcall_suffix="no"
Alexandre Julliard9cebf092009-06-14 11:24:20 +020011999fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012000rm -f core conftest.err conftest.$ac_objext \
12001 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012002fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012004$as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12005 *) ac_cv_c_stdcall_suffix="no" ;;
12006esac
12007
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012008
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012009if test "$ac_cv_c_extern_prefix" = "yes"
12010then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012011 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012012
12013 asm_name_prefix="_"
12014else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012015 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012016
12017 asm_name_prefix=""
12018fi
12019
12020
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012021if test "$ac_cv_c_stdcall_suffix" = "yes"
12022then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012023 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012024
12025else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012026 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012027
12028fi
12029
12030
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012032$as_echo_n "checking how to define a function in assembly code... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012033if test "${ac_cv_asm_func_def+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012034 $as_echo_n "(cached) " >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012035else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012037/* end confdefs.h. */
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012038
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012039int
12040main ()
12041{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012042asm("\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 +000012043 ;
12044 return 0;
12045}
12046_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012047if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012048 ac_cv_asm_func_def=".def"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012049else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012051/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012052
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012053int
12054main ()
12055{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012056asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012057 ;
12058 return 0;
12059}
12060_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012061if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012062 ac_cv_asm_func_def=".type @function"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012063else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012065/* end confdefs.h. */
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012066
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012067int
12068main ()
12069{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012070asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012071 ;
12072 return 0;
12073}
12074_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012075if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012076 ac_cv_asm_func_def=".type 2"
12077else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012078 ac_cv_asm_func_def="unknown"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012079fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012080rm -f core conftest.err conftest.$ac_objext \
12081 conftest$ac_exeext conftest.$ac_ext
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012082fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012083rm -f core conftest.err conftest.$ac_objext \
12084 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012085fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012086rm -f core conftest.err conftest.$ac_objext \
12087 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012088fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012090$as_echo "$ac_cv_asm_func_def" >&6; }
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012091
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012092
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012093case "$ac_cv_asm_func_def" in
12094 ".def")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012095 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012096
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012097 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012098 ".type @function")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012099 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012100
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012101 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012102 ".type 2")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012103 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012104
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012105 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012106 *)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012107 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012108
12109 asm_func_header="" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012110esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012111
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012113$as_echo_n "checking whether asm() works outside of functions... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012114if test "${ac_cv_c_asm_outside_funcs+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012115 $as_echo_n "(cached) " >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012116else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012118/* end confdefs.h. */
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012119asm(".text\n\t.long 0");
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012120int
12121main ()
12122{
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012123
12124 ;
12125 return 0;
12126}
12127_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012128if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012129 ac_cv_c_asm_outside_funcs="yes"
12130else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012131 ac_cv_c_asm_outside_funcs="no"
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012132fi
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12134fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012136$as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12137
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012139$as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012140if test "${ac_cv_c_dot_previous+set}" = set; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012141 $as_echo_n "(cached) " >&6
12142else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012144/* end confdefs.h. */
12145
12146int
12147main ()
12148{
12149asm(".text\nac_test:\t.long 0\n\t.previous");
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012150 ;
12151 return 0;
12152}
12153_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012154if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012155 ac_cv_c_dot_previous="yes"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012156else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012157 ac_cv_c_dot_previous="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012158fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012159rm -f core conftest.err conftest.$ac_objext \
12160 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012161fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012163$as_echo "$ac_cv_c_dot_previous" >&6; }
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012164
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012166$as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012167if test "${ac_cv_c_cfi_support+set}" = set; then :
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012168 $as_echo_n "(cached) " >&6
12169else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012171/* end confdefs.h. */
12172asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12173int
12174main ()
12175{
12176
12177 ;
12178 return 0;
12179}
12180_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012181if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012182 ac_cv_c_cfi_support="yes"
12183else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012184 ac_cv_c_cfi_support="no"
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012185fi
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12187fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012189$as_echo "$ac_cv_c_cfi_support" >&6; }
12190
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012191asm_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 +020012192asm_func_trailer=""
12193if test "$ac_cv_c_dot_previous" = "yes"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012194then
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012195 asm_func_trailer="\\n\\t.previous"
12196fi
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012197if test "$ac_cv_c_cfi_support" = "yes"
12198then
12199 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12200 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012201
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012202$as_echo "#define __ASM_CFI(str) str" >>confdefs.h
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012203
Alexandre Julliard6c142382010-04-11 12:47:30 +020012204 UNWINDFLAGS=-fasynchronous-unwind-tables
12205
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012206else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012207 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012208
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012209fi
12210
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012211asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12212
12213
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012214if test "$ac_cv_c_asm_outside_funcs" = "yes"
12215then
12216 cat >>confdefs.h <<_ACEOF
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012217#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 +000012218_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012219
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012220else
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012221 cat >>confdefs.h <<_ACEOF
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012222#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 +000012223_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012224
12225fi
12226
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012227$as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012228
12229
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012230$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 +020012231
12232
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012233
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012234LDPATH=""
12235
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012236case $build_os in
12237 cygwin*|mingw32*)
Alexandre Julliardb860c4a2009-09-01 22:36:13 +020012238 TOOLSEXT=".exe"
12239
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020012240 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012241 ;;
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000012242 darwin*|macosx*)
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012243 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012244 *)
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020012245 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012246 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012247esac
12248
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012249case $host_os in
12250 mingw32*)
Alexandre Julliard546839f2003-11-11 00:48:21 +000012251 CRTLIBS="-lmsvcrt"
Steven Edwardsc91ae452004-09-03 18:57:19 +000012252
Alexandre Julliarddc1a9f12008-12-22 17:36:18 +010012253 SOCKETLIBS="-L\$(TOPOBJDIR)/dlls/ws2_32 -lws2_32"
Steven Edwardsc91ae452004-09-03 18:57:19 +000012254
12255 ;;
Alexandre Julliard546839f2003-11-11 00:48:21 +000012256esac
12257
Alexandre Julliard3e6eab32009-08-13 19:54:31 +020012258MAIN_BINARY="wine"
12259
Alexandre Julliardf3831cf2010-05-16 17:01:52 +020012260test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
Alexandre Julliard3e6eab32009-08-13 19:54:31 +020012261
Alexandre Julliardf4a19c82009-03-10 18:22:38 +010012262case $host_cpu in
Alexandre Julliard2cdfd4d2006-02-18 15:03:51 +010012263 *i[3456789]86*)
12264 case $host_os in
Austin English5e185962009-10-28 19:51:17 -050012265 linux*)
Alexandre Julliardf4a19c82009-03-10 18:22:38 +010012266 EXTRA_BINARIES="wine-preloader"
Tijl Coosemans9f5c69c2007-08-24 15:46:36 +020012267 ;;
Alexandre Julliard2cdfd4d2006-02-18 15:03:51 +010012268 esac
Emmanuel Maillard3bc8d2e2004-07-19 20:11:10 +000012269 ;;
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012270esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012271
12272
Alexandre Julliard95251a72009-02-16 12:46:58 +010012273ac_save_CFLAGS="$CFLAGS"
12274CFLAGS="$CFLAGS $BUILTINFLAG"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012275for ac_func in \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012276 _pclose \
12277 _popen \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000012278 _snprintf \
Alexandre Julliardc45bbad2003-04-01 00:12:02 +000012279 _spawnvp \
Bang Jun-youngff96bd62007-10-15 17:09:12 +090012280 _strdup \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012281 _stricmp \
12282 _strnicmp \
Rob Shearmane9f5bce2008-03-03 21:48:18 +000012283 _strtoi64 \
12284 _strtoui64 \
Steven Edwardsbe514b92003-01-14 19:35:03 +000012285 _vsnprintf \
Alexandre Julliardf9e5b0f2006-01-14 17:22:03 +010012286 asctime_r \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012287 chsize \
Alexandre Julliarde533e972006-08-15 12:11:30 +020012288 dlopen \
Alexandre Julliard969f57c2004-09-23 04:48:24 +000012289 epoll_create \
Hans Leidekkerc3de6ef2004-10-19 23:53:26 +000012290 ffs \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000012291 finite \
Alexandre Julliard7d5e5652009-06-01 12:51:54 +020012292 fnmatch \
Hans Leidekkerbed38422004-10-14 03:08:57 +000012293 fork \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000012294 fpclass \
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000012295 fstatfs \
12296 fstatvfs \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012297 ftruncate \
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000012298 futimes \
Robert Lunnonc0cb4d32005-05-07 14:53:38 +000012299 futimesat \
Alexandre Julliarda9f214c2006-11-13 15:42:48 +010012300 getdirentries \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000012301 getopt_long \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012302 getpagesize \
Alexandre Julliard142dab82002-07-01 18:17:30 +000012303 getpwuid \
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000012304 gettid \
Alexandre Julliard8d7b8e52003-03-23 20:11:45 +000012305 gettimeofday \
Steven Edwardse7c3ab12004-10-04 20:45:49 +000012306 getuid \
Alexandre Julliardc8278922006-08-04 22:11:00 +020012307 kqueue \
Alexandre Julliard27bb3112000-11-29 17:48:06 +000012308 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012309 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +000012310 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012311 pclose \
Alexandre Julliard6f68b772009-07-01 12:13:34 +020012312 pipe2 \
Alexandre Julliard10892602006-08-15 11:41:59 +020012313 poll \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012314 popen \
Albert Lee01b972d2009-11-20 18:35:26 -050012315 port_create \
Alexandre Julliard9603ee02006-04-06 11:57:37 +020012316 prctl \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012317 pread \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +000012318 pwrite \
Rob Shearman87175c62008-10-03 12:55:21 +010012319 readdir \
Alexandre Julliarde2930742004-01-08 05:07:05 +000012320 readlink \
Juan Lang474b2e42009-09-29 09:17:30 -070012321 sched_setaffinity \
Jeremy White08c0f692004-10-09 02:26:29 +000012322 sched_yield \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012323 select \
Gerald Pfeifer39f67272008-01-20 21:23:08 +010012324 setproctitle \
Paul Millardf10b7d2006-07-16 15:06:28 +010012325 setrlimit \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012326 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012327 sigaltstack \
Paul Millar10a6c562004-12-07 17:19:54 +000012328 sigprocmask \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000012329 snprintf \
Pavel Roskin7add08a2003-09-24 18:54:40 +000012330 spawnvp \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012331 statfs \
Alexandre Julliard13af4892004-03-05 21:03:46 +000012332 statvfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000012333 strcasecmp \
Bang Jun-youngff96bd62007-10-15 17:09:12 +090012334 strdup \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012335 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000012336 strncasecmp \
Louis Lenders6c04a182006-12-17 17:56:50 +000012337 strtold \
Rob Shearmane9f5bce2008-03-03 21:48:18 +000012338 strtoll \
12339 strtoull \
Alexandre Julliard0fbd5562008-12-22 10:47:16 +010012340 symlink \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012341 tcgetattr \
Tijl Coosemans0c4f1522007-08-23 14:12:37 +020012342 thr_kill2 \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012343 timegm \
12344 usleep \
Steven Edwardsbe514b92003-01-14 19:35:03 +000012345 vsnprintf \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012346 wait4 \
12347 waitpid \
12348
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012349do :
12350 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12351ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12352eval as_val=\$$as_ac_var
12353 if test "x$as_val" = x""yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012354 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010012355#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012356_ACEOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000012357
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012358fi
12359done
12360
Alexandre Julliard95251a72009-02-16 12:46:58 +010012361CFLAGS="$ac_save_CFLAGS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012362
Alexandre Julliarde533e972006-08-15 12:11:30 +020012363if test "$ac_cv_func_dlopen" = no
12364then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012366$as_echo_n "checking for dlopen in -ldl... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012367if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012368 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012369else
12370 ac_check_lib_save_LIBS=$LIBS
12371LIBS="-ldl $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012373/* end confdefs.h. */
12374
12375/* Override any GCC internal prototype to avoid an error.
12376 Use char because int might match the return type of a GCC
12377 builtin and then its argument prototype would still apply. */
12378#ifdef __cplusplus
12379extern "C"
12380#endif
12381char dlopen ();
12382int
12383main ()
12384{
12385return dlopen ();
12386 ;
12387 return 0;
12388}
12389_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012390if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarde533e972006-08-15 12:11:30 +020012391 ac_cv_lib_dl_dlopen=yes
12392else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012393 ac_cv_lib_dl_dlopen=no
Alexandre Julliarde533e972006-08-15 12:11:30 +020012394fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012395rm -f core conftest.err conftest.$ac_objext \
12396 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012397LIBS=$ac_check_lib_save_LIBS
12398fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012400$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012401if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12402 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
Alexandre Julliarde533e972006-08-15 12:11:30 +020012403 LIBDL="-ldl"
12404
12405fi
12406
12407fi
12408ac_wine_check_funcs_save_LIBS="$LIBS"
12409LIBS="$LIBS $LIBDL"
Alexandre Julliarde533e972006-08-15 12:11:30 +020012410for ac_func in dladdr
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012411do :
12412 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12413if test "x$ac_cv_func_dladdr" = x""yes; then :
Alexandre Julliarde533e972006-08-15 12:11:30 +020012414 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012415#define HAVE_DLADDR 1
Alexandre Julliarde533e972006-08-15 12:11:30 +020012416_ACEOF
12417
12418fi
12419done
12420
12421LIBS="$ac_wine_check_funcs_save_LIBS"
12422
Alexandre Julliard10892602006-08-15 11:41:59 +020012423if test "$ac_cv_func_poll" = no
12424then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012426$as_echo_n "checking for poll in -lpoll... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012427if test "${ac_cv_lib_poll_poll+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012428 $as_echo_n "(cached) " >&6
Alexandre Julliard10892602006-08-15 11:41:59 +020012429else
12430 ac_check_lib_save_LIBS=$LIBS
12431LIBS="-lpoll $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard10892602006-08-15 11:41:59 +020012433/* end confdefs.h. */
12434
12435/* Override any GCC internal prototype to avoid an error.
12436 Use char because int might match the return type of a GCC
12437 builtin and then its argument prototype would still apply. */
12438#ifdef __cplusplus
12439extern "C"
12440#endif
12441char poll ();
12442int
12443main ()
12444{
12445return poll ();
12446 ;
12447 return 0;
12448}
12449_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012450if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard10892602006-08-15 11:41:59 +020012451 ac_cv_lib_poll_poll=yes
12452else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012453 ac_cv_lib_poll_poll=no
Alexandre Julliard10892602006-08-15 11:41:59 +020012454fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012455rm -f core conftest.err conftest.$ac_objext \
12456 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard10892602006-08-15 11:41:59 +020012457LIBS=$ac_check_lib_save_LIBS
12458fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012460$as_echo "$ac_cv_lib_poll_poll" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012461if test "x$ac_cv_lib_poll_poll" = x""yes; then :
12462 $as_echo "#define HAVE_POLL 1" >>confdefs.h
Alexandre Julliard10892602006-08-15 11:41:59 +020012463 LIBPOLL="-lpoll"
12464
12465fi
12466
12467fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012468
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012470$as_echo_n "checking for library containing gethostbyname... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012471if test "${ac_cv_search_gethostbyname+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012472 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012473else
Alexandre Julliard28710412007-04-23 16:31:58 +020012474 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012476/* end confdefs.h. */
12477
12478/* Override any GCC internal prototype to avoid an error.
12479 Use char because int might match the return type of a GCC
12480 builtin and then its argument prototype would still apply. */
12481#ifdef __cplusplus
12482extern "C"
12483#endif
12484char gethostbyname ();
12485int
12486main ()
12487{
12488return gethostbyname ();
12489 ;
12490 return 0;
12491}
12492_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020012493for ac_lib in '' nsl; do
12494 if test -z "$ac_lib"; then
12495 ac_res="none required"
12496 else
12497 ac_res=-l$ac_lib
12498 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12499 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012500 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012501 ac_cv_search_gethostbyname=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020012502fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012503rm -f core conftest.err conftest.$ac_objext \
12504 conftest$ac_exeext
12505 if test "${ac_cv_search_gethostbyname+set}" = set; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012506 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020012507fi
Alexandre Julliard28710412007-04-23 16:31:58 +020012508done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012509if test "${ac_cv_search_gethostbyname+set}" = set; then :
12510
Alexandre Julliard28710412007-04-23 16:31:58 +020012511else
12512 ac_cv_search_gethostbyname=no
12513fi
12514rm conftest.$ac_ext
12515LIBS=$ac_func_search_save_LIBS
12516fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012518$as_echo "$ac_cv_search_gethostbyname" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020012519ac_res=$ac_cv_search_gethostbyname
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012520if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012521 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020012522
12523fi
12524
Alexandre Julliarde533e972006-08-15 12:11:30 +020012525
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012527$as_echo_n "checking for library containing connect... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012528if test "${ac_cv_search_connect+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012529 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012530else
Alexandre Julliard28710412007-04-23 16:31:58 +020012531 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012533/* end confdefs.h. */
12534
12535/* Override any GCC internal prototype to avoid an error.
12536 Use char because int might match the return type of a GCC
12537 builtin and then its argument prototype would still apply. */
12538#ifdef __cplusplus
12539extern "C"
12540#endif
12541char connect ();
12542int
12543main ()
12544{
12545return connect ();
12546 ;
12547 return 0;
12548}
12549_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020012550for ac_lib in '' socket; do
12551 if test -z "$ac_lib"; then
12552 ac_res="none required"
12553 else
12554 ac_res=-l$ac_lib
12555 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12556 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012557 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012558 ac_cv_search_connect=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020012559fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012560rm -f core conftest.err conftest.$ac_objext \
12561 conftest$ac_exeext
12562 if test "${ac_cv_search_connect+set}" = set; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012563 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020012564fi
Alexandre Julliard28710412007-04-23 16:31:58 +020012565done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012566if test "${ac_cv_search_connect+set}" = set; then :
12567
Alexandre Julliard28710412007-04-23 16:31:58 +020012568else
12569 ac_cv_search_connect=no
12570fi
12571rm conftest.$ac_ext
12572LIBS=$ac_func_search_save_LIBS
12573fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012575$as_echo "$ac_cv_search_connect" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020012576ac_res=$ac_cv_search_connect
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012577if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012578 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020012579
12580fi
12581
Alexandre Julliarde533e972006-08-15 12:11:30 +020012582
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012584$as_echo_n "checking for library containing inet_aton... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012585if test "${ac_cv_search_inet_aton+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012586 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012587else
Alexandre Julliard28710412007-04-23 16:31:58 +020012588 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012590/* end confdefs.h. */
12591
12592/* Override any GCC internal prototype to avoid an error.
12593 Use char because int might match the return type of a GCC
12594 builtin and then its argument prototype would still apply. */
12595#ifdef __cplusplus
12596extern "C"
12597#endif
12598char inet_aton ();
12599int
12600main ()
12601{
12602return inet_aton ();
12603 ;
12604 return 0;
12605}
12606_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020012607for ac_lib in '' resolv; do
12608 if test -z "$ac_lib"; then
12609 ac_res="none required"
12610 else
12611 ac_res=-l$ac_lib
12612 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12613 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012614 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012615 ac_cv_search_inet_aton=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020012616fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012617rm -f core conftest.err conftest.$ac_objext \
12618 conftest$ac_exeext
12619 if test "${ac_cv_search_inet_aton+set}" = set; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012620 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020012621fi
Alexandre Julliard28710412007-04-23 16:31:58 +020012622done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012623if test "${ac_cv_search_inet_aton+set}" = set; then :
12624
Alexandre Julliard28710412007-04-23 16:31:58 +020012625else
12626 ac_cv_search_inet_aton=no
12627fi
12628rm conftest.$ac_ext
12629LIBS=$ac_func_search_save_LIBS
12630fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012632$as_echo "$ac_cv_search_inet_aton" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020012633ac_res=$ac_cv_search_inet_aton
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012634if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012635 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020012636
12637fi
12638
Alexandre Julliarde533e972006-08-15 12:11:30 +020012639
Ben Taylor41c59962007-04-23 13:41:42 +000012640for ac_func in \
12641 getaddrinfo \
12642 getnameinfo \
12643 getnetbyname \
12644 getprotobyname \
12645 getprotobynumber \
12646 getservbyport \
12647 inet_network \
Austin English06566912009-03-28 00:13:09 -050012648 inet_ntop \
12649 inet_pton \
Ben Taylor41c59962007-04-23 13:41:42 +000012650 sendmsg \
Alexandre Julliard98bec052009-03-26 11:07:28 +010012651 socketpair \
Ben Taylor41c59962007-04-23 13:41:42 +000012652
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012653do :
12654 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12655ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12656eval as_val=\$$as_ac_var
12657 if test "x$as_val" = x""yes; then :
Ben Taylor41c59962007-04-23 13:41:42 +000012658 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010012659#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Ben Taylor41c59962007-04-23 13:41:42 +000012660_ACEOF
12661
12662fi
12663done
12664
12665
Francois Gougetbcba2702008-07-10 12:36:06 +020012666LDAPLIBS=""
12667
12668if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12669then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012670 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
12671"
12672if test "x$ac_cv_type_LDAPSortKey" = x""yes; then :
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012674$as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012675if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012676 $as_echo_n "(cached) " >&6
Francois Gougetbcba2702008-07-10 12:36:06 +020012677else
12678 ac_check_lib_save_LIBS=$LIBS
12679LIBS="-lldap_r $LIBPTHREAD $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020012681/* end confdefs.h. */
12682
12683/* Override any GCC internal prototype to avoid an error.
12684 Use char because int might match the return type of a GCC
12685 builtin and then its argument prototype would still apply. */
12686#ifdef __cplusplus
12687extern "C"
12688#endif
12689char ldap_initialize ();
12690int
12691main ()
12692{
12693return ldap_initialize ();
12694 ;
12695 return 0;
12696}
12697_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012698if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020012699 ac_cv_lib_ldap_r_ldap_initialize=yes
12700else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012701 ac_cv_lib_ldap_r_ldap_initialize=no
Francois Gougetbcba2702008-07-10 12:36:06 +020012702fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012703rm -f core conftest.err conftest.$ac_objext \
12704 conftest$ac_exeext conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020012705LIBS=$ac_check_lib_save_LIBS
12706fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012708$as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012709if test "x$ac_cv_lib_ldap_r_ldap_initialize" = x""yes; then :
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012711$as_echo_n "checking for ber_init in -llber... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012712if test "${ac_cv_lib_lber_ber_init+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012713 $as_echo_n "(cached) " >&6
Francois Gougetbcba2702008-07-10 12:36:06 +020012714else
12715 ac_check_lib_save_LIBS=$LIBS
12716LIBS="-llber $LIBPTHREAD $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020012718/* end confdefs.h. */
12719
12720/* Override any GCC internal prototype to avoid an error.
12721 Use char because int might match the return type of a GCC
12722 builtin and then its argument prototype would still apply. */
12723#ifdef __cplusplus
12724extern "C"
12725#endif
12726char ber_init ();
12727int
12728main ()
12729{
12730return ber_init ();
12731 ;
12732 return 0;
12733}
12734_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012735if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020012736 ac_cv_lib_lber_ber_init=yes
12737else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012738 ac_cv_lib_lber_ber_init=no
Francois Gougetbcba2702008-07-10 12:36:06 +020012739fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012740rm -f core conftest.err conftest.$ac_objext \
12741 conftest$ac_exeext conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020012742LIBS=$ac_check_lib_save_LIBS
12743fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012745$as_echo "$ac_cv_lib_lber_ber_init" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012746if test "x$ac_cv_lib_lber_ber_init" = x""yes; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020012747
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012748$as_echo "#define HAVE_LDAP 1" >>confdefs.h
Francois Gougetbcba2702008-07-10 12:36:06 +020012749
12750 LDAPLIBS="-lldap_r -llber"
12751fi
12752
12753fi
12754
12755fi
12756
12757 ac_wine_check_funcs_save_LIBS="$LIBS"
12758LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
Francois Gougetbcba2702008-07-10 12:36:06 +020012759for ac_func in \
12760 ldap_count_references \
12761 ldap_first_reference \
12762 ldap_next_reference \
12763 ldap_parse_reference \
12764 ldap_parse_sort_control \
12765 ldap_parse_sortresponse_control \
12766 ldap_parse_vlv_control \
12767 ldap_parse_vlvresponse_control
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012768do :
12769 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12770ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12771eval as_val=\$$as_ac_var
12772 if test "x$as_val" = x""yes; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020012773 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010012774#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Francois Gougetbcba2702008-07-10 12:36:06 +020012775_ACEOF
12776
12777fi
12778done
12779
12780LIBS="$ac_wine_check_funcs_save_LIBS"
12781fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012782if test "x$LDAPLIBS" = "x"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020012783 case "x$with_ldap" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010012784 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 +020012785 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012786 *) as_fn_error "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
12787This is an error since --with-ldap was requested." "$LINENO" 5 ;;
Francois Gougetbcba2702008-07-10 12:36:06 +020012788esac
12789fi
12790
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
Alexandre Julliard921e6622008-12-22 10:39:11 +010012792$as_echo_n "checking whether mkdir takes only one argument... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012793if test "${wine_cv_one_arg_mkdir+set}" = set; then :
Alexandre Julliard921e6622008-12-22 10:39:11 +010012794 $as_echo_n "(cached) " >&6
12795else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard921e6622008-12-22 10:39:11 +010012797/* end confdefs.h. */
12798#include <sys/stat.h>
12799int
12800main ()
12801{
12802mkdir("foo");
12803 ;
12804 return 0;
12805}
12806_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012807if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard921e6622008-12-22 10:39:11 +010012808 wine_cv_one_arg_mkdir=yes
12809else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012810 wine_cv_one_arg_mkdir=no
Alexandre Julliard921e6622008-12-22 10:39:11 +010012811fi
Alexandre Julliard921e6622008-12-22 10:39:11 +010012812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12813fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
Alexandre Julliard921e6622008-12-22 10:39:11 +010012815$as_echo "$wine_cv_one_arg_mkdir" >&6; }
12816if test "$wine_cv_one_arg_mkdir" = "yes"
12817then
12818
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012819$as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
Alexandre Julliard921e6622008-12-22 10:39:11 +010012820
12821fi
12822
Ben Taylor41c59962007-04-23 13:41:42 +000012823
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012825$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012826if test "${ac_cv_c_const+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012827 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012828else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012830/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012831
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012832int
12833main ()
12834{
12835/* FIXME: Include the comments suggested by Paul. */
12836#ifndef __cplusplus
12837 /* Ultrix mips cc rejects this. */
12838 typedef int charset[2];
Phil Krylovf0ca5862006-11-05 23:03:46 +030012839 const charset cs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012840 /* SunOS 4.1.1 cc rejects this. */
Phil Krylovf0ca5862006-11-05 23:03:46 +030012841 char const *const *pcpcc;
12842 char **ppc;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012843 /* NEC SVR4.0.2 mips cc rejects this. */
12844 struct point {int x, y;};
12845 static struct point const zero = {0,0};
12846 /* AIX XL C 1.02.0.0 rejects this.
12847 It does not let you subtract one const X* pointer from another in
12848 an arm of an if-expression whose if-part is not a constant
12849 expression */
12850 const char *g = "string";
Phil Krylovf0ca5862006-11-05 23:03:46 +030012851 pcpcc = &g + (g ? g-g : 0);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012852 /* HPUX 7.0 cc rejects these. */
Phil Krylovf0ca5862006-11-05 23:03:46 +030012853 ++pcpcc;
12854 ppc = (char**) pcpcc;
12855 pcpcc = (char const *const *) ppc;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012856 { /* SCO 3.2v4 cc rejects this. */
12857 char *t;
12858 char const *s = 0 ? (char *) 0 : (char const *) 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012859
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012860 *t++ = 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012861 if (s) return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012862 }
12863 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12864 int x[] = {25, 17};
12865 const int *foo = &x[0];
12866 ++foo;
12867 }
12868 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12869 typedef const int *iptr;
12870 iptr p = 0;
12871 ++p;
12872 }
12873 { /* AIX XL C 1.02.0.0 rejects this saying
12874 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12875 struct s { int j; const int *ap[3]; };
12876 struct s *b; b->j = 5;
12877 }
12878 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12879 const int foo = 10;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012880 if (!foo) return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012881 }
Phil Krylovf0ca5862006-11-05 23:03:46 +030012882 return !cs[0] && !zero.x;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012883#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012884
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012885 ;
12886 return 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012887}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012888_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012889if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012890 ac_cv_c_const=yes
12891else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012892 ac_cv_c_const=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012893fi
Jeremy White0ebeb532006-06-20 13:18:41 +020012894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012895fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012897$as_echo "$ac_cv_c_const" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012898if test $ac_cv_c_const = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012899
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012900$as_echo "#define const /**/" >>confdefs.h
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012901
12902fi
12903
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012905$as_echo_n "checking for inline... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012906if test "${ac_cv_c_inline+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012907 $as_echo_n "(cached) " >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012908else
12909 ac_cv_c_inline=no
12910for ac_kw in inline __inline__ __inline; do
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012912/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012913#ifndef __cplusplus
Alexandre Julliard11af04e2002-10-10 03:48:04 +000012914typedef int foo_t;
12915static $ac_kw foo_t static_foo () {return 0; }
12916$ac_kw foo_t foo () {return 0; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012917#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012918
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012919_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012920if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012921 ac_cv_c_inline=$ac_kw
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012922fi
Jeremy White0ebeb532006-06-20 13:18:41 +020012923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012924 test "$ac_cv_c_inline" != no && break
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012925done
12926
12927fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012929$as_echo "$ac_cv_c_inline" >&6; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000012930
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012931case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012932 inline | yes) ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000012933 *)
12934 case $ac_cv_c_inline in
12935 no) ac_val=;;
12936 *) ac_val=$ac_cv_c_inline;;
12937 esac
12938 cat >>confdefs.h <<_ACEOF
12939#ifndef __cplusplus
12940#define inline $ac_val
12941#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012942_ACEOF
Alexandre Julliard875927f2004-01-02 01:55:29 +000012943 ;;
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012944esac
12945
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012946ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
12947if test "x$ac_cv_type_mode_t" = x""yes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012948
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012949cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012950#define HAVE_MODE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012951_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012952
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012953
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012954fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012955ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12956if test "x$ac_cv_type_off_t" = x""yes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012957
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012958cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012959#define HAVE_OFF_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012960_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012961
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012962
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012963fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012964ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12965if test "x$ac_cv_type_pid_t" = x""yes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012966
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012967cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012968#define HAVE_PID_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012969_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012970
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012971
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012972fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012973ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12974if test "x$ac_cv_type_size_t" = x""yes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012975
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012976cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012977#define HAVE_SIZE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012978_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012979
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012980
12981fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012982ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12983if test "x$ac_cv_type_ssize_t" = x""yes; then :
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012984
12985cat >>confdefs.h <<_ACEOF
12986#define HAVE_SSIZE_T 1
12987_ACEOF
12988
12989
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012990fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012991ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12992if test "x$ac_cv_type_long_long" = x""yes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012993
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012994cat >>confdefs.h <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000012995#define HAVE_LONG_LONG 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012996_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012997
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012998
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000012999fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013000ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13001if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013002
13003cat >>confdefs.h <<_ACEOF
13004#define HAVE_FSBLKCNT_T 1
13005_ACEOF
13006
13007
13008fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013009ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13010if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013011
13012cat >>confdefs.h <<_ACEOF
13013#define HAVE_FSFILCNT_T 1
13014_ACEOF
13015
13016
13017fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013018
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013019ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
Alexandre Julliardabf50482008-10-31 12:56:53 +010013020#include <signal.h>
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013021"
13022if test "x$ac_cv_type_sigset_t" = x""yes; then :
Paul Millar10a6c562004-12-07 17:19:54 +000013023
13024cat >>confdefs.h <<_ACEOF
13025#define HAVE_SIGSET_T 1
13026_ACEOF
13027
13028
13029fi
13030
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013031ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13032"
13033if test "x$ac_cv_type_request_sense" = x""yes; then :
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000013034
13035cat >>confdefs.h <<_ACEOF
13036#define HAVE_REQUEST_SENSE 1
13037_ACEOF
13038
13039
13040fi
13041
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013042
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013043ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
Austin English68f2db22009-01-29 08:28:37 -060013044#ifdef HAVE_SYS_SOCKET_H
13045#include <sys/socket.h>
13046#endif
13047#ifdef HAVE_SYS_SOCKETVAR_H
13048#include <sys/socketvar.h>
13049#endif
13050#ifdef HAVE_NET_ROUTE_H
13051#include <net/route.h>
13052#endif
13053#ifdef HAVE_NETINET_IN_H
13054#include <netinet/in.h>
13055#endif
13056#ifdef HAVE_NETINET_IN_SYSTM_H
13057#include <netinet/in_systm.h>
13058#endif
13059#ifdef HAVE_NETINET_IP_H
13060#include <netinet/ip.h>
13061#endif
13062#ifdef HAVE_NETINET_IN_PCB_H
13063#include <netinet/in_pcb.h>
13064#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013065"
13066if test "x$ac_cv_type_struct_xinpgen" = x""yes; then :
Austin English68f2db22009-01-29 08:28:37 -060013067
13068cat >>confdefs.h <<_ACEOF
13069#define HAVE_STRUCT_XINPGEN 1
13070_ACEOF
13071
13072
13073fi
13074
13075
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013076ac_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 +000013077#include <linux/input.h>
13078#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013079"
13080if test "x$ac_cv_member_struct_ff_effect_direction" = x""yes; then :
Daniel Remenake491e8f2005-07-29 14:18:58 +000013081
13082cat >>confdefs.h <<_ACEOF
13083#define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13084_ACEOF
13085
13086
13087fi
13088
13089
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013091$as_echo_n "checking for sigaddset... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013092if test "${wine_cv_have_sigaddset+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013093 $as_echo_n "(cached) " >&6
Paul Millar10a6c562004-12-07 17:19:54 +000013094else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Paul Millar10a6c562004-12-07 17:19:54 +000013096/* end confdefs.h. */
13097#include <signal.h>
13098int
13099main ()
13100{
13101sigset_t set; sigaddset(&set,SIGTERM);
13102 ;
13103 return 0;
13104}
13105_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013106if ac_fn_c_try_link "$LINENO"; then :
Paul Millar10a6c562004-12-07 17:19:54 +000013107 wine_cv_have_sigaddset=yes
13108else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013109 wine_cv_have_sigaddset=no
Paul Millar10a6c562004-12-07 17:19:54 +000013110fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013111rm -f core conftest.err conftest.$ac_objext \
13112 conftest$ac_exeext conftest.$ac_ext
Paul Millar10a6c562004-12-07 17:19:54 +000013113fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013115$as_echo "$wine_cv_have_sigaddset" >&6; }
Paul Millar10a6c562004-12-07 17:19:54 +000013116if test "$wine_cv_have_sigaddset" = "yes"
13117then
13118
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013119$as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
Paul Millar10a6c562004-12-07 17:19:54 +000013120
13121fi
13122
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013123
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013124{ $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 +010013125$as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013126if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013127 $as_echo_n "(cached) " >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000013128else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013130/* end confdefs.h. */
Rein Klazesff7a61f2000-09-24 19:41:57 +000013131#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013132int
13133main ()
13134{
Rein Klazesff7a61f2000-09-24 19:41:57 +000013135
Ken Thomases20d9bad2007-10-19 16:18:51 -050013136 char *name=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013137 struct hostent he;
13138 struct hostent *result;
Ken Thomases20d9bad2007-10-19 16:18:51 -050013139 char *buf=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013140 int bufsize=0;
13141 int res,errnr;
Ken Thomases20d9bad2007-10-19 16:18:51 -050013142 char *addr=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013143 int addrlen=0;
13144 int addrtype=0;
13145 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13146 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013147
13148 ;
13149 return 0;
13150}
13151_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013152if ac_fn_c_try_link "$LINENO"; then :
Rein Klazesff7a61f2000-09-24 19:41:57 +000013153 wine_cv_linux_gethostbyname_r_6=yes
13154else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013155 wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +000013156
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013157fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013158rm -f core conftest.err conftest.$ac_objext \
13159 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013160
13161fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013163$as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
Rein Klazesff7a61f2000-09-24 19:41:57 +000013164 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13165 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013166
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013167$as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
Rein Klazesff7a61f2000-09-24 19:41:57 +000013168
13169 fi
13170
Marcus Meissner028e9a11999-08-04 15:07:56 +000013171if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013172then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013173 { $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 +010013174$as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013175if test "${wine_cv_linux_joystick_22_api+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013176 $as_echo_n "(cached) " >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013177else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013179/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013180
Marcus Meissner028e9a11999-08-04 15:07:56 +000013181 #include <sys/ioctl.h>
Marcus Meissner7c434992007-04-12 12:12:05 +020013182 #include <sys/types.h>
Marcus Meissner028e9a11999-08-04 15:07:56 +000013183 #include <linux/joystick.h>
13184
13185 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +000013186 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13187 #error "no 2.2 header"
13188 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013189
13190int
13191main ()
13192{
Marcus Meissner028e9a11999-08-04 15:07:56 +000013193/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013194 ;
13195 return 0;
13196}
13197_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013198if ac_fn_c_try_compile "$LINENO"; then :
Marcus Meissner028e9a11999-08-04 15:07:56 +000013199 wine_cv_linux_joystick_22_api=yes
13200else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013201 wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +000013202fi
Jeremy White0ebeb532006-06-20 13:18:41 +020013203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +000013204
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013205fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013207$as_echo "$wine_cv_linux_joystick_22_api" >&6; }
Rein Klazes87d224a2000-04-24 17:33:49 +000013208 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +000013209 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013210
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013211$as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
Marcus Meissner028e9a11999-08-04 15:07:56 +000013212
13213 fi
13214fi
13215
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013216
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013217ac_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 +000013218#ifdef HAVE_SYS_PARAM_H
13219# include <sys/param.h>
13220#endif
Robert Millan55b74482006-02-06 21:53:27 +010013221#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013222# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013223#endif
13224#ifdef HAVE_SYS_VFS_H
13225# include <sys/vfs.h>
13226#endif
13227#ifdef HAVE_SYS_STATFS_H
13228# include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013229#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013230"
13231if test "x$ac_cv_member_struct_statfs_f_bfree" = x""yes; then :
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013232
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013233cat >>confdefs.h <<_ACEOF
13234#define HAVE_STRUCT_STATFS_F_BFREE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013235_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013236
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013237
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013238fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013239ac_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 +000013240#ifdef HAVE_SYS_PARAM_H
13241# include <sys/param.h>
13242#endif
Robert Millan55b74482006-02-06 21:53:27 +010013243#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013244# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013245#endif
13246#ifdef HAVE_SYS_VFS_H
13247# include <sys/vfs.h>
13248#endif
13249#ifdef HAVE_SYS_STATFS_H
13250# include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013251#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013252"
13253if test "x$ac_cv_member_struct_statfs_f_bavail" = x""yes; then :
Patrik Stridvall09da9662001-07-08 22:30:50 +000013254
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013255cat >>confdefs.h <<_ACEOF
13256#define HAVE_STRUCT_STATFS_F_BAVAIL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013257_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000013258
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013259
Patrik Stridvall09da9662001-07-08 22:30:50 +000013260fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013261ac_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 +000013262#ifdef HAVE_SYS_PARAM_H
13263# include <sys/param.h>
13264#endif
Robert Millan55b74482006-02-06 21:53:27 +010013265#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013266# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013267#endif
13268#ifdef HAVE_SYS_VFS_H
13269# include <sys/vfs.h>
13270#endif
13271#ifdef HAVE_SYS_STATFS_H
13272# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013273#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013274"
13275if test "x$ac_cv_member_struct_statfs_f_frsize" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013276
13277cat >>confdefs.h <<_ACEOF
13278#define HAVE_STRUCT_STATFS_F_FRSIZE 1
13279_ACEOF
13280
13281
13282fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013283ac_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 +000013284#ifdef HAVE_SYS_PARAM_H
13285# include <sys/param.h>
13286#endif
Robert Millan55b74482006-02-06 21:53:27 +010013287#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013288# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013289#endif
13290#ifdef HAVE_SYS_VFS_H
13291# include <sys/vfs.h>
13292#endif
13293#ifdef HAVE_SYS_STATFS_H
13294# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013295#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013296"
13297if test "x$ac_cv_member_struct_statfs_f_ffree" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013298
13299cat >>confdefs.h <<_ACEOF
13300#define HAVE_STRUCT_STATFS_F_FFREE 1
13301_ACEOF
13302
13303
13304fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013305ac_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 +000013306#ifdef HAVE_SYS_PARAM_H
13307# include <sys/param.h>
13308#endif
Robert Millan55b74482006-02-06 21:53:27 +010013309#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013310# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013311#endif
13312#ifdef HAVE_SYS_VFS_H
13313# include <sys/vfs.h>
13314#endif
13315#ifdef HAVE_SYS_STATFS_H
13316# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013317#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013318"
13319if test "x$ac_cv_member_struct_statfs_f_favail" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013320
13321cat >>confdefs.h <<_ACEOF
13322#define HAVE_STRUCT_STATFS_F_FAVAIL 1
13323_ACEOF
13324
13325
13326fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013327ac_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 +000013328#ifdef HAVE_SYS_PARAM_H
13329# include <sys/param.h>
13330#endif
Robert Millan55b74482006-02-06 21:53:27 +010013331#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardb859a682004-03-07 03:16:43 +000013332# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013333#endif
13334#ifdef HAVE_SYS_VFS_H
13335# include <sys/vfs.h>
13336#endif
13337#ifdef HAVE_SYS_STATFS_H
13338# include <sys/statfs.h>
Alexandre Julliardb859a682004-03-07 03:16:43 +000013339#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013340"
13341if test "x$ac_cv_member_struct_statfs_f_namelen" = x""yes; then :
Alexandre Julliardb859a682004-03-07 03:16:43 +000013342
13343cat >>confdefs.h <<_ACEOF
13344#define HAVE_STRUCT_STATFS_F_NAMELEN 1
13345_ACEOF
13346
13347
13348fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000013349
13350
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013351ac_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 +000013352#include <sys/statvfs.h>
13353#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013354"
13355if test "x$ac_cv_member_struct_statvfs_f_blocks" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013356
13357cat >>confdefs.h <<_ACEOF
13358#define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13359_ACEOF
13360
13361
13362fi
Patrik Stridvall09da9662001-07-08 22:30:50 +000013363
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013364
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013365ac_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 +000013366#ifdef HAVE_SYS_SOCKET_H
13367# include <sys/socket.h>
13368#endif
13369#ifdef HAVE_SYS_UN_H
13370# include <sys/un.h>
13371#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013372"
13373if test "x$ac_cv_member_struct_msghdr_msg_accrights" = x""yes; then :
Juergen Lock2d33ab92000-02-13 16:03:29 +000013374
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013375cat >>confdefs.h <<_ACEOF
13376#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013377_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000013378
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013379
13380fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013381ac_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 +000013382#ifdef HAVE_SYS_SOCKET_H
13383# include <sys/socket.h>
13384#endif
13385#ifdef HAVE_SYS_UN_H
13386# include <sys/un.h>
13387#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013388"
13389if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013390
13391cat >>confdefs.h <<_ACEOF
13392#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13393_ACEOF
13394
13395
13396fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013397ac_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 +000013398#ifdef HAVE_SYS_SOCKET_H
13399# include <sys/socket.h>
13400#endif
13401#ifdef HAVE_SYS_UN_H
13402# include <sys/un.h>
13403#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013404"
13405if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = x""yes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013406
13407cat >>confdefs.h <<_ACEOF
13408#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13409_ACEOF
13410
13411
Juergen Lock2d33ab92000-02-13 16:03:29 +000013412fi
13413
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013414
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013415ac_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 +000013416#ifdef HAVE_SCSI_SG_H
13417#include <scsi/sg.h>
13418#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013419"
13420if test "x$ac_cv_member_scsireq_t_cmd" = x""yes; then :
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000013421
13422cat >>confdefs.h <<_ACEOF
13423#define HAVE_SCSIREQ_T_CMD 1
13424_ACEOF
13425
13426
13427fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013428ac_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 +000013429#ifdef HAVE_SCSI_SG_H
13430#include <scsi/sg.h>
13431#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013432"
13433if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = x""yes; then :
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000013434
13435cat >>confdefs.h <<_ACEOF
13436#define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13437_ACEOF
13438
13439
13440fi
13441
13442
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013443ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13444"
13445if test "x$ac_cv_member_siginfo_t_si_fd" = x""yes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013446
13447cat >>confdefs.h <<_ACEOF
13448#define HAVE_SIGINFO_T_SI_FD 1
13449_ACEOF
13450
13451
13452fi
13453
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013454
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013455ac_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 +010013456#ifdef HAVE_SYS_MTIO_H
13457#include <sys/mtio.h>
13458#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013459"
13460if test "x$ac_cv_member_struct_mtget_mt_blksiz" = x""yes; then :
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010013461
13462cat >>confdefs.h <<_ACEOF
13463#define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13464_ACEOF
13465
13466
13467fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013468ac_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 +010013469#ifdef HAVE_SYS_MTIO_H
13470#include <sys/mtio.h>
13471#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013472"
13473if test "x$ac_cv_member_struct_mtget_mt_gstat" = x""yes; then :
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010013474
13475cat >>confdefs.h <<_ACEOF
13476#define HAVE_STRUCT_MTGET_MT_GSTAT 1
13477_ACEOF
13478
13479
13480fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013481ac_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 +010013482#ifdef HAVE_SYS_MTIO_H
13483#include <sys/mtio.h>
13484#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013485"
13486if test "x$ac_cv_member_struct_mtget_mt_blkno" = x""yes; then :
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010013487
13488cat >>confdefs.h <<_ACEOF
13489#define HAVE_STRUCT_MTGET_MT_BLKNO 1
13490_ACEOF
13491
13492
13493fi
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010013494
13495
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013496ac_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 +000013497#include <getopt.h>
13498#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013499"
13500if test "x$ac_cv_member_struct_option_name" = x""yes; then :
Alexandre Julliarddb89a542003-04-20 02:56:14 +000013501
13502cat >>confdefs.h <<_ACEOF
13503#define HAVE_STRUCT_OPTION_NAME 1
13504_ACEOF
13505
13506
13507fi
13508
13509
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013510ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13511if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
Pavel Roskind6507192003-10-03 03:28:40 +000013512
13513cat >>confdefs.h <<_ACEOF
13514#define HAVE_STRUCT_STAT_ST_BLOCKS 1
13515_ACEOF
13516
13517
13518fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013519ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13520if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020013521
13522cat >>confdefs.h <<_ACEOF
13523#define HAVE_STRUCT_STAT_ST_MTIM 1
13524_ACEOF
13525
13526
13527fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013528ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
13529if test "x$ac_cv_member_struct_stat_st_ctim" = x""yes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020013530
13531cat >>confdefs.h <<_ACEOF
13532#define HAVE_STRUCT_STAT_ST_CTIM 1
13533_ACEOF
13534
13535
13536fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013537ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
13538if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020013539
13540cat >>confdefs.h <<_ACEOF
13541#define HAVE_STRUCT_STAT_ST_ATIM 1
13542_ACEOF
13543
13544
13545fi
Pavel Roskind6507192003-10-03 03:28:40 +000013546
13547
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013548ac_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 +030013549#include <sys/types.h>
13550#endif
13551#ifdef HAVE_NETINET_IN_H
13552#include <netinet/in.h>
13553#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013554"
13555if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030013556
13557cat >>confdefs.h <<_ACEOF
13558#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13559_ACEOF
13560
13561
13562fi
13563
13564
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013565ac_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 +020013566#include <sys/types.h>
13567#endif
13568#ifdef HAVE_NETINET_IN_H
13569# include <netinet/in.h>
13570#endif
13571#ifdef HAVE_ARPA_NAMESER_H
13572# include <arpa/nameser.h>
13573#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013574"
13575if test "x$ac_cv_member_ns_msg__msg_ptr" = x""yes; then :
Alexandre Julliard788e30f2006-05-31 14:43:21 +020013576
13577cat >>confdefs.h <<_ACEOF
13578#define HAVE_NS_MSG__MSG_PTR 1
13579_ACEOF
13580
13581
13582fi
13583
13584
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013585ac_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 -060013586#include <sys/types.h>
13587#endif
13588#ifdef HAVE_ALIAS_H
13589#include <alias.h>
13590#endif
13591#ifdef HAVE_SYS_SOCKET_H
13592#include <sys/socket.h>
13593#endif
13594#ifdef HAVE_SYS_SOCKETVAR_H
13595#include <sys/socketvar.h>
13596#endif
13597#ifdef HAVE_SYS_TIMEOUT_H
13598#include <sys/timeout.h>
13599#endif
13600#ifdef HAVE_NETINET_IN_H
13601#include <netinet/in.h>
13602#endif
13603#ifdef HAVE_NETINET_IN_SYSTM_H
13604#include <netinet/in_systm.h>
13605#endif
13606#ifdef HAVE_NETINET_IP_H
13607#include <netinet/ip.h>
13608#endif
13609#ifdef HAVE_NETINET_IP_VAR_H
13610#include <netinet/ip_var.h>
13611#endif
13612#ifdef HAVE_NETINET_IP_ICMP_H
13613#include <netinet/ip_icmp.h>
13614#endif
13615#ifdef HAVE_NETINET_ICMP_VAR
13616#include <netinet/icmp_var.h>
13617#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013618"
13619if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = x""yes; then :
Austin Englishac0252d2009-01-30 10:18:10 -060013620
13621cat >>confdefs.h <<_ACEOF
13622#define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
13623_ACEOF
13624
13625
13626fi
13627
13628
Juan Lang984c3b22010-03-12 10:38:46 -080013629ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
13630#include <sys/types.h>
13631#endif
13632#ifdef HAVE_NET_IF_H
13633# include <net/if.h>
13634#endif
13635"
13636if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
13637
13638cat >>confdefs.h <<_ACEOF
13639#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
13640_ACEOF
13641
13642
13643fi
13644
13645
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013647$as_echo_n "checking for timezone variable... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013648if test "${ac_cv_have_timezone+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013649 $as_echo_n "(cached) " >&6
Phil Krylov6618b032005-05-24 11:52:46 +000013650else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000013652/* end confdefs.h. */
13653#include <time.h>
13654int
13655main ()
13656{
Alexandre Julliardff2bd662006-08-25 13:23:29 +020013657timezone = 1
Phil Krylov6618b032005-05-24 11:52:46 +000013658 ;
13659 return 0;
13660}
13661_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013662if ac_fn_c_try_link "$LINENO"; then :
Phil Krylov6618b032005-05-24 11:52:46 +000013663 ac_cv_have_timezone="yes"
13664else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013665 ac_cv_have_timezone="no"
Phil Krylov6618b032005-05-24 11:52:46 +000013666fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013667rm -f core conftest.err conftest.$ac_objext \
13668 conftest$ac_exeext conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000013669fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013671$as_echo "$ac_cv_have_timezone" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000013672if test "$ac_cv_have_timezone" = "yes"
13673then
13674
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013675$as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
Phil Krylov6618b032005-05-24 11:52:46 +000013676
13677fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013679$as_echo_n "checking for daylight variable... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013680if test "${ac_cv_have_daylight+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013681 $as_echo_n "(cached) " >&6
Phil Krylov6618b032005-05-24 11:52:46 +000013682else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000013684/* end confdefs.h. */
13685#include <time.h>
13686int
13687main ()
13688{
Alexandre Julliardff2bd662006-08-25 13:23:29 +020013689daylight = 1
Phil Krylov6618b032005-05-24 11:52:46 +000013690 ;
13691 return 0;
13692}
13693_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013694if ac_fn_c_try_link "$LINENO"; then :
Phil Krylov6618b032005-05-24 11:52:46 +000013695 ac_cv_have_daylight="yes"
13696else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013697 ac_cv_have_daylight="no"
Phil Krylov6618b032005-05-24 11:52:46 +000013698fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013699rm -f core conftest.err conftest.$ac_objext \
13700 conftest$ac_exeext conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000013701fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013703$as_echo "$ac_cv_have_daylight" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000013704if test "$ac_cv_have_daylight" = "yes"
13705then
13706
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013707$as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
Phil Krylov6618b032005-05-24 11:52:46 +000013708
13709fi
13710
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013712$as_echo_n "checking for isinf... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013713if test "${ac_cv_have_isinf+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013714 $as_echo_n "(cached) " >&6
Petr Sumbera4992b652008-04-29 17:08:53 +020013715else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Petr Sumbera4992b652008-04-29 17:08:53 +020013717/* end confdefs.h. */
13718#include <math.h>
13719int
13720main ()
13721{
Francois Gouget2fef93a2008-06-26 15:59:05 +020013722float f = 0.0; int i=isinf(f)
Petr Sumbera4992b652008-04-29 17:08:53 +020013723 ;
13724 return 0;
13725}
13726_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013727if ac_fn_c_try_link "$LINENO"; then :
Petr Sumbera4992b652008-04-29 17:08:53 +020013728 ac_cv_have_isinf="yes"
13729else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013730 ac_cv_have_isinf="no"
Petr Sumbera4992b652008-04-29 17:08:53 +020013731fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013732rm -f core conftest.err conftest.$ac_objext \
13733 conftest$ac_exeext conftest.$ac_ext
Petr Sumbera4992b652008-04-29 17:08:53 +020013734fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013736$as_echo "$ac_cv_have_isinf" >&6; }
Petr Sumbera4992b652008-04-29 17:08:53 +020013737if test "$ac_cv_have_isinf" = "yes"
13738then
13739
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013740$as_echo "#define HAVE_ISINF 1" >>confdefs.h
Petr Sumbera4992b652008-04-29 17:08:53 +020013741
13742fi
13743
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013745$as_echo_n "checking for isnan... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013746if test "${ac_cv_have_isnan+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013747 $as_echo_n "(cached) " >&6
Jacek Caban1715dcb2008-10-14 16:06:49 -050013748else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jacek Caban1715dcb2008-10-14 16:06:49 -050013750/* end confdefs.h. */
13751#include <math.h>
13752int
13753main ()
13754{
13755float f = 0.0; int i=isnan(f)
13756 ;
13757 return 0;
13758}
13759_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013760if ac_fn_c_try_link "$LINENO"; then :
Jacek Caban1715dcb2008-10-14 16:06:49 -050013761 ac_cv_have_isnan="yes"
13762else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013763 ac_cv_have_isnan="no"
Jacek Caban1715dcb2008-10-14 16:06:49 -050013764fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013765rm -f core conftest.err conftest.$ac_objext \
13766 conftest$ac_exeext conftest.$ac_ext
Jacek Caban1715dcb2008-10-14 16:06:49 -050013767fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013769$as_echo "$ac_cv_have_isnan" >&6; }
Jacek Caban1715dcb2008-10-14 16:06:49 -050013770if test "$ac_cv_have_isnan" = "yes"
13771then
13772
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013773$as_echo "#define HAVE_ISNAN 1" >>confdefs.h
Jacek Caban1715dcb2008-10-14 16:06:49 -050013774
13775fi
13776
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013777
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013778case $host_cpu in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013779 *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 +010013780$as_echo_n "checking whether we need to define __i386__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013781if test "${ac_cv_cpp_def___i386__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013782 $as_echo_n "(cached) " >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000013783else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013785/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013786#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013787yes
13788#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013789_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013790if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013791 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000013792 ac_cv_cpp_def___i386__=yes
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013793else
Alexandre Julliard05783b52002-12-11 00:21:55 +000013794 ac_cv_cpp_def___i386__=no
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013795fi
13796rm -f conftest*
13797
13798fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013800$as_echo "$ac_cv_cpp_def___i386__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013801if test $ac_cv_cpp_def___i386__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000013802 CFLAGS="$CFLAGS -D__i386__"
13803 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013804fi ;;
13805 *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 +010013806$as_echo_n "checking whether we need to define __x86_64__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013807if test "${ac_cv_cpp_def___x86_64__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013808 $as_echo_n "(cached) " >&6
Alexandre Julliarde3be5642005-09-09 09:30:02 +000013809else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde3be5642005-09-09 09:30:02 +000013811/* end confdefs.h. */
13812#ifndef __x86_64__
13813yes
13814#endif
13815_ACEOF
13816if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013817 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliarde3be5642005-09-09 09:30:02 +000013818 ac_cv_cpp_def___x86_64__=yes
13819else
13820 ac_cv_cpp_def___x86_64__=no
13821fi
13822rm -f conftest*
13823
13824fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013826$as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013827if test $ac_cv_cpp_def___x86_64__ = yes; then :
Alexandre Julliarde3be5642005-09-09 09:30:02 +000013828 CFLAGS="$CFLAGS -D__x86_64__"
13829 LINTFLAGS="$LINTFLAGS -D__x86_64__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013830fi ;;
13831 *alpha*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __ALPHA__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013832$as_echo_n "checking whether we need to define __ALPHA__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013833if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013834 $as_echo_n "(cached) " >&6
Steven Edwards69b67862002-12-10 22:48:48 +000013835else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013837/* end confdefs.h. */
Steven Edwards69b67862002-12-10 22:48:48 +000013838#ifndef __ALPHA__
13839yes
13840#endif
13841_ACEOF
13842if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013843 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000013844 ac_cv_cpp_def___ALPHA__=yes
Steven Edwards69b67862002-12-10 22:48:48 +000013845else
Alexandre Julliard05783b52002-12-11 00:21:55 +000013846 ac_cv_cpp_def___ALPHA__=no
Steven Edwards69b67862002-12-10 22:48:48 +000013847fi
13848rm -f conftest*
13849
13850fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___ALPHA__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013852$as_echo "$ac_cv_cpp_def___ALPHA__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013853if test $ac_cv_cpp_def___ALPHA__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000013854 CFLAGS="$CFLAGS -D__ALPHA__"
13855 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013856fi ;;
13857 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013858$as_echo_n "checking whether we need to define __sparc__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013859if test "${ac_cv_cpp_def___sparc__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013860 $as_echo_n "(cached) " >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013861else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013863/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013864#ifndef __sparc__
13865yes
13866#endif
13867_ACEOF
13868if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013869 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000013870 ac_cv_cpp_def___sparc__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013871else
Alexandre Julliard05783b52002-12-11 00:21:55 +000013872 ac_cv_cpp_def___sparc__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013873fi
13874rm -f conftest*
13875
13876fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013878$as_echo "$ac_cv_cpp_def___sparc__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013879if test $ac_cv_cpp_def___sparc__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000013880 CFLAGS="$CFLAGS -D__sparc__"
13881 LINTFLAGS="$LINTFLAGS -D__sparc__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013882fi ;;
13883 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013884$as_echo_n "checking whether we need to define __powerpc__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013885if test "${ac_cv_cpp_def___powerpc__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013886 $as_echo_n "(cached) " >&6
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000013887else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000013889/* end confdefs.h. */
13890#ifndef __powerpc__
13891yes
13892#endif
13893_ACEOF
13894if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013895 $EGREP "yes" >/dev/null 2>&1; then :
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000013896 ac_cv_cpp_def___powerpc__=yes
13897else
13898 ac_cv_cpp_def___powerpc__=no
13899fi
13900rm -f conftest*
13901
13902fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013904$as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013905if test $ac_cv_cpp_def___powerpc__ = yes; then :
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000013906 CFLAGS="$CFLAGS -D__powerpc__"
13907 LINTFLAGS="$LINTFLAGS -D__powerpc__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013908fi ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000013909esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013910
13911case $host_vendor in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013912 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013913$as_echo_n "checking whether we need to define __sun__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013914if test "${ac_cv_cpp_def___sun__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013915 $as_echo_n "(cached) " >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013916else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013918/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013919#ifndef __sun__
13920yes
13921#endif
13922_ACEOF
13923if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013924 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000013925 ac_cv_cpp_def___sun__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013926else
Alexandre Julliard05783b52002-12-11 00:21:55 +000013927 ac_cv_cpp_def___sun__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013928fi
13929rm -f conftest*
13930
13931fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013933$as_echo "$ac_cv_cpp_def___sun__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013934if test $ac_cv_cpp_def___sun__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000013935 CFLAGS="$CFLAGS -D__sun__"
13936 LINTFLAGS="$LINTFLAGS -D__sun__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013937fi ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000013938esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013939
13940
Alexandre Julliarda360e932008-08-20 16:02:37 +020013941
Alexandre Julliard7d831152010-03-20 15:07:45 +010013942
Alexandre Julliard6c142382010-04-11 12:47:30 +020013943
Alexandre Julliard7d831152010-03-20 15:07:45 +010013944ac_config_commands="$ac_config_commands include/stamp-h"
13945
Alexandre Julliard03642412010-03-20 15:24:22 +010013946
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010013947ALL_MAKEFILE_DEPENDS="
13948# Rules automatically generated by configure
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010013949
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010013950.INIT: Makefile
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010013951.MAKEFILEDEPS:
Alexandre Julliardbd3110d2010-05-23 10:34:36 +020013952all: Makefile
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010013953Makefile: Makefile.in Make.rules config.status
13954 @./config.status Make.tmp Makefile"
Alexandre Julliarda360e932008-08-20 16:02:37 +020013955
Alexandre Julliardd5addea2010-02-08 21:27:54 +010013956ALL_WINETEST_DEPENDS="# Test binaries"
13957
Alexandre Julliard454fb3c2010-02-08 21:29:13 +010013958ALL_TEST_BINARIES=""
13959
Alexandre Julliard49163da2008-08-25 12:02:27 +020013960
Alexandre Julliard2de10c42010-02-11 23:23:45 +010013961wine_fn_append_file ()
13962{
13963 as_fn_append $1 " \\$as_nl $2"
13964}
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010013965
Alexandre Julliard2de10c42010-02-11 23:23:45 +010013966wine_fn_append_rule ()
13967{
13968 as_fn_append $1 "$as_nl$2"
13969}
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010013970
Alexandre Julliard943cd732010-03-25 21:52:56 +010013971wine_fn_all_dir_rules ()
13972{
13973 wine_fn_append_file ALL_DIRS $1
13974 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard764d4c22010-05-23 09:27:33 +020013975"__clean__: $1/__clean__
13976.PHONY: $1/__clean__
Alexandre Julliard3cc14dc2010-03-25 22:12:12 +010013977$1/__clean__: $1/Makefile
13978 @cd $1 && \$(MAKE) clean
13979 \$(RM) $1/Makefile
Alexandre Julliard18e53132010-03-25 22:00:00 +010013980$1/Makefile: $1/Makefile.in config.status $2
13981 @./config.status --file $1/Makefile && cd $1 && \$(MAKE) depend
Alexandre Julliard764d4c22010-05-23 09:27:33 +020013982depend: $1/__depend__
13983.PHONY: $1/__depend__
Alexandre Julliard18e53132010-03-25 22:00:00 +010013984$1/__depend__: \$(MAKEDEP) dummy
Alexandre Julliard943cd732010-03-25 21:52:56 +010013985 @./config.status --file $1/Makefile && cd $1 && \$(MAKE) depend"
13986}
13987
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010013988wine_fn_config_makefile ()
13989{
13990 ac_dir=$1
Alexandre Julliard03642412010-03-20 15:24:22 +010013991 ac_enable=$2
Alexandre Julliard943cd732010-03-25 21:52:56 +010013992 wine_fn_all_dir_rules $ac_dir "Make.rules \$(MAKEDEP)"
Alexandre Julliarde84063b2010-03-25 21:46:41 +010013993
Alexandre Julliard03642412010-03-20 15:24:22 +010013994 eval as_val=\$$ac_enable
13995 if test "x$as_val" = x""no; then :
13996
13997else
Alexandre Julliarde84063b2010-03-25 21:46:41 +010013998 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard764d4c22010-05-23 09:27:33 +020013999"all: $ac_dir
14000.PHONY: $ac_dir
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014001$ac_dir: $ac_dir/Makefile dummy
14002 @cd $ac_dir && \$(MAKE)
Alexandre Julliarde84063b2010-03-25 21:46:41 +010014003install:: $ac_dir
14004 @cd $ac_dir && \$(MAKE) install
14005install-lib:: $ac_dir
14006 @cd $ac_dir && \$(MAKE) install-lib
14007install-dev:: $ac_dir
14008 @cd $ac_dir && \$(MAKE) install-dev
14009uninstall:: $ac_dir/Makefile
14010 @cd $ac_dir && \$(MAKE) uninstall"
Alexandre Julliard03642412010-03-20 15:24:22 +010014011fi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014012}
14013
14014wine_fn_config_lib ()
14015{
14016 ac_name=$1
Alexandre Julliardb8fb1d52010-03-20 14:50:53 +010014017 ac_dir=dlls/$ac_name
Alexandre Julliard943cd732010-03-25 21:52:56 +010014018 wine_fn_all_dir_rules $ac_dir "dlls/Makeimplib.rules \$(MAKEDEP)"
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014019 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardc2c3c212010-03-25 11:13:07 +010014020"all __builddeps__: $ac_dir
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014021__buildcrossdeps__: $ac_dir/lib$ac_name.cross.a
Alexandre Julliardc2c3c212010-03-25 11:13:07 +010014022$ac_dir $ac_dir/lib$ac_name.cross.a: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014023$ac_dir: dummy
14024 @cd $ac_dir && \$(MAKE)
Alexandre Julliardc2c3c212010-03-25 11:13:07 +010014025$ac_dir/lib$ac_name.cross.a: dummy
Alexandre Julliardb8fb1d52010-03-20 14:50:53 +010014026 @cd $ac_dir && \$(MAKE) lib$ac_name.cross.a
Alexandre Julliardc2c3c212010-03-25 11:13:07 +010014027install install-dev:: $ac_dir
14028 @cd $ac_dir && \$(MAKE) install
14029uninstall:: $ac_dir/Makefile
14030 @cd $ac_dir && \$(MAKE) uninstall"
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014031}
14032
Alexandre Julliard50231942010-03-16 22:00:02 +010014033wine_fn_config_dll ()
14034{
14035 ac_dir=$1
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014036 ac_enable=$2
14037 ac_implib=$3
14038 ac_implibsrc=$4
Alexandre Julliard50231942010-03-16 22:00:02 +010014039 ac_file="dlls/$ac_dir/lib$ac_implib"
14040 ac_deps="tools/widl tools/winebuild tools/winegcc include"
14041
Alexandre Julliard943cd732010-03-25 21:52:56 +010014042 wine_fn_all_dir_rules dlls/$ac_dir "dlls/Makedll.rules \$(MAKEDEP)"
Alexandre Julliard82b743f2010-03-25 11:15:32 +010014043
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014044 eval as_val=\$$ac_enable
14045 if test "x$as_val" = x""no; then :
14046 test "$ac_enable" != enable_win16 || return 0
14047else
Alexandre Julliard60a05ad2010-03-25 12:05:44 +010014048 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014049"all: dlls/$ac_dir
14050.PHONY: dlls/$ac_dir
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014051dlls/$ac_dir: dlls/$ac_dir/Makefile __builddeps__ dummy
14052 @cd dlls/$ac_dir && \$(MAKE)
Alexandre Julliard82b743f2010-03-25 11:15:32 +010014053install:: dlls/$ac_dir/Makefile __builddeps__
14054 @cd dlls/$ac_dir && \$(MAKE) install
14055install-lib:: dlls/$ac_dir/Makefile __builddeps__
14056 @cd dlls/$ac_dir && \$(MAKE) install-lib
Alexandre Julliard60a05ad2010-03-25 12:05:44 +010014057uninstall manpages htmlpages sgmlpages xmlpages:: dlls/$ac_dir/Makefile
14058 @cd dlls/$ac_dir && \$(MAKE) \$@"
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014059fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014060
14061 if test -n "$ac_implibsrc"
14062 then
14063 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014064"__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14065__buildcrossdeps__: $ac_file.cross.a
14066$ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
Alexandre Julliard50231942010-03-16 22:00:02 +010014067$ac_file.def: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile
14068 @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`
14069$ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: dlls/$ac_dir/Makefile dummy
Alexandre Julliard82b743f2010-03-25 11:15:32 +010014070 @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`
14071install-dev:: dlls/$ac_dir/Makefile __builddeps__
14072 @cd dlls/$ac_dir && \$(MAKE) install-dev"
Alexandre Julliard50231942010-03-16 22:00:02 +010014073 elif test -n "$ac_implib"
14074 then
14075 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014076"__builddeps__: $ac_file.$IMPLIBEXT
14077__buildcrossdeps__: $ac_file.cross.a
14078$ac_file.$IMPLIBEXT $ac_file.cross.a: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile $ac_deps
Alexandre Julliard82b743f2010-03-25 11:15:32 +010014079 @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`
14080install-dev:: dlls/$ac_dir/Makefile __builddeps__
14081 @cd dlls/$ac_dir && \$(MAKE) install-dev"
Alexandre Julliard50231942010-03-16 22:00:02 +010014082
14083 if test "$ac_dir" != "$ac_implib"
14084 then
14085 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014086"__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14087__buildcrossdeps__: dlls/lib$ac_implib.cross.a
14088dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
Alexandre Julliard50231942010-03-16 22:00:02 +010014089 \$(RM) \$@ && \$(LN_S) $ac_dir/lib$ac_implib.$IMPLIBEXT \$@
14090dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14091 \$(RM) \$@ && \$(LN_S) $ac_dir/lib$ac_implib.cross.a \$@
14092clean::
14093 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14094 fi
14095 fi
14096}
14097
14098wine_fn_config_program ()
14099{
14100 ac_dir=$1
Alexandre Julliardd394e042010-03-20 14:53:39 +010014101 ac_enable=$2
14102 ac_install=$3
Alexandre Julliard943cd732010-03-25 21:52:56 +010014103 wine_fn_all_dir_rules programs/$ac_dir "programs/Makeprog.rules \$(MAKEDEP)"
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014104
Alexandre Julliardd394e042010-03-20 14:53:39 +010014105 eval as_val=\$$ac_enable
14106 if test "x$as_val" = x""no; then :
14107
14108else
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014109 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014110"all: programs/$ac_dir
14111.PHONY: programs/$ac_dir
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014112programs/$ac_dir: programs/$ac_dir/Makefile __builddeps__ dummy
14113 @cd programs/$ac_dir && \$(MAKE)"
14114
Alexandre Julliard2fb30212010-03-26 09:24:33 +010014115 test -n "$ac_install" || return
14116 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014117"install install-lib:: programs/$ac_dir/Makefile __builddeps__
14118 @cd programs/$ac_dir && \$(MAKE) install
14119uninstall:: programs/$ac_dir/Makefile
14120 @cd programs/$ac_dir && \$(MAKE) uninstall"
Alexandre Julliard718ea422010-03-26 09:29:10 +010014121 if test "$ac_install" = installbin -a -n "$DLLEXT" -a "x$enable_tools" != xno
Alexandre Julliard2fb30212010-03-26 09:24:33 +010014122 then
14123 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard718ea422010-03-26 09:29:10 +010014124"install install-lib:: tools \$(DESTDIR)\$(bindir)
14125 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_dir
Alexandre Julliard2fb30212010-03-26 09:24:33 +010014126uninstall::
14127 \$(RM) \$(DESTDIR)\$(bindir)/$ac_dir"
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014128 fi
Alexandre Julliardd394e042010-03-20 14:53:39 +010014129fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014130}
14131
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014132wine_fn_config_test ()
14133{
14134 ac_dir=$1
14135 ac_name=$2
14136 wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe
14137 wine_fn_append_rule ALL_WINETEST_DEPENDS \
14138"$ac_name.exe: \$(TOPOBJDIR)/$ac_dir/$ac_name.exe$DLLEXT
14139 cp \$(TOPOBJDIR)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@
14140$ac_name.rc:
14141 echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" >\$@ || (\$(RM) \$@ && false)
14142$ac_name.res: $ac_name.rc $ac_name.exe"
Alexandre Julliard943cd732010-03-25 21:52:56 +010014143 wine_fn_all_dir_rules $ac_dir "Maketest.rules \$(MAKEDEP)"
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014144
Alexandre Julliarddc3afa12010-03-20 14:51:52 +010014145 if test "x$enable_tests" = x""no; then :
14146
14147else
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014148 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014149"all programs/winetest: $ac_dir
14150.PHONY: $ac_dir
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014151$ac_dir: $ac_dir/Makefile __builddeps__ dummy
14152 @cd $ac_dir && \$(MAKE)
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014153crosstest: $ac_dir/__crosstest__
14154.PHONY: $ac_dir/__crosstest__
Alexandre Julliardeab7efd2010-03-25 21:42:54 +010014155$ac_dir/__crosstest__: $ac_dir/Makefile __buildcrossdeps__ dummy
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014156 @cd $ac_dir && \$(MAKE) crosstest
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014157test: $ac_dir/__test__
14158.PHONY: $ac_dir/__test__
Alexandre Julliardeab7efd2010-03-25 21:42:54 +010014159$ac_dir/__test__: dummy
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014160 @cd $ac_dir && \$(MAKE) test
14161testclean::
14162 \$(RM) $ac_dir/*.ok"
Alexandre Julliarddc3afa12010-03-20 14:51:52 +010014163fi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014164}
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010014165
14166wine_fn_config_tool ()
14167{
14168 ac_dir=$1
14169 ac_deps="Make.rules"
14170 if test "$ac_dir" != tools
14171 then
14172 ac_deps="$ac_deps \$(MAKEDEP)"
14173 fi
Alexandre Julliard943cd732010-03-25 21:52:56 +010014174 wine_fn_all_dir_rules $ac_dir "$ac_deps"
Alexandre Julliard6dbe7a02010-03-25 11:51:24 +010014175
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010014176 if test "x$enable_tools" = x""no; then :
14177
14178else
Alexandre Julliard6dbe7a02010-03-25 11:51:24 +010014179 case $ac_dir in
14180 tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14181"install:: $ac_dir
14182 @cd $ac_dir && \$(MAKE) install
14183install-lib:: $ac_dir
14184 @cd $ac_dir && \$(MAKE) install-lib
14185install-dev:: $ac_dir
14186 @cd $ac_dir && \$(MAKE) install-dev" ;;
14187 *) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14188"install install-dev:: $ac_dir
14189 @cd $ac_dir && \$(MAKE) install" ;;
14190 esac
14191 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14192"uninstall:: $ac_dir/Makefile
14193 @cd $ac_dir && \$(MAKE) uninstall
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014194all __tooldeps__: $ac_dir
14195.PHONY: $ac_dir
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014196$ac_dir: $ac_dir/Makefile libs/port dummy
14197 @cd $ac_dir && \$(MAKE)"
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010014198fi
14199}
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014200
14201wine_fn_config_makerules ()
14202{
14203 ac_rules=$1
14204 ac_deps=$2
14205 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14206"$ac_rules: $ac_rules.in $ac_deps config.status
14207 @./config.status $ac_rules
14208distclean::
14209 \$(RM) $ac_rules"
14210}
14211
14212wine_fn_config_symlink ()
14213{
14214 ac_link=$1
14215 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14216"$ac_link:
14217 @./config.status $ac_link
14218distclean::
14219 \$(RM) $ac_link"
14220}
Alexandre Julliarda6320522010-02-03 13:14:03 +010014221ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014222test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014223if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014224ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014225test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014226fi
14227if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014228ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014229test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014230fi
14231if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014232ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014233test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014234fi
14235if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014236ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014237test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014238fi
Alexandre Julliard321d3882010-05-06 20:51:53 +020014239ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14240test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
Alexandre Julliard7d020c92010-02-03 13:12:12 +010014241ac_config_links="$ac_config_links wine:tools/winewrapper"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014242wine_fn_config_symlink wine
Alexandre Julliard7d020c92010-02-03 13:12:12 +010014243
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020014244ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000014245
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020014246ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000014247
Alexandre Julliard1c60e3b2006-09-12 16:10:51 +020014248ac_config_commands="$ac_config_commands dlls/kernel32/nls"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014249
Alexandre Julliardb8a2e3b2006-11-16 14:49:25 +010014250ac_config_commands="$ac_config_commands dlls/user32/resources"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014251
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014252ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014253
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014254ac_config_commands="$ac_config_commands include/wine"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014255
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000014256
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014257wine_fn_config_makerules Make.rules
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000014258MAKE_RULES=Make.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014259ac_config_files="$ac_config_files Make.rules"
14260
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014261wine_fn_config_makerules Maketest.rules Make.rules
Alexandre Julliardcb1fc8f2010-02-10 11:18:58 +010014262MAKE_TEST_RULES=Maketest.rules
14263ac_config_files="$ac_config_files Maketest.rules"
14264
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014265wine_fn_config_makerules dlls/Makedll.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020014266MAKE_DLL_RULES=dlls/Makedll.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014267ac_config_files="$ac_config_files dlls/Makedll.rules"
14268
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014269wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020014270MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014271ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14272
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014273wine_fn_config_makerules programs/Makeprog.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020014274MAKE_PROG_RULES=programs/Makeprog.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014275ac_config_files="$ac_config_files programs/Makeprog.rules"
14276
Alexandre Julliarda360e932008-08-20 16:02:37 +020014277
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014278wine_fn_config_dll acledit enable_acledit
14279wine_fn_config_dll aclui enable_aclui aclui
14280wine_fn_config_dll activeds enable_activeds activeds
14281wine_fn_config_dll actxprxy enable_actxprxy
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014282wine_fn_config_lib adsiid
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014283wine_fn_config_dll advapi32 enable_advapi32 advapi32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014284wine_fn_config_test dlls/advapi32/tests advapi32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014285wine_fn_config_dll advpack enable_advpack advpack
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014286wine_fn_config_test dlls/advpack/tests advpack_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014287wine_fn_config_dll amstream enable_amstream
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014288wine_fn_config_test dlls/amstream/tests amstream_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014289wine_fn_config_dll appwiz.cpl enable_appwiz_cpl
14290wine_fn_config_dll atl enable_atl atl
Marcus Meissnerb3f04252010-06-15 11:04:33 +020014291wine_fn_config_test dlls/atl/tests atl_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014292wine_fn_config_dll authz enable_authz
14293wine_fn_config_dll avicap32 enable_avicap32 avicap32
14294wine_fn_config_dll avifil32 enable_avifil32 avifil32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014295wine_fn_config_test dlls/avifil32/tests avifil32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014296wine_fn_config_dll avifile.dll16 enable_win16
14297wine_fn_config_dll avrt enable_avrt avrt
14298wine_fn_config_dll bcrypt enable_bcrypt
14299wine_fn_config_dll browseui enable_browseui
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014300wine_fn_config_test dlls/browseui/tests browseui_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014301wine_fn_config_dll cabinet enable_cabinet cabinet
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014302wine_fn_config_test dlls/cabinet/tests cabinet_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014303wine_fn_config_dll capi2032 enable_capi2032 capi2032
14304wine_fn_config_dll cards enable_cards cards
14305wine_fn_config_dll cfgmgr32 enable_cfgmgr32 cfgmgr32
14306wine_fn_config_dll clusapi enable_clusapi clusapi
14307wine_fn_config_dll comcat enable_comcat
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014308wine_fn_config_test dlls/comcat/tests comcat_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014309wine_fn_config_dll comctl32 enable_comctl32 comctl32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014310wine_fn_config_test dlls/comctl32/tests comctl32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014311wine_fn_config_dll comdlg32 enable_comdlg32 comdlg32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014312wine_fn_config_test dlls/comdlg32/tests comdlg32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014313wine_fn_config_dll comm.drv16 enable_win16
14314wine_fn_config_dll commdlg.dll16 enable_win16
14315wine_fn_config_dll compobj.dll16 enable_win16
14316wine_fn_config_dll compstui enable_compstui compstui
14317wine_fn_config_dll credui enable_credui credui
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014318wine_fn_config_test dlls/credui/tests credui_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014319wine_fn_config_dll crtdll enable_crtdll crtdll
14320wine_fn_config_dll crypt32 enable_crypt32 crypt32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014321wine_fn_config_test dlls/crypt32/tests crypt32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014322wine_fn_config_dll cryptdlg enable_cryptdlg
14323wine_fn_config_dll cryptdll enable_cryptdll cryptdll
14324wine_fn_config_dll cryptnet enable_cryptnet cryptnet
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014325wine_fn_config_test dlls/cryptnet/tests cryptnet_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014326wine_fn_config_dll cryptui enable_cryptui cryptui
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014327wine_fn_config_test dlls/cryptui/tests cryptui_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014328wine_fn_config_dll ctapi32 enable_ctapi32
14329wine_fn_config_dll ctl3d.dll16 enable_win16
14330wine_fn_config_dll ctl3d32 enable_ctl3d32 ctl3d32
14331wine_fn_config_dll ctl3dv2.dll16 enable_win16
14332wine_fn_config_dll d3d10 enable_d3d10 d3d10
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014333wine_fn_config_test dlls/d3d10/tests d3d10_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014334wine_fn_config_dll d3d10core enable_d3d10core d3d10core
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014335wine_fn_config_test dlls/d3d10core/tests d3d10core_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014336wine_fn_config_dll d3d8 enable_d3d8 d3d8
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014337wine_fn_config_test dlls/d3d8/tests d3d8_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014338wine_fn_config_dll d3d9 enable_d3d9 d3d9
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014339wine_fn_config_test dlls/d3d9/tests d3d9_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014340wine_fn_config_dll d3dim enable_d3dim d3dim
14341wine_fn_config_dll d3drm enable_d3drm d3drm
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014342wine_fn_config_test dlls/d3drm/tests d3drm_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014343wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14344wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14345wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14346wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14347wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14348wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14349wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14350wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14351wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14352wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14353wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14354wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14355wine_fn_config_dll d3dx9_36 enable_d3dx9_36 d3dx9
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014356wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014357wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14358wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14359wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14360wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14361wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14362wine_fn_config_dll d3dx9_42 enable_d3dx9_42
14363wine_fn_config_dll d3dxof enable_d3dxof d3dxof
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014364wine_fn_config_test dlls/d3dxof/tests d3dxof_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014365wine_fn_config_dll dbghelp enable_dbghelp dbghelp
14366wine_fn_config_dll dciman32 enable_dciman32 dciman32
14367wine_fn_config_dll ddeml.dll16 enable_win16
14368wine_fn_config_dll ddraw enable_ddraw ddraw
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014369wine_fn_config_test dlls/ddraw/tests ddraw_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014370wine_fn_config_dll ddrawex enable_ddrawex
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014371wine_fn_config_test dlls/ddrawex/tests ddrawex_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014372wine_fn_config_dll devenum enable_devenum
14373wine_fn_config_dll dinput enable_dinput dinput "data_formats.c"
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014374wine_fn_config_test dlls/dinput/tests dinput_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014375wine_fn_config_dll dinput8 enable_dinput8 dinput8
14376wine_fn_config_dll dispdib.dll16 enable_win16
14377wine_fn_config_dll dispex enable_dispex
Huw Daviesdf075612010-03-19 13:34:53 +000014378wine_fn_config_test dlls/dispex/tests dispex_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014379wine_fn_config_dll display.drv16 enable_win16
14380wine_fn_config_dll dmband enable_dmband
14381wine_fn_config_dll dmcompos enable_dmcompos
14382wine_fn_config_dll dmime enable_dmime
14383wine_fn_config_dll dmloader enable_dmloader
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014384wine_fn_config_test dlls/dmloader/tests dmloader_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014385wine_fn_config_dll dmscript enable_dmscript
14386wine_fn_config_dll dmstyle enable_dmstyle
14387wine_fn_config_dll dmsynth enable_dmsynth
14388wine_fn_config_dll dmusic enable_dmusic
14389wine_fn_config_dll dmusic32 enable_dmusic32 dmusic32
14390wine_fn_config_dll dnsapi enable_dnsapi dnsapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014391wine_fn_config_test dlls/dnsapi/tests dnsapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014392wine_fn_config_dll dplay enable_dplay dplay
14393wine_fn_config_dll dplayx enable_dplayx dplayx
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014394wine_fn_config_test dlls/dplayx/tests dplayx_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014395wine_fn_config_dll dpnaddr enable_dpnaddr
14396wine_fn_config_dll dpnet enable_dpnet dpnet
14397wine_fn_config_dll dpnhpast enable_dpnhpast
14398wine_fn_config_dll dpnlobby enable_dpnlobby
14399wine_fn_config_dll dpwsockx enable_dpwsockx
14400wine_fn_config_dll drmclien enable_drmclien
14401wine_fn_config_dll dsound enable_dsound dsound
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014402wine_fn_config_test dlls/dsound/tests dsound_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014403wine_fn_config_dll dssenh enable_dssenh
14404wine_fn_config_dll dswave enable_dswave
14405wine_fn_config_dll dwmapi enable_dwmapi dwmapi
14406wine_fn_config_dll dxdiagn enable_dxdiagn
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014407wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014408wine_fn_config_lib dxerr8
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014409wine_fn_config_lib dxerr9
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014410wine_fn_config_dll dxgi enable_dxgi dxgi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014411wine_fn_config_test dlls/dxgi/tests dxgi_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014412wine_fn_config_lib dxguid
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014413wine_fn_config_dll faultrep enable_faultrep
14414wine_fn_config_dll fltlib enable_fltlib
14415wine_fn_config_dll fusion enable_fusion
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014416wine_fn_config_test dlls/fusion/tests fusion_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014417wine_fn_config_dll fwpuclnt enable_fwpuclnt
14418wine_fn_config_dll gdi.exe16 enable_win16
14419wine_fn_config_dll gdi32 enable_gdi32 gdi32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014420wine_fn_config_test dlls/gdi32/tests gdi32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014421wine_fn_config_dll gdiplus enable_gdiplus gdiplus
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014422wine_fn_config_test dlls/gdiplus/tests gdiplus_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014423wine_fn_config_dll glu32 enable_glu32 glu32
14424wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
14425wine_fn_config_dll gpkcsp enable_gpkcsp
14426wine_fn_config_dll hal enable_hal
14427wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx
14428wine_fn_config_dll hid enable_hid hid
14429wine_fn_config_dll hlink enable_hlink hlink
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014430wine_fn_config_test dlls/hlink/tests hlink_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014431wine_fn_config_dll hnetcfg enable_hnetcfg
14432wine_fn_config_dll httpapi enable_httpapi
14433wine_fn_config_dll iccvid enable_iccvid
14434wine_fn_config_dll icmp enable_icmp
14435wine_fn_config_dll ifsmgr.vxd enable_win16
14436wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
14437wine_fn_config_dll imagehlp enable_imagehlp imagehlp
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014438wine_fn_config_test dlls/imagehlp/tests imagehlp_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014439wine_fn_config_dll imm.dll16 enable_win16
14440wine_fn_config_dll imm32 enable_imm32 imm32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014441wine_fn_config_test dlls/imm32/tests imm32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014442wine_fn_config_dll inetcomm enable_inetcomm inetcomm
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014443wine_fn_config_test dlls/inetcomm/tests inetcomm_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014444wine_fn_config_dll inetmib1 enable_inetmib1
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014445wine_fn_config_test dlls/inetmib1/tests inetmib1_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014446wine_fn_config_dll infosoft enable_infosoft
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014447wine_fn_config_test dlls/infosoft/tests infosoft_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014448wine_fn_config_dll initpki enable_initpki
14449wine_fn_config_dll inkobj enable_inkobj
14450wine_fn_config_dll inseng enable_inseng
14451wine_fn_config_dll iphlpapi enable_iphlpapi iphlpapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014452wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014453wine_fn_config_dll itircl enable_itircl
14454wine_fn_config_dll itss enable_itss
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014455wine_fn_config_test dlls/itss/tests itss_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014456wine_fn_config_dll jscript enable_jscript
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014457wine_fn_config_test dlls/jscript/tests jscript_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014458wine_fn_config_dll kernel32 enable_kernel32 kernel32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014459wine_fn_config_test dlls/kernel32/tests kernel32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014460wine_fn_config_dll keyboard.drv16 enable_win16
14461wine_fn_config_dll krnl386.exe16 enable_win16 kernel
14462wine_fn_config_dll loadperf enable_loadperf loadperf
14463wine_fn_config_dll localspl enable_localspl
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014464wine_fn_config_test dlls/localspl/tests localspl_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014465wine_fn_config_dll localui enable_localui
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014466wine_fn_config_test dlls/localui/tests localui_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014467wine_fn_config_dll lz32 enable_lz32 lz32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014468wine_fn_config_test dlls/lz32/tests lz32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014469wine_fn_config_dll lzexpand.dll16 enable_win16
14470wine_fn_config_dll mapi32 enable_mapi32 mapi32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014471wine_fn_config_test dlls/mapi32/tests mapi32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014472wine_fn_config_dll mapistub enable_mapistub
14473wine_fn_config_dll mciavi32 enable_mciavi32
14474wine_fn_config_dll mcicda enable_mcicda
14475wine_fn_config_dll mciqtz32 enable_mciqtz32
14476wine_fn_config_dll mciseq enable_mciseq
14477wine_fn_config_dll mciwave enable_mciwave
14478wine_fn_config_dll midimap enable_midimap
14479wine_fn_config_dll mlang enable_mlang mlang
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014480wine_fn_config_test dlls/mlang/tests mlang_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014481wine_fn_config_dll mmdevapi enable_mmdevapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014482wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014483wine_fn_config_dll mmdevldr.vxd enable_win16
14484wine_fn_config_dll mmsystem.dll16 enable_win16
14485wine_fn_config_dll monodebg.vxd enable_win16
14486wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
14487wine_fn_config_dll mouse.drv16 enable_win16
14488wine_fn_config_dll mpr enable_mpr mpr
14489wine_fn_config_dll mprapi enable_mprapi mprapi
14490wine_fn_config_dll msacm.dll16 enable_win16
14491wine_fn_config_dll msacm32.drv enable_msacm32_drv
14492wine_fn_config_dll msacm32 enable_msacm32 msacm32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014493wine_fn_config_test dlls/msacm32/tests msacm32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014494wine_fn_config_dll msadp32.acm enable_msadp32_acm
14495wine_fn_config_dll mscat32 enable_mscat32
14496wine_fn_config_dll mscms enable_mscms mscms
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014497wine_fn_config_test dlls/mscms/tests mscms_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014498wine_fn_config_dll mscoree enable_mscoree
14499wine_fn_config_dll msctf enable_msctf
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014500wine_fn_config_test dlls/msctf/tests msctf_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014501wine_fn_config_dll msdaps enable_msdaps
14502wine_fn_config_dll msdmo enable_msdmo msdmo
14503wine_fn_config_dll msftedit enable_msftedit
14504wine_fn_config_dll msg711.acm enable_msg711_acm
14505wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
14506wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
14507wine_fn_config_dll mshtml enable_mshtml mshtml
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014508wine_fn_config_test dlls/mshtml/tests mshtml_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014509wine_fn_config_dll msi enable_msi msi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014510wine_fn_config_test dlls/msi/tests msi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014511wine_fn_config_dll msimg32 enable_msimg32 msimg32
14512wine_fn_config_dll msimtf enable_msimtf
14513wine_fn_config_dll msisip enable_msisip
14514wine_fn_config_dll msisys.ocx enable_msisys_ocx
14515wine_fn_config_dll msnet32 enable_msnet32
14516wine_fn_config_dll msrle32 enable_msrle32
14517wine_fn_config_dll mssign32 enable_mssign32
14518wine_fn_config_dll mssip32 enable_mssip32
14519wine_fn_config_dll mstask enable_mstask
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014520wine_fn_config_test dlls/mstask/tests mstask_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014521wine_fn_config_dll msvcirt enable_msvcirt
Detlef Riekenberg1434ef42010-04-30 14:07:34 +020014522wine_fn_config_dll msvcr100 enable_msvcr100
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014523wine_fn_config_dll msvcr70 enable_msvcr70 msvcr70
14524wine_fn_config_dll msvcr71 enable_msvcr71 msvcr71
Piotr Cabanc4522492010-03-25 11:06:29 +010014525wine_fn_config_dll msvcr80 enable_msvcr80
14526wine_fn_config_dll msvcr90 enable_msvcr90
Detlef Riekenberg73e669c2010-03-20 00:32:17 +010014527wine_fn_config_test dlls/msvcr90/tests msvcr90_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014528wine_fn_config_dll msvcrt enable_msvcrt msvcrt
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014529wine_fn_config_test dlls/msvcrt/tests msvcrt_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014530wine_fn_config_dll msvcrt20 enable_msvcrt20 msvcrt20
14531wine_fn_config_dll msvcrt40 enable_msvcrt40 msvcrt40
14532wine_fn_config_dll msvcrtd enable_msvcrtd msvcrtd
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014533wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014534wine_fn_config_dll msvfw32 enable_msvfw32 msvfw32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014535wine_fn_config_test dlls/msvfw32/tests msvfw32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014536wine_fn_config_dll msvidc32 enable_msvidc32
14537wine_fn_config_dll msvideo.dll16 enable_win16
14538wine_fn_config_dll mswsock enable_mswsock mswsock
14539wine_fn_config_dll msxml3 enable_msxml3
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014540wine_fn_config_test dlls/msxml3/tests msxml3_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014541wine_fn_config_dll msxml4 enable_msxml4
14542wine_fn_config_dll nddeapi enable_nddeapi nddeapi
14543wine_fn_config_dll netapi32 enable_netapi32 netapi32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014544wine_fn_config_test dlls/netapi32/tests netapi32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014545wine_fn_config_dll newdev enable_newdev newdev
14546wine_fn_config_dll ntdll enable_ntdll ntdll
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014547wine_fn_config_test dlls/ntdll/tests ntdll_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014548wine_fn_config_dll ntdsapi enable_ntdsapi ntdsapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014549wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014550wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe ntoskrnl.exe
14551wine_fn_config_dll ntprint enable_ntprint
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014552wine_fn_config_test dlls/ntprint/tests ntprint_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014553wine_fn_config_dll objsel enable_objsel
14554wine_fn_config_dll odbc32 enable_odbc32 odbc32
14555wine_fn_config_dll odbccp32 enable_odbccp32 odbccp32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014556wine_fn_config_test dlls/odbccp32/tests odbccp32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014557wine_fn_config_dll ole2.dll16 enable_win16
14558wine_fn_config_dll ole2conv.dll16 enable_win16
14559wine_fn_config_dll ole2disp.dll16 enable_win16
14560wine_fn_config_dll ole2nls.dll16 enable_win16
14561wine_fn_config_dll ole2prox.dll16 enable_win16
14562wine_fn_config_dll ole2thk.dll16 enable_win16
14563wine_fn_config_dll ole32 enable_ole32 ole32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014564wine_fn_config_test dlls/ole32/tests ole32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014565wine_fn_config_dll oleacc enable_oleacc oleacc
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014566wine_fn_config_test dlls/oleacc/tests oleacc_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014567wine_fn_config_dll oleaut32 enable_oleaut32 oleaut32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014568wine_fn_config_test dlls/oleaut32/tests oleaut32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014569wine_fn_config_dll olecli.dll16 enable_win16
14570wine_fn_config_dll olecli32 enable_olecli32 olecli32
14571wine_fn_config_dll oledb32 enable_oledb32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014572wine_fn_config_test dlls/oledb32/tests oledb32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014573wine_fn_config_dll oledlg enable_oledlg oledlg
14574wine_fn_config_dll olepro32 enable_olepro32 olepro32
14575wine_fn_config_dll olesvr.dll16 enable_win16
14576wine_fn_config_dll olesvr32 enable_olesvr32 olesvr32
14577wine_fn_config_dll olethk32 enable_olethk32
14578wine_fn_config_dll openal32 enable_openal32
14579wine_fn_config_dll opengl32 enable_opengl32 opengl32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014580wine_fn_config_test dlls/opengl32/tests opengl32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014581wine_fn_config_dll pdh enable_pdh pdh
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014582wine_fn_config_test dlls/pdh/tests pdh_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014583wine_fn_config_dll pidgen enable_pidgen
14584wine_fn_config_dll powrprof enable_powrprof powrprof
14585wine_fn_config_dll printui enable_printui
14586wine_fn_config_dll propsys enable_propsys
14587wine_fn_config_dll psapi enable_psapi psapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014588wine_fn_config_test dlls/psapi/tests psapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014589wine_fn_config_dll pstorec enable_pstorec
14590wine_fn_config_dll qcap enable_qcap
14591wine_fn_config_dll qedit enable_qedit
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014592wine_fn_config_test dlls/qedit/tests qedit_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014593wine_fn_config_dll qmgr enable_qmgr
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014594wine_fn_config_test dlls/qmgr/tests qmgr_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014595wine_fn_config_dll qmgrprxy enable_qmgrprxy
14596wine_fn_config_dll quartz enable_quartz quartz
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014597wine_fn_config_test dlls/quartz/tests quartz_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014598wine_fn_config_dll query enable_query
14599wine_fn_config_dll rasapi16.dll16 enable_win16
14600wine_fn_config_dll rasapi32 enable_rasapi32 rasapi32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014601wine_fn_config_test dlls/rasapi32/tests rasapi32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014602wine_fn_config_dll rasdlg enable_rasdlg rasdlg
14603wine_fn_config_dll resutils enable_resutils resutils
14604wine_fn_config_dll riched20 enable_riched20 riched20
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014605wine_fn_config_test dlls/riched20/tests riched20_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014606wine_fn_config_dll riched32 enable_riched32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014607wine_fn_config_test dlls/riched32/tests riched32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014608wine_fn_config_dll rpcrt4 enable_rpcrt4 rpcrt4
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014609wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014610wine_fn_config_dll rsabase enable_rsabase
14611wine_fn_config_dll rsaenh enable_rsaenh rsaenh
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014612wine_fn_config_test dlls/rsaenh/tests rsaenh_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014613wine_fn_config_dll rtutils enable_rtutils rtutils
Louis Lenders1ae673f2010-05-11 22:59:22 +020014614wine_fn_config_dll samlib enable_samlib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014615wine_fn_config_dll sane.ds enable_sane_ds
14616wine_fn_config_dll sccbase enable_sccbase
14617wine_fn_config_dll schannel enable_schannel
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014618wine_fn_config_test dlls/schannel/tests schannel_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014619wine_fn_config_dll secur32 enable_secur32 secur32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014620wine_fn_config_test dlls/secur32/tests secur32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014621wine_fn_config_dll security enable_security
14622wine_fn_config_dll sensapi enable_sensapi sensapi
14623wine_fn_config_dll serialui enable_serialui serialui
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014624wine_fn_config_test dlls/serialui/tests serialui_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014625wine_fn_config_dll setupapi enable_setupapi setupapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014626wine_fn_config_test dlls/setupapi/tests setupapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014627wine_fn_config_dll setupx.dll16 enable_win16
14628wine_fn_config_dll sfc enable_sfc sfc
14629wine_fn_config_dll sfc_os enable_sfc_os sfc_os
14630wine_fn_config_dll shdoclc enable_shdoclc
14631wine_fn_config_dll shdocvw enable_shdocvw shdocvw
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014632wine_fn_config_test dlls/shdocvw/tests shdocvw_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014633wine_fn_config_dll shell.dll16 enable_win16
14634wine_fn_config_dll shell32 enable_shell32 shell32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014635wine_fn_config_test dlls/shell32/tests shell32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014636wine_fn_config_dll shfolder enable_shfolder shfolder
14637wine_fn_config_dll shlwapi enable_shlwapi shlwapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014638wine_fn_config_test dlls/shlwapi/tests shlwapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014639wine_fn_config_dll slbcsp enable_slbcsp
14640wine_fn_config_dll slc enable_slc slc
14641wine_fn_config_dll snmpapi enable_snmpapi snmpapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014642wine_fn_config_test dlls/snmpapi/tests snmpapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014643wine_fn_config_dll softpub enable_softpub
14644wine_fn_config_dll sound.drv16 enable_win16
14645wine_fn_config_dll spoolss enable_spoolss spoolss
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014646wine_fn_config_test dlls/spoolss/tests spoolss_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014647wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
14648wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
14649wine_fn_config_dll sti enable_sti sti
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014650wine_fn_config_test dlls/sti/tests sti_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014651wine_fn_config_dll storage.dll16 enable_win16
14652wine_fn_config_dll stress.dll16 enable_win16
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014653wine_fn_config_lib strmiids
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014654wine_fn_config_dll svrapi enable_svrapi
14655wine_fn_config_dll sxs enable_sxs
14656wine_fn_config_dll system.drv16 enable_win16
14657wine_fn_config_dll t2embed enable_t2embed
14658wine_fn_config_dll tapi32 enable_tapi32 tapi32
14659wine_fn_config_dll toolhelp.dll16 enable_win16
14660wine_fn_config_dll traffic enable_traffic
14661wine_fn_config_dll twain.dll16 enable_win16
14662wine_fn_config_dll twain_32 enable_twain_32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014663wine_fn_config_test dlls/twain_32/tests twain_32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014664wine_fn_config_dll typelib.dll16 enable_win16
14665wine_fn_config_dll unicows enable_unicows unicows
14666wine_fn_config_dll updspapi enable_updspapi
14667wine_fn_config_dll url enable_url url
14668wine_fn_config_dll urlmon enable_urlmon urlmon
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014669wine_fn_config_test dlls/urlmon/tests urlmon_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014670wine_fn_config_dll usbd.sys enable_usbd_sys usbd.sys
14671wine_fn_config_dll user.exe16 enable_win16
14672wine_fn_config_dll user32 enable_user32 user32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014673wine_fn_config_test dlls/user32/tests user32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014674wine_fn_config_dll userenv enable_userenv userenv
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014675wine_fn_config_test dlls/userenv/tests userenv_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014676wine_fn_config_dll usp10 enable_usp10 usp10
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014677wine_fn_config_test dlls/usp10/tests usp10_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014678wine_fn_config_lib uuid
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014679wine_fn_config_dll uxtheme enable_uxtheme uxtheme
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014680wine_fn_config_test dlls/uxtheme/tests uxtheme_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014681wine_fn_config_dll vdhcp.vxd enable_win16
14682wine_fn_config_dll vdmdbg enable_vdmdbg vdmdbg
14683wine_fn_config_dll ver.dll16 enable_win16
14684wine_fn_config_dll version enable_version version
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014685wine_fn_config_test dlls/version/tests version_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014686wine_fn_config_dll vmm.vxd enable_win16
14687wine_fn_config_dll vnbt.vxd enable_win16
14688wine_fn_config_dll vnetbios.vxd enable_win16
14689wine_fn_config_dll vtdapi.vxd enable_win16
14690wine_fn_config_dll vwin32.vxd enable_win16
14691wine_fn_config_dll w32skrnl enable_win16
14692wine_fn_config_dll w32sys.dll16 enable_win16
14693wine_fn_config_dll wbemprox enable_wbemprox
14694wine_fn_config_dll wiaservc enable_wiaservc
14695wine_fn_config_dll win32s16.dll16 enable_win16
14696wine_fn_config_dll win87em.dll16 enable_win16
14697wine_fn_config_dll winaspi.dll16 enable_win16
14698wine_fn_config_dll windebug.dll16 enable_win16
14699wine_fn_config_dll windowscodecs enable_windowscodecs windowscodecs
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014700wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014701wine_fn_config_dll winealsa.drv enable_winealsa_drv
14702wine_fn_config_dll wineaudioio.drv enable_wineaudioio_drv
14703wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014704wine_fn_config_lib winecrt0
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014705wine_fn_config_dll wined3d enable_wined3d wined3d
14706wine_fn_config_dll wineesd.drv enable_wineesd_drv
14707wine_fn_config_dll winejack.drv enable_winejack_drv
14708wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
14709wine_fn_config_dll winemapi enable_winemapi
14710wine_fn_config_dll winemp3.acm enable_winemp3_acm
14711wine_fn_config_dll winenas.drv enable_winenas_drv
14712wine_fn_config_dll wineoss.drv enable_wineoss_drv
14713wine_fn_config_dll wineps.drv enable_wineps_drv
14714wine_fn_config_dll wineps16.drv16 enable_win16
14715wine_fn_config_dll winequartz.drv enable_winequartz_drv
14716wine_fn_config_dll winex11.drv enable_winex11_drv
14717wine_fn_config_dll wing.dll16 enable_win16
14718wine_fn_config_dll wing32 enable_wing32
14719wine_fn_config_dll winhttp enable_winhttp winhttp
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014720wine_fn_config_test dlls/winhttp/tests winhttp_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014721wine_fn_config_dll wininet enable_wininet wininet
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014722wine_fn_config_test dlls/wininet/tests wininet_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014723wine_fn_config_dll winmm enable_winmm winmm
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014724wine_fn_config_test dlls/winmm/tests winmm_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014725wine_fn_config_dll winnls.dll16 enable_win16
14726wine_fn_config_dll winnls32 enable_winnls32 winnls32
14727wine_fn_config_dll winscard enable_winscard winscard
14728wine_fn_config_dll winsock.dll16 enable_win16
14729wine_fn_config_dll winspool.drv enable_winspool_drv winspool
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014730wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014731wine_fn_config_dll wintab.dll16 enable_win16
14732wine_fn_config_dll wintab32 enable_wintab32 wintab32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014733wine_fn_config_test dlls/wintab32/tests wintab32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014734wine_fn_config_dll wintrust enable_wintrust wintrust
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014735wine_fn_config_test dlls/wintrust/tests wintrust_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014736wine_fn_config_dll wldap32 enable_wldap32 wldap32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014737wine_fn_config_test dlls/wldap32/tests wldap32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014738wine_fn_config_dll wmi enable_wmi
14739wine_fn_config_dll wmiutils enable_wmiutils
14740wine_fn_config_dll wnaspi32 enable_wnaspi32 wnaspi32
14741wine_fn_config_dll wow32 enable_win16 wow32
14742wine_fn_config_dll ws2_32 enable_ws2_32 ws2_32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014743wine_fn_config_test dlls/ws2_32/tests ws2_32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014744wine_fn_config_dll wsock32 enable_wsock32 wsock32
14745wine_fn_config_dll wtsapi32 enable_wtsapi32 wtsapi32
14746wine_fn_config_dll wuapi enable_wuapi
14747wine_fn_config_dll wuaueng enable_wuaueng
14748wine_fn_config_dll xinput1_1 enable_xinput1_1
14749wine_fn_config_dll xinput1_2 enable_xinput1_2
14750wine_fn_config_dll xinput1_3 enable_xinput1_3 xinput
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014751wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014752wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
14753wine_fn_config_dll xmllite enable_xmllite
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014754wine_fn_config_test dlls/xmllite/tests xmllite_test
Alexandre Julliard03642412010-03-20 15:24:22 +010014755wine_fn_config_makefile documentation enable_documentation
14756wine_fn_config_makefile fonts enable_fonts
14757wine_fn_config_makefile include enable_include
14758wine_fn_config_makefile libs/port enable_libs_port
14759wine_fn_config_makefile libs/wine enable_libs_wine
14760wine_fn_config_makefile libs/wpp enable_libs_wpp
14761wine_fn_config_makefile loader enable_loader
Alexandre Julliardd394e042010-03-20 14:53:39 +010014762wine_fn_config_program attrib enable_attrib install
14763wine_fn_config_program cacls enable_cacls install
14764wine_fn_config_program clock enable_clock install
14765wine_fn_config_program cmd enable_cmd install
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014766wine_fn_config_test programs/cmd/tests cmd.exe_test
Alexandre Julliardd394e042010-03-20 14:53:39 +010014767wine_fn_config_program cmdlgtst enable_cmdlgtst
14768wine_fn_config_program control enable_control install
14769wine_fn_config_program dxdiag enable_dxdiag install
14770wine_fn_config_program eject enable_eject install
14771wine_fn_config_program expand enable_expand install
14772wine_fn_config_program explorer enable_explorer install
14773wine_fn_config_program extrac32 enable_extrac32 install
14774wine_fn_config_program hh enable_hh install
14775wine_fn_config_program icinfo enable_icinfo install
14776wine_fn_config_program iexplore enable_iexplore install
14777wine_fn_config_program lodctr enable_lodctr install
14778wine_fn_config_program mshta enable_mshta install
14779wine_fn_config_program msiexec enable_msiexec installbin
14780wine_fn_config_program net enable_net install
Vincent Povirk4d3e6f42010-04-02 10:19:18 -050014781wine_fn_config_program ngen enable_ngen install
Alexandre Julliardd394e042010-03-20 14:53:39 +010014782wine_fn_config_program notepad enable_notepad installbin
14783wine_fn_config_program oleview enable_oleview install
14784wine_fn_config_program ping enable_ping install
14785wine_fn_config_program progman enable_progman install
14786wine_fn_config_program reg enable_reg install
14787wine_fn_config_program regedit enable_regedit installbin
14788wine_fn_config_program regsvr32 enable_regsvr32 installbin
14789wine_fn_config_program rpcss enable_rpcss install
14790wine_fn_config_program rundll32 enable_rundll32 install
Hans Leidekker544da282010-05-03 12:56:58 +020014791wine_fn_config_program sc enable_sc install
Alexandre Julliardd394e042010-03-20 14:53:39 +010014792wine_fn_config_program secedit enable_secedit install
14793wine_fn_config_program services enable_services install
14794wine_fn_config_program spoolsv enable_spoolsv install
14795wine_fn_config_program start enable_start install
14796wine_fn_config_program svchost enable_svchost install
14797wine_fn_config_program taskmgr enable_taskmgr install
14798wine_fn_config_program termsv enable_termsv install
14799wine_fn_config_program uninstaller enable_uninstaller install
14800wine_fn_config_program unlodctr enable_unlodctr install
14801wine_fn_config_program view enable_view
14802wine_fn_config_program wineboot enable_wineboot installbin
14803wine_fn_config_program winebrowser enable_winebrowser install
14804wine_fn_config_program winecfg enable_winecfg installbin
14805wine_fn_config_program wineconsole enable_wineconsole installbin
14806wine_fn_config_program winedbg enable_winedbg installbin
14807wine_fn_config_program winedevice enable_winedevice install
14808wine_fn_config_program winefile enable_winefile installbin
14809wine_fn_config_program winemenubuilder enable_winemenubuilder install
14810wine_fn_config_program winemine enable_winemine installbin
14811wine_fn_config_program winepath enable_winepath installbin
14812wine_fn_config_program winetest enable_winetest
14813wine_fn_config_program winevdm enable_win16 install
14814wine_fn_config_program winhelp.exe16 enable_win16 install
14815wine_fn_config_program winhlp32 enable_winhlp32 install
14816wine_fn_config_program winoldap.mod16 enable_win16 install
14817wine_fn_config_program winver enable_winver install
14818wine_fn_config_program wordpad enable_wordpad install
14819wine_fn_config_program write enable_write install
14820wine_fn_config_program xcopy enable_xcopy install
Alexandre Julliard03642412010-03-20 15:24:22 +010014821wine_fn_config_makefile server enable_server
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010014822wine_fn_config_tool tools
14823wine_fn_config_tool tools/widl
14824wine_fn_config_tool tools/winebuild
14825wine_fn_config_tool tools/winedump
14826wine_fn_config_tool tools/winegcc
14827wine_fn_config_tool tools/wmc
14828wine_fn_config_tool tools/wrc
Alexandre Julliard626f4252000-11-10 23:35:20 +000014829
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014830ac_config_commands="$ac_config_commands Makefile"
14831
14832
14833ac_config_files="$ac_config_files Make.tmp:Makefile.in"
Alexandre Julliard92b57312010-03-22 20:25:30 +010014834
14835
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020014836
14837if test -n "$with_wine64"
14838then
Alexandre Julliardf3831cf2010-05-16 17:01:52 +020014839wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server $with_wine64/loader/wine
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020014840fonts server:
14841 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
Alexandre Julliardf3831cf2010-05-16 17:01:52 +020014842$with_wine64/loader/wine:
14843 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020014844clean::
Alexandre Julliardf3831cf2010-05-16 17:01:52 +020014845 \$(RM) fonts server $with_wine64/loader/wine"
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020014846fi
14847
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014848wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall::
14849 -rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)"
14850
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014851cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014852# This file is a shell script that caches the results of configure
14853# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014854# scripts and configure runs, see configure's option --config-cache.
14855# It is not useful on other systems. If it contains results you don't
14856# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014857#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014858# config.status only pays attention to the cache file if you give it
14859# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014860#
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014861# `ac_cv_env_foo' variables (set or unset) will be overridden when
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014862# loading this file, other *unset* `ac_cv_foo' will be assigned the
14863# following values.
14864
14865_ACEOF
14866
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000014867# The following way of writing the cache mishandles newlines in values,
14868# but we know of no workaround that is simple, portable, and efficient.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014869# So, we kill variables containing newlines.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014870# Ultrix sh set writes to stderr and can't be redirected directly,
14871# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014872(
14873 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14874 eval ac_val=\$$ac_var
14875 case $ac_val in #(
14876 *${as_nl}*)
14877 case $ac_var in #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014878 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014879$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014880 esac
14881 case $ac_var in #(
14882 _ | IFS | as_nl) ;; #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010014883 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014884 *) { eval $ac_var=; unset $ac_var;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014885 esac ;;
14886 esac
14887 done
14888
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014889 (set) 2>&1 |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014890 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14891 *${as_nl}ac_space=\ *)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014892 # `set' does not quote correctly, so add quotes: double-quote
14893 # substitution turns \\\\ into \\, and sed turns \\ into \.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014894 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +000014895 "s/'/'\\\\''/g;
14896 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014897 ;; #(
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014898 *)
14899 # `set' quotes correctly as required by POSIX, so do not add quotes.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014900 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014901 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014902 esac |
14903 sort
14904) |
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014905 sed '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014906 /^ac_cv_env_/b end
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014907 t clear
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014908 :clear
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014909 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14910 t end
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014911 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14912 :end' >>confcache
Jeremy White0ebeb532006-06-20 13:18:41 +020014913if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14914 if test -w "$cache_file"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014915 test "x$cache_file" != "x/dev/null" &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014916 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014917$as_echo "$as_me: updating cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014918 cat confcache >$cache_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014919 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014920 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014921$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014922 fi
14923fi
14924rm -f confcache
14925
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014926test "x$prefix" = xNONE && prefix=$ac_default_prefix
14927# Let make expand exec_prefix.
14928test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14929
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014930DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014931
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014932ac_libobjs=
14933ac_ltlibobjs=
14934for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14935 # 1. Remove the extension, and $U if already installed.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014936 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Alexandre Julliardabf50482008-10-31 12:56:53 +010014937 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014938 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14939 # will be set to the directory where LIBOBJS objects are built.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014940 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14941 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014942done
14943LIBOBJS=$ac_libobjs
14944
14945LTLIBOBJS=$ac_ltlibobjs
14946
14947
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014948
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014949: ${CONFIG_STATUS=./config.status}
Alexandre Julliardabf50482008-10-31 12:56:53 +010014950ac_write_fail=0
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014951ac_clean_files_save=$ac_clean_files
14952ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014953{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014954$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014955as_write_fail=0
14956cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014957#! $SHELL
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014958# Generated by $as_me.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014959# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014960# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014961# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014962
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014963debug=false
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014964ac_cs_recheck=false
14965ac_cs_silent=false
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014966
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014967SHELL=\${CONFIG_SHELL-$SHELL}
14968export SHELL
14969_ASEOF
14970cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14971## -------------------- ##
14972## M4sh Initialization. ##
14973## -------------------- ##
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014974
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010014975# Be more Bourne compatible
14976DUALCASE=1; export DUALCASE # for MKS sh
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014977if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014978 emulate sh
14979 NULLCMD=:
Alexandre Julliardabf50482008-10-31 12:56:53 +010014980 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014981 # is contrary to our usage. Disable this feature.
14982 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014983 setopt NO_GLOB_SUBST
14984else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014985 case `(set -o) 2>/dev/null` in #(
14986 *posix*) :
14987 set -o posix ;; #(
14988 *) :
14989 ;;
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010014990esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000014991fi
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010014992
14993
Alexandre Julliardabf50482008-10-31 12:56:53 +010014994as_nl='
14995'
14996export as_nl
14997# Printing a long string crashes Solaris 7 /usr/bin/printf.
14998as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14999as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15000as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015001# Prefer a ksh shell builtin over an external printf program on Solaris,
15002# but without wasting forks for bash or zsh.
15003if test -z "$BASH_VERSION$ZSH_VERSION" \
15004 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15005 as_echo='print -r --'
15006 as_echo_n='print -rn --'
15007elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015008 as_echo='printf %s\n'
15009 as_echo_n='printf %s'
15010else
15011 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15012 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15013 as_echo_n='/usr/ucb/echo -n'
15014 else
15015 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15016 as_echo_n_body='eval
15017 arg=$1;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015018 case $arg in #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010015019 *"$as_nl"*)
15020 expr "X$arg" : "X\\(.*\\)$as_nl";
15021 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15022 esac;
15023 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15024 '
15025 export as_echo_n_body
15026 as_echo_n='sh -c $as_echo_n_body as_echo'
15027 fi
15028 export as_echo_body
15029 as_echo='sh -c $as_echo_body as_echo'
15030fi
15031
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015032# The user is always right.
15033if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015034 PATH_SEPARATOR=:
15035 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15036 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15037 PATH_SEPARATOR=';'
15038 }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015039fi
15040
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015041
15042# IFS
15043# We need space, tab and new line, in precisely that order. Quoting is
15044# there to prevent editors from complaining about space-tab.
15045# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15046# splitting by setting IFS to empty value.)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015047IFS=" "" $as_nl"
15048
15049# Find who we are. Look in the path if we contain no directory separator.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015050case $0 in #((
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015051 *[\\/]* ) as_myself=$0 ;;
15052 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015053for as_dir in $PATH
15054do
15055 IFS=$as_save_IFS
15056 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015057 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15058 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015059IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015060
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015061 ;;
15062esac
15063# We did not find ourselves, most probably we were run as `sh COMMAND'
15064# in which case we are not to be found in the path.
15065if test "x$as_myself" = x; then
15066 as_myself=$0
15067fi
15068if test ! -f "$as_myself"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015069 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015070 exit 1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015071fi
15072
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015073# Unset variables that we do not need and which cause bugs (e.g. in
15074# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15075# suppresses any "Segmentation fault" message there. '((' could
15076# trigger a bug in pdksh 5.2.14.
15077for as_var in BASH_ENV ENV MAIL MAILPATH
15078do eval test x\${$as_var+set} = xset \
15079 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015080done
15081PS1='$ '
15082PS2='> '
15083PS4='+ '
15084
15085# NLS nuisances.
Alexandre Julliardabf50482008-10-31 12:56:53 +010015086LC_ALL=C
15087export LC_ALL
15088LANGUAGE=C
15089export LANGUAGE
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015090
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015091# CDPATH.
15092(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15093
15094
15095# as_fn_error ERROR [LINENO LOG_FD]
15096# ---------------------------------
15097# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15098# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15099# script with status $?, using 1 if that was 0.
15100as_fn_error ()
15101{
15102 as_status=$?; test $as_status -eq 0 && as_status=1
15103 if test "$3"; then
15104 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15105 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15106 fi
15107 $as_echo "$as_me: error: $1" >&2
15108 as_fn_exit $as_status
15109} # as_fn_error
15110
15111
15112# as_fn_set_status STATUS
15113# -----------------------
15114# Set $? to STATUS, without forking.
15115as_fn_set_status ()
15116{
15117 return $1
15118} # as_fn_set_status
15119
15120# as_fn_exit STATUS
15121# -----------------
15122# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15123as_fn_exit ()
15124{
15125 set +e
15126 as_fn_set_status $1
15127 exit $1
15128} # as_fn_exit
15129
15130# as_fn_unset VAR
15131# ---------------
15132# Portably unset VAR.
15133as_fn_unset ()
15134{
15135 { eval $1=; unset $1;}
15136}
15137as_unset=as_fn_unset
15138# as_fn_append VAR VALUE
15139# ----------------------
15140# Append the text in VALUE to the end of the definition contained in VAR. Take
15141# advantage of any shell optimizations that allow amortized linear growth over
15142# repeated appends, instead of the typical quadratic growth present in naive
15143# implementations.
15144if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15145 eval 'as_fn_append ()
15146 {
15147 eval $1+=\$2
15148 }'
15149else
15150 as_fn_append ()
15151 {
15152 eval $1=\$$1\$2
15153 }
15154fi # as_fn_append
15155
15156# as_fn_arith ARG...
15157# ------------------
15158# Perform arithmetic evaluation on the ARGs, and store the result in the
15159# global $as_val. Take advantage of shells that can avoid forks. The arguments
15160# must be portable across $(()) and expr.
15161if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15162 eval 'as_fn_arith ()
15163 {
15164 as_val=$(( $* ))
15165 }'
15166else
15167 as_fn_arith ()
15168 {
15169 as_val=`expr "$@" || test $? -eq 1`
15170 }
15171fi # as_fn_arith
15172
15173
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015174if expr a : '\(a\)' >/dev/null 2>&1 &&
15175 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15176 as_expr=expr
15177else
15178 as_expr=false
15179fi
15180
15181if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15182 as_basename=basename
15183else
15184 as_basename=false
15185fi
15186
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015187if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15188 as_dirname=dirname
15189else
15190 as_dirname=false
15191fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015192
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015193as_me=`$as_basename -- "$0" ||
15194$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15195 X"$0" : 'X\(//\)$' \| \
15196 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliardabf50482008-10-31 12:56:53 +010015197$as_echo X/"$0" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015198 sed '/^.*\/\([^/][^/]*\)\/*$/{
15199 s//\1/
15200 q
15201 }
15202 /^X\/\(\/\/\)$/{
15203 s//\1/
15204 q
15205 }
15206 /^X\/\(\/\).*/{
15207 s//\1/
15208 q
15209 }
15210 s/.*/./; q'`
15211
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015212# Avoid depending upon Character Ranges.
15213as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15214as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15215as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15216as_cr_digits='0123456789'
15217as_cr_alnum=$as_cr_Letters$as_cr_digits
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015218
15219ECHO_C= ECHO_N= ECHO_T=
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015220case `echo -n x` in #(((((
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015221-n*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015222 case `echo 'xy\c'` in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015223 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015224 xy) ECHO_C='\c';;
15225 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15226 ECHO_T=' ';;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015227 esac;;
15228*)
15229 ECHO_N='-n';;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015230esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015231
15232rm -f conf$$ conf$$.exe conf$$.file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015233if test -d conf$$.dir; then
15234 rm -f conf$$.dir/conf$$.file
15235else
15236 rm -f conf$$.dir
Alexandre Julliardabf50482008-10-31 12:56:53 +010015237 mkdir conf$$.dir 2>/dev/null
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015238fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010015239if (echo >conf$$.file) 2>/dev/null; then
15240 if ln -s conf$$.file conf$$ 2>/dev/null; then
15241 as_ln_s='ln -s'
15242 # ... but there are two gotchas:
15243 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15244 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15245 # In both cases, we have to default to `cp -p'.
15246 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15247 as_ln_s='cp -p'
15248 elif ln conf$$.file conf$$ 2>/dev/null; then
15249 as_ln_s=ln
15250 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015251 as_ln_s='cp -p'
Alexandre Julliardabf50482008-10-31 12:56:53 +010015252 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015253else
15254 as_ln_s='cp -p'
15255fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015256rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15257rmdir conf$$.dir 2>/dev/null
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015258
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015259
15260# as_fn_mkdir_p
15261# -------------
15262# Create "$as_dir" as a directory, including parents if necessary.
15263as_fn_mkdir_p ()
15264{
15265
15266 case $as_dir in #(
15267 -*) as_dir=./$as_dir;;
15268 esac
15269 test -d "$as_dir" || eval $as_mkdir_p || {
15270 as_dirs=
15271 while :; do
15272 case $as_dir in #(
15273 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15274 *) as_qdir=$as_dir;;
15275 esac
15276 as_dirs="'$as_qdir' $as_dirs"
15277 as_dir=`$as_dirname -- "$as_dir" ||
15278$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15279 X"$as_dir" : 'X\(//\)[^/]' \| \
15280 X"$as_dir" : 'X\(//\)$' \| \
15281 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15282$as_echo X"$as_dir" |
15283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15284 s//\1/
15285 q
15286 }
15287 /^X\(\/\/\)[^/].*/{
15288 s//\1/
15289 q
15290 }
15291 /^X\(\/\/\)$/{
15292 s//\1/
15293 q
15294 }
15295 /^X\(\/\).*/{
15296 s//\1/
15297 q
15298 }
15299 s/.*/./; q'`
15300 test -d "$as_dir" && break
15301 done
15302 test -z "$as_dirs" || eval "mkdir $as_dirs"
15303 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15304
15305
15306} # as_fn_mkdir_p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015307if mkdir -p . 2>/dev/null; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015308 as_mkdir_p='mkdir -p "$as_dir"'
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015309else
Alexandre Julliard875927f2004-01-02 01:55:29 +000015310 test -d ./-p && rmdir ./-p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015311 as_mkdir_p=false
15312fi
15313
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015314if test -x / >/dev/null 2>&1; then
15315 as_test_x='test -x'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015316else
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015317 if ls -dL / >/dev/null 2>&1; then
15318 as_ls_L_option=L
15319 else
15320 as_ls_L_option=
15321 fi
15322 as_test_x='
15323 eval sh -c '\''
15324 if test -d "$1"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015325 test -d "$1/.";
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015326 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015327 case $1 in #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010015328 -*)set "./$1";;
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015329 esac;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015330 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015331 ???[sx]*):;;*)false;;esac;fi
15332 '\'' sh
15333 '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015334fi
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015335as_executable_p=$as_test_x
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015336
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015337# Sed expression to map a string onto a valid CPP name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000015338as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015339
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015340# Sed expression to map a string onto a valid variable name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000015341as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015342
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015343
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015344exec 6>&1
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015345## ----------------------------------- ##
15346## Main body of $CONFIG_STATUS script. ##
15347## ----------------------------------- ##
15348_ASEOF
15349test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015350
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015351cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15352# Save the log message, to keep $0 and so on meaningful, and to
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015353# report actual input values of CONFIG_FILES etc. instead of their
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015354# values after options handling.
15355ac_log="
Alexandre Julliard65174622010-06-11 19:40:31 +020015356This file was extended by Wine $as_me 1.2-rc3, which was
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010015357generated by GNU Autoconf 2.65. Invocation command line was
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015358
15359 CONFIG_FILES = $CONFIG_FILES
15360 CONFIG_HEADERS = $CONFIG_HEADERS
15361 CONFIG_LINKS = $CONFIG_LINKS
15362 CONFIG_COMMANDS = $CONFIG_COMMANDS
15363 $ $0 $@
15364
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015365on `(hostname || uname -n) 2>/dev/null | sed 1q`
15366"
15367
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015368_ACEOF
15369
Alexandre Julliardabf50482008-10-31 12:56:53 +010015370case $ac_config_files in *"
15371"*) set x $ac_config_files; shift; ac_config_files=$*;;
15372esac
15373
15374case $ac_config_headers in *"
15375"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15376esac
15377
15378
15379cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015380# Files that config.status was made for.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015381config_files="$ac_config_files"
15382config_headers="$ac_config_headers"
Alexandre Julliard7d020c92010-02-03 13:12:12 +010015383config_links="$ac_config_links"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015384config_commands="$ac_config_commands"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015385
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015386_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015387
Alexandre Julliardabf50482008-10-31 12:56:53 +010015388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015389ac_cs_usage="\
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015390\`$as_me' instantiates files and other configuration actions
15391from templates according to the current configuration. Unless the files
15392and actions are specified as TAGs, all are instantiated by default.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015393
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015394Usage: $0 [OPTION]... [TAG]...
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015395
15396 -h, --help print this help, then exit
Alexandre Julliard78bd1942006-08-14 20:42:56 +020015397 -V, --version print version number and configuration settings, then exit
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010015398 --config print configuration, then exit
Alexandre Julliardabf50482008-10-31 12:56:53 +010015399 -q, --quiet, --silent
15400 do not print progress messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015401 -d, --debug don't remove temporary files
15402 --recheck update $as_me by reconfiguring in the same conditions
Alexandre Julliardabf50482008-10-31 12:56:53 +010015403 --file=FILE[:TEMPLATE]
15404 instantiate the configuration file FILE
15405 --header=FILE[:TEMPLATE]
15406 instantiate the configuration header FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015407
15408Configuration files:
15409$config_files
15410
15411Configuration headers:
15412$config_headers
15413
Alexandre Julliard7d020c92010-02-03 13:12:12 +010015414Configuration links:
15415$config_links
15416
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015417Configuration commands:
15418$config_commands
15419
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015420Report bugs to <wine-devel@winehq.org>.
15421Wine home page: <http://www.winehq.org>."
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000015422
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015423_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010015424cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010015425ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015426ac_cs_version="\\
Alexandre Julliard65174622010-06-11 19:40:31 +020015427Wine config.status 1.2-rc3
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010015428configured by $0, generated by GNU Autoconf 2.65,
15429 with options \\"\$ac_cs_config\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015430
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015431Copyright (C) 2009 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015432This config.status script is free software; the Free Software Foundation
15433gives unlimited permission to copy, distribute and modify it."
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015434
15435ac_pwd='$ac_pwd'
15436srcdir='$srcdir'
15437INSTALL='$INSTALL'
Alexandre Julliardabf50482008-10-31 12:56:53 +010015438test -n "\$AWK" || AWK=awk
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015439_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015440
Alexandre Julliardabf50482008-10-31 12:56:53 +010015441cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15442# The default lists apply if the user does not specify any file.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015443ac_need_defaults=:
15444while test $# != 0
15445do
15446 case $1 in
15447 --*=*)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015448 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15449 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015450 ac_shift=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015451 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015452 *)
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015453 ac_option=$1
15454 ac_optarg=$2
15455 ac_shift=shift
15456 ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015457 esac
15458
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015459 case $ac_option in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015460 # Handling of the options.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015461 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15462 ac_cs_recheck=: ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015463 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Alexandre Julliardabf50482008-10-31 12:56:53 +010015464 $as_echo "$ac_cs_version"; exit ;;
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010015465 --config | --confi | --conf | --con | --co | --c )
15466 $as_echo "$ac_cs_config"; exit ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015467 --debug | --debu | --deb | --de | --d | -d )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015468 debug=: ;;
15469 --file | --fil | --fi | --f )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015470 $ac_shift
Alexandre Julliardabf50482008-10-31 12:56:53 +010015471 case $ac_optarg in
15472 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15473 esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015474 as_fn_append CONFIG_FILES " '$ac_optarg'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015475 ac_need_defaults=false;;
15476 --header | --heade | --head | --hea )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015477 $ac_shift
Alexandre Julliardabf50482008-10-31 12:56:53 +010015478 case $ac_optarg in
15479 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15480 esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015481 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015482 ac_need_defaults=false;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015483 --he | --h)
15484 # Conflict between --help and --header
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015485 as_fn_error "ambiguous option: \`$1'
15486Try \`$0 --help' for more information.";;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015487 --help | --hel | -h )
Alexandre Julliardabf50482008-10-31 12:56:53 +010015488 $as_echo "$ac_cs_usage"; exit ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015489 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15490 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15491 ac_cs_silent=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015492
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015493 # This is an error.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015494 -*) as_fn_error "unrecognized option: \`$1'
15495Try \`$0 --help' for more information." ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015496
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015497 *) as_fn_append ac_config_targets " $1"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015498 ac_need_defaults=false ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015499
15500 esac
15501 shift
15502done
15503
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015504ac_configure_extra_args=
15505
15506if $ac_cs_silent; then
15507 exec 6>/dev/null
15508 ac_configure_extra_args="$ac_configure_extra_args --silent"
15509fi
15510
15511_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010015512cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015513if \$ac_cs_recheck; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015514 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15515 shift
15516 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15517 CONFIG_SHELL='$SHELL'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015518 export CONFIG_SHELL
Alexandre Julliardabf50482008-10-31 12:56:53 +010015519 exec "\$@"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015520fi
15521
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015522_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010015523cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015524exec 5>>config.log
15525{
15526 echo
15527 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15528## Running $as_me. ##
15529_ASBOX
Alexandre Julliardabf50482008-10-31 12:56:53 +010015530 $as_echo "$ac_log"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015531} >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015532
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015533_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010015534cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010015535#
15536# INIT-COMMANDS
15537#
15538wine_fn_output_makefile ()
15539{
15540 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
15541$ALL_MAKEFILE_DEPENDS
15542_WINE_EOF
15543 as_fn_error "could not create Makefile" "$LINENO" 5
15544}
15545
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015546_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015547
Alexandre Julliardabf50482008-10-31 12:56:53 +010015548cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015549
15550# Handling of arguments.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015551for ac_config_target in $ac_config_targets
15552do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015553 case $ac_config_target in
15554 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
Alexandre Julliardc4704c22006-09-22 09:33:00 +020015555 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
Alexandre Julliarda6320522010-02-03 13:14:03 +010015556 "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 +010015557 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
15558 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
15559 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
15560 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
Alexandre Julliard321d3882010-05-06 20:51:53 +020015561 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
Alexandre Julliard7d020c92010-02-03 13:12:12 +010015562 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020015563 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
15564 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
Alexandre Julliard1c60e3b2006-09-12 16:10:51 +020015565 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
Alexandre Julliardb8a2e3b2006-11-16 14:49:25 +010015566 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015567 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
15568 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
15569 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
Alexandre Julliardcb1fc8f2010-02-10 11:18:58 +010015570 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015571 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
15572 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015573 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010015574 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
15575 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Makefile.in" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015576
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015577 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015578 esac
15579done
15580
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015581
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015582# If the user did not use the arguments to specify the items to instantiate,
15583# then the envvar interface is used. Set only those that are not.
15584# We use the long form for the default assignment because of an extremely
15585# bizarre bug on SunOS 4.1.3.
15586if $ac_need_defaults; then
15587 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15588 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Alexandre Julliard7d020c92010-02-03 13:12:12 +010015589 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015590 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15591fi
15592
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015593# Have a temporary directory for convenience. Make it in the build tree
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015594# simply because there is no reason against having it here, and in addition,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015595# creating and moving files from /tmp can sometimes cause problems.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015596# Hook for its removal unless debugging.
15597# Note that there is a small window in which the directory will not be cleaned:
15598# after its creation but before its name has been assigned to `$tmp'.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015599$debug ||
15600{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015601 tmp=
15602 trap 'exit_status=$?
15603 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15604' 0
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015605 trap 'as_fn_exit 1' 1 2 13 15
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015606}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015607# Create a (secure) tmp directory for tmp files.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015608
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015609{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015610 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015611 test -n "$tmp" && test -d "$tmp"
15612} ||
15613{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015614 tmp=./conf$$-$RANDOM
15615 (umask 077 && mkdir "$tmp")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015616} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015617
Alexandre Julliardabf50482008-10-31 12:56:53 +010015618# Set up the scripts for CONFIG_FILES section.
15619# No need to generate them if there are no CONFIG_FILES.
15620# This happens for instance with `./config.status config.h'.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015621if test -n "$CONFIG_FILES"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015622
Alexandre Julliardabf50482008-10-31 12:56:53 +010015623if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15624 ac_cs_awk_getline=:
15625 ac_cs_awk_pipe_init=
15626 ac_cs_awk_read_file='
15627 while ((getline aline < (F[key])) > 0)
15628 print(aline)
15629 close(F[key])'
15630 ac_cs_awk_pipe_fini=
15631else
15632 ac_cs_awk_getline=false
15633 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15634 ac_cs_awk_read_file='
15635 print "|#_!!_#|"
15636 print "cat " F[key] " &&"
15637 '$ac_cs_awk_pipe_init
15638 # The final `:' finishes the AND list.
15639 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15640fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015641ac_cr=`echo X | tr X '\015'`
15642# On cygwin, bash can eat \r inside `` if the user requested igncr.
15643# But we know of no other shell where ac_cr would be empty at this
15644# point, so we can use a bashism as a fallback.
15645if test "x$ac_cr" = x; then
15646 eval ac_cr=\$\'\\r\'
15647fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010015648ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15649if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015650 ac_cs_awk_cr='\r'
Alexandre Julliardabf50482008-10-31 12:56:53 +010015651else
15652 ac_cs_awk_cr=$ac_cr
15653fi
15654
15655echo 'BEGIN {' >"$tmp/subs1.awk" &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015656_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015657
Alexandre Julliardabf50482008-10-31 12:56:53 +010015658# Create commands to substitute file output variables.
15659{
15660 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15661 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15662 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15663 echo "_ACAWK" &&
15664 echo "_ACEOF"
15665} >conf$$files.sh &&
15666. ./conf$$files.sh ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015667 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015668rm -f conf$$files.sh
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015669
Alexandre Julliardabf50482008-10-31 12:56:53 +010015670{
15671 echo "cat >conf$$subs.awk <<_ACEOF" &&
15672 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15673 echo "_ACEOF"
15674} >conf$$subs.sh ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015675 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015676ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015677ac_delim='%!_!# '
15678for ac_last_try in false false false false false :; do
Alexandre Julliardabf50482008-10-31 12:56:53 +010015679 . ./conf$$subs.sh ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015680 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015681
Alexandre Julliardabf50482008-10-31 12:56:53 +010015682 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15683 if test $ac_delim_n = $ac_delim_num; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015684 break
15685 elif $ac_last_try; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015686 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015687 else
15688 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015689 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015690done
Alexandre Julliardabf50482008-10-31 12:56:53 +010015691rm -f conf$$subs.sh
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015692
Alexandre Julliardabf50482008-10-31 12:56:53 +010015693cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15694cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015695_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010015696sed -n '
15697h
15698s/^/S["/; s/!.*/"]=/
15699p
15700g
15701s/^[^!]*!//
15702:repl
15703t repl
15704s/'"$ac_delim"'$//
15705t delim
15706:nl
15707h
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010015708s/\(.\{148\}\)..*/\1/
Alexandre Julliardabf50482008-10-31 12:56:53 +010015709t more1
15710s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15711p
15712n
15713b repl
15714:more1
15715s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15716p
15717g
15718s/.\{148\}//
15719t nl
15720:delim
15721h
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010015722s/\(.\{148\}\)..*/\1/
Alexandre Julliardabf50482008-10-31 12:56:53 +010015723t more2
15724s/["\\]/\\&/g; s/^/"/; s/$/"/
15725p
15726b
15727:more2
15728s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15729p
15730g
15731s/.\{148\}//
15732t delim
15733' <conf$$subs.awk | sed '
15734/^[^""]/{
15735 N
15736 s/\n//
15737}
15738' >>$CONFIG_STATUS || ac_write_fail=1
15739rm -f conf$$subs.awk
15740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15741_ACAWK
15742cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15743 for (key in S) S_is_set[key] = 1
15744 FS = ""
15745 \$ac_cs_awk_pipe_init
15746}
15747{
15748 line = $ 0
15749 nfields = split(line, field, "@")
15750 substed = 0
15751 len = length(field[1])
15752 for (i = 2; i < nfields; i++) {
15753 key = field[i]
15754 keylen = length(key)
15755 if (S_is_set[key]) {
15756 value = S[key]
15757 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15758 len += length(value) + length(field[++i])
15759 substed = 1
15760 } else
15761 len += 1 + keylen
15762 }
15763 if (nfields == 3 && !substed) {
15764 key = field[2]
15765 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15766 \$ac_cs_awk_read_file
15767 next
15768 }
15769 }
15770 print line
15771}
15772\$ac_cs_awk_pipe_fini
15773_ACAWK
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015774_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010015775cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15776if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15777 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15778else
15779 cat
15780fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015781 || as_fn_error "could not setup config files machinery" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015782_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015783
15784# VPATH may cause trouble with some makes, so we remove $(srcdir),
15785# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15786# trailing colons and then remove the whole line if VPATH becomes empty
15787# (actually we leave an empty line to preserve line numbers).
15788if test "x$srcdir" = x.; then
15789 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15790s/:*\$(srcdir):*/:/
15791s/:*\${srcdir}:*/:/
15792s/:*@srcdir@:*/:/
15793s/^\([^=]*=[ ]*\):*/\1/
15794s/:*$//
15795s/^[^=]*=[ ]*$//
15796}'
15797fi
15798
Alexandre Julliardabf50482008-10-31 12:56:53 +010015799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015800fi # test -n "$CONFIG_FILES"
15801
Alexandre Julliardabf50482008-10-31 12:56:53 +010015802# Set up the scripts for CONFIG_HEADERS section.
15803# No need to generate them if there are no CONFIG_HEADERS.
15804# This happens for instance with `./config.status Makefile'.
15805if test -n "$CONFIG_HEADERS"; then
15806cat >"$tmp/defines.awk" <<\_ACAWK ||
15807BEGIN {
15808_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015809
Alexandre Julliardabf50482008-10-31 12:56:53 +010015810# Transform confdefs.h into an awk script `defines.awk', embedded as
15811# here-document in config.status, that substitutes the proper values into
15812# config.h.in to produce config.h.
15813
15814# Create a delimiter string that does not exist in confdefs.h, to ease
15815# handling of long lines.
15816ac_delim='%!_!# '
15817for ac_last_try in false false :; do
15818 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15819 if test -z "$ac_t"; then
15820 break
15821 elif $ac_last_try; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015822 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015823 else
15824 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15825 fi
15826done
15827
15828# For the awk script, D is an array of macro values keyed by name,
15829# likewise P contains macro parameters if any. Preserve backslash
15830# newline sequences.
15831
15832ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15833sed -n '
15834s/.\{148\}/&'"$ac_delim"'/g
15835t rset
15836:rset
15837s/^[ ]*#[ ]*define[ ][ ]*/ /
15838t def
15839d
15840:def
15841s/\\$//
15842t bsnl
15843s/["\\]/\\&/g
15844s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15845D["\1"]=" \3"/p
15846s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15847d
15848:bsnl
15849s/["\\]/\\&/g
15850s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15851D["\1"]=" \3\\\\\\n"\\/p
15852t cont
15853s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15854t cont
15855d
15856:cont
15857n
15858s/.\{148\}/&'"$ac_delim"'/g
15859t clear
15860:clear
15861s/\\$//
15862t bsnlc
15863s/["\\]/\\&/g; s/^/"/; s/$/"/p
15864d
15865:bsnlc
15866s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15867b cont
15868' <confdefs.h | sed '
15869s/'"$ac_delim"'/"\\\
15870"/g' >>$CONFIG_STATUS || ac_write_fail=1
15871
15872cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15873 for (key in D) D_is_set[key] = 1
15874 FS = ""
15875}
15876/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15877 line = \$ 0
15878 split(line, arg, " ")
15879 if (arg[1] == "#") {
15880 defundef = arg[2]
15881 mac1 = arg[3]
15882 } else {
15883 defundef = substr(arg[1], 2)
15884 mac1 = arg[2]
15885 }
15886 split(mac1, mac2, "(") #)
15887 macro = mac2[1]
15888 prefix = substr(line, 1, index(line, defundef) - 1)
15889 if (D_is_set[macro]) {
15890 # Preserve the white space surrounding the "#".
15891 print prefix "define", macro P[macro] D[macro]
15892 next
15893 } else {
15894 # Replace #undef with comments. This is necessary, for example,
15895 # in the case of _POSIX_SOURCE, which is predefined and required
15896 # on some systems where configure will not decide to define it.
15897 if (defundef == "undef") {
15898 print "/*", prefix defundef, macro, "*/"
15899 next
15900 }
15901 }
15902}
15903{ print }
15904_ACAWK
15905_ACEOF
15906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015907 as_fn_error "could not setup config headers machinery" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015908fi # test -n "$CONFIG_HEADERS"
15909
15910
Alexandre Julliard7d020c92010-02-03 13:12:12 +010015911eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
Alexandre Julliardabf50482008-10-31 12:56:53 +010015912shift
15913for ac_tag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015914do
15915 case $ac_tag in
15916 :[FHLC]) ac_mode=$ac_tag; continue;;
15917 esac
15918 case $ac_mode$ac_tag in
15919 :[FHL]*:*);;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015920 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015921 :[FH]-) ac_tag=-:-;;
15922 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15923 esac
15924 ac_save_IFS=$IFS
15925 IFS=:
15926 set x $ac_tag
15927 IFS=$ac_save_IFS
15928 shift
15929 ac_file=$1
15930 shift
15931
15932 case $ac_mode in
15933 :L) ac_source=$1;;
15934 :[FH])
15935 ac_file_inputs=
15936 for ac_f
15937 do
15938 case $ac_f in
15939 -) ac_f="$tmp/stdin";;
15940 *) # Look for the file first in the build tree, then in the source tree
15941 # (if the path is not absolute). The absolute path cannot be DOS-style,
15942 # because $ac_f cannot contain `:'.
15943 test -f "$ac_f" ||
15944 case $ac_f in
15945 [\\/$]*) false;;
15946 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15947 esac ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015948 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015949 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +010015950 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015951 as_fn_append ac_file_inputs " '$ac_f'"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015952 done
15953
15954 # Let's still pretend it is `configure' which instantiates (i.e., don't
15955 # use $as_me), people would be surprised to read:
15956 # /* config.h. Generated by config.status. */
Alexandre Julliardabf50482008-10-31 12:56:53 +010015957 configure_input='Generated from '`
15958 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15959 `' by configure.'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015960 if test x"$ac_file" != x-; then
15961 configure_input="$ac_file. $configure_input"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015962 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015963$as_echo "$as_me: creating $ac_file" >&6;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015964 fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010015965 # Neutralize special characters interpreted by sed in replacement strings.
15966 case $configure_input in #(
15967 *\&* | *\|* | *\\* )
15968 ac_sed_conf_input=`$as_echo "$configure_input" |
15969 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15970 *) ac_sed_conf_input=$configure_input;;
15971 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015972
15973 case $ac_tag in
Alexandre Julliardabf50482008-10-31 12:56:53 +010015974 *:-:* | *:-) cat >"$tmp/stdin" \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015975 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015976 esac
15977 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015978 esac
15979
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015980 ac_dir=`$as_dirname -- "$ac_file" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015981$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015982 X"$ac_file" : 'X\(//\)[^/]' \| \
15983 X"$ac_file" : 'X\(//\)$' \| \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015984 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliardabf50482008-10-31 12:56:53 +010015985$as_echo X"$ac_file" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15987 s//\1/
15988 q
15989 }
15990 /^X\(\/\/\)[^/].*/{
15991 s//\1/
15992 q
15993 }
15994 /^X\(\/\/\)$/{
15995 s//\1/
15996 q
15997 }
15998 /^X\(\/\).*/{
15999 s//\1/
16000 q
16001 }
16002 s/.*/./; q'`
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016003 as_dir="$ac_dir"; as_fn_mkdir_p
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016004 ac_builddir=.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016005
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016006case "$ac_dir" in
16007.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16008*)
Alexandre Julliardabf50482008-10-31 12:56:53 +010016009 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016010 # A ".." for each directory in $ac_dir_suffix.
Alexandre Julliardabf50482008-10-31 12:56:53 +010016011 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016012 case $ac_top_builddir_sub in
16013 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16014 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16015 esac ;;
16016esac
16017ac_abs_top_builddir=$ac_pwd
16018ac_abs_builddir=$ac_pwd$ac_dir_suffix
16019# for backward compatibility:
16020ac_top_builddir=$ac_top_build_prefix
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016021
16022case $srcdir in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016023 .) # We are building in place.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016024 ac_srcdir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016025 ac_top_srcdir=$ac_top_builddir_sub
16026 ac_abs_top_srcdir=$ac_pwd ;;
16027 [\\/]* | ?:[\\/]* ) # Absolute name.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016028 ac_srcdir=$srcdir$ac_dir_suffix;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016029 ac_top_srcdir=$srcdir
16030 ac_abs_top_srcdir=$srcdir ;;
16031 *) # Relative name.
16032 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16033 ac_top_srcdir=$ac_top_build_prefix$srcdir
16034 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016035esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016036ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Alexandre Julliard875927f2004-01-02 01:55:29 +000016037
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016038
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016039 case $ac_mode in
16040 :F)
16041 #
16042 # CONFIG_FILE
16043 #
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016044
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016045 case $INSTALL in
16046 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016047 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000016048 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016049_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016050
Alexandre Julliardabf50482008-10-31 12:56:53 +010016051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016052# If the template does not know about datarootdir, expand it.
16053# FIXME: This hack should be removed a few years after 2.60.
Jeremy White0ebeb532006-06-20 13:18:41 +020016054ac_datarootdir_hack=; ac_datarootdir_seen=
Alexandre Julliardabf50482008-10-31 12:56:53 +010016055ac_sed_dataroot='
16056/datarootdir/ {
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016057 p
16058 q
16059}
16060/@datadir@/p
16061/@docdir@/p
16062/@infodir@/p
16063/@localedir@/p
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016064/@mandir@/p'
Alexandre Julliardabf50482008-10-31 12:56:53 +010016065case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Jeremy White0ebeb532006-06-20 13:18:41 +020016066*datarootdir*) ac_datarootdir_seen=yes;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016067*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016068 { $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 +010016069$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016070_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016071cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016072 ac_datarootdir_hack='
16073 s&@datadir@&$datadir&g
16074 s&@docdir@&$docdir&g
16075 s&@infodir@&$infodir&g
16076 s&@localedir@&$localedir&g
16077 s&@mandir@&$mandir&g
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016078 s&\\\${datarootdir}&$datarootdir&g' ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016079esac
16080_ACEOF
16081
16082# Neutralize VPATH when `$srcdir' = `.'.
16083# Shell code in configure.ac might set extrasub.
16084# FIXME: do we really want to maintain this feature?
Alexandre Julliardabf50482008-10-31 12:56:53 +010016085cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16086ac_sed_extra="$ac_vpsub
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016087$extrasub
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016088_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016090:t
16091/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Alexandre Julliardabf50482008-10-31 12:56:53 +010016092s|@configure_input@|$ac_sed_conf_input|;t t
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016093s&@top_builddir@&$ac_top_builddir_sub&;t t
Alexandre Julliardabf50482008-10-31 12:56:53 +010016094s&@top_build_prefix@&$ac_top_build_prefix&;t t
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016095s&@srcdir@&$ac_srcdir&;t t
16096s&@abs_srcdir@&$ac_abs_srcdir&;t t
16097s&@top_srcdir@&$ac_top_srcdir&;t t
16098s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16099s&@builddir@&$ac_builddir&;t t
16100s&@abs_builddir@&$ac_abs_builddir&;t t
16101s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16102s&@INSTALL@&$ac_INSTALL&;t t
16103$ac_datarootdir_hack
Alexandre Julliardabf50482008-10-31 12:56:53 +010016104"
16105eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16106if $ac_cs_awk_getline; then
16107 $AWK -f "$tmp/subs.awk"
16108else
16109 $AWK -f "$tmp/subs.awk" | $SHELL
16110fi >$tmp/out \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016111 || as_fn_error "could not create $ac_file" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016112
Jeremy White0ebeb532006-06-20 13:18:41 +020016113test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16114 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
Alexandre Julliardf5f37a82006-06-27 16:41:43 +020016115 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Jeremy White0ebeb532006-06-20 13:18:41 +020016117which seems to be undefined. Please make sure it is defined." >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016118$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Jeremy White0ebeb532006-06-20 13:18:41 +020016119which seems to be undefined. Please make sure it is defined." >&2;}
16120
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016121 rm -f "$tmp/stdin"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016122 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +010016123 -) cat "$tmp/out" && rm -f "$tmp/out";;
16124 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16125 esac \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016126 || as_fn_error "could not create $ac_file" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016127 ;;
16128 :H)
16129 #
16130 # CONFIG_HEADER
16131 #
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016132 if test x"$ac_file" != x-; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010016133 {
16134 $as_echo "/* $configure_input */" \
16135 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16136 } >"$tmp/config.h" \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016137 || as_fn_error "could not create $ac_file" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016138 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016139 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016140$as_echo "$as_me: $ac_file is unchanged" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016141 else
Alexandre Julliardabf50482008-10-31 12:56:53 +010016142 rm -f "$ac_file"
16143 mv "$tmp/config.h" "$ac_file" \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016144 || as_fn_error "could not create $ac_file" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016145 fi
16146 else
Alexandre Julliardabf50482008-10-31 12:56:53 +010016147 $as_echo "/* $configure_input */" \
16148 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016149 || as_fn_error "could not create -" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016150 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016151 ;;
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016152 :L)
16153 #
16154 # CONFIG_LINK
16155 #
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016156
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016157 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16158 :
16159 else
16160 # Prefer the file from the source tree if names are identical.
16161 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16162 ac_source=$srcdir/$ac_source
16163 fi
16164
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16166$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16167
16168 if test ! -r "$ac_source"; then
16169 as_fn_error "$ac_source: file not found" "$LINENO" 5
16170 fi
16171 rm -f "$ac_file"
16172
16173 # Try a relative symlink, then a hard link, then a copy.
16174 case $srcdir in
16175 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16176 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16177 esac
16178 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16179 ln "$ac_source" "$ac_file" 2>/dev/null ||
16180 cp -p "$ac_source" "$ac_file" ||
16181 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16182 fi
16183 ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016184 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016185$as_echo "$as_me: executing $ac_file commands" >&6;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016186 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016187 esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016188
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016189
16190 case $ac_file$ac_mode in
Alexandre Julliardc4704c22006-09-22 09:33:00 +020016191 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
Alexandre Julliarda1c253e2010-02-11 20:26:35 +010016192 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
16193$as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
16194 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
16195$as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
16196 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
16197$as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
16198 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
16199$as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
16200 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
16201$as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
16202 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
16203$as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010016204 "Makefile":C) wine_fn_output_makefile Makefile ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016205
16206 esac
16207done # for ac_tag
16208
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000016209
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016210as_fn_exit 0
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016211_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016212ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016213
Alexandre Julliardabf50482008-10-31 12:56:53 +010016214test $ac_write_fail = 0 ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016215 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016216
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016217
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016218# configure is writing to config.log, and then calls config.status.
16219# config.status does its own redirection, appending to config.log.
16220# Unfortunately, on DOS this fails, as config.log is still kept open
16221# by configure, so config.status won't be able to write to it; its
16222# output is simply discarded. So we exec the FD to /dev/null,
16223# effectively closing config.log, so it can be properly (re)opened and
16224# appended to by config.status. When coming back to configure, we
16225# need to make the FD available again.
16226if test "$no_create" != yes; then
16227 ac_cs_success=:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016228 ac_config_status_args=
16229 test "$silent" = yes &&
16230 ac_config_status_args="$ac_config_status_args --quiet"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016231 exec 5>/dev/null
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016232 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016233 exec 5>>config.log
16234 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16235 # would make configure fail if this is the last instruction.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016236 $ac_cs_success || as_fn_exit $?
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016237fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010016238if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016240$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16241fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016242
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016243
Alexandre Julliarde3bd1112006-09-21 11:14:38 +020016244if test "$no_create" = "yes"
16245then
16246 exit 0
16247fi
16248
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016249ac_save_IFS="$IFS"
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010016250if test "x$wine_notices != "x; then
16251 echo >&6
Rafał Mużyło4736c992008-10-20 21:43:21 +020016252 IFS="|"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016253 for msg in $wine_notices; do
Rafał Mużyło4736c992008-10-20 21:43:21 +020016254 IFS="$ac_save_IFS"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016255 if test -n "$msg"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016256 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016257$as_echo "$as_me: $msg" >&6;}
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016258 fi
16259 done
16260fi
Rafał Mużyło4736c992008-10-20 21:43:21 +020016261IFS="|"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016262for msg in $wine_warnings; do
Rafał Mużyło4736c992008-10-20 21:43:21 +020016263 IFS="$ac_save_IFS"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016264 if test -n "$msg"; then
16265 echo >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016267$as_echo "$as_me: WARNING: $msg" >&2;}
Detlef Riekenberge84a3822006-08-21 05:28:17 +020016268 fi
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016269done
16270IFS="$ac_save_IFS"
Francois Gouget99d026f2005-03-19 17:08:18 +000016271
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010016272echo "
Alexandre Julliard64362ac2010-02-23 13:33:52 +010016273$as_me: Finished. Do '${ac_make}' to compile Wine.
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010016274" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016275