wined3d: Introduce a separate function for attaching depth / stencil renderbuffers.
[wine] / configure
CommitLineData
e2991ea7 1#! /bin/sh
e2991ea7 2# Guess values for system-dependent variables and create Makefiles.
8c00ee0b 3# Generated by GNU Autoconf 2.68 for Wine 1.3.26.
e2991ea7 4#
875927f6
AJ
5# Report bugs to <wine-devel@winehq.org>.
6#
fa8c4f76 7#
fc6ffb29 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
a53c44a6
AJ
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
fa8c4f76 11#
25e9e4f0 12#
e2991ea7
AJ
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
25e9e4f0
AJ
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
f5818d2f 18
dc9f3843
AJ
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
25e9e4f0 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
f5818d2f
AJ
22 emulate sh
23 NULLCMD=:
abf5048b 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11af04e3
AJ
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
fc6ffb29
AJ
27 setopt NO_GLOB_SUBST
28else
25e9e4f0
AJ
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
dc9f3843 34esac
f5818d2f 35fi
dc9f3843
AJ
36
37
abf5048b
AJ
38as_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
25e9e4f0
AJ
45# 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
abf5048b
AJ
52 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'
fc6ffb29 58 else
abf5048b
AJ
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
25e9e4f0 62 case $arg in #(
abf5048b
AJ
63 *"$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'
fc6ffb29 71 fi
abf5048b
AJ
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 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 }
fc6ffb29
AJ
83fi
84
11af04e3 85
fc6ffb29
AJ
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.)
fc6ffb29
AJ
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
9797da40 94as_myself=
25e9e4f0 95case $0 in #((
fc6ffb29
AJ
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
25e9e4f0
AJ
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
fc6ffb29
AJ
104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
abf5048b 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25e9e4f0 115 exit 1
fc6ffb29
AJ
116fi
117
25e9e4f0
AJ
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
fc6ffb29 125done
11af04e3
AJ
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
abf5048b
AJ
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
11af04e3 135
25e9e4f0
AJ
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180else
181 as_have_required=no
182fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203fi
204fi
205 done;;
206 esac
207 as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
9797da40 220 # Preserve -v and -x to the replacement shell.
25e9e4f0
AJ
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
9797da40
AJ
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
25e9e4f0
AJ
232fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: wine-devel@winehq.org about your system, including any
243$0: error possibly output before this message. Then install
244$0: a modern shell, or manually run the script under such a
245$0: shell if you do have one."
246 fi
247 exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265 { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274 return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282 set +e
283 as_fn_set_status $1
284 exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
316 q
317 }
318 /^X\(\/\/\)$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\).*/{
323 s//\1/
324 q
325 }
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
a53c44a6 330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25e9e4f0
AJ
331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
342 {
343 eval $1+=\$2
344 }'
345else
346 as_fn_append ()
347 {
348 eval $1=\$$1\$2
349 }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
359 {
360 as_val=$(( $* ))
361 }'
362else
363 as_fn_arith ()
364 {
365 as_val=`expr "$@" || test $? -eq 1`
366 }
367fi # as_fn_arith
368
369
a53c44a6
AJ
370# as_fn_error STATUS ERROR [LINENO LOG_FD]
371# ----------------------------------------
25e9e4f0
AJ
372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
a53c44a6 374# script with STATUS, using 1 if that was 0.
25e9e4f0
AJ
375as_fn_error ()
376{
a53c44a6
AJ
377 as_status=$1; test $as_status -eq 0 && as_status=1
378 if test "$4"; then
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25e9e4f0 381 fi
a53c44a6 382 $as_echo "$as_me: error: $2" >&2
25e9e4f0
AJ
383 as_fn_exit $as_status
384} # as_fn_error
385
fc6ffb29
AJ
386if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11af04e3
AJ
388 as_expr=expr
389else
390 as_expr=false
391fi
392
fc6ffb29 393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11af04e3
AJ
394 as_basename=basename
395else
396 as_basename=false
397fi
daa2886c 398
25e9e4f0
AJ
399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401else
402 as_dirname=false
403fi
daa2886c 404
fc6ffb29 405as_me=`$as_basename -- "$0" ||
daa2886c
AJ
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
fc6ffb29 408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
abf5048b 409$as_echo X/"$0" |
fc6ffb29
AJ
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
412 q
413 }
414 /^X\/\(\/\/\)$/{
415 s//\1/
416 q
417 }
418 /^X\/\(\/\).*/{
419 s//\1/
420 q
421 }
422 s/.*/./; q'`
daa2886c 423
25e9e4f0
AJ
424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
11af04e3 430
daa2886c 431
25e9e4f0
AJ
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 sed -n '
438 p
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
444 b
445 :lineno
446 N
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
daa2886c 454
25e9e4f0
AJ
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
fc6ffb29 461}
daa2886c 462
25e9e4f0
AJ
463ECHO_C= ECHO_N= ECHO_T=
464case `echo -n x` in #(((((
465-n*)
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
471 esac;;
472*)
473 ECHO_N='-n';;
474esac
fc6ffb29 475
25e9e4f0
AJ
476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
fc6ffb29 479else
25e9e4f0
AJ
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
fc6ffb29 482fi
25e9e4f0
AJ
483if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
495 as_ln_s='cp -p'
496 fi
497else
498 as_ln_s='cp -p'
fc6ffb29 499fi
25e9e4f0
AJ
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
fc6ffb29 502
25e9e4f0
AJ
503if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
fc6ffb29 505else
25e9e4f0
AJ
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
fc6ffb29
AJ
508fi
509
25e9e4f0
AJ
510if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
fc6ffb29 512else
25e9e4f0
AJ
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
517 fi
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
523 case $1 in #(
524 -*)set "./$1";;
525 esac;
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
529 '
530fi
531as_executable_p=$as_test_x
fc6ffb29 532
25e9e4f0
AJ
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
fc6ffb29 535
25e9e4f0
AJ
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
dc9f3843 538
dc9f3843 539
fa8c4f76
AJ
540test -n "$DJDIR" || exec 7<&0 </dev/null
541exec 6>&1
f5818d2f
AJ
542
543# Name of the host.
a53c44a6 544# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
f5818d2f
AJ
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
f5818d2f
AJ
548#
549# Initializations.
550#
e2991ea7 551ac_default_prefix=/usr/local
fc6ffb29 552ac_clean_files=
11af04e3 553ac_config_libobj_dir=.
fc6ffb29 554LIBOBJS=
f5818d2f
AJ
555cross_compiling=no
556subdirs=
daa2886c
AJ
557MFLAGS=
558MAKEFLAGS=
f5818d2f 559
daa2886c
AJ
560# Identity of this package.
561PACKAGE_NAME='Wine'
562PACKAGE_TARNAME='wine'
8c00ee0b
AJ
563PACKAGE_VERSION='1.3.26'
564PACKAGE_STRING='Wine 1.3.26'
875927f6 565PACKAGE_BUGREPORT='wine-devel@winehq.org'
25e9e4f0 566PACKAGE_URL='http://www.winehq.org'
daa2886c 567
f5818d2f
AJ
568ac_unique_file="server/atom.c"
569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
f0ca586f 572#ifdef HAVE_SYS_TYPES_H
f5818d2f
AJ
573# include <sys/types.h>
574#endif
f0ca586f 575#ifdef HAVE_SYS_STAT_H
f5818d2f
AJ
576# include <sys/stat.h>
577#endif
f0ca586f 578#ifdef STDC_HEADERS
f5818d2f
AJ
579# include <stdlib.h>
580# include <stddef.h>
581#else
f0ca586f 582# ifdef HAVE_STDLIB_H
f5818d2f
AJ
583# include <stdlib.h>
584# endif
585#endif
f0ca586f
PK
586#ifdef HAVE_STRING_H
587# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
f5818d2f
AJ
588# include <memory.h>
589# endif
590# include <string.h>
591#endif
f0ca586f 592#ifdef HAVE_STRINGS_H
f5818d2f
AJ
593# include <strings.h>
594#endif
f0ca586f 595#ifdef HAVE_INTTYPES_H
f5818d2f 596# include <inttypes.h>
fc6ffb29 597#endif
f0ca586f 598#ifdef HAVE_STDINT_H
fc6ffb29 599# include <stdint.h>
f5818d2f 600#endif
f0ca586f 601#ifdef HAVE_UNISTD_H
f5818d2f
AJ
602# include <unistd.h>
603#endif"
e2991ea7 604
abf5048b
AJ
605ac_subst_vars='LTLIBOBJS
606LIBOBJS
7c2a4bf2 607LINGUAS
9b99cd1d 608ALL_TEST_RESOURCES
abf5048b
AJ
609LDAPLIBS
610LIBPOLL
611LIBDL
612EXTRA_BINARIES
3e6eab3f 613MAIN_BINARY
abf5048b
AJ
614SOCKETLIBS
615CRTLIBS
b860c4aa 616TOOLSEXT
abf5048b 617LDPATH
6c142387 618UNWINDFLAGS
abf5048b
AJ
619BUILTINFLAG
620EXTRACFLAGS
de1d7fbe 621LIBKSTAT
d435499f 622LIBOPENAL
db71d7c0 623LIBMPG123
85b6189c 624PNGINCL
abf5048b
AJ
625FONTCONFIGINCL
626CUPSINCL
f60a0f5e 627OSS4INCL
abf5048b 628ALSALIBS
2914d655
AS
629GSTREAMER_INCL
630GSTREAMER_LIBS
0e79c5c1 631LIBGETTEXTPO
11ca05f6 632ZLIB
abf5048b
AJ
633FREETYPEINCL
634FREETYPELIBS
635ft_devel
636LCMSLIBS
637RESOLVLIBS
638GPHOTO2INCL
639GPHOTO2LIBS
640gphoto2port_devel
641gphoto2_devel
642SANEINCL
643sane_devel
644GNUTLSINCL
645HALINCL
646XSLTINCL
abf5048b
AJ
647XML2INCL
648XML2LIBS
40664c0c
AJ
649X_EXTRA_LIBS
650X_LIBS
651X_PRE_LIBS
652X_CFLAGS
653XMKMF
c891f6bc 654LIBPTHREAD
1f254216 655CROSSTARGET
abf5048b 656CROSSCC
7d2e7726 657CROSSTEST_DISABLE
b5d824bd 658PRELINK
abf5048b 659CARBONLIB
fa3ddd83 660QUICKTIMELIB
fac67412 661LIBOPENCL
d435499f 662FRAMEWORK_OPENAL
abf5048b 663COREAUDIO
45db3481 664SECURITYLIB
abf5048b
AJ
665DISKARBITRATIONLIB
666LDEXECFLAGS
21137cd3 667APPLICATIONSERVICESLIB
abf5048b
AJ
668IOKITLIB
669COREFOUNDATIONLIB
abf5048b
AJ
670DLLWRAP
671DLLTOOL
672LDD
673LDRPATH_LOCAL
674LDRPATH_INSTALL
675IMPLIBEXT
676LIBEXT
677LDDLLFLAGS
678LDSHARED
679DLLFLAGS
680DLLEXT
40664c0c 681CPP
abf5048b
AJ
682OPENGL_LIBS
683XLIB
2eda9c72 684MAINTAINER_MODE
abf5048b 685ICOTOOL
476a2bee 686CONVERT
abf5048b
AJ
687RSVG
688PKG_CONFIG
689FONTFORGE
690LINTFLAGS
691LINT
692INSTALL_DATA
693INSTALL_SCRIPT
694INSTALL_PROGRAM
695LDCONFIG
696EGREP
697GREP
abf5048b 698LN_S
abf5048b
AJ
699RANLIB
700ARFLAGS
701ac_ct_AR
702AR
abf5048b
AJ
703BISON
704FLEX
abf5048b 705TOOLSDIR
90647774 706WOW64_DISABLE
07f77c41 707TARGETFLAGS
abf5048b
AJ
708CPPBIN
709ac_ct_CXX
710CXXFLAGS
711CXX
712OBJEXT
713EXEEXT
714ac_ct_CC
715CPPFLAGS
716LDFLAGS
717CFLAGS
718CC
719SET_MAKE
abf5048b
AJ
720host_os
721host_vendor
722host_cpu
723host
724build_os
725build_vendor
726build_cpu
727build
abf5048b
AJ
728target_alias
729host_alias
fc6ffb29 730build_alias
abf5048b
AJ
731LIBS
732ECHO_T
733ECHO_N
734ECHO_C
735DEFS
736mandir
737localedir
738libdir
739psdir
740pdfdir
741dvidir
742htmldir
743infodir
744docdir
745oldincludedir
746includedir
747localstatedir
748sharedstatedir
749sysconfdir
750datadir
751datarootdir
752libexecdir
753sbindir
754bindir
755program_transform_name
756prefix
757exec_prefix
25e9e4f0 758PACKAGE_URL
abf5048b
AJ
759PACKAGE_BUGREPORT
760PACKAGE_STRING
761PACKAGE_VERSION
762PACKAGE_TARNAME
763PACKAGE_NAME
764PATH_SEPARATOR
765SHELL'
766ac_subst_files='MAKE_RULES
cb1fc8f4 767MAKE_TEST_RULES
abf5048b
AJ
768MAKE_DLL_RULES
769MAKE_IMPLIB_RULES
abf5048b
AJ
770MAKE_PROG_RULES'
771ac_user_opts='
772enable_option_checking
773enable_win16
774enable_win64
35078f4b 775enable_tests
abf5048b
AJ
776enable_maintainer_mode
777with_alsa
abf5048b
AJ
778with_capi
779with_cms
780with_coreaudio
781with_cups
782with_curses
abf5048b
AJ
783with_fontconfig
784with_freetype
0e79c5c1 785with_gettextpo
abf5048b
AJ
786with_gphoto
787with_glu
788with_gnutls
6ce32e0d 789with_gsm
2914d655 790with_gstreamer
abf5048b 791with_hal
abf5048b
AJ
792with_jpeg
793with_ldap
db71d7c0 794with_mpg123
862965f4 795with_openal
65c84d77 796with_opencl
abf5048b
AJ
797with_opengl
798with_openssl
799with_oss
800with_png
c891f6bc 801with_pthread
abf5048b 802with_sane
73cd5693 803with_tiff
bf6f0750 804with_v4l
abf5048b
AJ
805with_xcomposite
806with_xcursor
807with_xinerama
808with_xinput
77e05ce4 809with_xinput2
abf5048b
AJ
810with_xml
811with_xrandr
812with_xrender
813with_xshape
814with_xshm
815with_xslt
816with_xxf86vm
ba6a41a4 817with_zlib
abf5048b 818with_wine_tools
39a75d37 819with_wine64
bc56c4ea 820enable_largefile
abf5048b
AJ
821with_x
822'
823 ac_precious_vars='build_alias
fc6ffb29
AJ
824host_alias
825target_alias
fc6ffb29
AJ
826CC
827CFLAGS
828LDFLAGS
abf5048b 829LIBS
fc6ffb29 830CPPFLAGS
fc6ffb29
AJ
831CXX
832CXXFLAGS
abf5048b 833CCC
40664c0c
AJ
834CPP
835XMKMF'
fc6ffb29 836
daa2886c 837
e2991ea7 838# Initialize some variables set by options.
f5818d2f
AJ
839ac_init_help=
840ac_init_version=false
abf5048b
AJ
841ac_unrecognized_opts=
842ac_unrecognized_sep=
e2991ea7
AJ
843# The variables have the same names as the options, with
844# dashes changed to underlines.
f5818d2f 845cache_file=/dev/null
e2991ea7 846exec_prefix=NONE
e2991ea7 847no_create=
e2991ea7
AJ
848no_recursion=
849prefix=NONE
850program_prefix=NONE
851program_suffix=NONE
852program_transform_name=s,x,x,
853silent=
854site=
855srcdir=
e2991ea7
AJ
856verbose=
857x_includes=NONE
858x_libraries=NONE
f5818d2f
AJ
859
860# Installation directory options.
861# These are left unexpanded so users can "make install exec_prefix=/foo"
862# and all the variables that are supposed to be based on exec_prefix
863# by default will actually change.
864# Use braces instead of parens because sh, perl, etc. also accept them.
fc6ffb29 865# (The list follows the same order as the GNU Coding Standards.)
d7d4fdf8
AJ
866bindir='${exec_prefix}/bin'
867sbindir='${exec_prefix}/sbin'
868libexecdir='${exec_prefix}/libexec'
fc6ffb29
AJ
869datarootdir='${prefix}/share'
870datadir='${datarootdir}'
d7d4fdf8
AJ
871sysconfdir='${prefix}/etc'
872sharedstatedir='${prefix}/com'
873localstatedir='${prefix}/var'
d7d4fdf8
AJ
874includedir='${prefix}/include'
875oldincludedir='/usr/include'
fc6ffb29
AJ
876docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
877infodir='${datarootdir}/info'
878htmldir='${docdir}'
879dvidir='${docdir}'
880pdfdir='${docdir}'
881psdir='${docdir}'
882libdir='${exec_prefix}/lib'
883localedir='${datarootdir}/locale'
884mandir='${datarootdir}/man'
e2991ea7 885
e2991ea7 886ac_prev=
fc6ffb29 887ac_dashdash=
e2991ea7
AJ
888for ac_option
889do
e2991ea7
AJ
890 # If the previous option needs an argument, assign it.
891 if test -n "$ac_prev"; then
fc6ffb29 892 eval $ac_prev=\$ac_option
e2991ea7
AJ
893 ac_prev=
894 continue
895 fi
896
fc6ffb29 897 case $ac_option in
a53c44a6
AJ
898 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899 *=) ac_optarg= ;;
900 *) ac_optarg=yes ;;
fc6ffb29 901 esac
e2991ea7
AJ
902
903 # Accept the important Cygnus configure options, so we can diagnose typos.
904
fc6ffb29
AJ
905 case $ac_dashdash$ac_option in
906 --)
907 ac_dashdash=yes ;;
e2991ea7 908
d7d4fdf8
AJ
909 -bindir | --bindir | --bindi | --bind | --bin | --bi)
910 ac_prev=bindir ;;
911 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
f5818d2f 912 bindir=$ac_optarg ;;
d7d4fdf8
AJ
913
914 -build | --build | --buil | --bui | --bu)
f5818d2f 915 ac_prev=build_alias ;;
d7d4fdf8 916 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
f5818d2f 917 build_alias=$ac_optarg ;;
e2991ea7
AJ
918
919 -cache-file | --cache-file | --cache-fil | --cache-fi \
920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921 ac_prev=cache_file ;;
922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
f5818d2f
AJ
924 cache_file=$ac_optarg ;;
925
926 --config-cache | -C)
927 cache_file=config.cache ;;
e2991ea7 928
fc6ffb29 929 -datadir | --datadir | --datadi | --datad)
d7d4fdf8 930 ac_prev=datadir ;;
fc6ffb29 931 -datadir=* | --datadir=* | --datadi=* | --datad=*)
f5818d2f 932 datadir=$ac_optarg ;;
d7d4fdf8 933
fc6ffb29
AJ
934 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935 | --dataroo | --dataro | --datar)
936 ac_prev=datarootdir ;;
937 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939 datarootdir=$ac_optarg ;;
940
e2991ea7 941 -disable-* | --disable-*)
abf5048b 942 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
e2991ea7 943 # Reject names that are not valid shell variable names.
abf5048b 944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
a53c44a6 945 as_fn_error $? "invalid feature name: $ac_useropt"
abf5048b
AJ
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
949 *"
950"enable_$ac_useropt"
951"*) ;;
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
954 esac
955 eval enable_$ac_useropt=no ;;
fc6ffb29
AJ
956
957 -docdir | --docdir | --docdi | --doc | --do)
958 ac_prev=docdir ;;
959 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960 docdir=$ac_optarg ;;
961
962 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963 ac_prev=dvidir ;;
964 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965 dvidir=$ac_optarg ;;
e2991ea7
AJ
966
967 -enable-* | --enable-*)
abf5048b 968 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
e2991ea7 969 # Reject names that are not valid shell variable names.
abf5048b 970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
a53c44a6 971 as_fn_error $? "invalid feature name: $ac_useropt"
abf5048b
AJ
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976"enable_$ac_useropt"
977"*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=\$ac_optarg ;;
e2991ea7
AJ
982
983 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985 | --exec | --exe | --ex)
986 ac_prev=exec_prefix ;;
987 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989 | --exec=* | --exe=* | --ex=*)
f5818d2f 990 exec_prefix=$ac_optarg ;;
e2991ea7
AJ
991
992 -gas | --gas | --ga | --g)
993 # Obsolete; use --with-gas.
994 with_gas=yes ;;
995
f5818d2f
AJ
996 -help | --help | --hel | --he | -h)
997 ac_init_help=long ;;
998 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999 ac_init_help=recursive ;;
1000 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001 ac_init_help=short ;;
e2991ea7
AJ
1002
1003 -host | --host | --hos | --ho)
f5818d2f 1004 ac_prev=host_alias ;;
e2991ea7 1005 -host=* | --host=* | --hos=* | --ho=*)
f5818d2f 1006 host_alias=$ac_optarg ;;
e2991ea7 1007
fc6ffb29
AJ
1008 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009 ac_prev=htmldir ;;
1010 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011 | --ht=*)
1012 htmldir=$ac_optarg ;;
1013
d7d4fdf8
AJ
1014 -includedir | --includedir | --includedi | --included | --include \
1015 | --includ | --inclu | --incl | --inc)
1016 ac_prev=includedir ;;
1017 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018 | --includ=* | --inclu=* | --incl=* | --inc=*)
f5818d2f 1019 includedir=$ac_optarg ;;
d7d4fdf8
AJ
1020
1021 -infodir | --infodir | --infodi | --infod | --info | --inf)
1022 ac_prev=infodir ;;
1023 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
f5818d2f 1024 infodir=$ac_optarg ;;
d7d4fdf8
AJ
1025
1026 -libdir | --libdir | --libdi | --libd)
1027 ac_prev=libdir ;;
1028 -libdir=* | --libdir=* | --libdi=* | --libd=*)
f5818d2f 1029 libdir=$ac_optarg ;;
d7d4fdf8
AJ
1030
1031 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032 | --libexe | --libex | --libe)
1033 ac_prev=libexecdir ;;
1034 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035 | --libexe=* | --libex=* | --libe=*)
f5818d2f 1036 libexecdir=$ac_optarg ;;
d7d4fdf8 1037
fc6ffb29
AJ
1038 -localedir | --localedir | --localedi | --localed | --locale)
1039 ac_prev=localedir ;;
1040 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041 localedir=$ac_optarg ;;
1042
d7d4fdf8 1043 -localstatedir | --localstatedir | --localstatedi | --localstated \
fc6ffb29 1044 | --localstate | --localstat | --localsta | --localst | --locals)
d7d4fdf8
AJ
1045 ac_prev=localstatedir ;;
1046 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
fc6ffb29 1047 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
f5818d2f 1048 localstatedir=$ac_optarg ;;
d7d4fdf8
AJ
1049
1050 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051 ac_prev=mandir ;;
1052 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
f5818d2f 1053 mandir=$ac_optarg ;;
d7d4fdf8 1054
e2991ea7
AJ
1055 -nfp | --nfp | --nf)
1056 # Obsolete; use --without-fp.
1057 with_fp=no ;;
1058
1059 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
daa2886c 1060 | --no-cr | --no-c | -n)
e2991ea7
AJ
1061 no_create=yes ;;
1062
1063 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065 no_recursion=yes ;;
1066
d7d4fdf8
AJ
1067 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069 | --oldin | --oldi | --old | --ol | --o)
1070 ac_prev=oldincludedir ;;
1071 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
f5818d2f 1074 oldincludedir=$ac_optarg ;;
d7d4fdf8 1075
e2991ea7
AJ
1076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077 ac_prev=prefix ;;
1078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
f5818d2f 1079 prefix=$ac_optarg ;;
e2991ea7
AJ
1080
1081 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082 | --program-pre | --program-pr | --program-p)
1083 ac_prev=program_prefix ;;
1084 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
f5818d2f 1086 program_prefix=$ac_optarg ;;
e2991ea7
AJ
1087
1088 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089 | --program-suf | --program-su | --program-s)
1090 ac_prev=program_suffix ;;
1091 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
f5818d2f 1093 program_suffix=$ac_optarg ;;
e2991ea7
AJ
1094
1095 -program-transform-name | --program-transform-name \
1096 | --program-transform-nam | --program-transform-na \
1097 | --program-transform-n | --program-transform- \
1098 | --program-transform | --program-transfor \
1099 | --program-transfo | --program-transf \
1100 | --program-trans | --program-tran \
1101 | --progr-tra | --program-tr | --program-t)
1102 ac_prev=program_transform_name ;;
1103 -program-transform-name=* | --program-transform-name=* \
1104 | --program-transform-nam=* | --program-transform-na=* \
1105 | --program-transform-n=* | --program-transform-=* \
1106 | --program-transform=* | --program-transfor=* \
1107 | --program-transfo=* | --program-transf=* \
1108 | --program-trans=* | --program-tran=* \
1109 | --progr-tra=* | --program-tr=* | --program-t=*)
f5818d2f 1110 program_transform_name=$ac_optarg ;;
e2991ea7 1111
fc6ffb29
AJ
1112 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113 ac_prev=pdfdir ;;
1114 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115 pdfdir=$ac_optarg ;;
1116
1117 -psdir | --psdir | --psdi | --psd | --ps)
1118 ac_prev=psdir ;;
1119 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120 psdir=$ac_optarg ;;
1121
e2991ea7
AJ
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1124 silent=yes ;;
1125
d7d4fdf8
AJ
1126 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127 ac_prev=sbindir ;;
1128 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129 | --sbi=* | --sb=*)
f5818d2f 1130 sbindir=$ac_optarg ;;
d7d4fdf8
AJ
1131
1132 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134 | --sharedst | --shareds | --shared | --share | --shar \
1135 | --sha | --sh)
1136 ac_prev=sharedstatedir ;;
1137 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140 | --sha=* | --sh=*)
f5818d2f 1141 sharedstatedir=$ac_optarg ;;
d7d4fdf8 1142
e2991ea7
AJ
1143 -site | --site | --sit)
1144 ac_prev=site ;;
1145 -site=* | --site=* | --sit=*)
f5818d2f 1146 site=$ac_optarg ;;
e2991ea7
AJ
1147
1148 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149 ac_prev=srcdir ;;
1150 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
f5818d2f 1151 srcdir=$ac_optarg ;;
e2991ea7 1152
d7d4fdf8
AJ
1153 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154 | --syscon | --sysco | --sysc | --sys | --sy)
1155 ac_prev=sysconfdir ;;
1156 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
f5818d2f 1158 sysconfdir=$ac_optarg ;;
d7d4fdf8 1159
e2991ea7 1160 -target | --target | --targe | --targ | --tar | --ta | --t)
f5818d2f 1161 ac_prev=target_alias ;;
e2991ea7 1162 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
f5818d2f 1163 target_alias=$ac_optarg ;;
e2991ea7
AJ
1164
1165 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1166 verbose=yes ;;
1167
f5818d2f
AJ
1168 -version | --version | --versio | --versi | --vers | -V)
1169 ac_init_version=: ;;
e2991ea7
AJ
1170
1171 -with-* | --with-*)
abf5048b 1172 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
e2991ea7 1173 # Reject names that are not valid shell variable names.
abf5048b 1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
a53c44a6 1175 as_fn_error $? "invalid package name: $ac_useropt"
abf5048b
AJ
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1179 *"
1180"with_$ac_useropt"
1181"*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=\$ac_optarg ;;
e2991ea7
AJ
1186
1187 -without-* | --without-*)
abf5048b 1188 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
e2991ea7 1189 # Reject names that are not valid shell variable names.
abf5048b 1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
a53c44a6 1191 as_fn_error $? "invalid package name: $ac_useropt"
abf5048b
AJ
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1195 *"
1196"with_$ac_useropt"
1197"*) ;;
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1200 esac
1201 eval with_$ac_useropt=no ;;
e2991ea7
AJ
1202
1203 --x)
1204 # Obsolete; use --with-x.
1205 with_x=yes ;;
1206
1207 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1208 | --x-incl | --x-inc | --x-in | --x-i)
1209 ac_prev=x_includes ;;
1210 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1211 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
f5818d2f 1212 x_includes=$ac_optarg ;;
e2991ea7
AJ
1213
1214 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1215 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1216 ac_prev=x_libraries ;;
1217 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1218 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
f5818d2f 1219 x_libraries=$ac_optarg ;;
e2991ea7 1220
a53c44a6
AJ
1221 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1222Try \`$0 --help' for more information"
e2991ea7
AJ
1223 ;;
1224
f5818d2f
AJ
1225 *=*)
1226 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1227 # Reject names that are not valid shell variable names.
25e9e4f0
AJ
1228 case $ac_envvar in #(
1229 '' | [0-9]* | *[!_$as_cr_alnum]* )
a53c44a6 1230 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
25e9e4f0 1231 esac
fc6ffb29 1232 eval $ac_envvar=\$ac_optarg
f5818d2f
AJ
1233 export $ac_envvar ;;
1234
d7d4fdf8 1235 *)
f5818d2f 1236 # FIXME: should be removed in autoconf 3.0.
abf5048b 1237 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
f5818d2f 1238 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
abf5048b 1239 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
9797da40 1240 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
e2991ea7
AJ
1241 ;;
1242
1243 esac
1244done
1245
1246if test -n "$ac_prev"; then
f5818d2f 1247 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
a53c44a6 1248 as_fn_error $? "missing argument to $ac_option"
e2991ea7 1249fi
e2991ea7 1250
abf5048b
AJ
1251if test -n "$ac_unrecognized_opts"; then
1252 case $enable_option_checking in
1253 no) ;;
a53c44a6 1254 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
abf5048b
AJ
1255 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256 esac
1257fi
1258
1259# Check all directory arguments for consistency.
fc6ffb29
AJ
1260for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261 datadir sysconfdir sharedstatedir localstatedir includedir \
1262 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263 libdir localedir mandir
e2991ea7 1264do
fc6ffb29 1265 eval ac_val=\$$ac_var
abf5048b
AJ
1266 # Remove trailing slashes.
1267 case $ac_val in
1268 */ )
1269 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270 eval $ac_var=\$ac_val;;
1271 esac
1272 # Be sure to have absolute directory names.
f5818d2f 1273 case $ac_val in
fc6ffb29
AJ
1274 [\\/$]* | ?:[\\/]* ) continue;;
1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
e2991ea7 1276 esac
a53c44a6 1277 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
e2991ea7
AJ
1278done
1279
f5818d2f
AJ
1280# There might be people who depend on the old broken behavior: `$host'
1281# used to hold the argument of --host etc.
daa2886c 1282# FIXME: To remove some day.
f5818d2f
AJ
1283build=$build_alias
1284host=$host_alias
1285target=$target_alias
1286
daa2886c 1287# FIXME: To remove some day.
f5818d2f
AJ
1288if test "x$host_alias" != x; then
1289 if test "x$build_alias" = x; then
1290 cross_compiling=maybe
a53c44a6
AJ
1291 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1292 If a cross compiler is detected then cross compile mode will be used" >&2
f5818d2f
AJ
1293 elif test "x$build_alias" != "x$host_alias"; then
1294 cross_compiling=yes
1295 fi
1296fi
e2991ea7 1297
f5818d2f
AJ
1298ac_tool_prefix=
1299test -n "$host_alias" && ac_tool_prefix=$host_alias-
e2991ea7 1300
f5818d2f 1301test "$silent" = yes && exec 6>/dev/null
e2991ea7 1302
daa2886c 1303
fc6ffb29
AJ
1304ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305ac_ls_di=`ls -di .` &&
1306ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
a53c44a6 1307 as_fn_error $? "working directory cannot be determined"
fc6ffb29 1308test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
a53c44a6 1309 as_fn_error $? "pwd does not report name of working directory"
fc6ffb29
AJ
1310
1311
e2991ea7
AJ
1312# Find the source files, if location was not specified.
1313if test -z "$srcdir"; then
1314 ac_srcdir_defaulted=yes
fc6ffb29 1315 # Try the directory containing this script, then the parent directory.
abf5048b
AJ
1316 ac_confdir=`$as_dirname -- "$as_myself" ||
1317$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318 X"$as_myself" : 'X\(//\)[^/]' \| \
1319 X"$as_myself" : 'X\(//\)$' \| \
1320 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321$as_echo X"$as_myself" |
fc6ffb29
AJ
1322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\/\)[^/].*/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\/\)$/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\).*/{
1335 s//\1/
1336 q
1337 }
1338 s/.*/./; q'`
e2991ea7 1339 srcdir=$ac_confdir
fc6ffb29 1340 if test ! -r "$srcdir/$ac_unique_file"; then
e2991ea7
AJ
1341 srcdir=..
1342 fi
1343else
1344 ac_srcdir_defaulted=no
1345fi
fc6ffb29
AJ
1346if test ! -r "$srcdir/$ac_unique_file"; then
1347 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
a53c44a6 1348 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
e2991ea7 1349fi
fc6ffb29
AJ
1350ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351ac_abs_confdir=`(
a53c44a6 1352 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
fc6ffb29
AJ
1353 pwd)`
1354# When building in place, set srcdir=.
1355if test "$ac_abs_confdir" = "$ac_pwd"; then
1356 srcdir=.
1357fi
1358# Remove unnecessary trailing slashes from srcdir.
1359# Double slashes in file names in object file debugging info
1360# mess up M-x gdb in Emacs.
1361case $srcdir in
1362*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363esac
1364for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369done
f5818d2f
AJ
1370
1371#
1372# Report the --help message.
1373#
1374if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
daa2886c 1377 cat <<_ACEOF
8c00ee0b 1378\`configure' configures Wine 1.3.26 to adapt to many kinds of systems.
f5818d2f
AJ
1379
1380Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383VAR=VALUE. See below for descriptions of some of the useful variables.
1384
1385Defaults for the options are specified in brackets.
1386
1387Configuration:
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
a53c44a6 1392 -q, --quiet, --silent do not print \`checking ...' messages
f5818d2f
AJ
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1397
f5818d2f
AJ
1398Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
abf5048b 1400 [$ac_default_prefix]
f5818d2f 1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
abf5048b 1402 [PREFIX]
f5818d2f
AJ
1403
1404By default, \`make install' will install all the files in
1405\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407for instance \`--prefix=\$HOME'.
1408
1409For better control, use the options below.
1410
1411Fine tuning of the installation directories:
abf5048b
AJ
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
daa2886c 1431_ACEOF
f5818d2f 1432
daa2886c 1433 cat <<\_ACEOF
f5818d2f
AJ
1434
1435X features:
1436 --x-includes=DIR X include files are in DIR
1437 --x-libraries=DIR X library files are in DIR
1438
1439System types:
1440 --build=BUILD configure for building on BUILD [guessed]
daa2886c 1441 --host=HOST cross-compile to build programs to run on HOST [BUILD]
daa2886c 1442_ACEOF
f5818d2f
AJ
1443fi
1444
1445if test -n "$ac_init_help"; then
1446 case $ac_init_help in
8c00ee0b 1447 short | recursive ) echo "Configuration of Wine 1.3.26:";;
f5818d2f 1448 esac
daa2886c 1449 cat <<\_ACEOF
f5818d2f
AJ
1450
1451Optional Features:
abf5048b 1452 --disable-option-checking ignore unrecognized --enable/--with options
f5818d2f
AJ
1453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
53fa0d54 1455 --disable-win16 do not include Win16 support
2aa8e871
AJ
1456 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1457 binaries)
35078f4b 1458 --disable-tests do not build the regression tests
9d037226
AJ
1459 --enable-maintainer-mode
1460 enable maintainer-specific build rules
bc56c4ea 1461 --disable-largefile omit support for large files
f5818d2f
AJ
1462
1463Optional Packages:
1464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a41f0f1b 1466 --without-alsa do not use the Alsa sound support
a41f0f1b
AJ
1467 --without-capi do not use CAPI (ISDN support)
1468 --without-cms do not use CMS (color management support)
1469 --without-coreaudio do not use the CoreAudio sound support
1470 --without-cups do not use CUPS
1471 --without-curses do not use (n)curses
a41f0f1b 1472 --without-fontconfig do not use fontconfig
a20c0e12 1473 --without-freetype do not use the FreeType library
0e79c5c1 1474 --without-gettextpo do not use the GetTextPO library
a41f0f1b 1475 --without-gphoto do not use gphoto (Digital Camera support)
ad798735 1476 --without-glu do not use the GLU library
874c9ef6 1477 --without-gnutls do not use GnuTLS (schannel support)
6ce32e0d 1478 --without-gsm do not use libgsm (GSM 06.10 codec support)
2914d655 1479 --without-gstreamer do not use GStreamer (codecs support)
a41f0f1b 1480 --without-hal do not use HAL (dynamic device support)
a41f0f1b
AJ
1481 --without-jpeg do not use JPEG
1482 --without-ldap do not use LDAP
db71d7c0 1483 --without-mpg123 do not use the mpg123 library
862965f4 1484 --without-openal do not use OpenAL
65c84d77 1485 --without-opencl do not use OpenCL
53fa0d54 1486 --without-opengl do not use OpenGL
a41f0f1b
AJ
1487 --without-openssl do not use OpenSSL
1488 --without-oss do not use the OSS sound support
1489 --without-png do not use PNG
c891f6bc 1490 --without-pthread do not use the pthread library
a41f0f1b 1491 --without-sane do not use SANE (scanner support)
73cd5693 1492 --without-tiff do not use TIFF
bf6f0750 1493 --without-v4l do not use v4l1 (v4l support)
a41f0f1b
AJ
1494 --without-xcomposite do not use the Xcomposite extension
1495 --without-xcursor do not use the Xcursor extension
1496 --without-xinerama do not use Xinerama (multi-monitor support)
1497 --without-xinput do not use the Xinput extension
77e05ce4 1498 --without-xinput2 do not use the Xinput 2 extension
a41f0f1b
AJ
1499 --without-xml do not use XML
1500 --without-xrandr do not use Xrandr (resolution changes)
1501 --without-xrender do not use the Xrender extension
1502 --without-xshape do not use the Xshape extension
1503 --without-xshm do not use XShm (shared memory extension)
1504 --without-xslt do not use XSLT
a49beb4c 1505 --without-xxf86vm do not use XFree video mode extension
ba6a41a4 1506 --without-zlib do not use Zlib (data compression)
a41f0f1b 1507 --with-wine-tools=DIR use Wine tools from directory DIR
39a75d37 1508 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
f5818d2f
AJ
1509 --with-x use the X Window System
1510
1511Some influential environment variables:
53fa0d54
EP
1512 CC C compiler command
1513 CFLAGS C compiler flags
1514 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1515 nonstandard directory <lib dir>
dc9f3843 1516 LIBS libraries to pass to the linker, e.g. -l<library>
fa8c4f76 1517 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
fc6ffb29 1518 you have headers in a nonstandard directory <include dir>
f41c2b21
DP
1519 CXX C++ compiler command
1520 CXXFLAGS C++ compiler flags
53fa0d54 1521 CPP C preprocessor
40664c0c 1522 XMKMF Path to xmkmf, Makefile generator for X Window System
f5818d2f
AJ
1523
1524Use these variables to override the choices made by `configure' or to help
1525it to find libraries and programs with nonstandard names/locations.
1526
875927f6 1527Report bugs to <wine-devel@winehq.org>.
25e9e4f0 1528Wine home page: <http://www.winehq.org>.
daa2886c 1529_ACEOF
fc6ffb29 1530ac_status=$?
f5818d2f
AJ
1531fi
1532
1533if test "$ac_init_help" = "recursive"; then
1534 # If there are subdirs, report their specific --help.
daa2886c 1535 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
abf5048b
AJ
1536 test -d "$ac_dir" ||
1537 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1538 continue
daa2886c
AJ
1539 ac_builddir=.
1540
fc6ffb29
AJ
1541case "$ac_dir" in
1542.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543*)
abf5048b 1544 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
fc6ffb29 1545 # A ".." for each directory in $ac_dir_suffix.
abf5048b 1546 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
fc6ffb29
AJ
1547 case $ac_top_builddir_sub in
1548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550 esac ;;
1551esac
1552ac_abs_top_builddir=$ac_pwd
1553ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554# for backward compatibility:
1555ac_top_builddir=$ac_top_build_prefix
f5818d2f 1556
daa2886c 1557case $srcdir in
fc6ffb29 1558 .) # We are building in place.
daa2886c 1559 ac_srcdir=.
fc6ffb29
AJ
1560 ac_top_srcdir=$ac_top_builddir_sub
1561 ac_abs_top_srcdir=$ac_pwd ;;
1562 [\\/]* | ?:[\\/]* ) # Absolute name.
daa2886c 1563 ac_srcdir=$srcdir$ac_dir_suffix;
fc6ffb29
AJ
1564 ac_top_srcdir=$srcdir
1565 ac_abs_top_srcdir=$srcdir ;;
1566 *) # Relative name.
1567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568 ac_top_srcdir=$ac_top_build_prefix$srcdir
1569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
875927f6 1570esac
fc6ffb29 1571ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
daa2886c 1572
fc6ffb29
AJ
1573 cd "$ac_dir" || { ac_status=$?; continue; }
1574 # Check for guested configure.
0ebeb530 1575 if test -f "$ac_srcdir/configure.gnu"; then
fc6ffb29 1576 echo &&
0ebeb530
JW
1577 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578 elif test -f "$ac_srcdir/configure"; then
fc6ffb29 1579 echo &&
0ebeb530 1580 $SHELL "$ac_srcdir/configure" --help=recursive
f5818d2f 1581 else
abf5048b 1582 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
fc6ffb29
AJ
1583 fi || ac_status=$?
1584 cd "$ac_pwd" || { ac_status=$?; break; }
f5818d2f
AJ
1585 done
1586fi
e2991ea7 1587
fc6ffb29 1588test -n "$ac_init_help" && exit $ac_status
f5818d2f 1589if $ac_init_version; then
daa2886c 1590 cat <<\_ACEOF
8c00ee0b 1591Wine configure 1.3.26
9797da40 1592generated by GNU Autoconf 2.68
f5818d2f 1593
a53c44a6 1594Copyright (C) 2010 Free Software Foundation, Inc.
f5818d2f
AJ
1595This configure script is free software; the Free Software Foundation
1596gives unlimited permission to copy, distribute and modify it.
daa2886c 1597_ACEOF
fc6ffb29 1598 exit
f5818d2f 1599fi
f5818d2f 1600
25e9e4f0
AJ
1601## ------------------------ ##
1602## Autoconf initialization. ##
1603## ------------------------ ##
f5818d2f 1604
25e9e4f0
AJ
1605# ac_fn_c_try_compile LINENO
1606# --------------------------
1607# Try to compile conftest.$ac_ext, and return whether this succeeded.
1608ac_fn_c_try_compile ()
f5818d2f 1609{
25e9e4f0
AJ
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611 rm -f conftest.$ac_objext
1612 if { { ac_try="$ac_compile"
1613case "(($ac_try" in
1614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615 *) ac_try_echo=$ac_try;;
1616esac
1617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618$as_echo "$ac_try_echo"; } >&5
1619 (eval "$ac_compile") 2>conftest.err
1620 ac_status=$?
1621 if test -s conftest.err; then
1622 grep -v '^ *+' conftest.err >conftest.er1
1623 cat conftest.er1 >&5
1624 mv -f conftest.er1 conftest.err
1625 fi
1626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627 test $ac_status = 0; } && {
1628 test -z "$ac_c_werror_flag" ||
1629 test ! -s conftest.err
1630 } && test -s conftest.$ac_objext; then :
1631 ac_retval=0
1632else
1633 $as_echo "$as_me: failed program was:" >&5
1634sed 's/^/| /' conftest.$ac_ext >&5
f5818d2f 1635
25e9e4f0
AJ
1636 ac_retval=1
1637fi
9797da40 1638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
fa8c4f76 1639 as_fn_set_status $ac_retval
f5818d2f 1640
25e9e4f0 1641} # ac_fn_c_try_compile
f5818d2f 1642
25e9e4f0
AJ
1643# ac_fn_cxx_try_compile LINENO
1644# ----------------------------
1645# Try to compile conftest.$ac_ext, and return whether this succeeded.
1646ac_fn_cxx_try_compile ()
1647{
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 rm -f conftest.$ac_objext
1650 if { { ac_try="$ac_compile"
1651case "(($ac_try" in
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1654esac
1655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656$as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_compile") 2>conftest.err
1658 ac_status=$?
1659 if test -s conftest.err; then
1660 grep -v '^ *+' conftest.err >conftest.er1
1661 cat conftest.er1 >&5
1662 mv -f conftest.er1 conftest.err
1663 fi
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } && {
1666 test -z "$ac_cxx_werror_flag" ||
1667 test ! -s conftest.err
1668 } && test -s conftest.$ac_objext; then :
1669 ac_retval=0
1670else
1671 $as_echo "$as_me: failed program was:" >&5
1672sed 's/^/| /' conftest.$ac_ext >&5
f5818d2f 1673
25e9e4f0
AJ
1674 ac_retval=1
1675fi
9797da40 1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
fa8c4f76 1677 as_fn_set_status $ac_retval
daa2886c 1678
25e9e4f0
AJ
1679} # ac_fn_cxx_try_compile
1680
1681# ac_fn_c_try_link LINENO
1682# -----------------------
1683# Try to link conftest.$ac_ext, and return whether this succeeded.
1684ac_fn_c_try_link ()
1685{
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 rm -f conftest.$ac_objext conftest$ac_exeext
1688 if { { ac_try="$ac_link"
1689case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692esac
1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694$as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_link") 2>conftest.err
1696 ac_status=$?
1697 if test -s conftest.err; then
1698 grep -v '^ *+' conftest.err >conftest.er1
1699 cat conftest.er1 >&5
1700 mv -f conftest.er1 conftest.err
1701 fi
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && {
1704 test -z "$ac_c_werror_flag" ||
1705 test ! -s conftest.err
1706 } && test -s conftest$ac_exeext && {
1707 test "$cross_compiling" = yes ||
1708 $as_test_x conftest$ac_exeext
1709 }; then :
1710 ac_retval=0
1711else
1712 $as_echo "$as_me: failed program was:" >&5
1713sed 's/^/| /' conftest.$ac_ext >&5
1714
1715 ac_retval=1
1716fi
1717 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1718 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1719 # interfere with the next link command; also delete a directory that is
1720 # left behind by Apple's compiler. We do this before executing the actions.
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
9797da40 1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
fa8c4f76 1723 as_fn_set_status $ac_retval
25e9e4f0
AJ
1724
1725} # ac_fn_c_try_link
1726
1727# ac_fn_c_try_cpp LINENO
1728# ----------------------
1729# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1730ac_fn_c_try_cpp ()
1731{
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { { ac_try="$ac_cpp conftest.$ac_ext"
1734case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737esac
1738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739$as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1741 ac_status=$?
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1746 fi
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
a53c44a6 1748 test $ac_status = 0; } > conftest.i && {
25e9e4f0
AJ
1749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1750 test ! -s conftest.err
1751 }; then :
1752 ac_retval=0
1753else
1754 $as_echo "$as_me: failed program was:" >&5
1755sed 's/^/| /' conftest.$ac_ext >&5
1756
1757 ac_retval=1
1758fi
9797da40 1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
fa8c4f76 1760 as_fn_set_status $ac_retval
25e9e4f0
AJ
1761
1762} # ac_fn_c_try_cpp
1763
1764# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1765# -------------------------------------------------------
1766# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1767# the include files in INCLUDES and setting the cache variable VAR
1768# accordingly.
1769ac_fn_c_check_header_mongrel ()
1770{
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9797da40 1772 if eval \${$3+:} false; then :
25e9e4f0
AJ
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774$as_echo_n "checking for $2... " >&6; }
9797da40 1775if eval \${$3+:} false; then :
25e9e4f0
AJ
1776 $as_echo_n "(cached) " >&6
1777fi
1778eval ac_res=\$$3
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780$as_echo "$ac_res" >&6; }
1781else
1782 # Is the header compilable?
1783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1784$as_echo_n "checking $2 usability... " >&6; }
1785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786/* end confdefs.h. */
1787$4
1788#include <$2>
1789_ACEOF
1790if ac_fn_c_try_compile "$LINENO"; then :
1791 ac_header_compiler=yes
1792else
1793 ac_header_compiler=no
1794fi
1795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1797$as_echo "$ac_header_compiler" >&6; }
1798
1799# Is the header present?
1800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1801$as_echo_n "checking $2 presence... " >&6; }
1802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803/* end confdefs.h. */
1804#include <$2>
1805_ACEOF
1806if ac_fn_c_try_cpp "$LINENO"; then :
1807 ac_header_preproc=yes
1808else
1809 ac_header_preproc=no
1810fi
a53c44a6 1811rm -f conftest.err conftest.i conftest.$ac_ext
25e9e4f0
AJ
1812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1813$as_echo "$ac_header_preproc" >&6; }
1814
1815# So? What about this header?
1816case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1817 yes:no: )
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1819$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1821$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1822 ;;
1823 no:yes:* )
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1825$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1827$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1829$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1831$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1833$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
a53c44a6 1834( $as_echo "## ------------------------------------ ##
25e9e4f0 1835## Report this to wine-devel@winehq.org ##
a53c44a6 1836## ------------------------------------ ##"
25e9e4f0
AJ
1837 ) | sed "s/^/$as_me: WARNING: /" >&2
1838 ;;
1839esac
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841$as_echo_n "checking for $2... " >&6; }
9797da40 1842if eval \${$3+:} false; then :
25e9e4f0
AJ
1843 $as_echo_n "(cached) " >&6
1844else
1845 eval "$3=\$ac_header_compiler"
1846fi
1847eval ac_res=\$$3
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849$as_echo "$ac_res" >&6; }
1850fi
9797da40 1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
25e9e4f0
AJ
1852
1853} # ac_fn_c_check_header_mongrel
1854
1855# ac_fn_c_try_run LINENO
1856# ----------------------
1857# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1858# that executables *can* be run.
1859ac_fn_c_try_run ()
1860{
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 if { { ac_try="$ac_link"
1863case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866esac
1867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868$as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_link") 2>&5
1870 ac_status=$?
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1873 { { case "(($ac_try" in
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1876esac
1877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878$as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_try") 2>&5
1880 ac_status=$?
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; }; }; then :
1883 ac_retval=0
1884else
1885 $as_echo "$as_me: program exited with status $ac_status" >&5
1886 $as_echo "$as_me: failed program was:" >&5
1887sed 's/^/| /' conftest.$ac_ext >&5
1888
1889 ac_retval=$ac_status
1890fi
1891 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
9797da40 1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
fa8c4f76 1893 as_fn_set_status $ac_retval
25e9e4f0
AJ
1894
1895} # ac_fn_c_try_run
1896
1897# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1898# -------------------------------------------------------
1899# Tests whether HEADER exists and can be compiled using the include files in
1900# INCLUDES, setting the cache variable VAR accordingly.
1901ac_fn_c_check_header_compile ()
1902{
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905$as_echo_n "checking for $2... " >&6; }
9797da40 1906if eval \${$3+:} false; then :
25e9e4f0
AJ
1907 $as_echo_n "(cached) " >&6
1908else
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910/* end confdefs.h. */
1911$4
1912#include <$2>
1913_ACEOF
1914if ac_fn_c_try_compile "$LINENO"; then :
1915 eval "$3=yes"
1916else
1917 eval "$3=no"
1918fi
1919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920fi
1921eval ac_res=\$$3
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923$as_echo "$ac_res" >&6; }
9797da40 1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
25e9e4f0
AJ
1925
1926} # ac_fn_c_check_header_compile
1927
1928# ac_fn_c_check_func LINENO FUNC VAR
1929# ----------------------------------
1930# Tests whether FUNC exists, setting the cache variable VAR accordingly
1931ac_fn_c_check_func ()
1932{
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935$as_echo_n "checking for $2... " >&6; }
9797da40 1936if eval \${$3+:} false; then :
25e9e4f0
AJ
1937 $as_echo_n "(cached) " >&6
1938else
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940/* end confdefs.h. */
1941/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1943#define $2 innocuous_$2
1944
1945/* System header to define __stub macros and hopefully few prototypes,
1946 which can conflict with char $2 (); below.
1947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1948 <limits.h> exists even on freestanding compilers. */
1949
1950#ifdef __STDC__
1951# include <limits.h>
1952#else
1953# include <assert.h>
1954#endif
1955
1956#undef $2
1957
1958/* Override any GCC internal prototype to avoid an error.
1959 Use char because int might match the return type of a GCC
1960 builtin and then its argument prototype would still apply. */
1961#ifdef __cplusplus
1962extern "C"
1963#endif
1964char $2 ();
1965/* The GNU C library defines this for functions which it implements
1966 to always fail with ENOSYS. Some functions are actually named
1967 something starting with __ and the normal name is an alias. */
1968#if defined __stub_$2 || defined __stub___$2
1969choke me
1970#endif
1971
1972int
1973main ()
1974{
1975return $2 ();
1976 ;
1977 return 0;
1978}
1979_ACEOF
1980if ac_fn_c_try_link "$LINENO"; then :
1981 eval "$3=yes"
1982else
1983 eval "$3=no"
1984fi
1985rm -f core conftest.err conftest.$ac_objext \
1986 conftest$ac_exeext conftest.$ac_ext
1987fi
1988eval ac_res=\$$3
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990$as_echo "$ac_res" >&6; }
9797da40 1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
25e9e4f0
AJ
1992
1993} # ac_fn_c_check_func
1994
1995# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1996# ----------------------------------------------------
1997# Tries to find if the field MEMBER exists in type AGGR, after including
1998# INCLUDES, setting cache variable VAR accordingly.
1999ac_fn_c_check_member ()
2000{
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2003$as_echo_n "checking for $2.$3... " >&6; }
9797da40 2004if eval \${$4+:} false; then :
25e9e4f0
AJ
2005 $as_echo_n "(cached) " >&6
2006else
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008/* end confdefs.h. */
2009$5
2010int
2011main ()
2012{
2013static $2 ac_aggr;
2014if (ac_aggr.$3)
2015return 0;
2016 ;
2017 return 0;
2018}
2019_ACEOF
2020if ac_fn_c_try_compile "$LINENO"; then :
2021 eval "$4=yes"
2022else
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024/* end confdefs.h. */
2025$5
2026int
2027main ()
2028{
2029static $2 ac_aggr;
2030if (sizeof ac_aggr.$3)
2031return 0;
2032 ;
2033 return 0;
2034}
2035_ACEOF
2036if ac_fn_c_try_compile "$LINENO"; then :
2037 eval "$4=yes"
2038else
2039 eval "$4=no"
2040fi
2041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042fi
2043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044fi
2045eval ac_res=\$$4
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047$as_echo "$ac_res" >&6; }
9797da40 2048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
25e9e4f0
AJ
2049
2050} # ac_fn_c_check_member
2051
2052# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2053# -------------------------------------------
2054# Tests whether TYPE exists after having included INCLUDES, setting cache
2055# variable VAR accordingly.
2056ac_fn_c_check_type ()
2057{
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060$as_echo_n "checking for $2... " >&6; }
9797da40 2061if eval \${$3+:} false; then :
25e9e4f0
AJ
2062 $as_echo_n "(cached) " >&6
2063else
2064 eval "$3=no"
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066/* end confdefs.h. */
2067$4
2068int
2069main ()
2070{
2071if (sizeof ($2))
2072 return 0;
2073 ;
2074 return 0;
2075}
2076_ACEOF
2077if ac_fn_c_try_compile "$LINENO"; then :
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079/* end confdefs.h. */
2080$4
2081int
2082main ()
2083{
2084if (sizeof (($2)))
2085 return 0;
2086 ;
2087 return 0;
2088}
2089_ACEOF
2090if ac_fn_c_try_compile "$LINENO"; then :
2091
2092else
2093 eval "$3=yes"
2094fi
2095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096fi
2097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098fi
2099eval ac_res=\$$3
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101$as_echo "$ac_res" >&6; }
9797da40 2102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
25e9e4f0
AJ
2103
2104} # ac_fn_c_check_type
2105cat >config.log <<_ACEOF
2106This file contains any messages produced by compilers while
2107running configure, to aid debugging if configure makes a mistake.
2108
8c00ee0b 2109It was created by Wine $as_me 1.3.26, which was
9797da40 2110generated by GNU Autoconf 2.68. Invocation command line was
25e9e4f0
AJ
2111
2112 $ $0 $@
2113
2114_ACEOF
2115exec 5>>config.log
2116{
2117cat <<_ASUNAME
2118## --------- ##
2119## Platform. ##
2120## --------- ##
2121
2122hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2123uname -m = `(uname -m) 2>/dev/null || echo unknown`
2124uname -r = `(uname -r) 2>/dev/null || echo unknown`
2125uname -s = `(uname -s) 2>/dev/null || echo unknown`
2126uname -v = `(uname -v) 2>/dev/null || echo unknown`
2127
2128/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2129/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2130
2131/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2132/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2133/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2134/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2135/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2136/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2137/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2138
2139_ASUNAME
2140
2141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
daa2886c
AJ
2142for as_dir in $PATH
2143do
2144 IFS=$as_save_IFS
2145 test -z "$as_dir" && as_dir=.
25e9e4f0
AJ
2146 $as_echo "PATH: $as_dir"
2147 done
fc6ffb29 2148IFS=$as_save_IFS
daa2886c 2149
f5818d2f
AJ
2150} >&5
2151
daa2886c
AJ
2152cat >&5 <<_ACEOF
2153
2154
2155## ----------- ##
2156## Core tests. ##
2157## ----------- ##
2158
2159_ACEOF
f5818d2f 2160
f5818d2f
AJ
2161
2162# Keep a trace of the command line.
2163# Strip out --no-create and --no-recursion so they do not pile up.
e24bcc77 2164# Strip out --silent because we don't want to record it for future runs.
f5818d2f 2165# Also quote any args containing shell meta-characters.
e24bcc77 2166# Make two passes to allow for proper duplicate-argument suppression.
f5818d2f 2167ac_configure_args=
e24bcc77
AJ
2168ac_configure_args0=
2169ac_configure_args1=
e24bcc77
AJ
2170ac_must_keep_next=false
2171for ac_pass in 1 2
f5818d2f 2172do
e24bcc77
AJ
2173 for ac_arg
2174 do
2175 case $ac_arg in
2176 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2178 | -silent | --silent | --silen | --sile | --sil)
2179 continue ;;
fc6ffb29 2180 *\'*)
abf5048b 2181 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
e24bcc77
AJ
2182 esac
2183 case $ac_pass in
25e9e4f0 2184 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
e24bcc77 2185 2)
25e9e4f0 2186 as_fn_append ac_configure_args1 " '$ac_arg'"
e24bcc77 2187 if test $ac_must_keep_next = true; then
875927f6 2188 ac_must_keep_next=false # Got value, back to normal.
e24bcc77 2189 else
875927f6
AJ
2190 case $ac_arg in
2191 *=* | --config-cache | -C | -disable-* | --disable-* \
2192 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2193 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2194 | -with-* | --with-* | -without-* | --without-* | --x)
2195 case "$ac_configure_args0 " in
2196 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2197 esac
2198 ;;
2199 -* ) ac_must_keep_next=true ;;
2200 esac
e24bcc77 2201 fi
25e9e4f0 2202 as_fn_append ac_configure_args " '$ac_arg'"
e24bcc77
AJ
2203 ;;
2204 esac
2205 done
f5818d2f 2206done
25e9e4f0
AJ
2207{ ac_configure_args0=; unset ac_configure_args0;}
2208{ ac_configure_args1=; unset ac_configure_args1;}
f5818d2f
AJ
2209
2210# When interrupted or exit'd, cleanup temporary files, and complete
2211# config.log. We remove comments because anyway the quotes in there
2212# would cause problems or look ugly.
fc6ffb29
AJ
2213# WARNING: Use '\'' to represent an apostrophe within the trap.
2214# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
f5818d2f
AJ
2215trap 'exit_status=$?
2216 # Save into config.log some information that might help in debugging.
daa2886c
AJ
2217 {
2218 echo
11af04e3 2219
a53c44a6 2220 $as_echo "## ---------------- ##
daa2886c 2221## Cache variables. ##
a53c44a6 2222## ---------------- ##"
daa2886c
AJ
2223 echo
2224 # The following way of writing the cache mishandles newlines in values,
fc6ffb29
AJ
2225(
2226 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2227 eval ac_val=\$$ac_var
2228 case $ac_val in #(
2229 *${as_nl}*)
2230 case $ac_var in #(
25e9e4f0 2231 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
abf5048b 2232$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
fc6ffb29
AJ
2233 esac
2234 case $ac_var in #(
2235 _ | IFS | as_nl) ;; #(
abf5048b 2236 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25e9e4f0 2237 *) { eval $ac_var=; unset $ac_var;} ;;
fc6ffb29
AJ
2238 esac ;;
2239 esac
2240 done
f5818d2f 2241 (set) 2>&1 |
fc6ffb29
AJ
2242 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2243 *${as_nl}ac_space=\ *)
f5818d2f 2244 sed -n \
fc6ffb29
AJ
2245 "s/'\''/'\''\\\\'\'''\''/g;
2246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2247 ;; #(
f5818d2f 2248 *)
fc6ffb29 2249 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
f5818d2f 2250 ;;
fc6ffb29
AJ
2251 esac |
2252 sort
2253)
daa2886c 2254 echo
11af04e3 2255
a53c44a6 2256 $as_echo "## ----------------- ##
11af04e3 2257## Output variables. ##
a53c44a6 2258## ----------------- ##"
11af04e3
AJ
2259 echo
2260 for ac_var in $ac_subst_vars
2261 do
fc6ffb29 2262 eval ac_val=\$$ac_var
0ebeb530 2263 case $ac_val in
abf5048b 2264 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
0ebeb530 2265 esac
abf5048b 2266 $as_echo "$ac_var='\''$ac_val'\''"
11af04e3
AJ
2267 done | sort
2268 echo
2269
2270 if test -n "$ac_subst_files"; then
a53c44a6 2271 $as_echo "## ------------------- ##
fc6ffb29 2272## File substitutions. ##
a53c44a6 2273## ------------------- ##"
11af04e3
AJ
2274 echo
2275 for ac_var in $ac_subst_files
2276 do
fc6ffb29 2277 eval ac_val=\$$ac_var
0ebeb530 2278 case $ac_val in
abf5048b 2279 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
0ebeb530 2280 esac
abf5048b 2281 $as_echo "$ac_var='\''$ac_val'\''"
11af04e3
AJ
2282 done | sort
2283 echo
2284 fi
2285
daa2886c 2286 if test -s confdefs.h; then
a53c44a6 2287 $as_echo "## ----------- ##
daa2886c 2288## confdefs.h. ##
a53c44a6 2289## ----------- ##"
daa2886c 2290 echo
fc6ffb29 2291 cat confdefs.h
daa2886c
AJ
2292 echo
2293 fi
2294 test "$ac_signal" != 0 &&
abf5048b
AJ
2295 $as_echo "$as_me: caught signal $ac_signal"
2296 $as_echo "$as_me: exit $exit_status"
daa2886c 2297 } >&5
fc6ffb29
AJ
2298 rm -f core *.core core.conftest.* &&
2299 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
f5818d2f 2300 exit $exit_status
fc6ffb29 2301' 0
f5818d2f 2302for ac_signal in 1 2 13 15; do
25e9e4f0 2303 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
f5818d2f
AJ
2304done
2305ac_signal=0
2306
2307# confdefs.h avoids OS command line length limits that DEFS can exceed.
fc6ffb29 2308rm -f -r conftest* confdefs.h
f5818d2f 2309
25e9e4f0
AJ
2310$as_echo "/* confdefs.h */" > confdefs.h
2311
daa2886c
AJ
2312# Predefined preprocessor variables.
2313
2314cat >>confdefs.h <<_ACEOF
2315#define PACKAGE_NAME "$PACKAGE_NAME"
2316_ACEOF
2317
daa2886c
AJ
2318cat >>confdefs.h <<_ACEOF
2319#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2320_ACEOF
2321
daa2886c
AJ
2322cat >>confdefs.h <<_ACEOF
2323#define PACKAGE_VERSION "$PACKAGE_VERSION"
2324_ACEOF
2325
daa2886c
AJ
2326cat >>confdefs.h <<_ACEOF
2327#define PACKAGE_STRING "$PACKAGE_STRING"
2328_ACEOF
2329
daa2886c
AJ
2330cat >>confdefs.h <<_ACEOF
2331#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2332_ACEOF
2333
25e9e4f0
AJ
2334cat >>confdefs.h <<_ACEOF
2335#define PACKAGE_URL "$PACKAGE_URL"
2336_ACEOF
2337
daa2886c 2338
f5818d2f 2339# Let the site file select an alternate cache file if it wants to.
abf5048b
AJ
2340# Prefer an explicitly selected file to automatically selected ones.
2341ac_site_file1=NONE
2342ac_site_file2=NONE
fc6ffb29 2343if test -n "$CONFIG_SITE"; then
a53c44a6
AJ
2344 # We do not want a PATH search for config.site.
2345 case $CONFIG_SITE in #((
2346 -*) ac_site_file1=./$CONFIG_SITE;;
2347 */*) ac_site_file1=$CONFIG_SITE;;
2348 *) ac_site_file1=./$CONFIG_SITE;;
2349 esac
fc6ffb29 2350elif test "x$prefix" != xNONE; then
abf5048b
AJ
2351 ac_site_file1=$prefix/share/config.site
2352 ac_site_file2=$prefix/etc/config.site
fc6ffb29 2353else
abf5048b
AJ
2354 ac_site_file1=$ac_default_prefix/share/config.site
2355 ac_site_file2=$ac_default_prefix/etc/config.site
e2991ea7 2356fi
abf5048b 2357for ac_site_file in "$ac_site_file1" "$ac_site_file2"
fc6ffb29 2358do
abf5048b 2359 test "x$ac_site_file" = xNONE && continue
fa8c4f76 2360 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
25e9e4f0 2361 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
abf5048b 2362$as_echo "$as_me: loading site script $ac_site_file" >&6;}
daa2886c 2363 sed 's/^/| /' "$ac_site_file" >&5
a53c44a6
AJ
2364 . "$ac_site_file" \
2365 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2367as_fn_error $? "failed to load site script $ac_site_file
9797da40 2368See \`config.log' for more details" "$LINENO" 5; }
e2991ea7
AJ
2369 fi
2370done
2371
2372if test -r "$cache_file"; then
fa8c4f76
AJ
2373 # Some versions of bash will fail to source /dev/null (special files
2374 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2375 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
25e9e4f0 2376 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
abf5048b 2377$as_echo "$as_me: loading cache $cache_file" >&6;}
f5818d2f 2378 case $cache_file in
0ebeb530
JW
2379 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2380 *) . "./$cache_file";;
f5818d2f
AJ
2381 esac
2382 fi
e2991ea7 2383else
25e9e4f0 2384 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
abf5048b 2385$as_echo "$as_me: creating cache $cache_file" >&6;}
f5818d2f
AJ
2386 >$cache_file
2387fi
2388
2389# Check that the precious variables saved in the cache have kept the same
2390# value.
2391ac_cache_corrupted=false
fc6ffb29 2392for ac_var in $ac_precious_vars; do
f5818d2f
AJ
2393 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2394 eval ac_new_set=\$ac_env_${ac_var}_set
fc6ffb29
AJ
2395 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2396 eval ac_new_val=\$ac_env_${ac_var}_value
f5818d2f
AJ
2397 case $ac_old_set,$ac_new_set in
2398 set,)
25e9e4f0 2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
abf5048b 2400$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
f5818d2f
AJ
2401 ac_cache_corrupted=: ;;
2402 ,set)
25e9e4f0 2403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
abf5048b 2404$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
f5818d2f
AJ
2405 ac_cache_corrupted=: ;;
2406 ,);;
2407 *)
2408 if test "x$ac_old_val" != "x$ac_new_val"; then
abf5048b
AJ
2409 # differences in whitespace do not lead to failure.
2410 ac_old_val_w=`echo x $ac_old_val`
2411 ac_new_val_w=`echo x $ac_new_val`
2412 if test "$ac_old_val_w" != "$ac_new_val_w"; then
25e9e4f0 2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
abf5048b
AJ
2414$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2415 ac_cache_corrupted=:
2416 else
25e9e4f0 2417 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
abf5048b
AJ
2418$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2419 eval $ac_var=\$ac_old_val
2420 fi
25e9e4f0 2421 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
abf5048b 2422$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
25e9e4f0 2423 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
abf5048b 2424$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
f5818d2f
AJ
2425 fi;;
2426 esac
daa2886c 2427 # Pass precious variables to config.status.
f5818d2f
AJ
2428 if test "$ac_new_set" = set; then
2429 case $ac_new_val in
abf5048b 2430 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
daa2886c
AJ
2431 *) ac_arg=$ac_var=$ac_new_val ;;
2432 esac
2433 case " $ac_configure_args " in
2434 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
25e9e4f0 2435 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
f5818d2f
AJ
2436 esac
2437 fi
2438done
2439if $ac_cache_corrupted; then
25e9e4f0 2440 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
abf5048b 2441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25e9e4f0 2442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
abf5048b 2443$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
a53c44a6 2444 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
e2991ea7 2445fi
25e9e4f0
AJ
2446## -------------------- ##
2447## Main body of script. ##
2448## -------------------- ##
daa2886c 2449
fc6ffb29
AJ
2450ac_ext=c
2451ac_cpp='$CPP $CPPFLAGS'
2452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2454ac_compiler_gnu=$ac_cv_c_compiler_gnu
daa2886c 2455
e2991ea7 2456
11af04e3 2457
fc6ffb29 2458ac_config_headers="$ac_config_headers include/config.h"
18f92e76 2459
d7d4fdf8 2460ac_aux_dir=
0ebeb530 2461for ac_dir in tools "$srcdir"/tools; do
a53c44a6
AJ
2462 if test -f "$ac_dir/install-sh"; then
2463 ac_aux_dir=$ac_dir
2464 ac_install_sh="$ac_aux_dir/install-sh -c"
2465 break
2466 elif test -f "$ac_dir/install.sh"; then
2467 ac_aux_dir=$ac_dir
2468 ac_install_sh="$ac_aux_dir/install.sh -c"
2469 break
2470 elif test -f "$ac_dir/shtool"; then
2471 ac_aux_dir=$ac_dir
2472 ac_install_sh="$ac_aux_dir/shtool install -c"
2473 break
2474 fi
d7d4fdf8
AJ
2475done
2476if test -z "$ac_aux_dir"; then
a53c44a6 2477 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
d7d4fdf8 2478fi
0ebeb530
JW
2479
2480# These three variables are undocumented and unsupported,
2481# and are intended to be withdrawn in a future Autoconf release.
2482# They can cause serious problems if a builder's source tree is in a directory
2483# whose full name contains unusual characters.
2484ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2485ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2486ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2487
ff8331ea 2488
daa2886c
AJ
2489
2490
d59227e5 2491
fc6ffb29 2492# Check whether --enable-win16 was given.
25e9e4f0 2493if test "${enable_win16+set}" = set; then :
fc6ffb29
AJ
2494 enableval=$enable_win16;
2495fi
c728efc3 2496
fc6ffb29 2497# Check whether --enable-win64 was given.
25e9e4f0 2498if test "${enable_win64+set}" = set; then :
fc6ffb29
AJ
2499 enableval=$enable_win64;
2500fi
2aa8e871 2501
35078f4b 2502# Check whether --enable-tests was given.
25e9e4f0 2503if test "${enable_tests+set}" = set; then :
35078f4b
AJ
2504 enableval=$enable_tests;
2505fi
2506
9d037226 2507# Check whether --enable-maintainer-mode was given.
25e9e4f0 2508if test "${enable_maintainer_mode+set}" = set; then :
9d037226 2509 enableval=$enable_maintainer_mode;
9d037226
AJ
2510fi
2511
b8074991
AJ
2512
2513
a41f0f1b 2514# Check whether --with-alsa was given.
25e9e4f0 2515if test "${with_alsa+set}" = set; then :
a41f0f1b
AJ
2516 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2517fi
2518
2519
a41f0f1b 2520# Check whether --with-capi was given.
25e9e4f0 2521if test "${with_capi+set}" = set; then :
a41f0f1b
AJ
2522 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2523fi
2524
2525
2526# Check whether --with-cms was given.
25e9e4f0 2527if test "${with_cms+set}" = set; then :
a41f0f1b
AJ
2528 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2529fi
2530
2531
2532# Check whether --with-coreaudio was given.
25e9e4f0 2533if test "${with_coreaudio+set}" = set; then :
a41f0f1b
AJ
2534 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2535fi
2536
2537
2538# Check whether --with-cups was given.
25e9e4f0 2539if test "${with_cups+set}" = set; then :
289ea338 2540 withval=$with_cups;
a41f0f1b
AJ
2541fi
2542
2543
2544# Check whether --with-curses was given.
25e9e4f0 2545if test "${with_curses+set}" = set; then :
a41f0f1b
AJ
2546 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2547fi
2548
2549
a41f0f1b 2550# Check whether --with-fontconfig was given.
25e9e4f0 2551if test "${with_fontconfig+set}" = set; then :
a41f0f1b
AJ
2552 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2553fi
2554
2555
a20c0e12 2556# Check whether --with-freetype was given.
25e9e4f0 2557if test "${with_freetype+set}" = set; then :
a20c0e12
AJ
2558 withval=$with_freetype;
2559fi
2560
2561
0e79c5c1
AJ
2562# Check whether --with-gettextpo was given.
2563if test "${with_gettextpo+set}" = set; then :
2564 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2565fi
2566
2567
a41f0f1b 2568# Check whether --with-gphoto was given.
25e9e4f0 2569if test "${with_gphoto+set}" = set; then :
a41f0f1b
AJ
2570 withval=$with_gphoto;
2571fi
2572
2573
ad798735 2574# Check whether --with-glu was given.
25e9e4f0 2575if test "${with_glu+set}" = set; then :
ad798735
AJ
2576 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2577fi
2578
2579
874c9ef6 2580# Check whether --with-gnutls was given.
25e9e4f0 2581if test "${with_gnutls+set}" = set; then :
874c9ef6
HV
2582 withval=$with_gnutls;
2583fi
2584
2585
6ce32e0d
AJ
2586# Check whether --with-gsm was given.
2587if test "${with_gsm+set}" = set; then :
2588 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
58b5a3f6
ML
2589fi
2590
2591
2914d655
AS
2592# Check whether --with-gstreamer was given.
2593if test "${with_gstreamer+set}" = set; then :
2594 withval=$with_gstreamer;
2595fi
2596
2597
a41f0f1b 2598# Check whether --with-hal was given.
25e9e4f0 2599if test "${with_hal+set}" = set; then :
a41f0f1b
AJ
2600 withval=$with_hal;
2601fi
2602
2603
a41f0f1b 2604# Check whether --with-jpeg was given.
25e9e4f0 2605if test "${with_jpeg+set}" = set; then :
a41f0f1b
AJ
2606 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2607fi
2608
2609
2610# Check whether --with-ldap was given.
25e9e4f0 2611if test "${with_ldap+set}" = set; then :
a41f0f1b
AJ
2612 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2613fi
2614
2615
db71d7c0
AS
2616# Check whether --with-mpg123 was given.
2617if test "${with_mpg123+set}" = set; then :
2618 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2619fi
2620
2621
862965f4
CR
2622# Check whether --with-openal was given.
2623if test "${with_openal+set}" = set; then :
0b08f19e 2624 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
862965f4
CR
2625fi
2626
2627
65c84d77
PU
2628# Check whether --with-opencl was given.
2629if test "${with_opencl+set}" = set; then :
2eb2f71c 2630 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
65c84d77
PU
2631fi
2632
2633
fc6ffb29 2634# Check whether --with-opengl was given.
25e9e4f0 2635if test "${with_opengl+set}" = set; then :
fc6ffb29
AJ
2636 withval=$with_opengl;
2637fi
f90efa9c
AJ
2638
2639
a41f0f1b 2640# Check whether --with-openssl was given.
25e9e4f0 2641if test "${with_openssl+set}" = set; then :
a41f0f1b
AJ
2642 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2643fi
2644
2645
2646# Check whether --with-oss was given.
25e9e4f0 2647if test "${with_oss+set}" = set; then :
f60a0f5e 2648 withval=$with_oss;
a41f0f1b
AJ
2649fi
2650
2651
2652# Check whether --with-png was given.
25e9e4f0 2653if test "${with_png+set}" = set; then :
a41f0f1b
AJ
2654 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2655fi
2656
2657
c891f6bc 2658# Check whether --with-pthread was given.
25e9e4f0 2659if test "${with_pthread+set}" = set; then :
c891f6bc
AJ
2660 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2661fi
2662
2663
a41f0f1b 2664# Check whether --with-sane was given.
25e9e4f0 2665if test "${with_sane+set}" = set; then :
a41f0f1b
AJ
2666 withval=$with_sane;
2667fi
2668
2669
73cd5693
VP
2670# Check whether --with-tiff was given.
2671if test "${with_tiff+set}" = set; then :
2672 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2673fi
2674
2675
bf6f0750
ML
2676# Check whether --with-v4l was given.
2677if test "${with_v4l+set}" = set; then :
2678 withval=$with_v4l;
2679fi
2680
2681
a41f0f1b 2682# Check whether --with-xcomposite was given.
25e9e4f0 2683if test "${with_xcomposite+set}" = set; then :
a41f0f1b
AJ
2684 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2685fi
2686
2687
2688# Check whether --with-xcursor was given.
25e9e4f0 2689if test "${with_xcursor+set}" = set; then :
a41f0f1b
AJ
2690 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2691fi
2692
2693
2694# Check whether --with-xinerama was given.
25e9e4f0 2695if test "${with_xinerama+set}" = set; then :
a41f0f1b
AJ
2696 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2697fi
2698
2699
2700# Check whether --with-xinput was given.
25e9e4f0 2701if test "${with_xinput+set}" = set; then :
a41f0f1b
AJ
2702 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2703fi
2704
2705
77e05ce4
AJ
2706# Check whether --with-xinput2 was given.
2707if test "${with_xinput2+set}" = set; then :
2708 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2709fi
2710
2711
a41f0f1b 2712# Check whether --with-xml was given.
25e9e4f0 2713if test "${with_xml+set}" = set; then :
a41f0f1b
AJ
2714 withval=$with_xml;
2715fi
2716
2717
2718# Check whether --with-xrandr was given.
25e9e4f0 2719if test "${with_xrandr+set}" = set; then :
a41f0f1b
AJ
2720 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2721fi
2722
2723
2724# Check whether --with-xrender was given.
25e9e4f0 2725if test "${with_xrender+set}" = set; then :
a41f0f1b
AJ
2726 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2727fi
2728
2729
2730# Check whether --with-xshape was given.
25e9e4f0 2731if test "${with_xshape+set}" = set; then :
a41f0f1b
AJ
2732 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2733fi
2734
2735
2736# Check whether --with-xshm was given.
25e9e4f0 2737if test "${with_xshm+set}" = set; then :
a41f0f1b
AJ
2738 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2739fi
2740
2741
2742# Check whether --with-xslt was given.
25e9e4f0 2743if test "${with_xslt+set}" = set; then :
a41f0f1b
AJ
2744 withval=$with_xslt;
2745fi
2746
2747
a49beb4c 2748# Check whether --with-xxf86vm was given.
25e9e4f0 2749if test "${with_xxf86vm+set}" = set; then :
7b285a4e 2750 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
a41f0f1b
AJ
2751fi
2752
2753
ba6a41a4
AJ
2754# Check whether --with-zlib was given.
2755if test "${with_zlib+set}" = set; then :
2756 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2757fi
2758
2759
a41f0f1b 2760
fc6ffb29 2761# Check whether --with-wine-tools was given.
25e9e4f0 2762if test "${with_wine_tools+set}" = set; then :
fc6ffb29
AJ
2763 withval=$with_wine_tools;
2764fi
fc01b729 2765
fc01b729 2766
39a75d37
AJ
2767# Check whether --with-wine64 was given.
2768if test "${with_wine64+set}" = set; then :
2769 withval=$with_wine64;
2770fi
2771
2772
f5818d2f 2773# Make sure we can run config.sub.
0ebeb530 2774$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
a53c44a6 2775 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
f5818d2f 2776
25e9e4f0 2777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
abf5048b 2778$as_echo_n "checking build system type... " >&6; }
9797da40 2779if ${ac_cv_build+:} false; then :
abf5048b 2780 $as_echo_n "(cached) " >&6
f5818d2f 2781else
fc6ffb29
AJ
2782 ac_build_alias=$build_alias
2783test "x$ac_build_alias" = x &&
0ebeb530 2784 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
fc6ffb29 2785test "x$ac_build_alias" = x &&
a53c44a6 2786 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
0ebeb530 2787ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
a53c44a6 2788 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
f5818d2f
AJ
2789
2790fi
25e9e4f0 2791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
abf5048b 2792$as_echo "$ac_cv_build" >&6; }
fc6ffb29
AJ
2793case $ac_cv_build in
2794*-*-*) ;;
9797da40 2795*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
fc6ffb29 2796esac
f5818d2f 2797build=$ac_cv_build
fc6ffb29
AJ
2798ac_save_IFS=$IFS; IFS='-'
2799set x $ac_cv_build
2800shift
2801build_cpu=$1
2802build_vendor=$2
2803shift; shift
2804# Remember, the first character of IFS is used to create $*,
2805# except with old shells:
2806build_os=$*
2807IFS=$ac_save_IFS
2808case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2809
2810
25e9e4f0 2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
abf5048b 2812$as_echo_n "checking host system type... " >&6; }
9797da40 2813if ${ac_cv_host+:} false; then :
abf5048b 2814 $as_echo_n "(cached) " >&6
f5818d2f 2815else
fc6ffb29
AJ
2816 if test "x$host_alias" = x; then
2817 ac_cv_host=$ac_cv_build
2818else
0ebeb530 2819 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
a53c44a6 2820 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
fc6ffb29 2821fi
f5818d2f
AJ
2822
2823fi
25e9e4f0 2824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
abf5048b 2825$as_echo "$ac_cv_host" >&6; }
fc6ffb29
AJ
2826case $ac_cv_host in
2827*-*-*) ;;
9797da40 2828*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
fc6ffb29 2829esac
f5818d2f 2830host=$ac_cv_host
fc6ffb29
AJ
2831ac_save_IFS=$IFS; IFS='-'
2832set x $ac_cv_host
2833shift
2834host_cpu=$1
2835host_vendor=$2
2836shift; shift
2837# Remember, the first character of IFS is used to create $*,
2838# except with old shells:
2839host_os=$*
2840IFS=$ac_save_IFS
2841case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
f5818d2f 2842
daa2886c 2843
71440f35 2844
73b724e7
AJ
2845case "$srcdir" in
2846 .) ;;
2847 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
a53c44a6 2848 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
25e9e4f0 2849You need to run 'make distclean' in the source tree first." "$LINENO" 5
73b724e7
AJ
2850 fi ;;
2851esac
2852
71440f35 2853
25e9e4f0 2854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
abf5048b
AJ
2855$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2856set x ${MAKE-make}
2857ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9797da40 2858if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
abf5048b 2859 $as_echo_n "(cached) " >&6
f5818d2f 2860else
daa2886c 2861 cat >conftest.make <<\_ACEOF
fc6ffb29 2862SHELL = /bin/sh
e2991ea7 2863all:
0ebeb530 2864 @echo '@@@%%%=$(MAKE)=@@@%%%'
daa2886c 2865_ACEOF
a53c44a6 2866# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
0ebeb530
JW
2867case `${MAKE-make} -f conftest.make 2>/dev/null` in
2868 *@@@%%%=?*=@@@%%%*)
2869 eval ac_cv_prog_make_${ac_make}_set=yes;;
2870 *)
2871 eval ac_cv_prog_make_${ac_make}_set=no;;
2872esac
f5818d2f 2873rm -f conftest.make
e2991ea7 2874fi
0ebeb530 2875if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
25e9e4f0 2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
abf5048b 2877$as_echo "yes" >&6; }
e2991ea7
AJ
2878 SET_MAKE=
2879else
25e9e4f0 2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 2881$as_echo "no" >&6; }
e2991ea7
AJ
2882 SET_MAKE="MAKE=${MAKE-make}"
2883fi
2884
f5818d2f
AJ
2885ac_ext=c
2886ac_cpp='$CPP $CPPFLAGS'
2887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889ac_compiler_gnu=$ac_cv_c_compiler_gnu
2890if test -n "$ac_tool_prefix"; then
2891 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2892set dummy ${ac_tool_prefix}gcc; ac_word=$2
25e9e4f0 2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf5048b 2894$as_echo_n "checking for $ac_word... " >&6; }
9797da40 2895if ${ac_cv_prog_CC+:} false; then :
abf5048b 2896 $as_echo_n "(cached) " >&6
f5818d2f
AJ
2897else
2898 if test -n "$CC"; then
2899 ac_cv_prog_CC="$CC" # Let the user override the test.
2900else
daa2886c
AJ
2901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902for as_dir in $PATH
2903do
2904 IFS=$as_save_IFS
2905 test -z "$as_dir" && as_dir=.
25e9e4f0 2906 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 2907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c 2908 ac_cv_prog_CC="${ac_tool_prefix}gcc"
25e9e4f0 2909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
daa2886c
AJ
2910 break 2
2911 fi
2912done
25e9e4f0 2913 done
fc6ffb29 2914IFS=$as_save_IFS
f5818d2f
AJ
2915
2916fi
2917fi
2918CC=$ac_cv_prog_CC
2919if test -n "$CC"; then
25e9e4f0 2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
abf5048b 2921$as_echo "$CC" >&6; }
f5818d2f 2922else
25e9e4f0 2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 2924$as_echo "no" >&6; }
f5818d2f
AJ
2925fi
2926
fc6ffb29 2927
f5818d2f
AJ
2928fi
2929if test -z "$ac_cv_prog_CC"; then
2930 ac_ct_CC=$CC
2931 # Extract the first word of "gcc", so it can be a program name with args.
e2991ea7 2932set dummy gcc; ac_word=$2
25e9e4f0 2933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf5048b 2934$as_echo_n "checking for $ac_word... " >&6; }
9797da40 2935if ${ac_cv_prog_ac_ct_CC+:} false; then :
abf5048b 2936 $as_echo_n "(cached) " >&6
f5818d2f
AJ
2937else
2938 if test -n "$ac_ct_CC"; then
2939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2940else
daa2886c
AJ
2941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942for as_dir in $PATH
2943do
2944 IFS=$as_save_IFS
2945 test -z "$as_dir" && as_dir=.
25e9e4f0 2946 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 2947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c 2948 ac_cv_prog_ac_ct_CC="gcc"
25e9e4f0 2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
daa2886c
AJ
2950 break 2
2951 fi
2952done
25e9e4f0 2953 done
fc6ffb29 2954IFS=$as_save_IFS
f5818d2f
AJ
2955
2956fi
2957fi
2958ac_ct_CC=$ac_cv_prog_ac_ct_CC
2959if test -n "$ac_ct_CC"; then
25e9e4f0 2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
abf5048b 2961$as_echo "$ac_ct_CC" >&6; }
f5818d2f 2962else
25e9e4f0 2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 2964$as_echo "no" >&6; }
f5818d2f
AJ
2965fi
2966
fc6ffb29
AJ
2967 if test "x$ac_ct_CC" = x; then
2968 CC=""
2969 else
2970 case $cross_compiling:$ac_tool_warned in
2971yes:)
25e9e4f0 2972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
abf5048b 2973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
fc6ffb29
AJ
2974ac_tool_warned=yes ;;
2975esac
2976 CC=$ac_ct_CC
2977 fi
f5818d2f
AJ
2978else
2979 CC="$ac_cv_prog_CC"
2980fi
2981
2982if test -z "$CC"; then
fc6ffb29
AJ
2983 if test -n "$ac_tool_prefix"; then
2984 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
f5818d2f 2985set dummy ${ac_tool_prefix}cc; ac_word=$2
25e9e4f0 2986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf5048b 2987$as_echo_n "checking for $ac_word... " >&6; }
9797da40 2988if ${ac_cv_prog_CC+:} false; then :
abf5048b 2989 $as_echo_n "(cached) " >&6
e2991ea7
AJ
2990else
2991 if test -n "$CC"; then
2992 ac_cv_prog_CC="$CC" # Let the user override the test.
2993else
daa2886c
AJ
2994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995for as_dir in $PATH
2996do
2997 IFS=$as_save_IFS
2998 test -z "$as_dir" && as_dir=.
25e9e4f0 2999 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 3000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c 3001 ac_cv_prog_CC="${ac_tool_prefix}cc"
25e9e4f0 3002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
daa2886c
AJ
3003 break 2
3004 fi
3005done
25e9e4f0 3006 done
fc6ffb29 3007IFS=$as_save_IFS
f5818d2f 3008
e2991ea7
AJ
3009fi
3010fi
f5818d2f 3011CC=$ac_cv_prog_CC
e2991ea7 3012if test -n "$CC"; then
25e9e4f0 3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
abf5048b 3014$as_echo "$CC" >&6; }
f5818d2f 3015else
25e9e4f0 3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 3017$as_echo "no" >&6; }
f5818d2f
AJ
3018fi
3019
e2991ea7 3020
fc6ffb29 3021 fi
f5818d2f 3022fi
b817f4fb
AJ
3023if test -z "$CC"; then
3024 # Extract the first word of "cc", so it can be a program name with args.
3025set dummy cc; ac_word=$2
25e9e4f0 3026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf5048b 3027$as_echo_n "checking for $ac_word... " >&6; }
9797da40 3028if ${ac_cv_prog_CC+:} false; then :
abf5048b 3029 $as_echo_n "(cached) " >&6
b817f4fb
AJ
3030else
3031 if test -n "$CC"; then
3032 ac_cv_prog_CC="$CC" # Let the user override the test.
3033else
b817f4fb 3034 ac_prog_rejected=no
daa2886c
AJ
3035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036for as_dir in $PATH
3037do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
25e9e4f0 3040 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 3041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
3042 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3043 ac_prog_rejected=yes
3044 continue
3045 fi
3046 ac_cv_prog_CC="cc"
25e9e4f0 3047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
daa2886c
AJ
3048 break 2
3049 fi
3050done
25e9e4f0 3051 done
fc6ffb29 3052IFS=$as_save_IFS
f5818d2f 3053
b817f4fb
AJ
3054if test $ac_prog_rejected = yes; then
3055 # We found a bogon in the path, so make sure we never use it.
3056 set dummy $ac_cv_prog_CC
3057 shift
f5818d2f 3058 if test $# != 0; then
b817f4fb
AJ
3059 # We chose a different compiler from the bogus one.
3060 # However, it has the same basename, so the bogon will be chosen
3061 # first if we set CC to just the basename; use the full file name.
3062 shift
11af04e3 3063 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
b817f4fb
AJ
3064 fi
3065fi
3066fi
3067fi
f5818d2f 3068CC=$ac_cv_prog_CC
b817f4fb 3069if test -n "$CC"; then
25e9e4f0 3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
abf5048b 3071$as_echo "$CC" >&6; }
b817f4fb 3072else
25e9e4f0 3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 3074$as_echo "no" >&6; }
b817f4fb
AJ
3075fi
3076
fc6ffb29 3077
f5818d2f
AJ
3078fi
3079if test -z "$CC"; then
3080 if test -n "$ac_tool_prefix"; then
fc6ffb29 3081 for ac_prog in cl.exe
f5818d2f
AJ
3082 do
3083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3084set dummy $ac_tool_prefix$ac_prog; ac_word=$2
25e9e4f0 3085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf5048b 3086$as_echo_n "checking for $ac_word... " >&6; }
9797da40 3087if ${ac_cv_prog_CC+:} false; then :
abf5048b 3088 $as_echo_n "(cached) " >&6
f5818d2f
AJ
3089else
3090 if test -n "$CC"; then
18ad24a7
EP
3091 ac_cv_prog_CC="$CC" # Let the user override the test.
3092else
daa2886c
AJ
3093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094for as_dir in $PATH
3095do
3096 IFS=$as_save_IFS
3097 test -z "$as_dir" && as_dir=.
25e9e4f0 3098 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 3099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c 3100 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
25e9e4f0 3101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
daa2886c
AJ
3102 break 2
3103 fi
3104done
25e9e4f0 3105 done
fc6ffb29 3106IFS=$as_save_IFS
f5818d2f 3107
18ad24a7
EP
3108fi
3109fi
f5818d2f 3110CC=$ac_cv_prog_CC
18ad24a7 3111if test -n "$CC"; then
25e9e4f0 3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
abf5048b 3113$as_echo "$CC" >&6; }
18ad24a7 3114else
25e9e4f0 3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 3116$as_echo "no" >&6; }
b817f4fb 3117fi
e2991ea7 3118
fc6ffb29 3119
f5818d2f
AJ
3120 test -n "$CC" && break
3121 done
3122fi
3123if test -z "$CC"; then
3124 ac_ct_CC=$CC
fc6ffb29 3125 for ac_prog in cl.exe
f5818d2f
AJ
3126do
3127 # Extract the first word of "$ac_prog", so it can be a program name with args.
3128set dummy $ac_prog; ac_word=$2
25e9e4f0 3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf5048b 3130$as_echo_n "checking for $ac_word... " >&6; }
9797da40 3131if ${ac_cv_prog_ac_ct_CC+:} false; then :
abf5048b 3132 $as_echo_n "(cached) " >&6
f5818d2f
AJ
3133else
3134 if test -n "$ac_ct_CC"; then
3135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3136else
daa2886c
AJ
3137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138for as_dir in $PATH
3139do
3140 IFS=$as_save_IFS
3141 test -z "$as_dir" && as_dir=.
25e9e4f0 3142 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 3143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c 3144 ac_cv_prog_ac_ct_CC="$ac_prog"
25e9e4f0 3145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
daa2886c
AJ
3146 break 2
3147 fi
3148done
25e9e4f0 3149 done
fc6ffb29 3150IFS=$as_save_IFS
da0cfb36 3151
f5818d2f
AJ
3152fi
3153fi
3154ac_ct_CC=$ac_cv_prog_ac_ct_CC
3155if test -n "$ac_ct_CC"; then
25e9e4f0 3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
abf5048b 3157$as_echo "$ac_ct_CC" >&6; }
f5818d2f 3158else
25e9e4f0 3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 3160$as_echo "no" >&6; }
f5818d2f 3161fi
da0cfb36 3162
fc6ffb29 3163
f5818d2f
AJ
3164 test -n "$ac_ct_CC" && break
3165done
18ad24a7 3166
fc6ffb29
AJ
3167 if test "x$ac_ct_CC" = x; then
3168 CC=""
3169 else
3170 case $cross_compiling:$ac_tool_warned in
3171yes:)
25e9e4f0 3172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
abf5048b 3173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
fc6ffb29
AJ
3174ac_tool_warned=yes ;;
3175esac
3176 CC=$ac_ct_CC
3177 fi
f5818d2f
AJ
3178fi
3179
3180fi
3181
daa2886c 3182
25e9e4f0 3183test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
abf5048b 3184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a53c44a6 3185as_fn_error $? "no acceptable C compiler found in \$PATH
9797da40 3186See \`config.log' for more details" "$LINENO" 5; }
f5818d2f
AJ
3187
3188# Provide some information about the compiler.
25e9e4f0 3189$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
abf5048b
AJ
3190set X $ac_compile
3191ac_compiler=$2
25e9e4f0
AJ
3192for ac_option in --version -v -V -qversion; do
3193 { { ac_try="$ac_compiler $ac_option >&5"
0ebeb530
JW
3194case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197esac
25e9e4f0
AJ
3198eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3199$as_echo "$ac_try_echo"; } >&5
3200 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
f5818d2f 3201 ac_status=$?
25e9e4f0
AJ
3202 if test -s conftest.err; then
3203 sed '10a\
3204... rest of stderr output deleted ...
3205 10q' conftest.err >conftest.er1
3206 cat conftest.er1 >&5
25e9e4f0 3207 fi
fa8c4f76 3208 rm -f conftest.er1 conftest.err
25e9e4f0
AJ
3209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3210 test $ac_status = 0; }
3211done
f5818d2f 3212
25e9e4f0 3213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 3214/* end confdefs.h. */
fa8c4f76 3215
f5818d2f
AJ
3216int
3217main ()
3218{
3219
3220 ;
3221 return 0;
3222}
3223_ACEOF
3224ac_clean_files_save=$ac_clean_files
fa8c4f76 3225ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
f5818d2f
AJ
3226# Try to create an executable without -o first, disregard a.out.
3227# It will help us diagnose broken compilers, and finding out an intuition
3228# of exeext.
fa8c4f76
AJ
3229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3230$as_echo_n "checking whether the C compiler works... " >&6; }
abf5048b
AJ
3231ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3232
3233# The possible output files:
3234ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3235
0ebeb530
JW
3236ac_rmfiles=
3237for ac_file in $ac_files
3238do
3239 case $ac_file in
abf5048b 3240 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
0ebeb530
JW
3241 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3242 esac
3243done
3244rm -f $ac_rmfiles
fc6ffb29 3245
25e9e4f0 3246if { { ac_try="$ac_link_default"
0ebeb530
JW
3247case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250esac
25e9e4f0
AJ
3251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252$as_echo "$ac_try_echo"; } >&5
0ebeb530 3253 (eval "$ac_link_default") 2>&5
f5818d2f 3254 ac_status=$?
25e9e4f0
AJ
3255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256 test $ac_status = 0; }; then :
0ebeb530
JW
3257 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3258# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3259# in a Makefile. We should not override ac_cv_exeext if it was cached,
3260# so that the user can short-circuit this test for compilers unknown to
3261# Autoconf.
78bd1948 3262for ac_file in $ac_files ''
e24bcc77 3263do
11af04e3 3264 test -f "$ac_file" || continue
f5818d2f 3265 case $ac_file in
abf5048b 3266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
0ebeb530
JW
3267 ;;
3268 [ab].out )
3269 # We found the default executable, but exeext='' is most
3270 # certainly right.
3271 break;;
3272 *.* )
25e9e4f0 3273 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
0ebeb530
JW
3274 then :; else
3275 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3276 fi
3277 # We set ac_cv_exeext here because the later test for it is not
3278 # safe: cross compilers may not add the suffix if given an `-o'
3279 # argument, so we may need to know it at that point already.
3280 # Even if this section looks crufty: it has the advantage of
3281 # actually working.
3282 break;;
3283 * )
3284 break;;
f5818d2f
AJ
3285 esac
3286done
0ebeb530 3287test "$ac_cv_exeext" = no && ac_cv_exeext=
fc6ffb29 3288
f5818d2f 3289else
78bd1948
AJ
3290 ac_file=''
3291fi
25e9e4f0 3292if test -z "$ac_file"; then :
fa8c4f76
AJ
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294$as_echo "no" >&6; }
3295$as_echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3296sed 's/^/| /' conftest.$ac_ext >&5
3297
25e9e4f0 3298{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
abf5048b 3299$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a53c44a6 3300as_fn_error 77 "C compiler cannot create executables
9797da40 3301See \`config.log' for more details" "$LINENO" 5; }
fa8c4f76
AJ
3302else
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3304$as_echo "yes" >&6; }
f5818d2f 3305fi
fa8c4f76
AJ
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3307$as_echo_n "checking for C compiler default output file name... " >&6; }
3308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3309$as_echo "$ac_file" >&6; }
0ebeb530 3310ac_exeext=$ac_cv_exeext
0ebeb530 3311
fa8c4f76 3312rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
0ebeb530 3313ac_clean_files=$ac_clean_files_save
25e9e4f0 3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
abf5048b 3315$as_echo_n "checking for suffix of executables... " >&6; }
25e9e4f0 3316if { { ac_try="$ac_link"
0ebeb530
JW
3317case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320esac
25e9e4f0
AJ
3321eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322$as_echo "$ac_try_echo"; } >&5
0ebeb530 3323 (eval "$ac_link") 2>&5
f5818d2f 3324 ac_status=$?
25e9e4f0
AJ
3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326 test $ac_status = 0; }; then :
0ebeb530
JW
3327 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3328# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3329# work properly (i.e., refer to `conftest.exe'), while it won't with
3330# `rm'.
3331for ac_file in conftest.exe conftest conftest.*; do
3332 test -f "$ac_file" || continue
3333 case $ac_file in
abf5048b 3334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
0ebeb530
JW
3335 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3336 break;;
3337 * ) break;;
3338 esac
3339done
da0cfb36 3340else
25e9e4f0 3341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
abf5048b 3342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a53c44a6 3343as_fn_error $? "cannot compute suffix of executables: cannot compile and link
9797da40 3344See \`config.log' for more details" "$LINENO" 5; }
da0cfb36 3345fi
fa8c4f76 3346rm -f conftest conftest$ac_cv_exeext
25e9e4f0 3347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
abf5048b 3348$as_echo "$ac_cv_exeext" >&6; }
0ebeb530
JW
3349
3350rm -f conftest.$ac_ext
f5818d2f
AJ
3351EXEEXT=$ac_cv_exeext
3352ac_exeext=$EXEEXT
fa8c4f76
AJ
3353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354/* end confdefs.h. */
3355#include <stdio.h>
3356int
3357main ()
3358{
3359FILE *f = fopen ("conftest.out", "w");
3360 return ferror (f) || fclose (f) != 0;
3361
3362 ;
3363 return 0;
3364}
3365_ACEOF
3366ac_clean_files="$ac_clean_files conftest.out"
3367# Check that the compiler produces executables we can run. If not, either
3368# the compiler is broken, or we cross compile.
3369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3370$as_echo_n "checking whether we are cross compiling... " >&6; }
3371if test "$cross_compiling" != yes; then
3372 { { ac_try="$ac_link"
3373case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376esac
3377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378$as_echo "$ac_try_echo"; } >&5
3379 (eval "$ac_link") 2>&5
3380 ac_status=$?
3381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382 test $ac_status = 0; }
3383 if { ac_try='./conftest$ac_cv_exeext'
3384 { { case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387esac
3388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389$as_echo "$ac_try_echo"; } >&5
3390 (eval "$ac_try") 2>&5
3391 ac_status=$?
3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393 test $ac_status = 0; }; }; then
3394 cross_compiling=no
3395 else
3396 if test "$cross_compiling" = maybe; then
3397 cross_compiling=yes
3398 else
3399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a53c44a6 3401as_fn_error $? "cannot run C compiled programs.
fa8c4f76 3402If you meant to cross compile, use \`--host'.
9797da40 3403See \`config.log' for more details" "$LINENO" 5; }
fa8c4f76
AJ
3404 fi
3405 fi
3406fi
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3408$as_echo "$cross_compiling" >&6; }
3409
3410rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3411ac_clean_files=$ac_clean_files_save
25e9e4f0 3412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
abf5048b 3413$as_echo_n "checking for suffix of object files... " >&6; }
9797da40 3414if ${ac_cv_objext+:} false; then :
abf5048b 3415 $as_echo_n "(cached) " >&6
e2991ea7 3416else
25e9e4f0 3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0ebeb530
JW
3418/* end confdefs.h. */
3419
3420int
3421main ()
3422{
3423
3424 ;
3425 return 0;
3426}
3427_ACEOF
3428rm -f conftest.o conftest.obj
25e9e4f0 3429if { { ac_try="$ac_compile"
0ebeb530
JW
3430case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3433esac
25e9e4f0
AJ
3434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435$as_echo "$ac_try_echo"; } >&5
0ebeb530 3436 (eval "$ac_compile") 2>&5
f5818d2f 3437 ac_status=$?
25e9e4f0
AJ
3438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439 test $ac_status = 0; }; then :
fc6ffb29
AJ
3440 for ac_file in conftest.o conftest.obj conftest.*; do
3441 test -f "$ac_file" || continue;
f5818d2f 3442 case $ac_file in
abf5048b 3443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
f5818d2f
AJ
3444 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3445 break;;
3446 esac
3447done
18ad24a7 3448else
abf5048b 3449 $as_echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3450sed 's/^/| /' conftest.$ac_ext >&5
3451
25e9e4f0 3452{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
abf5048b 3453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a53c44a6 3454as_fn_error $? "cannot compute suffix of object files: cannot compile
9797da40 3455See \`config.log' for more details" "$LINENO" 5; }
18ad24a7 3456fi
0ebeb530 3457rm -f conftest.$ac_cv_objext conftest.$ac_ext
f5818d2f 3458fi
25e9e4f0 3459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
abf5048b 3460$as_echo "$ac_cv_objext" >&6; }
f5818d2f
AJ
3461OBJEXT=$ac_cv_objext
3462ac_objext=$OBJEXT
25e9e4f0 3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
abf5048b 3464$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
9797da40 3465if ${ac_cv_c_compiler_gnu+:} false; then :
abf5048b 3466 $as_echo_n "(cached) " >&6
e2991ea7 3467else
25e9e4f0 3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 3469/* end confdefs.h. */
f5818d2f
AJ
3470
3471int
3472main ()
3473{
3474#ifndef __GNUC__
3475 choke me
3476#endif
3477
3478 ;
3479 return 0;
3480}
3481_ACEOF
25e9e4f0 3482if ac_fn_c_try_compile "$LINENO"; then :
f5818d2f
AJ
3483 ac_compiler_gnu=yes
3484else
25e9e4f0 3485 ac_compiler_gnu=no
f5818d2f 3486fi
0ebeb530 3487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f
AJ
3488ac_cv_c_compiler_gnu=$ac_compiler_gnu
3489
3490fi
25e9e4f0 3491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
abf5048b
AJ
3492$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3493if test $ac_compiler_gnu = yes; then
3494 GCC=yes
3495else
3496 GCC=
3497fi
f5818d2f
AJ
3498ac_test_CFLAGS=${CFLAGS+set}
3499ac_save_CFLAGS=$CFLAGS
25e9e4f0 3500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
abf5048b 3501$as_echo_n "checking whether $CC accepts -g... " >&6; }
9797da40 3502if ${ac_cv_prog_cc_g+:} false; then :
abf5048b 3503 $as_echo_n "(cached) " >&6
f5818d2f 3504else
fc6ffb29
AJ
3505 ac_save_c_werror_flag=$ac_c_werror_flag
3506 ac_c_werror_flag=yes
3507 ac_cv_prog_cc_g=no
3508 CFLAGS="-g"
25e9e4f0 3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fc6ffb29
AJ
3510/* end confdefs.h. */
3511
3512int
3513main ()
3514{
3515
3516 ;
3517 return 0;
3518}
3519_ACEOF
25e9e4f0 3520if ac_fn_c_try_compile "$LINENO"; then :
fc6ffb29
AJ
3521 ac_cv_prog_cc_g=yes
3522else
25e9e4f0
AJ
3523 CFLAGS=""
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fc6ffb29
AJ
3525/* end confdefs.h. */
3526
3527int
3528main ()
3529{
3530
3531 ;
3532 return 0;
3533}
3534_ACEOF
25e9e4f0 3535if ac_fn_c_try_compile "$LINENO"; then :
fc6ffb29 3536
25e9e4f0
AJ
3537else
3538 ac_c_werror_flag=$ac_save_c_werror_flag
fc6ffb29 3539 CFLAGS="-g"
25e9e4f0 3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 3541/* end confdefs.h. */
f5818d2f
AJ
3542
3543int
3544main ()
3545{
3546
3547 ;
3548 return 0;
3549}
3550_ACEOF
25e9e4f0 3551if ac_fn_c_try_compile "$LINENO"; then :
7e6ae4ba 3552 ac_cv_prog_cc_g=yes
fc6ffb29 3553fi
0ebeb530 3554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29 3555fi
0ebeb530 3556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e2991ea7 3557fi
0ebeb530 3558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29 3559 ac_c_werror_flag=$ac_save_c_werror_flag
e2991ea7 3560fi
25e9e4f0 3561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
abf5048b 3562$as_echo "$ac_cv_prog_cc_g" >&6; }
18ad24a7 3563if test "$ac_test_CFLAGS" = set; then
f5818d2f 3564 CFLAGS=$ac_save_CFLAGS
18ad24a7
EP
3565elif test $ac_cv_prog_cc_g = yes; then
3566 if test "$GCC" = yes; then
da0cfb36
AJ
3567 CFLAGS="-g -O2"
3568 else
18ad24a7 3569 CFLAGS="-g"
e2991ea7
AJ
3570 fi
3571else
18ad24a7
EP
3572 if test "$GCC" = yes; then
3573 CFLAGS="-O2"
3574 else
3575 CFLAGS=
3576 fi
e2991ea7 3577fi
25e9e4f0 3578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
abf5048b 3579$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
9797da40 3580if ${ac_cv_prog_cc_c89+:} false; then :
abf5048b 3581 $as_echo_n "(cached) " >&6
11af04e3 3582else
fc6ffb29 3583 ac_cv_prog_cc_c89=no
11af04e3 3584ac_save_CC=$CC
25e9e4f0 3585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 3586/* end confdefs.h. */
11af04e3
AJ
3587#include <stdarg.h>
3588#include <stdio.h>
3589#include <sys/types.h>
3590#include <sys/stat.h>
3591/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3592struct buf { int x; };
3593FILE * (*rcsopen) (struct buf *, struct stat *, int);
3594static char *e (p, i)
3595 char **p;
3596 int i;
3597{
3598 return p[i];
3599}
3600static char *f (char * (*g) (char **, int), char **p, ...)
3601{
3602 char *s;
3603 va_list v;
3604 va_start (v,p);
3605 s = g (p, va_arg (v,int));
3606 va_end (v);
3607 return s;
3608}
875927f6
AJ
3609
3610/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3611 function prototypes and stuff, but not '\xHH' hex character constants.
3612 These don't provoke an error unfortunately, instead are silently treated
fc6ffb29 3613 as 'x'. The following induces an error, until -std is added to get
875927f6
AJ
3614 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3615 array size at least. It's necessary to write '\x00'==0 to get something
fc6ffb29 3616 that's true only with -std. */
875927f6
AJ
3617int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3618
f5f37a85
AJ
3619/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3620 inside strings and character constants. */
3621#define FOO(x) 'x'
3622int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3623
11af04e3
AJ
3624int test (int i, double x);
3625struct s1 {int (*f) (int a);};
3626struct s2 {int (*f) (double a);};
3627int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3628int argc;
3629char **argv;
3630int
3631main ()
3632{
3633return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3634 ;
3635 return 0;
3636}
3637_ACEOF
fc6ffb29
AJ
3638for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3639 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11af04e3
AJ
3640do
3641 CC="$ac_save_CC $ac_arg"
25e9e4f0 3642 if ac_fn_c_try_compile "$LINENO"; then :
fc6ffb29 3643 ac_cv_prog_cc_c89=$ac_arg
11af04e3 3644fi
0ebeb530 3645rm -f core conftest.err conftest.$ac_objext
fc6ffb29 3646 test "x$ac_cv_prog_cc_c89" != "xno" && break
11af04e3 3647done
fc6ffb29 3648rm -f conftest.$ac_ext
11af04e3
AJ
3649CC=$ac_save_CC
3650
3651fi
fc6ffb29
AJ
3652# AC_CACHE_VAL
3653case "x$ac_cv_prog_cc_c89" in
3654 x)
25e9e4f0 3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
abf5048b 3656$as_echo "none needed" >&6; } ;;
fc6ffb29 3657 xno)
25e9e4f0 3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
abf5048b 3659$as_echo "unsupported" >&6; } ;;
11af04e3 3660 *)
fc6ffb29 3661 CC="$CC $ac_cv_prog_cc_c89"
25e9e4f0 3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
abf5048b 3663$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11af04e3 3664esac
25e9e4f0 3665if test "x$ac_cv_prog_cc_c89" != xno; then :
11af04e3 3666
25e9e4f0 3667fi
e24bcc77 3668
f5818d2f
AJ
3669ac_ext=c
3670ac_cpp='$CPP $CPPFLAGS'
3671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673ac_compiler_gnu=$ac_cv_c_compiler_gnu
e2991ea7 3674
fc6ffb29 3675ac_ext=cpp
f41c2b21
DP
3676ac_cpp='$CXXCPP $CPPFLAGS'
3677ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
fc6ffb29
AJ
3680if test -z "$CXX"; then
3681 if test -n "$CCC"; then
3682 CXX=$CCC
3683 else
3684 if test -n "$ac_tool_prefix"; then
3685 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
f41c2b21
DP
3686 do
3687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3688set dummy $ac_tool_prefix$ac_prog; ac_word=$2
25e9e4f0 3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf5048b 3690$as_echo_n "checking for $ac_word... " >&6; }
9797da40 3691if ${ac_cv_prog_CXX+:} false; then :
abf5048b 3692 $as_echo_n "(cached) " >&6
f41c2b21
DP
3693else
3694 if test -n "$CXX"; then
3695 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3696else
3697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698for as_dir in $PATH
3699do
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
25e9e4f0 3702 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 3703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f41c2b21 3704 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
25e9e4f0 3705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f41c2b21
DP
3706 break 2
3707 fi
3708done
25e9e4f0 3709 done
fc6ffb29 3710IFS=$as_save_IFS
f41c2b21
DP
3711
3712fi
3713fi
3714CXX=$ac_cv_prog_CXX
3715if test -n "$CXX"; then
25e9e4f0 3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
abf5048b 3717$as_echo "$CXX" >&6; }
f41c2b21 3718else
25e9e4f0 3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 3720$as_echo "no" >&6; }
f41c2b21
DP
3721fi
3722
fc6ffb29 3723
f41c2b21
DP
3724 test -n "$CXX" && break
3725 done
3726fi
3727if test -z "$CXX"; then
3728 ac_ct_CXX=$CXX
fc6ffb29 3729 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
f41c2b21
DP
3730do
3731 # Extract the first word of "$ac_prog", so it can be a program name with args.
3732set dummy $ac_prog; ac_word=$2
25e9e4f0 3733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf5048b 3734$as_echo_n "checking for $ac_word... " >&6; }
9797da40 3735if ${ac_cv_prog_ac_ct_CXX+:} false; then :
abf5048b 3736 $as_echo_n "(cached) " >&6
f41c2b21
DP
3737else
3738 if test -n "$ac_ct_CXX"; then
3739 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3740else
3741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742for as_dir in $PATH
3743do
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
25e9e4f0 3746 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 3747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f41c2b21 3748 ac_cv_prog_ac_ct_CXX="$ac_prog"
25e9e4f0 3749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f41c2b21
DP
3750 break 2
3751 fi
3752done
25e9e4f0 3753 done
fc6ffb29 3754IFS=$as_save_IFS
f41c2b21
DP
3755
3756fi
3757fi
3758ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3759if test -n "$ac_ct_CXX"; then
25e9e4f0 3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
abf5048b 3761$as_echo "$ac_ct_CXX" >&6; }
f41c2b21 3762else
25e9e4f0 3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 3764$as_echo "no" >&6; }
f41c2b21
DP
3765fi
3766
fc6ffb29 3767
f41c2b21
DP
3768 test -n "$ac_ct_CXX" && break
3769done
f41c2b21 3770
fc6ffb29
AJ
3771 if test "x$ac_ct_CXX" = x; then
3772 CXX="g++"
3773 else
3774 case $cross_compiling:$ac_tool_warned in
3775yes:)
25e9e4f0 3776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
abf5048b 3777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
fc6ffb29
AJ
3778ac_tool_warned=yes ;;
3779esac
3780 CXX=$ac_ct_CXX
3781 fi
f41c2b21
DP
3782fi
3783
fc6ffb29
AJ
3784 fi
3785fi
f41c2b21 3786# Provide some information about the compiler.
25e9e4f0 3787$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
abf5048b
AJ
3788set X $ac_compile
3789ac_compiler=$2
25e9e4f0
AJ
3790for ac_option in --version -v -V -qversion; do
3791 { { ac_try="$ac_compiler $ac_option >&5"
0ebeb530
JW
3792case "(($ac_try" in
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3795esac
25e9e4f0
AJ
3796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3797$as_echo "$ac_try_echo"; } >&5
3798 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
f41c2b21 3799 ac_status=$?
25e9e4f0
AJ
3800 if test -s conftest.err; then
3801 sed '10a\
3802... rest of stderr output deleted ...
3803 10q' conftest.err >conftest.er1
3804 cat conftest.er1 >&5
25e9e4f0 3805 fi
fa8c4f76 3806 rm -f conftest.er1 conftest.err
25e9e4f0
AJ
3807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3808 test $ac_status = 0; }
3809done
f41c2b21 3810
25e9e4f0 3811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
abf5048b 3812$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
9797da40 3813if ${ac_cv_cxx_compiler_gnu+:} false; then :
abf5048b 3814 $as_echo_n "(cached) " >&6
f41c2b21 3815else
25e9e4f0 3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f41c2b21
DP
3817/* end confdefs.h. */
3818
3819int
3820main ()
3821{
3822#ifndef __GNUC__
3823 choke me
3824#endif
3825
3826 ;
3827 return 0;
3828}
3829_ACEOF
25e9e4f0 3830if ac_fn_cxx_try_compile "$LINENO"; then :
f41c2b21
DP
3831 ac_compiler_gnu=yes
3832else
25e9e4f0 3833 ac_compiler_gnu=no
f41c2b21 3834fi
0ebeb530 3835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f41c2b21
DP
3836ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3837
3838fi
25e9e4f0 3839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
abf5048b
AJ
3840$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3841if test $ac_compiler_gnu = yes; then
3842 GXX=yes
3843else
3844 GXX=
3845fi
f41c2b21
DP
3846ac_test_CXXFLAGS=${CXXFLAGS+set}
3847ac_save_CXXFLAGS=$CXXFLAGS
25e9e4f0 3848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
abf5048b 3849$as_echo_n "checking whether $CXX accepts -g... " >&6; }
9797da40 3850if ${ac_cv_prog_cxx_g+:} false; then :
abf5048b 3851 $as_echo_n "(cached) " >&6
f41c2b21 3852else
fc6ffb29
AJ
3853 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3854 ac_cxx_werror_flag=yes
3855 ac_cv_prog_cxx_g=no
3856 CXXFLAGS="-g"
25e9e4f0 3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f41c2b21
DP
3858/* end confdefs.h. */
3859
3860int
3861main ()
3862{
3863
3864 ;
3865 return 0;
3866}
3867_ACEOF
25e9e4f0 3868if ac_fn_cxx_try_compile "$LINENO"; then :
f41c2b21
DP
3869 ac_cv_prog_cxx_g=yes
3870else
25e9e4f0
AJ
3871 CXXFLAGS=""
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f41c2b21 3873/* end confdefs.h. */
fc6ffb29 3874
f41c2b21
DP
3875int
3876main ()
3877{
fc6ffb29 3878
f41c2b21
DP
3879 ;
3880 return 0;
3881}
3882_ACEOF
25e9e4f0 3883if ac_fn_cxx_try_compile "$LINENO"; then :
f41c2b21 3884
25e9e4f0
AJ
3885else
3886 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
fc6ffb29 3887 CXXFLAGS="-g"
25e9e4f0 3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f41c2b21 3889/* end confdefs.h. */
fc6ffb29 3890
f41c2b21
DP
3891int
3892main ()
3893{
fc6ffb29 3894
f41c2b21
DP
3895 ;
3896 return 0;
3897}
3898_ACEOF
25e9e4f0 3899if ac_fn_cxx_try_compile "$LINENO"; then :
fc6ffb29 3900 ac_cv_prog_cxx_g=yes
f41c2b21 3901fi
0ebeb530 3902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29 3903fi
0ebeb530 3904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f41c2b21 3905fi
0ebeb530 3906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29
AJ
3907 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3908fi
25e9e4f0 3909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
abf5048b 3910$as_echo "$ac_cv_prog_cxx_g" >&6; }
fc6ffb29
AJ
3911if test "$ac_test_CXXFLAGS" = set; then
3912 CXXFLAGS=$ac_save_CXXFLAGS
3913elif test $ac_cv_prog_cxx_g = yes; then
3914 if test "$GXX" = yes; then
3915 CXXFLAGS="-g -O2"
3916 else
3917 CXXFLAGS="-g"
3918 fi
3919else
3920 if test "$GXX" = yes; then
3921 CXXFLAGS="-O2"
3922 else
3923 CXXFLAGS=
3924 fi
3925fi
f41c2b21
DP
3926ac_ext=c
3927ac_cpp='$CPP $CPPFLAGS'
3928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3930ac_compiler_gnu=$ac_cv_c_compiler_gnu
3931
3e61ef7d
AJ
3932if test -n "$ac_tool_prefix"; then
3933 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3934set dummy ${ac_tool_prefix}cpp; ac_word=$2
25e9e4f0 3935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf5048b 3936$as_echo_n "checking for $ac_word... " >&6; }
9797da40 3937if ${ac_cv_prog_CPPBIN+:} false; then :
abf5048b 3938 $as_echo_n "(cached) " >&6
f41c2b21 3939else
a631ef63
AJ
3940 if test -n "$CPPBIN"; then
3941 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
f41c2b21
DP
3942else
3943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944for as_dir in $PATH
3945do
3946 IFS=$as_save_IFS
3947 test -z "$as_dir" && as_dir=.
25e9e4f0 3948 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 3949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a631ef63 3950 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
25e9e4f0 3951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f41c2b21
DP
3952 break 2
3953 fi
3954done
25e9e4f0 3955 done
fc6ffb29 3956IFS=$as_save_IFS
f41c2b21
DP
3957
3958fi
3959fi
a631ef63
AJ
3960CPPBIN=$ac_cv_prog_CPPBIN
3961if test -n "$CPPBIN"; then
25e9e4f0 3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
abf5048b 3963$as_echo "$CPPBIN" >&6; }
f41c2b21 3964else
25e9e4f0 3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 3966$as_echo "no" >&6; }
f41c2b21
DP
3967fi
3968
fc6ffb29 3969
3e61ef7d 3970fi
a631ef63
AJ
3971if test -z "$ac_cv_prog_CPPBIN"; then
3972 ac_ct_CPPBIN=$CPPBIN
3e61ef7d
AJ
3973 # Extract the first word of "cpp", so it can be a program name with args.
3974set dummy cpp; ac_word=$2
25e9e4f0 3975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf5048b 3976$as_echo_n "checking for $ac_word... " >&6; }
9797da40 3977if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
abf5048b 3978 $as_echo_n "(cached) " >&6
3e61ef7d 3979else
a631ef63
AJ
3980 if test -n "$ac_ct_CPPBIN"; then
3981 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3e61ef7d
AJ
3982else
3983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984for as_dir in $PATH
3985do
3986 IFS=$as_save_IFS
3987 test -z "$as_dir" && as_dir=.
25e9e4f0 3988 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 3989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a631ef63 3990 ac_cv_prog_ac_ct_CPPBIN="cpp"
25e9e4f0 3991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3e61ef7d
AJ
3992 break 2
3993 fi
3994done
25e9e4f0 3995 done
fc6ffb29 3996IFS=$as_save_IFS
3e61ef7d 3997
3e61ef7d
AJ
3998fi
3999fi
a631ef63
AJ
4000ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4001if test -n "$ac_ct_CPPBIN"; then
25e9e4f0 4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
abf5048b 4003$as_echo "$ac_ct_CPPBIN" >&6; }
3e61ef7d 4004else
25e9e4f0 4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 4006$as_echo "no" >&6; }
3e61ef7d
AJ
4007fi
4008
fc6ffb29
AJ
4009 if test "x$ac_ct_CPPBIN" = x; then
4010 CPPBIN="cpp"
4011 else
4012 case $cross_compiling:$ac_tool_warned in
4013yes:)
25e9e4f0 4014{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
abf5048b 4015$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
fc6ffb29
AJ
4016ac_tool_warned=yes ;;
4017esac
4018 CPPBIN=$ac_ct_CPPBIN
4019 fi
3e61ef7d 4020else
a631ef63 4021 CPPBIN="$ac_cv_prog_CPPBIN"
3e61ef7d
AJ
4022fi
4023
f41c2b21 4024
1aea4efd
AJ
4025cat >>confdefs.h <<_ACEOF
4026#define EXEEXT "$ac_exeext"
4027_ACEOF
4028
4029
dfa66db2 4030case $host in
42664338 4031 *-darwin*)
39a75d37 4032 if test "x$enable_win64" = "xyes"
42664338
KT
4033 then
4034 CC="$CC -m64"
4035 CXX="$CXX -m64"
4036 LD="${LD:-ld} -arch x86_64"
4037 AS="${AS:-as} -arch x86_64"
4038 host_cpu="x86_64"
4039 notice_platform="64-bit "
4040 TARGETFLAGS="-m64"
4041
4042 else
4043 CC="$CC -m32"
4044 CXX="$CXX -m32"
4045 LD="${LD:-ld} -arch i386"
4046 AS="${AS:-as} -arch i386"
4047 host_cpu="i386"
4048 notice_platform="32-bit "
4049 TARGETFLAGS="-m32"
4050
4051 enable_win16=${enable_win16:-yes}
4052 fi
4053 ;;
dfa66db2 4054 x86_64*)
6b4ed0fa 4055 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
dfa66db2
AJ
4056 then
4057 CC="$CC -m32"
4058 CXX="$CXX -m32"
25e9e4f0 4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
dfa66db2
AJ
4060$as_echo_n "checking whether $CC works... " >&6; }
4061
25e9e4f0 4062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dfa66db2
AJ
4063/* end confdefs.h. */
4064
4065int
4066main ()
4067{
4068
4069 ;
4070 return 0;
4071}
4072_ACEOF
25e9e4f0
AJ
4073if ac_fn_c_try_link "$LINENO"; then :
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
dfa66db2
AJ
4075$as_echo "yes" >&6; }
4076else
25e9e4f0 4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
dfa66db2 4078$as_echo "no" >&6; }
a53c44a6 4079 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
dfa66db2 4080fi
25e9e4f0
AJ
4081rm -f core conftest.err conftest.$ac_objext \
4082 conftest$ac_exeext conftest.$ac_ext
dfa66db2
AJ
4083 LD="${LD:-ld} -m elf_i386"
4084 AS="${AS:-as} --32"
4085 host_cpu="i386"
4086 notice_platform="32-bit "
07f77c41
AJ
4087 TARGETFLAGS="-m32"
4088
9981f4c4 4089 enable_win16=${enable_win16:-yes}
07f77c41 4090 else
8812d241
AJ
4091 if test "x${GCC}" = "xyes"
4092 then
25e9e4f0 4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
8812d241 4094$as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
25e9e4f0 4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812d241
AJ
4096/* end confdefs.h. */
4097#include <stdarg.h>
4098int
4099main ()
4100{
4101void func(__builtin_ms_va_list *args);
4102 ;
4103 return 0;
4104}
4105_ACEOF
25e9e4f0
AJ
4106if ac_fn_c_try_compile "$LINENO"; then :
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8812d241
AJ
4108$as_echo "yes" >&6; }
4109else
25e9e4f0 4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812d241 4111$as_echo "no" >&6; }
a53c44a6 4112 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
8812d241 4113fi
8812d241
AJ
4114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115 fi
07f77c41
AJ
4116 TARGETFLAGS="-m64"
4117
dfa66db2
AJ
4118 fi
4119 ;;
391fce6e 4120 *-mingw32*|*-cygwin*)
9981f4c4 4121 enable_win16=${enable_win16:-no}
ac0a38cf 4122 CFLAGS="$CFLAGS -D_WIN32"
9981f4c4
AJ
4123 ;;
4124 i[3456789]86*)
4125 enable_win16=${enable_win16:-yes}
4126 ;;
dfa66db2
AJ
4127esac
4128
9981f4c4 4129enable_win16=${enable_win16:-no}
4422d22c 4130enable_win64=${enable_win64:-no}
776820e5 4131
95081550
AJ
4132enable_winetest=${enable_winetest:-$enable_tests}
4133
39a75d37
AJ
4134if test -n "$with_wine64"
4135then
4136 if test "x$enable_win64" = "xyes"
4137 then
a53c44a6 4138 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
39a75d37
AJ
4139--enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4140 fi
90647774
AJ
4141 WOW64_DISABLE=\#
4142
39a75d37 4143 enable_fonts=${enable_fonts:-no}
39a75d37
AJ
4144 enable_server=${enable_server:-no}
4145 enable_tools=${enable_tools:-no}
b3265323
AJ
4146elif test "x$enable_win64" = "xyes"
4147then
4148 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
39a75d37
AJ
4149fi
4150
25e9e4f0 4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
abf5048b 4152$as_echo_n "checking for the directory containing the Wine tools... " >&6; }
9797da40 4153if ${wine_cv_toolsdir+:} false; then :
abf5048b 4154 $as_echo_n "(cached) " >&6
f41c2b21 4155else
39a75d37
AJ
4156 wine_cv_toolsdir="$with_wine_tools"
4157 if test -z "$with_wine_tools"; then
f41c2b21 4158 if test "$cross_compiling" = "yes"; then
a53c44a6 4159 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
39a75d37
AJ
4160 elif test -n "$with_wine64"; then
4161 wine_cv_toolsdir="$with_wine64"
f41c2b21 4162 fi
39a75d37
AJ
4163 fi
4164 if test -z "$wine_cv_toolsdir"; then
bd9852cd 4165 wine_cv_toolsdir="\$(top_builddir)"
39a75d37
AJ
4166 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4167 case "$wine_cv_toolsdir" in
4168 /*) ;;
bd9852cd 4169 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
f41c2b21
DP
4170 esac
4171 else
a53c44a6 4172 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
f41c2b21
DP
4173 fi
4174fi
25e9e4f0 4175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
abf5048b 4176$as_echo "$wine_cv_toolsdir" >&6; }
f41c2b21
DP
4177TOOLSDIR=$wine_cv_toolsdir
4178
4d135d9a 4179if test -n "$host_alias" -a "$host_alias" != "$build_alias"
424cb27e 4180then
0fea4a50 4181 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
424cb27e
AJ
4182
4183fi
f41c2b21 4184
40664c0c
AJ
4185for ac_prog in flex
4186do
4187 # Extract the first word of "$ac_prog", so it can be a program name with args.
4188set dummy $ac_prog; ac_word=$2
25e9e4f0 4189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 4190$as_echo_n "checking for $ac_word... " >&6; }
9797da40 4191if ${ac_cv_prog_FLEX+:} false; then :
abf5048b 4192 $as_echo_n "(cached) " >&6
f5818d2f 4193else
40664c0c
AJ
4194 if test -n "$FLEX"; then
4195 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
e2991ea7 4196else
40664c0c
AJ
4197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198for as_dir in $PATH
4199do
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
25e9e4f0 4202 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
4203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4204 ac_cv_prog_FLEX="$ac_prog"
25e9e4f0 4205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
4206 break 2
4207 fi
4208done
25e9e4f0 4209 done
40664c0c 4210IFS=$as_save_IFS
e24bcc77 4211
40664c0c
AJ
4212fi
4213fi
4214FLEX=$ac_cv_prog_FLEX
4215if test -n "$FLEX"; then
25e9e4f0 4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
40664c0c
AJ
4217$as_echo "$FLEX" >&6; }
4218else
25e9e4f0 4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c 4220$as_echo "no" >&6; }
f5818d2f 4221fi
fc6ffb29 4222
f5818d2f 4223
40664c0c
AJ
4224 test -n "$FLEX" && break
4225done
4226test -n "$FLEX" || FLEX="none"
4227
4228if test "$FLEX" = "none"
4229then
a53c44a6 4230 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
40664c0c 4231fi
ce307333
MS
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4233$as_echo_n "checking whether flex is recent enough... " >&6; }
4234cat >conftest.l <<EOF
4235%top{
4236#include "prediluvian.h"
4237}
4238%%
4239EOF
27816c7c 4240if $FLEX -t conftest.l >/dev/null 2>&5
ce307333
MS
4241then
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4243$as_echo "yes" >&6; }
4244else
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246$as_echo "no" >&6; }
a53c44a6 4247 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
ce307333 4248fi
40664c0c
AJ
4249
4250for ac_prog in bison
4251do
4252 # Extract the first word of "$ac_prog", so it can be a program name with args.
4253set dummy $ac_prog; ac_word=$2
25e9e4f0 4254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 4255$as_echo_n "checking for $ac_word... " >&6; }
9797da40 4256if ${ac_cv_prog_BISON+:} false; then :
40664c0c 4257 $as_echo_n "(cached) " >&6
18ad24a7 4258else
40664c0c
AJ
4259 if test -n "$BISON"; then
4260 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4261else
4262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263for as_dir in $PATH
4264do
4265 IFS=$as_save_IFS
4266 test -z "$as_dir" && as_dir=.
25e9e4f0 4267 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
4268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4269 ac_cv_prog_BISON="$ac_prog"
25e9e4f0 4270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
4271 break 2
4272 fi
4273done
25e9e4f0 4274 done
40664c0c 4275IFS=$as_save_IFS
e24bcc77 4276
40664c0c
AJ
4277fi
4278fi
4279BISON=$ac_cv_prog_BISON
4280if test -n "$BISON"; then
25e9e4f0 4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
40664c0c
AJ
4282$as_echo "$BISON" >&6; }
4283else
25e9e4f0 4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c 4285$as_echo "no" >&6; }
f5818d2f 4286fi
fc6ffb29 4287
f5818d2f 4288
40664c0c 4289 test -n "$BISON" && break
f5818d2f 4290done
40664c0c
AJ
4291test -n "$BISON" || BISON="none"
4292
4293if test "$BISON" = "none"
4294then
a53c44a6 4295 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
f5818d2f
AJ
4296fi
4297
40664c0c
AJ
4298if test -n "$ac_tool_prefix"; then
4299 for ac_prog in ar gar
4300 do
4301 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4302set dummy $ac_tool_prefix$ac_prog; ac_word=$2
25e9e4f0 4303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 4304$as_echo_n "checking for $ac_word... " >&6; }
9797da40 4305if ${ac_cv_prog_AR+:} false; then :
40664c0c
AJ
4306 $as_echo_n "(cached) " >&6
4307else
4308 if test -n "$AR"; then
4309 ac_cv_prog_AR="$AR" # Let the user override the test.
4310else
4311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312for as_dir in $PATH
4313do
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
25e9e4f0 4316 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
4317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4318 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
25e9e4f0 4319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
4320 break 2
4321 fi
4322done
25e9e4f0 4323 done
40664c0c 4324IFS=$as_save_IFS
f5818d2f 4325
40664c0c
AJ
4326fi
4327fi
4328AR=$ac_cv_prog_AR
4329if test -n "$AR"; then
25e9e4f0 4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
40664c0c 4331$as_echo "$AR" >&6; }
e2991ea7 4332else
25e9e4f0 4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c
AJ
4334$as_echo "no" >&6; }
4335fi
e24bcc77 4336
40664c0c
AJ
4337
4338 test -n "$AR" && break
4339 done
4340fi
4341if test -z "$AR"; then
4342 ac_ct_AR=$AR
4343 for ac_prog in ar gar
4344do
4345 # Extract the first word of "$ac_prog", so it can be a program name with args.
4346set dummy $ac_prog; ac_word=$2
25e9e4f0 4347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 4348$as_echo_n "checking for $ac_word... " >&6; }
9797da40 4349if ${ac_cv_prog_ac_ct_AR+:} false; then :
40664c0c
AJ
4350 $as_echo_n "(cached) " >&6
4351else
4352 if test -n "$ac_ct_AR"; then
4353 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4354else
4355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356for as_dir in $PATH
4357do
4358 IFS=$as_save_IFS
4359 test -z "$as_dir" && as_dir=.
25e9e4f0 4360 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
4361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4362 ac_cv_prog_ac_ct_AR="$ac_prog"
25e9e4f0 4363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c 4364 break 2
f5818d2f
AJ
4365 fi
4366done
25e9e4f0 4367 done
40664c0c
AJ
4368IFS=$as_save_IFS
4369
4370fi
4371fi
4372ac_ct_AR=$ac_cv_prog_ac_ct_AR
4373if test -n "$ac_ct_AR"; then
25e9e4f0 4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
40664c0c
AJ
4375$as_echo "$ac_ct_AR" >&6; }
4376else
25e9e4f0 4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c 4378$as_echo "no" >&6; }
e2991ea7 4379fi
fc6ffb29 4380
b817f4fb 4381
40664c0c
AJ
4382 test -n "$ac_ct_AR" && break
4383done
4384
4385 if test "x$ac_ct_AR" = x; then
4386 AR="ar"
4387 else
4388 case $cross_compiling:$ac_tool_warned in
4389yes:)
25e9e4f0 4390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
40664c0c
AJ
4391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4392ac_tool_warned=yes ;;
0ebeb530 4393esac
40664c0c
AJ
4394 AR=$ac_ct_AR
4395 fi
4396fi
e24bcc77 4397
40664c0c
AJ
4398ARFLAGS=rc
4399
4400if test -n "$ac_tool_prefix"; then
4401 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4402set dummy ${ac_tool_prefix}ranlib; ac_word=$2
25e9e4f0 4403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 4404$as_echo_n "checking for $ac_word... " >&6; }
9797da40 4405if ${ac_cv_prog_RANLIB+:} false; then :
40664c0c
AJ
4406 $as_echo_n "(cached) " >&6
4407else
4408 if test -n "$RANLIB"; then
4409 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4410else
4411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412for as_dir in $PATH
e2991ea7 4413do
40664c0c
AJ
4414 IFS=$as_save_IFS
4415 test -z "$as_dir" && as_dir=.
25e9e4f0 4416 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
4417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4418 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
25e9e4f0 4419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
4420 break 2
4421 fi
e2991ea7 4422done
25e9e4f0 4423 done
40664c0c
AJ
4424IFS=$as_save_IFS
4425
4426fi
4427fi
4428RANLIB=$ac_cv_prog_RANLIB
4429if test -n "$RANLIB"; then
25e9e4f0 4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
40664c0c
AJ
4431$as_echo "$RANLIB" >&6; }
4432else
25e9e4f0 4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c 4434$as_echo "no" >&6; }
e2991ea7 4435fi
fc6ffb29 4436
b817f4fb 4437
e2991ea7 4438fi
40664c0c
AJ
4439if test -z "$ac_cv_prog_RANLIB"; then
4440 ac_ct_RANLIB=$RANLIB
4441 # Extract the first word of "ranlib", so it can be a program name with args.
4442set dummy ranlib; ac_word=$2
25e9e4f0 4443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 4444$as_echo_n "checking for $ac_word... " >&6; }
9797da40 4445if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
40664c0c
AJ
4446 $as_echo_n "(cached) " >&6
4447else
4448 if test -n "$ac_ct_RANLIB"; then
4449 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4450else
4451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452for as_dir in $PATH
4453do
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
25e9e4f0 4456 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
4457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4458 ac_cv_prog_ac_ct_RANLIB="ranlib"
25e9e4f0 4459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
4460 break 2
4461 fi
4462done
25e9e4f0 4463 done
40664c0c 4464IFS=$as_save_IFS
e2991ea7 4465
40664c0c
AJ
4466fi
4467fi
4468ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4469if test -n "$ac_ct_RANLIB"; then
25e9e4f0 4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
40664c0c 4471$as_echo "$ac_ct_RANLIB" >&6; }
e2991ea7 4472else
25e9e4f0 4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c 4474$as_echo "no" >&6; }
e2991ea7
AJ
4475fi
4476
40664c0c
AJ
4477 if test "x$ac_ct_RANLIB" = x; then
4478 RANLIB=":"
4479 else
4480 case $cross_compiling:$ac_tool_warned in
4481yes:)
25e9e4f0 4482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
40664c0c
AJ
4483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4484ac_tool_warned=yes ;;
4485esac
4486 RANLIB=$ac_ct_RANLIB
4487 fi
4488else
4489 RANLIB="$ac_cv_prog_RANLIB"
4490fi
da0cfb36 4491
25e9e4f0 4492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
40664c0c
AJ
4493$as_echo_n "checking whether ln -s works... " >&6; }
4494LN_S=$as_ln_s
4495if test "$LN_S" = "ln -s"; then
25e9e4f0 4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40664c0c 4497$as_echo "yes" >&6; }
f5818d2f 4498else
25e9e4f0 4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
40664c0c
AJ
4500$as_echo "no, using $LN_S" >&6; }
4501fi
875927f6 4502
25e9e4f0 4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
40664c0c 4504$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
9797da40 4505if ${ac_cv_path_GREP+:} false; then :
abf5048b 4506 $as_echo_n "(cached) " >&6
ff8331ea 4507else
40664c0c
AJ
4508 if test -z "$GREP"; then
4509 ac_path_GREP_found=false
4510 # Loop through the user's path and test for each of PROGNAME-LIST
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4513do
4514 IFS=$as_save_IFS
4515 test -z "$as_dir" && as_dir=.
25e9e4f0 4516 for ac_prog in grep ggrep; do
40664c0c
AJ
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4519 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4520# Check for GNU ac_path_GREP and select it if it is found.
4521 # Check for GNU $ac_path_GREP
4522case `"$ac_path_GREP" --version 2>&1` in
4523*GNU*)
4524 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4525*)
4526 ac_count=0
4527 $as_echo_n 0123456789 >"conftest.in"
4528 while :
4529 do
4530 cat "conftest.in" "conftest.in" >"conftest.tmp"
4531 mv "conftest.tmp" "conftest.in"
4532 cp "conftest.in" "conftest.nl"
4533 $as_echo 'GREP' >> "conftest.nl"
4534 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4535 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
25e9e4f0 4536 as_fn_arith $ac_count + 1 && ac_count=$as_val
40664c0c
AJ
4537 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4538 # Best one so far, save it but keep looking for a better one
4539 ac_cv_path_GREP="$ac_path_GREP"
4540 ac_path_GREP_max=$ac_count
4541 fi
4542 # 10*(2^10) chars as input seems more than enough
4543 test $ac_count -gt 10 && break
4544 done
4545 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
0ebeb530 4546esac
e24bcc77 4547
40664c0c
AJ
4548 $ac_path_GREP_found && break 3
4549 done
4550 done
25e9e4f0 4551 done
40664c0c
AJ
4552IFS=$as_save_IFS
4553 if test -z "$ac_cv_path_GREP"; then
a53c44a6 4554 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
40664c0c
AJ
4555 fi
4556else
4557 ac_cv_path_GREP=$GREP
f5818d2f 4558fi
fc6ffb29 4559
f5818d2f 4560fi
25e9e4f0 4561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
40664c0c
AJ
4562$as_echo "$ac_cv_path_GREP" >&6; }
4563 GREP="$ac_cv_path_GREP"
ff8331ea 4564
40664c0c 4565
25e9e4f0 4566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
40664c0c 4567$as_echo_n "checking for egrep... " >&6; }
9797da40 4568if ${ac_cv_path_EGREP+:} false; then :
abf5048b 4569 $as_echo_n "(cached) " >&6
ff8331ea 4570else
40664c0c
AJ
4571 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4572 then ac_cv_path_EGREP="$GREP -E"
4573 else
4574 if test -z "$EGREP"; then
4575 ac_path_EGREP_found=false
4576 # Loop through the user's path and test for each of PROGNAME-LIST
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4579do
4580 IFS=$as_save_IFS
4581 test -z "$as_dir" && as_dir=.
25e9e4f0 4582 for ac_prog in egrep; do
40664c0c
AJ
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4585 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4586# Check for GNU ac_path_EGREP and select it if it is found.
4587 # Check for GNU $ac_path_EGREP
4588case `"$ac_path_EGREP" --version 2>&1` in
4589*GNU*)
4590 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4591*)
4592 ac_count=0
4593 $as_echo_n 0123456789 >"conftest.in"
4594 while :
4595 do
4596 cat "conftest.in" "conftest.in" >"conftest.tmp"
4597 mv "conftest.tmp" "conftest.in"
4598 cp "conftest.in" "conftest.nl"
4599 $as_echo 'EGREP' >> "conftest.nl"
4600 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4601 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
25e9e4f0 4602 as_fn_arith $ac_count + 1 && ac_count=$as_val
40664c0c
AJ
4603 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4604 # Best one so far, save it but keep looking for a better one
4605 ac_cv_path_EGREP="$ac_path_EGREP"
4606 ac_path_EGREP_max=$ac_count
4607 fi
4608 # 10*(2^10) chars as input seems more than enough
4609 test $ac_count -gt 10 && break
4610 done
4611 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
0ebeb530 4612esac
e24bcc77 4613
40664c0c
AJ
4614 $ac_path_EGREP_found && break 3
4615 done
4616 done
25e9e4f0 4617 done
40664c0c
AJ
4618IFS=$as_save_IFS
4619 if test -z "$ac_cv_path_EGREP"; then
a53c44a6 4620 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
40664c0c
AJ
4621 fi
4622else
4623 ac_cv_path_EGREP=$EGREP
f5818d2f 4624fi
fc6ffb29 4625
40664c0c 4626 fi
ff8331ea 4627fi
25e9e4f0 4628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
40664c0c
AJ
4629$as_echo "$ac_cv_path_EGREP" >&6; }
4630 EGREP="$ac_cv_path_EGREP"
ff8331ea
AJ
4631
4632
40664c0c
AJ
4633# Extract the first word of "ldconfig", so it can be a program name with args.
4634set dummy ldconfig; ac_word=$2
25e9e4f0 4635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 4636$as_echo_n "checking for $ac_word... " >&6; }
9797da40 4637if ${ac_cv_path_LDCONFIG+:} false; then :
abf5048b 4638 $as_echo_n "(cached) " >&6
f5818d2f 4639else
40664c0c
AJ
4640 case $LDCONFIG in
4641 [\\/]* | ?:[\\/]*)
4642 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4643 ;;
4644 *)
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646for as_dir in /sbin /usr/sbin $PATH
4647do
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
25e9e4f0 4650 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
4651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4652 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
25e9e4f0 4653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
4654 break 2
4655 fi
4656done
25e9e4f0 4657 done
40664c0c 4658IFS=$as_save_IFS
da0cfb36 4659
40664c0c
AJ
4660 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4661 ;;
0ebeb530 4662esac
40664c0c
AJ
4663fi
4664LDCONFIG=$ac_cv_path_LDCONFIG
4665if test -n "$LDCONFIG"; then
25e9e4f0 4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
40664c0c 4667$as_echo "$LDCONFIG" >&6; }
f5818d2f 4668else
25e9e4f0 4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c 4670$as_echo "no" >&6; }
f5818d2f 4671fi
fc6ffb29 4672
da0cfb36 4673
40664c0c
AJ
4674# Find a good install program. We prefer a C program (faster),
4675# so one script is as good as another. But avoid the broken or
4676# incompatible versions:
4677# SysV /etc/install, /usr/sbin/install
4678# SunOS /usr/etc/install
4679# IRIX /sbin/install
4680# AIX /bin/install
4681# AmigaOS /C/install, which installs bootblocks on floppy discs
4682# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4683# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4684# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4685# OS/2's system install, which has a completely different semantic
4686# ./install, which can be erroneously created by make from ./install.sh.
4687# Reject install programs that cannot install multiple files.
25e9e4f0 4688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
40664c0c
AJ
4689$as_echo_n "checking for a BSD-compatible install... " >&6; }
4690if test -z "$INSTALL"; then
9797da40 4691if ${ac_cv_path_install+:} false; then :
abf5048b 4692 $as_echo_n "(cached) " >&6
ff8331ea 4693else
40664c0c
AJ
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695for as_dir in $PATH
4696do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
25e9e4f0
AJ
4699 # Account for people who put trailing slashes in PATH elements.
4700case $as_dir/ in #((
4701 ./ | .// | /[cC]/* | \
40664c0c 4702 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
25e9e4f0 4703 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
40664c0c
AJ
4704 /usr/ucb/* ) ;;
4705 *)
4706 # OSF1 and SCO ODT 3.0 have their own names for install.
4707 # Don't use installbsd from OSF since it installs stuff as root
4708 # by default.
4709 for ac_prog in ginstall scoinst install; do
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4712 if test $ac_prog = install &&
4713 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4714 # AIX install. It has an incompatible calling convention.
4715 :
4716 elif test $ac_prog = install &&
4717 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4718 # program-specific install script used by HP pwplus--don't use.
4719 :
4720 else
4721 rm -rf conftest.one conftest.two conftest.dir
4722 echo one > conftest.one
4723 echo two > conftest.two
4724 mkdir conftest.dir
4725 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4726 test -s conftest.one && test -s conftest.two &&
4727 test -s conftest.dir/conftest.one &&
4728 test -s conftest.dir/conftest.two
4729 then
4730 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4731 break 3
4732 fi
4733 fi
4734 fi
4735 done
4736 done
4737 ;;
0ebeb530 4738esac
e24bcc77 4739
25e9e4f0 4740 done
40664c0c
AJ
4741IFS=$as_save_IFS
4742
4743rm -rf conftest.one conftest.two conftest.dir
fc6ffb29 4744
f5818d2f 4745fi
40664c0c
AJ
4746 if test "${ac_cv_path_install+set}" = set; then
4747 INSTALL=$ac_cv_path_install
4748 else
4749 # As a last resort, use the slow shell script. Don't cache a
4750 # value for INSTALL within a source directory, because that will
4751 # break other packages using the cache if that directory is
4752 # removed, or if the value is a relative name.
4753 INSTALL=$ac_install_sh
4754 fi
ff8331ea 4755fi
25e9e4f0 4756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
40664c0c 4757$as_echo "$INSTALL" >&6; }
ff8331ea 4758
40664c0c
AJ
4759# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4760# It thinks the first close brace ends the variable substitution.
4761test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
875927f6 4762
40664c0c 4763test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
875927f6 4764
40664c0c 4765test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
875927f6 4766
40664c0c
AJ
4767case "$INSTALL" in
4768 [\\/$]* | ?:[\\/]* ) ;;
bd9852cd 4769 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
40664c0c 4770esac
875927f6 4771
40664c0c
AJ
4772for ac_prog in lclint lint
4773do
4774 # Extract the first word of "$ac_prog", so it can be a program name with args.
4775set dummy $ac_prog; ac_word=$2
25e9e4f0 4776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 4777$as_echo_n "checking for $ac_word... " >&6; }
9797da40 4778if ${ac_cv_prog_LINT+:} false; then :
40664c0c 4779 $as_echo_n "(cached) " >&6
f5818d2f 4780else
40664c0c
AJ
4781 if test -n "$LINT"; then
4782 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4783else
4784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785for as_dir in $PATH
4786do
4787 IFS=$as_save_IFS
4788 test -z "$as_dir" && as_dir=.
25e9e4f0 4789 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
4790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791 ac_cv_prog_LINT="$ac_prog"
25e9e4f0 4792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
4793 break 2
4794 fi
4795done
25e9e4f0 4796 done
40664c0c 4797IFS=$as_save_IFS
e24bcc77 4798
f5818d2f 4799fi
f5818d2f 4800fi
40664c0c
AJ
4801LINT=$ac_cv_prog_LINT
4802if test -n "$LINT"; then
25e9e4f0 4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
40664c0c
AJ
4804$as_echo "$LINT" >&6; }
4805else
25e9e4f0 4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c
AJ
4807$as_echo "no" >&6; }
4808fi
da0cfb36 4809
40664c0c
AJ
4810
4811 test -n "$LINT" && break
4812done
4813
4814if test "$LINT" = "lint"
4815then
4816 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4817 fi
4818
4819
4820
4821for ac_prog in fontforge
4822do
4823 # Extract the first word of "$ac_prog", so it can be a program name with args.
4824set dummy $ac_prog; ac_word=$2
25e9e4f0 4825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 4826$as_echo_n "checking for $ac_word... " >&6; }
9797da40 4827if ${ac_cv_prog_FONTFORGE+:} false; then :
abf5048b 4828 $as_echo_n "(cached) " >&6
e2bfa4c7 4829else
40664c0c
AJ
4830 if test -n "$FONTFORGE"; then
4831 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
f5818d2f 4832else
40664c0c
AJ
4833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834for as_dir in $PATH
4835do
4836 IFS=$as_save_IFS
4837 test -z "$as_dir" && as_dir=.
25e9e4f0 4838 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
4839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4840 ac_cv_prog_FONTFORGE="$ac_prog"
25e9e4f0 4841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
4842 break 2
4843 fi
4844done
25e9e4f0 4845 done
40664c0c 4846IFS=$as_save_IFS
e24bcc77 4847
f5818d2f 4848fi
f5818d2f 4849fi
40664c0c
AJ
4850FONTFORGE=$ac_cv_prog_FONTFORGE
4851if test -n "$FONTFORGE"; then
25e9e4f0 4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
40664c0c
AJ
4853$as_echo "$FONTFORGE" >&6; }
4854else
25e9e4f0 4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c 4856$as_echo "no" >&6; }
da0cfb36
AJ
4857fi
4858
da0cfb36 4859
40664c0c
AJ
4860 test -n "$FONTFORGE" && break
4861done
4862test -n "$FONTFORGE" || FONTFORGE="false"
4863
4864for ac_prog in pkg-config
4865do
4866 # Extract the first word of "$ac_prog", so it can be a program name with args.
4867set dummy $ac_prog; ac_word=$2
25e9e4f0 4868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 4869$as_echo_n "checking for $ac_word... " >&6; }
9797da40 4870if ${ac_cv_prog_PKG_CONFIG+:} false; then :
abf5048b 4871 $as_echo_n "(cached) " >&6
da0cfb36 4872else
40664c0c
AJ
4873 if test -n "$PKG_CONFIG"; then
4874 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4875else
4876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877for as_dir in $PATH
4878do
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
25e9e4f0 4881 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
4882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4883 ac_cv_prog_PKG_CONFIG="$ac_prog"
25e9e4f0 4884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
4885 break 2
4886 fi
4887done
25e9e4f0 4888 done
40664c0c 4889IFS=$as_save_IFS
875927f6 4890
40664c0c
AJ
4891fi
4892fi
4893PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4894if test -n "$PKG_CONFIG"; then
25e9e4f0 4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
40664c0c
AJ
4896$as_echo "$PKG_CONFIG" >&6; }
4897else
25e9e4f0 4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c
AJ
4899$as_echo "no" >&6; }
4900fi
875927f6 4901
875927f6 4902
40664c0c
AJ
4903 test -n "$PKG_CONFIG" && break
4904done
4905test -n "$PKG_CONFIG" || PKG_CONFIG="false"
875927f6 4906
40664c0c
AJ
4907for ac_prog in rsvg
4908do
4909 # Extract the first word of "$ac_prog", so it can be a program name with args.
4910set dummy $ac_prog; ac_word=$2
25e9e4f0 4911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 4912$as_echo_n "checking for $ac_word... " >&6; }
9797da40 4913if ${ac_cv_prog_RSVG+:} false; then :
40664c0c
AJ
4914 $as_echo_n "(cached) " >&6
4915else
4916 if test -n "$RSVG"; then
4917 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4918else
4919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920for as_dir in $PATH
4921do
4922 IFS=$as_save_IFS
4923 test -z "$as_dir" && as_dir=.
25e9e4f0 4924 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
4925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4926 ac_cv_prog_RSVG="$ac_prog"
25e9e4f0 4927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
4928 break 2
4929 fi
4930done
25e9e4f0 4931 done
40664c0c
AJ
4932IFS=$as_save_IFS
4933
4934fi
4935fi
4936RSVG=$ac_cv_prog_RSVG
4937if test -n "$RSVG"; then
25e9e4f0 4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
40664c0c
AJ
4939$as_echo "$RSVG" >&6; }
4940else
25e9e4f0 4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c
AJ
4942$as_echo "no" >&6; }
4943fi
4944
4945
4946 test -n "$RSVG" && break
4947done
4948test -n "$RSVG" || RSVG="false"
4949
476a2bee
JH
4950for ac_prog in convert
4951do
4952 # Extract the first word of "$ac_prog", so it can be a program name with args.
4953set dummy $ac_prog; ac_word=$2
4954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4955$as_echo_n "checking for $ac_word... " >&6; }
9797da40 4956if ${ac_cv_prog_CONVERT+:} false; then :
476a2bee
JH
4957 $as_echo_n "(cached) " >&6
4958else
4959 if test -n "$CONVERT"; then
4960 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
4961else
4962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963for as_dir in $PATH
4964do
4965 IFS=$as_save_IFS
4966 test -z "$as_dir" && as_dir=.
4967 for ac_exec_ext in '' $ac_executable_extensions; do
4968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4969 ac_cv_prog_CONVERT="$ac_prog"
4970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4971 break 2
4972 fi
4973done
4974 done
4975IFS=$as_save_IFS
4976
4977fi
4978fi
4979CONVERT=$ac_cv_prog_CONVERT
4980if test -n "$CONVERT"; then
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
4982$as_echo "$CONVERT" >&6; }
4983else
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4985$as_echo "no" >&6; }
4986fi
4987
4988
4989 test -n "$CONVERT" && break
4990done
4991test -n "$CONVERT" || CONVERT="false"
4992
40664c0c
AJ
4993for ac_prog in icotool
4994do
4995 # Extract the first word of "$ac_prog", so it can be a program name with args.
4996set dummy $ac_prog; ac_word=$2
25e9e4f0 4997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 4998$as_echo_n "checking for $ac_word... " >&6; }
9797da40 4999if ${ac_cv_prog_ICOTOOL+:} false; then :
40664c0c
AJ
5000 $as_echo_n "(cached) " >&6
5001else
5002 if test -n "$ICOTOOL"; then
5003 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5004else
5005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006for as_dir in $PATH
5007do
5008 IFS=$as_save_IFS
5009 test -z "$as_dir" && as_dir=.
25e9e4f0 5010 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
5011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5012 ac_cv_prog_ICOTOOL="$ac_prog"
25e9e4f0 5013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
5014 break 2
5015 fi
5016done
25e9e4f0 5017 done
40664c0c
AJ
5018IFS=$as_save_IFS
5019
5020fi
5021fi
5022ICOTOOL=$ac_cv_prog_ICOTOOL
5023if test -n "$ICOTOOL"; then
25e9e4f0 5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
40664c0c
AJ
5025$as_echo "$ICOTOOL" >&6; }
5026else
25e9e4f0 5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c
AJ
5028$as_echo "no" >&6; }
5029fi
5030
5031
5032 test -n "$ICOTOOL" && break
5033done
5034test -n "$ICOTOOL" || ICOTOOL="false"
5035
5036
2eda9c72 5037if test "x$enable_maintainer_mode" != "xyes"
40664c0c 5038then
2eda9c72
AN
5039 MAINTAINER_MODE=\#
5040
5041else
9797da40
AJ
5042 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5043 if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
b9eae1ef
JH
5044
5045 if test "$CONVERT" = false
5046 then
a53c44a6 5047 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
b9eae1ef
JH
5048 else
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5050$as_echo_n "checking for recent enough imagemagick... " >&6; }
5051 convert_version=`convert --version | head -n1`
5052 if test "x$convert_version" != "x"
5053 then
5054 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5055 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5056 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5057 then
5058 CONVERT=false
b9eae1ef
JH
5059 fi
5060 fi
5061 if test "$CONVERT" = false
5062 then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5064$as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
a53c44a6 5065 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
b9eae1ef
JH
5066 else
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5068$as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5069 fi
5070 fi
425f1384
JH
5071
5072 if test "$ICOTOOL" = false
5073 then
a53c44a6 5074 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
425f1384
JH
5075 else
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5077$as_echo_n "checking for recent enough icotool... " >&6; }
5078 icotool_version=`icotool --version | head -n1`
5079 if test "x$icotool_version" != "x"
5080 then
9571f781
JH
5081 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5082 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
425f1384
JH
5083 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5084 then
5085 ICOTOOL=false
5086 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5087 fi
5088 fi
5089 if test "$ICOTOOL" = false
5090 then
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5092$as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
a53c44a6 5093 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
425f1384
JH
5094 else
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5096$as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5097 fi
5098 fi
5099
40664c0c
AJ
5100fi
5101
40664c0c 5102
25e9e4f0 5103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
40664c0c 5104$as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
9797da40 5105if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
40664c0c
AJ
5106 $as_echo_n "(cached) " >&6
5107else
5108 ac_check_lib_save_LIBS=$LIBS
5109LIBS="-li386 $LIBS"
25e9e4f0 5110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664c0c
AJ
5111/* end confdefs.h. */
5112
5113/* Override any GCC internal prototype to avoid an error.
5114 Use char because int might match the return type of a GCC
5115 builtin and then its argument prototype would still apply. */
5116#ifdef __cplusplus
f5818d2f
AJ
5117extern "C"
5118#endif
40664c0c 5119char i386_set_ldt ();
e24bcc77
AJ
5120int
5121main ()
5122{
40664c0c 5123return i386_set_ldt ();
f5818d2f
AJ
5124 ;
5125 return 0;
5126}
5127_ACEOF
25e9e4f0 5128if ac_fn_c_try_link "$LINENO"; then :
40664c0c 5129 ac_cv_lib_i386_i386_set_ldt=yes
f5818d2f 5130else
25e9e4f0 5131 ac_cv_lib_i386_i386_set_ldt=no
f5818d2f 5132fi
25e9e4f0
AJ
5133rm -f core conftest.err conftest.$ac_objext \
5134 conftest$ac_exeext conftest.$ac_ext
40664c0c 5135LIBS=$ac_check_lib_save_LIBS
f5818d2f 5136fi
25e9e4f0 5137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
40664c0c 5138$as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
9797da40 5139if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
40664c0c
AJ
5140 cat >>confdefs.h <<_ACEOF
5141#define HAVE_LIBI386 1
5142_ACEOF
da0cfb36 5143
40664c0c
AJ
5144 LIBS="-li386 $LIBS"
5145
5146fi
5147
25e9e4f0 5148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
40664c0c 5149$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
9797da40 5150if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
abf5048b 5151 $as_echo_n "(cached) " >&6
da0cfb36 5152else
f5818d2f 5153 ac_check_lib_save_LIBS=$LIBS
40664c0c 5154LIBS="-lossaudio $LIBS"
25e9e4f0 5155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 5156/* end confdefs.h. */
f5818d2f 5157
fc6ffb29
AJ
5158/* Override any GCC internal prototype to avoid an error.
5159 Use char because int might match the return type of a GCC
5160 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
5161#ifdef __cplusplus
5162extern "C"
5163#endif
40664c0c 5164char _oss_ioctl ();
f5818d2f
AJ
5165int
5166main ()
5167{
40664c0c 5168return _oss_ioctl ();
f5818d2f
AJ
5169 ;
5170 return 0;
5171}
5172_ACEOF
25e9e4f0 5173if ac_fn_c_try_link "$LINENO"; then :
40664c0c 5174 ac_cv_lib_ossaudio__oss_ioctl=yes
f5818d2f 5175else
25e9e4f0 5176 ac_cv_lib_ossaudio__oss_ioctl=no
f5818d2f 5177fi
25e9e4f0
AJ
5178rm -f core conftest.err conftest.$ac_objext \
5179 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
5180LIBS=$ac_check_lib_save_LIBS
5181fi
25e9e4f0 5182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
40664c0c 5183$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
9797da40 5184if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
40664c0c
AJ
5185 cat >>confdefs.h <<_ACEOF
5186#define HAVE_LIBOSSAUDIO 1
5187_ACEOF
e2bfa4c7 5188
40664c0c 5189 LIBS="-lossaudio $LIBS"
da0cfb36 5190
40664c0c
AJ
5191fi
5192
e2991ea7 5193
40664c0c 5194XLIB=""
f5818d2f 5195
40664c0c 5196OPENGL_LIBS=""
5c5a6217 5197
fc6ffb29 5198
5c5a6217 5199
bc56c4ea
EP
5200# Check whether --enable-largefile was given.
5201if test "${enable_largefile+set}" = set; then :
5202 enableval=$enable_largefile;
5203fi
5204
5205if test "$enable_largefile" != no; then
5206
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5208$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9797da40 5209if ${ac_cv_sys_largefile_CC+:} false; then :
bc56c4ea
EP
5210 $as_echo_n "(cached) " >&6
5211else
5212 ac_cv_sys_largefile_CC=no
5213 if test "$GCC" != yes; then
5214 ac_save_CC=$CC
5215 while :; do
5216 # IRIX 6.2 and later do not support large files by default,
5217 # so use the C compiler's -n32 option if that helps.
5218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219/* end confdefs.h. */
5220#include <sys/types.h>
5221 /* Check that off_t can represent 2**63 - 1 correctly.
5222 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5223 since some C++ compilers masquerading as C compilers
5224 incorrectly reject 9223372036854775807. */
5225#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5226 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5227 && LARGE_OFF_T % 2147483647 == 1)
5228 ? 1 : -1];
5229int
5230main ()
5231{
5232
5233 ;
5234 return 0;
5235}
5236_ACEOF
5237 if ac_fn_c_try_compile "$LINENO"; then :
5238 break
5239fi
5240rm -f core conftest.err conftest.$ac_objext
5241 CC="$CC -n32"
5242 if ac_fn_c_try_compile "$LINENO"; then :
5243 ac_cv_sys_largefile_CC=' -n32'; break
5244fi
5245rm -f core conftest.err conftest.$ac_objext
5246 break
5247 done
5248 CC=$ac_save_CC
5249 rm -f conftest.$ac_ext
5250 fi
5251fi
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5253$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5254 if test "$ac_cv_sys_largefile_CC" != no; then
5255 CC=$CC$ac_cv_sys_largefile_CC
5256 fi
5257
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5259$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
9797da40 5260if ${ac_cv_sys_file_offset_bits+:} false; then :
bc56c4ea
EP
5261 $as_echo_n "(cached) " >&6
5262else
5263 while :; do
5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265/* end confdefs.h. */
5266#include <sys/types.h>
5267 /* Check that off_t can represent 2**63 - 1 correctly.
5268 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5269 since some C++ compilers masquerading as C compilers
5270 incorrectly reject 9223372036854775807. */
5271#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5272 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5273 && LARGE_OFF_T % 2147483647 == 1)
5274 ? 1 : -1];
5275int
5276main ()
5277{
5278
5279 ;
5280 return 0;
5281}
5282_ACEOF
5283if ac_fn_c_try_compile "$LINENO"; then :
5284 ac_cv_sys_file_offset_bits=no; break
5285fi
5286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288/* end confdefs.h. */
5289#define _FILE_OFFSET_BITS 64
5290#include <sys/types.h>
5291 /* Check that off_t can represent 2**63 - 1 correctly.
5292 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5293 since some C++ compilers masquerading as C compilers
5294 incorrectly reject 9223372036854775807. */
5295#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5296 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5297 && LARGE_OFF_T % 2147483647 == 1)
5298 ? 1 : -1];
5299int
5300main ()
5301{
5302
5303 ;
5304 return 0;
5305}
5306_ACEOF
5307if ac_fn_c_try_compile "$LINENO"; then :
5308 ac_cv_sys_file_offset_bits=64; break
5309fi
5310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311 ac_cv_sys_file_offset_bits=unknown
5312 break
5313done
5314fi
5315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5316$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5317case $ac_cv_sys_file_offset_bits in #(
5318 no | unknown) ;;
5319 *)
5320cat >>confdefs.h <<_ACEOF
5321#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5322_ACEOF
5323;;
5324esac
5325rm -rf conftest*
5326 if test $ac_cv_sys_file_offset_bits = unknown; then
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5328$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9797da40 5329if ${ac_cv_sys_large_files+:} false; then :
bc56c4ea
EP
5330 $as_echo_n "(cached) " >&6
5331else
5332 while :; do
5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334/* end confdefs.h. */
5335#include <sys/types.h>
5336 /* Check that off_t can represent 2**63 - 1 correctly.
5337 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5338 since some C++ compilers masquerading as C compilers
5339 incorrectly reject 9223372036854775807. */
5340#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5341 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5342 && LARGE_OFF_T % 2147483647 == 1)
5343 ? 1 : -1];
5344int
5345main ()
5346{
5347
5348 ;
5349 return 0;
5350}
5351_ACEOF
5352if ac_fn_c_try_compile "$LINENO"; then :
5353 ac_cv_sys_large_files=no; break
5354fi
5355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357/* end confdefs.h. */
5358#define _LARGE_FILES 1
5359#include <sys/types.h>
5360 /* Check that off_t can represent 2**63 - 1 correctly.
5361 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5362 since some C++ compilers masquerading as C compilers
5363 incorrectly reject 9223372036854775807. */
5364#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5365 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5366 && LARGE_OFF_T % 2147483647 == 1)
5367 ? 1 : -1];
5368int
5369main ()
5370{
5371
5372 ;
5373 return 0;
5374}
5375_ACEOF
5376if ac_fn_c_try_compile "$LINENO"; then :
5377 ac_cv_sys_large_files=1; break
5378fi
5379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380 ac_cv_sys_large_files=unknown
5381 break
5382done
5383fi
5384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5385$as_echo "$ac_cv_sys_large_files" >&6; }
5386case $ac_cv_sys_large_files in #(
5387 no | unknown) ;;
5388 *)
5389cat >>confdefs.h <<_ACEOF
5390#define _LARGE_FILES $ac_cv_sys_large_files
5391_ACEOF
5392;;
5393esac
5394rm -rf conftest*
5395 fi
5396fi
5397
5398
40664c0c
AJ
5399ac_ext=c
5400ac_cpp='$CPP $CPPFLAGS'
5401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5403ac_compiler_gnu=$ac_cv_c_compiler_gnu
25e9e4f0 5404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
40664c0c
AJ
5405$as_echo_n "checking how to run the C preprocessor... " >&6; }
5406# On Suns, sometimes $CPP names a directory.
5407if test -n "$CPP" && test -d "$CPP"; then
5408 CPP=
5c5a6217 5409fi
40664c0c 5410if test -z "$CPP"; then
9797da40 5411 if ${ac_cv_prog_CPP+:} false; then :
abf5048b 5412 $as_echo_n "(cached) " >&6
b53bb419 5413else
40664c0c
AJ
5414 # Double quotes because CPP needs to be expanded
5415 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5416 do
5417 ac_preproc_ok=false
5418for ac_c_preproc_warn_flag in '' yes
daa2886c 5419do
40664c0c
AJ
5420 # Use a header file that comes with gcc, so configuring glibc
5421 # with a fresh cross-compiler works.
5422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5423 # <limits.h> exists even on freestanding compilers.
5424 # On the NeXT, cc -E runs the code through the compiler's parser,
5425 # not just through cpp. "Syntax error" is here to catch this case.
25e9e4f0 5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664c0c
AJ
5427/* end confdefs.h. */
5428#ifdef __STDC__
5429# include <limits.h>
5430#else
5431# include <assert.h>
5432#endif
5433 Syntax error
5434_ACEOF
25e9e4f0 5435if ac_fn_c_try_cpp "$LINENO"; then :
40664c0c 5436
25e9e4f0 5437else
40664c0c
AJ
5438 # Broken: fails on valid input.
5439continue
b53bb419 5440fi
a53c44a6 5441rm -f conftest.err conftest.i conftest.$ac_ext
fc6ffb29 5442
40664c0c
AJ
5443 # OK, works on sane cases. Now check whether nonexistent headers
5444 # can be detected and how.
25e9e4f0 5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664c0c
AJ
5446/* end confdefs.h. */
5447#include <ac_nonexistent.h>
5448_ACEOF
25e9e4f0 5449if ac_fn_c_try_cpp "$LINENO"; then :
40664c0c
AJ
5450 # Broken: success on invalid input.
5451continue
5452else
40664c0c
AJ
5453 # Passes both tests.
5454ac_preproc_ok=:
5455break
f5818d2f 5456fi
a53c44a6 5457rm -f conftest.err conftest.i conftest.$ac_ext
1d4db787 5458
40664c0c
AJ
5459done
5460# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
a53c44a6 5461rm -f conftest.i conftest.err conftest.$ac_ext
25e9e4f0 5462if $ac_preproc_ok; then :
40664c0c 5463 break
1d4db787
MM
5464fi
5465
40664c0c
AJ
5466 done
5467 ac_cv_prog_CPP=$CPP
fc6ffb29 5468
1d4db787 5469fi
40664c0c 5470 CPP=$ac_cv_prog_CPP
1d4db787 5471else
40664c0c
AJ
5472 ac_cv_prog_CPP=$CPP
5473fi
25e9e4f0 5474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
40664c0c
AJ
5475$as_echo "$CPP" >&6; }
5476ac_preproc_ok=false
5477for ac_c_preproc_warn_flag in '' yes
1d4db787 5478do
40664c0c
AJ
5479 # Use a header file that comes with gcc, so configuring glibc
5480 # with a fresh cross-compiler works.
5481 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5482 # <limits.h> exists even on freestanding compilers.
5483 # On the NeXT, cc -E runs the code through the compiler's parser,
5484 # not just through cpp. "Syntax error" is here to catch this case.
25e9e4f0 5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664c0c
AJ
5486/* end confdefs.h. */
5487#ifdef __STDC__
5488# include <limits.h>
5489#else
5490# include <assert.h>
5491#endif
5492 Syntax error
5493_ACEOF
25e9e4f0 5494if ac_fn_c_try_cpp "$LINENO"; then :
1d4db787 5495
25e9e4f0 5496else
40664c0c
AJ
5497 # Broken: fails on valid input.
5498continue
5499fi
a53c44a6 5500rm -f conftest.err conftest.i conftest.$ac_ext
c80c290e 5501
40664c0c
AJ
5502 # OK, works on sane cases. Now check whether nonexistent headers
5503 # can be detected and how.
25e9e4f0 5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664c0c
AJ
5505/* end confdefs.h. */
5506#include <ac_nonexistent.h>
5507_ACEOF
25e9e4f0 5508if ac_fn_c_try_cpp "$LINENO"; then :
40664c0c
AJ
5509 # Broken: success on invalid input.
5510continue
eb5f89c5 5511else
40664c0c
AJ
5512 # Passes both tests.
5513ac_preproc_ok=:
5514break
eb5f89c5 5515fi
a53c44a6 5516rm -f conftest.err conftest.i conftest.$ac_ext
40664c0c
AJ
5517
5518done
5519# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
a53c44a6 5520rm -f conftest.i conftest.err conftest.$ac_ext
25e9e4f0
AJ
5521if $ac_preproc_ok; then :
5522
eb5f89c5 5523else
25e9e4f0 5524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
40664c0c 5525$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a53c44a6 5526as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9797da40 5527See \`config.log' for more details" "$LINENO" 5; }
eb5f89c5
AJ
5528fi
5529
40664c0c
AJ
5530ac_ext=c
5531ac_cpp='$CPP $CPPFLAGS'
5532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5534ac_compiler_gnu=$ac_cv_c_compiler_gnu
5535
fc6ffb29 5536
25e9e4f0 5537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
40664c0c 5538$as_echo_n "checking for ANSI C header files... " >&6; }
9797da40 5539if ${ac_cv_header_stdc+:} false; then :
abf5048b 5540 $as_echo_n "(cached) " >&6
eb5f89c5 5541else
25e9e4f0 5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664c0c
AJ
5543/* end confdefs.h. */
5544#include <stdlib.h>
5545#include <stdarg.h>
5546#include <string.h>
5547#include <float.h>
eb5f89c5 5548
40664c0c
AJ
5549int
5550main ()
5551{
5552
5553 ;
5554 return 0;
5555}
5556_ACEOF
25e9e4f0 5557if ac_fn_c_try_compile "$LINENO"; then :
40664c0c 5558 ac_cv_header_stdc=yes
eb5f89c5 5559else
25e9e4f0 5560 ac_cv_header_stdc=no
eb5f89c5 5561fi
40664c0c 5562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
86bd0461 5563
40664c0c
AJ
5564if test $ac_cv_header_stdc = yes; then
5565 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25e9e4f0 5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664c0c
AJ
5567/* end confdefs.h. */
5568#include <string.h>
86bd0461 5569
40664c0c
AJ
5570_ACEOF
5571if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25e9e4f0
AJ
5572 $EGREP "memchr" >/dev/null 2>&1; then :
5573
86bd0461 5574else
40664c0c 5575 ac_cv_header_stdc=no
86bd0461 5576fi
40664c0c
AJ
5577rm -f conftest*
5578
86bd0461 5579fi
40664c0c
AJ
5580
5581if test $ac_cv_header_stdc = yes; then
5582 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25e9e4f0 5583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664c0c
AJ
5584/* end confdefs.h. */
5585#include <stdlib.h>
5586
5587_ACEOF
5588if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25e9e4f0
AJ
5589 $EGREP "free" >/dev/null 2>&1; then :
5590
eb5f89c5 5591else
40664c0c 5592 ac_cv_header_stdc=no
86bd0461 5593fi
40664c0c 5594rm -f conftest*
86bd0461 5595
86bd0461 5596fi
40664c0c
AJ
5597
5598if test $ac_cv_header_stdc = yes; then
5599 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25e9e4f0 5600 if test "$cross_compiling" = yes; then :
40664c0c 5601 :
86bd0461 5602else
25e9e4f0 5603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664c0c
AJ
5604/* end confdefs.h. */
5605#include <ctype.h>
5606#include <stdlib.h>
5607#if ((' ' & 0x0FF) == 0x020)
5608# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5609# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5610#else
5611# define ISLOWER(c) \
5612 (('a' <= (c) && (c) <= 'i') \
5613 || ('j' <= (c) && (c) <= 'r') \
5614 || ('s' <= (c) && (c) <= 'z'))
5615# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5616#endif
5617
5618#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5619int
5620main ()
5621{
5622 int i;
5623 for (i = 0; i < 256; i++)
5624 if (XOR (islower (i), ISLOWER (i))
5625 || toupper (i) != TOUPPER (i))
5626 return 2;
5627 return 0;
5628}
5629_ACEOF
25e9e4f0 5630if ac_fn_c_try_run "$LINENO"; then :
86bd0461 5631
25e9e4f0
AJ
5632else
5633 ac_cv_header_stdc=no
86bd0461 5634fi
25e9e4f0
AJ
5635rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5636 conftest.$ac_objext conftest.beam conftest.$ac_ext
86bd0461 5637fi
86bd0461 5638
eb5f89c5 5639fi
40664c0c 5640fi
25e9e4f0 5641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
40664c0c
AJ
5642$as_echo "$ac_cv_header_stdc" >&6; }
5643if test $ac_cv_header_stdc = yes; then
eb5f89c5 5644
25e9e4f0 5645$as_echo "#define STDC_HEADERS 1" >>confdefs.h
fc01b729 5646
fc01b729
AJ
5647fi
5648
40664c0c 5649# On IRIX 5.3, sys/types and inttypes.h are conflicting.
40664c0c
AJ
5650for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5651 inttypes.h stdint.h unistd.h
25e9e4f0
AJ
5652do :
5653 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5654ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5655"
a53c44a6 5656if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
40664c0c
AJ
5657 cat >>confdefs.h <<_ACEOF
5658#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5659_ACEOF
fc01b729 5660
40664c0c 5661fi
86bd0461 5662
86bd0461
FG
5663done
5664
fc01b729 5665
40664c0c 5666for ac_header in \
862965f4 5667 AL/al.h \
21137cd3 5668 ApplicationServices/ApplicationServices.h \
4430ab43 5669 AudioToolbox/AudioConverter.h \
40664c0c 5670 AudioUnit/AudioUnit.h \
459d9427 5671 AudioUnit/AudioComponent.h \
2eb2f71c 5672 CL/cl.h \
40664c0c
AJ
5673 Carbon/Carbon.h \
5674 CoreAudio/CoreAudio.h \
5675 DiskArbitration/DiskArbitration.h \
5676 IOKit/IOKitLib.h \
225a494d 5677 IOKit/hid/IOHIDLib.h \
0b08f19e 5678 OpenAL/al.h \
65c84d77 5679 OpenCL/opencl.h \
fa3ddd83 5680 QuickTime/ImageCompression.h \
25ed687f 5681 Security/Security.h \
40664c0c
AJ
5682 alias.h \
5683 alsa/asoundlib.h \
5684 arpa/inet.h \
5685 arpa/nameser.h \
5686 asm/types.h \
5687 capi20.h \
5688 curses.h \
5689 direct.h \
5690 dirent.h \
5691 dlfcn.h \
5692 elf.h \
5693 float.h \
7d5e565b 5694 fnmatch.h \
40664c0c
AJ
5695 fontconfig/fontconfig.h \
5696 getopt.h \
0e79c5c1 5697 gettext-po.h \
40664c0c 5698 grp.h \
58b5a3f6 5699 gsm.h \
c186d8a3 5700 gsm/gsm.h \
40664c0c 5701 ieeefp.h \
801d9c3a 5702 inet/mib2.h \
40664c0c 5703 io.h \
40664c0c 5704 jpeglib.h \
de1d7fbe 5705 kstat.h \
40664c0c
AJ
5706 lber.h \
5707 lcms.h \
5708 lcms/lcms.h \
5709 ldap.h \
40664c0c
AJ
5710 link.h \
5711 linux/cdrom.h \
5712 linux/compiler.h \
5713 linux/hdreg.h \
5714 linux/input.h \
5715 linux/ioctl.h \
5716 linux/joystick.h \
5717 linux/major.h \
5718 linux/param.h \
5719 linux/serial.h \
5720 linux/types.h \
5721 linux/ucdrom.h \
d35c0e87 5722 mach-o/nlist.h \
95740b30 5723 mach-o/loader.h \
40664c0c
AJ
5724 mach/mach.h \
5725 mach/machine.h \
5726 machine/cpu.h \
5727 machine/limits.h \
40b3d2ed 5728 machine/sysarch.h \
40664c0c 5729 mntent.h \
db71d7c0 5730 mpg123.h \
40664c0c
AJ
5731 ncurses.h \
5732 netdb.h \
5733 netinet/in.h \
5734 netinet/in_systm.h \
5735 netinet/tcp.h \
5736 netinet/tcp_fsm.h \
5737 openssl/err.h \
5738 openssl/ssl.h \
5739 png.h \
5740 poll.h \
01b972d6 5741 port.h \
40664c0c
AJ
5742 process.h \
5743 pthread.h \
5744 pwd.h \
5745 regex.h \
5746 sched.h \
5747 scsi/scsi.h \
5748 scsi/scsi_ioctl.h \
5749 scsi/sg.h \
2d7ccb38 5750 stdbool.h \
40664c0c
AJ
5751 stdint.h \
5752 strings.h \
801d9c3a 5753 stropts.h \
40664c0c 5754 sys/asoundlib.h \
4e44e153 5755 sys/attr.h \
40664c0c
AJ
5756 sys/cdio.h \
5757 sys/elf32.h \
5758 sys/epoll.h \
5759 sys/errno.h \
5760 sys/event.h \
5761 sys/exec_elf.h \
5762 sys/filio.h \
61a70360 5763 sys/inotify.h \
40664c0c
AJ
5764 sys/ioctl.h \
5765 sys/ipc.h \
5766 sys/limits.h \
5767 sys/link.h \
40664c0c
AJ
5768 sys/mman.h \
5769 sys/modem.h \
5770 sys/msg.h \
5771 sys/mtio.h \
5772 sys/param.h \
5773 sys/poll.h \
5774 sys/prctl.h \
5775 sys/protosw.h \
5776 sys/ptrace.h \
40664c0c
AJ
5777 sys/resource.h \
5778 sys/scsiio.h \
5779 sys/shm.h \
5780 sys/signal.h \
5781 sys/socket.h \
5782 sys/socketvar.h \
5783 sys/sockio.h \
40664c0c
AJ
5784 sys/statvfs.h \
5785 sys/strtio.h \
5786 sys/syscall.h \
801d9c3a 5787 sys/tihdr.h \
40664c0c
AJ
5788 sys/time.h \
5789 sys/timeout.h \
5790 sys/times.h \
5791 sys/uio.h \
5792 sys/un.h \
5793 sys/utsname.h \
5794 sys/vm86.h \
5795 sys/wait.h \
5796 syscall.h \
5797 termios.h \
73cd5693 5798 tiffio.h \
40664c0c
AJ
5799 unistd.h \
5800 utime.h \
5801 valgrind/memcheck.h \
11ca05f6
JC
5802 valgrind/valgrind.h \
5803 zlib.h
40664c0c 5804
25e9e4f0
AJ
5805do :
5806 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5807ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
a53c44a6 5808if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
40664c0c
AJ
5809 cat >>confdefs.h <<_ACEOF
5810#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5811_ACEOF
f5818d2f 5812
e533e972
AJ
5813fi
5814
40664c0c
AJ
5815done
5816
25e9e4f0 5817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
40664c0c 5818$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
9797da40 5819if ${ac_cv_header_stat_broken+:} false; then :
40664c0c 5820 $as_echo_n "(cached) " >&6
f5818d2f 5821else
25e9e4f0 5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 5823/* end confdefs.h. */
40664c0c
AJ
5824#include <sys/types.h>
5825#include <sys/stat.h>
5826
5827#if defined S_ISBLK && defined S_IFDIR
5828extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5829#endif
5830
5831#if defined S_ISBLK && defined S_IFCHR
5832extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5833#endif
5834
5835#if defined S_ISLNK && defined S_IFREG
5836extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5837#endif
5838
5839#if defined S_ISSOCK && defined S_IFREG
5840extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
f5818d2f 5841#endif
e533e972 5842
f5818d2f 5843_ACEOF
25e9e4f0 5844if ac_fn_c_try_compile "$LINENO"; then :
40664c0c 5845 ac_cv_header_stat_broken=no
f5818d2f 5846else
25e9e4f0 5847 ac_cv_header_stat_broken=yes
f5818d2f 5848fi
40664c0c 5849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ea584724 5850fi
25e9e4f0 5851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
40664c0c
AJ
5852$as_echo "$ac_cv_header_stat_broken" >&6; }
5853if test $ac_cv_header_stat_broken = yes; then
daa2886c 5854
25e9e4f0 5855$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
875927f6 5856
e533e972 5857fi
875927f6 5858
c555274d 5859
e24bcc77 5860
40664c0c 5861for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
25e9e4f0
AJ
5862do :
5863 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5864ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
40664c0c
AJ
5865 #ifdef HAVE_SYS_PARAM_H
5866 # include <sys/param.h>
5867 #endif
25e9e4f0 5868"
a53c44a6 5869if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
daa2886c 5870 cat >>confdefs.h <<_ACEOF
abf5048b 5871#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
728bedcf
MM
5872_ACEOF
5873
728bedcf
MM
5874fi
5875
5876done
5877
5878
40664c0c
AJ
5879for ac_header in \
5880 netinet/ip.h \
5881 net/if.h \
5882 net/if_arp.h \
5883 net/if_dl.h \
5884 net/if_types.h \
5885 net/route.h \
5886 netinet/if_ether.h \
5887 netinet/if_inarp.h \
5888 netinet/in_pcb.h \
5889 netinet/ip_icmp.h \
5890 netinet/ip_var.h \
5891 netinet/udp.h \
5892 netipx/ipx.h \
7ff12568 5893
25e9e4f0
AJ
5894do :
5895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5896ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
40664c0c
AJ
5897 #ifdef HAVE_SYS_SOCKET_H
5898 # include <sys/socket.h>
5899 #endif
5900 #ifdef HAVE_SYS_SOCKETVAR_H
5901 # include <sys/socketvar.h>
5902 #endif
5903 #ifdef HAVE_NET_ROUTE_H
5904 # include <net/route.h>
5905 #endif
5906 #ifdef HAVE_NETINET_IN_H
5907 # include <netinet/in.h>
5908 #endif
5909 #ifdef HAVE_NETINET_IN_SYSTM_H
5910 # include <netinet/in_systm.h>
5911 #endif
5912 #ifdef HAVE_NET_IF_H
5913 # include <net/if.h>
5914 #endif
5915 #ifdef HAVE_NETINET_IP_H
5916 # include <netinet/ip.h>
5917 #endif
25e9e4f0 5918"
a53c44a6 5919if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
40664c0c
AJ
5920 cat >>confdefs.h <<_ACEOF
5921#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5922_ACEOF
7ff12568 5923
40664c0c 5924fi
7ff12568 5925
40664c0c 5926done
7ff12568
RK
5927
5928
40664c0c 5929for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
25e9e4f0
AJ
5930do :
5931 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5932ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
40664c0c
AJ
5933 #ifdef HAVE_ALIAS_H
5934 # include <alias.h>
5935 #endif
5936 #ifdef HAVE_SYS_SOCKET_H
5937 # include <sys/socket.h>
5938 #endif
5939 #ifdef HAVE_SYS_SOCKETVAR_H
5940 # include <sys/socketvar.h>
5941 #endif
5942 #ifdef HAVE_SYS_TIMEOUT_H
5943 # include <sys/timeout.h>
5944 #endif
5945 #ifdef HAVE_NETINET_IN_H
5946 # include <netinet/in.h>
5947 #endif
5948 #ifdef HAVE_NETINET_IN_SYSTM_H
5949 # include <netinet/in_systm.h>
5950 #endif
5951 #ifdef HAVE_NETINET_IP_H
5952 # include <netinet/ip.h>
5953 #endif
5954 #ifdef HAVE_NETINET_IP_VAR_H
5955 # include <netinet/ip_var.h>
5956 #endif
5957 #ifdef HAVE_NETINET_IP_ICMP_H
5958 # include <netinet/ip_icmp.h>
5959 #endif
5960 #ifdef HAVE_NETINET_UDP_H
5961 # include <netinet/udp.h>
5962 #endif
5963 #ifdef HAVE_NETINET_TCP_H
5964 # include <netinet/tcp.h>
5965 #endif
5966 #ifdef HAVE_NETINET_TCP_TIMER_H
5967 #include <netinet/tcp_timer.h>
5968 #endif
25e9e4f0 5969"
a53c44a6 5970if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
40664c0c
AJ
5971 cat >>confdefs.h <<_ACEOF
5972#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5973_ACEOF
7ff12568 5974
40664c0c 5975fi
7ff12568 5976
40664c0c 5977done
7ff12568
RK
5978
5979
0ce420de 5980for ac_header in linux/ipx.h linux/irda.h
25e9e4f0 5981do :
0ce420de
JL
5982 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5983ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
40664c0c
AJ
5984 #ifdef HAVE_ASM_TYPES_H
5985 # include <asm/types.h>
5986 #endif
5987 #ifdef HAVE_SYS_SOCKET_H
5988 # include <sys/socket.h>
5989 #endif
5990 #ifdef HAVE_LINUX_TYPES_H
5991 # include <linux/types.h>
5992 #endif
25e9e4f0 5993"
a53c44a6 5994if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25e9e4f0 5995 cat >>confdefs.h <<_ACEOF
0ce420de 5996#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2d7ccb38
AE
5997_ACEOF
5998
5999fi
6000
6001done
6002
6003
2d7ccb38 6004for ac_header in mach-o/dyld_images.h
25e9e4f0
AJ
6005do :
6006 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
2d7ccb38
AE
6007 # include <stdbool.h>
6008 #endif
6009 #ifdef HAVE_STDINT_H
6010 # include <stdint.h>
6011 #endif
25e9e4f0 6012"
9797da40 6013if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
40664c0c 6014 cat >>confdefs.h <<_ACEOF
25e9e4f0 6015#define HAVE_MACH_O_DYLD_IMAGES_H 1
40664c0c 6016_ACEOF
7ff12568 6017
40664c0c 6018fi
7ff12568 6019
40664c0c 6020done
7ff12568
RK
6021
6022
40664c0c 6023for ac_header in resolv.h
25e9e4f0
AJ
6024do :
6025 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
40664c0c
AJ
6026 #ifdef HAVE_SYS_SOCKET_H
6027 # include <sys/socket.h>
6028 #endif
6029 #ifdef HAVE_NETINET_IN_H
6030 # include <netinet/in.h>
6031 #endif
6032 #ifdef HAVE_ARPA_NAMESER_H
6033 # include <arpa/nameser.h>
6034 #endif
25e9e4f0 6035"
9797da40 6036if test "x$ac_cv_header_resolv_h" = xyes; then :
40664c0c 6037 cat >>confdefs.h <<_ACEOF
25e9e4f0 6038#define HAVE_RESOLV_H 1
40664c0c 6039_ACEOF
7ff12568 6040
40664c0c 6041fi
7ff12568 6042
40664c0c 6043done
7ff12568
RK
6044
6045
e3c0e30d
JL
6046for ac_header in ifaddrs.h
6047do :
6048 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6049"
9797da40 6050if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
e3c0e30d
JL
6051 cat >>confdefs.h <<_ACEOF
6052#define HAVE_IFADDRS_H 1
6053_ACEOF
6054
6055fi
6056
6057done
6058
6059
40664c0c 6060for ac_header in ucontext.h
25e9e4f0
AJ
6061do :
6062 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6063"
9797da40 6064if test "x$ac_cv_header_ucontext_h" = xyes; then :
40664c0c 6065 cat >>confdefs.h <<_ACEOF
25e9e4f0 6066#define HAVE_UCONTEXT_H 1
40664c0c 6067_ACEOF
daa2886c 6068
40664c0c
AJ
6069fi
6070
6071done
6072
6073
40664c0c 6074for ac_header in sys/thr.h
25e9e4f0
AJ
6075do :
6076 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
40664c0c
AJ
6077#ifdef HAVE_UCONTEXT_H
6078#include <ucontext.h>
6079#endif
25e9e4f0 6080"
9797da40 6081if test "x$ac_cv_header_sys_thr_h" = xyes; then :
40664c0c 6082 cat >>confdefs.h <<_ACEOF
25e9e4f0 6083#define HAVE_SYS_THR_H 1
40664c0c
AJ
6084_ACEOF
6085
6086fi
6087
6088done
6089
6090
40664c0c 6091for ac_header in pthread_np.h
25e9e4f0
AJ
6092do :
6093 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
40664c0c
AJ
6094#include <pthread.h>
6095#endif
25e9e4f0 6096"
9797da40 6097if test "x$ac_cv_header_pthread_np_h" = xyes; then :
40664c0c 6098 cat >>confdefs.h <<_ACEOF
25e9e4f0 6099#define HAVE_PTHREAD_NP_H 1
40664c0c
AJ
6100_ACEOF
6101
6102fi
6103
6104done
6105
6106
898d8abc 6107for ac_header in linux/videodev.h linux/videodev2.h
25e9e4f0 6108do :
898d8abc
RM
6109 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6110ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
40664c0c
AJ
6111#include <sys/time.h>
6112#endif
6113#include <sys/types.h>
6114#ifdef HAVE_ASM_TYPES_H
6115#include <asm/types.h>
6116#endif
25e9e4f0 6117"
898d8abc 6118if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
40664c0c 6119 cat >>confdefs.h <<_ACEOF
898d8abc 6120#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
40664c0c
AJ
6121_ACEOF
6122
6123fi
6124
6125done
6126
6127
40664c0c 6128for ac_header in linux/capi.h
25e9e4f0
AJ
6129do :
6130 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6131"
9797da40 6132if test "x$ac_cv_header_linux_capi_h" = xyes; then :
40664c0c 6133 cat >>confdefs.h <<_ACEOF
25e9e4f0 6134#define HAVE_LINUX_CAPI_H 1
40664c0c
AJ
6135_ACEOF
6136
6137fi
6138
6139done
6140
6141
6142
6143DLLEXT=""
6144
6145DLLFLAGS="-D_REENTRANT"
6146
6147LDSHARED=""
6148
6149LDDLLFLAGS=""
6150
6151LIBEXT="so"
6152
6153IMPLIBEXT="def"
6154
6155LDRPATH_INSTALL=""
6156
6157LDRPATH_LOCAL=""
6158
950a0f87 6159STATIC_IMPLIBEXT="def.a"
40664c0c
AJ
6160# Extract the first word of "ldd", so it can be a program name with args.
6161set dummy ldd; ac_word=$2
25e9e4f0 6162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 6163$as_echo_n "checking for $ac_word... " >&6; }
9797da40 6164if ${ac_cv_path_LDD+:} false; then :
40664c0c
AJ
6165 $as_echo_n "(cached) " >&6
6166else
6167 case $LDD in
6168 [\\/]* | ?:[\\/]*)
6169 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6170 ;;
6171 *)
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173as_dummy="/sbin:/usr/sbin:$PATH"
6174for as_dir in $as_dummy
6175do
6176 IFS=$as_save_IFS
6177 test -z "$as_dir" && as_dir=.
25e9e4f0 6178 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
6179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6180 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
25e9e4f0 6181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
6182 break 2
6183 fi
6184done
25e9e4f0 6185 done
40664c0c
AJ
6186IFS=$as_save_IFS
6187
6188 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6189 ;;
6190esac
6191fi
6192LDD=$ac_cv_path_LDD
6193if test -n "$LDD"; then
25e9e4f0 6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
40664c0c
AJ
6195$as_echo "$LDD" >&6; }
6196else
25e9e4f0 6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c
AJ
6198$as_echo "no" >&6; }
6199fi
6200
6201
6202
6203case $host_os in
6204 cygwin*|mingw32*)
6205 if test -n "$ac_tool_prefix"; then
6206 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6207set dummy ${ac_tool_prefix}dlltool; ac_word=$2
25e9e4f0 6208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 6209$as_echo_n "checking for $ac_word... " >&6; }
9797da40 6210if ${ac_cv_prog_DLLTOOL+:} false; then :
40664c0c
AJ
6211 $as_echo_n "(cached) " >&6
6212else
6213 if test -n "$DLLTOOL"; then
6214 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6215else
6216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217for as_dir in $PATH
6218do
6219 IFS=$as_save_IFS
6220 test -z "$as_dir" && as_dir=.
25e9e4f0 6221 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
6222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6223 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
25e9e4f0 6224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
6225 break 2
6226 fi
6227done
25e9e4f0 6228 done
40664c0c
AJ
6229IFS=$as_save_IFS
6230
6231fi
6232fi
6233DLLTOOL=$ac_cv_prog_DLLTOOL
6234if test -n "$DLLTOOL"; then
25e9e4f0 6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
40664c0c
AJ
6236$as_echo "$DLLTOOL" >&6; }
6237else
25e9e4f0 6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c
AJ
6239$as_echo "no" >&6; }
6240fi
6241
6242
6243fi
6244if test -z "$ac_cv_prog_DLLTOOL"; then
6245 ac_ct_DLLTOOL=$DLLTOOL
6246 # Extract the first word of "dlltool", so it can be a program name with args.
6247set dummy dlltool; ac_word=$2
25e9e4f0 6248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 6249$as_echo_n "checking for $ac_word... " >&6; }
9797da40 6250if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
40664c0c
AJ
6251 $as_echo_n "(cached) " >&6
6252else
6253 if test -n "$ac_ct_DLLTOOL"; then
6254 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6255else
6256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257for as_dir in $PATH
6258do
6259 IFS=$as_save_IFS
6260 test -z "$as_dir" && as_dir=.
25e9e4f0 6261 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
6262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6263 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
25e9e4f0 6264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
6265 break 2
6266 fi
6267done
25e9e4f0 6268 done
40664c0c
AJ
6269IFS=$as_save_IFS
6270
6271fi
6272fi
6273ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6274if test -n "$ac_ct_DLLTOOL"; then
25e9e4f0 6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
40664c0c
AJ
6276$as_echo "$ac_ct_DLLTOOL" >&6; }
6277else
25e9e4f0 6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c
AJ
6279$as_echo "no" >&6; }
6280fi
6281
6282 if test "x$ac_ct_DLLTOOL" = x; then
6283 DLLTOOL="false"
6284 else
6285 case $cross_compiling:$ac_tool_warned in
6286yes:)
25e9e4f0 6287{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
40664c0c
AJ
6288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6289ac_tool_warned=yes ;;
6290esac
6291 DLLTOOL=$ac_ct_DLLTOOL
6292 fi
6293else
6294 DLLTOOL="$ac_cv_prog_DLLTOOL"
6295fi
6296
6297 if test -n "$ac_tool_prefix"; then
6298 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6299set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
25e9e4f0 6300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 6301$as_echo_n "checking for $ac_word... " >&6; }
9797da40 6302if ${ac_cv_prog_DLLWRAP+:} false; then :
40664c0c
AJ
6303 $as_echo_n "(cached) " >&6
6304else
6305 if test -n "$DLLWRAP"; then
6306 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6307else
6308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309for as_dir in $PATH
6310do
6311 IFS=$as_save_IFS
6312 test -z "$as_dir" && as_dir=.
25e9e4f0 6313 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
6314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6315 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
25e9e4f0 6316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
6317 break 2
6318 fi
6319done
25e9e4f0 6320 done
40664c0c
AJ
6321IFS=$as_save_IFS
6322
6323fi
6324fi
6325DLLWRAP=$ac_cv_prog_DLLWRAP
6326if test -n "$DLLWRAP"; then
25e9e4f0 6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
40664c0c
AJ
6328$as_echo "$DLLWRAP" >&6; }
6329else
25e9e4f0 6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c
AJ
6331$as_echo "no" >&6; }
6332fi
6333
6334
6335fi
6336if test -z "$ac_cv_prog_DLLWRAP"; then
6337 ac_ct_DLLWRAP=$DLLWRAP
6338 # Extract the first word of "dllwrap", so it can be a program name with args.
6339set dummy dllwrap; ac_word=$2
25e9e4f0 6340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 6341$as_echo_n "checking for $ac_word... " >&6; }
9797da40 6342if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
40664c0c
AJ
6343 $as_echo_n "(cached) " >&6
6344else
6345 if test -n "$ac_ct_DLLWRAP"; then
6346 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6347else
6348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349for as_dir in $PATH
6350do
6351 IFS=$as_save_IFS
6352 test -z "$as_dir" && as_dir=.
25e9e4f0 6353 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
6354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6355 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
25e9e4f0 6356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
6357 break 2
6358 fi
6359done
25e9e4f0 6360 done
40664c0c
AJ
6361IFS=$as_save_IFS
6362
6363fi
6364fi
6365ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6366if test -n "$ac_ct_DLLWRAP"; then
25e9e4f0 6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
40664c0c
AJ
6368$as_echo "$ac_ct_DLLWRAP" >&6; }
6369else
25e9e4f0 6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c
AJ
6371$as_echo "no" >&6; }
6372fi
6373
6374 if test "x$ac_ct_DLLWRAP" = x; then
6375 DLLWRAP="false"
6376 else
6377 case $cross_compiling:$ac_tool_warned in
6378yes:)
25e9e4f0 6379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
40664c0c
AJ
6380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6381ac_tool_warned=yes ;;
6382esac
6383 DLLWRAP=$ac_ct_DLLWRAP
6384 fi
6385else
6386 DLLWRAP="$ac_cv_prog_DLLWRAP"
6387fi
6388
40664c0c
AJ
6389 if test "$DLLWRAP" = "false"; then
6390 LIBEXT="a"
6391 else
6392 LIBEXT="dll"
6393 fi
6394 IMPLIBEXT="a"
950a0f87 6395 STATIC_IMPLIBEXT="a"
40664c0c
AJ
6396 enable_iphlpapi=${enable_iphlpapi:-no}
6397 enable_kernel32=${enable_kernel32:-no}
6398 enable_msvcrt=${enable_msvcrt:-no}
6399 enable_ntdll=${enable_ntdll:-no}
6400 enable_ws2_32=${enable_ws2_32:-no}
6401 enable_loader=${enable_loader:-no}
6402 enable_server=${enable_server:-no}
6403 with_x=${with_x:-no}
c891f6bc 6404 with_pthread=${with_pthread:-no}
40664c0c
AJ
6405 ;;
6406 darwin*|macosx*)
6407 DLLEXT=".so"
6408 LIBEXT="dylib"
6409 DLLFLAGS="$DLLFLAGS -fPIC"
6410 LDDLLFLAGS="-bundle -multiply_defined suppress"
6411 LIBWINE_LDFLAGS="-multiply_defined suppress"
6412 LDSHARED="\$(CC) -dynamiclib"
bd9852cd 6413 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
45db3481 6414 COREFOUNDATIONLIB="-framework CoreFoundation"
255b486c 6415
40664c0c 6416 IOKITLIB="-framework IOKit -framework CoreFoundation"
044b5c41 6417
21137cd3
KT
6418 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6419
0b5dcbaf
CL
6420 case $host_os in
6421 darwin11*)
6422 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6423 ;;
6424 *)
6425 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6426 ;;
6427 esac
40664c0c
AJ
6428 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6429 then
6430 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
255b486c 6431
40664c0c 6432 fi
45db3481
AJ
6433 if test "$ac_cv_header_Security_Security_h" = "yes"
6434 then
6435 SECURITYLIB="-framework Security -framework CoreFoundation"
6436
6437 with_gnutls=${with_gnutls:-no}
6438 fi
40664c0c
AJ
6439 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6440 then
459d9427
CD
6441 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6442 then
6443 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
f5818d2f 6444
459d9427
CD
6445 else
6446 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6447
6448 fi
b149d7bc
CD
6449 ac_save_LIBS="$LIBS"
6450 LIBS="$LIBS $COREAUDIO"
6451 for ac_func in AUGraphAddNode
6452do :
6453 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
9797da40 6454if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
b149d7bc
CD
6455 cat >>confdefs.h <<_ACEOF
6456#define HAVE_AUGRAPHADDNODE 1
6457_ACEOF
6458
6459fi
6460done
6461
6462 LIBS="$ac_save_LIBS"
40664c0c 6463 fi
0b08f19e
KT
6464 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6465 then
d435499f 6466 FRAMEWORK_OPENAL="-framework OpenAL"
0b08f19e 6467
d435499f
ML
6468
6469cat >>confdefs.h <<_ACEOF
6470#define HAVE_OPENAL 1
6471_ACEOF
6472
6473 ac_cv_lib_openal=yes
0b08f19e 6474 fi
fac67412
AJ
6475 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6476 then
6477 LIBOPENCL="-framework OpenCL"
6478
6479 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6480 fi
81f8c037
AJ
6481 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6482 then
6483 ac_save_LIBS="$LIBS"
6484 LIBS="$LIBS $IOKITLIB"
25e9e4f0
AJ
6485 for ac_func in IOHIDManagerCreate
6486do :
6487 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
9797da40 6488if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
25e9e4f0
AJ
6489 cat >>confdefs.h <<_ACEOF
6490#define HAVE_IOHIDMANAGERCREATE 1
81f8c037 6491_ACEOF
81f8c037 6492
25e9e4f0
AJ
6493fi
6494done
81f8c037 6495
25e9e4f0
AJ
6496 LIBS="$ac_save_LIBS"
6497 fi
6498 case $host_cpu in
6499 *powerpc*)
6500 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6501 esac
fa3ddd83
AJ
6502 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6503 then
6504 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6505
6506 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6507 else
6508 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6509 fi
25e9e4f0
AJ
6510 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6511 then
6512 CARBONLIB="-framework Carbon"
7ff12568 6513
40664c0c 6514 enable_winequartz_drv=${enable_winequartz_drv:-yes}
cc8eb6b7
AJ
6515 fi
6516 if test "x$enable_win16" = "xyes"
6517 then
25e9e4f0 6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
cc8eb6b7 6519$as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
25e9e4f0
AJ
6520 if test "$cross_compiling" = yes; then :
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
cc8eb6b7
AJ
6522$as_echo "cross-compiling, assuming yes" >&6; }
6523else
25e9e4f0 6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc8eb6b7
AJ
6525/* end confdefs.h. */
6526asm(".text\n"
6527 "bad:\tnop;nop\n"
6528 "good:\tnop;nop\n\t"
6529 ".globl _testfunc\n"
6530 "_testfunc:\tcallw good");
6531 extern void testfunc();
6532int
6533main ()
6534{
6535unsigned short *p = (unsigned short *)testfunc;
6536 return p[0] != 0xe866 || p[1] != 0xfffa
6537 ;
6538 return 0;
6539}
6540_ACEOF
25e9e4f0
AJ
6541if ac_fn_c_try_run "$LINENO"; then :
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cc8eb6b7
AJ
6543$as_echo "yes" >&6; }
6544else
25e9e4f0 6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cc8eb6b7 6546$as_echo "no" >&6; }
a53c44a6 6547 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
cc8eb6b7 6548fi
25e9e4f0
AJ
6549rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6550 conftest.$ac_objext conftest.beam conftest.$ac_ext
cc8eb6b7
AJ
6551fi
6552
40664c0c
AJ
6553 fi
6554 ;;
6555 *)
6556 DLLFLAGS="$DLLFLAGS -fPIC"
6557 DLLEXT=".so"
25e9e4f0 6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
40664c0c 6559$as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
9797da40 6560if ${ac_cv_c_dll_gnuelf+:} false; then :
40664c0c
AJ
6561 $as_echo_n "(cached) " >&6
6562else
6563 ac_wine_try_cflags_saved=$CFLAGS
6564CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
25e9e4f0
AJ
6565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566/* end confdefs.h. */
40664c0c 6567void myfunc() {}
f5818d2f 6568_ACEOF
25e9e4f0 6569if ac_fn_c_try_link "$LINENO"; then :
40664c0c 6570 ac_cv_c_dll_gnuelf="yes"
f0ca586f 6571else
25e9e4f0 6572 ac_cv_c_dll_gnuelf="no"
f5818d2f 6573fi
25e9e4f0
AJ
6574rm -f core conftest.err conftest.$ac_objext \
6575 conftest$ac_exeext conftest.$ac_ext
40664c0c 6576CFLAGS=$ac_wine_try_cflags_saved
c90fb25c 6577fi
25e9e4f0 6578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
40664c0c
AJ
6579$as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6580 if test "$ac_cv_c_dll_gnuelf" = "yes"
6581 then
6582 LDSHARED="\$(CC) -shared"
6583 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
25e9e4f0 6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
40664c0c 6585$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
9797da40 6586if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
abf5048b 6587 $as_echo_n "(cached) " >&6
b079add3 6588else
40664c0c
AJ
6589 ac_wine_try_cflags_saved=$CFLAGS
6590CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
25e9e4f0 6591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b079add3 6592/* end confdefs.h. */
5d3eacd2 6593int main(int argc, char **argv) { return 0; }
b079add3 6594_ACEOF
25e9e4f0 6595if ac_fn_c_try_link "$LINENO"; then :
40664c0c
AJ
6596 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6597else
25e9e4f0 6598 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
40664c0c 6599fi
25e9e4f0
AJ
6600rm -f core conftest.err conftest.$ac_objext \
6601 conftest$ac_exeext conftest.$ac_ext
40664c0c
AJ
6602CFLAGS=$ac_wine_try_cflags_saved
6603fi
25e9e4f0 6604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
40664c0c 6605$as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
25e9e4f0 6606if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
40664c0c
AJ
6607 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6608else
25e9e4f0 6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
40664c0c 6610$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
9797da40 6611if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
abf5048b 6612 $as_echo_n "(cached) " >&6
2569635c 6613else
40664c0c
AJ
6614 ac_wine_try_cflags_saved=$CFLAGS
6615CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
25e9e4f0 6616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569635c 6617/* end confdefs.h. */
5d3eacd2 6618int main(int argc, char **argv) { return 0; }
2569635c 6619_ACEOF
25e9e4f0 6620if ac_fn_c_try_link "$LINENO"; then :
40664c0c 6621 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
2569635c 6622else
25e9e4f0 6623 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
2569635c 6624fi
25e9e4f0
AJ
6625rm -f core conftest.err conftest.$ac_objext \
6626 conftest$ac_exeext conftest.$ac_ext
40664c0c 6627CFLAGS=$ac_wine_try_cflags_saved
2569635c 6628fi
25e9e4f0 6629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
40664c0c 6630$as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
25e9e4f0 6631if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
40664c0c 6632 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
2569635c 6633fi
40664c0c 6634fi
020b0ef6 6635
25e9e4f0 6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
40664c0c 6637$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
9797da40 6638if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
abf5048b 6639 $as_echo_n "(cached) " >&6
7ff12568 6640else
40664c0c
AJ
6641 ac_wine_try_cflags_saved=$CFLAGS
6642CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
25e9e4f0 6643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7ff12568 6644/* end confdefs.h. */
5d3eacd2 6645int main(int argc, char **argv) { return 0; }
7ff12568 6646_ACEOF
25e9e4f0 6647if ac_fn_c_try_link "$LINENO"; then :
40664c0c 6648 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
7ff12568 6649else
25e9e4f0 6650 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
7ff12568 6651fi
25e9e4f0
AJ
6652rm -f core conftest.err conftest.$ac_objext \
6653 conftest$ac_exeext conftest.$ac_ext
40664c0c 6654CFLAGS=$ac_wine_try_cflags_saved
7ff12568 6655fi
25e9e4f0 6656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
40664c0c 6657$as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
25e9e4f0 6658if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
40664c0c 6659 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
5b6879c5
FJ
6660fi
6661
25e9e4f0 6662 { $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
40664c0c 6663$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
9797da40 6664if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
abf5048b 6665 $as_echo_n "(cached) " >&6
faf05dfd 6666else
40664c0c
AJ
6667 ac_wine_try_cflags_saved=$CFLAGS
6668CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
25e9e4f0 6669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
faf05dfd 6670/* end confdefs.h. */
5d3eacd2 6671int main(int argc, char **argv) { return 0; }
faf05dfd 6672_ACEOF
25e9e4f0 6673if ac_fn_c_try_link "$LINENO"; then :
40664c0c
AJ
6674 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6675else
25e9e4f0 6676 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
faf05dfd 6677fi
25e9e4f0
AJ
6678rm -f core conftest.err conftest.$ac_objext \
6679 conftest$ac_exeext conftest.$ac_ext
40664c0c
AJ
6680CFLAGS=$ac_wine_try_cflags_saved
6681fi
25e9e4f0 6682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
40664c0c 6683$as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
25e9e4f0 6684if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
40664c0c
AJ
6685 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6686fi
faf05dfd 6687
40664c0c 6688 echo '{ global: *; };' >conftest.map
a53c44a6
AJ
6689 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
40664c0c 6691$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
9797da40 6692if eval \${$as_ac_var+:} false; then :
abf5048b 6693 $as_echo_n "(cached) " >&6
d94475bd 6694else
40664c0c
AJ
6695 ac_wine_try_cflags_saved=$CFLAGS
6696CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
25e9e4f0 6697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 6698/* end confdefs.h. */
5d3eacd2 6699int main(int argc, char **argv) { return 0; }
f5818d2f 6700_ACEOF
25e9e4f0 6701if ac_fn_c_try_link "$LINENO"; then :
a53c44a6 6702 eval "$as_ac_var=yes"
f5818d2f 6703else
a53c44a6 6704 eval "$as_ac_var=no"
f5818d2f 6705fi
25e9e4f0
AJ
6706rm -f core conftest.err conftest.$ac_objext \
6707 conftest$ac_exeext conftest.$ac_ext
40664c0c 6708CFLAGS=$ac_wine_try_cflags_saved
f5818d2f 6709fi
a53c44a6
AJ
6710eval ac_res=\$$as_ac_var
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6712$as_echo "$ac_res" >&6; }
6713if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
40664c0c 6714 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
7ff12568 6715fi
40664c0c 6716 rm -f conftest.map
2d6d4e96 6717
25e9e4f0 6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
40664c0c 6719$as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
9797da40 6720if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
abf5048b 6721 $as_echo_n "(cached) " >&6
02e90087 6722else
40664c0c
AJ
6723 ac_wine_try_cflags_saved=$CFLAGS
6724CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
25e9e4f0 6725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 6726/* end confdefs.h. */
5d3eacd2 6727int main(int argc, char **argv) { return 0; }
60833da9 6728_ACEOF
25e9e4f0 6729if ac_fn_c_try_link "$LINENO"; then :
40664c0c 6730 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
60833da9 6731else
25e9e4f0 6732 ac_cv_cflags__fPIC__Wl___export_dynamic=no
60833da9 6733fi
25e9e4f0
AJ
6734rm -f core conftest.err conftest.$ac_objext \
6735 conftest$ac_exeext conftest.$ac_ext
40664c0c 6736CFLAGS=$ac_wine_try_cflags_saved
60833da9 6737fi
25e9e4f0 6738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
40664c0c 6739$as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
25e9e4f0 6740if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
40664c0c 6741 LDEXECFLAGS="-Wl,--export-dynamic"
60833da9
TC
6742
6743fi
6744
25e9e4f0
AJ
6745 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
40664c0c 6747$as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
9797da40 6748if eval \${$as_ac_var+:} false; then :
abf5048b 6749 $as_echo_n "(cached) " >&6
60833da9 6750else
40664c0c
AJ
6751 ac_wine_try_cflags_saved=$CFLAGS
6752CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
25e9e4f0 6753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60833da9 6754/* end confdefs.h. */
5d3eacd2 6755int main(int argc, char **argv) { return 0; }
4ff90b47 6756_ACEOF
25e9e4f0 6757if ac_fn_c_try_link "$LINENO"; then :
40664c0c 6758 eval "$as_ac_var=yes"
4ff90b47 6759else
25e9e4f0 6760 eval "$as_ac_var=no"
4ff90b47 6761fi
25e9e4f0
AJ
6762rm -f core conftest.err conftest.$ac_objext \
6763 conftest$ac_exeext conftest.$ac_ext
40664c0c 6764CFLAGS=$ac_wine_try_cflags_saved
4ff90b47 6765fi
25e9e4f0
AJ
6766eval ac_res=\$$as_ac_var
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
abf5048b 6768$as_echo "$ac_res" >&6; }
25e9e4f0 6769if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
40664c0c 6770 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
bd9852cd 6771 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
40664c0c 6772else
25e9e4f0
AJ
6773 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
40664c0c 6775$as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
9797da40 6776if eval \${$as_ac_var+:} false; then :
abf5048b 6777 $as_echo_n "(cached) " >&6
4ff90b47 6778else
40664c0c
AJ
6779 ac_wine_try_cflags_saved=$CFLAGS
6780CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
25e9e4f0 6781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4ff90b47 6782/* end confdefs.h. */
5d3eacd2 6783int main(int argc, char **argv) { return 0; }
f5818d2f 6784_ACEOF
25e9e4f0 6785if ac_fn_c_try_link "$LINENO"; then :
40664c0c 6786 eval "$as_ac_var=yes"
f5818d2f 6787else
25e9e4f0 6788 eval "$as_ac_var=no"
f5818d2f 6789fi
25e9e4f0
AJ
6790rm -f core conftest.err conftest.$ac_objext \
6791 conftest$ac_exeext conftest.$ac_ext
40664c0c 6792CFLAGS=$ac_wine_try_cflags_saved
f5818d2f 6793fi
25e9e4f0
AJ
6794eval ac_res=\$$as_ac_var
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
abf5048b 6796$as_echo "$ac_res" >&6; }
25e9e4f0 6797if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
40664c0c 6798 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
bd9852cd 6799 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
f2b77ccb 6800fi
40664c0c 6801fi
2d6d4e96 6802
25e9e4f0 6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
40664c0c 6804$as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
9797da40 6805if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
abf5048b 6806 $as_echo_n "(cached) " >&6
399931a2 6807else
40664c0c
AJ
6808 ac_wine_try_cflags_saved=$CFLAGS
6809CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
25e9e4f0 6810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 6811/* end confdefs.h. */
5d3eacd2 6812int main(int argc, char **argv) { return 0; }
f5818d2f 6813_ACEOF
25e9e4f0 6814if ac_fn_c_try_link "$LINENO"; then :
40664c0c 6815 ac_cv_cflags__Wl___enable_new_dtags=yes
f5818d2f 6816else
25e9e4f0 6817 ac_cv_cflags__Wl___enable_new_dtags=no
f5818d2f 6818fi
25e9e4f0
AJ
6819rm -f core conftest.err conftest.$ac_objext \
6820 conftest$ac_exeext conftest.$ac_ext
40664c0c 6821CFLAGS=$ac_wine_try_cflags_saved
f5818d2f 6822fi
25e9e4f0 6823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
40664c0c 6824$as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
25e9e4f0 6825if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
40664c0c 6826 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
399931a2
SC
6827fi
6828
40664c0c
AJ
6829 case $host_cpu in
6830 *i[3456789]86* | x86_64)
a53c44a6
AJ
6831 as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
40664c0c 6833$as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
9797da40 6834if eval \${$as_ac_var+:} false; then :
abf5048b 6835 $as_echo_n "(cached) " >&6
2d6d4e96 6836else
40664c0c
AJ
6837 ac_wine_try_cflags_saved=$CFLAGS
6838CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
25e9e4f0 6839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f174bc6 6840/* end confdefs.h. */
5d3eacd2 6841int main(int argc, char **argv) { return 0; }
8f174bc6 6842_ACEOF
25e9e4f0 6843if ac_fn_c_try_link "$LINENO"; then :
a53c44a6 6844 eval "$as_ac_var=yes"
7ff12568 6845else
a53c44a6 6846 eval "$as_ac_var=no"
2d6d4e96 6847fi
25e9e4f0
AJ
6848rm -f core conftest.err conftest.$ac_objext \
6849 conftest$ac_exeext conftest.$ac_ext
40664c0c 6850CFLAGS=$ac_wine_try_cflags_saved
7ff12568 6851fi
a53c44a6
AJ
6852eval ac_res=\$$as_ac_var
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6854$as_echo "$ac_res" >&6; }
6855if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
5f694ddf 6856 case $host_os in
535a55ec 6857 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
5f694ddf
FG
6858 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6859 esac
6860
2d6d4e96 6861fi
b5d824bd
AJ
6862 # Extract the first word of "prelink", so it can be a program name with args.
6863set dummy prelink; ac_word=$2
6864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6865$as_echo_n "checking for $ac_word... " >&6; }
9797da40 6866if ${ac_cv_path_PRELINK+:} false; then :
b5d824bd
AJ
6867 $as_echo_n "(cached) " >&6
6868else
6869 case $PRELINK in
6870 [\\/]* | ?:[\\/]*)
6871 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6872 ;;
6873 *)
6874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875for as_dir in /sbin /usr/sbin $PATH
6876do
6877 IFS=$as_save_IFS
6878 test -z "$as_dir" && as_dir=.
6879 for ac_exec_ext in '' $ac_executable_extensions; do
6880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6881 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6883 break 2
6884 fi
6885done
6886 done
6887IFS=$as_save_IFS
6888
6889 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6890 ;;
6891esac
6892fi
6893PRELINK=$ac_cv_path_PRELINK
6894if test -n "$PRELINK"; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
6896$as_echo "$PRELINK" >&6; }
6897else
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899$as_echo "no" >&6; }
6900fi
6901
6902
6903 if test "x$PRELINK" = xfalse
6904 then
6905 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
6906 fi
40664c0c
AJ
6907 ;;
6908 esac
2d6d4e96 6909
40664c0c 6910 else
25e9e4f0 6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
40664c0c 6912$as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
9797da40 6913if ${ac_cv_c_dll_unixware+:} false; then :
abf5048b 6914 $as_echo_n "(cached) " >&6
7ff12568 6915else
40664c0c
AJ
6916 ac_wine_try_cflags_saved=$CFLAGS
6917CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
25e9e4f0
AJ
6918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919/* end confdefs.h. */
40664c0c
AJ
6920void myfunc() {}
6921_ACEOF
25e9e4f0 6922if ac_fn_c_try_link "$LINENO"; then :
40664c0c 6923 ac_cv_c_dll_unixware="yes"
a3097628 6924else
25e9e4f0 6925 ac_cv_c_dll_unixware="no"
40664c0c 6926fi
25e9e4f0
AJ
6927rm -f core conftest.err conftest.$ac_objext \
6928 conftest$ac_exeext conftest.$ac_ext
40664c0c 6929CFLAGS=$ac_wine_try_cflags_saved
a3097628 6930fi
25e9e4f0 6931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
40664c0c
AJ
6932$as_echo "$ac_cv_c_dll_unixware" >&6; }
6933 if test "$ac_cv_c_dll_unixware" = "yes"
6934 then
6935 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
6936 LDDLLFLAGS="-Wl,-G,-B,symbolic"
6937
6938 else
25e9e4f0 6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
40664c0c 6940$as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
9797da40 6941if ${ac_cv_c_dll_hpux+:} false; then :
abf5048b 6942 $as_echo_n "(cached) " >&6
2d6d4e96 6943else
40664c0c
AJ
6944 ac_wine_try_cflags_saved=$CFLAGS
6945CFLAGS="$CFLAGS -shared"
25e9e4f0
AJ
6946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6947/* end confdefs.h. */
40664c0c
AJ
6948void myfunc() {}
6949_ACEOF
25e9e4f0 6950if ac_fn_c_try_link "$LINENO"; then :
40664c0c 6951 ac_cv_c_dll_hpux="yes"
c7c9f939 6952else
25e9e4f0 6953 ac_cv_c_dll_hpux="no"
8f174bc6 6954fi
25e9e4f0
AJ
6955rm -f core conftest.err conftest.$ac_objext \
6956 conftest$ac_exeext conftest.$ac_ext
40664c0c
AJ
6957CFLAGS=$ac_wine_try_cflags_saved
6958fi
25e9e4f0 6959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
40664c0c
AJ
6960$as_echo "$ac_cv_c_dll_hpux" >&6; }
6961 if test "$ac_cv_c_dll_hpux" = "yes"
6962 then
6963 LIBEXT="sl"
6964 DLLEXT=".sl"
6965 LDDLLFLAGS="-shared -fPIC"
6966 LDSHARED="\$(CC) -shared"
6967 fi
6968 fi
6969 fi
6970 ;;
a3097628 6971esac
40664c0c 6972
eefe6f65 6973enable_wineqtdecoder=${enable_wineqtdecoder:-no}
40664c0c
AJ
6974enable_winequartz_drv=${enable_winequartz_drv:-no}
6975
6976if test "$LIBEXT" = "a"; then
a53c44a6 6977 as_fn_error $? "could not find a way to build shared libraries.
40664c0c
AJ
6978It is currently not possible to build Wine without shared library
6979(.so) support to allow transparent switch between .so and .dll files.
6980If you are using Linux, you will need a newer binutils.
25e9e4f0 6981" "$LINENO" 5
2d6d4e96 6982fi
2d6d4e96 6983
7d2e7726
AJ
6984CROSSTEST_DISABLE=\#
6985
6986if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
40664c0c 6987then
a91fb219
AJ
6988 case "$host_cpu" in
6989 i[3456789]86*)
0b6bfade 6990 ac_prefix_list="i686-w64-mingw32-gcc i586-w64-mingw32-gcc i486-w64-mingw32-gcc i386-w64-mingw32-gcc i686-pc-mingw32-gcc i586-pc-mingw32-gcc i486-pc-mingw32-gcc i386-pc-mingw32-gcc i686-mingw32msvc-gcc i586-mingw32msvc-gcc i486-mingw32msvc-gcc i386-mingw32msvc-gcc i686-mingw32-gcc i586-mingw32-gcc i486-mingw32-gcc i386-mingw32-gcc " ;;
a91fb219 6991 x86_64)
d2103751 6992 ac_prefix_list="x86_64-pc-mingw32-gcc amd64-pc-mingw32-gcc x86_64-w64-mingw32-gcc amd64-w64-mingw32-gcc x86_64-mingw32msvc-gcc amd64-mingw32msvc-gcc " ;;
a91fb219
AJ
6993 *)
6994 ac_prefix_list="" ;;
6995esac
6996for ac_prog in $ac_prefix_list
40664c0c
AJ
6997do
6998 # Extract the first word of "$ac_prog", so it can be a program name with args.
6999set dummy $ac_prog; ac_word=$2
25e9e4f0 7000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf5048b 7001$as_echo_n "checking for $ac_word... " >&6; }
9797da40 7002if ${ac_cv_prog_CROSSCC+:} false; then :
abf5048b 7003 $as_echo_n "(cached) " >&6
a3097628 7004else
40664c0c
AJ
7005 if test -n "$CROSSCC"; then
7006 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
a3097628
AJ
7007else
7008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009for as_dir in $PATH
7010do
7011 IFS=$as_save_IFS
7012 test -z "$as_dir" && as_dir=.
25e9e4f0 7013 for ac_exec_ext in '' $ac_executable_extensions; do
a3097628 7014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40664c0c 7015 ac_cv_prog_CROSSCC="$ac_prog"
25e9e4f0 7016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a3097628
AJ
7017 break 2
7018 fi
7019done
25e9e4f0 7020 done
a3097628 7021IFS=$as_save_IFS
2d6d4e96
HL
7022
7023fi
a3097628 7024fi
40664c0c
AJ
7025CROSSCC=$ac_cv_prog_CROSSCC
7026if test -n "$CROSSCC"; then
25e9e4f0 7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
40664c0c 7028$as_echo "$CROSSCC" >&6; }
a3097628 7029else
25e9e4f0 7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 7031$as_echo "no" >&6; }
a3097628 7032fi
2d6d4e96 7033
92ec21bd 7034
40664c0c
AJ
7035 test -n "$CROSSCC" && break
7036done
7037test -n "$CROSSCC" || CROSSCC="false"
7038
40664c0c
AJ
7039 if test "$CROSSCC" != "false"
7040 then
c2a29dbb
AJ
7041 ac_save_CC="$CC"
7042 CC="$CROSSCC"
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7044$as_echo_n "checking whether $CROSSCC works... " >&6; }
7045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046/* end confdefs.h. */
a2d88ab3 7047
c2a29dbb
AJ
7048int
7049main ()
7050{
7051
7052 ;
7053 return 0;
7054}
7055_ACEOF
7056if ac_fn_c_try_compile "$LINENO"; then :
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7058$as_echo "yes" >&6; }
7059 set x $CROSSCC
7060 shift
7061 target=""
7062 while test $# -ge 1
7063 do
7064 case "$1" in
7065 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7066 esac
7067 shift
7068 done
7069 if test -n "$target"
7070 then
7071 CROSSTEST_DISABLE=""
7072 CROSSTARGET="$target"
7073
7074 fi
7075else
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7077$as_echo "no" >&6; }
7078fi
7079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7080 CC="$ac_save_CC"
40664c0c
AJ
7081 fi
7082fi
7083
7084
c891f6bc
AJ
7085if test "$ac_cv_header_pthread_h" = "yes"
7086then
25e9e4f0 7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
c891f6bc 7088$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
9797da40 7089if ${ac_cv_lib_pthread_pthread_create+:} false; then :
c891f6bc
AJ
7090 $as_echo_n "(cached) " >&6
7091else
7092 ac_check_lib_save_LIBS=$LIBS
7093LIBS="-lpthread $LIBS"
25e9e4f0 7094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c891f6bc
AJ
7095/* end confdefs.h. */
7096
7097/* Override any GCC internal prototype to avoid an error.
7098 Use char because int might match the return type of a GCC
7099 builtin and then its argument prototype would still apply. */
7100#ifdef __cplusplus
7101extern "C"
7102#endif
7103char pthread_create ();
7104int
7105main ()
7106{
7107return pthread_create ();
7108 ;
7109 return 0;
7110}
7111_ACEOF
25e9e4f0 7112if ac_fn_c_try_link "$LINENO"; then :
c891f6bc
AJ
7113 ac_cv_lib_pthread_pthread_create=yes
7114else
25e9e4f0 7115 ac_cv_lib_pthread_pthread_create=no
c891f6bc 7116fi
25e9e4f0
AJ
7117rm -f core conftest.err conftest.$ac_objext \
7118 conftest$ac_exeext conftest.$ac_ext
c891f6bc
AJ
7119LIBS=$ac_check_lib_save_LIBS
7120fi
25e9e4f0 7121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
c891f6bc 7122$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
9797da40 7123if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
c891f6bc
AJ
7124 LIBPTHREAD="-lpthread"
7125
7126fi
7127
7128fi
25e9e4f0 7129if test "x$LIBPTHREAD" = "x"; then :
c891f6bc
AJ
7130 case "x$with_pthread" in
7131 xno) ;;
a53c44a6 7132 *) as_fn_error $? "pthread ${notice_platform}development files not found.
c891f6bc 7133Wine cannot support threads without libpthread.
9797da40 7134Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
c891f6bc
AJ
7135esac
7136fi
7137
7138
25e9e4f0 7139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
40664c0c
AJ
7140$as_echo_n "checking for X... " >&6; }
7141
7142
7143# Check whether --with-x was given.
25e9e4f0 7144if test "${with_x+set}" = set; then :
40664c0c
AJ
7145 withval=$with_x;
7146fi
7147
7148# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7149if test "x$with_x" = xno; then
7150 # The user explicitly disabled X.
7151 have_x=disabled
7152else
7153 case $x_includes,$x_libraries in #(
9797da40
AJ
7154 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7155 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
40664c0c
AJ
7156 $as_echo_n "(cached) " >&6
7157else
7158 # One or both of the vars are not set, and there is no cached value.
7159ac_x_includes=no ac_x_libraries=no
7160rm -f -r conftest.dir
7161if mkdir conftest.dir; then
7162 cd conftest.dir
7163 cat >Imakefile <<'_ACEOF'
7164incroot:
7165 @echo incroot='${INCROOT}'
7166usrlibdir:
7167 @echo usrlibdir='${USRLIBDIR}'
7168libdir:
7169 @echo libdir='${LIBDIR}'
7170_ACEOF
7171 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
a53c44a6 7172 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
40664c0c
AJ
7173 for ac_var in incroot usrlibdir libdir; do
7174 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7175 done
7176 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7177 for ac_extension in a so sl dylib la dll; do
7178 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7179 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7180 ac_im_usrlibdir=$ac_im_libdir; break
7181 fi
7182 done
7183 # Screen out bogus values from the imake configuration. They are
7184 # bogus both because they are the default anyway, and because
7185 # using them would break gcc on systems where it needs fixed includes.
7186 case $ac_im_incroot in
7187 /usr/include) ac_x_includes= ;;
7188 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7189 esac
7190 case $ac_im_usrlibdir in
7191 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7192 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7193 esac
7194 fi
7195 cd ..
7196 rm -f -r conftest.dir
7197fi
7198
7199# Standard set of common directories for X headers.
7200# Check X11 before X11Rn because it is often a symlink to the current release.
7201ac_x_header_dirs='
7202/usr/X11/include
25e9e4f0 7203/usr/X11R7/include
40664c0c
AJ
7204/usr/X11R6/include
7205/usr/X11R5/include
7206/usr/X11R4/include
7207
7208/usr/include/X11
25e9e4f0 7209/usr/include/X11R7
40664c0c
AJ
7210/usr/include/X11R6
7211/usr/include/X11R5
7212/usr/include/X11R4
7213
7214/usr/local/X11/include
25e9e4f0 7215/usr/local/X11R7/include
40664c0c
AJ
7216/usr/local/X11R6/include
7217/usr/local/X11R5/include
7218/usr/local/X11R4/include
7219
7220/usr/local/include/X11
25e9e4f0 7221/usr/local/include/X11R7
40664c0c
AJ
7222/usr/local/include/X11R6
7223/usr/local/include/X11R5
7224/usr/local/include/X11R4
7225
7226/usr/X386/include
7227/usr/x386/include
7228/usr/XFree86/include/X11
7229
7230/usr/include
7231/usr/local/include
7232/usr/unsupported/include
7233/usr/athena/include
7234/usr/local/x11r5/include
7235/usr/lpp/Xamples/include
7236
7237/usr/openwin/include
7238/usr/openwin/share/include'
7239
7240if test "$ac_x_includes" = no; then
7241 # Guess where to find include files, by looking for Xlib.h.
7242 # First, try using that file with no special directory specified.
25e9e4f0 7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664c0c
AJ
7244/* end confdefs.h. */
7245#include <X11/Xlib.h>
7246_ACEOF
25e9e4f0 7247if ac_fn_c_try_cpp "$LINENO"; then :
40664c0c
AJ
7248 # We can compile using X headers with no special include directory.
7249ac_x_includes=
7250else
40664c0c
AJ
7251 for ac_dir in $ac_x_header_dirs; do
7252 if test -r "$ac_dir/X11/Xlib.h"; then
7253 ac_x_includes=$ac_dir
7254 break
a3097628 7255 fi
40664c0c
AJ
7256done
7257fi
a53c44a6 7258rm -f conftest.err conftest.i conftest.$ac_ext
40664c0c
AJ
7259fi # $ac_x_includes = no
7260
7261if test "$ac_x_libraries" = no; then
7262 # Check for the libraries.
7263 # See if we find them without any special options.
7264 # Don't add to $LIBS permanently.
7265 ac_save_LIBS=$LIBS
7266 LIBS="-lX11 $LIBS"
25e9e4f0 7267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664c0c
AJ
7268/* end confdefs.h. */
7269#include <X11/Xlib.h>
7270int
7271main ()
7272{
7273XrmInitialize ()
7274 ;
7275 return 0;
7276}
7277_ACEOF
25e9e4f0 7278if ac_fn_c_try_link "$LINENO"; then :
40664c0c
AJ
7279 LIBS=$ac_save_LIBS
7280# We can link X programs with no special library path.
7281ac_x_libraries=
7282else
25e9e4f0 7283 LIBS=$ac_save_LIBS
40664c0c
AJ
7284for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7285do
7286 # Don't even attempt the hair of trying to link an X program!
7287 for ac_extension in a so sl dylib la dll; do
7288 if test -r "$ac_dir/libX11.$ac_extension"; then
7289 ac_x_libraries=$ac_dir
7290 break 2
7291 fi
7292 done
7293done
7294fi
25e9e4f0
AJ
7295rm -f core conftest.err conftest.$ac_objext \
7296 conftest$ac_exeext conftest.$ac_ext
40664c0c
AJ
7297fi # $ac_x_libraries = no
7298
7299case $ac_x_includes,$ac_x_libraries in #(
7300 no,* | *,no | *\'*)
7301 # Didn't find X, or a directory has "'" in its name.
7302 ac_cv_have_x="have_x=no";; #(
7303 *)
7304 # Record where we found X for the cache.
7305 ac_cv_have_x="have_x=yes\
7306 ac_x_includes='$ac_x_includes'\
7307 ac_x_libraries='$ac_x_libraries'"
7308esac
7309fi
7310;; #(
7311 *) have_x=yes;;
7312 esac
7313 eval "$ac_cv_have_x"
7314fi # $with_x != no
7315
7316if test "$have_x" != yes; then
25e9e4f0 7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
40664c0c
AJ
7318$as_echo "$have_x" >&6; }
7319 no_x=yes
a3097628 7320else
40664c0c
AJ
7321 # If each of the values was on the command line, it overrides each guess.
7322 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7323 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7324 # Update the cache value to reflect the command line values.
7325 ac_cv_have_x="have_x=yes\
7326 ac_x_includes='$x_includes'\
7327 ac_x_libraries='$x_libraries'"
25e9e4f0 7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
40664c0c 7329$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
a3097628 7330fi
2d6d4e96 7331
40664c0c
AJ
7332if test "$no_x" = yes; then
7333 # Not all programs may use this symbol, but it does not hurt to define it.
312a1db3 7334
25e9e4f0 7335$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
2d6d4e96 7336
40664c0c
AJ
7337 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7338else
7339 if test -n "$x_includes"; then
7340 X_CFLAGS="$X_CFLAGS -I$x_includes"
7341 fi
e24bcc77 7342
40664c0c
AJ
7343 # It would also be nice to do this for all -L options, not just this one.
7344 if test -n "$x_libraries"; then
7345 X_LIBS="$X_LIBS -L$x_libraries"
7346 # For Solaris; some versions of Sun CC require a space after -R and
7347 # others require no space. Words are not sufficient . . . .
25e9e4f0 7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
40664c0c
AJ
7349$as_echo_n "checking whether -R must be followed by a space... " >&6; }
7350 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7351 ac_xsave_c_werror_flag=$ac_c_werror_flag
7352 ac_c_werror_flag=yes
25e9e4f0 7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664c0c 7354/* end confdefs.h. */
fc6ffb29 7355
40664c0c
AJ
7356int
7357main ()
7358{
fc6ffb29 7359
40664c0c
AJ
7360 ;
7361 return 0;
7362}
7363_ACEOF
25e9e4f0
AJ
7364if ac_fn_c_try_link "$LINENO"; then :
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c
AJ
7366$as_echo "no" >&6; }
7367 X_LIBS="$X_LIBS -R$x_libraries"
7368else
25e9e4f0
AJ
7369 LIBS="$ac_xsave_LIBS -R $x_libraries"
7370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664c0c 7371/* end confdefs.h. */
a3097628 7372
40664c0c
AJ
7373int
7374main ()
7375{
7376
7377 ;
7378 return 0;
7379}
ef799c46 7380_ACEOF
25e9e4f0
AJ
7381if ac_fn_c_try_link "$LINENO"; then :
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40664c0c
AJ
7383$as_echo "yes" >&6; }
7384 X_LIBS="$X_LIBS -R $x_libraries"
ef799c46 7385else
25e9e4f0 7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
40664c0c 7387$as_echo "neither works" >&6; }
ef799c46 7388fi
25e9e4f0
AJ
7389rm -f core conftest.err conftest.$ac_objext \
7390 conftest$ac_exeext conftest.$ac_ext
ef799c46 7391fi
25e9e4f0
AJ
7392rm -f core conftest.err conftest.$ac_objext \
7393 conftest$ac_exeext conftest.$ac_ext
40664c0c
AJ
7394 ac_c_werror_flag=$ac_xsave_c_werror_flag
7395 LIBS=$ac_xsave_LIBS
7396 fi
7397
7398 # Check for system-dependent libraries X programs must link with.
7399 # Do this before checking for the system-independent R6 libraries
7400 # (-lICE), since we may need -lsocket or whatever for X linking.
7401
7402 if test "$ISC" = yes; then
7403 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7404 else
7405 # Martyn Johnson says this is needed for Ultrix, if the X
7406 # libraries were built with DECnet support. And Karl Berry says
7407 # the Alpha needs dnet_stub (dnet does not exist).
7408 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25e9e4f0 7409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664c0c
AJ
7410/* end confdefs.h. */
7411
7412/* Override any GCC internal prototype to avoid an error.
7413 Use char because int might match the return type of a GCC
7414 builtin and then its argument prototype would still apply. */
7415#ifdef __cplusplus
7416extern "C"
7417#endif
7418char XOpenDisplay ();
7419int
7420main ()
7421{
7422return XOpenDisplay ();
7423 ;
7424 return 0;
7425}
7426_ACEOF
25e9e4f0 7427if ac_fn_c_try_link "$LINENO"; then :
40664c0c 7428
25e9e4f0
AJ
7429else
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
40664c0c 7431$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9797da40 7432if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
abf5048b 7433 $as_echo_n "(cached) " >&6
a3097628 7434else
40664c0c
AJ
7435 ac_check_lib_save_LIBS=$LIBS
7436LIBS="-ldnet $LIBS"
25e9e4f0 7437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7d00b050 7438/* end confdefs.h. */
a3097628 7439
40664c0c
AJ
7440/* Override any GCC internal prototype to avoid an error.
7441 Use char because int might match the return type of a GCC
7442 builtin and then its argument prototype would still apply. */
7443#ifdef __cplusplus
7444extern "C"
7445#endif
7446char dnet_ntoa ();
7d00b050
AJ
7447int
7448main ()
7449{
40664c0c 7450return dnet_ntoa ();
7d00b050
AJ
7451 ;
7452 return 0;
7453}
7454_ACEOF
25e9e4f0 7455if ac_fn_c_try_link "$LINENO"; then :
40664c0c 7456 ac_cv_lib_dnet_dnet_ntoa=yes
7d00b050 7457else
25e9e4f0 7458 ac_cv_lib_dnet_dnet_ntoa=no
7d00b050 7459fi
25e9e4f0
AJ
7460rm -f core conftest.err conftest.$ac_objext \
7461 conftest$ac_exeext conftest.$ac_ext
40664c0c 7462LIBS=$ac_check_lib_save_LIBS
a3097628 7463fi
25e9e4f0 7464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
40664c0c 7465$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9797da40 7466if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
40664c0c
AJ
7467 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7468fi
7469
7470 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25e9e4f0 7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
40664c0c 7472$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
9797da40 7473if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
abf5048b 7474 $as_echo_n "(cached) " >&6
6f670b13 7475else
40664c0c
AJ
7476 ac_check_lib_save_LIBS=$LIBS
7477LIBS="-ldnet_stub $LIBS"
25e9e4f0 7478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 7479/* end confdefs.h. */
2d6d4e96 7480
40664c0c
AJ
7481/* Override any GCC internal prototype to avoid an error.
7482 Use char because int might match the return type of a GCC
7483 builtin and then its argument prototype would still apply. */
7484#ifdef __cplusplus
7485extern "C"
7486#endif
7487char dnet_ntoa ();
a3097628
AJ
7488int
7489main ()
7490{
40664c0c 7491return dnet_ntoa ();
a3097628
AJ
7492 ;
7493 return 0;
7494}
6f670b13 7495_ACEOF
25e9e4f0 7496if ac_fn_c_try_link "$LINENO"; then :
40664c0c 7497 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6f670b13 7498else
25e9e4f0 7499 ac_cv_lib_dnet_stub_dnet_ntoa=no
6f670b13 7500fi
25e9e4f0
AJ
7501rm -f core conftest.err conftest.$ac_objext \
7502 conftest$ac_exeext conftest.$ac_ext
40664c0c 7503LIBS=$ac_check_lib_save_LIBS
a3097628 7504fi
25e9e4f0 7505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
40664c0c 7506$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
9797da40 7507if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
40664c0c 7508 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6f670b13 7509fi
6f670b13 7510
40664c0c 7511 fi
2d6d4e96 7512fi
25e9e4f0
AJ
7513rm -f core conftest.err conftest.$ac_objext \
7514 conftest$ac_exeext conftest.$ac_ext
40664c0c 7515 LIBS="$ac_xsave_LIBS"
2d6d4e96 7516
40664c0c
AJ
7517 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7518 # to get the SysV transport functions.
7519 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7520 # needs -lnsl.
7521 # The nsl library prevents programs from opening the X display
7522 # on Irix 5.2, according to T.E. Dickey.
7523 # The functions gethostbyname, getservbyname, and inet_addr are
7524 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25e9e4f0 7525 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
9797da40 7526if test "x$ac_cv_func_gethostbyname" = xyes; then :
e24bcc77 7527
6f670b13 7528fi
fc6ffb29 7529
40664c0c 7530 if test $ac_cv_func_gethostbyname = no; then
25e9e4f0 7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
40664c0c 7532$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
9797da40 7533if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
abf5048b 7534 $as_echo_n "(cached) " >&6
6f670b13 7535else
40664c0c
AJ
7536 ac_check_lib_save_LIBS=$LIBS
7537LIBS="-lnsl $LIBS"
25e9e4f0 7538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 7539/* end confdefs.h. */
6f670b13 7540
40664c0c
AJ
7541/* Override any GCC internal prototype to avoid an error.
7542 Use char because int might match the return type of a GCC
7543 builtin and then its argument prototype would still apply. */
7544#ifdef __cplusplus
7545extern "C"
7546#endif
7547char gethostbyname ();
6f670b13
FG
7548int
7549main ()
7550{
40664c0c 7551return gethostbyname ();
6f670b13
FG
7552 ;
7553 return 0;
7554}
7555_ACEOF
25e9e4f0 7556if ac_fn_c_try_link "$LINENO"; then :
40664c0c 7557 ac_cv_lib_nsl_gethostbyname=yes
6f670b13 7558else
25e9e4f0 7559 ac_cv_lib_nsl_gethostbyname=no
6f670b13 7560fi
25e9e4f0
AJ
7561rm -f core conftest.err conftest.$ac_objext \
7562 conftest$ac_exeext conftest.$ac_ext
40664c0c 7563LIBS=$ac_check_lib_save_LIBS
6f670b13 7564fi
25e9e4f0 7565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
40664c0c 7566$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
9797da40 7567if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
40664c0c 7568 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
c84c4784
AJ
7569fi
7570
40664c0c 7571 if test $ac_cv_lib_nsl_gethostbyname = no; then
25e9e4f0 7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
40664c0c 7573$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
9797da40 7574if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
abf5048b 7575 $as_echo_n "(cached) " >&6
dcc2d6c2 7576else
40664c0c
AJ
7577 ac_check_lib_save_LIBS=$LIBS
7578LIBS="-lbsd $LIBS"
25e9e4f0 7579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dcc2d6c2 7580/* end confdefs.h. */
2d6d4e96 7581
40664c0c
AJ
7582/* Override any GCC internal prototype to avoid an error.
7583 Use char because int might match the return type of a GCC
7584 builtin and then its argument prototype would still apply. */
7585#ifdef __cplusplus
7586extern "C"
7587#endif
7588char gethostbyname ();
2d6d4e96
HL
7589int
7590main ()
7591{
40664c0c 7592return gethostbyname ();
2d6d4e96
HL
7593 ;
7594 return 0;
7595}
7596_ACEOF
25e9e4f0 7597if ac_fn_c_try_link "$LINENO"; then :
40664c0c 7598 ac_cv_lib_bsd_gethostbyname=yes
2d6d4e96 7599else
25e9e4f0 7600 ac_cv_lib_bsd_gethostbyname=no
2d6d4e96 7601fi
25e9e4f0
AJ
7602rm -f core conftest.err conftest.$ac_objext \
7603 conftest$ac_exeext conftest.$ac_ext
40664c0c 7604LIBS=$ac_check_lib_save_LIBS
2d6d4e96 7605fi
25e9e4f0 7606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
40664c0c 7607$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
9797da40 7608if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
40664c0c 7609 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
2d6d4e96
HL
7610fi
7611
40664c0c
AJ
7612 fi
7613 fi
2d6d4e96 7614
40664c0c
AJ
7615 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7616 # socket/setsockopt and other routines are undefined under SCO ODT
7617 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7618 # on later versions), says Simon Leinen: it contains gethostby*
7619 # variants that don't use the name server (or something). -lsocket
7620 # must be given before -lnsl if both are needed. We assume that
7621 # if connect needs -lnsl, so does gethostbyname.
25e9e4f0 7622 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
9797da40 7623if test "x$ac_cv_func_connect" = xyes; then :
25e9e4f0
AJ
7624
7625fi
7626
7627 if test $ac_cv_func_connect = no; then
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7629$as_echo_n "checking for connect in -lsocket... " >&6; }
9797da40 7630if ${ac_cv_lib_socket_connect+:} false; then :
abf5048b 7631 $as_echo_n "(cached) " >&6
2d6d4e96 7632else
25e9e4f0
AJ
7633 ac_check_lib_save_LIBS=$LIBS
7634LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2d6d4e96 7636/* end confdefs.h. */
40664c0c
AJ
7637
7638/* Override any GCC internal prototype to avoid an error.
7639 Use char because int might match the return type of a GCC
7640 builtin and then its argument prototype would still apply. */
7641#ifdef __cplusplus
7642extern "C"
7643#endif
7644char connect ();
a3097628
AJ
7645int
7646main ()
7647{
40664c0c 7648return connect ();
a3097628
AJ
7649 ;
7650 return 0;
7651}
2d6d4e96 7652_ACEOF
25e9e4f0 7653if ac_fn_c_try_link "$LINENO"; then :
40664c0c 7654 ac_cv_lib_socket_connect=yes
dcc2d6c2 7655else
25e9e4f0 7656 ac_cv_lib_socket_connect=no
dcc2d6c2 7657fi
25e9e4f0
AJ
7658rm -f core conftest.err conftest.$ac_objext \
7659 conftest$ac_exeext conftest.$ac_ext
40664c0c 7660LIBS=$ac_check_lib_save_LIBS
dcc2d6c2 7661fi
25e9e4f0 7662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
40664c0c 7663$as_echo "$ac_cv_lib_socket_connect" >&6; }
9797da40 7664if test "x$ac_cv_lib_socket_connect" = xyes; then :
40664c0c
AJ
7665 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7666fi
7667
7668 fi
7669
7670 # Guillermo Gomez says -lposix is necessary on A/UX.
25e9e4f0 7671 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
9797da40 7672if test "x$ac_cv_func_remove" = xyes; then :
fc6ffb29 7673
dcc2d6c2
MM
7674fi
7675
40664c0c 7676 if test $ac_cv_func_remove = no; then
25e9e4f0 7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
40664c0c 7678$as_echo_n "checking for remove in -lposix... " >&6; }
9797da40 7679if ${ac_cv_lib_posix_remove+:} false; then :
abf5048b 7680 $as_echo_n "(cached) " >&6
f4077ae5 7681else
40664c0c
AJ
7682 ac_check_lib_save_LIBS=$LIBS
7683LIBS="-lposix $LIBS"
25e9e4f0 7684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f4077ae5
TC
7685/* end confdefs.h. */
7686
40664c0c
AJ
7687/* Override any GCC internal prototype to avoid an error.
7688 Use char because int might match the return type of a GCC
7689 builtin and then its argument prototype would still apply. */
7690#ifdef __cplusplus
7691extern "C"
7692#endif
7693char remove ();
f4077ae5
TC
7694int
7695main ()
7696{
40664c0c 7697return remove ();
f4077ae5
TC
7698 ;
7699 return 0;
7700}
7701_ACEOF
25e9e4f0 7702if ac_fn_c_try_link "$LINENO"; then :
40664c0c 7703 ac_cv_lib_posix_remove=yes
f4077ae5 7704else
25e9e4f0 7705 ac_cv_lib_posix_remove=no
f4077ae5 7706fi
25e9e4f0
AJ
7707rm -f core conftest.err conftest.$ac_objext \
7708 conftest$ac_exeext conftest.$ac_ext
40664c0c 7709LIBS=$ac_check_lib_save_LIBS
f4077ae5 7710fi
25e9e4f0 7711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
40664c0c 7712$as_echo "$ac_cv_lib_posix_remove" >&6; }
9797da40 7713if test "x$ac_cv_lib_posix_remove" = xyes; then :
40664c0c 7714 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
f4077ae5
TC
7715fi
7716
40664c0c 7717 fi
f4077ae5 7718
40664c0c 7719 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25e9e4f0 7720 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
9797da40 7721if test "x$ac_cv_func_shmat" = xyes; then :
fc6ffb29 7722
70adb8f5 7723fi
70adb8f5 7724
40664c0c 7725 if test $ac_cv_func_shmat = no; then
25e9e4f0 7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
40664c0c 7727$as_echo_n "checking for shmat in -lipc... " >&6; }
9797da40 7728if ${ac_cv_lib_ipc_shmat+:} false; then :
abf5048b 7729 $as_echo_n "(cached) " >&6
575d8944 7730else
40664c0c
AJ
7731 ac_check_lib_save_LIBS=$LIBS
7732LIBS="-lipc $LIBS"
25e9e4f0 7733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664c0c
AJ
7734/* end confdefs.h. */
7735
7736/* Override any GCC internal prototype to avoid an error.
7737 Use char because int might match the return type of a GCC
7738 builtin and then its argument prototype would still apply. */
7739#ifdef __cplusplus
7740extern "C"
7741#endif
7742char shmat ();
7743int
7744main ()
7745{
7746return shmat ();
7747 ;
7748 return 0;
7749}
575d8944 7750_ACEOF
25e9e4f0 7751if ac_fn_c_try_link "$LINENO"; then :
40664c0c 7752 ac_cv_lib_ipc_shmat=yes
a3097628 7753else
25e9e4f0 7754 ac_cv_lib_ipc_shmat=no
a3097628 7755fi
25e9e4f0
AJ
7756rm -f core conftest.err conftest.$ac_objext \
7757 conftest$ac_exeext conftest.$ac_ext
40664c0c
AJ
7758LIBS=$ac_check_lib_save_LIBS
7759fi
25e9e4f0 7760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
40664c0c 7761$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
9797da40 7762if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
40664c0c 7763 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
a3097628 7764fi
a3097628 7765
40664c0c
AJ
7766 fi
7767 fi
7768
7769 # Check for libraries that X11R6 Xt/Xaw programs need.
7770 ac_save_LDFLAGS=$LDFLAGS
7771 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7772 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7773 # check for ICE first), but we must link in the order -lSM -lICE or
7774 # we get undefined symbols. So assume we have SM if we have ICE.
7775 # These have to be linked with before -lX11, unlike the other
7776 # libraries we check for below, so use a different variable.
7777 # John Interrante, Karl Berry
25e9e4f0 7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
40664c0c 7779$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
9797da40 7780if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
abf5048b 7781 $as_echo_n "(cached) " >&6
a3097628 7782else
40664c0c
AJ
7783 ac_check_lib_save_LIBS=$LIBS
7784LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25e9e4f0 7785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664c0c
AJ
7786/* end confdefs.h. */
7787
7788/* Override any GCC internal prototype to avoid an error.
7789 Use char because int might match the return type of a GCC
7790 builtin and then its argument prototype would still apply. */
7791#ifdef __cplusplus
7792extern "C"
7793#endif
7794char IceConnectionNumber ();
7795int
7796main ()
7797{
7798return IceConnectionNumber ();
7799 ;
7800 return 0;
7801}
575d8944 7802_ACEOF
25e9e4f0 7803if ac_fn_c_try_link "$LINENO"; then :
40664c0c 7804 ac_cv_lib_ICE_IceConnectionNumber=yes
575d8944 7805else
25e9e4f0 7806 ac_cv_lib_ICE_IceConnectionNumber=no
575d8944 7807fi
25e9e4f0
AJ
7808rm -f core conftest.err conftest.$ac_objext \
7809 conftest$ac_exeext conftest.$ac_ext
40664c0c 7810LIBS=$ac_check_lib_save_LIBS
a3097628 7811fi
25e9e4f0 7812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
40664c0c 7813$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
9797da40 7814if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
40664c0c 7815 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
2d6d4e96 7816fi
f3719a88 7817
40664c0c 7818 LDFLAGS=$ac_save_LDFLAGS
f3719a88 7819
a3097628 7820fi
2d6d4e96 7821
2d6d4e96 7822
a3097628 7823if test "$have_x" = "yes"
2d6d4e96 7824then
fd03c506 7825 XLIB="-lX11"
a3097628
AJ
7826 ac_save_CPPFLAGS="$CPPFLAGS"
7827 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
2d6d4e96 7828
25e9e4f0 7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
abf5048b 7830$as_echo_n "checking for -lX11... " >&6; }
9797da40 7831if ${ac_cv_lib_soname_X11+:} false; then :
abf5048b 7832 $as_echo_n "(cached) " >&6
a851854a
AJ
7833else
7834 ac_check_soname_save_LIBS=$LIBS
7835LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
25e9e4f0 7836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a851854a
AJ
7837/* end confdefs.h. */
7838
7839/* Override any GCC internal prototype to avoid an error.
7840 Use char because int might match the return type of a GCC
7841 builtin and then its argument prototype would still apply. */
7842#ifdef __cplusplus
7843extern "C"
7844#endif
7845char XCreateWindow ();
7846int
7847main ()
7848{
7849return XCreateWindow ();
7850 ;
7851 return 0;
7852}
7853_ACEOF
25e9e4f0 7854if ac_fn_c_try_link "$LINENO"; then :
a851854a 7855 case "$LIBEXT" in
2b05c840 7856 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
a851854a
AJ
7857 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'` ;;
7858 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7859 esac
a851854a 7860fi
25e9e4f0
AJ
7861rm -f core conftest.err conftest.$ac_objext \
7862 conftest$ac_exeext conftest.$ac_ext
a851854a
AJ
7863 LIBS=$ac_check_soname_save_LIBS
7864fi
25e9e4f0
AJ
7865if test "x$ac_cv_lib_soname_X11" = "x"; then :
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 7867$as_echo "not found" >&6; }
a851854a
AJ
7868
7869else
25e9e4f0 7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
abf5048b 7871$as_echo "$ac_cv_lib_soname_X11" >&6; }
a851854a
AJ
7872
7873cat >>confdefs.h <<_ACEOF
7874#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7875_ACEOF
7876
7877
7878fi
25e9e4f0 7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
abf5048b 7880$as_echo_n "checking for -lXext... " >&6; }
9797da40 7881if ${ac_cv_lib_soname_Xext+:} false; then :
abf5048b 7882 $as_echo_n "(cached) " >&6
a851854a
AJ
7883else
7884 ac_check_soname_save_LIBS=$LIBS
7885LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
25e9e4f0 7886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a851854a
AJ
7887/* end confdefs.h. */
7888
7889/* Override any GCC internal prototype to avoid an error.
7890 Use char because int might match the return type of a GCC
7891 builtin and then its argument prototype would still apply. */
7892#ifdef __cplusplus
7893extern "C"
7894#endif
7895char XextCreateExtension ();
7896int
7897main ()
7898{
7899return XextCreateExtension ();
7900 ;
7901 return 0;
7902}
7903_ACEOF
25e9e4f0 7904if ac_fn_c_try_link "$LINENO"; then :
a851854a 7905 case "$LIBEXT" in
2b05c840 7906 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
a851854a
AJ
7907 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'` ;;
7908 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7909 esac
a851854a 7910fi
25e9e4f0
AJ
7911rm -f core conftest.err conftest.$ac_objext \
7912 conftest$ac_exeext conftest.$ac_ext
a851854a
AJ
7913 LIBS=$ac_check_soname_save_LIBS
7914fi
25e9e4f0
AJ
7915if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 7917$as_echo "not found" >&6; }
a851854a
AJ
7918
7919else
25e9e4f0 7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
abf5048b 7921$as_echo "$ac_cv_lib_soname_Xext" >&6; }
a851854a
AJ
7922
7923cat >>confdefs.h <<_ACEOF
7924#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
7925_ACEOF
7926
fd03c506 7927 XLIB="-lXext $XLIB"
a851854a
AJ
7928fi
7929
25e9e4f0 7930 for ac_header in X11/Xlib.h \
a3097628
AJ
7931 X11/XKBlib.h \
7932 X11/Xutil.h \
7933 X11/Xcursor/Xcursor.h \
7934 X11/extensions/shape.h \
7935 X11/extensions/XInput.h \
77e05ce4 7936 X11/extensions/XInput2.h \
a3097628 7937 X11/extensions/XShm.h \
42584658 7938 X11/extensions/Xcomposite.h \
a3097628
AJ
7939 X11/extensions/Xinerama.h \
7940 X11/extensions/Xrandr.h \
7941 X11/extensions/Xrender.h \
7b285a4e
AH
7942 X11/extensions/xf86vmode.h \
7943 X11/extensions/xf86vmproto.h
25e9e4f0
AJ
7944do :
7945 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7946ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
a3097628
AJ
7947# include <X11/Xlib.h>
7948#endif
7949#ifdef HAVE_X11_XUTIL_H
7950# include <X11/Xutil.h>
7951#endif
25e9e4f0 7952"
a53c44a6 7953if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
f3719a88 7954 cat >>confdefs.h <<_ACEOF
abf5048b 7955#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
f3719a88 7956_ACEOF
a3097628
AJ
7957
7958fi
7959
7960done
7961
7962
7963 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7964 then
25e9e4f0 7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
abf5048b 7966$as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
9797da40 7967if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
abf5048b 7968 $as_echo_n "(cached) " >&6
f3719a88
MM
7969else
7970 ac_check_lib_save_LIBS=$LIBS
fd03c506 7971LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
25e9e4f0 7972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f3719a88
MM
7973/* end confdefs.h. */
7974
fc6ffb29
AJ
7975/* Override any GCC internal prototype to avoid an error.
7976 Use char because int might match the return type of a GCC
7977 builtin and then its argument prototype would still apply. */
f3719a88
MM
7978#ifdef __cplusplus
7979extern "C"
7980#endif
a3097628 7981char XkbQueryExtension ();
f3719a88
MM
7982int
7983main ()
7984{
a3097628 7985return XkbQueryExtension ();
f3719a88
MM
7986 ;
7987 return 0;
7988}
7989_ACEOF
25e9e4f0 7990if ac_fn_c_try_link "$LINENO"; then :
a3097628 7991 ac_cv_lib_X11_XkbQueryExtension=yes
f3719a88 7992else
25e9e4f0 7993 ac_cv_lib_X11_XkbQueryExtension=no
f3719a88 7994fi
25e9e4f0
AJ
7995rm -f core conftest.err conftest.$ac_objext \
7996 conftest$ac_exeext conftest.$ac_ext
f3719a88
MM
7997LIBS=$ac_check_lib_save_LIBS
7998fi
25e9e4f0 7999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
abf5048b 8000$as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
9797da40 8001if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
f3719a88 8002
25e9e4f0 8003$as_echo "#define HAVE_XKB 1" >>confdefs.h
f3719a88 8004
19a988a2
AJ
8005fi
8006
8007 fi
8008
8009 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8010 then
25e9e4f0 8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
abf5048b 8012$as_echo_n "checking for -lXcursor... " >&6; }
9797da40 8013if ${ac_cv_lib_soname_Xcursor+:} false; then :
abf5048b 8014 $as_echo_n "(cached) " >&6
19a988a2
AJ
8015else
8016 ac_check_soname_save_LIBS=$LIBS
fd03c506 8017LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
25e9e4f0 8018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19a988a2
AJ
8019/* end confdefs.h. */
8020
8021/* Override any GCC internal prototype to avoid an error.
8022 Use char because int might match the return type of a GCC
8023 builtin and then its argument prototype would still apply. */
8024#ifdef __cplusplus
8025extern "C"
8026#endif
8027char XcursorImageLoadCursor ();
8028int
8029main ()
8030{
8031return XcursorImageLoadCursor ();
8032 ;
8033 return 0;
8034}
8035_ACEOF
25e9e4f0 8036if ac_fn_c_try_link "$LINENO"; then :
19a988a2 8037 case "$LIBEXT" in
2b05c840 8038 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
19a988a2
AJ
8039 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'` ;;
8040 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8041 esac
19a988a2 8042fi
25e9e4f0
AJ
8043rm -f core conftest.err conftest.$ac_objext \
8044 conftest$ac_exeext conftest.$ac_ext
19a988a2
AJ
8045 LIBS=$ac_check_soname_save_LIBS
8046fi
25e9e4f0
AJ
8047if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 8049$as_echo "not found" >&6; }
19a988a2
AJ
8050
8051else
25e9e4f0 8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
abf5048b 8053$as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
19a988a2
AJ
8054
8055cat >>confdefs.h <<_ACEOF
8056#define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8057_ACEOF
8058
8059
d68d4335 8060fi
d68d4335 8061 fi
25e9e4f0 8062 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
a41f0f1b 8063 case "x$with_xcursor" in
0dc503bc 8064 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
a41f0f1b 8065 xno) ;;
a53c44a6 8066 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
9797da40 8067This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
a41f0f1b
AJ
8068esac
8069fi
8070
d68d4335
AJ
8071 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8072 then
25e9e4f0 8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
abf5048b 8074$as_echo_n "checking for -lXi... " >&6; }
9797da40 8075if ${ac_cv_lib_soname_Xi+:} false; then :
abf5048b 8076 $as_echo_n "(cached) " >&6
d68d4335
AJ
8077else
8078 ac_check_soname_save_LIBS=$LIBS
fd03c506 8079LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
25e9e4f0 8080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d68d4335
AJ
8081/* end confdefs.h. */
8082
8083/* Override any GCC internal prototype to avoid an error.
8084 Use char because int might match the return type of a GCC
8085 builtin and then its argument prototype would still apply. */
8086#ifdef __cplusplus
8087extern "C"
8088#endif
8089char XOpenDevice ();
8090int
8091main ()
8092{
8093return XOpenDevice ();
8094 ;
8095 return 0;
8096}
8097_ACEOF
25e9e4f0 8098if ac_fn_c_try_link "$LINENO"; then :
d68d4335 8099 case "$LIBEXT" in
2b05c840 8100 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
d68d4335
AJ
8101 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'` ;;
8102 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8103 esac
d68d4335 8104fi
25e9e4f0
AJ
8105rm -f core conftest.err conftest.$ac_objext \
8106 conftest$ac_exeext conftest.$ac_ext
d68d4335
AJ
8107 LIBS=$ac_check_soname_save_LIBS
8108fi
25e9e4f0
AJ
8109if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 8111$as_echo "not found" >&6; }
d68d4335
AJ
8112
8113else
25e9e4f0 8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
abf5048b 8115$as_echo "$ac_cv_lib_soname_Xi" >&6; }
d68d4335
AJ
8116
8117cat >>confdefs.h <<_ACEOF
8118#define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8119_ACEOF
8120
8121
90c75bdd 8122fi
a3097628 8123 fi
25e9e4f0 8124 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
a41f0f1b 8125 case "x$with_xinput" in
0dc503bc 8126 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
a41f0f1b 8127 xno) ;;
a53c44a6 8128 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
9797da40 8129This is an error since --with-xinput was requested." "$LINENO" 5 ;;
a41f0f1b
AJ
8130esac
8131fi
8132
77e05ce4
AJ
8133 if test "x$ac_cv_lib_soname_Xi" != x
8134 then
8135 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8136 case "x$with_xinput2" in
8137 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8138 xno) ;;
8139 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
9797da40 8140This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
77e05ce4
AJ
8141esac
8142fi
8143 fi
8144
a3097628
AJ
8145 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8146 then
25e9e4f0 8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
abf5048b 8148$as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
9797da40 8149if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
abf5048b 8150 $as_echo_n "(cached) " >&6
daa2886c 8151else
73482144 8152 ac_check_lib_save_LIBS=$LIBS
fd03c506 8153LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
25e9e4f0 8154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 8155/* end confdefs.h. */
73482144 8156
fc6ffb29
AJ
8157/* Override any GCC internal prototype to avoid an error.
8158 Use char because int might match the return type of a GCC
8159 builtin and then its argument prototype would still apply. */
73482144
AJ
8160#ifdef __cplusplus
8161extern "C"
8162#endif
a3097628 8163char XShmQueryExtension ();
73482144
AJ
8164int
8165main ()
8166{
a3097628 8167return XShmQueryExtension ();
73482144
AJ
8168 ;
8169 return 0;
8170}
daa2886c 8171_ACEOF
25e9e4f0 8172if ac_fn_c_try_link "$LINENO"; then :
a3097628 8173 ac_cv_lib_Xext_XShmQueryExtension=yes
daa2886c 8174else
25e9e4f0 8175 ac_cv_lib_Xext_XShmQueryExtension=no
24110288 8176fi
25e9e4f0
AJ
8177rm -f core conftest.err conftest.$ac_objext \
8178 conftest$ac_exeext conftest.$ac_ext
73482144
AJ
8179LIBS=$ac_check_lib_save_LIBS
8180fi
25e9e4f0 8181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
abf5048b 8182$as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
9797da40 8183if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
24110288 8184
25e9e4f0 8185$as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
73482144 8186
6a530aba
LZ
8187fi
8188
a3097628 8189 fi
25e9e4f0 8190 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
a41f0f1b 8191 case "x$with_xshm" in
0dc503bc 8192 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
a41f0f1b 8193 xno) ;;
a53c44a6 8194 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
9797da40 8195This is an error since --with-xshm was requested." "$LINENO" 5 ;;
a41f0f1b 8196esac
f9dec94f
AJ
8197fi
8198
a3097628
AJ
8199 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8200 then
25e9e4f0 8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
abf5048b 8202$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9797da40 8203if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
abf5048b 8204 $as_echo_n "(cached) " >&6
6a530aba
LZ
8205else
8206 ac_check_lib_save_LIBS=$LIBS
fd03c506 8207LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
25e9e4f0 8208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6a530aba
LZ
8209/* end confdefs.h. */
8210
8211/* Override any GCC internal prototype to avoid an error.
8212 Use char because int might match the return type of a GCC
8213 builtin and then its argument prototype would still apply. */
8214#ifdef __cplusplus
8215extern "C"
8216#endif
a3097628 8217char XShapeQueryExtension ();
6a530aba
LZ
8218int
8219main ()
8220{
a3097628 8221return XShapeQueryExtension ();
6a530aba
LZ
8222 ;
8223 return 0;
8224}
8225_ACEOF
25e9e4f0 8226if ac_fn_c_try_link "$LINENO"; then :
a3097628 8227 ac_cv_lib_Xext_XShapeQueryExtension=yes
6a530aba 8228else
25e9e4f0 8229 ac_cv_lib_Xext_XShapeQueryExtension=no
6a530aba 8230fi
25e9e4f0
AJ
8231rm -f core conftest.err conftest.$ac_objext \
8232 conftest$ac_exeext conftest.$ac_ext
6a530aba
LZ
8233LIBS=$ac_check_lib_save_LIBS
8234fi
25e9e4f0 8235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
abf5048b 8236$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9797da40 8237if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
fc6ffb29 8238
25e9e4f0 8239$as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
a3097628
AJ
8240
8241fi
8242
8243 fi
25e9e4f0 8244 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
a41f0f1b 8245 case "x$with_xshape" in
0dc503bc 8246 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
a41f0f1b 8247 xno) ;;
a53c44a6 8248 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
9797da40 8249This is an error since --with-xshape was requested." "$LINENO" 5 ;;
a41f0f1b 8250esac
f9dec94f
AJ
8251fi
8252
7b285a4e 8253 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
a3097628 8254 then
25e9e4f0 8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
abf5048b 8256$as_echo_n "checking for -lXxf86vm... " >&6; }
9797da40 8257if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
abf5048b 8258 $as_echo_n "(cached) " >&6
2d6d4e96 8259else
a49beb4c 8260 ac_check_soname_save_LIBS=$LIBS
fd03c506 8261LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
25e9e4f0 8262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2d6d4e96
HL
8263/* end confdefs.h. */
8264
fc6ffb29
AJ
8265/* Override any GCC internal prototype to avoid an error.
8266 Use char because int might match the return type of a GCC
8267 builtin and then its argument prototype would still apply. */
2d6d4e96
HL
8268#ifdef __cplusplus
8269extern "C"
8270#endif
a3097628 8271char XF86VidModeQueryExtension ();
2d6d4e96
HL
8272int
8273main ()
8274{
a3097628 8275return XF86VidModeQueryExtension ();
2d6d4e96
HL
8276 ;
8277 return 0;
8278}
8279_ACEOF
25e9e4f0 8280if ac_fn_c_try_link "$LINENO"; then :
a49beb4c 8281 case "$LIBEXT" in
2b05c840 8282 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
a49beb4c
FG
8283 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'` ;;
8284 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8285 esac
2d6d4e96 8286fi
25e9e4f0
AJ
8287rm -f core conftest.err conftest.$ac_objext \
8288 conftest$ac_exeext conftest.$ac_ext
a49beb4c 8289 LIBS=$ac_check_soname_save_LIBS
2d6d4e96 8290fi
25e9e4f0
AJ
8291if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 8293$as_echo "not found" >&6; }
2d6d4e96 8294
a49beb4c 8295else
25e9e4f0 8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
abf5048b 8297$as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
a49beb4c
FG
8298
8299cat >>confdefs.h <<_ACEOF
8300#define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
2d6d4e96
HL
8301_ACEOF
8302
2d6d4e96 8303
00068989 8304fi
a3097628 8305 fi
25e9e4f0 8306 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
a49beb4c 8307 case "x$with_xxf86vm" in
0dc503bc 8308 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
a41f0f1b 8309 xno) ;;
a53c44a6 8310 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
9797da40 8311This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
a41f0f1b 8312esac
f9dec94f
AJ
8313fi
8314
a851854a 8315 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"
a3097628 8316 then
25e9e4f0 8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
abf5048b 8318$as_echo_n "checking for -lXrender... " >&6; }
9797da40 8319if ${ac_cv_lib_soname_Xrender+:} false; then :
abf5048b 8320 $as_echo_n "(cached) " >&6
629639ee
AJ
8321else
8322 ac_check_soname_save_LIBS=$LIBS
fd03c506 8323LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
25e9e4f0 8324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
00068989 8325/* end confdefs.h. */
629639ee
AJ
8326
8327/* Override any GCC internal prototype to avoid an error.
8328 Use char because int might match the return type of a GCC
8329 builtin and then its argument prototype would still apply. */
8330#ifdef __cplusplus
8331extern "C"
8332#endif
8333char XRenderQueryExtension ();
a3097628
AJ
8334int
8335main ()
8336{
629639ee 8337return XRenderQueryExtension ();
a3097628
AJ
8338 ;
8339 return 0;
8340}
00068989 8341_ACEOF
25e9e4f0 8342if ac_fn_c_try_link "$LINENO"; then :
629639ee 8343 case "$LIBEXT" in
2b05c840 8344 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
629639ee
AJ
8345 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'` ;;
8346 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8347 esac
629639ee 8348fi
25e9e4f0
AJ
8349rm -f core conftest.err conftest.$ac_objext \
8350 conftest$ac_exeext conftest.$ac_ext
629639ee
AJ
8351 LIBS=$ac_check_soname_save_LIBS
8352fi
25e9e4f0
AJ
8353if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 8355$as_echo "not found" >&6; }
629639ee
AJ
8356
8357else
25e9e4f0 8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
abf5048b 8359$as_echo "$ac_cv_lib_soname_Xrender" >&6; }
629639ee
AJ
8360
8361cat >>confdefs.h <<_ACEOF
8362#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8363_ACEOF
8364
25e9e4f0 8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
abf5048b 8366$as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
9797da40 8367if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
abf5048b 8368 $as_echo_n "(cached) " >&6
af928ecb 8369else
629639ee 8370 ac_check_lib_save_LIBS=$LIBS
fd03c506 8371LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
25e9e4f0 8372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
af928ecb 8373/* end confdefs.h. */
a3097628 8374
af928ecb
AJ
8375/* Override any GCC internal prototype to avoid an error.
8376 Use char because int might match the return type of a GCC
8377 builtin and then its argument prototype would still apply. */
8378#ifdef __cplusplus
8379extern "C"
8380#endif
629639ee 8381char XRenderSetPictureTransform ();
af928ecb
AJ
8382int
8383main ()
8384{
629639ee 8385return XRenderSetPictureTransform ();
af928ecb
AJ
8386 ;
8387 return 0;
8388}
8389_ACEOF
25e9e4f0 8390if ac_fn_c_try_link "$LINENO"; then :
629639ee 8391 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
af928ecb 8392else
25e9e4f0 8393 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
af928ecb 8394fi
25e9e4f0
AJ
8395rm -f core conftest.err conftest.$ac_objext \
8396 conftest$ac_exeext conftest.$ac_ext
629639ee 8397LIBS=$ac_check_lib_save_LIBS
af928ecb 8398fi
25e9e4f0 8399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
abf5048b 8400$as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
9797da40 8401if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
af928ecb 8402
25e9e4f0 8403$as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
a3097628 8404
af928ecb
AJ
8405fi
8406
00068989 8407fi
fc6ffb29 8408
a3097628 8409 fi
25e9e4f0 8410 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
a41f0f1b 8411 case "x$with_xrender" in
0dc503bc 8412 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
a41f0f1b 8413 xno) ;;
a53c44a6 8414 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
9797da40 8415This is an error since --with-xrender was requested." "$LINENO" 5 ;;
a41f0f1b 8416esac
f9dec94f
AJ
8417fi
8418
629639ee 8419 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
a3097628 8420 then
25e9e4f0 8421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
629639ee
AJ
8422/* end confdefs.h. */
8423#include <X11/Xlib.h>
8424#include <X11/extensions/Xrandr.h>
8425int
8426main ()
8427{
8428static typeof(XRRSetScreenConfigAndRate) * func;
8429 ;
8430 return 0;
8431}
8432_ACEOF
25e9e4f0
AJ
8433if ac_fn_c_try_compile "$LINENO"; then :
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
abf5048b 8435$as_echo_n "checking for -lXrandr... " >&6; }
9797da40 8436if ${ac_cv_lib_soname_Xrandr+:} false; then :
abf5048b 8437 $as_echo_n "(cached) " >&6
a3097628 8438else
629639ee 8439 ac_check_soname_save_LIBS=$LIBS
fd03c506 8440LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
25e9e4f0 8441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
00068989 8442/* end confdefs.h. */
a3097628
AJ
8443
8444/* Override any GCC internal prototype to avoid an error.
8445 Use char because int might match the return type of a GCC
8446 builtin and then its argument prototype would still apply. */
8447#ifdef __cplusplus
8448extern "C"
8449#endif
629639ee 8450char XRRQueryExtension ();
a3097628
AJ
8451int
8452main ()
8453{
629639ee 8454return XRRQueryExtension ();
a3097628
AJ
8455 ;
8456 return 0;
8457}
00068989 8458_ACEOF
25e9e4f0 8459if ac_fn_c_try_link "$LINENO"; then :
629639ee 8460 case "$LIBEXT" in
2b05c840 8461 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
629639ee
AJ
8462 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'` ;;
8463 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8464 esac
00068989 8465fi
25e9e4f0
AJ
8466rm -f core conftest.err conftest.$ac_objext \
8467 conftest$ac_exeext conftest.$ac_ext
629639ee 8468 LIBS=$ac_check_soname_save_LIBS
00068989 8469fi
25e9e4f0
AJ
8470if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 8472$as_echo "not found" >&6; }
00068989 8473
629639ee 8474else
25e9e4f0 8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
abf5048b 8476$as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
629639ee
AJ
8477
8478cat >>confdefs.h <<_ACEOF
8479#define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
00068989 8480_ACEOF
b18b9f37 8481
629639ee 8482
b18b9f37 8483fi
629639ee 8484fi
629639ee 8485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a3097628 8486 fi
25e9e4f0 8487 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
a41f0f1b 8488 case "x$with_xrandr" in
0dc503bc 8489 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
a41f0f1b 8490 xno) ;;
a53c44a6 8491 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
9797da40 8492This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
a41f0f1b 8493esac
f9dec94f
AJ
8494fi
8495
a3097628
AJ
8496 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8497 then
25e9e4f0 8498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
00068989 8499/* end confdefs.h. */
a3097628
AJ
8500#include <X11/Xlib.h>
8501#include <X11/extensions/Xinerama.h>
00068989
AJ
8502int
8503main ()
8504{
a3097628 8505static typeof(XineramaQueryScreens) * func;
00068989
AJ
8506 ;
8507 return 0;
8508}
8509_ACEOF
25e9e4f0
AJ
8510if ac_fn_c_try_compile "$LINENO"; then :
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
abf5048b 8512$as_echo_n "checking for -lXinerama... " >&6; }
9797da40 8513if ${ac_cv_lib_soname_Xinerama+:} false; then :
abf5048b 8514 $as_echo_n "(cached) " >&6
35d2fd7a
AJ
8515else
8516 ac_check_soname_save_LIBS=$LIBS
fd03c506 8517LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
25e9e4f0 8518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35d2fd7a 8519/* end confdefs.h. */
a3097628 8520
35d2fd7a
AJ
8521/* Override any GCC internal prototype to avoid an error.
8522 Use char because int might match the return type of a GCC
8523 builtin and then its argument prototype would still apply. */
8524#ifdef __cplusplus
8525extern "C"
8526#endif
8527char XineramaQueryScreens ();
8528int
8529main ()
8530{
8531return XineramaQueryScreens ();
8532 ;
8533 return 0;
8534}
8535_ACEOF
25e9e4f0 8536if ac_fn_c_try_link "$LINENO"; then :
35d2fd7a 8537 case "$LIBEXT" in
2b05c840 8538 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
35d2fd7a
AJ
8539 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'` ;;
8540 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8541 esac
35d2fd7a 8542fi
25e9e4f0
AJ
8543rm -f core conftest.err conftest.$ac_objext \
8544 conftest$ac_exeext conftest.$ac_ext
35d2fd7a
AJ
8545 LIBS=$ac_check_soname_save_LIBS
8546fi
25e9e4f0
AJ
8547if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 8549$as_echo "not found" >&6; }
35d2fd7a
AJ
8550
8551else
25e9e4f0 8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
abf5048b 8553$as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
35d2fd7a
AJ
8554
8555cat >>confdefs.h <<_ACEOF
8556#define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
a3097628
AJ
8557_ACEOF
8558
35d2fd7a
AJ
8559
8560fi
a3097628 8561fi
a3097628
AJ
8562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8563 fi
25e9e4f0 8564 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
a41f0f1b 8565 case "x$with_xinerama" in
0dc503bc 8566 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
a41f0f1b 8567 xno) ;;
a53c44a6 8568 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
9797da40 8569This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
a41f0f1b 8570esac
f9dec94f
AJ
8571fi
8572
42584658
CR
8573 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8574 then
25e9e4f0 8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
abf5048b 8576$as_echo_n "checking for -lXcomposite... " >&6; }
9797da40 8577if ${ac_cv_lib_soname_Xcomposite+:} false; then :
abf5048b 8578 $as_echo_n "(cached) " >&6
42584658
CR
8579else
8580 ac_check_soname_save_LIBS=$LIBS
fd03c506 8581LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
25e9e4f0 8582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42584658
CR
8583/* end confdefs.h. */
8584
8585/* Override any GCC internal prototype to avoid an error.
8586 Use char because int might match the return type of a GCC
8587 builtin and then its argument prototype would still apply. */
8588#ifdef __cplusplus
8589extern "C"
8590#endif
8591char XCompositeRedirectWindow ();
8592int
8593main ()
8594{
8595return XCompositeRedirectWindow ();
8596 ;
8597 return 0;
8598}
8599_ACEOF
25e9e4f0 8600if ac_fn_c_try_link "$LINENO"; then :
42584658 8601 case "$LIBEXT" in
2b05c840 8602 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
42584658
CR
8603 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'` ;;
8604 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8605 esac
42584658 8606fi
25e9e4f0
AJ
8607rm -f core conftest.err conftest.$ac_objext \
8608 conftest$ac_exeext conftest.$ac_ext
42584658
CR
8609 LIBS=$ac_check_soname_save_LIBS
8610fi
25e9e4f0
AJ
8611if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 8613$as_echo "not found" >&6; }
42584658
CR
8614
8615else
25e9e4f0 8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
abf5048b 8617$as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
42584658
CR
8618
8619cat >>confdefs.h <<_ACEOF
8620#define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8621_ACEOF
8622
8623
8624fi
42584658 8625 fi
25e9e4f0 8626 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
a41f0f1b 8627 case "x$with_xcomposite" in
0dc503bc 8628 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
a41f0f1b 8629 xno) ;;
a53c44a6 8630 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
9797da40 8631This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
a41f0f1b 8632esac
42584658
CR
8633fi
8634
25e9e4f0 8635 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
75e40229
KK
8636#include <X11/Xlib.h>
8637#endif
25e9e4f0 8638"
9797da40 8639if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
75e40229
KK
8640
8641cat >>confdefs.h <<_ACEOF
8642#define HAVE_XICCALLBACK_CALLBACK 1
8643_ACEOF
8644
8645
a8575a8b
AJ
8646fi
8647ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
8648#include <X11/Xlib.h>
8649#endif
8650"
9797da40 8651if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
a8575a8b
AJ
8652
8653cat >>confdefs.h <<_ACEOF
8654#define HAVE_XEVENT_XCOOKIE 1
8655_ACEOF
8656
8657
75e40229
KK
8658fi
8659
8660
a3097628 8661
a41f0f1b
AJ
8662 opengl_msg=""
8663 if test "x$with_opengl" != "xno"
a3097628 8664 then
25e9e4f0
AJ
8665 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8666do :
8667 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8668ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
a3097628 8669# include <GL/glx.h>
b18b9f37 8670#endif
25e9e4f0 8671"
a53c44a6 8672if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a3097628 8673 cat >>confdefs.h <<_ACEOF
abf5048b 8674#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
00068989
AJ
8675_ACEOF
8676
2d6d4e96
HL
8677fi
8678
a3097628 8679done
2d6d4e96 8680
a3097628
AJ
8681 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8682 then
25e9e4f0 8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
abf5048b 8684$as_echo_n "checking for up-to-date OpenGL version... " >&6; }
9797da40 8685if ${wine_cv_opengl_header_version_OK+:} false; then :
abf5048b 8686 $as_echo_n "(cached) " >&6
2d6d4e96 8687else
25e9e4f0 8688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2d6d4e96 8689/* end confdefs.h. */
a3097628 8690#include <GL/gl.h>
2d6d4e96
HL
8691int
8692main ()
8693{
a3097628 8694GLenum test = GL_UNSIGNED_SHORT_5_6_5;
2d6d4e96
HL
8695 ;
8696 return 0;
8697}
8698_ACEOF
25e9e4f0 8699if ac_fn_c_try_compile "$LINENO"; then :
a3097628 8700 wine_cv_opengl_header_version_OK="yes"
2d6d4e96 8701else
25e9e4f0 8702 wine_cv_opengl_header_version_OK="no"
2d6d4e96 8703fi
a3097628 8704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2d6d4e96 8705fi
25e9e4f0 8706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
abf5048b 8707$as_echo "$wine_cv_opengl_header_version_OK" >&6; }
2d6d4e96 8708
a3097628
AJ
8709 if test "$wine_cv_opengl_header_version_OK" = "yes"
8710 then
25e9e4f0 8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
abf5048b 8712$as_echo_n "checking for -lGL... " >&6; }
9797da40 8713if ${ac_cv_lib_soname_GL+:} false; then :
abf5048b 8714 $as_echo_n "(cached) " >&6
2d6d4e96 8715else
31353e1e 8716 ac_check_soname_save_LIBS=$LIBS
fd03c506 8717LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
25e9e4f0 8718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2d6d4e96
HL
8719/* end confdefs.h. */
8720
fc6ffb29
AJ
8721/* Override any GCC internal prototype to avoid an error.
8722 Use char because int might match the return type of a GCC
8723 builtin and then its argument prototype would still apply. */
2d6d4e96
HL
8724#ifdef __cplusplus
8725extern "C"
8726#endif
a3097628 8727char glXCreateContext ();
2d6d4e96
HL
8728int
8729main ()
8730{
a3097628 8731return glXCreateContext ();
2d6d4e96
HL
8732 ;
8733 return 0;
8734}
8735_ACEOF
25e9e4f0 8736if ac_fn_c_try_link "$LINENO"; then :
31353e1e 8737 case "$LIBEXT" in
2b05c840 8738 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
31353e1e
AJ
8739 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'` ;;
8740 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8741 esac
d701ee22 8742fi
25e9e4f0
AJ
8743rm -f core conftest.err conftest.$ac_objext \
8744 conftest$ac_exeext conftest.$ac_ext
d701ee22
FG
8745 LIBS=$ac_check_soname_save_LIBS
8746fi
25e9e4f0
AJ
8747if test "x$ac_cv_lib_soname_GL" = "x"; then :
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 8749$as_echo "not found" >&6; }
25e9e4f0 8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
abf5048b 8751$as_echo_n "checking for -lGL... " >&6; }
9797da40 8752if ${ac_cv_lib_soname_GL+:} false; then :
abf5048b 8753 $as_echo_n "(cached) " >&6
d701ee22
FG
8754else
8755 ac_check_soname_save_LIBS=$LIBS
fd03c506 8756LIBS="-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"
25e9e4f0 8757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d701ee22
FG
8758/* end confdefs.h. */
8759
8760/* Override any GCC internal prototype to avoid an error.
8761 Use char because int might match the return type of a GCC
8762 builtin and then its argument prototype would still apply. */
8763#ifdef __cplusplus
8764extern "C"
8765#endif
8766char glXCreateContext ();
8767int
8768main ()
8769{
8770return glXCreateContext ();
8771 ;
8772 return 0;
8773}
8774_ACEOF
25e9e4f0 8775if ac_fn_c_try_link "$LINENO"; then :
d701ee22 8776 case "$LIBEXT" in
2b05c840 8777 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
d701ee22
FG
8778 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'` ;;
8779 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8780 esac
2d6d4e96 8781fi
25e9e4f0
AJ
8782rm -f core conftest.err conftest.$ac_objext \
8783 conftest$ac_exeext conftest.$ac_ext
31353e1e 8784 LIBS=$ac_check_soname_save_LIBS
2d6d4e96 8785fi
25e9e4f0
AJ
8786if test "x$ac_cv_lib_soname_GL" = "x"; then :
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 8788$as_echo "not found" >&6; }
f9dec94f 8789 if test -f /usr/X11R6/lib/libGL.a
d701ee22 8790 then
a41f0f1b 8791 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
f9dec94f 8792This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
d701ee22 8793 else
a41f0f1b 8794 opengl_msg="No OpenGL library found on this system."
d701ee22
FG
8795 fi
8796else
25e9e4f0 8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
abf5048b 8798$as_echo "$ac_cv_lib_soname_GL" >&6; }
d701ee22
FG
8799
8800cat >>confdefs.h <<_ACEOF
8801#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8802_ACEOF
8803
8804 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"
d701ee22 8805
25e9e4f0 8806$as_echo "#define HAVE_OPENGL 1" >>confdefs.h
d701ee22
FG
8807
8808fi
31353e1e 8809else
25e9e4f0 8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
abf5048b 8811$as_echo "$ac_cv_lib_soname_GL" >&6; }
31353e1e
AJ
8812
8813cat >>confdefs.h <<_ACEOF
8814#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8815_ACEOF
8816
8817 OPENGL_LIBS="-lGL"
a3097628 8818
25e9e4f0 8819$as_echo "#define HAVE_OPENGL 1" >>confdefs.h
a3097628 8820
8f1d42eb 8821fi
ad798735
AJ
8822 if test "$ac_cv_header_GL_glu_h" = "yes"
8823 then
25e9e4f0 8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
abf5048b 8825$as_echo_n "checking for -lGLU... " >&6; }
9797da40 8826if ${ac_cv_lib_soname_GLU+:} false; then :
abf5048b 8827 $as_echo_n "(cached) " >&6
f5f37a85 8828else
ad798735 8829 ac_check_soname_save_LIBS=$LIBS
fd03c506 8830LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
25e9e4f0 8831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f5f37a85 8832/* end confdefs.h. */
f5f37a85
AJ
8833
8834/* Override any GCC internal prototype to avoid an error.
8835 Use char because int might match the return type of a GCC
8836 builtin and then its argument prototype would still apply. */
8837#ifdef __cplusplus
8838extern "C"
8839#endif
a3097628 8840char gluLookAt ();
f5f37a85
AJ
8841int
8842main ()
8843{
a3097628 8844return gluLookAt ();
f5f37a85
AJ
8845 ;
8846 return 0;
8847}
8848_ACEOF
25e9e4f0 8849if ac_fn_c_try_link "$LINENO"; then :
ad798735 8850 case "$LIBEXT" in
2b05c840 8851 dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
ad798735
AJ
8852 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'` ;;
8853 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8854 esac
73482144 8855fi
25e9e4f0
AJ
8856rm -f core conftest.err conftest.$ac_objext \
8857 conftest$ac_exeext conftest.$ac_ext
ad798735 8858 LIBS=$ac_check_soname_save_LIBS
73482144 8859fi
25e9e4f0
AJ
8860if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 8862$as_echo "not found" >&6; }
a3097628 8863
ad798735 8864else
25e9e4f0 8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
abf5048b 8866$as_echo "$ac_cv_lib_soname_GLU" >&6; }
ad798735
AJ
8867
8868cat >>confdefs.h <<_ACEOF
8869#define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8870_ACEOF
8871
dbb535e4 8872
ad798735 8873fi
ad798735 8874 fi
25e9e4f0 8875 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
ad798735 8876 case "x$with_glu" in
0dc503bc 8877 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
ad798735 8878 xno) ;;
a53c44a6 8879 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
9797da40 8880This is an error since --with-glu was requested." "$LINENO" 5 ;;
ad798735 8881esac
73482144 8882fi
f9dec94f 8883 else
a41f0f1b 8884 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
a3097628
AJ
8885 fi
8886 else
a41f0f1b 8887 opengl_msg="OpenGL development headers not found."
a3097628 8888 fi
8e9504da
AJ
8889 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8890 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8891 else
8892 enable_opengl32=${enable_opengl32:-no}
8893 enable_glu32=${enable_glu32:-no}
a3097628 8894 fi
25e9e4f0 8895 if test -n "$opengl_msg"; then :
a41f0f1b 8896 case "x$with_opengl" in
0dc503bc 8897 x) as_fn_append wine_warnings "|$opengl_msg
a41f0f1b
AJ
8898OpenGL and Direct3D won't be supported." ;;
8899 xno) ;;
a53c44a6 8900 *) as_fn_error $? "$opengl_msg
a41f0f1b 8901OpenGL and Direct3D won't be supported.
9797da40 8902This is an error since --with-opengl was requested." "$LINENO" 5 ;;
a41f0f1b
AJ
8903esac
8904fi
8905
40e7ef3a 8906 CPPFLAGS="$ac_save_CPPFLAGS"
a3097628
AJ
8907else
8908 XLIB=""
8909 X_CFLAGS=""
8910 X_LIBS=""
dbb535e4
AJ
8911 enable_winex11_drv=${enable_winex11_drv:-no}
8912 enable_opengl32=${enable_opengl32:-no}
8913 enable_glu32=${enable_glu32:-no}
a41f0f1b 8914fi
25e9e4f0 8915if test "x$XLIB" = "x"; then :
a41f0f1b 8916 case "x$with_x" in
a41f0f1b 8917 xno) ;;
a53c44a6 8918 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
5805d8b4
GP
8919without X support, which probably isn't what you want. You will need
8920to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9797da40 8921Use the --without-x option if you really want this." "$LINENO" 5 ;;
a41f0f1b 8922esac
40e7ef3a
MM
8923fi
8924
2eb2f71c 8925if test "$ac_cv_header_CL_cl_h" = "yes"
65c84d77
PU
8926then
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
8928$as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9797da40 8929if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
65c84d77
PU
8930 $as_echo_n "(cached) " >&6
8931else
8932 ac_check_lib_save_LIBS=$LIBS
8933LIBS="-lOpenCL $LIBS"
8934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8935/* end confdefs.h. */
8936
8937/* Override any GCC internal prototype to avoid an error.
8938 Use char because int might match the return type of a GCC
8939 builtin and then its argument prototype would still apply. */
8940#ifdef __cplusplus
8941extern "C"
8942#endif
8943char clGetPlatformInfo ();
8944int
8945main ()
8946{
8947return clGetPlatformInfo ();
8948 ;
8949 return 0;
8950}
8951_ACEOF
8952if ac_fn_c_try_link "$LINENO"; then :
8953 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
8954else
8955 ac_cv_lib_OpenCL_clGetPlatformInfo=no
8956fi
8957rm -f core conftest.err conftest.$ac_objext \
8958 conftest$ac_exeext conftest.$ac_ext
8959LIBS=$ac_check_lib_save_LIBS
8960fi
8961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
8962$as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9797da40 8963if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
65c84d77
PU
8964 LIBOPENCL="-lOpenCL"
8965
8966fi
8967
8968fi
8969if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
8970 case "x$with_opencl" in
8971 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
8972 xno) ;;
8973 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9797da40 8974This is an error since --with-opencl was requested." "$LINENO" 5 ;;
65c84d77
PU
8975esac
8976fi
8977test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
8978
a3097628
AJ
8979
8980XML2LIBS=""
8981
8982XML2INCL=""
8983
a3097628
AJ
8984XSLTINCL=""
8985
a41f0f1b 8986if test "x$with_xml" != "xno"
6b0720f5 8987then
a41f0f1b
AJ
8988 ac_save_CPPFLAGS="$CPPFLAGS"
8989 if test "$PKG_CONFIG" != "false"
8990 then
8991 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
8992 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
8993 else
8994 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
8995 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
8996 fi
8997 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
6097f2fa 8998 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
25e9e4f0 8999do :
6097f2fa
AN
9000 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9001ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9002if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a3097628 9003 cat >>confdefs.h <<_ACEOF
6097f2fa 9004#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a3097628 9005_ACEOF
6097f2fa
AN
9006
9007fi
9008
9009done
9010
9011 if test "$ac_cv_header_libxml_parser_h" = "yes" -a "$ac_cv_header_libxml_xmlsave_h" = "yes" -a "$ac_cv_header_libxml_SAX2_h" = "yes"
9012 then
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
abf5048b 9014$as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9797da40 9015if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
abf5048b 9016 $as_echo_n "(cached) " >&6
6b0720f5
SQH
9017else
9018 ac_check_lib_save_LIBS=$LIBS
a3097628 9019LIBS="-lxml2 $ac_xml_libs $LIBS"
25e9e4f0 9020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 9021/* end confdefs.h. */
6b0720f5 9022
fc6ffb29
AJ
9023/* Override any GCC internal prototype to avoid an error.
9024 Use char because int might match the return type of a GCC
9025 builtin and then its argument prototype would still apply. */
6b0720f5
SQH
9026#ifdef __cplusplus
9027extern "C"
9028#endif
a3097628 9029char xmlParseMemory ();
6b0720f5
SQH
9030int
9031main ()
9032{
a3097628 9033return xmlParseMemory ();
6b0720f5
SQH
9034 ;
9035 return 0;
9036}
9037_ACEOF
25e9e4f0 9038if ac_fn_c_try_link "$LINENO"; then :
a3097628 9039 ac_cv_lib_xml2_xmlParseMemory=yes
6b0720f5 9040else
25e9e4f0 9041 ac_cv_lib_xml2_xmlParseMemory=no
6b0720f5 9042fi
25e9e4f0
AJ
9043rm -f core conftest.err conftest.$ac_objext \
9044 conftest$ac_exeext conftest.$ac_ext
6b0720f5
SQH
9045LIBS=$ac_check_lib_save_LIBS
9046fi
25e9e4f0 9047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
abf5048b 9048$as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9797da40 9049if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
6b0720f5 9050
25e9e4f0 9051$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
6b0720f5 9052
6097f2fa
AN
9053 XML2LIBS="$ac_xml_libs"
9054 XML2INCL="$ac_xml_cflags"
6b0720f5
SQH
9055fi
9056
6097f2fa 9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
abf5048b 9058$as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9797da40 9059if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
abf5048b 9060 $as_echo_n "(cached) " >&6
4ee8290b 9061else
73482144 9062 ac_check_lib_save_LIBS=$LIBS
a3097628 9063LIBS="-lxml2 $ac_xml_libs $LIBS"
25e9e4f0 9064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2d6d4e96
HL
9065/* end confdefs.h. */
9066
fc6ffb29
AJ
9067/* Override any GCC internal prototype to avoid an error.
9068 Use char because int might match the return type of a GCC
9069 builtin and then its argument prototype would still apply. */
2d6d4e96
HL
9070#ifdef __cplusplus
9071extern "C"
9072#endif
a3097628 9073char xmlReadMemory ();
2d6d4e96
HL
9074int
9075main ()
9076{
a3097628 9077return xmlReadMemory ();
2d6d4e96
HL
9078 ;
9079 return 0;
9080}
9081_ACEOF
25e9e4f0 9082if ac_fn_c_try_link "$LINENO"; then :
a3097628 9083 ac_cv_lib_xml2_xmlReadMemory=yes
2d6d4e96 9084else
25e9e4f0 9085 ac_cv_lib_xml2_xmlReadMemory=no
2d6d4e96 9086fi
25e9e4f0
AJ
9087rm -f core conftest.err conftest.$ac_objext \
9088 conftest$ac_exeext conftest.$ac_ext
2d6d4e96
HL
9089LIBS=$ac_check_lib_save_LIBS
9090fi
25e9e4f0 9091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
abf5048b 9092$as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9797da40 9093if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
2d6d4e96 9094
25e9e4f0 9095$as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
2d6d4e96 9096
2d6d4e96
HL
9097fi
9098
6097f2fa 9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
abf5048b 9100$as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9797da40 9101if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
abf5048b 9102 $as_echo_n "(cached) " >&6
2d6d4e96
HL
9103else
9104 ac_check_lib_save_LIBS=$LIBS
a3097628 9105LIBS="-lxml2 $ac_xml_libs $LIBS"
25e9e4f0 9106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4ee8290b 9107/* end confdefs.h. */
4ee8290b 9108
fc6ffb29
AJ
9109/* Override any GCC internal prototype to avoid an error.
9110 Use char because int might match the return type of a GCC
9111 builtin and then its argument prototype would still apply. */
73482144
AJ
9112#ifdef __cplusplus
9113extern "C"
9114#endif
a3097628 9115char xmlNewDocPI ();
4ee8290b
AJ
9116int
9117main ()
9118{
a3097628 9119return xmlNewDocPI ();
4ee8290b
AJ
9120 ;
9121 return 0;
9122}
9123_ACEOF
25e9e4f0 9124if ac_fn_c_try_link "$LINENO"; then :
a3097628 9125 ac_cv_lib_xml2_xmlNewDocPI=yes
4ee8290b 9126else
25e9e4f0 9127 ac_cv_lib_xml2_xmlNewDocPI=no
4ee8290b 9128fi
25e9e4f0
AJ
9129rm -f core conftest.err conftest.$ac_objext \
9130 conftest$ac_exeext conftest.$ac_ext
73482144 9131LIBS=$ac_check_lib_save_LIBS
4ee8290b 9132fi
25e9e4f0 9133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
abf5048b 9134$as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9797da40 9135if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
a3097628 9136
25e9e4f0 9137$as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
a3097628 9138
6ee2231d
AM
9139fi
9140
6097f2fa 9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
6ee2231d 9142$as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9797da40 9143if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
6ee2231d
AM
9144 $as_echo_n "(cached) " >&6
9145else
9146 ac_check_lib_save_LIBS=$LIBS
9147LIBS="-lxml2 $ac_xml_libs $LIBS"
9148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9149/* end confdefs.h. */
9150
9151/* Override any GCC internal prototype to avoid an error.
9152 Use char because int might match the return type of a GCC
9153 builtin and then its argument prototype would still apply. */
9154#ifdef __cplusplus
9155extern "C"
9156#endif
9157char xmlSchemaSetParserStructuredErrors ();
9158int
9159main ()
9160{
9161return xmlSchemaSetParserStructuredErrors ();
9162 ;
9163 return 0;
9164}
9165_ACEOF
9166if ac_fn_c_try_link "$LINENO"; then :
9167 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9168else
9169 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9170fi
9171rm -f core conftest.err conftest.$ac_objext \
9172 conftest$ac_exeext conftest.$ac_ext
9173LIBS=$ac_check_lib_save_LIBS
9174fi
9175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9176$as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9797da40 9177if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
6ee2231d
AM
9178
9179$as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9180
be4d0e9d
AM
9181fi
9182
6097f2fa 9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
be4d0e9d 9184$as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9797da40 9185if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
be4d0e9d
AM
9186 $as_echo_n "(cached) " >&6
9187else
9188 ac_check_lib_save_LIBS=$LIBS
9189LIBS="-lxml2 $ac_xml_libs $LIBS"
9190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191/* end confdefs.h. */
9192
9193/* Override any GCC internal prototype to avoid an error.
9194 Use char because int might match the return type of a GCC
9195 builtin and then its argument prototype would still apply. */
9196#ifdef __cplusplus
9197extern "C"
9198#endif
9199char xmlSchemaSetValidStructuredErrors ();
9200int
9201main ()
9202{
9203return xmlSchemaSetValidStructuredErrors ();
9204 ;
9205 return 0;
9206}
9207_ACEOF
9208if ac_fn_c_try_link "$LINENO"; then :
9209 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9210else
9211 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9212fi
9213rm -f core conftest.err conftest.$ac_objext \
9214 conftest$ac_exeext conftest.$ac_ext
9215LIBS=$ac_check_lib_save_LIBS
9216fi
9217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9218$as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9797da40 9219if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
be4d0e9d
AM
9220
9221$as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9222
82f73c86
AM
9223fi
9224
6097f2fa 9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
82f73c86 9226$as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9797da40 9227if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
82f73c86
AM
9228 $as_echo_n "(cached) " >&6
9229else
9230 ac_check_lib_save_LIBS=$LIBS
9231LIBS="-lxml2 $ac_xml_libs $LIBS"
9232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9233/* end confdefs.h. */
9234
9235/* Override any GCC internal prototype to avoid an error.
9236 Use char because int might match the return type of a GCC
9237 builtin and then its argument prototype would still apply. */
9238#ifdef __cplusplus
9239extern "C"
9240#endif
9241char xmlFirstElementChild ();
9242int
9243main ()
9244{
9245return xmlFirstElementChild ();
9246 ;
9247 return 0;
9248}
9249_ACEOF
9250if ac_fn_c_try_link "$LINENO"; then :
9251 ac_cv_lib_xml2_xmlFirstElementChild=yes
9252else
9253 ac_cv_lib_xml2_xmlFirstElementChild=no
9254fi
9255rm -f core conftest.err conftest.$ac_objext \
9256 conftest$ac_exeext conftest.$ac_ext
9257LIBS=$ac_check_lib_save_LIBS
9258fi
9259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9260$as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9797da40 9261if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
82f73c86
AM
9262
9263$as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9264
9408b497
AM
9265fi
9266
6097f2fa 9267 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9408b497 9268"
9797da40 9269if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9408b497
AM
9270
9271$as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9272
a3097628
AJ
9273fi
9274
6097f2fa 9275 fi
a41f0f1b
AJ
9276 CPPFLAGS="$ac_save_CPPFLAGS"
9277fi
25e9e4f0 9278if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
a41f0f1b 9279 case "x$with_xml" in
6097f2fa 9280 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
a41f0f1b 9281 xno) ;;
6097f2fa 9282 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9797da40 9283This is an error since --with-xml was requested." "$LINENO" 5 ;;
a41f0f1b 9284esac
f9dec94f
AJ
9285fi
9286
a41f0f1b 9287if test "x$with_xslt" != "xno"
a3097628 9288then
a41f0f1b
AJ
9289 if test "$PKG_CONFIG" != "false"
9290 then
9291 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9292 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9293 else
9294 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9295 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9296 fi
9d7f7bfc 9297 ac_save_CPPFLAGS="$CPPFLAGS"
a41f0f1b 9298 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
25e9e4f0
AJ
9299 for ac_header in libxslt/pattern.h libxslt/transform.h
9300do :
9301 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9302ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
a3097628 9303# include <libxslt/pattern.h>
d3447022 9304#endif
25e9e4f0 9305"
a53c44a6 9306if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a3097628 9307 cat >>confdefs.h <<_ACEOF
abf5048b 9308#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a3097628 9309_ACEOF
9d7f7bfc
LZ
9310
9311fi
9312
9313done
9314
9315 CPPFLAGS="$ac_save_CPPFLAGS"
9316 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9317 then
25e9e4f0 9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
3d384f17 9319$as_echo_n "checking for -lxslt... " >&6; }
9797da40 9320if ${ac_cv_lib_soname_xslt+:} false; then :
abf5048b 9321 $as_echo_n "(cached) " >&6
b2c62c94 9322else
3d384f17 9323 ac_check_soname_save_LIBS=$LIBS
a3097628 9324LIBS="-lxslt $ac_xslt_libs $LIBS"
25e9e4f0 9325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b2c62c94 9326/* end confdefs.h. */
b2c62c94 9327
fc6ffb29
AJ
9328/* Override any GCC internal prototype to avoid an error.
9329 Use char because int might match the return type of a GCC
9330 builtin and then its argument prototype would still apply. */
b2c62c94
HL
9331#ifdef __cplusplus
9332extern "C"
b2c62c94 9333#endif
a3097628 9334char xsltCompilePattern ();
b2c62c94
HL
9335int
9336main ()
9337{
a3097628 9338return xsltCompilePattern ();
b2c62c94
HL
9339 ;
9340 return 0;
9341}
9342_ACEOF
25e9e4f0 9343if ac_fn_c_try_link "$LINENO"; then :
3d384f17 9344 case "$LIBEXT" in
2b05c840 9345 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
3d384f17
FG
9346 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'` ;;
9347 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9348 esac
b2c62c94 9349fi
25e9e4f0
AJ
9350rm -f core conftest.err conftest.$ac_objext \
9351 conftest$ac_exeext conftest.$ac_ext
3d384f17 9352 LIBS=$ac_check_soname_save_LIBS
b2c62c94 9353fi
25e9e4f0
AJ
9354if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3d384f17 9356$as_echo "not found" >&6; }
9d7f7bfc 9357
9d7f7bfc 9358else
25e9e4f0 9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
3d384f17 9360$as_echo "$ac_cv_lib_soname_xslt" >&6; }
9d7f7bfc 9361
3d384f17
FG
9362cat >>confdefs.h <<_ACEOF
9363#define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9d7f7bfc 9364_ACEOF
ea524def 9365
3d384f17 9366 XSLTINCL="$ac_xslt_cflags"
9d7f7bfc 9367fi
9d7f7bfc 9368 fi
a41f0f1b 9369fi
25e9e4f0 9370if test "x$ac_cv_lib_soname_xslt" = "x"; then :
a41f0f1b 9371 case "x$with_xslt" in
0dc503bc 9372 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
a41f0f1b 9373 xno) ;;
a53c44a6 9374 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9797da40 9375This is an error since --with-xslt was requested." "$LINENO" 5 ;;
a41f0f1b 9376esac
f9dec94f
AJ
9377fi
9378
a3097628
AJ
9379HALINCL=""
9380
295a0cdd 9381if test "x$with_hal" != "xno"
a3097628
AJ
9382then
9383 ac_save_CPPFLAGS="$CPPFLAGS"
295a0cdd
FG
9384 if test "$PKG_CONFIG" != "false"
9385 then
9386 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9387 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9388 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9389 fi
25e9e4f0
AJ
9390 for ac_header in dbus/dbus.h hal/libhal.h
9391do :
9392 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9393ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
a53c44a6 9394if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a3097628 9395 cat >>confdefs.h <<_ACEOF
abf5048b 9396#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a3097628 9397_ACEOF
d9ef88cd 9398
d9ef88cd
MM
9399fi
9400
a3097628
AJ
9401done
9402
9403 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9404 then
25e9e4f0 9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
abf5048b 9406$as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
9797da40 9407if ${ac_cv_lib_dbus_1_dbus_connection_close+:} false; then :
abf5048b 9408 $as_echo_n "(cached) " >&6
ea524def
HL
9409else
9410 ac_check_lib_save_LIBS=$LIBS
c1099bb7 9411LIBS="-ldbus-1 $ac_hal_libs $LIBS"
25e9e4f0 9412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea524def
HL
9413/* end confdefs.h. */
9414
fc6ffb29
AJ
9415/* Override any GCC internal prototype to avoid an error.
9416 Use char because int might match the return type of a GCC
9417 builtin and then its argument prototype would still apply. */
ea524def
HL
9418#ifdef __cplusplus
9419extern "C"
9420#endif
c1099bb7 9421char dbus_connection_close ();
ea524def
HL
9422int
9423main ()
9424{
c1099bb7 9425return dbus_connection_close ();
ea524def
HL
9426 ;
9427 return 0;
9428}
9429_ACEOF
25e9e4f0 9430if ac_fn_c_try_link "$LINENO"; then :
c1099bb7 9431 ac_cv_lib_dbus_1_dbus_connection_close=yes
ea524def 9432else
25e9e4f0 9433 ac_cv_lib_dbus_1_dbus_connection_close=no
ea524def 9434fi
25e9e4f0
AJ
9435rm -f core conftest.err conftest.$ac_objext \
9436 conftest$ac_exeext conftest.$ac_ext
ea524def
HL
9437LIBS=$ac_check_lib_save_LIBS
9438fi
25e9e4f0 9439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
abf5048b 9440$as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9797da40 9441if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = xyes; then :
25e9e4f0 9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
abf5048b 9443$as_echo_n "checking for -lhal... " >&6; }
9797da40 9444if ${ac_cv_lib_soname_hal+:} false; then :
abf5048b 9445 $as_echo_n "(cached) " >&6
f5818d2f 9446else
c1099bb7
AJ
9447 ac_check_soname_save_LIBS=$LIBS
9448LIBS="-lhal $ac_hal_libs $LIBS"
25e9e4f0 9449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 9450/* end confdefs.h. */
9c269172 9451
a3097628
AJ
9452/* Override any GCC internal prototype to avoid an error.
9453 Use char because int might match the return type of a GCC
9454 builtin and then its argument prototype would still apply. */
9455#ifdef __cplusplus
9456extern "C"
9457#endif
c1099bb7 9458char libhal_ctx_new ();
a3097628
AJ
9459int
9460main ()
9461{
c1099bb7 9462return libhal_ctx_new ();
a3097628
AJ
9463 ;
9464 return 0;
9465}
daa2886c 9466_ACEOF
25e9e4f0 9467if ac_fn_c_try_link "$LINENO"; then :
c1099bb7 9468 case "$LIBEXT" in
2b05c840 9469 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
c1099bb7
AJ
9470 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'` ;;
9471 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9472 esac
daa2886c 9473fi
25e9e4f0
AJ
9474rm -f core conftest.err conftest.$ac_objext \
9475 conftest$ac_exeext conftest.$ac_ext
c1099bb7 9476 LIBS=$ac_check_soname_save_LIBS
40432fef 9477fi
25e9e4f0
AJ
9478if test "x$ac_cv_lib_soname_hal" = "x"; then :
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 9480$as_echo "not found" >&6; }
a3097628 9481
c1099bb7 9482else
25e9e4f0 9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
abf5048b 9484$as_echo "$ac_cv_lib_soname_hal" >&6; }
c1099bb7
AJ
9485
9486cat >>confdefs.h <<_ACEOF
9487#define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
daa2886c 9488_ACEOF
f5818d2f 9489
c1099bb7 9490 HALINCL="$ac_hal_cflags"
a3097628 9491fi
40432fef 9492fi
daa2886c 9493
a3097628
AJ
9494 fi
9495 CPPFLAGS="$ac_save_CPPFLAGS"
9496fi
d8062736 9497if test "x$ac_cv_lib_soname_hal" = "x" -a "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
a41f0f1b 9498 case "x$with_hal" in
0dc503bc 9499 x) as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
a41f0f1b 9500 xno) ;;
a53c44a6 9501 *) as_fn_error $? "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9797da40 9502This is an error since --with-hal was requested." "$LINENO" 5 ;;
a41f0f1b 9503esac
f9dec94f
AJ
9504fi
9505
295a0cdd 9506if test "x$with_gnutls" != "xno"
874c9ef6
HV
9507then
9508 ac_save_CPPFLAGS="$CPPFLAGS"
295a0cdd
FG
9509 if test "$PKG_CONFIG" != "false"
9510 then
9511 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9512 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9513 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9514 fi
25e9e4f0 9515 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9797da40 9516if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
25e9e4f0 9517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3aae9546
FG
9518/* end confdefs.h. */
9519#include <gnutls/gnutls.h>
9520int
9521main ()
9522{
8c4a2978 9523typeof(gnutls_mac_get_key_size) *pfunc;
3aae9546
FG
9524 ;
9525 return 0;
9526}
9527_ACEOF
25e9e4f0
AJ
9528if ac_fn_c_try_compile "$LINENO"; then :
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
abf5048b 9530$as_echo_n "checking for -lgnutls... " >&6; }
9797da40 9531if ${ac_cv_lib_soname_gnutls+:} false; then :
abf5048b 9532 $as_echo_n "(cached) " >&6
874c9ef6
HV
9533else
9534 ac_check_soname_save_LIBS=$LIBS
9535LIBS="-lgnutls $ac_gnutls_libs $LIBS"
25e9e4f0 9536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
874c9ef6
HV
9537/* end confdefs.h. */
9538
9539/* Override any GCC internal prototype to avoid an error.
9540 Use char because int might match the return type of a GCC
9541 builtin and then its argument prototype would still apply. */
9542#ifdef __cplusplus
9543extern "C"
9544#endif
9545char gnutls_global_init ();
9546int
9547main ()
9548{
9549return gnutls_global_init ();
9550 ;
9551 return 0;
9552}
9553_ACEOF
25e9e4f0 9554if ac_fn_c_try_link "$LINENO"; then :
874c9ef6 9555 case "$LIBEXT" in
2b05c840 9556 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
874c9ef6
HV
9557 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'` ;;
9558 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9559 esac
874c9ef6 9560fi
25e9e4f0
AJ
9561rm -f core conftest.err conftest.$ac_objext \
9562 conftest$ac_exeext conftest.$ac_ext
874c9ef6
HV
9563 LIBS=$ac_check_soname_save_LIBS
9564fi
25e9e4f0
AJ
9565if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 9567$as_echo "not found" >&6; }
874c9ef6
HV
9568
9569else
25e9e4f0 9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
abf5048b 9571$as_echo "$ac_cv_lib_soname_gnutls" >&6; }
874c9ef6
HV
9572
9573cat >>confdefs.h <<_ACEOF
9574#define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9575_ACEOF
9576
9577 GNUTLSINCL="$ac_gnutls_cflags"
9578
9579fi
3aae9546 9580fi
3aae9546 9581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
874c9ef6
HV
9582fi
9583
9584
9585 CPPFLAGS="$ac_save_CPPFLAGS"
9586fi
25e9e4f0 9587if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
874c9ef6 9588 case "x$with_gnutls" in
0dc503bc 9589 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
874c9ef6 9590 xno) ;;
a53c44a6 9591 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9797da40 9592This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
874c9ef6
HV
9593esac
9594fi
9595
a3097628
AJ
9596CURSESLIBS=""
9597if test "$ac_cv_header_ncurses_h" = "yes"
9598then
25e9e4f0 9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
abf5048b 9600$as_echo_n "checking for -lncurses... " >&6; }
9797da40 9601if ${ac_cv_lib_soname_ncurses+:} false; then :
abf5048b 9602 $as_echo_n "(cached) " >&6
a3097628 9603else
d0783774 9604 ac_check_soname_save_LIBS=$LIBS
a3097628 9605LIBS="-lncurses $LIBS"
25e9e4f0 9606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 9607/* end confdefs.h. */
a3097628
AJ
9608
9609/* Override any GCC internal prototype to avoid an error.
9610 Use char because int might match the return type of a GCC
9611 builtin and then its argument prototype would still apply. */
9612#ifdef __cplusplus
9613extern "C"
9614#endif
9615char waddch ();
9616int
9617main ()
9618{
9619return waddch ();
9620 ;
9621 return 0;
9622}
f5818d2f 9623_ACEOF
25e9e4f0 9624if ac_fn_c_try_link "$LINENO"; then :
d0783774 9625 case "$LIBEXT" in
2b05c840 9626 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
d0783774
AJ
9627 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'` ;;
9628 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9629 esac
18d7573c 9630fi
25e9e4f0
AJ
9631rm -f core conftest.err conftest.$ac_objext \
9632 conftest$ac_exeext conftest.$ac_ext
d0783774 9633 LIBS=$ac_check_soname_save_LIBS
a3097628 9634fi
25e9e4f0
AJ
9635if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 9637$as_echo "not found" >&6; }
d0783774
AJ
9638
9639else
25e9e4f0 9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
abf5048b 9641$as_echo "$ac_cv_lib_soname_ncurses" >&6; }
d0783774
AJ
9642
9643cat >>confdefs.h <<_ACEOF
9644#define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9645_ACEOF
9646
9647 CURSESLIBS="-lncurses"
a3097628 9648fi
a3097628
AJ
9649elif test "$ac_cv_header_curses_h" = "yes"
9650then
25e9e4f0 9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
abf5048b 9652$as_echo_n "checking for -lcurses... " >&6; }
9797da40 9653if ${ac_cv_lib_soname_curses+:} false; then :
abf5048b 9654 $as_echo_n "(cached) " >&6
d8a6c278 9655else
d0783774 9656 ac_check_soname_save_LIBS=$LIBS
a3097628 9657LIBS="-lcurses $LIBS"
25e9e4f0 9658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d8a6c278 9659/* end confdefs.h. */
d8a6c278 9660
a3097628
AJ
9661/* Override any GCC internal prototype to avoid an error.
9662 Use char because int might match the return type of a GCC
9663 builtin and then its argument prototype would still apply. */
9664#ifdef __cplusplus
9665extern "C"
9666#endif
9667char waddch ();
d8a6c278
HD
9668int
9669main ()
9670{
a3097628 9671return waddch ();
d8a6c278
HD
9672 ;
9673 return 0;
9674}
9675_ACEOF
25e9e4f0 9676if ac_fn_c_try_link "$LINENO"; then :
d0783774 9677 case "$LIBEXT" in
2b05c840 9678 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
d0783774
AJ
9679 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'` ;;
9680 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9681 esac
d8a6c278 9682fi
25e9e4f0
AJ
9683rm -f core conftest.err conftest.$ac_objext \
9684 conftest$ac_exeext conftest.$ac_ext
d0783774 9685 LIBS=$ac_check_soname_save_LIBS
a3097628 9686fi
25e9e4f0
AJ
9687if test "x$ac_cv_lib_soname_curses" = "x"; then :
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 9689$as_echo "not found" >&6; }
d0783774
AJ
9690
9691else
25e9e4f0 9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
abf5048b 9693$as_echo "$ac_cv_lib_soname_curses" >&6; }
d0783774
AJ
9694
9695cat >>confdefs.h <<_ACEOF
9696#define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9697_ACEOF
9698
9699 CURSESLIBS="-lcurses"
d8a6c278 9700fi
a3097628
AJ
9701fi
9702ac_save_LIBS="$LIBS"
9703LIBS="$LIBS $CURSESLIBS"
a3097628 9704for ac_func in mousemask
25e9e4f0
AJ
9705do :
9706 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9797da40 9707if test "x$ac_cv_func_mousemask" = xyes; then :
35bca77f 9708 cat >>confdefs.h <<_ACEOF
25e9e4f0 9709#define HAVE_MOUSEMASK 1
35bca77f
HD
9710_ACEOF
9711
9712fi
9713done
9714
a3097628 9715LIBS="$ac_save_LIBS"
25e9e4f0 9716if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
a41f0f1b 9717 case "x$with_curses" in
0dc503bc 9718 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
a41f0f1b 9719 xno) ;;
a53c44a6 9720 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9797da40 9721This is an error since --with-curses was requested." "$LINENO" 5 ;;
a41f0f1b 9722esac
f9dec94f
AJ
9723fi
9724
3fe5d805
FG
9725if test "x$with_sane" != "xno"
9726then
9727 ac_save_CPPFLAGS="$CPPFLAGS"
9728 # Extract the first word of "sane-config", so it can be a program name with args.
a3097628 9729set dummy sane-config; ac_word=$2
25e9e4f0 9730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf5048b 9731$as_echo_n "checking for $ac_word... " >&6; }
9797da40 9732if ${ac_cv_prog_sane_devel+:} false; then :
abf5048b 9733 $as_echo_n "(cached) " >&6
a3097628
AJ
9734else
9735 if test -n "$sane_devel"; then
9736 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9737else
9738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9739for as_dir in $PATH
9740do
9741 IFS=$as_save_IFS
9742 test -z "$as_dir" && as_dir=.
25e9e4f0 9743 for ac_exec_ext in '' $ac_executable_extensions; do
a3097628
AJ
9744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9745 ac_cv_prog_sane_devel="sane-config"
25e9e4f0 9746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a3097628
AJ
9747 break 2
9748 fi
9749done
25e9e4f0 9750 done
a3097628 9751IFS=$as_save_IFS
9b1d3726 9752
a3097628
AJ
9753 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9754fi
9755fi
9756sane_devel=$ac_cv_prog_sane_devel
9757if test -n "$sane_devel"; then
25e9e4f0 9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
abf5048b 9759$as_echo "$sane_devel" >&6; }
a3097628 9760else
25e9e4f0 9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 9762$as_echo "no" >&6; }
563598d4
IP
9763fi
9764
00acb5f7 9765
3fe5d805
FG
9766 if test "$sane_devel" != "no"
9767 then
9768 ac_sane_incl="`$sane_devel --cflags`"
9769 ac_sane_libs="`$sane_devel --ldflags`"
9770 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9771 fi
25e9e4f0 9772 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9797da40 9773if test "x$ac_cv_header_sane_sane_h" = xyes; then :
25e9e4f0
AJ
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9775$as_echo_n "checking for -lsane... " >&6; }
9797da40 9776if ${ac_cv_lib_soname_sane+:} false; then :
abf5048b 9777 $as_echo_n "(cached) " >&6
6509fa93 9778else
25e9e4f0
AJ
9779 ac_check_soname_save_LIBS=$LIBS
9780LIBS="-lsane $ac_sane_libs $LIBS"
9781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 9782/* end confdefs.h. */
a3097628 9783
25e9e4f0
AJ
9784/* Override any GCC internal prototype to avoid an error.
9785 Use char because int might match the return type of a GCC
9786 builtin and then its argument prototype would still apply. */
9787#ifdef __cplusplus
9788extern "C"
9789#endif
9790char sane_init ();
9791int
9792main ()
9793{
9794return sane_init ();
9795 ;
9796 return 0;
9797}
a3097628 9798_ACEOF
25e9e4f0 9799if ac_fn_c_try_link "$LINENO"; then :
418e74b5 9800 case "$LIBEXT" in
2b05c840 9801 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
418e74b5
AJ
9802 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'` ;;
9803 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9804 esac
418e74b5 9805fi
25e9e4f0
AJ
9806rm -f core conftest.err conftest.$ac_objext \
9807 conftest$ac_exeext conftest.$ac_ext
418e74b5
AJ
9808 LIBS=$ac_check_soname_save_LIBS
9809fi
25e9e4f0
AJ
9810if test "x$ac_cv_lib_soname_sane" = "x"; then :
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 9812$as_echo "not found" >&6; }
6509fa93 9813
a3097628 9814else
25e9e4f0 9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
abf5048b 9816$as_echo "$ac_cv_lib_soname_sane" >&6; }
418e74b5
AJ
9817
9818cat >>confdefs.h <<_ACEOF
9819#define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9820_ACEOF
9821
9822 SANEINCL="$ac_sane_incl"
9823
9824fi
a3097628
AJ
9825fi
9826
9827
9828 CPPFLAGS="$ac_save_CPPFLAGS"
9829fi
25e9e4f0 9830if test "x$ac_cv_lib_soname_sane" = "x"; then :
a41f0f1b 9831 case "x$with_sane" in
0dc503bc 9832 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
a41f0f1b 9833 xno) ;;
a53c44a6 9834 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
9797da40 9835This is an error since --with-sane was requested." "$LINENO" 5 ;;
a41f0f1b 9836esac
f9dec94f
AJ
9837fi
9838
bf6f0750
ML
9839if test "x$with_v4l" != "xno"
9840then
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9842$as_echo_n "checking for -lv4l1... " >&6; }
9797da40 9843if ${ac_cv_lib_soname_v4l1+:} false; then :
bf6f0750
ML
9844 $as_echo_n "(cached) " >&6
9845else
9846 ac_check_soname_save_LIBS=$LIBS
9847LIBS="-lv4l1 $LIBS"
9848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9849/* end confdefs.h. */
9850
9851/* Override any GCC internal prototype to avoid an error.
9852 Use char because int might match the return type of a GCC
9853 builtin and then its argument prototype would still apply. */
9854#ifdef __cplusplus
9855extern "C"
9856#endif
9857char v4l1_open ();
9858int
9859main ()
9860{
9861return v4l1_open ();
9862 ;
9863 return 0;
9864}
9865_ACEOF
9866if ac_fn_c_try_link "$LINENO"; then :
9867 case "$LIBEXT" in
2b05c840 9868 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
bf6f0750
ML
9869 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'` ;;
9870 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9871 esac
9872fi
9873rm -f core conftest.err conftest.$ac_objext \
9874 conftest$ac_exeext conftest.$ac_ext
9875 LIBS=$ac_check_soname_save_LIBS
9876fi
9877if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9879$as_echo "not found" >&6; }
9880
9881else
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
9883$as_echo "$ac_cv_lib_soname_v4l1" >&6; }
9884
9885cat >>confdefs.h <<_ACEOF
9886#define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
9887_ACEOF
9888
9889
9890fi
9891fi
9892if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9893 case "x$with_v4l" in
0dc503bc 9894 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
bf6f0750 9895 xno) ;;
a53c44a6 9896 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
9797da40 9897This is an error since --with-v4l was requested." "$LINENO" 5 ;;
bf6f0750
ML
9898esac
9899fi
9900
3fe5d805
FG
9901if test "x$with_gphoto" != "xno"
9902then
9903 ac_save_CPPFLAGS="$CPPFLAGS"
9904 # Extract the first word of "gphoto2-config", so it can be a program name with args.
a3097628 9905set dummy gphoto2-config; ac_word=$2
25e9e4f0 9906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf5048b 9907$as_echo_n "checking for $ac_word... " >&6; }
9797da40 9908if ${ac_cv_prog_gphoto2_devel+:} false; then :
abf5048b 9909 $as_echo_n "(cached) " >&6
a3097628
AJ
9910else
9911 if test -n "$gphoto2_devel"; then
9912 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
9913else
9914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9915for as_dir in $PATH
9916do
9917 IFS=$as_save_IFS
9918 test -z "$as_dir" && as_dir=.
25e9e4f0 9919 for ac_exec_ext in '' $ac_executable_extensions; do
a3097628
AJ
9920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9921 ac_cv_prog_gphoto2_devel="gphoto2-config"
25e9e4f0 9922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a3097628
AJ
9923 break 2
9924 fi
9925done
25e9e4f0 9926 done
a3097628
AJ
9927IFS=$as_save_IFS
9928
9929 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
9930fi
9931fi
9932gphoto2_devel=$ac_cv_prog_gphoto2_devel
9933if test -n "$gphoto2_devel"; then
25e9e4f0 9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
abf5048b 9935$as_echo "$gphoto2_devel" >&6; }
a3097628 9936else
25e9e4f0 9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 9938$as_echo "no" >&6; }
a3097628
AJ
9939fi
9940
9941
3fe5d805 9942 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
a3097628 9943set dummy gphoto2-port-config; ac_word=$2
25e9e4f0 9944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf5048b 9945$as_echo_n "checking for $ac_word... " >&6; }
9797da40 9946if ${ac_cv_prog_gphoto2port_devel+:} false; then :
abf5048b 9947 $as_echo_n "(cached) " >&6
a3097628
AJ
9948else
9949 if test -n "$gphoto2port_devel"; then
9950 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
9951else
9952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9953for as_dir in $PATH
9954do
9955 IFS=$as_save_IFS
9956 test -z "$as_dir" && as_dir=.
25e9e4f0 9957 for ac_exec_ext in '' $ac_executable_extensions; do
a3097628
AJ
9958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9959 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
25e9e4f0 9960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a3097628
AJ
9961 break 2
9962 fi
9963done
25e9e4f0 9964 done
a3097628
AJ
9965IFS=$as_save_IFS
9966
9967 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
6509fa93 9968fi
a3097628
AJ
9969fi
9970gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
9971if test -n "$gphoto2port_devel"; then
25e9e4f0 9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
abf5048b 9973$as_echo "$gphoto2port_devel" >&6; }
5ee517ac 9974else
25e9e4f0 9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 9976$as_echo "no" >&6; }
5ee517ac 9977fi
fc6ffb29 9978
5ee517ac 9979
3fe5d805
FG
9980 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
9981 then
9982 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
9983 ac_gphoto2_libs=""
9984 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
9985 do
9986 case "$i" in
9987 -L/usr/lib|-L/usr/lib64) ;;
9988 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
9989 esac
9990 done
9991 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
9992 fi
4bf77d6c 9993 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
25e9e4f0 9994 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
9797da40 9995if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
25e9e4f0 9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
abf5048b 9997$as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
9797da40 9998if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
abf5048b 9999 $as_echo_n "(cached) " >&6
80e34dbb 10000else
a3097628 10001 ac_check_lib_save_LIBS=$LIBS
4bc03fe8 10002LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
25e9e4f0 10003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80e34dbb 10004/* end confdefs.h. */
80e34dbb 10005
a3097628
AJ
10006/* Override any GCC internal prototype to avoid an error.
10007 Use char because int might match the return type of a GCC
10008 builtin and then its argument prototype would still apply. */
10009#ifdef __cplusplus
10010extern "C"
10011#endif
10012char gp_camera_new ();
80e34dbb
AJ
10013int
10014main ()
10015{
a3097628 10016return gp_camera_new ();
80e34dbb
AJ
10017 ;
10018 return 0;
10019}
10020_ACEOF
25e9e4f0 10021if ac_fn_c_try_link "$LINENO"; then :
a3097628 10022 ac_cv_lib_gphoto2_gp_camera_new=yes
80e34dbb 10023else
25e9e4f0 10024 ac_cv_lib_gphoto2_gp_camera_new=no
80e34dbb 10025fi
25e9e4f0
AJ
10026rm -f core conftest.err conftest.$ac_objext \
10027 conftest$ac_exeext conftest.$ac_ext
a3097628 10028LIBS=$ac_check_lib_save_LIBS
80e34dbb 10029fi
25e9e4f0 10030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
abf5048b 10031$as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
9797da40 10032if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
80e34dbb 10033
25e9e4f0 10034$as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
80e34dbb 10035
f9dec94f
AJ
10036 GPHOTO2LIBS="$ac_gphoto2_libs"
10037
10038 GPHOTO2INCL="$ac_gphoto2_incl"
10039
a3097628
AJ
10040fi
10041
a3097628
AJ
10042fi
10043
80e34dbb 10044
a3097628 10045 CPPFLAGS="$ac_save_CPPFLAGS"
80e34dbb 10046fi
25e9e4f0 10047if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
a41f0f1b 10048 case "x$with_gphoto" in
0dc503bc 10049 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
a41f0f1b 10050 xno) ;;
a53c44a6 10051 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
9797da40 10052This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
a41f0f1b 10053esac
f9dec94f
AJ
10054fi
10055
10056
a3097628
AJ
10057if test "$ac_cv_header_resolv_h" = "yes"
10058then
4a9a3d7f 10059 ac_save_LIBS="$LIBS"
e7ec1645
TC
10060 for lib in '' -lresolv
10061 do
10062 LIBS="$lib $ac_save_LIBS"
10063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
821ab863 10064/* end confdefs.h. */
ba349210
RS
10065#ifdef HAVE_NETINET_IN_H
10066#include <netinet/in.h>
10067#endif
4a9a3d7f 10068#include <resolv.h>
821ab863
AJ
10069int
10070main ()
10071{
e7ec1645 10072res_query("foo",ns_c_in,0,0,0);
821ab863
AJ
10073 ;
10074 return 0;
10075}
10076_ACEOF
25e9e4f0 10077if ac_fn_c_try_link "$LINENO"; then :
4a9a3d7f 10078
25e9e4f0 10079$as_echo "#define HAVE_RESOLV 1" >>confdefs.h
4a9a3d7f 10080
e7ec1645
TC
10081 RESOLVLIBS="$lib"
10082
821ab863 10083fi
25e9e4f0
AJ
10084rm -f core conftest.err conftest.$ac_objext \
10085 conftest$ac_exeext conftest.$ac_ext
e7ec1645
TC
10086 if test "${RESOLVLIBS+set}" = set; then
10087 break
10088 fi
10089 done
4a9a3d7f 10090 LIBS="$ac_save_LIBS"
73482144 10091fi
2a91e3f9 10092
a3097628 10093LCMSLIBS=""
fc6ffb29 10094
a3097628 10095if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
73482144 10096then
25e9e4f0 10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
abf5048b 10098$as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
9797da40 10099if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
abf5048b 10100 $as_echo_n "(cached) " >&6
2a91e3f9 10101else
73482144 10102 ac_check_lib_save_LIBS=$LIBS
a3097628 10103LIBS="-llcms $LIBS"
25e9e4f0 10104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 10105/* end confdefs.h. */
73482144 10106
fc6ffb29
AJ
10107/* Override any GCC internal prototype to avoid an error.
10108 Use char because int might match the return type of a GCC
10109 builtin and then its argument prototype would still apply. */
73482144
AJ
10110#ifdef __cplusplus
10111extern "C"
10112#endif
a3097628 10113char cmsOpenProfileFromFile ();
73482144
AJ
10114int
10115main ()
10116{
a3097628 10117return cmsOpenProfileFromFile ();
73482144
AJ
10118 ;
10119 return 0;
10120}
2a91e3f9 10121_ACEOF
25e9e4f0 10122if ac_fn_c_try_link "$LINENO"; then :
a3097628 10123 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
2a91e3f9 10124else
25e9e4f0 10125 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
2a91e3f9 10126fi
25e9e4f0
AJ
10127rm -f core conftest.err conftest.$ac_objext \
10128 conftest$ac_exeext conftest.$ac_ext
73482144
AJ
10129LIBS=$ac_check_lib_save_LIBS
10130fi
25e9e4f0 10131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
abf5048b 10132$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
9797da40 10133if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
73482144 10134
25e9e4f0 10135$as_echo "#define HAVE_LCMS 1" >>confdefs.h
e24bcc77 10136
a3097628 10137 LCMSLIBS="-llcms"
2a91e3f9 10138fi
875927f6 10139
2a91e3f9 10140fi
25e9e4f0 10141if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
a41f0f1b 10142 case "x$with_cms" in
0dc503bc 10143 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
a41f0f1b 10144 xno) ;;
a53c44a6 10145 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
9797da40 10146This is an error since --with-cms was requested." "$LINENO" 5 ;;
a41f0f1b 10147esac
f9dec94f
AJ
10148fi
10149
3fe5d805
FG
10150if test "x$with_freetype" != "xno"
10151then
10152 for ac_prog in freetype-config freetype2-config
bcba2705
FG
10153do
10154 # Extract the first word of "$ac_prog", so it can be a program name with args.
10155set dummy $ac_prog; ac_word=$2
25e9e4f0 10156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf5048b 10157$as_echo_n "checking for $ac_word... " >&6; }
9797da40 10158if ${ac_cv_prog_ft_devel+:} false; then :
abf5048b 10159 $as_echo_n "(cached) " >&6
2a91e3f9 10160else
bcba2705
FG
10161 if test -n "$ft_devel"; then
10162 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
2a91e3f9 10163else
bcba2705
FG
10164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10165for as_dir in $PATH
10166do
10167 IFS=$as_save_IFS
10168 test -z "$as_dir" && as_dir=.
25e9e4f0 10169 for ac_exec_ext in '' $ac_executable_extensions; do
bcba2705
FG
10170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10171 ac_cv_prog_ft_devel="$ac_prog"
25e9e4f0 10172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bcba2705
FG
10173 break 2
10174 fi
10175done
25e9e4f0 10176 done
bcba2705 10177IFS=$as_save_IFS
e24bcc77 10178
2a91e3f9 10179fi
2a91e3f9 10180fi
bcba2705
FG
10181ft_devel=$ac_cv_prog_ft_devel
10182if test -n "$ft_devel"; then
25e9e4f0 10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
abf5048b 10184$as_echo "$ft_devel" >&6; }
bcba2705 10185else
25e9e4f0 10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 10187$as_echo "no" >&6; }
bcba2705
FG
10188fi
10189
10190
10191 test -n "$ft_devel" && break
10192done
3fe5d805 10193test -n "$ft_devel" || ft_devel="no"
bcba2705 10194
3fe5d805
FG
10195 if test "$ft_devel" != "no"
10196 then
10197 ac_freetype_incl=`$ft_devel --cflags`
10198 ac_freetype_libs=`$ft_devel --libs`
10199 fi
4bf77d6c 10200 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
25e9e4f0 10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
abf5048b 10202$as_echo_n "checking for -lfreetype... " >&6; }
9797da40 10203if ${ac_cv_lib_soname_freetype+:} false; then :
abf5048b 10204 $as_echo_n "(cached) " >&6
a3097628 10205else
bcba2705
FG
10206 ac_check_soname_save_LIBS=$LIBS
10207LIBS="-lfreetype $ac_freetype_libs $LIBS"
25e9e4f0 10208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
00fdd9fc 10209/* end confdefs.h. */
a3097628
AJ
10210
10211/* Override any GCC internal prototype to avoid an error.
10212 Use char because int might match the return type of a GCC
10213 builtin and then its argument prototype would still apply. */
10214#ifdef __cplusplus
10215extern "C"
73482144 10216#endif
bcba2705 10217char FT_Init_FreeType ();
73482144
AJ
10218int
10219main ()
10220{
bcba2705 10221return FT_Init_FreeType ();
73482144
AJ
10222 ;
10223 return 0;
10224}
00fdd9fc 10225_ACEOF
25e9e4f0 10226if ac_fn_c_try_link "$LINENO"; then :
bcba2705 10227 case "$LIBEXT" in
2b05c840 10228 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
bcba2705
FG
10229 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'` ;;
10230 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10231 esac
a3097628 10232fi
25e9e4f0
AJ
10233rm -f core conftest.err conftest.$ac_objext \
10234 conftest$ac_exeext conftest.$ac_ext
bcba2705 10235 LIBS=$ac_check_soname_save_LIBS
00fdd9fc 10236fi
25e9e4f0
AJ
10237if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 10239$as_echo "not found" >&6; }
bcba2705
FG
10240 ft_lib=no
10241else
25e9e4f0 10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
abf5048b 10243$as_echo "$ac_cv_lib_soname_freetype" >&6; }
fc6ffb29 10244
bcba2705
FG
10245cat >>confdefs.h <<_ACEOF
10246#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
a3097628
AJ
10247_ACEOF
10248
bcba2705 10249 ft_lib=yes
00fdd9fc 10250fi
bcba2705
FG
10251 if test "$ft_lib" = "yes"
10252 then
10253 ac_save_CPPFLAGS="$CPPFLAGS"
10254 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
25e9e4f0 10255 for ac_header in ft2build.h \
bcba2705
FG
10256 freetype/freetype.h \
10257 freetype/ftglyph.h \
10258 freetype/fttypes.h \
10259 freetype/tttables.h \
bcba2705
FG
10260 freetype/ftsnames.h \
10261 freetype/ttnameid.h \
10262 freetype/ftoutln.h \
10263 freetype/ftwinfnt.h \
10264 freetype/ftmodapi.h \
028617b9 10265 freetype/ftlcdfil.h \
bcba2705 10266 freetype/internal/sfnt.h
25e9e4f0
AJ
10267do :
10268 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10269ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
bcba2705
FG
10270 # include <ft2build.h>
10271 #endif
25e9e4f0 10272"
a53c44a6 10273if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a3097628 10274 cat >>confdefs.h <<_ACEOF
abf5048b 10275#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
73482144 10276_ACEOF
00fdd9fc 10277
00fdd9fc 10278fi
bcba2705 10279
a3097628
AJ
10280done
10281
25e9e4f0 10282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
efca0f6a 10283/* end confdefs.h. */
a3097628
AJ
10284#include <ft2build.h>
10285 #include <freetype/fttrigon.h>
efca0f6a 10286_ACEOF
25e9e4f0 10287if ac_fn_c_try_cpp "$LINENO"; then :
a3097628 10288
25e9e4f0 10289$as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
a3097628
AJ
10290
10291 wine_cv_fttrigon=yes
efca0f6a 10292else
a3097628 10293 wine_cv_fttrigon=no
182d150a 10294fi
a53c44a6 10295rm -f conftest.err conftest.i conftest.$ac_ext
25e9e4f0
AJ
10296 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10297"
9797da40 10298if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
a3097628
AJ
10299
10300cat >>confdefs.h <<_ACEOF
10301#define HAVE_FT_TRUETYPEENGINETYPE 1
10302_ACEOF
10303
10304
182d150a 10305fi
f8cb48b5 10306
a3097628 10307 ac_save_CFLAGS="$CFLAGS"
24a55f38 10308 CFLAGS="$CFLAGS $ac_freetype_libs"
25e9e4f0
AJ
10309 for ac_func in FT_Load_Sfnt_Table
10310do :
10311 ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
9797da40 10312if test "x$ac_cv_func_FT_Load_Sfnt_Table" = xyes; then :
a3097628 10313 cat >>confdefs.h <<_ACEOF
25e9e4f0 10314#define HAVE_FT_LOAD_SFNT_TABLE 1
a3097628
AJ
10315_ACEOF
10316
182d150a 10317fi
a3097628 10318done
182d150a 10319
a3097628
AJ
10320 CFLAGS="$ac_save_CFLAGS"
10321 CPPFLAGS="$ac_save_CPPFLAGS"
10322 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10323 then
d75cc5aa 10324
25e9e4f0 10325$as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
a3097628 10326
24a55f38
AJ
10327 FREETYPELIBS="$ac_freetype_libs"
10328
10329 FREETYPEINCL="$ac_freetype_incl"
10330
a3097628
AJ
10331 fi
10332 fi
10333fi
25e9e4f0 10334if test "x$FREETYPELIBS" = "x"; then :
a20c0e12
AJ
10335 case "x$with_freetype" in
10336 xno) ;;
a53c44a6 10337 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
9797da40 10338Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
a20c0e12 10339esac
a3097628 10340fi
6de0af1e 10341test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
a20c0e12 10342
25e9e4f0 10343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
abf5048b 10344$as_echo_n "checking for parport header/ppdev.h... " >&6; }
9797da40 10345if ${ac_cv_c_ppdev+:} false; then :
abf5048b 10346 $as_echo_n "(cached) " >&6
c509bc4d 10347else
25e9e4f0 10348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c509bc4d 10349/* end confdefs.h. */
dd33ee99
YD
10350#ifdef HAVE_SYS_IOCTL_H
10351# include <sys/ioctl.h>
10352#endif
a3097628 10353#include <linux/ppdev.h>
c509bc4d
MM
10354int
10355main ()
10356{
a3097628 10357ioctl (1,PPCLAIM,0)
c509bc4d
MM
10358 ;
10359 return 0;
10360}
10361_ACEOF
25e9e4f0 10362if ac_fn_c_try_compile "$LINENO"; then :
a3097628 10363 ac_cv_c_ppdev="yes"
c509bc4d 10364else
25e9e4f0 10365 ac_cv_c_ppdev="no"
c509bc4d 10366fi
0ebeb530 10367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c509bc4d 10368fi
25e9e4f0 10369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
abf5048b 10370$as_echo "$ac_cv_c_ppdev" >&6; }
a3097628
AJ
10371if test "$ac_cv_c_ppdev" = "yes"
10372then
b7443722 10373
25e9e4f0 10374$as_echo "#define HAVE_PPDEV 1" >>confdefs.h
b7443722 10375
a3097628
AJ
10376fi
10377
a3097628
AJ
10378ac_wine_check_funcs_save_LIBS="$LIBS"
10379LIBS="$LIBS $LIBPTHREAD"
a3097628
AJ
10380for ac_func in \
10381 pthread_attr_get_np \
10382 pthread_getattr_np \
10383 pthread_get_stackaddr_np \
10384 pthread_get_stacksize_np
25e9e4f0
AJ
10385do :
10386 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10387ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
a53c44a6 10388if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a3097628 10389 cat >>confdefs.h <<_ACEOF
abf5048b 10390#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
a3097628
AJ
10391_ACEOF
10392
73482144 10393fi
a3097628 10394done
8cc3a5e4 10395
a3097628 10396LIBS="$ac_wine_check_funcs_save_LIBS"
fc6ffb29 10397
11ca05f6
JC
10398if test "$ac_cv_header_zlib_h" = "yes"
10399then
25e9e4f0 10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
11ca05f6 10401$as_echo_n "checking for inflate in -lz... " >&6; }
9797da40 10402if ${ac_cv_lib_z_inflate+:} false; then :
11ca05f6
JC
10403 $as_echo_n "(cached) " >&6
10404else
10405 ac_check_lib_save_LIBS=$LIBS
10406LIBS="-lz $LIBS"
25e9e4f0 10407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11ca05f6
JC
10408/* end confdefs.h. */
10409
10410/* Override any GCC internal prototype to avoid an error.
10411 Use char because int might match the return type of a GCC
10412 builtin and then its argument prototype would still apply. */
10413#ifdef __cplusplus
10414extern "C"
10415#endif
10416char inflate ();
10417int
10418main ()
10419{
10420return inflate ();
10421 ;
10422 return 0;
10423}
10424_ACEOF
25e9e4f0 10425if ac_fn_c_try_link "$LINENO"; then :
11ca05f6
JC
10426 ac_cv_lib_z_inflate=yes
10427else
25e9e4f0 10428 ac_cv_lib_z_inflate=no
11ca05f6 10429fi
25e9e4f0
AJ
10430rm -f core conftest.err conftest.$ac_objext \
10431 conftest$ac_exeext conftest.$ac_ext
11ca05f6
JC
10432LIBS=$ac_check_lib_save_LIBS
10433fi
25e9e4f0 10434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
11ca05f6 10435$as_echo "$ac_cv_lib_z_inflate" >&6; }
9797da40 10436if test "x$ac_cv_lib_z_inflate" = xyes; then :
11ca05f6 10437
25e9e4f0 10438$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
11ca05f6
JC
10439
10440 ZLIB="-lz"
10441
10442fi
10443
ba6a41a4
AJ
10444fi
10445if test "x$ZLIB" = "x"; then :
10446 case "x$with_zlib" in
10447 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10448 xno) ;;
10449 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
9797da40 10450This is an error since --with-zlib was requested." "$LINENO" 5 ;;
ba6a41a4 10451esac
11ca05f6
JC
10452fi
10453
0e79c5c1
AJ
10454if test "x$enable_tools" != xno
10455then
10456 if test "$ac_cv_header_gettext_po_h" = "yes"
10457 then
88155ca8
AJ
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10459$as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
9797da40 10460if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
0e79c5c1
AJ
10461 $as_echo_n "(cached) " >&6
10462else
10463 ac_check_lib_save_LIBS=$LIBS
10464LIBS="-lgettextpo $LIBS"
10465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10466/* end confdefs.h. */
10467
10468/* Override any GCC internal prototype to avoid an error.
10469 Use char because int might match the return type of a GCC
10470 builtin and then its argument prototype would still apply. */
10471#ifdef __cplusplus
10472extern "C"
10473#endif
88155ca8 10474char po_message_msgctxt ();
0e79c5c1
AJ
10475int
10476main ()
10477{
88155ca8 10478return po_message_msgctxt ();
0e79c5c1
AJ
10479 ;
10480 return 0;
10481}
10482_ACEOF
10483if ac_fn_c_try_link "$LINENO"; then :
88155ca8 10484 ac_cv_lib_gettextpo_po_message_msgctxt=yes
0e79c5c1 10485else
88155ca8 10486 ac_cv_lib_gettextpo_po_message_msgctxt=no
0e79c5c1
AJ
10487fi
10488rm -f core conftest.err conftest.$ac_objext \
10489 conftest$ac_exeext conftest.$ac_ext
10490LIBS=$ac_check_lib_save_LIBS
10491fi
88155ca8
AJ
10492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10493$as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
9797da40 10494if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
0e79c5c1
AJ
10495
10496$as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10497
10498 LIBGETTEXTPO="-lgettextpo"
10499
10500fi
10501
10502 fi
10503 if test "x$LIBGETTEXTPO" = "x"; then :
10504 case "x$with_gettextpo" in
88155ca8 10505 x) as_fn_append wine_warnings "|GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported." ;;
0e79c5c1 10506 xno) ;;
88155ca8 10507 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported.
9797da40 10508This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
0e79c5c1
AJ
10509esac
10510fi
10511fi
10512
2914d655
AS
10513if test "x$with_gstreamer" != "xno"
10514then
10515 ac_save_CPPFLAGS="$CPPFLAGS"
10516 if test "$PKG_CONFIG" != "false"; then
10517 ac_gst_incl=""
10518 for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10519 do
10520 case "$i" in
10521 -I*) ac_gst_incl="$ac_gst_incl $i";;
10522 esac
10523 done
10524 ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10525 CPPFLAGS="$CPPFLAGS $ac_gst_incl"
de417974 10526 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
9797da40 10527if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
de417974 10528 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
9797da40 10529if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
b113af1b
OV
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
10531$as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
10532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10533/* end confdefs.h. */
10534#include <gst/app/gstappsink.h>
10535int
10536main ()
10537{
10538int a[sizeof(gint64) > 4 ? 1 : -1]
10539 ;
10540 return 0;
10541}
10542_ACEOF
10543if ac_fn_c_try_compile "$LINENO"; then :
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10545$as_echo "yes" >&6; }
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
de417974 10547$as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
9797da40 10548if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
de417974
AN
10549 $as_echo_n "(cached) " >&6
10550else
10551 ac_check_lib_save_LIBS=$LIBS
10552LIBS="-lgstreamer-0.10 $LIBS"
10553cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10554/* end confdefs.h. */
10555
10556/* Override any GCC internal prototype to avoid an error.
10557 Use char because int might match the return type of a GCC
10558 builtin and then its argument prototype would still apply. */
10559#ifdef __cplusplus
10560extern "C"
10561#endif
10562char gst_pad_get_caps_reffed ();
10563int
10564main ()
10565{
10566return gst_pad_get_caps_reffed ();
10567 ;
10568 return 0;
10569}
10570_ACEOF
10571if ac_fn_c_try_link "$LINENO"; then :
10572 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10573else
10574 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10575fi
10576rm -f core conftest.err conftest.$ac_objext \
10577 conftest$ac_exeext conftest.$ac_ext
10578LIBS=$ac_check_lib_save_LIBS
10579fi
10580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10581$as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
9797da40 10582if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
2914d655
AS
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10584$as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
9797da40 10585if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
2914d655
AS
10586 $as_echo_n "(cached) " >&6
10587else
10588 ac_check_lib_save_LIBS=$LIBS
10589LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10591/* end confdefs.h. */
10592
10593/* Override any GCC internal prototype to avoid an error.
10594 Use char because int might match the return type of a GCC
10595 builtin and then its argument prototype would still apply. */
10596#ifdef __cplusplus
10597extern "C"
10598#endif
10599char gst_app_buffer_new ();
10600int
10601main ()
10602{
10603return gst_app_buffer_new ();
10604 ;
10605 return 0;
10606}
10607_ACEOF
10608if ac_fn_c_try_link "$LINENO"; then :
10609 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10610else
10611 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10612fi
10613rm -f core conftest.err conftest.$ac_objext \
10614 conftest$ac_exeext conftest.$ac_ext
10615LIBS=$ac_check_lib_save_LIBS
10616fi
10617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10618$as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
9797da40 10619if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
2914d655
AS
10620 GSTREAMER_LIBS="$ac_gst_libs"
10621
b113af1b 10622 GSTREAMER_INCL="$ac_gst_incl"
de417974
AN
10623
10624fi
2914d655
AS
10625
10626fi
10627
b113af1b
OV
10628else
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10630$as_echo "no" >&6; }
10631fi
10632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
de417974
AN
10633fi
10634
10635
2914d655
AS
10636fi
10637
10638
10639 fi
10640 CPPFLAGS="$ac_save_CPPFLAGS"
10641fi
fa3ddd83 10642if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
2914d655 10643 case "x$with_gstreamer" in
654bb4a2 10644 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
2914d655 10645 xno) ;;
654bb4a2 10646 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
9797da40 10647This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
2914d655
AS
10648esac
10649fi
10650test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10651
a3097628
AJ
10652ALSALIBS=""
10653
10654if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10655then
aeb78cba
AE
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10657$as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
9797da40 10658if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
abf5048b 10659 $as_echo_n "(cached) " >&6
2ffc7e2c 10660else
a3097628
AJ
10661 ac_check_lib_save_LIBS=$LIBS
10662LIBS="-lasound $LIBS"
25e9e4f0 10663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a3097628 10664/* end confdefs.h. */
2ffc7e2c 10665
a3097628
AJ
10666/* Override any GCC internal prototype to avoid an error.
10667 Use char because int might match the return type of a GCC
10668 builtin and then its argument prototype would still apply. */
10669#ifdef __cplusplus
10670extern "C"
10671#endif
aeb78cba 10672char snd_pcm_hw_params_get_access_mask ();
a3097628
AJ
10673int
10674main ()
10675{
aeb78cba 10676return snd_pcm_hw_params_get_access_mask ();
a3097628
AJ
10677 ;
10678 return 0;
10679}
10680_ACEOF
25e9e4f0 10681if ac_fn_c_try_link "$LINENO"; then :
aeb78cba 10682 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
2ffc7e2c 10683else
aeb78cba 10684 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
2ffc7e2c 10685fi
25e9e4f0
AJ
10686rm -f core conftest.err conftest.$ac_objext \
10687 conftest$ac_exeext conftest.$ac_ext
a3097628
AJ
10688LIBS=$ac_check_lib_save_LIBS
10689fi
aeb78cba
AE
10690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
10691$as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
9797da40 10692if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
25e9e4f0 10693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a3097628
AJ
10694/* end confdefs.h. */
10695#ifdef HAVE_ALSA_ASOUNDLIB_H
10696#include <alsa/asoundlib.h>
10697#elif defined(HAVE_SYS_ASOUNDLIB_H)
10698#include <sys/asoundlib.h>
10699#endif
10700int
10701main ()
10702{
8521ebe7 10703snd_pcm_hw_params_get_access_mask(NULL, NULL)
a3097628
AJ
10704 ;
10705 return 0;
10706}
10707_ACEOF
25e9e4f0 10708if ac_fn_c_try_compile "$LINENO"; then :
255cc210 10709 ALSALIBS="-lasound"
a3097628 10710fi
a3097628
AJ
10711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10712fi
4e686043 10713
a3097628
AJ
10714fi
10715
f60a0f5e 10716if test "x$with_oss" != xno
be332326 10717then
f60a0f5e
AJ
10718 ac_save_CPPFLAGS="$CPPFLAGS"
10719 if test -f /etc/oss.conf
10720 then
10721 . /etc/oss.conf
10722 fi
10723 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
10724 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
10725 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10726if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
10727 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
be332326 10728"
f60a0f5e 10729if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
be332326
AE
10730
10731cat >>confdefs.h <<_ACEOF
f60a0f5e 10732#define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
be332326
AE
10733_ACEOF
10734
f60a0f5e 10735OSS4INCL="$ac_oss_incl"
be332326
AE
10736
10737fi
10738
f60a0f5e
AJ
10739fi
10740
10741
10742 CPPFLAGS="$ac_save_CPPFLAGS"
10743 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
be332326
AE
10744 then
10745 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
10746 fi
10747fi
10748
a3097628
AJ
10749
10750if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10751then
25e9e4f0 10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
abf5048b 10753$as_echo_n "checking for -lcapi20... " >&6; }
9797da40 10754if ${ac_cv_lib_soname_capi20+:} false; then :
abf5048b 10755 $as_echo_n "(cached) " >&6
93a5b868 10756else
3336e9bf 10757 ac_check_soname_save_LIBS=$LIBS
a3097628 10758LIBS="-lcapi20 $LIBS"
25e9e4f0 10759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 10760/* end confdefs.h. */
fa3a5360 10761
a3097628
AJ
10762/* Override any GCC internal prototype to avoid an error.
10763 Use char because int might match the return type of a GCC
10764 builtin and then its argument prototype would still apply. */
10765#ifdef __cplusplus
10766extern "C"
10767#endif
10768char capi20_register ();
e24bcc77
AJ
10769int
10770main ()
10771{
a3097628 10772return capi20_register ();
f5818d2f
AJ
10773 ;
10774 return 0;
10775}
10776_ACEOF
25e9e4f0 10777if ac_fn_c_try_link "$LINENO"; then :
3336e9bf 10778 case "$LIBEXT" in
2b05c840 10779 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
3336e9bf
AJ
10780 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'` ;;
10781 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10782 esac
93a5b868 10783fi
25e9e4f0
AJ
10784rm -f core conftest.err conftest.$ac_objext \
10785 conftest$ac_exeext conftest.$ac_ext
3336e9bf 10786 LIBS=$ac_check_soname_save_LIBS
93a5b868 10787fi
25e9e4f0
AJ
10788if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 10790$as_echo "not found" >&6; }
a3097628 10791
3336e9bf 10792else
25e9e4f0 10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
abf5048b 10794$as_echo "$ac_cv_lib_soname_capi20" >&6; }
3336e9bf
AJ
10795
10796cat >>confdefs.h <<_ACEOF
10797#define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
a3097628
AJ
10798_ACEOF
10799
3336e9bf 10800
702d3556 10801fi
702d3556 10802fi
25e9e4f0 10803if test "x$ac_cv_lib_soname_capi20" = "x"; then :
a41f0f1b 10804 case "x$with_capi" in
0dc503bc 10805 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
a41f0f1b 10806 xno) ;;
a53c44a6 10807 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
9797da40 10808This is an error since --with-capi was requested." "$LINENO" 5 ;;
a41f0f1b 10809esac
f9dec94f
AJ
10810fi
10811
289ea338
FG
10812CUPSINCL=""
10813
10814if test "x$with_cups" != "xno"
702d3556 10815then
289ea338
FG
10816 ac_save_CPPFLAGS="$CPPFLAGS"
10817 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
a991a568 10818 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
289ea338 10819 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
25e9e4f0
AJ
10820 for ac_header in cups/cups.h
10821do :
10822 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
9797da40 10823if test "x$ac_cv_header_cups_cups_h" = xyes; then :
289ea338 10824 cat >>confdefs.h <<_ACEOF
25e9e4f0 10825#define HAVE_CUPS_CUPS_H 1
289ea338 10826_ACEOF
25e9e4f0 10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
abf5048b 10828$as_echo_n "checking for -lcups... " >&6; }
9797da40 10829if ${ac_cv_lib_soname_cups+:} false; then :
abf5048b 10830 $as_echo_n "(cached) " >&6
702d3556
AJ
10831else
10832 ac_check_soname_save_LIBS=$LIBS
289ea338 10833LIBS="-lcups $ac_cups_libs $LIBS"
25e9e4f0 10834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
702d3556
AJ
10835/* end confdefs.h. */
10836
10837/* Override any GCC internal prototype to avoid an error.
10838 Use char because int might match the return type of a GCC
10839 builtin and then its argument prototype would still apply. */
10840#ifdef __cplusplus
10841extern "C"
10842#endif
10843char cupsGetDefault ();
10844int
10845main ()
10846{
10847return cupsGetDefault ();
10848 ;
10849 return 0;
10850}
10851_ACEOF
25e9e4f0 10852if ac_fn_c_try_link "$LINENO"; then :
702d3556 10853 case "$LIBEXT" in
2b05c840 10854 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
702d3556
AJ
10855 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'` ;;
10856 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10857 esac
702d3556 10858fi
25e9e4f0
AJ
10859rm -f core conftest.err conftest.$ac_objext \
10860 conftest$ac_exeext conftest.$ac_ext
702d3556
AJ
10861 LIBS=$ac_check_soname_save_LIBS
10862fi
25e9e4f0
AJ
10863if test "x$ac_cv_lib_soname_cups" = "x"; then :
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 10865$as_echo "not found" >&6; }
702d3556
AJ
10866
10867else
25e9e4f0 10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
abf5048b 10869$as_echo "$ac_cv_lib_soname_cups" >&6; }
702d3556
AJ
10870
10871cat >>confdefs.h <<_ACEOF
10872#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10873_ACEOF
10874
289ea338
FG
10875 CUPSINCL="$ac_cups_cflags"
10876fi
34200c35
AJ
10877fi
10878
289ea338
FG
10879done
10880
10881 CPPFLAGS="$ac_save_CPPFLAGS"
34200c35 10882fi
25e9e4f0 10883if test "x$ac_cv_lib_soname_cups" = "x"; then :
a41f0f1b 10884 case "x$with_cups" in
0dc503bc 10885 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
a41f0f1b 10886 xno) ;;
a53c44a6 10887 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
9797da40 10888This is an error since --with-cups was requested." "$LINENO" 5 ;;
a41f0f1b 10889esac
f9dec94f
AJ
10890fi
10891
ccd5f284
AJ
10892if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10893then
25e9e4f0 10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
abf5048b 10895$as_echo_n "checking for -lfontconfig... " >&6; }
9797da40 10896if ${ac_cv_lib_soname_fontconfig+:} false; then :
abf5048b 10897 $as_echo_n "(cached) " >&6
ccd5f284
AJ
10898else
10899 ac_check_soname_save_LIBS=$LIBS
10900LIBS="-lfontconfig $LIBS"
25e9e4f0 10901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ccd5f284
AJ
10902/* 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 FcInit ();
10911int
10912main ()
10913{
10914return FcInit ();
10915 ;
10916 return 0;
10917}
10918_ACEOF
25e9e4f0 10919if ac_fn_c_try_link "$LINENO"; then :
ccd5f284 10920 case "$LIBEXT" in
2b05c840 10921 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
ccd5f284
AJ
10922 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'` ;;
10923 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10924 esac
ccd5f284 10925fi
25e9e4f0
AJ
10926rm -f core conftest.err conftest.$ac_objext \
10927 conftest$ac_exeext conftest.$ac_ext
ccd5f284
AJ
10928 LIBS=$ac_check_soname_save_LIBS
10929fi
25e9e4f0
AJ
10930if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 10932$as_echo "not found" >&6; }
ccd5f284
AJ
10933
10934else
25e9e4f0 10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
abf5048b 10936$as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
ccd5f284
AJ
10937
10938cat >>confdefs.h <<_ACEOF
10939#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10940_ACEOF
10941
10942
f91909b3 10943fi
a41f0f1b 10944elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
5c076730
AJ
10945then
10946 ac_save_CPPFLAGS="$CPPFLAGS"
10947 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10948 $as_unset ac_cv_header_fontconfig_fontconfig_h
25e9e4f0
AJ
10949 for ac_header in fontconfig/fontconfig.h
10950do :
10951 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
9797da40 10952if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
5c076730 10953 cat >>confdefs.h <<_ACEOF
25e9e4f0 10954#define HAVE_FONTCONFIG_FONTCONFIG_H 1
5c076730
AJ
10955_ACEOF
10956
10957fi
10958
10959done
10960
10961 CPPFLAGS="$ac_save_CPPFLAGS"
10962 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10963 then
10964 FONTCONFIGINCL="$X_CFLAGS"
10965
25e9e4f0 10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
abf5048b 10967$as_echo_n "checking for -lfontconfig... " >&6; }
9797da40 10968if ${ac_cv_lib_soname_fontconfig+:} false; then :
abf5048b 10969 $as_echo_n "(cached) " >&6
5c076730
AJ
10970else
10971 ac_check_soname_save_LIBS=$LIBS
10972LIBS="-lfontconfig $X_LIBS $LIBS"
25e9e4f0 10973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c076730
AJ
10974/* end confdefs.h. */
10975
10976/* Override any GCC internal prototype to avoid an error.
10977 Use char because int might match the return type of a GCC
10978 builtin and then its argument prototype would still apply. */
10979#ifdef __cplusplus
10980extern "C"
10981#endif
10982char FcInit ();
10983int
10984main ()
10985{
10986return FcInit ();
10987 ;
10988 return 0;
10989}
10990_ACEOF
25e9e4f0 10991if ac_fn_c_try_link "$LINENO"; then :
5c076730 10992 case "$LIBEXT" in
2b05c840 10993 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
5c076730
AJ
10994 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'` ;;
10995 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10996 esac
5c076730 10997fi
25e9e4f0
AJ
10998rm -f core conftest.err conftest.$ac_objext \
10999 conftest$ac_exeext conftest.$ac_ext
5c076730
AJ
11000 LIBS=$ac_check_soname_save_LIBS
11001fi
25e9e4f0
AJ
11002if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 11004$as_echo "not found" >&6; }
5c076730
AJ
11005
11006else
25e9e4f0 11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
abf5048b 11008$as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
5c076730
AJ
11009
11010cat >>confdefs.h <<_ACEOF
11011#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11012_ACEOF
11013
11014
11015fi
5c076730 11016 fi
f91909b3 11017fi
25e9e4f0 11018if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
a41f0f1b 11019 case "x$with_fontconfig" in
0dc503bc 11020 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
a41f0f1b 11021 xno) ;;
a53c44a6 11022 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
9797da40 11023This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
a41f0f1b 11024esac
7f674966
AJ
11025fi
11026
f91909b3
AJ
11027if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11028then
25e9e4f0 11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
abf5048b 11030$as_echo_n "checking for -lssl... " >&6; }
9797da40 11031if ${ac_cv_lib_soname_ssl+:} false; then :
abf5048b 11032 $as_echo_n "(cached) " >&6
f91909b3
AJ
11033else
11034 ac_check_soname_save_LIBS=$LIBS
11035LIBS="-lssl $LIBS"
25e9e4f0 11036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f91909b3
AJ
11037/* end confdefs.h. */
11038
11039/* Override any GCC internal prototype to avoid an error.
11040 Use char because int might match the return type of a GCC
11041 builtin and then its argument prototype would still apply. */
11042#ifdef __cplusplus
11043extern "C"
11044#endif
11045char SSL_library_init ();
11046int
11047main ()
11048{
11049return SSL_library_init ();
11050 ;
11051 return 0;
11052}
11053_ACEOF
25e9e4f0 11054if ac_fn_c_try_link "$LINENO"; then :
f91909b3 11055 case "$LIBEXT" in
2b05c840 11056 dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
f91909b3
AJ
11057 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'` ;;
11058 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11059 esac
f91909b3 11060fi
25e9e4f0
AJ
11061rm -f core conftest.err conftest.$ac_objext \
11062 conftest$ac_exeext conftest.$ac_ext
f91909b3
AJ
11063 LIBS=$ac_check_soname_save_LIBS
11064fi
25e9e4f0
AJ
11065if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 11067$as_echo "not found" >&6; }
f91909b3
AJ
11068
11069else
25e9e4f0 11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
abf5048b 11071$as_echo "$ac_cv_lib_soname_ssl" >&6; }
f91909b3
AJ
11072
11073cat >>confdefs.h <<_ACEOF
11074#define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11075_ACEOF
11076
11077
11078fi
25e9e4f0 11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
abf5048b 11080$as_echo_n "checking for -lcrypto... " >&6; }
9797da40 11081if ${ac_cv_lib_soname_crypto+:} false; then :
abf5048b 11082 $as_echo_n "(cached) " >&6
f91909b3
AJ
11083else
11084 ac_check_soname_save_LIBS=$LIBS
11085LIBS="-lcrypto $LIBS"
25e9e4f0 11086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f91909b3
AJ
11087/* end confdefs.h. */
11088
11089/* Override any GCC internal prototype to avoid an error.
11090 Use char because int might match the return type of a GCC
11091 builtin and then its argument prototype would still apply. */
11092#ifdef __cplusplus
11093extern "C"
11094#endif
11095char BIO_new_socket ();
11096int
11097main ()
11098{
11099return BIO_new_socket ();
11100 ;
11101 return 0;
11102}
11103_ACEOF
25e9e4f0 11104if ac_fn_c_try_link "$LINENO"; then :
f91909b3 11105 case "$LIBEXT" in
2b05c840 11106 dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
f91909b3
AJ
11107 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'` ;;
11108 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11109 esac
f91909b3 11110fi
25e9e4f0
AJ
11111rm -f core conftest.err conftest.$ac_objext \
11112 conftest$ac_exeext conftest.$ac_ext
f91909b3
AJ
11113 LIBS=$ac_check_soname_save_LIBS
11114fi
25e9e4f0
AJ
11115if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 11117$as_echo "not found" >&6; }
f91909b3
AJ
11118
11119else
25e9e4f0 11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
abf5048b 11121$as_echo "$ac_cv_lib_soname_crypto" >&6; }
f91909b3
AJ
11122
11123cat >>confdefs.h <<_ACEOF
11124#define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11125_ACEOF
11126
11127
d0fddf4f 11128fi
d0fddf4f 11129fi
25e9e4f0 11130if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
a41f0f1b 11131 case "x$with_openssl" in
0dc503bc 11132 x) as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
a41f0f1b 11133 xno) ;;
a53c44a6 11134 *) as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
9797da40 11135This is an error since --with-openssl was requested." "$LINENO" 5 ;;
a41f0f1b 11136esac
7f674966
AJ
11137fi
11138
c186d8a3 11139if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
58b5a3f6 11140then
25e9e4f0 11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
58b5a3f6 11142$as_echo_n "checking for -lgsm... " >&6; }
9797da40 11143if ${ac_cv_lib_soname_gsm+:} false; then :
58b5a3f6
ML
11144 $as_echo_n "(cached) " >&6
11145else
11146 ac_check_soname_save_LIBS=$LIBS
11147LIBS="-lgsm $LIBS"
25e9e4f0 11148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58b5a3f6
ML
11149/* end confdefs.h. */
11150
11151/* Override any GCC internal prototype to avoid an error.
11152 Use char because int might match the return type of a GCC
11153 builtin and then its argument prototype would still apply. */
11154#ifdef __cplusplus
11155extern "C"
11156#endif
11157char gsm_create ();
11158int
11159main ()
11160{
11161return gsm_create ();
11162 ;
11163 return 0;
11164}
11165_ACEOF
25e9e4f0 11166if ac_fn_c_try_link "$LINENO"; then :
58b5a3f6 11167 case "$LIBEXT" in
2b05c840 11168 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
58b5a3f6
ML
11169 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'` ;;
11170 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11171 esac
58b5a3f6 11172fi
25e9e4f0
AJ
11173rm -f core conftest.err conftest.$ac_objext \
11174 conftest$ac_exeext conftest.$ac_ext
58b5a3f6
ML
11175 LIBS=$ac_check_soname_save_LIBS
11176fi
25e9e4f0
AJ
11177if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
58b5a3f6
ML
11179$as_echo "not found" >&6; }
11180
11181else
25e9e4f0 11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
58b5a3f6
ML
11183$as_echo "$ac_cv_lib_soname_gsm" >&6; }
11184
11185cat >>confdefs.h <<_ACEOF
11186#define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11187_ACEOF
11188
11189
11190fi
58b5a3f6 11191fi
25e9e4f0 11192if test "x$ac_cv_lib_soname_gsm" = "x"; then :
6ce32e0d 11193 case "x$with_gsm" in
0dc503bc 11194 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
58b5a3f6 11195 xno) ;;
a53c44a6 11196 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
9797da40 11197This is an error since --with-gsm was requested." "$LINENO" 5 ;;
58b5a3f6
ML
11198esac
11199fi
11200
d0fddf4f
AJ
11201if test "$ac_cv_header_jpeglib_h" = "yes"
11202then
25e9e4f0 11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
abf5048b 11204$as_echo_n "checking for -ljpeg... " >&6; }
9797da40 11205if ${ac_cv_lib_soname_jpeg+:} false; then :
abf5048b 11206 $as_echo_n "(cached) " >&6
d0fddf4f
AJ
11207else
11208 ac_check_soname_save_LIBS=$LIBS
11209LIBS="-ljpeg $LIBS"
25e9e4f0 11210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0fddf4f
AJ
11211/* end confdefs.h. */
11212
11213/* Override any GCC internal prototype to avoid an error.
11214 Use char because int might match the return type of a GCC
11215 builtin and then its argument prototype would still apply. */
11216#ifdef __cplusplus
11217extern "C"
11218#endif
11219char jpeg_start_decompress ();
11220int
11221main ()
11222{
11223return jpeg_start_decompress ();
11224 ;
11225 return 0;
11226}
11227_ACEOF
25e9e4f0 11228if ac_fn_c_try_link "$LINENO"; then :
d0fddf4f 11229 case "$LIBEXT" in
2b05c840 11230 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
d0fddf4f
AJ
11231 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'` ;;
11232 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11233 esac
d0fddf4f 11234fi
25e9e4f0
AJ
11235rm -f core conftest.err conftest.$ac_objext \
11236 conftest$ac_exeext conftest.$ac_ext
d0fddf4f
AJ
11237 LIBS=$ac_check_soname_save_LIBS
11238fi
25e9e4f0
AJ
11239if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 11241$as_echo "not found" >&6; }
d0fddf4f
AJ
11242
11243else
25e9e4f0 11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
abf5048b 11245$as_echo "$ac_cv_lib_soname_jpeg" >&6; }
d0fddf4f
AJ
11246
11247cat >>confdefs.h <<_ACEOF
11248#define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11249_ACEOF
11250
11251
00302152 11252fi
00302152 11253fi
25e9e4f0 11254if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
a41f0f1b 11255 case "x$with_jpeg" in
0dc503bc 11256 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
a41f0f1b 11257 xno) ;;
a53c44a6 11258 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
9797da40 11259This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
a41f0f1b 11260esac
7f674966
AJ
11261fi
11262
00302152
AJ
11263if test "$ac_cv_header_png_h" = "yes"
11264then
25e9e4f0 11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
abf5048b 11266$as_echo_n "checking for -lpng... " >&6; }
9797da40 11267if ${ac_cv_lib_soname_png+:} false; then :
abf5048b 11268 $as_echo_n "(cached) " >&6
00302152
AJ
11269else
11270 ac_check_soname_save_LIBS=$LIBS
fe8879e6 11271LIBS="-lpng -lm -lz $LIBS"
25e9e4f0 11272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
00302152
AJ
11273/* end confdefs.h. */
11274
11275/* Override any GCC internal prototype to avoid an error.
11276 Use char because int might match the return type of a GCC
11277 builtin and then its argument prototype would still apply. */
11278#ifdef __cplusplus
11279extern "C"
11280#endif
11281char png_create_read_struct ();
11282int
11283main ()
11284{
11285return png_create_read_struct ();
11286 ;
11287 return 0;
11288}
11289_ACEOF
25e9e4f0 11290if ac_fn_c_try_link "$LINENO"; then :
00302152 11291 case "$LIBEXT" in
2b05c840 11292 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
00302152
AJ
11293 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'` ;;
11294 *) 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'` ;;
11295 esac
00302152 11296fi
25e9e4f0
AJ
11297rm -f core conftest.err conftest.$ac_objext \
11298 conftest$ac_exeext conftest.$ac_ext
00302152
AJ
11299 LIBS=$ac_check_soname_save_LIBS
11300fi
25e9e4f0
AJ
11301if test "x$ac_cv_lib_soname_png" = "x"; then :
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 11303$as_echo "not found" >&6; }
00302152
AJ
11304
11305else
25e9e4f0 11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
abf5048b 11307$as_echo "$ac_cv_lib_soname_png" >&6; }
00302152
AJ
11308
11309cat >>confdefs.h <<_ACEOF
11310#define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11311_ACEOF
11312
11313
a3097628 11314fi
615e0e64
MM
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11316$as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
9797da40 11317if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
615e0e64
MM
11318 $as_echo_n "(cached) " >&6
11319else
11320 ac_check_lib_save_LIBS=$LIBS
11321LIBS="-lpng -lm -lz $LIBS"
11322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11323/* end confdefs.h. */
11324
11325/* Override any GCC internal prototype to avoid an error.
11326 Use char because int might match the return type of a GCC
11327 builtin and then its argument prototype would still apply. */
11328#ifdef __cplusplus
11329extern "C"
11330#endif
11331char png_set_expand_gray_1_2_4_to_8 ();
11332int
11333main ()
11334{
11335return png_set_expand_gray_1_2_4_to_8 ();
11336 ;
11337 return 0;
11338}
11339_ACEOF
11340if ac_fn_c_try_link "$LINENO"; then :
11341 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11342else
11343 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11344fi
11345rm -f core conftest.err conftest.$ac_objext \
11346 conftest$ac_exeext conftest.$ac_ext
11347LIBS=$ac_check_lib_save_LIBS
11348fi
11349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11350$as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
9797da40 11351if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
615e0e64
MM
11352
11353$as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11354
11355
11356fi
11357
85b6189c
JCH
11358elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11359then
11360 ac_save_CPPFLAGS="$CPPFLAGS"
11361 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11362 $as_unset ac_cv_header_png_h
25e9e4f0
AJ
11363 for ac_header in png.h
11364do :
11365 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
9797da40 11366if test "x$ac_cv_header_png_h" = xyes; then :
25e9e4f0
AJ
11367 cat >>confdefs.h <<_ACEOF
11368#define HAVE_PNG_H 1
11369_ACEOF
85b6189c 11370
85b6189c 11371fi
25e9e4f0
AJ
11372
11373done
11374
11375 CPPFLAGS="$ac_save_CPPFLAGS"
11376 if test "$ac_cv_header_png_h" = "yes"
11377 then
11378 PNGINCL="$X_CFLAGS"
11379
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11381$as_echo_n "checking for -lpng... " >&6; }
9797da40 11382if ${ac_cv_lib_soname_png+:} false; then :
25e9e4f0 11383 $as_echo_n "(cached) " >&6
85b6189c 11384else
25e9e4f0
AJ
11385 ac_check_soname_save_LIBS=$LIBS
11386LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85b6189c 11388/* end confdefs.h. */
85b6189c 11389
25e9e4f0
AJ
11390/* Override any GCC internal prototype to avoid an error.
11391 Use char because int might match the return type of a GCC
11392 builtin and then its argument prototype would still apply. */
11393#ifdef __cplusplus
11394extern "C"
11395#endif
11396char png_create_read_struct ();
11397int
11398main ()
11399{
11400return png_create_read_struct ();
11401 ;
11402 return 0;
11403}
11404_ACEOF
11405if ac_fn_c_try_link "$LINENO"; then :
11406 case "$LIBEXT" in
2b05c840 11407 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
25e9e4f0
AJ
11408 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'` ;;
11409 *) 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'` ;;
11410 esac
11411fi
11412rm -f core conftest.err conftest.$ac_objext \
11413 conftest$ac_exeext conftest.$ac_ext
11414 LIBS=$ac_check_soname_save_LIBS
85b6189c 11415fi
25e9e4f0
AJ
11416if test "x$ac_cv_lib_soname_png" = "x"; then :
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11418$as_echo "not found" >&6; }
85b6189c 11419
25e9e4f0
AJ
11420else
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11422$as_echo "$ac_cv_lib_soname_png" >&6; }
85b6189c 11423
25e9e4f0
AJ
11424cat >>confdefs.h <<_ACEOF
11425#define SONAME_LIBPNG "$ac_cv_lib_soname_png"
85b6189c
JCH
11426_ACEOF
11427
11428
11429fi
615e0e64
MM
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11431$as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
9797da40 11432if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
615e0e64
MM
11433 $as_echo_n "(cached) " >&6
11434else
11435 ac_check_lib_save_LIBS=$LIBS
11436LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11438/* end confdefs.h. */
11439
11440/* Override any GCC internal prototype to avoid an error.
11441 Use char because int might match the return type of a GCC
11442 builtin and then its argument prototype would still apply. */
11443#ifdef __cplusplus
11444extern "C"
11445#endif
11446char png_set_expand_gray_1_2_4_to_8 ();
11447int
11448main ()
11449{
11450return png_set_expand_gray_1_2_4_to_8 ();
11451 ;
11452 return 0;
11453}
11454_ACEOF
11455if ac_fn_c_try_link "$LINENO"; then :
11456 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11457else
11458 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11459fi
11460rm -f core conftest.err conftest.$ac_objext \
11461 conftest$ac_exeext conftest.$ac_ext
11462LIBS=$ac_check_lib_save_LIBS
11463fi
11464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11465$as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
9797da40 11466if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
615e0e64
MM
11467 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11468
11469fi
11470
85b6189c 11471 fi
a3097628 11472fi
25e9e4f0 11473if test "x$ac_cv_lib_soname_png" = "x"; then :
a41f0f1b 11474 case "x$with_png" in
0dc503bc 11475 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
a41f0f1b 11476 xno) ;;
a53c44a6 11477 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
9797da40 11478This is an error since --with-png was requested." "$LINENO" 5 ;;
a41f0f1b 11479esac
7f674966
AJ
11480fi
11481
73cd5693
VP
11482if test "$ac_cv_header_tiffio_h" = "yes"
11483then
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11485$as_echo_n "checking for -ltiff... " >&6; }
9797da40 11486if ${ac_cv_lib_soname_tiff+:} false; then :
73cd5693
VP
11487 $as_echo_n "(cached) " >&6
11488else
11489 ac_check_soname_save_LIBS=$LIBS
11490LIBS="-ltiff $LIBS"
11491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11492/* end confdefs.h. */
11493
11494/* Override any GCC internal prototype to avoid an error.
11495 Use char because int might match the return type of a GCC
11496 builtin and then its argument prototype would still apply. */
11497#ifdef __cplusplus
11498extern "C"
11499#endif
11500char TIFFClientOpen ();
11501int
11502main ()
11503{
11504return TIFFClientOpen ();
11505 ;
11506 return 0;
11507}
11508_ACEOF
11509if ac_fn_c_try_link "$LINENO"; then :
11510 case "$LIBEXT" in
11511 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11512 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'` ;;
11513 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11514 esac
11515fi
11516rm -f core conftest.err conftest.$ac_objext \
11517 conftest$ac_exeext conftest.$ac_ext
11518 LIBS=$ac_check_soname_save_LIBS
11519fi
11520if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11522$as_echo "not found" >&6; }
11523
11524else
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11526$as_echo "$ac_cv_lib_soname_tiff" >&6; }
11527
11528cat >>confdefs.h <<_ACEOF
11529#define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11530_ACEOF
11531
11532
11533fi
11534fi
11535if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11536 case "x$with_tiff" in
11537 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11538 xno) ;;
a53c44a6 11539 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
9797da40 11540This is an error since --with-tiff was requested." "$LINENO" 5 ;;
73cd5693
VP
11541esac
11542fi
11543
db71d7c0
AS
11544if test "$ac_cv_header_mpg123_h" = "yes"
11545then
7bf8d057
AJ
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11547$as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
9797da40 11548if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
db71d7c0
AS
11549 $as_echo_n "(cached) " >&6
11550else
11551 ac_check_lib_save_LIBS=$LIBS
11552LIBS="-lmpg123 $LIBS"
11553cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11554/* end confdefs.h. */
11555
11556/* Override any GCC internal prototype to avoid an error.
11557 Use char because int might match the return type of a GCC
11558 builtin and then its argument prototype would still apply. */
11559#ifdef __cplusplus
11560extern "C"
11561#endif
7bf8d057 11562char mpg123_feed ();
db71d7c0
AS
11563int
11564main ()
11565{
7bf8d057 11566return mpg123_feed ();
db71d7c0
AS
11567 ;
11568 return 0;
11569}
11570_ACEOF
11571if ac_fn_c_try_link "$LINENO"; then :
7bf8d057 11572 ac_cv_lib_mpg123_mpg123_feed=yes
db71d7c0 11573else
7bf8d057 11574 ac_cv_lib_mpg123_mpg123_feed=no
db71d7c0
AS
11575fi
11576rm -f core conftest.err conftest.$ac_objext \
11577 conftest$ac_exeext conftest.$ac_ext
11578LIBS=$ac_check_lib_save_LIBS
11579fi
7bf8d057
AJ
11580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11581$as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
9797da40 11582if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
db71d7c0
AS
11583 LIBMPG123="-lmpg123"
11584
11585fi
11586
11587fi
4430ab43 11588if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
db71d7c0 11589 case "x$with_mpg123" in
0dc503bc 11590 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
db71d7c0 11591 xno) ;;
a53c44a6 11592 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
9797da40 11593This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
db71d7c0
AS
11594esac
11595fi
c58eff62 11596test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes -o "x$ac_cv_header_AudioToolbox_AudioConverter_h" = xyes || enable_winemp3_acm=${enable_winemp3_acm:-no}
db71d7c0 11597
862965f4
CR
11598if test "$ac_cv_header_AL_al_h" = "yes"
11599then
d435499f
ML
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11601$as_echo_n "checking for -lopenal... " >&6; }
9797da40 11602if ${ac_cv_lib_soname_openal+:} false; then :
862965f4
CR
11603 $as_echo_n "(cached) " >&6
11604else
d435499f 11605 ac_check_soname_save_LIBS=$LIBS
862965f4 11606LIBS="-lopenal $LIBS"
d435499f 11607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
862965f4
CR
11608/* end confdefs.h. */
11609
11610/* Override any GCC internal prototype to avoid an error.
11611 Use char because int might match the return type of a GCC
11612 builtin and then its argument prototype would still apply. */
11613#ifdef __cplusplus
11614extern "C"
11615#endif
11616char alGetSource3i ();
11617int
11618main ()
11619{
11620return alGetSource3i ();
11621 ;
11622 return 0;
11623}
11624_ACEOF
11625if ac_fn_c_try_link "$LINENO"; then :
d435499f
ML
11626 case "$LIBEXT" in
11627 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11628 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'` ;;
11629 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11630 esac
862965f4
CR
11631fi
11632rm -f core conftest.err conftest.$ac_objext \
11633 conftest$ac_exeext conftest.$ac_ext
d435499f 11634 LIBS=$ac_check_soname_save_LIBS
862965f4 11635fi
d435499f
ML
11636if test "x$ac_cv_lib_soname_openal" = "x"; then :
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11638$as_echo "not found" >&6; }
862965f4 11639
d435499f
ML
11640else
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11642$as_echo "$ac_cv_lib_soname_openal" >&6; }
11643
11644cat >>confdefs.h <<_ACEOF
11645#define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11646_ACEOF
11647
11648 LIBOPENAL="-lopenal"
862965f4 11649
d435499f
ML
11650 ac_cv_lib_openal=yes
11651
11652cat >>confdefs.h <<_ACEOF
11653#define HAVE_OPENAL 1
11654_ACEOF
11655
11656fi
862965f4 11657fi
d435499f 11658if test "x$ac_cv_lib_openal" != xyes; then :
862965f4 11659 case "x$with_openal" in
0dc503bc 11660 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
862965f4 11661 xno) ;;
a53c44a6 11662 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
9797da40 11663This is an error since --with-openal was requested." "$LINENO" 5 ;;
862965f4
CR
11664esac
11665fi
d435499f 11666test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
862965f4 11667
de1d7fbe
AJ
11668if test "$ac_cv_header_kstat_h" = "yes"
11669then
25e9e4f0 11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
de1d7fbe 11671$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
9797da40 11672if ${ac_cv_lib_kstat_kstat_open+:} false; then :
de1d7fbe
AJ
11673 $as_echo_n "(cached) " >&6
11674else
11675 ac_check_lib_save_LIBS=$LIBS
11676LIBS="-lkstat $LIBS"
25e9e4f0 11677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
de1d7fbe
AJ
11678/* end confdefs.h. */
11679
11680/* Override any GCC internal prototype to avoid an error.
11681 Use char because int might match the return type of a GCC
11682 builtin and then its argument prototype would still apply. */
11683#ifdef __cplusplus
11684extern "C"
11685#endif
11686char kstat_open ();
11687int
11688main ()
11689{
11690return kstat_open ();
11691 ;
11692 return 0;
11693}
11694_ACEOF
25e9e4f0 11695if ac_fn_c_try_link "$LINENO"; then :
de1d7fbe
AJ
11696 ac_cv_lib_kstat_kstat_open=yes
11697else
25e9e4f0 11698 ac_cv_lib_kstat_kstat_open=no
de1d7fbe 11699fi
25e9e4f0
AJ
11700rm -f core conftest.err conftest.$ac_objext \
11701 conftest$ac_exeext conftest.$ac_ext
de1d7fbe
AJ
11702LIBS=$ac_check_lib_save_LIBS
11703fi
25e9e4f0 11704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
de1d7fbe 11705$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
9797da40 11706if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
de1d7fbe 11707
25e9e4f0 11708$as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
de1d7fbe
AJ
11709
11710 LIBKSTAT="-lkstat"
11711
11712fi
11713
11714fi
11715
25e9e4f0 11716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
abf5048b 11717$as_echo_n "checking for -lodbc... " >&6; }
9797da40 11718if ${ac_cv_lib_soname_odbc+:} false; then :
abf5048b 11719 $as_echo_n "(cached) " >&6
84f8ab6b
AJ
11720else
11721 ac_check_soname_save_LIBS=$LIBS
11722LIBS="-lodbc $LIBS"
25e9e4f0 11723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84f8ab6b
AJ
11724/* end confdefs.h. */
11725
11726/* Override any GCC internal prototype to avoid an error.
11727 Use char because int might match the return type of a GCC
11728 builtin and then its argument prototype would still apply. */
11729#ifdef __cplusplus
11730extern "C"
11731#endif
11732char SQLConnect ();
11733int
11734main ()
11735{
11736return SQLConnect ();
11737 ;
11738 return 0;
11739}
11740_ACEOF
25e9e4f0 11741if ac_fn_c_try_link "$LINENO"; then :
84f8ab6b 11742 case "$LIBEXT" in
2b05c840 11743 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
84f8ab6b
AJ
11744 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'` ;;
11745 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11746 esac
84f8ab6b 11747fi
25e9e4f0
AJ
11748rm -f core conftest.err conftest.$ac_objext \
11749 conftest$ac_exeext conftest.$ac_ext
84f8ab6b
AJ
11750 LIBS=$ac_check_soname_save_LIBS
11751fi
25e9e4f0
AJ
11752if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 11754$as_echo "not found" >&6; }
84f8ab6b
AJ
11755 cat >>confdefs.h <<_ACEOF
11756#define SONAME_LIBODBC "libodbc.$LIBEXT"
11757_ACEOF
11758
11759else
25e9e4f0 11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
abf5048b 11761$as_echo "$ac_cv_lib_soname_odbc" >&6; }
84f8ab6b
AJ
11762
11763cat >>confdefs.h <<_ACEOF
11764#define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11765_ACEOF
11766
11767
11768fi
11769
98cb21f7
AJ
11770test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
11771test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
f60a0f5e 11772test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
98cb21f7
AJ
11773test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
11774
eb17b8c2 11775if test "x$ALSALIBS$COREAUDIO" = "x" -a \
f60a0f5e 11776 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
55f9ac8b 11777 "x$with_alsa$with_coreaudio$with_oss" != xnonono
a41f0f1b 11778then
0dc503bc 11779 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
f9dec94f
AJ
11780fi
11781
11782
a3097628
AJ
11783EXTRACFLAGS=""
11784
11785if test "x${GCC}" = "xyes"
11786then
11787 EXTRACFLAGS="-Wall -pipe"
11788
25e9e4f0 11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
abf5048b 11790$as_echo_n "checking for gcc strength-reduce bug... " >&6; }
9797da40 11791if ${ac_cv_c_gcc_strength_bug+:} false; then :
abf5048b 11792 $as_echo_n "(cached) " >&6
0623a6f3 11793else
25e9e4f0 11794 if test "$cross_compiling" = yes; then :
a3097628
AJ
11795 ac_cv_c_gcc_strength_bug="yes"
11796else
25e9e4f0 11797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 11798/* end confdefs.h. */
a3097628 11799int L[4] = {0,1,2,3};
f5818d2f
AJ
11800int
11801main ()
11802{
a3097628
AJ
11803static int Array[3];
11804 unsigned int B = 3;
11805 int i;
11806 for(i=0; i<B; i++) Array[i] = i - 3;
11807 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11808 L[i] = 4;
95251a78 11809 return (Array[1] != -2 || L[2] != 3)
f5818d2f
AJ
11810 ;
11811 return 0;
11812}
11813_ACEOF
25e9e4f0 11814if ac_fn_c_try_run "$LINENO"; then :
a3097628 11815 ac_cv_c_gcc_strength_bug="no"
0623a6f3 11816else
25e9e4f0 11817 ac_cv_c_gcc_strength_bug="yes"
fa3a5360 11818fi
25e9e4f0
AJ
11819rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11820 conftest.$ac_objext conftest.beam conftest.$ac_ext
182d150a
AJ
11821fi
11822
11823fi
25e9e4f0 11824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
abf5048b 11825$as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
a3097628
AJ
11826 if test "$ac_cv_c_gcc_strength_bug" = "yes"
11827 then
11828 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
11829 fi
182d150a 11830
25e9e4f0 11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
abf5048b 11832$as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
9797da40 11833if ${ac_cv_cflags__fno_builtin+:} false; then :
abf5048b 11834 $as_echo_n "(cached) " >&6
6538cb44
AJ
11835else
11836 ac_wine_try_cflags_saved=$CFLAGS
11837CFLAGS="$CFLAGS -fno-builtin"
25e9e4f0 11838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538cb44 11839/* end confdefs.h. */
5d3eacd2 11840int main(int argc, char **argv) { return 0; }
6538cb44 11841_ACEOF
25e9e4f0 11842if ac_fn_c_try_link "$LINENO"; then :
6538cb44
AJ
11843 ac_cv_cflags__fno_builtin=yes
11844else
25e9e4f0 11845 ac_cv_cflags__fno_builtin=no
6538cb44 11846fi
25e9e4f0
AJ
11847rm -f core conftest.err conftest.$ac_objext \
11848 conftest$ac_exeext conftest.$ac_ext
6538cb44
AJ
11849CFLAGS=$ac_wine_try_cflags_saved
11850fi
25e9e4f0 11851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
abf5048b 11852$as_echo "$ac_cv_cflags__fno_builtin" >&6; }
25e9e4f0 11853if test $ac_cv_cflags__fno_builtin = yes; then :
6538cb44
AJ
11854 BUILTINFLAG="-fno-builtin"
11855
a3097628 11856fi
25e9e4f0 11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
abf5048b 11858$as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
9797da40 11859if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
abf5048b 11860 $as_echo_n "(cached) " >&6
7e6ae4ba 11861else
67e8dc68 11862 ac_wine_try_cflags_saved=$CFLAGS
a3097628 11863CFLAGS="$CFLAGS -fno-strict-aliasing"
25e9e4f0 11864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e533e972 11865/* end confdefs.h. */
5d3eacd2 11866int main(int argc, char **argv) { return 0; }
f5818d2f 11867_ACEOF
25e9e4f0 11868if ac_fn_c_try_link "$LINENO"; then :
a3097628 11869 ac_cv_cflags__fno_strict_aliasing=yes
7e6ae4ba 11870else
25e9e4f0 11871 ac_cv_cflags__fno_strict_aliasing=no
7e6ae4ba 11872fi
25e9e4f0
AJ
11873rm -f core conftest.err conftest.$ac_objext \
11874 conftest$ac_exeext conftest.$ac_ext
67e8dc68 11875CFLAGS=$ac_wine_try_cflags_saved
f5818d2f 11876fi
25e9e4f0 11877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
abf5048b 11878$as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
25e9e4f0 11879if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
a3097628 11880 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
182d150a 11881fi
25e9e4f0 11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
abf5048b 11883$as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
9797da40 11884if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
abf5048b 11885 $as_echo_n "(cached) " >&6
0ebeb530 11886else
182d150a 11887 ac_wine_try_cflags_saved=$CFLAGS
a3097628 11888CFLAGS="$CFLAGS -Wdeclaration-after-statement"
25e9e4f0 11889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0ebeb530 11890/* end confdefs.h. */
5d3eacd2 11891int main(int argc, char **argv) { return 0; }
0ebeb530 11892_ACEOF
25e9e4f0 11893if ac_fn_c_try_link "$LINENO"; then :
a3097628 11894 ac_cv_cflags__Wdeclaration_after_statement=yes
0ebeb530 11895else
25e9e4f0 11896 ac_cv_cflags__Wdeclaration_after_statement=no
0ebeb530 11897fi
25e9e4f0
AJ
11898rm -f core conftest.err conftest.$ac_objext \
11899 conftest$ac_exeext conftest.$ac_ext
0ebeb530
JW
11900CFLAGS=$ac_wine_try_cflags_saved
11901fi
25e9e4f0 11902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
abf5048b 11903$as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
25e9e4f0 11904if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
a3097628 11905 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
8213f541
GP
11906fi
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
11908$as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
11909if ${ac_cv_cflags__Wempty_body+:} false; then :
11910 $as_echo_n "(cached) " >&6
11911else
11912 ac_wine_try_cflags_saved=$CFLAGS
11913CFLAGS="$CFLAGS -Wempty-body"
11914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11915/* end confdefs.h. */
11916int main(int argc, char **argv) { return 0; }
11917_ACEOF
11918if ac_fn_c_try_link "$LINENO"; then :
11919 ac_cv_cflags__Wempty_body=yes
11920else
11921 ac_cv_cflags__Wempty_body=no
11922fi
11923rm -f core conftest.err conftest.$ac_objext \
11924 conftest$ac_exeext conftest.$ac_ext
11925CFLAGS=$ac_wine_try_cflags_saved
11926fi
11927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
11928$as_echo "$ac_cv_cflags__Wempty_body" >&6; }
11929if test $ac_cv_cflags__Wempty_body = yes; then :
11930 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
295806f9
AJ
11931fi
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
11933$as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
9797da40 11934if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
295806f9
AJ
11935 $as_echo_n "(cached) " >&6
11936else
11937 ac_wine_try_cflags_saved=$CFLAGS
11938CFLAGS="$CFLAGS -Wstrict-prototypes"
11939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11940/* end confdefs.h. */
5d3eacd2 11941int main(int argc, char **argv) { return 0; }
295806f9
AJ
11942_ACEOF
11943if ac_fn_c_try_link "$LINENO"; then :
11944 ac_cv_cflags__Wstrict_prototypes=yes
11945else
11946 ac_cv_cflags__Wstrict_prototypes=no
11947fi
11948rm -f core conftest.err conftest.$ac_objext \
11949 conftest$ac_exeext conftest.$ac_ext
11950CFLAGS=$ac_wine_try_cflags_saved
11951fi
11952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
11953$as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
11954if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
11955 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
182d150a 11956fi
eae5829e
GP
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
11958$as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
9797da40 11959if ${ac_cv_cflags__Wtype_limits+:} false; then :
abf5048b 11960 $as_echo_n "(cached) " >&6
0ebeb530
JW
11961else
11962 ac_wine_try_cflags_saved=$CFLAGS
eae5829e 11963CFLAGS="$CFLAGS -Wtype-limits"
25e9e4f0 11964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0ebeb530 11965/* end confdefs.h. */
5d3eacd2 11966int main(int argc, char **argv) { return 0; }
0ebeb530 11967_ACEOF
25e9e4f0 11968if ac_fn_c_try_link "$LINENO"; then :
eae5829e 11969 ac_cv_cflags__Wtype_limits=yes
0ebeb530 11970else
eae5829e 11971 ac_cv_cflags__Wtype_limits=no
0ebeb530 11972fi
25e9e4f0
AJ
11973rm -f core conftest.err conftest.$ac_objext \
11974 conftest$ac_exeext conftest.$ac_ext
0ebeb530
JW
11975CFLAGS=$ac_wine_try_cflags_saved
11976fi
eae5829e
GP
11977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
11978$as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
11979if test $ac_cv_cflags__Wtype_limits = yes; then :
11980 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
3ec82c52
GP
11981fi
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
11983$as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
9797da40 11984if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
3ec82c52
GP
11985 $as_echo_n "(cached) " >&6
11986else
11987 ac_wine_try_cflags_saved=$CFLAGS
11988CFLAGS="$CFLAGS -Wunused-but-set-parameter"
11989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11990/* end confdefs.h. */
11991int main(int argc, char **argv) { return 0; }
11992_ACEOF
11993if ac_fn_c_try_link "$LINENO"; then :
11994 ac_cv_cflags__Wunused_but_set_parameter=yes
11995else
11996 ac_cv_cflags__Wunused_but_set_parameter=no
11997fi
11998rm -f core conftest.err conftest.$ac_objext \
11999 conftest$ac_exeext conftest.$ac_ext
12000CFLAGS=$ac_wine_try_cflags_saved
12001fi
12002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12003$as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12004if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12005 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
182d150a 12006fi
eae5829e
GP
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12008$as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
9797da40 12009if ${ac_cv_cflags__Wwrite_strings+:} false; then :
abf5048b 12010 $as_echo_n "(cached) " >&6
701ef1d8
GP
12011else
12012 ac_wine_try_cflags_saved=$CFLAGS
eae5829e 12013CFLAGS="$CFLAGS -Wwrite-strings"
25e9e4f0 12014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
701ef1d8 12015/* end confdefs.h. */
5d3eacd2 12016int main(int argc, char **argv) { return 0; }
701ef1d8 12017_ACEOF
25e9e4f0 12018if ac_fn_c_try_link "$LINENO"; then :
eae5829e 12019 ac_cv_cflags__Wwrite_strings=yes
701ef1d8 12020else
eae5829e 12021 ac_cv_cflags__Wwrite_strings=no
701ef1d8 12022fi
25e9e4f0
AJ
12023rm -f core conftest.err conftest.$ac_objext \
12024 conftest$ac_exeext conftest.$ac_ext
701ef1d8
GP
12025CFLAGS=$ac_wine_try_cflags_saved
12026fi
eae5829e
GP
12027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12028$as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12029if test $ac_cv_cflags__Wwrite_strings = yes; then :
12030 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
701ef1d8
GP
12031fi
12032
a3097628
AJ
12033 saved_CFLAGS="$CFLAGS"
12034 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
f825f0d0
MM
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12036$as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
9797da40 12037if ${ac_cv_c_string_h_warnings+:} false; then :
abf5048b 12038 $as_echo_n "(cached) " >&6
f2abe47d 12039else
25e9e4f0 12040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 12041/* end confdefs.h. */
a3097628 12042#include <string.h>
f2abe47d
AJ
12043int
12044main ()
12045{
12046
12047 ;
12048 return 0;
12049}
12050_ACEOF
25e9e4f0 12051if ac_fn_c_try_compile "$LINENO"; then :
a3097628 12052 ac_cv_c_string_h_warnings=no
f2abe47d 12053else
25e9e4f0 12054 ac_cv_c_string_h_warnings=yes
f2abe47d 12055fi
a3097628 12056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f2abe47d 12057fi
25e9e4f0 12058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
abf5048b 12059$as_echo "$ac_cv_c_string_h_warnings" >&6; }
a3097628
AJ
12060 CFLAGS="$saved_CFLAGS"
12061 if test "$ac_cv_c_string_h_warnings" = "no"
12062 then
12063 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12064 fi
12753c57 12065
f825f0d0
MM
12066 saved_CFLAGS="$CFLAGS"
12067 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12069$as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
9797da40 12070if ${ac_cv_c_logicalop_noisy+:} false; then :
f825f0d0
MM
12071 $as_echo_n "(cached) " >&6
12072else
12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074/* end confdefs.h. */
12075#include <string.h>
12076int
12077main ()
12078{
12079char*f(const char *h,char n) {return strchr(h,n);}
12080 ;
12081 return 0;
12082}
12083_ACEOF
12084if ac_fn_c_try_compile "$LINENO"; then :
12085 ac_cv_c_logicalop_noisy=no
12086else
12087 ac_cv_c_logicalop_noisy=yes
12088fi
12089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12090fi
12091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12092$as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12093 CFLAGS="$saved_CFLAGS"
12094 if test "$ac_cv_c_logicalop_noisy" = "no"
12095 then
12096 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12097 fi
12098
2eda9c72 12099 if test "x$enable_maintainer_mode" = "xyes"
12753c57
AJ
12100 then
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12102$as_echo_n "checking whether the compiler supports -Werror... " >&6; }
9797da40 12103if ${ac_cv_cflags__Werror+:} false; then :
12753c57
AJ
12104 $as_echo_n "(cached) " >&6
12105else
12106 ac_wine_try_cflags_saved=$CFLAGS
12107CFLAGS="$CFLAGS -Werror"
12108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12109/* end confdefs.h. */
5d3eacd2 12110int main(int argc, char **argv) { return 0; }
12753c57
AJ
12111_ACEOF
12112if ac_fn_c_try_link "$LINENO"; then :
12113 ac_cv_cflags__Werror=yes
12114else
12115 ac_cv_cflags__Werror=no
12116fi
12117rm -f core conftest.err conftest.$ac_objext \
12118 conftest$ac_exeext conftest.$ac_ext
12119CFLAGS=$ac_wine_try_cflags_saved
12120fi
12121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12122$as_echo "$ac_cv_cflags__Werror" >&6; }
12123if test $ac_cv_cflags__Werror = yes; then :
12124 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12125fi
fdac5e57
SD
12126 fi
12127
12128 saved_CFLAGS="$CFLAGS"
12129 CFLAGS="$CFLAGS -Werror"
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12131$as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
9797da40 12132if ${ac_cv_have_ms_hook_prologue+:} false; then :
fdac5e57
SD
12133 $as_echo_n "(cached) " >&6
12134else
12135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12136/* end confdefs.h. */
12137int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12138int
12139main ()
12140{
12141
12142 ;
12143 return 0;
12144}
12145_ACEOF
12146if ac_fn_c_try_compile "$LINENO"; then :
12147 ac_cv_have_ms_hook_prologue="yes"
12148else
12149 ac_cv_have_ms_hook_prologue="no"
12150fi
12151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12152fi
12153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12154$as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12155 CFLAGS="$saved_CFLAGS"
12156 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12157 then
12158
12159$as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12160
12161 else
12162 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12163
12753c57 12164 fi
182d150a 12165fi
e533e972 12166
4d52d379 12167
105793bf
AJ
12168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12169$as_echo_n "checking for the need to disable Fortify... " >&6; }
9797da40 12170if ${ac_cv_c_fortify_enabled+:} false; then :
105793bf
AJ
12171 $as_echo_n "(cached) " >&6
12172else
12173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12174/* end confdefs.h. */
12175#include <string.h>
12176int
12177main ()
12178{
12179#if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12180#error Fortify enabled
12181#endif
12182 ;
12183 return 0;
12184}
12185_ACEOF
12186if ac_fn_c_try_compile "$LINENO"; then :
12187 ac_cv_c_fortify_enabled=no
12188else
12189 ac_cv_c_fortify_enabled=yes
12190fi
12191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12192fi
12193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12194$as_echo "$ac_cv_c_fortify_enabled" >&6; }
12195if test "$ac_cv_c_fortify_enabled" = yes
12196then
b10fb86a 12197 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
105793bf
AJ
12198fi
12199
12200
25e9e4f0 12201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
857f1e09 12202$as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
9797da40 12203if ${ac_cv_c_extern_prefix+:} false; then :
857f1e09
AJ
12204 $as_echo_n "(cached) " >&6
12205else
25e9e4f0 12206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
857f1e09
AJ
12207/* end confdefs.h. */
12208extern int ac_test;
12209int
12210main ()
12211{
12212asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12213 ;
12214 return 0;
12215}
12216_ACEOF
25e9e4f0 12217if ac_fn_c_try_link "$LINENO"; then :
857f1e09
AJ
12218 ac_cv_c_extern_prefix="yes"
12219else
25e9e4f0 12220 ac_cv_c_extern_prefix="no"
857f1e09 12221fi
25e9e4f0
AJ
12222rm -f core conftest.err conftest.$ac_objext \
12223 conftest$ac_exeext conftest.$ac_ext
857f1e09 12224fi
25e9e4f0 12225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
857f1e09
AJ
12226$as_echo "$ac_cv_c_extern_prefix" >&6; }
12227
9cebf090
AJ
12228case $host_cpu in
12229 *i[3456789]86*)
25e9e4f0 12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
9cebf090 12231$as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
9797da40 12232if ${ac_cv_c_stdcall_suffix+:} false; then :
9cebf090
AJ
12233 $as_echo_n "(cached) " >&6
12234else
25e9e4f0 12235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9cebf090
AJ
12236/* end confdefs.h. */
12237#ifndef _MSC_VER
12238#define __stdcall __attribute__((__stdcall__))
12239#endif
12240int __stdcall ac_test(int i) { return i; }
12241int
12242main ()
12243{
12244asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12245 ;
12246 return 0;
12247}
12248_ACEOF
25e9e4f0 12249if ac_fn_c_try_link "$LINENO"; then :
9cebf090
AJ
12250 ac_cv_c_stdcall_suffix="yes"
12251else
25e9e4f0 12252 ac_cv_c_stdcall_suffix="no"
9cebf090 12253fi
25e9e4f0
AJ
12254rm -f core conftest.err conftest.$ac_objext \
12255 conftest$ac_exeext conftest.$ac_ext
9cebf090 12256fi
25e9e4f0 12257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
9cebf090
AJ
12258$as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12259 *) ac_cv_c_stdcall_suffix="no" ;;
12260esac
12261
857f1e09 12262
857f1e09
AJ
12263if test "$ac_cv_c_extern_prefix" = "yes"
12264then
25e9e4f0 12265 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
857f1e09
AJ
12266
12267 asm_name_prefix="_"
12268else
25e9e4f0 12269 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
857f1e09
AJ
12270
12271 asm_name_prefix=""
12272fi
12273
12274
9cebf090
AJ
12275if test "$ac_cv_c_stdcall_suffix" = "yes"
12276then
25e9e4f0 12277 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
9cebf090
AJ
12278
12279else
25e9e4f0 12280 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
9cebf090
AJ
12281
12282fi
12283
12284
25e9e4f0 12285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
abf5048b 12286$as_echo_n "checking how to define a function in assembly code... " >&6; }
9797da40 12287if ${ac_cv_asm_func_def+:} false; then :
abf5048b 12288 $as_echo_n "(cached) " >&6
36048242 12289else
25e9e4f0 12290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36048242
AJ
12291/* end confdefs.h. */
12292
12293int
12294main ()
12295{
a3097628 12296asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
36048242
AJ
12297 ;
12298 return 0;
12299}
12300_ACEOF
25e9e4f0 12301if ac_fn_c_try_link "$LINENO"; then :
a3097628 12302 ac_cv_asm_func_def=".def"
36048242 12303else
25e9e4f0 12304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a3097628 12305/* end confdefs.h. */
36048242 12306
a3097628
AJ
12307int
12308main ()
12309{
12310asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12311 ;
12312 return 0;
12313}
440ff6db 12314_ACEOF
25e9e4f0 12315if ac_fn_c_try_link "$LINENO"; then :
a3097628 12316 ac_cv_asm_func_def=".type @function"
440ff6db 12317else
25e9e4f0 12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a3097628 12319/* end confdefs.h. */
e533e972 12320
a3097628
AJ
12321int
12322main ()
12323{
12324asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12325 ;
12326 return 0;
12327}
ef2d04d4 12328_ACEOF
25e9e4f0 12329if ac_fn_c_try_link "$LINENO"; then :
a3097628 12330 ac_cv_asm_func_def=".type 2"
e533e972 12331else
25e9e4f0 12332 ac_cv_asm_func_def="unknown"
e533e972 12333fi
25e9e4f0
AJ
12334rm -f core conftest.err conftest.$ac_objext \
12335 conftest$ac_exeext conftest.$ac_ext
e533e972 12336fi
25e9e4f0
AJ
12337rm -f core conftest.err conftest.$ac_objext \
12338 conftest$ac_exeext conftest.$ac_ext
e533e972 12339fi
25e9e4f0
AJ
12340rm -f core conftest.err conftest.$ac_objext \
12341 conftest$ac_exeext conftest.$ac_ext
a3097628 12342fi
25e9e4f0 12343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
abf5048b 12344$as_echo "$ac_cv_asm_func_def" >&6; }
e533e972 12345
e533e972 12346
a3097628
AJ
12347case "$ac_cv_asm_func_def" in
12348 ".def")
25e9e4f0 12349 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
857f1e09 12350
ea9cf9e4 12351 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
a3097628 12352 ".type @function")
25e9e4f0 12353 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
857f1e09 12354
ea9cf9e4 12355 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
a3097628 12356 ".type 2")
25e9e4f0 12357 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
857f1e09 12358
ea9cf9e4 12359 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
a3097628 12360 *)
25e9e4f0 12361 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
857f1e09
AJ
12362
12363 asm_func_header="" ;;
a3097628
AJ
12364esac
12365
25e9e4f0 12366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
857f1e09 12367$as_echo_n "checking whether asm() works outside of functions... " >&6; }
9797da40 12368if ${ac_cv_c_asm_outside_funcs+:} false; then :
857f1e09
AJ
12369 $as_echo_n "(cached) " >&6
12370else
25e9e4f0 12371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
857f1e09
AJ
12372/* end confdefs.h. */
12373asm(".text\n\t.long 0");
12374int
12375main ()
12376{
a3097628 12377
857f1e09
AJ
12378 ;
12379 return 0;
12380}
12381_ACEOF
25e9e4f0 12382if ac_fn_c_try_compile "$LINENO"; then :
857f1e09
AJ
12383 ac_cv_c_asm_outside_funcs="yes"
12384else
25e9e4f0 12385 ac_cv_c_asm_outside_funcs="no"
857f1e09 12386fi
857f1e09
AJ
12387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12388fi
25e9e4f0 12389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
857f1e09
AJ
12390$as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12391
25e9e4f0 12392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
857f1e09 12393$as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
9797da40 12394if ${ac_cv_c_dot_previous+:} false; then :
abf5048b 12395 $as_echo_n "(cached) " >&6
2ffc7e2c 12396else
25e9e4f0 12397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a3097628 12398/* end confdefs.h. */
857f1e09 12399
a3097628
AJ
12400int
12401main ()
12402{
857f1e09 12403asm(".text\nac_test:\t.long 0\n\t.previous");
a3097628
AJ
12404 ;
12405 return 0;
12406}
12407_ACEOF
25e9e4f0 12408if ac_fn_c_try_link "$LINENO"; then :
857f1e09 12409 ac_cv_c_dot_previous="yes"
2ffc7e2c 12410else
25e9e4f0 12411 ac_cv_c_dot_previous="no"
2ffc7e2c 12412fi
25e9e4f0
AJ
12413rm -f core conftest.err conftest.$ac_objext \
12414 conftest$ac_exeext conftest.$ac_ext
2ffc7e2c 12415fi
25e9e4f0 12416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
857f1e09
AJ
12417$as_echo "$ac_cv_c_dot_previous" >&6; }
12418
25e9e4f0 12419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
ccea0ae9 12420$as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
9797da40 12421if ${ac_cv_c_cfi_support+:} false; then :
ccea0ae9
AJ
12422 $as_echo_n "(cached) " >&6
12423else
25e9e4f0 12424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ccea0ae9
AJ
12425/* end confdefs.h. */
12426asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12427int
12428main ()
12429{
12430
12431 ;
12432 return 0;
12433}
12434_ACEOF
25e9e4f0 12435if ac_fn_c_try_compile "$LINENO"; then :
ccea0ae9
AJ
12436 ac_cv_c_cfi_support="yes"
12437else
25e9e4f0 12438 ac_cv_c_cfi_support="no"
ccea0ae9 12439fi
ccea0ae9
AJ
12440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12441fi
25e9e4f0 12442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
ccea0ae9
AJ
12443$as_echo "$ac_cv_c_cfi_support" >&6; }
12444
ea9cf9e4 12445asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
857f1e09
AJ
12446asm_func_trailer=""
12447if test "$ac_cv_c_dot_previous" = "yes"
12448then
12449 asm_func_trailer="\\n\\t.previous"
12450fi
ccea0ae9
AJ
12451if test "$ac_cv_c_cfi_support" = "yes"
12452then
12453 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12454 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
e1f0a0db 12455
25e9e4f0 12456$as_echo "#define __ASM_CFI(str) str" >>confdefs.h
e1f0a0db 12457
6c142387
AJ
12458 UNWINDFLAGS=-fasynchronous-unwind-tables
12459
e1f0a0db 12460else
25e9e4f0 12461 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
e1f0a0db 12462
ccea0ae9
AJ
12463fi
12464
857f1e09 12465asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
2ffc7e2c
AJ
12466
12467
857f1e09 12468if test "$ac_cv_c_asm_outside_funcs" = "yes"
a3097628 12469then
857f1e09 12470 cat >>confdefs.h <<_ACEOF
ea9cf9e4 12471#define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
a3097628
AJ
12472_ACEOF
12473
12474else
857f1e09 12475 cat >>confdefs.h <<_ACEOF
ea9cf9e4 12476#define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
a3097628 12477_ACEOF
e533e972 12478
e533e972
AJ
12479fi
12480
25e9e4f0 12481$as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
ea9cf9e4
AJ
12482
12483
25e9e4f0 12484$as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
ea9cf9e4
AJ
12485
12486
a3097628 12487
3a0233d6
AJ
12488LDPATH=""
12489
e533e972
AJ
12490case $build_os in
12491 cygwin*|mingw32*)
b860c4aa
AJ
12492 TOOLSEXT=".exe"
12493
e533e972 12494 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
3a0233d6 12495 ;;
e533e972 12496 darwin*|macosx*)
3a0233d6 12497 ;;
e533e972
AJ
12498 *)
12499 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
3a0233d6 12500 ;;
e533e972
AJ
12501esac
12502
12503case $host_os in
12504 mingw32*)
12505 CRTLIBS="-lmsvcrt"
12506
bd9852cd 12507 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
e533e972
AJ
12508
12509 ;;
12510esac
12511
3e6eab3f
AJ
12512MAIN_BINARY="wine"
12513
f3831cf2 12514test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
3e6eab3f 12515
0a086200
AJ
12516case $host_os in
12517 linux*)
12518 case $host_cpu in
12519 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12520 ;;
12521 x86_64*) EXTRA_BINARIES="wine64-preloader"
e533e972
AJ
12522 ;;
12523 esac
12524 ;;
12525esac
12526
12527
95251a78
AJ
12528ac_save_CFLAGS="$CFLAGS"
12529CFLAGS="$CFLAGS $BUILTINFLAG"
e533e972 12530for ac_func in \
a774152f
SD
12531 _finite \
12532 _isnan \
e533e972
AJ
12533 _pclose \
12534 _popen \
12535 _snprintf \
12536 _spawnvp \
ff96bd6a 12537 _strdup \
e533e972
AJ
12538 _stricmp \
12539 _strnicmp \
e9f5bce3
RS
12540 _strtoi64 \
12541 _strtoui64 \
e533e972
AJ
12542 _vsnprintf \
12543 asctime_r \
12544 chsize \
e533e972
AJ
12545 dlopen \
12546 epoll_create \
12547 ffs \
12548 finite \
7d5e565b 12549 fnmatch \
e533e972
AJ
12550 fork \
12551 fpclass \
12552 fstatfs \
12553 fstatvfs \
12554 ftruncate \
12555 futimes \
12556 futimesat \
4e44e153 12557 getattrlist \
a9f214cb 12558 getdirentries \
e533e972
AJ
12559 getopt_long \
12560 getpagesize \
e533e972 12561 getpwuid \
e533e972
AJ
12562 gettimeofday \
12563 getuid \
e533e972
AJ
12564 kqueue \
12565 lstat \
12566 memmove \
12567 mmap \
12568 pclose \
6f68b774 12569 pipe2 \
e533e972
AJ
12570 poll \
12571 popen \
01b972d6 12572 port_create \
e533e972
AJ
12573 prctl \
12574 pread \
12575 pwrite \
87175c61 12576 readdir \
e533e972 12577 readlink \
e533e972
AJ
12578 sched_yield \
12579 select \
39f67279 12580 setproctitle \
e533e972
AJ
12581 setrlimit \
12582 settimeofday \
12583 sigaltstack \
12584 sigprocmask \
12585 snprintf \
12586 spawnvp \
12587 statfs \
12588 statvfs \
12589 strcasecmp \
ff96bd6a 12590 strdup \
e533e972
AJ
12591 strerror \
12592 strncasecmp \
6c04a187 12593 strtold \
e9f5bce3
RS
12594 strtoll \
12595 strtoull \
0fbd5569 12596 symlink \
e533e972 12597 tcgetattr \
0c4f152e 12598 thr_kill2 \
e533e972
AJ
12599 timegm \
12600 usleep \
12601 vsnprintf \
12602 wait4 \
12603 waitpid \
12604
25e9e4f0
AJ
12605do :
12606 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12607ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
a53c44a6 12608if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
e533e972 12609 cat >>confdefs.h <<_ACEOF
abf5048b 12610#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9557d1bf 12611_ACEOF
30de3e8e 12612
9557d1bf 12613fi
e533e972 12614done
e82dfab2 12615
95251a78 12616CFLAGS="$ac_save_CFLAGS"
e533e972
AJ
12617
12618if test "$ac_cv_func_dlopen" = no
12619then
25e9e4f0 12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
abf5048b 12621$as_echo_n "checking for dlopen in -ldl... " >&6; }
9797da40 12622if ${ac_cv_lib_dl_dlopen+:} false; then :
abf5048b 12623 $as_echo_n "(cached) " >&6
e82dfab2 12624else
e533e972
AJ
12625 ac_check_lib_save_LIBS=$LIBS
12626LIBS="-ldl $LIBS"
25e9e4f0 12627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e82dfab2
HD
12628/* end confdefs.h. */
12629
fc6ffb29
AJ
12630/* Override any GCC internal prototype to avoid an error.
12631 Use char because int might match the return type of a GCC
12632 builtin and then its argument prototype would still apply. */
e82dfab2
HD
12633#ifdef __cplusplus
12634extern "C"
12635#endif
e533e972 12636char dlopen ();
e82dfab2
HD
12637int
12638main ()
12639{
e533e972 12640return dlopen ();
e82dfab2
HD
12641 ;
12642 return 0;
12643}
12644_ACEOF
25e9e4f0 12645if ac_fn_c_try_link "$LINENO"; then :
e533e972 12646 ac_cv_lib_dl_dlopen=yes
e82dfab2 12647else
25e9e4f0 12648 ac_cv_lib_dl_dlopen=no
e82dfab2 12649fi
25e9e4f0
AJ
12650rm -f core conftest.err conftest.$ac_objext \
12651 conftest$ac_exeext conftest.$ac_ext
e533e972 12652LIBS=$ac_check_lib_save_LIBS
e82dfab2 12653fi
25e9e4f0 12654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
abf5048b 12655$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9797da40 12656if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
25e9e4f0 12657 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
e533e972 12658 LIBDL="-ldl"
30de3e8e 12659
e82dfab2
HD
12660fi
12661
e533e972
AJ
12662fi
12663ac_wine_check_funcs_save_LIBS="$LIBS"
12664LIBS="$LIBS $LIBDL"
e533e972 12665for ac_func in dladdr
25e9e4f0
AJ
12666do :
12667 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
9797da40 12668if test "x$ac_cv_func_dladdr" = xyes; then :
e533e972 12669 cat >>confdefs.h <<_ACEOF
25e9e4f0 12670#define HAVE_DLADDR 1
daa2886c 12671_ACEOF
30de3e8e 12672
1bb94039 12673fi
e533e972 12674done
1bb94039 12675
e533e972
AJ
12676LIBS="$ac_wine_check_funcs_save_LIBS"
12677
12678if test "$ac_cv_func_poll" = no
12679then
25e9e4f0 12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
abf5048b 12681$as_echo_n "checking for poll in -lpoll... " >&6; }
9797da40 12682if ${ac_cv_lib_poll_poll+:} false; then :
abf5048b 12683 $as_echo_n "(cached) " >&6
1bb94039 12684else
bcba2705
FG
12685 ac_check_lib_save_LIBS=$LIBS
12686LIBS="-lpoll $LIBS"
25e9e4f0 12687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bcba2705
FG
12688/* end confdefs.h. */
12689
12690/* Override any GCC internal prototype to avoid an error.
12691 Use char because int might match the return type of a GCC
12692 builtin and then its argument prototype would still apply. */
12693#ifdef __cplusplus
12694extern "C"
12695#endif
12696char poll ();
12697int
12698main ()
12699{
12700return poll ();
12701 ;
12702 return 0;
12703}
12704_ACEOF
25e9e4f0 12705if ac_fn_c_try_link "$LINENO"; then :
bcba2705
FG
12706 ac_cv_lib_poll_poll=yes
12707else
25e9e4f0 12708 ac_cv_lib_poll_poll=no
bcba2705 12709fi
25e9e4f0
AJ
12710rm -f core conftest.err conftest.$ac_objext \
12711 conftest$ac_exeext conftest.$ac_ext
bcba2705
FG
12712LIBS=$ac_check_lib_save_LIBS
12713fi
25e9e4f0 12714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
abf5048b 12715$as_echo "$ac_cv_lib_poll_poll" >&6; }
9797da40 12716if test "x$ac_cv_lib_poll_poll" = xyes; then :
25e9e4f0 12717 $as_echo "#define HAVE_POLL 1" >>confdefs.h
bcba2705
FG
12718 LIBPOLL="-lpoll"
12719
12720fi
12721
12722fi
12723
25e9e4f0 12724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
abf5048b 12725$as_echo_n "checking for library containing gethostbyname... " >&6; }
9797da40 12726if ${ac_cv_search_gethostbyname+:} false; then :
abf5048b 12727 $as_echo_n "(cached) " >&6
bcba2705
FG
12728else
12729 ac_func_search_save_LIBS=$LIBS
25e9e4f0 12730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bcba2705
FG
12731/* end confdefs.h. */
12732
12733/* Override any GCC internal prototype to avoid an error.
12734 Use char because int might match the return type of a GCC
12735 builtin and then its argument prototype would still apply. */
12736#ifdef __cplusplus
12737extern "C"
12738#endif
12739char gethostbyname ();
12740int
12741main ()
12742{
12743return gethostbyname ();
12744 ;
12745 return 0;
12746}
12747_ACEOF
12748for ac_lib in '' nsl; do
12749 if test -z "$ac_lib"; then
12750 ac_res="none required"
12751 else
12752 ac_res=-l$ac_lib
12753 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12754 fi
25e9e4f0 12755 if ac_fn_c_try_link "$LINENO"; then :
bcba2705 12756 ac_cv_search_gethostbyname=$ac_res
bcba2705 12757fi
25e9e4f0
AJ
12758rm -f core conftest.err conftest.$ac_objext \
12759 conftest$ac_exeext
9797da40 12760 if ${ac_cv_search_gethostbyname+:} false; then :
bcba2705
FG
12761 break
12762fi
12763done
9797da40 12764if ${ac_cv_search_gethostbyname+:} false; then :
25e9e4f0 12765
bcba2705
FG
12766else
12767 ac_cv_search_gethostbyname=no
12768fi
12769rm conftest.$ac_ext
12770LIBS=$ac_func_search_save_LIBS
12771fi
25e9e4f0 12772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
abf5048b 12773$as_echo "$ac_cv_search_gethostbyname" >&6; }
bcba2705 12774ac_res=$ac_cv_search_gethostbyname
25e9e4f0 12775if test "$ac_res" != no; then :
bcba2705
FG
12776 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12777
12778fi
12779
12780
25e9e4f0 12781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
abf5048b 12782$as_echo_n "checking for library containing connect... " >&6; }
9797da40 12783if ${ac_cv_search_connect+:} false; then :
abf5048b 12784 $as_echo_n "(cached) " >&6
bcba2705
FG
12785else
12786 ac_func_search_save_LIBS=$LIBS
25e9e4f0 12787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bcba2705
FG
12788/* end confdefs.h. */
12789
12790/* Override any GCC internal prototype to avoid an error.
12791 Use char because int might match the return type of a GCC
12792 builtin and then its argument prototype would still apply. */
12793#ifdef __cplusplus
12794extern "C"
12795#endif
12796char connect ();
12797int
12798main ()
12799{
12800return connect ();
12801 ;
12802 return 0;
12803}
12804_ACEOF
12805for ac_lib in '' socket; do
12806 if test -z "$ac_lib"; then
12807 ac_res="none required"
12808 else
12809 ac_res=-l$ac_lib
12810 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12811 fi
25e9e4f0 12812 if ac_fn_c_try_link "$LINENO"; then :
bcba2705 12813 ac_cv_search_connect=$ac_res
bcba2705 12814fi
25e9e4f0
AJ
12815rm -f core conftest.err conftest.$ac_objext \
12816 conftest$ac_exeext
9797da40 12817 if ${ac_cv_search_connect+:} false; then :
bcba2705
FG
12818 break
12819fi
12820done
9797da40 12821if ${ac_cv_search_connect+:} false; then :
25e9e4f0 12822
bcba2705
FG
12823else
12824 ac_cv_search_connect=no
12825fi
12826rm conftest.$ac_ext
12827LIBS=$ac_func_search_save_LIBS
12828fi
25e9e4f0 12829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
abf5048b 12830$as_echo "$ac_cv_search_connect" >&6; }
bcba2705 12831ac_res=$ac_cv_search_connect
25e9e4f0 12832if test "$ac_res" != no; then :
bcba2705
FG
12833 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12834
12835fi
12836
12837
25e9e4f0 12838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
abf5048b 12839$as_echo_n "checking for library containing inet_aton... " >&6; }
9797da40 12840if ${ac_cv_search_inet_aton+:} false; then :
abf5048b 12841 $as_echo_n "(cached) " >&6
bcba2705
FG
12842else
12843 ac_func_search_save_LIBS=$LIBS
25e9e4f0 12844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bcba2705
FG
12845/* end confdefs.h. */
12846
12847/* Override any GCC internal prototype to avoid an error.
12848 Use char because int might match the return type of a GCC
12849 builtin and then its argument prototype would still apply. */
12850#ifdef __cplusplus
12851extern "C"
12852#endif
12853char inet_aton ();
12854int
12855main ()
12856{
12857return inet_aton ();
12858 ;
12859 return 0;
12860}
12861_ACEOF
12862for ac_lib in '' resolv; do
12863 if test -z "$ac_lib"; then
12864 ac_res="none required"
12865 else
12866 ac_res=-l$ac_lib
12867 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12868 fi
25e9e4f0 12869 if ac_fn_c_try_link "$LINENO"; then :
bcba2705 12870 ac_cv_search_inet_aton=$ac_res
bcba2705 12871fi
25e9e4f0
AJ
12872rm -f core conftest.err conftest.$ac_objext \
12873 conftest$ac_exeext
9797da40 12874 if ${ac_cv_search_inet_aton+:} false; then :
bcba2705
FG
12875 break
12876fi
12877done
9797da40 12878if ${ac_cv_search_inet_aton+:} false; then :
25e9e4f0 12879
bcba2705
FG
12880else
12881 ac_cv_search_inet_aton=no
12882fi
12883rm conftest.$ac_ext
12884LIBS=$ac_func_search_save_LIBS
12885fi
25e9e4f0 12886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
abf5048b 12887$as_echo "$ac_cv_search_inet_aton" >&6; }
bcba2705 12888ac_res=$ac_cv_search_inet_aton
25e9e4f0 12889if test "$ac_res" != no; then :
bcba2705
FG
12890 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12891
12892fi
12893
12894
bcba2705
FG
12895for ac_func in \
12896 getaddrinfo \
12897 getnameinfo \
12898 getnetbyname \
12899 getprotobyname \
12900 getprotobynumber \
12901 getservbyport \
12902 inet_network \
06566917
AE
12903 inet_ntop \
12904 inet_pton \
bcba2705 12905 sendmsg \
98bec05e 12906 socketpair \
bcba2705 12907
25e9e4f0
AJ
12908do :
12909 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12910ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
a53c44a6 12911if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25e9e4f0
AJ
12912 cat >>confdefs.h <<_ACEOF
12913#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
e24bcc77 12914_ACEOF
bcba2705 12915
25e9e4f0
AJ
12916fi
12917done
bcba2705 12918
bcba2705 12919
25e9e4f0
AJ
12920LDAPLIBS=""
12921
12922if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12923then
12924 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
12925"
9797da40 12926if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
25e9e4f0
AJ
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
12928$as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
9797da40 12929if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
25e9e4f0
AJ
12930 $as_echo_n "(cached) " >&6
12931else
12932 ac_check_lib_save_LIBS=$LIBS
12933LIBS="-lldap_r $LIBPTHREAD $LIBS"
12934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12935/* end confdefs.h. */
1bb94039 12936
fc6ffb29
AJ
12937/* Override any GCC internal prototype to avoid an error.
12938 Use char because int might match the return type of a GCC
12939 builtin and then its argument prototype would still apply. */
82776020
AJ
12940#ifdef __cplusplus
12941extern "C"
12942#endif
25e9e4f0 12943char ldap_initialize ();
f5818d2f
AJ
12944int
12945main ()
12946{
25e9e4f0 12947return ldap_initialize ();
f5818d2f
AJ
12948 ;
12949 return 0;
12950}
12951_ACEOF
25e9e4f0
AJ
12952if ac_fn_c_try_link "$LINENO"; then :
12953 ac_cv_lib_ldap_r_ldap_initialize=yes
1bb94039 12954else
25e9e4f0 12955 ac_cv_lib_ldap_r_ldap_initialize=no
1bb94039 12956fi
25e9e4f0
AJ
12957rm -f core conftest.err conftest.$ac_objext \
12958 conftest$ac_exeext conftest.$ac_ext
12959LIBS=$ac_check_lib_save_LIBS
1bb94039 12960fi
25e9e4f0
AJ
12961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
12962$as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
9797da40 12963if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
25e9e4f0
AJ
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
12965$as_echo_n "checking for ber_init in -llber... " >&6; }
9797da40 12966if ${ac_cv_lib_lber_ber_init+:} false; then :
abf5048b 12967 $as_echo_n "(cached) " >&6
f5818d2f 12968else
25e9e4f0
AJ
12969 ac_check_lib_save_LIBS=$LIBS
12970LIBS="-llber $LIBPTHREAD $LIBS"
12971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 12972/* end confdefs.h. */
875927f6 12973
25e9e4f0
AJ
12974/* Override any GCC internal prototype to avoid an error.
12975 Use char because int might match the return type of a GCC
12976 builtin and then its argument prototype would still apply. */
12977#ifdef __cplusplus
12978extern "C"
12979#endif
12980char ber_init ();
e24bcc77
AJ
12981int
12982main ()
12983{
25e9e4f0 12984return ber_init ();
abf5048b 12985 ;
bcba2705 12986 return 0;
abf5048b
AJ
12987}
12988_ACEOF
25e9e4f0
AJ
12989if ac_fn_c_try_link "$LINENO"; then :
12990 ac_cv_lib_lber_ber_init=yes
12991else
12992 ac_cv_lib_lber_ber_init=no
12993fi
12994rm -f core conftest.err conftest.$ac_objext \
12995 conftest$ac_exeext conftest.$ac_ext
12996LIBS=$ac_check_lib_save_LIBS
12997fi
12998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
12999$as_echo "$ac_cv_lib_lber_ber_init" >&6; }
9797da40 13000if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
abf5048b 13001
25e9e4f0 13002$as_echo "#define HAVE_LDAP 1" >>confdefs.h
bcba2705
FG
13003
13004 LDAPLIBS="-lldap_r -llber"
28710419 13005fi
1089260f
AJ
13006
13007fi
daa2886c 13008
bcba2705 13009fi
daa2886c 13010
bcba2705
FG
13011 ac_wine_check_funcs_save_LIBS="$LIBS"
13012LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
41c59964 13013for ac_func in \
bcba2705
FG
13014 ldap_count_references \
13015 ldap_first_reference \
13016 ldap_next_reference \
13017 ldap_parse_reference \
13018 ldap_parse_sort_control \
13019 ldap_parse_sortresponse_control \
13020 ldap_parse_vlv_control \
13021 ldap_parse_vlvresponse_control
25e9e4f0
AJ
13022do :
13023 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13024ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
a53c44a6 13025if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
41c59964 13026 cat >>confdefs.h <<_ACEOF
abf5048b 13027#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41c59964
BT
13028_ACEOF
13029
13030fi
13031done
13032
bcba2705
FG
13033LIBS="$ac_wine_check_funcs_save_LIBS"
13034fi
25e9e4f0 13035if test "x$LDAPLIBS" = "x"; then :
bcba2705 13036 case "x$with_ldap" in
0dc503bc 13037 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
bcba2705 13038 xno) ;;
a53c44a6 13039 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
9797da40 13040This is an error since --with-ldap was requested." "$LINENO" 5 ;;
bcba2705
FG
13041esac
13042fi
13043
25e9e4f0 13044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
921e6624 13045$as_echo_n "checking whether mkdir takes only one argument... " >&6; }
9797da40 13046if ${wine_cv_one_arg_mkdir+:} false; then :
921e6624
AJ
13047 $as_echo_n "(cached) " >&6
13048else
25e9e4f0 13049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
921e6624
AJ
13050/* end confdefs.h. */
13051#include <sys/stat.h>
13052int
13053main ()
13054{
13055mkdir("foo");
13056 ;
13057 return 0;
13058}
13059_ACEOF
25e9e4f0 13060if ac_fn_c_try_compile "$LINENO"; then :
921e6624
AJ
13061 wine_cv_one_arg_mkdir=yes
13062else
25e9e4f0 13063 wine_cv_one_arg_mkdir=no
921e6624 13064fi
921e6624
AJ
13065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13066fi
25e9e4f0 13067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
921e6624
AJ
13068$as_echo "$wine_cv_one_arg_mkdir" >&6; }
13069if test "$wine_cv_one_arg_mkdir" = "yes"
13070then
13071
25e9e4f0 13072$as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
921e6624
AJ
13073
13074fi
13075
2f22a504
AN
13076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13077$as_echo_n "checking for sched_setaffinity... " >&6; }
9797da40 13078if ${wine_cv_have_sched_setaffinity+:} false; then :
2f22a504
AN
13079 $as_echo_n "(cached) " >&6
13080else
13081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13082/* end confdefs.h. */
13083#define _GNU_SOURCE
13084#include <sched.h>
13085int
13086main ()
13087{
13088sched_setaffinity(0, 0, 0);
13089 ;
13090 return 0;
13091}
13092_ACEOF
13093if ac_fn_c_try_link "$LINENO"; then :
13094 wine_cv_have_sched_setaffinity=yes
13095else
13096 wine_cv_have_sched_setaffinity=no
13097fi
13098rm -f core conftest.err conftest.$ac_objext \
13099 conftest$ac_exeext conftest.$ac_ext
13100fi
13101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13102$as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13103if test "$wine_cv_have_sched_setaffinity" = "yes"
13104then
13105
13106$as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13107
13108fi
13109
41c59964 13110
25e9e4f0 13111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
abf5048b 13112$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9797da40 13113if ${ac_cv_c_const+:} false; then :
abf5048b 13114 $as_echo_n "(cached) " >&6
f5818d2f 13115else
25e9e4f0 13116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 13117/* end confdefs.h. */
f41c2b21 13118
f5818d2f
AJ
13119int
13120main ()
13121{
f41c2b21
DP
13122/* FIXME: Include the comments suggested by Paul. */
13123#ifndef __cplusplus
13124 /* Ultrix mips cc rejects this. */
13125 typedef int charset[2];
f0ca586f 13126 const charset cs;
f41c2b21 13127 /* SunOS 4.1.1 cc rejects this. */
f0ca586f
PK
13128 char const *const *pcpcc;
13129 char **ppc;
f41c2b21
DP
13130 /* NEC SVR4.0.2 mips cc rejects this. */
13131 struct point {int x, y;};
13132 static struct point const zero = {0,0};
13133 /* AIX XL C 1.02.0.0 rejects this.
13134 It does not let you subtract one const X* pointer from another in
13135 an arm of an if-expression whose if-part is not a constant
13136 expression */
13137 const char *g = "string";
f0ca586f 13138 pcpcc = &g + (g ? g-g : 0);
f41c2b21 13139 /* HPUX 7.0 cc rejects these. */
f0ca586f
PK
13140 ++pcpcc;
13141 ppc = (char**) pcpcc;
13142 pcpcc = (char const *const *) ppc;
f41c2b21
DP
13143 { /* SCO 3.2v4 cc rejects this. */
13144 char *t;
13145 char const *s = 0 ? (char *) 0 : (char const *) 0;
13146
13147 *t++ = 0;
fc6ffb29 13148 if (s) return 0;
f41c2b21
DP
13149 }
13150 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13151 int x[] = {25, 17};
13152 const int *foo = &x[0];
13153 ++foo;
13154 }
13155 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13156 typedef const int *iptr;
13157 iptr p = 0;
13158 ++p;
13159 }
13160 { /* AIX XL C 1.02.0.0 rejects this saying
13161 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13162 struct s { int j; const int *ap[3]; };
13163 struct s *b; b->j = 5;
13164 }
13165 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13166 const int foo = 10;
fc6ffb29 13167 if (!foo) return 0;
f41c2b21 13168 }
f0ca586f 13169 return !cs[0] && !zero.x;
f41c2b21
DP
13170#endif
13171
f5818d2f
AJ
13172 ;
13173 return 0;
13174}
13175_ACEOF
25e9e4f0 13176if ac_fn_c_try_compile "$LINENO"; then :
f41c2b21 13177 ac_cv_c_const=yes
f5818d2f 13178else
25e9e4f0 13179 ac_cv_c_const=no
c7c217b3 13180fi
0ebeb530 13181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f 13182fi
25e9e4f0 13183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
abf5048b 13184$as_echo "$ac_cv_c_const" >&6; }
f41c2b21 13185if test $ac_cv_c_const = no; then
5769d1de 13186
25e9e4f0 13187$as_echo "#define const /**/" >>confdefs.h
5769d1de 13188
5769d1de 13189fi
f41c2b21 13190
25e9e4f0 13191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
abf5048b 13192$as_echo_n "checking for inline... " >&6; }
9797da40 13193if ${ac_cv_c_inline+:} false; then :
abf5048b 13194 $as_echo_n "(cached) " >&6
5769d1de 13195else
f41c2b21
DP
13196 ac_cv_c_inline=no
13197for ac_kw in inline __inline__ __inline; do
25e9e4f0 13198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f41c2b21
DP
13199/* end confdefs.h. */
13200#ifndef __cplusplus
13201typedef int foo_t;
13202static $ac_kw foo_t static_foo () {return 0; }
13203$ac_kw foo_t foo () {return 0; }
13204#endif
13205
5769d1de 13206_ACEOF
25e9e4f0 13207if ac_fn_c_try_compile "$LINENO"; then :
fc6ffb29 13208 ac_cv_c_inline=$ac_kw
5769d1de 13209fi
0ebeb530 13210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29 13211 test "$ac_cv_c_inline" != no && break
f41c2b21 13212done
f5818d2f 13213
f41c2b21 13214fi
25e9e4f0 13215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
abf5048b 13216$as_echo "$ac_cv_c_inline" >&6; }
c7c217b3 13217
f41c2b21
DP
13218case $ac_cv_c_inline in
13219 inline | yes) ;;
13220 *)
13221 case $ac_cv_c_inline in
13222 no) ac_val=;;
13223 *) ac_val=$ac_cv_c_inline;;
13224 esac
13225 cat >>confdefs.h <<_ACEOF
13226#ifndef __cplusplus
13227#define inline $ac_val
13228#endif
13229_ACEOF
13230 ;;
13231esac
c7c217b3 13232
25e9e4f0 13233ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9797da40 13234if test "x$ac_cv_type_mode_t" = xyes; then :
25e9e4f0
AJ
13235
13236cat >>confdefs.h <<_ACEOF
13237#define HAVE_MODE_T 1
e24bcc77 13238_ACEOF
25e9e4f0
AJ
13239
13240
13241fi
13242ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9797da40 13243if test "x$ac_cv_type_off_t" = xyes; then :
25e9e4f0
AJ
13244
13245cat >>confdefs.h <<_ACEOF
13246#define HAVE_OFF_T 1
f5818d2f 13247_ACEOF
25e9e4f0
AJ
13248
13249
13250fi
13251ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9797da40 13252if test "x$ac_cv_type_pid_t" = xyes; then :
25e9e4f0
AJ
13253
13254cat >>confdefs.h <<_ACEOF
13255#define HAVE_PID_T 1
e24bcc77 13256_ACEOF
abf5048b 13257
25e9e4f0 13258
abf5048b 13259fi
25e9e4f0 13260ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9797da40 13261if test "x$ac_cv_type_size_t" = xyes; then :
abf5048b 13262
25e9e4f0
AJ
13263cat >>confdefs.h <<_ACEOF
13264#define HAVE_SIZE_T 1
13265_ACEOF
f41c2b21 13266
abf5048b 13267
f41c2b21 13268fi
25e9e4f0 13269ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9797da40 13270if test "x$ac_cv_type_ssize_t" = xyes; then :
25e9e4f0
AJ
13271
13272cat >>confdefs.h <<_ACEOF
13273#define HAVE_SSIZE_T 1
13274_ACEOF
13275
fc6ffb29 13276
f41c2b21 13277fi
25e9e4f0 13278ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
9797da40 13279if test "x$ac_cv_type_long_long" = xyes; then :
f41c2b21
DP
13280
13281cat >>confdefs.h <<_ACEOF
25e9e4f0 13282#define HAVE_LONG_LONG 1
f41c2b21
DP
13283_ACEOF
13284
13285
13286fi
25e9e4f0 13287ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
9797da40 13288if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
25e9e4f0
AJ
13289
13290cat >>confdefs.h <<_ACEOF
13291#define HAVE_FSBLKCNT_T 1
abf5048b 13292_ACEOF
abf5048b 13293
25e9e4f0 13294
abf5048b 13295fi
25e9e4f0 13296ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
9797da40 13297if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
abf5048b 13298
25e9e4f0
AJ
13299cat >>confdefs.h <<_ACEOF
13300#define HAVE_FSFILCNT_T 1
13301_ACEOF
abf5048b
AJ
13302
13303
13304fi
13305
25e9e4f0
AJ
13306ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13307#include <signal.h>
13308"
9797da40 13309if test "x$ac_cv_type_sigset_t" = xyes; then :
abf5048b
AJ
13310
13311cat >>confdefs.h <<_ACEOF
25e9e4f0 13312#define HAVE_SIGSET_T 1
abf5048b
AJ
13313_ACEOF
13314
13315
13316fi
25e9e4f0
AJ
13317
13318ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13319"
9797da40 13320if test "x$ac_cv_type_request_sense" = xyes; then :
25e9e4f0
AJ
13321
13322cat >>confdefs.h <<_ACEOF
13323#define HAVE_REQUEST_SENSE 1
abf5048b 13324_ACEOF
abf5048b 13325
25e9e4f0 13326
abf5048b
AJ
13327fi
13328
abf5048b 13329
25e9e4f0
AJ
13330ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13331#ifdef HAVE_SYS_SOCKET_H
13332#include <sys/socket.h>
13333#endif
13334#ifdef HAVE_SYS_SOCKETVAR_H
13335#include <sys/socketvar.h>
13336#endif
13337#ifdef HAVE_NET_ROUTE_H
13338#include <net/route.h>
13339#endif
13340#ifdef HAVE_NETINET_IN_H
13341#include <netinet/in.h>
13342#endif
13343#ifdef HAVE_NETINET_IN_SYSTM_H
13344#include <netinet/in_systm.h>
13345#endif
13346#ifdef HAVE_NETINET_IP_H
13347#include <netinet/ip.h>
13348#endif
13349#ifdef HAVE_NETINET_IN_PCB_H
13350#include <netinet/in_pcb.h>
13351#endif
13352"
9797da40 13353if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
25e9e4f0
AJ
13354
13355cat >>confdefs.h <<_ACEOF
13356#define HAVE_STRUCT_XINPGEN 1
13357_ACEOF
abf5048b 13358
abf5048b 13359
abf5048b 13360fi
25e9e4f0
AJ
13361
13362
13363ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13364#include <linux/input.h>
13365#endif
13366"
9797da40 13367if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
abf5048b
AJ
13368
13369cat >>confdefs.h <<_ACEOF
25e9e4f0 13370#define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
abf5048b
AJ
13371_ACEOF
13372
13373
13374fi
25e9e4f0
AJ
13375
13376
13377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13378$as_echo_n "checking for sigaddset... " >&6; }
9797da40 13379if ${wine_cv_have_sigaddset+:} false; then :
abf5048b
AJ
13380 $as_echo_n "(cached) " >&6
13381else
25e9e4f0 13382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
abf5048b 13383/* end confdefs.h. */
25e9e4f0 13384#include <signal.h>
abf5048b
AJ
13385int
13386main ()
13387{
25e9e4f0 13388sigset_t set; sigaddset(&set,SIGTERM);
abf5048b
AJ
13389 ;
13390 return 0;
13391}
13392_ACEOF
25e9e4f0
AJ
13393if ac_fn_c_try_link "$LINENO"; then :
13394 wine_cv_have_sigaddset=yes
13395else
13396 wine_cv_have_sigaddset=no
13397fi
13398rm -f core conftest.err conftest.$ac_objext \
13399 conftest$ac_exeext conftest.$ac_ext
13400fi
13401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13402$as_echo "$wine_cv_have_sigaddset" >&6; }
13403if test "$wine_cv_have_sigaddset" = "yes"
13404then
13405
13406$as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13407
13408fi
13409
13410
13411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13412$as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
9797da40 13413if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
25e9e4f0
AJ
13414 $as_echo_n "(cached) " >&6
13415else
13416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
abf5048b 13417/* end confdefs.h. */
25e9e4f0 13418#include <netdb.h>
abf5048b
AJ
13419int
13420main ()
13421{
25e9e4f0
AJ
13422
13423 char *name=0;
13424 struct hostent he;
13425 struct hostent *result;
13426 char *buf=0;
13427 int bufsize=0;
8521ebe7 13428 int errnr;
25e9e4f0
AJ
13429 char *addr=0;
13430 int addrlen=0;
13431 int addrtype=0;
8521ebe7
AE
13432 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13433 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
25e9e4f0 13434
abf5048b
AJ
13435 ;
13436 return 0;
13437}
13438_ACEOF
25e9e4f0
AJ
13439if ac_fn_c_try_link "$LINENO"; then :
13440 wine_cv_linux_gethostbyname_r_6=yes
abf5048b 13441else
25e9e4f0 13442 wine_cv_linux_gethostbyname_r_6=no
abf5048b
AJ
13443
13444fi
25e9e4f0
AJ
13445rm -f core conftest.err conftest.$ac_objext \
13446 conftest$ac_exeext conftest.$ac_ext
abf5048b 13447
abf5048b 13448fi
25e9e4f0
AJ
13449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13450$as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13451 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13452 then
abf5048b 13453
25e9e4f0 13454$as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
abf5048b 13455
25e9e4f0 13456 fi
abf5048b 13457
25e9e4f0
AJ
13458if test "$ac_cv_header_linux_joystick_h" = "yes"
13459then
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13461$as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
9797da40 13462if ${wine_cv_linux_joystick_22_api+:} false; then :
abf5048b
AJ
13463 $as_echo_n "(cached) " >&6
13464else
25e9e4f0 13465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
abf5048b 13466/* end confdefs.h. */
25e9e4f0
AJ
13467
13468 #include <sys/ioctl.h>
13469 #include <sys/types.h>
13470 #include <linux/joystick.h>
13471
13472 struct js_event blub;
13473 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13474 #error "no 2.2 header"
13475 #endif
13476
abf5048b
AJ
13477int
13478main ()
13479{
25e9e4f0 13480/*empty*/
abf5048b
AJ
13481 ;
13482 return 0;
13483}
13484_ACEOF
25e9e4f0
AJ
13485if ac_fn_c_try_compile "$LINENO"; then :
13486 wine_cv_linux_joystick_22_api=yes
36bdc64e 13487else
25e9e4f0 13488 wine_cv_linux_joystick_22_api=no
36bdc64e 13489fi
0ebeb530 13490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29 13491
36bdc64e 13492fi
25e9e4f0
AJ
13493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13494$as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13495 if test "$wine_cv_linux_joystick_22_api" = "yes"
13496 then
36bdc64e 13497
25e9e4f0 13498$as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
36bdc64e 13499
25e9e4f0 13500 fi
36bdc64e 13501fi
36bdc64e 13502
36bdc64e 13503
25e9e4f0
AJ
13504ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13505#ifdef HAVE_SYS_PARAM_H
13506# include <sys/param.h>
13507#endif
13508#ifdef HAVE_SYS_MOUNT_H
13509# include <sys/mount.h>
13510#endif
13511#ifdef HAVE_SYS_VFS_H
13512# include <sys/vfs.h>
13513#endif
13514#ifdef HAVE_SYS_STATFS_H
13515# include <sys/statfs.h>
36bdc64e 13516#endif
25e9e4f0 13517"
9797da40 13518if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
36bdc64e 13519
25e9e4f0
AJ
13520cat >>confdefs.h <<_ACEOF
13521#define HAVE_STRUCT_STATFS_F_BFREE 1
36bdc64e 13522_ACEOF
36bdc64e 13523
fc6ffb29 13524
36bdc64e 13525fi
25e9e4f0
AJ
13526ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13527#ifdef HAVE_SYS_PARAM_H
13528# include <sys/param.h>
13529#endif
13530#ifdef HAVE_SYS_MOUNT_H
13531# include <sys/mount.h>
13532#endif
13533#ifdef HAVE_SYS_VFS_H
13534# include <sys/vfs.h>
13535#endif
13536#ifdef HAVE_SYS_STATFS_H
13537# include <sys/statfs.h>
13538#endif
13539"
9797da40 13540if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
36bdc64e
GP
13541
13542cat >>confdefs.h <<_ACEOF
25e9e4f0 13543#define HAVE_STRUCT_STATFS_F_BAVAIL 1
36bdc64e
GP
13544_ACEOF
13545
13546
571d9fb0 13547fi
25e9e4f0
AJ
13548ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13549#ifdef HAVE_SYS_PARAM_H
13550# include <sys/param.h>
571d9fb0 13551#endif
25e9e4f0
AJ
13552#ifdef HAVE_SYS_MOUNT_H
13553# include <sys/mount.h>
13554#endif
13555#ifdef HAVE_SYS_VFS_H
13556# include <sys/vfs.h>
13557#endif
13558#ifdef HAVE_SYS_STATFS_H
13559# include <sys/statfs.h>
571d9fb0 13560#endif
25e9e4f0 13561"
9797da40 13562if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
571d9fb0 13563
25e9e4f0
AJ
13564cat >>confdefs.h <<_ACEOF
13565#define HAVE_STRUCT_STATFS_F_FRSIZE 1
571d9fb0 13566_ACEOF
fc6ffb29 13567
fc6ffb29 13568
571d9fb0 13569fi
25e9e4f0
AJ
13570ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13571#ifdef HAVE_SYS_PARAM_H
13572# include <sys/param.h>
13573#endif
13574#ifdef HAVE_SYS_MOUNT_H
13575# include <sys/mount.h>
13576#endif
13577#ifdef HAVE_SYS_VFS_H
13578# include <sys/vfs.h>
13579#endif
13580#ifdef HAVE_SYS_STATFS_H
13581# include <sys/statfs.h>
13582#endif
13583"
9797da40 13584if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
571d9fb0
GP
13585
13586cat >>confdefs.h <<_ACEOF
25e9e4f0 13587#define HAVE_STRUCT_STATFS_F_FFREE 1
571d9fb0
GP
13588_ACEOF
13589
13590
36bdc64e 13591fi
25e9e4f0
AJ
13592ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13593#ifdef HAVE_SYS_PARAM_H
13594# include <sys/param.h>
13595#endif
13596#ifdef HAVE_SYS_MOUNT_H
13597# include <sys/mount.h>
13598#endif
13599#ifdef HAVE_SYS_VFS_H
13600# include <sys/vfs.h>
13601#endif
13602#ifdef HAVE_SYS_STATFS_H
13603# include <sys/statfs.h>
db89a54b 13604#endif
25e9e4f0 13605"
9797da40 13606if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
db89a54b 13607
25e9e4f0
AJ
13608cat >>confdefs.h <<_ACEOF
13609#define HAVE_STRUCT_STATFS_F_FAVAIL 1
db89a54b 13610_ACEOF
db89a54b 13611
25e9e4f0
AJ
13612
13613fi
13614ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13615#ifdef HAVE_SYS_PARAM_H
13616# include <sys/param.h>
13617#endif
13618#ifdef HAVE_SYS_MOUNT_H
13619# include <sys/mount.h>
13620#endif
13621#ifdef HAVE_SYS_VFS_H
13622# include <sys/vfs.h>
13623#endif
13624#ifdef HAVE_SYS_STATFS_H
13625# include <sys/statfs.h>
db89a54b 13626#endif
25e9e4f0 13627"
9797da40 13628if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
db89a54b 13629
25e9e4f0
AJ
13630cat >>confdefs.h <<_ACEOF
13631#define HAVE_STRUCT_STATFS_F_NAMELEN 1
db89a54b 13632_ACEOF
db89a54b 13633
fc6ffb29 13634
db89a54b 13635fi
fc6ffb29 13636
25e9e4f0
AJ
13637
13638ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13639#include <sys/statvfs.h>
13640#endif
13641"
9797da40 13642if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
db89a54b
AJ
13643
13644cat >>confdefs.h <<_ACEOF
25e9e4f0 13645#define HAVE_STRUCT_STATVFS_F_BLOCKS 1
db89a54b
AJ
13646_ACEOF
13647
13648
13649fi
13650
13651
25e9e4f0
AJ
13652ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13653#ifdef HAVE_SYS_SOCKET_H
13654# include <sys/socket.h>
13655#endif
13656#ifdef HAVE_SYS_UN_H
13657# include <sys/un.h>
13658#endif
13659"
9797da40 13660if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
d6507196 13661
25e9e4f0
AJ
13662cat >>confdefs.h <<_ACEOF
13663#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
d6507196 13664_ACEOF
d6507196 13665
fc6ffb29 13666
d6507196 13667fi
25e9e4f0
AJ
13668ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13669#ifdef HAVE_SYS_SOCKET_H
13670# include <sys/socket.h>
13671#endif
13672#ifdef HAVE_SYS_UN_H
13673# include <sys/un.h>
13674#endif
13675"
9797da40 13676if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
d6507196
PR
13677
13678cat >>confdefs.h <<_ACEOF
25e9e4f0 13679#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
d6507196
PR
13680_ACEOF
13681
13682
af2d274f 13683fi
25e9e4f0
AJ
13684ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13685#ifdef HAVE_SYS_SOCKET_H
13686# include <sys/socket.h>
13687#endif
13688#ifdef HAVE_SYS_UN_H
13689# include <sys/un.h>
13690#endif
13691"
9797da40 13692if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
af2d274f 13693
25e9e4f0
AJ
13694cat >>confdefs.h <<_ACEOF
13695#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
af2d274f 13696_ACEOF
af2d274f 13697
af2d274f 13698
af2d274f
MK
13699fi
13700
25e9e4f0
AJ
13701
13702ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13703#ifdef HAVE_SCSI_SG_H
13704#include <scsi/sg.h>
13705#endif
13706"
9797da40 13707if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
af2d274f
MK
13708
13709cat >>confdefs.h <<_ACEOF
25e9e4f0 13710#define HAVE_SCSIREQ_T_CMD 1
af2d274f
MK
13711_ACEOF
13712
13713
13714fi
25e9e4f0
AJ
13715ac_fn_c_check_member "$LINENO" "sg_io_hdr_t" "interface_id" "ac_cv_member_sg_io_hdr_t_interface_id" "#include <sys/types.h>
13716#ifdef HAVE_SCSI_SG_H
13717#include <scsi/sg.h>
13718#endif
13719"
9797da40 13720if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
af2d274f 13721
25e9e4f0
AJ
13722cat >>confdefs.h <<_ACEOF
13723#define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
af2d274f 13724_ACEOF
af2d274f 13725
af2d274f 13726
af2d274f
MK
13727fi
13728
25e9e4f0
AJ
13729
13730ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13731"
9797da40 13732if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
af2d274f
MK
13733
13734cat >>confdefs.h <<_ACEOF
25e9e4f0 13735#define HAVE_SIGINFO_T_SI_FD 1
af2d274f
MK
13736_ACEOF
13737
13738
13739fi
af2d274f 13740
25e9e4f0
AJ
13741
13742ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13743#ifdef HAVE_SYS_MTIO_H
13744#include <sys/mtio.h>
13745#endif
13746"
9797da40 13747if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
25e9e4f0
AJ
13748
13749cat >>confdefs.h <<_ACEOF
13750#define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
af2d274f 13751_ACEOF
af2d274f 13752
af2d274f 13753
25e9e4f0
AJ
13754fi
13755ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
13756#ifdef HAVE_SYS_MTIO_H
13757#include <sys/mtio.h>
13758#endif
13759"
9797da40 13760if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
25e9e4f0
AJ
13761
13762cat >>confdefs.h <<_ACEOF
13763#define HAVE_STRUCT_MTGET_MT_GSTAT 1
13764_ACEOF
13765
af2d274f 13766
af2d274f 13767fi
25e9e4f0
AJ
13768ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
13769#ifdef HAVE_SYS_MTIO_H
13770#include <sys/mtio.h>
13771#endif
13772"
9797da40 13773if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
af2d274f
MK
13774
13775cat >>confdefs.h <<_ACEOF
25e9e4f0 13776#define HAVE_STRUCT_MTGET_MT_BLKNO 1
af2d274f
MK
13777_ACEOF
13778
13779
d6507196
PR
13780fi
13781
13782
25e9e4f0
AJ
13783ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
13784#include <getopt.h>
40a6a74a 13785#endif
25e9e4f0 13786"
9797da40 13787if test "x$ac_cv_member_struct_option_name" = xyes; then :
40a6a74a 13788
25e9e4f0
AJ
13789cat >>confdefs.h <<_ACEOF
13790#define HAVE_STRUCT_OPTION_NAME 1
40a6a74a 13791_ACEOF
40a6a74a 13792
40a6a74a 13793
25e9e4f0
AJ
13794fi
13795
13796
13797ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
9797da40 13798if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
25e9e4f0
AJ
13799
13800cat >>confdefs.h <<_ACEOF
13801#define HAVE_STRUCT_STAT_ST_BLOCKS 1
40a6a74a 13802_ACEOF
40a6a74a 13803
25e9e4f0 13804
40a6a74a 13805fi
25e9e4f0 13806ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
9797da40 13807if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
25e9e4f0
AJ
13808
13809cat >>confdefs.h <<_ACEOF
13810#define HAVE_STRUCT_STAT_ST_MTIM 1
13811_ACEOF
13812
fc6ffb29 13813
40a6a74a 13814fi
25e9e4f0 13815ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
9797da40 13816if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
25e9e4f0
AJ
13817
13818cat >>confdefs.h <<_ACEOF
13819#define HAVE_STRUCT_STAT_ST_CTIM 1
13820_ACEOF
13821
fc6ffb29 13822
40a6a74a 13823fi
25e9e4f0 13824ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
9797da40 13825if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
40a6a74a
VL
13826
13827cat >>confdefs.h <<_ACEOF
25e9e4f0 13828#define HAVE_STRUCT_STAT_ST_ATIM 1
40a6a74a
VL
13829_ACEOF
13830
13831
13832fi
13833
13834
25e9e4f0 13835ac_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
788e30f1
AJ
13836#include <sys/types.h>
13837#endif
13838#ifdef HAVE_NETINET_IN_H
25e9e4f0 13839#include <netinet/in.h>
788e30f1 13840#endif
25e9e4f0 13841"
9797da40 13842if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
788e30f1 13843
25e9e4f0
AJ
13844cat >>confdefs.h <<_ACEOF
13845#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
788e30f1 13846_ACEOF
788e30f1 13847
25e9e4f0
AJ
13848
13849fi
13850
13851
13852ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
788e30f1
AJ
13853#include <sys/types.h>
13854#endif
13855#ifdef HAVE_NETINET_IN_H
13856# include <netinet/in.h>
13857#endif
13858#ifdef HAVE_ARPA_NAMESER_H
13859# include <arpa/nameser.h>
13860#endif
25e9e4f0 13861"
9797da40 13862if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
788e30f1
AJ
13863
13864cat >>confdefs.h <<_ACEOF
13865#define HAVE_NS_MSG__MSG_PTR 1
13866_ACEOF
13867
13868
13869fi
13870
13871
25e9e4f0 13872ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
ac0252db
AE
13873#include <sys/types.h>
13874#endif
13875#ifdef HAVE_ALIAS_H
13876#include <alias.h>
13877#endif
13878#ifdef HAVE_SYS_SOCKET_H
13879#include <sys/socket.h>
13880#endif
13881#ifdef HAVE_SYS_SOCKETVAR_H
13882#include <sys/socketvar.h>
13883#endif
13884#ifdef HAVE_SYS_TIMEOUT_H
13885#include <sys/timeout.h>
13886#endif
13887#ifdef HAVE_NETINET_IN_H
13888#include <netinet/in.h>
13889#endif
13890#ifdef HAVE_NETINET_IN_SYSTM_H
13891#include <netinet/in_systm.h>
13892#endif
13893#ifdef HAVE_NETINET_IP_H
13894#include <netinet/ip.h>
13895#endif
13896#ifdef HAVE_NETINET_IP_VAR_H
13897#include <netinet/ip_var.h>
13898#endif
13899#ifdef HAVE_NETINET_IP_ICMP_H
13900#include <netinet/ip_icmp.h>
13901#endif
13902#ifdef HAVE_NETINET_ICMP_VAR
13903#include <netinet/icmp_var.h>
13904#endif
25e9e4f0 13905"
9797da40 13906if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
ac0252db
AE
13907
13908cat >>confdefs.h <<_ACEOF
13909#define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
13910_ACEOF
13911
13912
13913fi
13914
13915
984c3b2c
JL
13916ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
13917#include <sys/types.h>
13918#endif
13919#ifdef HAVE_NET_IF_H
13920# include <net/if.h>
13921#endif
13922"
9797da40 13923if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
984c3b2c
JL
13924
13925cat >>confdefs.h <<_ACEOF
13926#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
13927_ACEOF
13928
13929
13930fi
13931
13932
25e9e4f0 13933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
abf5048b 13934$as_echo_n "checking for timezone variable... " >&6; }
9797da40 13935if ${ac_cv_have_timezone+:} false; then :
abf5048b 13936 $as_echo_n "(cached) " >&6
6618b035 13937else
25e9e4f0 13938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618b035
PK
13939/* end confdefs.h. */
13940#include <time.h>
13941int
13942main ()
13943{
ff2bd661 13944timezone = 1
6618b035
PK
13945 ;
13946 return 0;
13947}
25e9e4f0
AJ
13948_ACEOF
13949if ac_fn_c_try_link "$LINENO"; then :
6618b035
PK
13950 ac_cv_have_timezone="yes"
13951else
25e9e4f0 13952 ac_cv_have_timezone="no"
6618b035 13953fi
25e9e4f0
AJ
13954rm -f core conftest.err conftest.$ac_objext \
13955 conftest$ac_exeext conftest.$ac_ext
6618b035 13956fi
25e9e4f0 13957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
abf5048b 13958$as_echo "$ac_cv_have_timezone" >&6; }
6618b035
PK
13959if test "$ac_cv_have_timezone" = "yes"
13960then
13961
25e9e4f0 13962$as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
6618b035
PK
13963
13964fi
25e9e4f0 13965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
abf5048b 13966$as_echo_n "checking for daylight variable... " >&6; }
9797da40 13967if ${ac_cv_have_daylight+:} false; then :
abf5048b 13968 $as_echo_n "(cached) " >&6
6618b035 13969else
25e9e4f0 13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618b035
PK
13971/* end confdefs.h. */
13972#include <time.h>
13973int
13974main ()
13975{
ff2bd661 13976daylight = 1
6618b035
PK
13977 ;
13978 return 0;
13979}
13980_ACEOF
25e9e4f0 13981if ac_fn_c_try_link "$LINENO"; then :
6618b035
PK
13982 ac_cv_have_daylight="yes"
13983else
25e9e4f0 13984 ac_cv_have_daylight="no"
6618b035 13985fi
25e9e4f0
AJ
13986rm -f core conftest.err conftest.$ac_objext \
13987 conftest$ac_exeext conftest.$ac_ext
6618b035 13988fi
25e9e4f0 13989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
abf5048b 13990$as_echo "$ac_cv_have_daylight" >&6; }
6618b035
PK
13991if test "$ac_cv_have_daylight" = "yes"
13992then
13993
25e9e4f0 13994$as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
6618b035
PK
13995
13996fi
13997
3b11f79b
NC
13998ac_save_LIBS="$LIBS"
13999LIBS="$LIBS -lm"
25e9e4f0 14000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
abf5048b 14001$as_echo_n "checking for isinf... " >&6; }
9797da40 14002if ${ac_cv_have_isinf+:} false; then :
abf5048b 14003 $as_echo_n "(cached) " >&6
4992b659 14004else
25e9e4f0 14005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992b659
PS
14006/* end confdefs.h. */
14007#include <math.h>
14008int
14009main ()
14010{
8521ebe7 14011float f = 0.0; return isinf(f)
4992b659
PS
14012 ;
14013 return 0;
14014}
14015_ACEOF
25e9e4f0 14016if ac_fn_c_try_link "$LINENO"; then :
4992b659
PS
14017 ac_cv_have_isinf="yes"
14018else
25e9e4f0 14019 ac_cv_have_isinf="no"
4992b659 14020fi
25e9e4f0
AJ
14021rm -f core conftest.err conftest.$ac_objext \
14022 conftest$ac_exeext conftest.$ac_ext
4992b659 14023fi
25e9e4f0 14024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
abf5048b 14025$as_echo "$ac_cv_have_isinf" >&6; }
4992b659
PS
14026if test "$ac_cv_have_isinf" = "yes"
14027then
14028
25e9e4f0 14029$as_echo "#define HAVE_ISINF 1" >>confdefs.h
4992b659
PS
14030
14031fi
14032
25e9e4f0 14033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
abf5048b 14034$as_echo_n "checking for isnan... " >&6; }
9797da40 14035if ${ac_cv_have_isnan+:} false; then :
abf5048b 14036 $as_echo_n "(cached) " >&6
1715dcbb 14037else
25e9e4f0 14038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1715dcbb
JC
14039/* end confdefs.h. */
14040#include <math.h>
14041int
14042main ()
14043{
8521ebe7 14044float f = 0.0; return isnan(f)
1715dcbb
JC
14045 ;
14046 return 0;
14047}
14048_ACEOF
25e9e4f0 14049if ac_fn_c_try_link "$LINENO"; then :
1715dcbb
JC
14050 ac_cv_have_isnan="yes"
14051else
25e9e4f0 14052 ac_cv_have_isnan="no"
1715dcbb 14053fi
25e9e4f0
AJ
14054rm -f core conftest.err conftest.$ac_objext \
14055 conftest$ac_exeext conftest.$ac_ext
1715dcbb 14056fi
25e9e4f0 14057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
abf5048b 14058$as_echo "$ac_cv_have_isnan" >&6; }
1715dcbb
JC
14059if test "$ac_cv_have_isnan" = "yes"
14060then
14061
25e9e4f0 14062$as_echo "#define HAVE_ISNAN 1" >>confdefs.h
1715dcbb
JC
14063
14064fi
3b11f79b 14065LIBS="$ac_save_LIBS"
1715dcbb 14066
daa2886c 14067
fc01b729 14068case $host_cpu in
25e9e4f0 14069 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
abf5048b 14070$as_echo_n "checking whether we need to define __i386__... " >&6; }
9797da40 14071if ${ac_cv_cpp_def___i386__+:} false; then :
abf5048b 14072 $as_echo_n "(cached) " >&6
51d46ba9 14073else
25e9e4f0 14074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 14075/* end confdefs.h. */
f5818d2f 14076#ifndef __i386__
51d46ba9
AJ
14077yes
14078#endif
f5818d2f 14079_ACEOF
51d46ba9 14080if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25e9e4f0 14081 $EGREP "yes" >/dev/null 2>&1; then :
05783b55 14082 ac_cv_cpp_def___i386__=yes
51d46ba9 14083else
05783b55 14084 ac_cv_cpp_def___i386__=no
51d46ba9
AJ
14085fi
14086rm -f conftest*
14087
14088fi
25e9e4f0 14089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
abf5048b 14090$as_echo "$ac_cv_cpp_def___i386__" >&6; }
25e9e4f0 14091if test $ac_cv_cpp_def___i386__ = yes; then :
05783b55
AJ
14092 CFLAGS="$CFLAGS -D__i386__"
14093 LINTFLAGS="$LINTFLAGS -D__i386__"
25e9e4f0
AJ
14094fi ;;
14095 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
abf5048b 14096$as_echo_n "checking whether we need to define __x86_64__... " >&6; }
9797da40 14097if ${ac_cv_cpp_def___x86_64__+:} false; then :
abf5048b 14098 $as_echo_n "(cached) " >&6
e3be5642 14099else
25e9e4f0 14100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e3be5642
AJ
14101/* end confdefs.h. */
14102#ifndef __x86_64__
14103yes
14104#endif
14105_ACEOF
14106if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25e9e4f0 14107 $EGREP "yes" >/dev/null 2>&1; then :
e3be5642
AJ
14108 ac_cv_cpp_def___x86_64__=yes
14109else
14110 ac_cv_cpp_def___x86_64__=no
14111fi
14112rm -f conftest*
14113
14114fi
25e9e4f0 14115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
abf5048b 14116$as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
25e9e4f0 14117if test $ac_cv_cpp_def___x86_64__ = yes; then :
e3be5642
AJ
14118 CFLAGS="$CFLAGS -D__x86_64__"
14119 LINTFLAGS="$LINTFLAGS -D__x86_64__"
25e9e4f0
AJ
14120fi ;;
14121 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
abf5048b 14122$as_echo_n "checking whether we need to define __sparc__... " >&6; }
9797da40 14123if ${ac_cv_cpp_def___sparc__+:} false; then :
abf5048b 14124 $as_echo_n "(cached) " >&6
57807fa1 14125else
25e9e4f0 14126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 14127/* end confdefs.h. */
57807fa1
GM
14128#ifndef __sparc__
14129yes
14130#endif
14131_ACEOF
14132if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25e9e4f0 14133 $EGREP "yes" >/dev/null 2>&1; then :
05783b55 14134 ac_cv_cpp_def___sparc__=yes
57807fa1 14135else
05783b55 14136 ac_cv_cpp_def___sparc__=no
57807fa1
GM
14137fi
14138rm -f conftest*
14139
14140fi
25e9e4f0 14141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
abf5048b 14142$as_echo "$ac_cv_cpp_def___sparc__" >&6; }
25e9e4f0 14143if test $ac_cv_cpp_def___sparc__ = yes; then :
05783b55
AJ
14144 CFLAGS="$CFLAGS -D__sparc__"
14145 LINTFLAGS="$LINTFLAGS -D__sparc__"
25e9e4f0
AJ
14146fi ;;
14147 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
abf5048b 14148$as_echo_n "checking whether we need to define __powerpc__... " >&6; }
9797da40 14149if ${ac_cv_cpp_def___powerpc__+:} false; then :
abf5048b 14150 $as_echo_n "(cached) " >&6
b64b7deb 14151else
25e9e4f0 14152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b64b7deb
PH
14153/* end confdefs.h. */
14154#ifndef __powerpc__
14155yes
14156#endif
14157_ACEOF
14158if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25e9e4f0 14159 $EGREP "yes" >/dev/null 2>&1; then :
b64b7deb
PH
14160 ac_cv_cpp_def___powerpc__=yes
14161else
14162 ac_cv_cpp_def___powerpc__=no
14163fi
14164rm -f conftest*
14165
14166fi
25e9e4f0 14167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
abf5048b 14168$as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
25e9e4f0 14169if test $ac_cv_cpp_def___powerpc__ = yes; then :
b64b7deb
PH
14170 CFLAGS="$CFLAGS -D__powerpc__"
14171 LINTFLAGS="$LINTFLAGS -D__powerpc__"
50ada0ff
AH
14172fi ;;
14173 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
14174$as_echo_n "checking whether we need to define __arm__... " >&6; }
9797da40 14175if ${ac_cv_cpp_def___arm__+:} false; then :
50ada0ff
AH
14176 $as_echo_n "(cached) " >&6
14177else
14178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14179/* end confdefs.h. */
14180#ifndef __arm__
14181yes
14182#endif
14183_ACEOF
14184if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14185 $EGREP "yes" >/dev/null 2>&1; then :
14186 ac_cv_cpp_def___arm__=yes
14187else
14188 ac_cv_cpp_def___arm__=no
14189fi
14190rm -f conftest*
14191
14192fi
14193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
14194$as_echo "$ac_cv_cpp_def___arm__" >&6; }
14195if test $ac_cv_cpp_def___arm__ = yes; then :
14196 CFLAGS="$CFLAGS -D__arm__"
14197 LINTFLAGS="$LINTFLAGS -D__arm__"
25e9e4f0 14198fi ;;
05783b55 14199esac
57807fa1
GM
14200
14201case $host_vendor in
25e9e4f0 14202 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
abf5048b 14203$as_echo_n "checking whether we need to define __sun__... " >&6; }
9797da40 14204if ${ac_cv_cpp_def___sun__+:} false; then :
abf5048b 14205 $as_echo_n "(cached) " >&6
57807fa1 14206else
25e9e4f0 14207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 14208/* end confdefs.h. */
57807fa1
GM
14209#ifndef __sun__
14210yes
14211#endif
14212_ACEOF
14213if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25e9e4f0 14214 $EGREP "yes" >/dev/null 2>&1; then :
05783b55 14215 ac_cv_cpp_def___sun__=yes
57807fa1 14216else
05783b55 14217 ac_cv_cpp_def___sun__=no
57807fa1
GM
14218fi
14219rm -f conftest*
14220
14221fi
25e9e4f0 14222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
abf5048b 14223$as_echo "$ac_cv_cpp_def___sun__" >&6; }
25e9e4f0 14224if test $ac_cv_cpp_def___sun__ = yes; then :
05783b55
AJ
14225 CFLAGS="$CFLAGS -D__sun__"
14226 LINTFLAGS="$LINTFLAGS -D__sun__"
25e9e4f0 14227fi ;;
05783b55 14228esac
57807fa1
GM
14229
14230
a360e934 14231
7d831155 14232
6c142387 14233
7d831155
AJ
14234ac_config_commands="$ac_config_commands include/stamp-h"
14235
7d020c9f 14236
39b4ba21
AJ
14237ALL_MAKEFILE_DEPENDS="
14238# Rules automatically generated by configure
a360e934 14239
39b4ba21 14240.INIT: Makefile
39b4ba21 14241.MAKEFILEDEPS:
bd3110d8 14242all: Makefile
81b8ee86 14243Makefile: Makefile.in Make.vars.in Make.rules config.status
39b4ba21 14244 @./config.status Make.tmp Makefile"
7d831155 14245
367fd228 14246ALL_POT_FILES=""
9b99cd1d 14247ALL_TEST_RESOURCES=""
454fb3c1 14248
49163da1 14249
2de10c4a
AJ
14250wine_fn_append_file ()
14251{
14252 as_fn_append $1 " \\$as_nl $2"
14253}
fc7f1c7e 14254
2de10c4a
AJ
14255wine_fn_append_rule ()
14256{
14257 as_fn_append $1 "$as_nl$2"
14258}
fc7f1c7e 14259
6cce7fa0
AJ
14260wine_fn_has_flag ()
14261{
14262 expr ",$2," : ".*,$1,.*" >/dev/null
14263}
14264
943cd739
AJ
14265wine_fn_all_dir_rules ()
14266{
52c9e85b
AJ
14267 ac_dir=$1
14268 ac_alldeps=$2
9dd743fd
AJ
14269 ac_makedep="\$(MAKEDEP)"
14270 ac_input=Make.vars.in:$ac_dir/Makefile.in
52c9e85b 14271 if test $ac_dir != tools
c57aa38e 14272 then
9dd743fd 14273 ac_alldeps="$2 $ac_makedep"
c57aa38e 14274 fi
9dd743fd
AJ
14275 case $2 in
14276 *.in) ac_input=$ac_input:$2 ;;
14277 *) ac_makedep="$2 $ac_makedep" ;;
14278 esac
c57aa38e 14279
52c9e85b 14280 wine_fn_append_file ALL_DIRS $ac_dir
943cd739 14281 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
52c9e85b
AJ
14282"__clean__: $ac_dir/__clean__
14283.PHONY: $ac_dir/__clean__
14284$ac_dir/__clean__: $ac_dir/Makefile
14285 @cd $ac_dir && \$(MAKE) clean
14286 \$(RM) $ac_dir/Makefile
14287$ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
9dd743fd 14288 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
52c9e85b
AJ
14289depend: $ac_dir/__depend__
14290.PHONY: $ac_dir/__depend__
9dd743fd
AJ
14291$ac_dir/__depend__: $ac_makedep dummy
14292 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
943cd739
AJ
14293}
14294
fc7f1c7e
AJ
14295wine_fn_config_makefile ()
14296{
14297 ac_dir=$1
03642414 14298 ac_enable=$2
e2db7946 14299 ac_flags=$3
a0b8fa9f 14300 ac_rules=$4
a53c44a6 14301 if eval test \"x\$"$ac_enable"\" = x"no"; then :
9bdd0272
AJ
14302 return 0
14303fi
03642414 14304
a0b8fa9f 14305 wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
9bdd0272 14306 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
764d4c2a
AJ
14307"all: $ac_dir
14308.PHONY: $ac_dir
6c90aeae 14309$ac_dir: $ac_dir/Makefile dummy
e492fcc8
AJ
14310 @cd $ac_dir && \$(MAKE)"
14311
14312 wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
14313
14314 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
bb86a35f
AJ
14315".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14316$ac_dir/__install__:: $ac_dir
e84063bf 14317 @cd $ac_dir && \$(MAKE) install
bb86a35f
AJ
14318$ac_dir/__uninstall__:: $ac_dir/Makefile
14319 @cd $ac_dir && \$(MAKE) uninstall
14320install:: $ac_dir/__install__
14321__uninstall__: $ac_dir/__uninstall__"
e492fcc8
AJ
14322
14323 if wine_fn_has_flag install-lib $ac_flags
14324 then
14325 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
bb86a35f
AJ
14326".PHONY: $ac_dir/__install-lib__
14327$ac_dir/__install-lib__:: $ac_dir
14328 @cd $ac_dir && \$(MAKE) install-lib
14329install-lib:: $ac_dir/__install-lib__"
e492fcc8
AJ
14330 fi
14331
14332 if wine_fn_has_flag install-dev $ac_flags
14333 then
14334 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
bb86a35f
AJ
14335".PHONY: $ac_dir/__install-dev
14336$ac_dir/__install-dev__:: $ac_dir
14337 @cd $ac_dir && \$(MAKE) install-dev
14338install-dev:: $ac_dir/__install-dev__"
e492fcc8 14339 fi
fc7f1c7e
AJ
14340}
14341
14342wine_fn_config_lib ()
14343{
14344 ac_name=$1
e2db7946 14345 ac_flags=$2
b8fb1d5d 14346 ac_dir=dlls/$ac_name
f64a6753
AJ
14347 wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
14348
14349 if wine_fn_has_flag install-dev $ac_flags
14350 then :
14351 else
14352 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14353".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14354$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
14355 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14356$ac_dir/__uninstall__::
14357 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14358install install-dev:: $ac_dir/__install__
14359__uninstall__: $ac_dir/__uninstall__"
14360 fi
14361
a0b8fa9f
AJ
14362 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
14363 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
fc7f1c7e
AJ
14364}
14365
50231941
AJ
14366wine_fn_config_dll ()
14367{
52c9e85b
AJ
14368 ac_name=$1
14369 ac_dir=dlls/$ac_name
5cdd8415 14370 ac_enable=$2
6cce7fa0 14371 ac_flags=$3
1858f43d 14372 ac_implib=${4:-$ac_name}
52c9e85b 14373 ac_file=$ac_dir/lib$ac_implib
bf8f4357 14374 ac_dll=$ac_name
50231941 14375 ac_deps="tools/widl tools/winebuild tools/winegcc include"
b0e48e1e
AJ
14376 ac_implibflags=""
14377
52c9e85b 14378 case $ac_name in
b0e48e1e 14379 *16) ac_implibflags=" -m16" ;;
bf8f4357
AJ
14380 *.*) ;;
14381 *) ac_dll=$ac_dll.dll ;;
b0e48e1e 14382 esac
50231941 14383
bf8f4357 14384 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
82b743ff 14385
a53c44a6 14386 if eval test \"x\$"$ac_enable"\" = x"no"; then :
5cdd8415 14387 test "$ac_enable" != enable_win16 || return 0
2844991f 14388 wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
5cdd8415 14389else
60a05ad2 14390 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
bf8f4357 14391"$ac_dir: __builddeps__
bb86a35f 14392manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
52c9e85b 14393 @cd $ac_dir && \$(MAKE) \$@"
367fd228 14394
bf8f4357
AJ
14395 if wine_fn_has_flag install-lib $ac_flags
14396 then :
14397 else
14398 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14399".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
14400install install-lib:: $ac_dir/__install-lib__
14401__uninstall__: $ac_dir/__uninstall__"
14402 if test -n "$DLLEXT"
14403 then
14404 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14405"$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14406 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
14407 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
14408$ac_dir/__uninstall__::
14409 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
14410 else
14411 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14412"$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14413 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
14414$ac_dir/__uninstall__::
14415 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
14416 fi
14417 fi
14418
417b70bf 14419 if test "x$enable_maintainer_mode" = xyes
367fd228 14420 then
417b70bf
AJ
14421 if wine_fn_has_flag mc $ac_flags
14422 then
14423 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14424 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14425"$ac_dir/msg.pot: $ac_dir"
14426 fi
14427 if wine_fn_has_flag po $ac_flags
14428 then
14429 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14430 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
367fd228 14431"$ac_dir/rsrc.pot: $ac_dir"
417b70bf 14432 fi
367fd228 14433 fi
5cdd8415 14434fi
50231941 14435
6cce7fa0 14436 if wine_fn_has_flag staticimplib $ac_flags
50231941
AJ
14437 then
14438 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
e55ff7fe 14439"__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
e55ff7fe 14440$ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
52c9e85b
AJ
14441$ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14442 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14443$ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14444 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
6cba5c48
AJ
14445.PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14446$ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14447 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14448$ac_dir/__uninstall__::
14449 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14450install install-dev:: $ac_dir/__install-dev__
14451__uninstall__: $ac_dir/__uninstall__"
14452
14453 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
14454 then
14455 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14456"$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
14457 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
14458$ac_dir/__uninstall__::
14459 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
14460 fi
14461
faa7eae8
AJ
14462 if test "x$CROSSTEST_DISABLE" = x
14463 then
14464 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14465"__builddeps__: $ac_file.cross.a
52c9e85b
AJ
14466$ac_file.cross.a: $ac_dir/Makefile dummy
14467 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
faa7eae8
AJ
14468 fi
14469
6cce7fa0 14470 elif wine_fn_has_flag implib $ac_flags
50231941
AJ
14471 then
14472 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
e55ff7fe 14473"__builddeps__: $ac_file.$IMPLIBEXT
52c9e85b
AJ
14474$ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14475 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14476$ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14477 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
6cba5c48
AJ
14478.PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14479$ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14480 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14481$ac_dir/__uninstall__::
14482 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14483install install-dev:: $ac_dir/__install-dev__
14484__uninstall__: $ac_dir/__uninstall__"
faa7eae8
AJ
14485 if test "x$CROSSTEST_DISABLE" = x
14486 then
14487 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14488"__builddeps__: $ac_file.cross.a
52c9e85b
AJ
14489$ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14490 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
faa7eae8 14491 fi
50231941 14492
52c9e85b 14493 if test "$ac_name" != "$ac_implib"
50231941
AJ
14494 then
14495 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
e55ff7fe 14496"__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
e55ff7fe 14497dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
52c9e85b 14498 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
50231941
AJ
14499clean::
14500 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
faa7eae8
AJ
14501 if test "x$CROSSTEST_DISABLE" = x
14502 then
14503 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14504"__builddeps__: dlls/lib$ac_implib.cross.a
14505dlls/lib$ac_implib.cross.a: $ac_file.cross.a
52c9e85b 14506 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
faa7eae8 14507 fi
50231941
AJ
14508 fi
14509 fi
14510}
14511
14512wine_fn_config_program ()
14513{
52c9e85b
AJ
14514 ac_name=$1
14515 ac_dir=programs/$ac_name
d394e042 14516 ac_enable=$2
6cce7fa0 14517 ac_flags=$3
fda8b65b
AJ
14518 ac_program=$ac_name
14519
14520 case $ac_name in
14521 *.*) ;;
14522 *) ac_program=$ac_program.exe ;;
14523 esac
14524
14525 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
d7b387d3 14526
a53c44a6 14527 if eval test \"x\$"$ac_enable"\" = x"no"; then :
d394e042
AJ
14528
14529else
d7b387d3 14530 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
fda8b65b 14531"$ac_dir: __builddeps__"
6c90aeae 14532
417b70bf 14533 if test "x$enable_maintainer_mode" = xyes
367fd228 14534 then
417b70bf
AJ
14535 if wine_fn_has_flag mc $ac_flags
14536 then
14537 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14538 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14539"$ac_dir/msg.pot: $ac_dir"
14540 fi
14541 if wine_fn_has_flag po $ac_flags
14542 then
14543 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14544 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
367fd228 14545"$ac_dir/rsrc.pot: $ac_dir"
417b70bf 14546 fi
367fd228
AJ
14547 fi
14548
6cce7fa0 14549 wine_fn_has_flag install $ac_flags || return
2fb30218 14550 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
bb86a35f 14551".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
bb86a35f
AJ
14552install install-lib:: $ac_dir/__install__
14553__uninstall__: $ac_dir/__uninstall__"
fda8b65b
AJ
14554
14555 if test -n "$DLLEXT"
2fb30218
AJ
14556 then
14557 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
fda8b65b
AJ
14558"$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14559 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
14560 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
14561$ac_dir/__uninstall__::
14562 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
14563
14564 if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
14565 then
14566 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
bb86a35f 14567"$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
52c9e85b 14568 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
bb86a35f 14569$ac_dir/__uninstall__::
52c9e85b 14570 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
fda8b65b
AJ
14571 fi
14572 else
14573 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14574"$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14575 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
14576$ac_dir/__uninstall__::
14577 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
d7b387d3 14578 fi
41107a94
AJ
14579
14580 if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
14581 then
14582 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14583"$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
14584 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
14585$ac_dir/__uninstall__::
14586 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
14587 fi
d394e042 14588fi
50231941
AJ
14589}
14590
fc7f1c7e
AJ
14591wine_fn_config_test ()
14592{
14593 ac_dir=$1
14594 ac_name=$2
e2db7946 14595 ac_flags=$3
9b99cd1d 14596 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
c57aa38e 14597 wine_fn_all_dir_rules $ac_dir Maketest.rules
44cff7e9 14598
9797da40 14599 if test "x$enable_tests" = xno; then :
dc3afa1f
AJ
14600
14601else
44cff7e9 14602 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
9b99cd1d 14603"all: $ac_dir
764d4c2a 14604.PHONY: $ac_dir
dbbed381 14605$ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
6c90aeae 14606 @cd $ac_dir && \$(MAKE)
9b99cd1d 14607programs/winetest: $ac_dir
e4eff85c 14608check test: $ac_dir/__test__
764d4c2a 14609.PHONY: $ac_dir/__test__
eab7efd1 14610$ac_dir/__test__: dummy
44cff7e9
AJ
14611 @cd $ac_dir && \$(MAKE) test
14612testclean::
14613 \$(RM) $ac_dir/*.ok"
faa7eae8
AJ
14614
14615 if test "x$CROSSTEST_DISABLE" = x
14616 then
14617 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14618"crosstest: $ac_dir/__crosstest__
14619.PHONY: $ac_dir/__crosstest__
14620$ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14621 @cd $ac_dir && \$(MAKE) crosstest"
faa7eae8 14622 fi
dc3afa1f 14623fi
fc7f1c7e 14624}
d81a8f8d
AJ
14625
14626wine_fn_config_tool ()
14627{
14628 ac_dir=$1
e2db7946 14629 ac_flags=$2
9797da40 14630 if test "x$enable_tools" = xno; then :
84fd1f58
AJ
14631 return 0
14632fi
d81a8f8d 14633
49c31e3b 14634 wine_fn_config_makefile $ac_dir enable_tools $ac_flags
84fd1f58 14635
49c31e3b
AJ
14636 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
14637 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
84fd1f58
AJ
14638 case $ac_dir in
14639 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14640 esac
d81a8f8d 14641}
abfb11e1
AJ
14642
14643wine_fn_config_makerules ()
14644{
14645 ac_rules=$1
14646 ac_deps=$2
14647 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14648"$ac_rules: $ac_rules.in $ac_deps config.status
14649 @./config.status $ac_rules
14650distclean::
14651 \$(RM) $ac_rules"
14652}
14653
14654wine_fn_config_symlink ()
14655{
14656 ac_link=$1
14657 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14658"$ac_link:
14659 @./config.status $ac_link
14660distclean::
14661 \$(RM) $ac_link"
14662}
a070f9b0
AJ
14663
14664if test "x$CROSSTEST_DISABLE" != x
14665then
14666 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14667"crosstest:
14668 @echo \"crosstest is not supported (mingw not installed?)\" && false"
14669fi
40977bf1
AJ
14670ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14671wine_fn_config_symlink dlls/shell32/AUTHORS
a6320526 14672ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
abfb11e1 14673test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
0ef63e16 14674if test "x$enable_fonts" != xno; then
ce12296c 14675ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
abfb11e1 14676test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
0ef63e16
AJ
14677fi
14678if test "x$enable_fonts" != xno; then
ce12296c 14679ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
abfb11e1 14680test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
0ef63e16
AJ
14681fi
14682if test "x$enable_fonts" != xno; then
ce12296c 14683ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
abfb11e1 14684test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
0ef63e16
AJ
14685fi
14686if test "x$enable_fonts" != xno; then
ce12296c 14687ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
abfb11e1 14688test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
0ef63e16 14689fi
84fd1f58 14690if test "x$enable_tools" != xno; then
321d3883
AJ
14691ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14692test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
84fd1f58 14693fi
7d020c9f 14694ac_config_links="$ac_config_links wine:tools/winewrapper"
abfb11e1 14695wine_fn_config_symlink wine
4422d22c
AJ
14696if test "x$enable_win64" != xno; then
14697ac_config_links="$ac_config_links wine64:tools/winewrapper"
14698wine_fn_config_symlink wine64
14699fi
7d020c9f 14700
4cffb2d0
HD
14701ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
14702
7dfc4477 14703ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
89118568 14704
7dfc4477 14705ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
89118568 14706
1c60e3bf 14707ac_config_commands="$ac_config_commands dlls/kernel32/nls"
f5818d2f 14708
b8a2e3b8 14709ac_config_commands="$ac_config_commands dlls/user32/resources"
f5818d2f 14710
fc6ffb29 14711ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
f5818d2f 14712
fc6ffb29 14713ac_config_commands="$ac_config_commands include/wine"
f5818d2f 14714
f5818d2f 14715
abfb11e1 14716wine_fn_config_makerules Make.rules
f5818d2f 14717MAKE_RULES=Make.rules
a360e934 14718ac_config_files="$ac_config_files Make.rules"
f5818d2f 14719
abfb11e1 14720wine_fn_config_makerules Maketest.rules Make.rules
cb1fc8f4
AJ
14721MAKE_TEST_RULES=Maketest.rules
14722ac_config_files="$ac_config_files Maketest.rules"
14723
abfb11e1 14724wine_fn_config_makerules dlls/Makedll.rules Make.rules
f5818d2f 14725MAKE_DLL_RULES=dlls/Makedll.rules
a360e934 14726ac_config_files="$ac_config_files dlls/Makedll.rules"
d0edc5fe 14727
abfb11e1 14728wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
633b12d5 14729MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
a360e934 14730ac_config_files="$ac_config_files dlls/Makeimplib.rules"
633b12d5 14731
abfb11e1 14732wine_fn_config_makerules programs/Makeprog.rules Make.rules
626f425b 14733MAKE_PROG_RULES=programs/Makeprog.rules
a360e934 14734ac_config_files="$ac_config_files programs/Makeprog.rules"
626f425b 14735
daa2886c 14736
5cdd8415 14737wine_fn_config_dll acledit enable_acledit
1858f43d
AJ
14738wine_fn_config_dll aclui enable_aclui implib
14739wine_fn_config_dll activeds enable_activeds implib
5cdd8415 14740wine_fn_config_dll actxprxy enable_actxprxy
fc7f1c7e 14741wine_fn_config_lib adsiid
1858f43d 14742wine_fn_config_dll advapi32 enable_advapi32 implib
fc7f1c7e 14743wine_fn_config_test dlls/advapi32/tests advapi32_test
1858f43d 14744wine_fn_config_dll advpack enable_advpack implib
fc7f1c7e 14745wine_fn_config_test dlls/advpack/tests advpack_test
5cdd8415 14746wine_fn_config_dll amstream enable_amstream
fc7f1c7e 14747wine_fn_config_test dlls/amstream/tests amstream_test
902f10cc 14748wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
1858f43d 14749wine_fn_config_dll atl enable_atl implib
b3f04255 14750wine_fn_config_test dlls/atl/tests atl_test
5cdd8415 14751wine_fn_config_dll authz enable_authz
1858f43d 14752wine_fn_config_dll avicap32 enable_avicap32 implib
e2db7946 14753wine_fn_config_dll avifil32 enable_avifil32 implib,po
fc7f1c7e 14754wine_fn_config_test dlls/avifil32/tests avifil32_test
5cdd8415 14755wine_fn_config_dll avifile.dll16 enable_win16
1858f43d 14756wine_fn_config_dll avrt enable_avrt implib
5cdd8415 14757wine_fn_config_dll bcrypt enable_bcrypt
44479005 14758wine_fn_config_dll browseui enable_browseui po
fc7f1c7e 14759wine_fn_config_test dlls/browseui/tests browseui_test
1858f43d 14760wine_fn_config_dll cabinet enable_cabinet implib
fc7f1c7e 14761wine_fn_config_test dlls/cabinet/tests cabinet_test
1858f43d
AJ
14762wine_fn_config_dll capi2032 enable_capi2032 implib
14763wine_fn_config_dll cards enable_cards implib
14764wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
14765wine_fn_config_dll clusapi enable_clusapi implib
5cdd8415 14766wine_fn_config_dll comcat enable_comcat
fc7f1c7e 14767wine_fn_config_test dlls/comcat/tests comcat_test
e2db7946 14768wine_fn_config_dll comctl32 enable_comctl32 implib,po
fc7f1c7e 14769wine_fn_config_test dlls/comctl32/tests comctl32_test
e2db7946 14770wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
fc7f1c7e 14771wine_fn_config_test dlls/comdlg32/tests comdlg32_test
5cdd8415
AJ
14772wine_fn_config_dll comm.drv16 enable_win16
14773wine_fn_config_dll commdlg.dll16 enable_win16
14774wine_fn_config_dll compobj.dll16 enable_win16
1858f43d 14775wine_fn_config_dll compstui enable_compstui implib
e2db7946 14776wine_fn_config_dll credui enable_credui implib,po
fc7f1c7e 14777wine_fn_config_test dlls/credui/tests credui_test
1858f43d 14778wine_fn_config_dll crtdll enable_crtdll implib
e2db7946 14779wine_fn_config_dll crypt32 enable_crypt32 implib,po
fc7f1c7e 14780wine_fn_config_test dlls/crypt32/tests crypt32_test
8484e963 14781wine_fn_config_dll cryptdlg enable_cryptdlg po
1858f43d
AJ
14782wine_fn_config_dll cryptdll enable_cryptdll implib
14783wine_fn_config_dll cryptnet enable_cryptnet implib
fc7f1c7e 14784wine_fn_config_test dlls/cryptnet/tests cryptnet_test
e2db7946 14785wine_fn_config_dll cryptui enable_cryptui implib,po
fc7f1c7e 14786wine_fn_config_test dlls/cryptui/tests cryptui_test
5cdd8415
AJ
14787wine_fn_config_dll ctapi32 enable_ctapi32
14788wine_fn_config_dll ctl3d.dll16 enable_win16
1858f43d 14789wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
5cdd8415 14790wine_fn_config_dll ctl3dv2.dll16 enable_win16
1858f43d 14791wine_fn_config_dll d3d10 enable_d3d10 implib
fc7f1c7e 14792wine_fn_config_test dlls/d3d10/tests d3d10_test
1858f43d 14793wine_fn_config_dll d3d10core enable_d3d10core implib
fc7f1c7e 14794wine_fn_config_test dlls/d3d10core/tests d3d10core_test
1858f43d 14795wine_fn_config_dll d3d8 enable_d3d8 implib
fc7f1c7e 14796wine_fn_config_test dlls/d3d8/tests d3d8_test
1858f43d 14797wine_fn_config_dll d3d9 enable_d3d9 implib
fc7f1c7e 14798wine_fn_config_test dlls/d3d9/tests d3d9_test
0ac336ff 14799wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
66d44999 14800wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
8ea75838 14801wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
458eb08a 14802wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
3c59b9c6 14803wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
fbf1e835 14804wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
99491464 14805wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
fd4efcd0 14806wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
79c1bc42 14807wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
fe050706 14808wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
6cce7fa0 14809wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
5ad7f7b9 14810wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
1858f43d
AJ
14811wine_fn_config_dll d3dim enable_d3dim implib
14812wine_fn_config_dll d3drm enable_d3drm implib
fc7f1c7e 14813wine_fn_config_test dlls/d3drm/tests d3drm_test
9870c04a 14814wine_fn_config_dll d3dx10_33 enable_d3dx10_33
49dbdc12 14815wine_fn_config_dll d3dx10_34 enable_d3dx10_34
955b8445 14816wine_fn_config_dll d3dx10_35 enable_d3dx10_35
f44830e5 14817wine_fn_config_dll d3dx10_36 enable_d3dx10_36
4196ba2f 14818wine_fn_config_dll d3dx10_37 enable_d3dx10_37
199ff9b3 14819wine_fn_config_dll d3dx10_38 enable_d3dx10_38
fb8d7cde 14820wine_fn_config_dll d3dx10_39 enable_d3dx10_39
662cbb16 14821wine_fn_config_dll d3dx10_40 enable_d3dx10_40
17591cc3 14822wine_fn_config_dll d3dx10_41 enable_d3dx10_41
e5d9e12c 14823wine_fn_config_dll d3dx10_42 enable_d3dx10_42
3c5b2e6e 14824wine_fn_config_dll d3dx10_43 enable_d3dx10_43
5cdd8415
AJ
14825wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14826wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14827wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14828wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14829wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14830wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14831wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14832wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14833wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14834wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14835wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14836wine_fn_config_dll d3dx9_35 enable_d3dx9_35
6cce7fa0 14837wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
fc7f1c7e 14838wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
5cdd8415
AJ
14839wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14840wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14841wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14842wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14843wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14844wine_fn_config_dll d3dx9_42 enable_d3dx9_42
90c615aa 14845wine_fn_config_dll d3dx9_43 enable_d3dx9_43
1858f43d 14846wine_fn_config_dll d3dxof enable_d3dxof implib
fc7f1c7e 14847wine_fn_config_test dlls/d3dxof/tests d3dxof_test
1858f43d
AJ
14848wine_fn_config_dll dbgeng enable_dbgeng implib
14849wine_fn_config_dll dbghelp enable_dbghelp implib
14850wine_fn_config_dll dciman32 enable_dciman32 implib
5cdd8415 14851wine_fn_config_dll ddeml.dll16 enable_win16
1858f43d 14852wine_fn_config_dll ddraw enable_ddraw implib
fc7f1c7e 14853wine_fn_config_test dlls/ddraw/tests ddraw_test
5cdd8415 14854wine_fn_config_dll ddrawex enable_ddrawex
fc7f1c7e 14855wine_fn_config_test dlls/ddrawex/tests ddrawex_test
0cdd147d 14856wine_fn_config_dll devenum enable_devenum po
1858f43d 14857wine_fn_config_dll dinput enable_dinput implib,staticimplib
fc7f1c7e 14858wine_fn_config_test dlls/dinput/tests dinput_test
1858f43d 14859wine_fn_config_dll dinput8 enable_dinput8 implib
1fbf857d 14860wine_fn_config_test dlls/dinput8/tests dinput8_test
5cdd8415
AJ
14861wine_fn_config_dll dispdib.dll16 enable_win16
14862wine_fn_config_dll dispex enable_dispex
df07561c 14863wine_fn_config_test dlls/dispex/tests dispex_test
5cdd8415
AJ
14864wine_fn_config_dll display.drv16 enable_win16
14865wine_fn_config_dll dmband enable_dmband
14866wine_fn_config_dll dmcompos enable_dmcompos
14867wine_fn_config_dll dmime enable_dmime
203272ea 14868wine_fn_config_test dlls/dmime/tests dmime_test
5cdd8415 14869wine_fn_config_dll dmloader enable_dmloader
fc7f1c7e 14870wine_fn_config_test dlls/dmloader/tests dmloader_test
5cdd8415
AJ
14871wine_fn_config_dll dmscript enable_dmscript
14872wine_fn_config_dll dmstyle enable_dmstyle
14873wine_fn_config_dll dmsynth enable_dmsynth
14874wine_fn_config_dll dmusic enable_dmusic
1858f43d
AJ
14875wine_fn_config_dll dmusic32 enable_dmusic32 implib
14876wine_fn_config_dll dnsapi enable_dnsapi implib
fc7f1c7e 14877wine_fn_config_test dlls/dnsapi/tests dnsapi_test
1858f43d
AJ
14878wine_fn_config_dll dplay enable_dplay implib
14879wine_fn_config_dll dplayx enable_dplayx implib
fc7f1c7e 14880wine_fn_config_test dlls/dplayx/tests dplayx_test
5cdd8415 14881wine_fn_config_dll dpnaddr enable_dpnaddr
1858f43d 14882wine_fn_config_dll dpnet enable_dpnet implib
5cdd8415
AJ
14883wine_fn_config_dll dpnhpast enable_dpnhpast
14884wine_fn_config_dll dpnlobby enable_dpnlobby
14885wine_fn_config_dll dpwsockx enable_dpwsockx
14886wine_fn_config_dll drmclien enable_drmclien
1858f43d 14887wine_fn_config_dll dsound enable_dsound implib
fc7f1c7e 14888wine_fn_config_test dlls/dsound/tests dsound_test
5cdd8415
AJ
14889wine_fn_config_dll dssenh enable_dssenh
14890wine_fn_config_dll dswave enable_dswave
1858f43d 14891wine_fn_config_dll dwmapi enable_dwmapi implib
f9c8e465 14892wine_fn_config_dll dxdiagn enable_dxdiagn po
fc7f1c7e 14893wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
fc7f1c7e 14894wine_fn_config_lib dxerr8
fc7f1c7e 14895wine_fn_config_lib dxerr9
1858f43d 14896wine_fn_config_dll dxgi enable_dxgi implib
fc7f1c7e 14897wine_fn_config_test dlls/dxgi/tests dxgi_test
fc7f1c7e 14898wine_fn_config_lib dxguid
e2cf9ad3 14899wine_fn_config_dll explorerframe enable_explorerframe
87212d51 14900wine_fn_config_test dlls/explorerframe/tests explorerframe_test
1858f43d 14901wine_fn_config_dll faultrep enable_faultrep implib
53fca11f 14902wine_fn_config_test dlls/faultrep/tests faultrep_test
5cdd8415
AJ
14903wine_fn_config_dll fltlib enable_fltlib
14904wine_fn_config_dll fusion enable_fusion
fc7f1c7e 14905wine_fn_config_test dlls/fusion/tests fusion_test
5cdd8415 14906wine_fn_config_dll fwpuclnt enable_fwpuclnt
b3a9ce44 14907wine_fn_config_dll gameux enable_gameux
cb886f49 14908wine_fn_config_test dlls/gameux/tests gameux_test
5cdd8415 14909wine_fn_config_dll gdi.exe16 enable_win16
1858f43d 14910wine_fn_config_dll gdi32 enable_gdi32 implib
fc7f1c7e 14911wine_fn_config_test dlls/gdi32/tests gdi32_test
1858f43d 14912wine_fn_config_dll gdiplus enable_gdiplus implib
fc7f1c7e 14913wine_fn_config_test dlls/gdiplus/tests gdiplus_test
1858f43d 14914wine_fn_config_dll glu32 enable_glu32 implib
5cdd8415
AJ
14915wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
14916wine_fn_config_dll gpkcsp enable_gpkcsp
14917wine_fn_config_dll hal enable_hal
c9b52d20 14918wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
1858f43d
AJ
14919wine_fn_config_dll hid enable_hid implib
14920wine_fn_config_dll hlink enable_hlink implib
fc7f1c7e 14921wine_fn_config_test dlls/hlink/tests hlink_test
5cdd8415
AJ
14922wine_fn_config_dll hnetcfg enable_hnetcfg
14923wine_fn_config_dll httpapi enable_httpapi
9c6444c6 14924wine_fn_config_dll iccvid enable_iccvid po
5cdd8415 14925wine_fn_config_dll icmp enable_icmp
c685f8cb 14926wine_fn_config_dll ieframe enable_ieframe implib,po
f42d9e2e 14927wine_fn_config_test dlls/ieframe/tests ieframe_test
5cdd8415
AJ
14928wine_fn_config_dll ifsmgr.vxd enable_win16
14929wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
1858f43d 14930wine_fn_config_dll imagehlp enable_imagehlp implib
fc7f1c7e 14931wine_fn_config_test dlls/imagehlp/tests imagehlp_test
5cdd8415 14932wine_fn_config_dll imm.dll16 enable_win16
1858f43d 14933wine_fn_config_dll imm32 enable_imm32 implib
fc7f1c7e 14934wine_fn_config_test dlls/imm32/tests imm32_test
1858f43d 14935wine_fn_config_dll inetcomm enable_inetcomm implib
fc7f1c7e 14936wine_fn_config_test dlls/inetcomm/tests inetcomm_test
be52106c 14937wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
5cdd8415 14938wine_fn_config_dll inetmib1 enable_inetmib1
fc7f1c7e 14939wine_fn_config_test dlls/inetmib1/tests inetmib1_test
5cdd8415 14940wine_fn_config_dll infosoft enable_infosoft
fc7f1c7e 14941wine_fn_config_test dlls/infosoft/tests infosoft_test
5cdd8415
AJ
14942wine_fn_config_dll initpki enable_initpki
14943wine_fn_config_dll inkobj enable_inkobj
14944wine_fn_config_dll inseng enable_inseng
1858f43d 14945wine_fn_config_dll iphlpapi enable_iphlpapi implib
fc7f1c7e 14946wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
5cdd8415
AJ
14947wine_fn_config_dll itircl enable_itircl
14948wine_fn_config_dll itss enable_itss
fc7f1c7e 14949wine_fn_config_test dlls/itss/tests itss_test
0ccf1d89 14950wine_fn_config_dll jscript enable_jscript po
fc7f1c7e 14951wine_fn_config_test dlls/jscript/tests jscript_test
e2db7946 14952wine_fn_config_dll kernel32 enable_kernel32 implib,mc
fc7f1c7e 14953wine_fn_config_test dlls/kernel32/tests kernel32_test
5cdd8415 14954wine_fn_config_dll keyboard.drv16 enable_win16
6cce7fa0 14955wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
8f87459b 14956wine_fn_config_dll ktmw32 enable_ktmw32
1858f43d 14957wine_fn_config_dll loadperf enable_loadperf implib
7df87f39 14958wine_fn_config_dll localspl enable_localspl po
fc7f1c7e 14959wine_fn_config_test dlls/localspl/tests localspl_test
0546dd5b 14960wine_fn_config_dll localui enable_localui po
fc7f1c7e 14961wine_fn_config_test dlls/localui/tests localui_test
1858f43d 14962wine_fn_config_dll lz32 enable_lz32 implib
fc7f1c7e 14963wine_fn_config_test dlls/lz32/tests lz32_test
5cdd8415 14964wine_fn_config_dll lzexpand.dll16 enable_win16
e2db7946 14965wine_fn_config_dll mapi32 enable_mapi32 implib,po
fc7f1c7e 14966wine_fn_config_test dlls/mapi32/tests mapi32_test
5cdd8415
AJ
14967wine_fn_config_dll mapistub enable_mapistub
14968wine_fn_config_dll mciavi32 enable_mciavi32
14969wine_fn_config_dll mcicda enable_mcicda
14970wine_fn_config_dll mciqtz32 enable_mciqtz32
14971wine_fn_config_dll mciseq enable_mciseq
14972wine_fn_config_dll mciwave enable_mciwave
14973wine_fn_config_dll midimap enable_midimap
1858f43d 14974wine_fn_config_dll mlang enable_mlang implib
fc7f1c7e 14975wine_fn_config_test dlls/mlang/tests mlang_test
5cdd8415 14976wine_fn_config_dll mmdevapi enable_mmdevapi
fc7f1c7e 14977wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
5cdd8415
AJ
14978wine_fn_config_dll mmdevldr.vxd enable_win16
14979wine_fn_config_dll mmsystem.dll16 enable_win16
14980wine_fn_config_dll monodebg.vxd enable_win16
14981wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
14982wine_fn_config_dll mouse.drv16 enable_win16
e2db7946 14983wine_fn_config_dll mpr enable_mpr implib,po
1858f43d 14984wine_fn_config_dll mprapi enable_mprapi implib
5cdd8415
AJ
14985wine_fn_config_dll msacm.dll16 enable_win16
14986wine_fn_config_dll msacm32.drv enable_msacm32_drv
1858f43d 14987wine_fn_config_dll msacm32 enable_msacm32 implib
fc7f1c7e 14988wine_fn_config_test dlls/msacm32/tests msacm32_test
5cdd8415
AJ
14989wine_fn_config_dll msadp32.acm enable_msadp32_acm
14990wine_fn_config_dll mscat32 enable_mscat32
1858f43d 14991wine_fn_config_dll mscms enable_mscms implib
fc7f1c7e 14992wine_fn_config_test dlls/mscms/tests mscms_test
5cdd8415 14993wine_fn_config_dll mscoree enable_mscoree
a8528706 14994wine_fn_config_test dlls/mscoree/tests mscoree_test
5cdd8415 14995wine_fn_config_dll msctf enable_msctf
fc7f1c7e 14996wine_fn_config_test dlls/msctf/tests msctf_test
5cdd8415 14997wine_fn_config_dll msdaps enable_msdaps
1858f43d 14998wine_fn_config_dll msdmo enable_msdmo implib
5cdd8415
AJ
14999wine_fn_config_dll msftedit enable_msftedit
15000wine_fn_config_dll msg711.acm enable_msg711_acm
15001wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15002wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
e2db7946 15003wine_fn_config_dll mshtml enable_mshtml implib,po
fc7f1c7e 15004wine_fn_config_test dlls/mshtml/tests mshtml_test
e2db7946 15005wine_fn_config_dll msi enable_msi implib,po
fc7f1c7e 15006wine_fn_config_test dlls/msi/tests msi_test
1858f43d 15007wine_fn_config_dll msimg32 enable_msimg32 implib
530e947b 15008wine_fn_config_dll msimsg enable_msimsg
5cdd8415
AJ
15009wine_fn_config_dll msimtf enable_msimtf
15010wine_fn_config_dll msisip enable_msisip
15011wine_fn_config_dll msisys.ocx enable_msisys_ocx
15012wine_fn_config_dll msnet32 enable_msnet32
21085edb 15013wine_fn_config_dll mspatcha enable_mspatcha
ad5605b5 15014wine_fn_config_dll msrle32 enable_msrle32 po
5cdd8415
AJ
15015wine_fn_config_dll mssign32 enable_mssign32
15016wine_fn_config_dll mssip32 enable_mssip32
15017wine_fn_config_dll mstask enable_mstask
fc7f1c7e 15018wine_fn_config_test dlls/mstask/tests mstask_test
5cdd8415 15019wine_fn_config_dll msvcirt enable_msvcirt
dfbf47b0 15020wine_fn_config_dll msvcp100 enable_msvcp100
a3172a5d 15021wine_fn_config_dll msvcp60 enable_msvcp60
2f9c02e8 15022wine_fn_config_dll msvcp70 enable_msvcp70
4be2026a 15023wine_fn_config_dll msvcp71 enable_msvcp71
71a49ebf 15024wine_fn_config_dll msvcp80 enable_msvcp80
9ae9d263 15025wine_fn_config_dll msvcp90 enable_msvcp90
d589d95d 15026wine_fn_config_test dlls/msvcp90/tests msvcp90_test
1434ef4e 15027wine_fn_config_dll msvcr100 enable_msvcr100
1858f43d
AJ
15028wine_fn_config_dll msvcr70 enable_msvcr70 implib
15029wine_fn_config_dll msvcr71 enable_msvcr71 implib
c452249e
PC
15030wine_fn_config_dll msvcr80 enable_msvcr80
15031wine_fn_config_dll msvcr90 enable_msvcr90
73e669c6 15032wine_fn_config_test dlls/msvcr90/tests msvcr90_test
1858f43d 15033wine_fn_config_dll msvcrt enable_msvcrt implib
fc7f1c7e 15034wine_fn_config_test dlls/msvcrt/tests msvcrt_test
1858f43d
AJ
15035wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15036wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15037wine_fn_config_dll msvcrtd enable_msvcrtd implib
fc7f1c7e 15038wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
e2db7946 15039wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
fc7f1c7e 15040wine_fn_config_test dlls/msvfw32/tests msvfw32_test
958ecd63 15041wine_fn_config_dll msvidc32 enable_msvidc32 po
5cdd8415 15042wine_fn_config_dll msvideo.dll16 enable_win16
1858f43d 15043wine_fn_config_dll mswsock enable_mswsock implib
25ccc90b 15044wine_fn_config_dll msxml enable_msxml
41d6a923 15045wine_fn_config_dll msxml2 enable_msxml2
5cdd8415 15046wine_fn_config_dll msxml3 enable_msxml3
fc7f1c7e 15047wine_fn_config_test dlls/msxml3/tests msxml3_test
5cdd8415 15048wine_fn_config_dll msxml4 enable_msxml4
25bce451 15049wine_fn_config_dll msxml6 enable_msxml6
1858f43d
AJ
15050wine_fn_config_dll nddeapi enable_nddeapi implib
15051wine_fn_config_dll netapi32 enable_netapi32 implib
fc7f1c7e 15052wine_fn_config_test dlls/netapi32/tests netapi32_test
1858f43d 15053wine_fn_config_dll newdev enable_newdev implib
858ccfff 15054wine_fn_config_dll normaliz enable_normaliz implib
4a91265b 15055wine_fn_config_dll npmshtml enable_npmshtml
1858f43d 15056wine_fn_config_dll ntdll enable_ntdll implib
fc7f1c7e 15057wine_fn_config_test dlls/ntdll/tests ntdll_test
1858f43d 15058wine_fn_config_dll ntdsapi enable_ntdsapi implib
fc7f1c7e 15059wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
1858f43d 15060wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
5cdd8415 15061wine_fn_config_dll ntprint enable_ntprint
fc7f1c7e 15062wine_fn_config_test dlls/ntprint/tests ntprint_test
5cdd8415 15063wine_fn_config_dll objsel enable_objsel
1858f43d
AJ
15064wine_fn_config_dll odbc32 enable_odbc32 implib
15065wine_fn_config_dll odbccp32 enable_odbccp32 implib
fc7f1c7e 15066wine_fn_config_test dlls/odbccp32/tests odbccp32_test
5cdd8415
AJ
15067wine_fn_config_dll ole2.dll16 enable_win16
15068wine_fn_config_dll ole2conv.dll16 enable_win16
15069wine_fn_config_dll ole2disp.dll16 enable_win16
15070wine_fn_config_dll ole2nls.dll16 enable_win16
15071wine_fn_config_dll ole2prox.dll16 enable_win16
15072wine_fn_config_dll ole2thk.dll16 enable_win16
1858f43d 15073wine_fn_config_dll ole32 enable_ole32 implib
fc7f1c7e 15074wine_fn_config_test dlls/ole32/tests ole32_test
e2db7946 15075wine_fn_config_dll oleacc enable_oleacc implib,po
fc7f1c7e 15076wine_fn_config_test dlls/oleacc/tests oleacc_test
e2db7946 15077wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
fc7f1c7e 15078wine_fn_config_test dlls/oleaut32/tests oleaut32_test
5cdd8415 15079wine_fn_config_dll olecli.dll16 enable_win16
1858f43d 15080wine_fn_config_dll olecli32 enable_olecli32 implib
5cdd8415 15081wine_fn_config_dll oledb32 enable_oledb32
fc7f1c7e 15082wine_fn_config_test dlls/oledb32/tests oledb32_test
e2db7946 15083wine_fn_config_dll oledlg enable_oledlg implib,po
1858f43d 15084wine_fn_config_dll olepro32 enable_olepro32 implib
5cdd8415 15085wine_fn_config_dll olesvr.dll16 enable_win16
1858f43d 15086wine_fn_config_dll olesvr32 enable_olesvr32 implib
5cdd8415
AJ
15087wine_fn_config_dll olethk32 enable_olethk32
15088wine_fn_config_dll openal32 enable_openal32
65c84d77 15089wine_fn_config_dll opencl enable_opencl
1858f43d 15090wine_fn_config_dll opengl32 enable_opengl32 implib
fc7f1c7e 15091wine_fn_config_test dlls/opengl32/tests opengl32_test
1858f43d 15092wine_fn_config_dll pdh enable_pdh implib
fc7f1c7e 15093wine_fn_config_test dlls/pdh/tests pdh_test
5cdd8415 15094wine_fn_config_dll pidgen enable_pidgen
1858f43d 15095wine_fn_config_dll powrprof enable_powrprof implib
5cdd8415 15096wine_fn_config_dll printui enable_printui
1858f43d 15097wine_fn_config_dll propsys enable_propsys implib
c20908bf 15098wine_fn_config_test dlls/propsys/tests propsys_test
1858f43d 15099wine_fn_config_dll psapi enable_psapi implib
fc7f1c7e 15100wine_fn_config_test dlls/psapi/tests psapi_test
5cdd8415
AJ
15101wine_fn_config_dll pstorec enable_pstorec
15102wine_fn_config_dll qcap enable_qcap
15103wine_fn_config_dll qedit enable_qedit
fc7f1c7e 15104wine_fn_config_test dlls/qedit/tests qedit_test
5cdd8415 15105wine_fn_config_dll qmgr enable_qmgr
fc7f1c7e 15106wine_fn_config_test dlls/qmgr/tests qmgr_test
5cdd8415 15107wine_fn_config_dll qmgrprxy enable_qmgrprxy
1858f43d 15108wine_fn_config_dll quartz enable_quartz implib
fc7f1c7e 15109wine_fn_config_test dlls/quartz/tests quartz_test
5cdd8415
AJ
15110wine_fn_config_dll query enable_query
15111wine_fn_config_dll rasapi16.dll16 enable_win16
1858f43d 15112wine_fn_config_dll rasapi32 enable_rasapi32 implib
fc7f1c7e 15113wine_fn_config_test dlls/rasapi32/tests rasapi32_test
1858f43d 15114wine_fn_config_dll rasdlg enable_rasdlg implib
d8d77809 15115wine_fn_config_dll regapi enable_regapi
1858f43d
AJ
15116wine_fn_config_dll resutils enable_resutils implib
15117wine_fn_config_dll riched20 enable_riched20 implib
fc7f1c7e 15118wine_fn_config_test dlls/riched20/tests riched20_test
5cdd8415 15119wine_fn_config_dll riched32 enable_riched32
fc7f1c7e 15120wine_fn_config_test dlls/riched32/tests riched32_test
1858f43d 15121wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
fc7f1c7e 15122wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
5cdd8415 15123wine_fn_config_dll rsabase enable_rsabase
1858f43d 15124wine_fn_config_dll rsaenh enable_rsaenh implib
fc7f1c7e 15125wine_fn_config_test dlls/rsaenh/tests rsaenh_test
85b3f299 15126wine_fn_config_dll rstrtmgr enable_rstrtmgr
1858f43d 15127wine_fn_config_dll rtutils enable_rtutils implib
1ae673f8 15128wine_fn_config_dll samlib enable_samlib
036fe88e 15129wine_fn_config_dll sane.ds enable_sane_ds po
81f3d68a 15130wine_fn_config_dll scarddlg enable_scarddlg
5cdd8415
AJ
15131wine_fn_config_dll sccbase enable_sccbase
15132wine_fn_config_dll schannel enable_schannel
fc7f1c7e 15133wine_fn_config_test dlls/schannel/tests schannel_test
1858f43d 15134wine_fn_config_dll secur32 enable_secur32 implib
fc7f1c7e 15135wine_fn_config_test dlls/secur32/tests secur32_test
5cdd8415 15136wine_fn_config_dll security enable_security
1858f43d
AJ
15137wine_fn_config_dll sensapi enable_sensapi implib
15138wine_fn_config_dll serialui enable_serialui implib
fc7f1c7e 15139wine_fn_config_test dlls/serialui/tests serialui_test
e2db7946 15140wine_fn_config_dll setupapi enable_setupapi implib,po
fc7f1c7e 15141wine_fn_config_test dlls/setupapi/tests setupapi_test
5cdd8415 15142wine_fn_config_dll setupx.dll16 enable_win16
1858f43d
AJ
15143wine_fn_config_dll sfc enable_sfc implib
15144wine_fn_config_dll sfc_os enable_sfc_os implib
b31d2311 15145wine_fn_config_dll shdoclc enable_shdoclc po
c685f8cb 15146wine_fn_config_dll shdocvw enable_shdocvw implib
fc7f1c7e 15147wine_fn_config_test dlls/shdocvw/tests shdocvw_test
5cdd8415 15148wine_fn_config_dll shell.dll16 enable_win16
e2db7946 15149wine_fn_config_dll shell32 enable_shell32 implib,po
fc7f1c7e 15150wine_fn_config_test dlls/shell32/tests shell32_test
1858f43d 15151wine_fn_config_dll shfolder enable_shfolder implib
e2db7946 15152wine_fn_config_dll shlwapi enable_shlwapi implib,po
fc7f1c7e 15153wine_fn_config_test dlls/shlwapi/tests shlwapi_test
5cdd8415 15154wine_fn_config_dll slbcsp enable_slbcsp
1858f43d
AJ
15155wine_fn_config_dll slc enable_slc implib
15156wine_fn_config_dll snmpapi enable_snmpapi implib
fc7f1c7e 15157wine_fn_config_test dlls/snmpapi/tests snmpapi_test
5cdd8415
AJ
15158wine_fn_config_dll softpub enable_softpub
15159wine_fn_config_dll sound.drv16 enable_win16
1858f43d 15160wine_fn_config_dll spoolss enable_spoolss implib
fc7f1c7e 15161wine_fn_config_test dlls/spoolss/tests spoolss_test
5cdd8415
AJ
15162wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15163wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
1858f43d 15164wine_fn_config_dll sti enable_sti implib
fc7f1c7e 15165wine_fn_config_test dlls/sti/tests sti_test
5cdd8415
AJ
15166wine_fn_config_dll storage.dll16 enable_win16
15167wine_fn_config_dll stress.dll16 enable_win16
96192106 15168wine_fn_config_lib strmbase
fc7f1c7e 15169wine_fn_config_lib strmiids
5cdd8415
AJ
15170wine_fn_config_dll svrapi enable_svrapi
15171wine_fn_config_dll sxs enable_sxs
15172wine_fn_config_dll system.drv16 enable_win16
15173wine_fn_config_dll t2embed enable_t2embed
1858f43d 15174wine_fn_config_dll tapi32 enable_tapi32 implib
5cdd8415
AJ
15175wine_fn_config_dll toolhelp.dll16 enable_win16
15176wine_fn_config_dll traffic enable_traffic
15177wine_fn_config_dll twain.dll16 enable_win16
15178wine_fn_config_dll twain_32 enable_twain_32
fc7f1c7e 15179wine_fn_config_test dlls/twain_32/tests twain_32_test
5cdd8415 15180wine_fn_config_dll typelib.dll16 enable_win16
1858f43d 15181wine_fn_config_dll unicows enable_unicows implib
5cdd8415 15182wine_fn_config_dll updspapi enable_updspapi
1858f43d
AJ
15183wine_fn_config_dll url enable_url implib
15184wine_fn_config_dll urlmon enable_urlmon implib
fc7f1c7e 15185wine_fn_config_test dlls/urlmon/tests urlmon_test
1858f43d 15186wine_fn_config_dll usbd.sys enable_usbd_sys implib
5cdd8415 15187wine_fn_config_dll user.exe16 enable_win16
e2db7946 15188wine_fn_config_dll user32 enable_user32 implib,po
fc7f1c7e 15189wine_fn_config_test dlls/user32/tests user32_test
1858f43d 15190wine_fn_config_dll userenv enable_userenv implib
fc7f1c7e 15191wine_fn_config_test dlls/userenv/tests userenv_test
1858f43d 15192wine_fn_config_dll usp10 enable_usp10 implib
fc7f1c7e 15193wine_fn_config_test dlls/usp10/tests usp10_test
fc7f1c7e 15194wine_fn_config_lib uuid
1858f43d 15195wine_fn_config_dll uxtheme enable_uxtheme implib
fc7f1c7e 15196wine_fn_config_test dlls/uxtheme/tests uxtheme_test
c35aa01c 15197wine_fn_config_dll vbscript enable_vbscript
68c6f58e 15198wine_fn_config_test dlls/vbscript/tests vbscript_test
dd2159c6 15199wine_fn_config_dll vcomp enable_vcomp
5cdd8415 15200wine_fn_config_dll vdhcp.vxd enable_win16
1858f43d 15201wine_fn_config_dll vdmdbg enable_vdmdbg implib
5cdd8415 15202wine_fn_config_dll ver.dll16 enable_win16
1858f43d 15203wine_fn_config_dll version enable_version implib
fc7f1c7e 15204wine_fn_config_test dlls/version/tests version_test
5cdd8415
AJ
15205wine_fn_config_dll vmm.vxd enable_win16
15206wine_fn_config_dll vnbt.vxd enable_win16
15207wine_fn_config_dll vnetbios.vxd enable_win16
15208wine_fn_config_dll vtdapi.vxd enable_win16
15209wine_fn_config_dll vwin32.vxd enable_win16
15210wine_fn_config_dll w32skrnl enable_win16
15211wine_fn_config_dll w32sys.dll16 enable_win16
15212wine_fn_config_dll wbemprox enable_wbemprox
1858f43d 15213wine_fn_config_dll wer enable_wer implib
d8a5bc92 15214wine_fn_config_test dlls/wer/tests wer_test
5cdd8415
AJ
15215wine_fn_config_dll wiaservc enable_wiaservc
15216wine_fn_config_dll win32s16.dll16 enable_win16
15217wine_fn_config_dll win87em.dll16 enable_win16
15218wine_fn_config_dll winaspi.dll16 enable_win16
15219wine_fn_config_dll windebug.dll16 enable_win16
1858f43d 15220wine_fn_config_dll windowscodecs enable_windowscodecs implib
fc7f1c7e 15221wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
5cdd8415 15222wine_fn_config_dll winealsa.drv enable_winealsa_drv
5cdd8415 15223wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
fc7f1c7e 15224wine_fn_config_lib winecrt0
1858f43d 15225wine_fn_config_dll wined3d enable_wined3d implib
2914d655 15226wine_fn_config_dll winegstreamer enable_winegstreamer
5cdd8415
AJ
15227wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15228wine_fn_config_dll winemapi enable_winemapi
15229wine_fn_config_dll winemp3.acm enable_winemp3_acm
5cdd8415 15230wine_fn_config_dll wineoss.drv enable_wineoss_drv
e492fcc8 15231wine_fn_config_dll wineps.drv enable_wineps_drv install-lib
5cdd8415 15232wine_fn_config_dll wineps16.drv16 enable_win16
eefe6f65 15233wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
5cdd8415
AJ
15234wine_fn_config_dll winequartz.drv enable_winequartz_drv
15235wine_fn_config_dll winex11.drv enable_winex11_drv
15236wine_fn_config_dll wing.dll16 enable_win16
15237wine_fn_config_dll wing32 enable_wing32
1858f43d 15238wine_fn_config_dll winhttp enable_winhttp implib
fc7f1c7e 15239wine_fn_config_test dlls/winhttp/tests winhttp_test
e2db7946 15240wine_fn_config_dll wininet enable_wininet implib,po
fc7f1c7e 15241wine_fn_config_test dlls/wininet/tests wininet_test
e2db7946 15242wine_fn_config_dll winmm enable_winmm implib,po
fc7f1c7e 15243wine_fn_config_test dlls/winmm/tests winmm_test
5cdd8415 15244wine_fn_config_dll winnls.dll16 enable_win16
1858f43d
AJ
15245wine_fn_config_dll winnls32 enable_winnls32 implib
15246wine_fn_config_dll winscard enable_winscard implib
5cdd8415 15247wine_fn_config_dll winsock.dll16 enable_win16
e2db7946 15248wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
fc7f1c7e 15249wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
14067ac1 15250wine_fn_config_dll winsta enable_winsta
5cdd8415 15251wine_fn_config_dll wintab.dll16 enable_win16
1858f43d 15252wine_fn_config_dll wintab32 enable_wintab32 implib
fc7f1c7e 15253wine_fn_config_test dlls/wintab32/tests wintab32_test
1858f43d 15254wine_fn_config_dll wintrust enable_wintrust implib
fc7f1c7e 15255wine_fn_config_test dlls/wintrust/tests wintrust_test
303079f1 15256wine_fn_config_dll wlanapi enable_wlanapi
e2db7946 15257wine_fn_config_dll wldap32 enable_wldap32 implib,po
fc7f1c7e 15258wine_fn_config_test dlls/wldap32/tests wldap32_test
5cdd8415
AJ
15259wine_fn_config_dll wmi enable_wmi
15260wine_fn_config_dll wmiutils enable_wmiutils
1858f43d
AJ
15261wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15262wine_fn_config_dll wow32 enable_win16 implib
15263wine_fn_config_dll ws2_32 enable_ws2_32 implib
fc7f1c7e 15264wine_fn_config_test dlls/ws2_32/tests ws2_32_test
1c2f066f 15265wine_fn_config_dll wshom.ocx enable_wshom_ocx
1858f43d
AJ
15266wine_fn_config_dll wsock32 enable_wsock32 implib
15267wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
5cdd8415
AJ
15268wine_fn_config_dll wuapi enable_wuapi
15269wine_fn_config_dll wuaueng enable_wuaueng
934d6761 15270wine_fn_config_dll xapofx1_1 enable_xapofx1_1
5cdd8415
AJ
15271wine_fn_config_dll xinput1_1 enable_xinput1_1
15272wine_fn_config_dll xinput1_2 enable_xinput1_2
6cce7fa0 15273wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
fc7f1c7e 15274wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
5cdd8415
AJ
15275wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15276wine_fn_config_dll xmllite enable_xmllite
fc7f1c7e 15277wine_fn_config_test dlls/xmllite/tests xmllite_test
03642414 15278wine_fn_config_makefile documentation enable_documentation
e492fcc8
AJ
15279wine_fn_config_makefile fonts enable_fonts install-lib
15280wine_fn_config_makefile include enable_include install-dev
03642414 15281wine_fn_config_makefile libs/port enable_libs_port
e492fcc8 15282wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
03642414 15283wine_fn_config_makefile libs/wpp enable_libs_wpp
41107a94 15284wine_fn_config_makefile loader enable_loader install-lib,manpage
ab789c6c 15285wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
d394e042 15286wine_fn_config_program attrib enable_attrib install
30bdbedc 15287wine_fn_config_program cabarc enable_cabarc install
d394e042 15288wine_fn_config_program cacls enable_cacls install
e2db7946
AJ
15289wine_fn_config_program clock enable_clock install,po
15290wine_fn_config_program cmd enable_cmd install,po
fc7f1c7e 15291wine_fn_config_test programs/cmd/tests cmd.exe_test
d394e042
AJ
15292wine_fn_config_program cmdlgtst enable_cmdlgtst
15293wine_fn_config_program control enable_control install
4122cf2d 15294wine_fn_config_program dxdiag enable_dxdiag install,po
d394e042
AJ
15295wine_fn_config_program eject enable_eject install
15296wine_fn_config_program expand enable_expand install
f2ac486e 15297wine_fn_config_program explorer enable_explorer install,po
d394e042
AJ
15298wine_fn_config_program extrac32 enable_extrac32 install
15299wine_fn_config_program hh enable_hh install
e2db7946 15300wine_fn_config_program hostname enable_hostname install,po
d394e042
AJ
15301wine_fn_config_program icinfo enable_icinfo install
15302wine_fn_config_program iexplore enable_iexplore install
e2db7946 15303wine_fn_config_program ipconfig enable_ipconfig install,po
d394e042 15304wine_fn_config_program lodctr enable_lodctr install
f15aea2a 15305wine_fn_config_program mofcomp enable_mofcomp install
d394e042 15306wine_fn_config_program mshta enable_mshta install
41107a94 15307wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
e2db7946 15308wine_fn_config_program net enable_net install,po
8ad7d2e8 15309wine_fn_config_program netsh enable_netsh install
4d3e6f4c 15310wine_fn_config_program ngen enable_ngen install
41107a94 15311wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
e2db7946 15312wine_fn_config_program oleview enable_oleview install,po
d394e042 15313wine_fn_config_program ping enable_ping install
2133b6c3 15314wine_fn_config_program plugplay enable_plugplay install
8959961b 15315wine_fn_config_program presentationfontcache enable_presentationfontcache install
e2db7946
AJ
15316wine_fn_config_program progman enable_progman install,po
15317wine_fn_config_program reg enable_reg install,po
41107a94 15318wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
f3c6c62b 15319wine_fn_config_test programs/regedit/tests regedit.exe_test
ab5fbebf 15320wine_fn_config_program regsvcs enable_regsvcs install
41107a94 15321wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
d394e042 15322wine_fn_config_program rpcss enable_rpcss install
df898ea4 15323wine_fn_config_program rundll.exe16 enable_win16 install
d394e042 15324wine_fn_config_program rundll32 enable_rundll32 install
544da28e 15325wine_fn_config_program sc enable_sc install
d394e042 15326wine_fn_config_program secedit enable_secedit install
1885c3d9 15327wine_fn_config_program servicemodelreg enable_servicemodelreg install
d394e042
AJ
15328wine_fn_config_program services enable_services install
15329wine_fn_config_program spoolsv enable_spoolsv install
e2db7946 15330wine_fn_config_program start enable_start install,po
d394e042 15331wine_fn_config_program svchost enable_svchost install
e2db7946
AJ
15332wine_fn_config_program taskkill enable_taskkill install,po
15333wine_fn_config_program taskmgr enable_taskmgr install,po
d394e042 15334wine_fn_config_program termsv enable_termsv install
e2db7946 15335wine_fn_config_program uninstaller enable_uninstaller install,po
d394e042 15336wine_fn_config_program unlodctr enable_unlodctr install
9d6489a3 15337wine_fn_config_program view enable_view po
41107a94 15338wine_fn_config_program wineboot enable_wineboot install,installbin,manpage
d394e042 15339wine_fn_config_program winebrowser enable_winebrowser install
41107a94
AJ
15340wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
15341wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
15342wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
d394e042 15343wine_fn_config_program winedevice enable_winedevice install
41107a94 15344wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
d394e042 15345wine_fn_config_program winemenubuilder enable_winemenubuilder install
41107a94 15346wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
13700720 15347wine_fn_config_program winemsibuilder enable_winemsibuilder install
41107a94 15348wine_fn_config_program winepath enable_winepath install,installbin,manpage
d394e042
AJ
15349wine_fn_config_program winetest enable_winetest
15350wine_fn_config_program winevdm enable_win16 install
15351wine_fn_config_program winhelp.exe16 enable_win16 install
e2db7946 15352wine_fn_config_program winhlp32 enable_winhlp32 install,po
d394e042
AJ
15353wine_fn_config_program winoldap.mod16 enable_win16 install
15354wine_fn_config_program winver enable_winver install
4b281b2b 15355wine_fn_config_program wmic enable_wmic install
e2db7946
AJ
15356wine_fn_config_program wordpad enable_wordpad install,po
15357wine_fn_config_program write enable_write install,po
16bad58a 15358wine_fn_config_program wscript enable_wscript install
f5eb15a2 15359wine_fn_config_test programs/wscript/tests wscript.exe_test
e2db7946 15360wine_fn_config_program xcopy enable_xcopy install,po
41107a94
AJ
15361wine_fn_config_makefile server enable_server install-lib,manpage
15362wine_fn_config_tool tools install-dev,install-lib,manpage
15363wine_fn_config_tool tools/widl install-dev,manpage
15364wine_fn_config_tool tools/winebuild install-dev,manpage
15365wine_fn_config_tool tools/winedump install-dev,manpage
15366wine_fn_config_tool tools/winegcc install-dev,manpage
15367wine_fn_config_tool tools/wmc install-dev,manpage
15368wine_fn_config_tool tools/wrc install-dev,manpage
626f425b 15369
7c2a4bf2 15370LINGUAS="\
ff71d910 15371ar \
4bca3343 15372bg \
39558f8d 15373ca \
7c2a4bf2
AJ
15374cs \
15375da \
15376de \
c9b52d20
AJ
15377el \
15378en \
7c2a4bf2
AJ
15379en_US \
15380eo \
15381es \
ff71d910 15382fa \
7c2a4bf2
AJ
15383fi \
15384fr \
15385he \
15386hi \
15387hu \
15388it \
15389ja \
15390ko \
15391lt \
15392ml \
15393nb_NO \
15394nl \
15395or \
15396pa \
15397pl \
15398pt_BR \
15399pt_PT \
433e240c 15400rm \
7c2a4bf2
AJ
15401ro \
15402ru \
15403sk \
15404sl \
c0b813f0
AJ
15405sr_RS@cyrillic \
15406sr_RS@latin \
7c2a4bf2
AJ
15407sv \
15408te \
15409th \
15410tr \
15411uk \
15412wa \
15413zh_CN \
15414zh_TW"
15415
15416
15417
39b4ba21
AJ
15418ac_config_commands="$ac_config_commands Makefile"
15419
15420
81b8ee86 15421ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
92b57312
AJ
15422
15423
e5c585e4 15424
5eee9204
AJ
15425if test "x$enable_maintainer_mode" = xyes
15426then
15427 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15428 cd \$(srcdir) && autoconf --warnings=all
5eee9204
AJ
15429\$(srcdir)/include/config.h.in: include/stamp-h.in
15430\$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15431 cd \$(srcdir) && autoheader --warnings=all
367fd228
AJ
15432 @echo timestamp > \$@
15433
15434ALL_POT_FILES =$ALL_POT_FILES
15435all: \$(ALL_PO_FILES)
15436\$(ALL_PO_FILES): \$(srcdir)/po/wine.pot
945ccf52 15437 msgmerge -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
367fd228
AJ
15438\$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15439 msgcat -o \$@ \$(ALL_POT_FILES)"
5eee9204
AJ
15440fi
15441
84fd1f58
AJ
15442if test "x$enable_tools" != xno
15443then
15444 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
15445clean:: __clean__
15446 \$(RM) tools/makedep\$(EXEEXT)"
15447fi
15448
e5c585e4
AJ
15449if test -n "$with_wine64"
15450then
84fd1f58
AJ
15451wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15452fonts server tools:
e5c585e4 15453 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
f3831cf2
AJ
15454$with_wine64/loader/wine:
15455 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
3c42b62f
AJ
15456$with_wine64/loader/wine-preloader:
15457 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
e5c585e4 15458clean::
84fd1f58 15459 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
e5c585e4
AJ
15460fi
15461
f5818d2f 15462cat >confcache <<\_ACEOF
e2991ea7
AJ
15463# This file is a shell script that caches the results of configure
15464# tests run on this system so they can be shared between configure
f5818d2f
AJ
15465# scripts and configure runs, see configure's option --config-cache.
15466# It is not useful on other systems. If it contains results you don't
15467# want to keep, you may remove or edit it.
e2991ea7 15468#
f5818d2f
AJ
15469# config.status only pays attention to the cache file if you give it
15470# the --recheck option to rerun configure.
e2991ea7 15471#
11af04e3 15472# `ac_cv_env_foo' variables (set or unset) will be overridden when
f5818d2f
AJ
15473# loading this file, other *unset* `ac_cv_foo' will be assigned the
15474# following values.
15475
15476_ACEOF
15477
7e6ae4ba
AJ
15478# The following way of writing the cache mishandles newlines in values,
15479# but we know of no workaround that is simple, portable, and efficient.
fc6ffb29 15480# So, we kill variables containing newlines.
e2991ea7
AJ
15481# Ultrix sh set writes to stderr and can't be redirected directly,
15482# and sets the high bit in the cache file unless we assign to the vars.
fc6ffb29
AJ
15483(
15484 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15485 eval ac_val=\$$ac_var
15486 case $ac_val in #(
15487 *${as_nl}*)
15488 case $ac_var in #(
25e9e4f0 15489 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
abf5048b 15490$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
fc6ffb29
AJ
15491 esac
15492 case $ac_var in #(
15493 _ | IFS | as_nl) ;; #(
abf5048b 15494 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25e9e4f0 15495 *) { eval $ac_var=; unset $ac_var;} ;;
fc6ffb29
AJ
15496 esac ;;
15497 esac
15498 done
15499
f5818d2f 15500 (set) 2>&1 |
fc6ffb29
AJ
15501 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15502 *${as_nl}ac_space=\ *)
25e9e4f0
AJ
15503 # `set' does not quote correctly, so add quotes: double-quote
15504 # substitution turns \\\\ into \\, and sed turns \\ into \.
f5818d2f 15505 sed -n \
875927f6
AJ
15506 "s/'/'\\\\''/g;
15507 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
fc6ffb29 15508 ;; #(
f5818d2f
AJ
15509 *)
15510 # `set' quotes correctly as required by POSIX, so do not add quotes.
fc6ffb29 15511 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
f5818d2f 15512 ;;
fc6ffb29
AJ
15513 esac |
15514 sort
15515) |
f5818d2f 15516 sed '
fc6ffb29 15517 /^ac_cv_env_/b end
f5818d2f 15518 t clear
fc6ffb29 15519 :clear
f5818d2f
AJ
15520 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15521 t end
fc6ffb29
AJ
15522 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15523 :end' >>confcache
0ebeb530
JW
15524if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15525 if test -w "$cache_file"; then
9797da40 15526 if test "x$cache_file" != "x/dev/null"; then
25e9e4f0 15527 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
abf5048b 15528$as_echo "$as_me: updating cache $cache_file" >&6;}
9797da40
AJ
15529 if test ! -f "$cache_file" || test -h "$cache_file"; then
15530 cat confcache >"$cache_file"
15531 else
15532 case $cache_file in #(
15533 */* | ?:*)
15534 mv -f confcache "$cache_file"$$ &&
15535 mv -f "$cache_file"$$ "$cache_file" ;; #(
15536 *)
15537 mv -f confcache "$cache_file" ;;
15538 esac
15539 fi
15540 fi
e2991ea7 15541 else
25e9e4f0 15542 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
abf5048b 15543$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
e2991ea7
AJ
15544 fi
15545fi
15546rm -f confcache
15547
e2991ea7
AJ
15548test "x$prefix" = xNONE && prefix=$ac_default_prefix
15549# Let make expand exec_prefix.
15550test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15551
18f92e76 15552DEFS=-DHAVE_CONFIG_H
e2991ea7 15553
11af04e3
AJ
15554ac_libobjs=
15555ac_ltlibobjs=
a53c44a6 15556U=
11af04e3
AJ
15557for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15558 # 1. Remove the extension, and $U if already installed.
fc6ffb29 15559 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
abf5048b 15560 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
fc6ffb29
AJ
15561 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15562 # will be set to the directory where LIBOBJS objects are built.
25e9e4f0
AJ
15563 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15564 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11af04e3
AJ
15565done
15566LIBOBJS=$ac_libobjs
15567
15568LTLIBOBJS=$ac_ltlibobjs
15569
15570
daa2886c 15571
9797da40 15572: "${CONFIG_STATUS=./config.status}"
abf5048b 15573ac_write_fail=0
f5818d2f
AJ
15574ac_clean_files_save=$ac_clean_files
15575ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25e9e4f0 15576{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
abf5048b 15577$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25e9e4f0
AJ
15578as_write_fail=0
15579cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
f5818d2f 15580#! $SHELL
daa2886c 15581# Generated by $as_me.
e2991ea7 15582# Run this file to recreate the current configuration.
e2991ea7 15583# Compiler output produced by configure, useful for debugging
f5818d2f 15584# configure, is in config.log if it exists.
e2991ea7 15585
f5818d2f 15586debug=false
e24bcc77
AJ
15587ac_cs_recheck=false
15588ac_cs_silent=false
f5818d2f 15589
25e9e4f0
AJ
15590SHELL=\${CONFIG_SHELL-$SHELL}
15591export SHELL
15592_ASEOF
15593cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15594## -------------------- ##
15595## M4sh Initialization. ##
15596## -------------------- ##
daa2886c 15597
dc9f3843
AJ
15598# Be more Bourne compatible
15599DUALCASE=1; export DUALCASE # for MKS sh
25e9e4f0 15600if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
f5818d2f
AJ
15601 emulate sh
15602 NULLCMD=:
abf5048b 15603 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11af04e3
AJ
15604 # is contrary to our usage. Disable this feature.
15605 alias -g '${1+"$@"}'='"$@"'
fc6ffb29
AJ
15606 setopt NO_GLOB_SUBST
15607else
25e9e4f0
AJ
15608 case `(set -o) 2>/dev/null` in #(
15609 *posix*) :
15610 set -o posix ;; #(
15611 *) :
15612 ;;
dc9f3843 15613esac
f5818d2f 15614fi
dc9f3843
AJ
15615
15616
abf5048b
AJ
15617as_nl='
15618'
15619export as_nl
15620# Printing a long string crashes Solaris 7 /usr/bin/printf.
15621as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15622as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15623as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25e9e4f0
AJ
15624# Prefer a ksh shell builtin over an external printf program on Solaris,
15625# but without wasting forks for bash or zsh.
15626if test -z "$BASH_VERSION$ZSH_VERSION" \
15627 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15628 as_echo='print -r --'
15629 as_echo_n='print -rn --'
15630elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
abf5048b
AJ
15631 as_echo='printf %s\n'
15632 as_echo_n='printf %s'
15633else
15634 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15635 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15636 as_echo_n='/usr/ucb/echo -n'
fc6ffb29 15637 else
abf5048b
AJ
15638 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15639 as_echo_n_body='eval
15640 arg=$1;
25e9e4f0 15641 case $arg in #(
abf5048b
AJ
15642 *"$as_nl"*)
15643 expr "X$arg" : "X\\(.*\\)$as_nl";
15644 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15645 esac;
15646 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15647 '
15648 export as_echo_n_body
15649 as_echo_n='sh -c $as_echo_n_body as_echo'
fc6ffb29 15650 fi
abf5048b
AJ
15651 export as_echo_body
15652 as_echo='sh -c $as_echo_body as_echo'
15653fi
15654
15655# The user is always right.
15656if test "${PATH_SEPARATOR+set}" != set; then
15657 PATH_SEPARATOR=:
15658 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15659 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15660 PATH_SEPARATOR=';'
15661 }
fc6ffb29
AJ
15662fi
15663
11af04e3 15664
fc6ffb29
AJ
15665# IFS
15666# We need space, tab and new line, in precisely that order. Quoting is
15667# there to prevent editors from complaining about space-tab.
15668# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15669# splitting by setting IFS to empty value.)
fc6ffb29
AJ
15670IFS=" "" $as_nl"
15671
15672# Find who we are. Look in the path if we contain no directory separator.
9797da40 15673as_myself=
25e9e4f0 15674case $0 in #((
fc6ffb29
AJ
15675 *[\\/]* ) as_myself=$0 ;;
15676 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15677for as_dir in $PATH
15678do
15679 IFS=$as_save_IFS
15680 test -z "$as_dir" && as_dir=.
25e9e4f0
AJ
15681 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15682 done
fc6ffb29
AJ
15683IFS=$as_save_IFS
15684
15685 ;;
15686esac
15687# We did not find ourselves, most probably we were run as `sh COMMAND'
15688# in which case we are not to be found in the path.
15689if test "x$as_myself" = x; then
15690 as_myself=$0
15691fi
15692if test ! -f "$as_myself"; then
abf5048b 15693 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25e9e4f0 15694 exit 1
fc6ffb29
AJ
15695fi
15696
25e9e4f0
AJ
15697# Unset variables that we do not need and which cause bugs (e.g. in
15698# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15699# suppresses any "Segmentation fault" message there. '((' could
15700# trigger a bug in pdksh 5.2.14.
15701for as_var in BASH_ENV ENV MAIL MAILPATH
15702do eval test x\${$as_var+set} = xset \
15703 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
fc6ffb29 15704done
11af04e3
AJ
15705PS1='$ '
15706PS2='> '
15707PS4='+ '
15708
15709# NLS nuisances.
abf5048b
AJ
15710LC_ALL=C
15711export LC_ALL
15712LANGUAGE=C
15713export LANGUAGE
11af04e3 15714
25e9e4f0
AJ
15715# CDPATH.
15716(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15717
15718
a53c44a6
AJ
15719# as_fn_error STATUS ERROR [LINENO LOG_FD]
15720# ----------------------------------------
25e9e4f0
AJ
15721# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15722# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
a53c44a6 15723# script with STATUS, using 1 if that was 0.
25e9e4f0
AJ
15724as_fn_error ()
15725{
a53c44a6
AJ
15726 as_status=$1; test $as_status -eq 0 && as_status=1
15727 if test "$4"; then
15728 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15729 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25e9e4f0 15730 fi
a53c44a6 15731 $as_echo "$as_me: error: $2" >&2
25e9e4f0
AJ
15732 as_fn_exit $as_status
15733} # as_fn_error
15734
15735
15736# as_fn_set_status STATUS
15737# -----------------------
15738# Set $? to STATUS, without forking.
15739as_fn_set_status ()
15740{
15741 return $1
15742} # as_fn_set_status
15743
15744# as_fn_exit STATUS
15745# -----------------
15746# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15747as_fn_exit ()
15748{
15749 set +e
15750 as_fn_set_status $1
15751 exit $1
15752} # as_fn_exit
15753
15754# as_fn_unset VAR
15755# ---------------
15756# Portably unset VAR.
15757as_fn_unset ()
15758{
15759 { eval $1=; unset $1;}
15760}
15761as_unset=as_fn_unset
15762# as_fn_append VAR VALUE
15763# ----------------------
15764# Append the text in VALUE to the end of the definition contained in VAR. Take
15765# advantage of any shell optimizations that allow amortized linear growth over
15766# repeated appends, instead of the typical quadratic growth present in naive
15767# implementations.
15768if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15769 eval 'as_fn_append ()
15770 {
15771 eval $1+=\$2
15772 }'
15773else
15774 as_fn_append ()
15775 {
15776 eval $1=\$$1\$2
15777 }
15778fi # as_fn_append
15779
15780# as_fn_arith ARG...
15781# ------------------
15782# Perform arithmetic evaluation on the ARGs, and store the result in the
15783# global $as_val. Take advantage of shells that can avoid forks. The arguments
15784# must be portable across $(()) and expr.
15785if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15786 eval 'as_fn_arith ()
15787 {
15788 as_val=$(( $* ))
15789 }'
15790else
15791 as_fn_arith ()
15792 {
15793 as_val=`expr "$@" || test $? -eq 1`
15794 }
15795fi # as_fn_arith
15796
15797
fc6ffb29
AJ
15798if expr a : '\(a\)' >/dev/null 2>&1 &&
15799 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11af04e3
AJ
15800 as_expr=expr
15801else
15802 as_expr=false
15803fi
15804
fc6ffb29 15805if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11af04e3
AJ
15806 as_basename=basename
15807else
15808 as_basename=false
15809fi
daa2886c 15810
25e9e4f0
AJ
15811if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15812 as_dirname=dirname
15813else
15814 as_dirname=false
15815fi
daa2886c 15816
fc6ffb29 15817as_me=`$as_basename -- "$0" ||
daa2886c
AJ
15818$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15819 X"$0" : 'X\(//\)$' \| \
fc6ffb29 15820 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
abf5048b 15821$as_echo X/"$0" |
fc6ffb29
AJ
15822 sed '/^.*\/\([^/][^/]*\)\/*$/{
15823 s//\1/
15824 q
15825 }
15826 /^X\/\(\/\/\)$/{
15827 s//\1/
15828 q
15829 }
15830 /^X\/\(\/\).*/{
15831 s//\1/
15832 q
15833 }
15834 s/.*/./; q'`
daa2886c 15835
25e9e4f0
AJ
15836# Avoid depending upon Character Ranges.
15837as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15838as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15839as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15840as_cr_digits='0123456789'
15841as_cr_alnum=$as_cr_Letters$as_cr_digits
fc6ffb29
AJ
15842
15843ECHO_C= ECHO_N= ECHO_T=
25e9e4f0 15844case `echo -n x` in #(((((
fc6ffb29 15845-n*)
25e9e4f0 15846 case `echo 'xy\c'` in
fc6ffb29 15847 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25e9e4f0
AJ
15848 xy) ECHO_C='\c';;
15849 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15850 ECHO_T=' ';;
fc6ffb29
AJ
15851 esac;;
15852*)
15853 ECHO_N='-n';;
daa2886c 15854esac
f5818d2f
AJ
15855
15856rm -f conf$$ conf$$.exe conf$$.file
fc6ffb29
AJ
15857if test -d conf$$.dir; then
15858 rm -f conf$$.dir/conf$$.file
15859else
15860 rm -f conf$$.dir
abf5048b
AJ
15861 mkdir conf$$.dir 2>/dev/null
15862fi
15863if (echo >conf$$.file) 2>/dev/null; then
15864 if ln -s conf$$.file conf$$ 2>/dev/null; then
15865 as_ln_s='ln -s'
15866 # ... but there are two gotchas:
15867 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15868 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15869 # In both cases, we have to default to `cp -p'.
15870 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15871 as_ln_s='cp -p'
15872 elif ln conf$$.file conf$$ 2>/dev/null; then
15873 as_ln_s=ln
15874 else
f5818d2f 15875 as_ln_s='cp -p'
abf5048b 15876 fi
f5818d2f
AJ
15877else
15878 as_ln_s='cp -p'
15879fi
fc6ffb29
AJ
15880rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15881rmdir conf$$.dir 2>/dev/null
f5818d2f 15882
25e9e4f0
AJ
15883
15884# as_fn_mkdir_p
15885# -------------
15886# Create "$as_dir" as a directory, including parents if necessary.
15887as_fn_mkdir_p ()
15888{
15889
15890 case $as_dir in #(
15891 -*) as_dir=./$as_dir;;
15892 esac
15893 test -d "$as_dir" || eval $as_mkdir_p || {
15894 as_dirs=
15895 while :; do
15896 case $as_dir in #(
15897 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15898 *) as_qdir=$as_dir;;
15899 esac
15900 as_dirs="'$as_qdir' $as_dirs"
15901 as_dir=`$as_dirname -- "$as_dir" ||
15902$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15903 X"$as_dir" : 'X\(//\)[^/]' \| \
15904 X"$as_dir" : 'X\(//\)$' \| \
15905 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15906$as_echo X"$as_dir" |
15907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15908 s//\1/
15909 q
15910 }
15911 /^X\(\/\/\)[^/].*/{
15912 s//\1/
15913 q
15914 }
15915 /^X\(\/\/\)$/{
15916 s//\1/
15917 q
15918 }
15919 /^X\(\/\).*/{
15920 s//\1/
15921 q
15922 }
15923 s/.*/./; q'`
15924 test -d "$as_dir" && break
15925 done
15926 test -z "$as_dirs" || eval "mkdir $as_dirs"
a53c44a6 15927 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25e9e4f0
AJ
15928
15929
15930} # as_fn_mkdir_p
11af04e3 15931if mkdir -p . 2>/dev/null; then
25e9e4f0 15932 as_mkdir_p='mkdir -p "$as_dir"'
11af04e3 15933else
875927f6 15934 test -d ./-p && rmdir ./-p
11af04e3
AJ
15935 as_mkdir_p=false
15936fi
15937
dc9f3843
AJ
15938if test -x / >/dev/null 2>&1; then
15939 as_test_x='test -x'
fc6ffb29 15940else
dc9f3843
AJ
15941 if ls -dL / >/dev/null 2>&1; then
15942 as_ls_L_option=L
15943 else
15944 as_ls_L_option=
15945 fi
15946 as_test_x='
15947 eval sh -c '\''
15948 if test -d "$1"; then
abf5048b 15949 test -d "$1/.";
dc9f3843 15950 else
25e9e4f0 15951 case $1 in #(
abf5048b 15952 -*)set "./$1";;
dc9f3843 15953 esac;
25e9e4f0 15954 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
dc9f3843
AJ
15955 ???[sx]*):;;*)false;;esac;fi
15956 '\'' sh
15957 '
fc6ffb29 15958fi
dc9f3843 15959as_executable_p=$as_test_x
f5818d2f 15960
daa2886c 15961# Sed expression to map a string onto a valid CPP name.
875927f6 15962as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
daa2886c
AJ
15963
15964# Sed expression to map a string onto a valid variable name.
875927f6 15965as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
f5818d2f 15966
f5818d2f 15967
f5818d2f 15968exec 6>&1
25e9e4f0
AJ
15969## ----------------------------------- ##
15970## Main body of $CONFIG_STATUS script. ##
15971## ----------------------------------- ##
15972_ASEOF
15973test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
f5818d2f 15974
25e9e4f0
AJ
15975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15976# Save the log message, to keep $0 and so on meaningful, and to
daa2886c 15977# report actual input values of CONFIG_FILES etc. instead of their
fc6ffb29
AJ
15978# values after options handling.
15979ac_log="
8c00ee0b 15980This file was extended by Wine $as_me 1.3.26, which was
9797da40 15981generated by GNU Autoconf 2.68. Invocation command line was
daa2886c
AJ
15982
15983 CONFIG_FILES = $CONFIG_FILES
15984 CONFIG_HEADERS = $CONFIG_HEADERS
15985 CONFIG_LINKS = $CONFIG_LINKS
15986 CONFIG_COMMANDS = $CONFIG_COMMANDS
15987 $ $0 $@
15988
fc6ffb29
AJ
15989on `(hostname || uname -n) 2>/dev/null | sed 1q`
15990"
15991
f5818d2f
AJ
15992_ACEOF
15993
abf5048b
AJ
15994case $ac_config_files in *"
15995"*) set x $ac_config_files; shift; ac_config_files=$*;;
15996esac
15997
15998case $ac_config_headers in *"
15999"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16000esac
16001
16002
16003cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f5818d2f 16004# Files that config.status was made for.
fc6ffb29
AJ
16005config_files="$ac_config_files"
16006config_headers="$ac_config_headers"
7d020c9f 16007config_links="$ac_config_links"
fc6ffb29 16008config_commands="$ac_config_commands"
f5818d2f 16009
fc6ffb29 16010_ACEOF
f5818d2f 16011
abf5048b 16012cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f5818d2f 16013ac_cs_usage="\
25e9e4f0
AJ
16014\`$as_me' instantiates files and other configuration actions
16015from templates according to the current configuration. Unless the files
16016and actions are specified as TAGs, all are instantiated by default.
f5818d2f 16017
25e9e4f0 16018Usage: $0 [OPTION]... [TAG]...
f5818d2f
AJ
16019
16020 -h, --help print this help, then exit
78bd1948 16021 -V, --version print version number and configuration settings, then exit
fa8c4f76 16022 --config print configuration, then exit
abf5048b
AJ
16023 -q, --quiet, --silent
16024 do not print progress messages
f5818d2f
AJ
16025 -d, --debug don't remove temporary files
16026 --recheck update $as_me by reconfiguring in the same conditions
abf5048b
AJ
16027 --file=FILE[:TEMPLATE]
16028 instantiate the configuration file FILE
16029 --header=FILE[:TEMPLATE]
16030 instantiate the configuration header FILE
f5818d2f
AJ
16031
16032Configuration files:
16033$config_files
16034
16035Configuration headers:
16036$config_headers
16037
7d020c9f
AJ
16038Configuration links:
16039$config_links
16040
f5818d2f
AJ
16041Configuration commands:
16042$config_commands
16043
25e9e4f0
AJ
16044Report bugs to <wine-devel@winehq.org>.
16045Wine home page: <http://www.winehq.org>."
f5818d2f 16046
fc6ffb29 16047_ACEOF
abf5048b 16048cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
fa8c4f76 16049ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
f5818d2f 16050ac_cs_version="\\
8c00ee0b 16051Wine config.status 1.3.26
9797da40 16052configured by $0, generated by GNU Autoconf 2.68,
fa8c4f76 16053 with options \\"\$ac_cs_config\\"
f5818d2f 16054
a53c44a6 16055Copyright (C) 2010 Free Software Foundation, Inc.
f5818d2f
AJ
16056This config.status script is free software; the Free Software Foundation
16057gives unlimited permission to copy, distribute and modify it."
fc6ffb29
AJ
16058
16059ac_pwd='$ac_pwd'
16060srcdir='$srcdir'
16061INSTALL='$INSTALL'
abf5048b 16062test -n "\$AWK" || AWK=awk
daa2886c 16063_ACEOF
f5818d2f 16064
abf5048b
AJ
16065cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16066# The default lists apply if the user does not specify any file.
f5818d2f
AJ
16067ac_need_defaults=:
16068while test $# != 0
e2991ea7 16069do
f5818d2f 16070 case $1 in
a53c44a6 16071 --*=?*)
fc6ffb29
AJ
16072 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16073 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11af04e3
AJ
16074 ac_shift=:
16075 ;;
a53c44a6
AJ
16076 --*=)
16077 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16078 ac_optarg=
16079 ac_shift=:
16080 ;;
fc6ffb29 16081 *)
11af04e3
AJ
16082 ac_option=$1
16083 ac_optarg=$2
16084 ac_shift=shift
f5818d2f 16085 ;;
f5818d2f
AJ
16086 esac
16087
11af04e3 16088 case $ac_option in
f5818d2f 16089 # Handling of the options.
e24bcc77
AJ
16090 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16091 ac_cs_recheck=: ;;
fc6ffb29 16092 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
abf5048b 16093 $as_echo "$ac_cs_version"; exit ;;
fa8c4f76
AJ
16094 --config | --confi | --conf | --con | --co | --c )
16095 $as_echo "$ac_cs_config"; exit ;;
fc6ffb29 16096 --debug | --debu | --deb | --de | --d | -d )
f5818d2f
AJ
16097 debug=: ;;
16098 --file | --fil | --fi | --f )
11af04e3 16099 $ac_shift
abf5048b
AJ
16100 case $ac_optarg in
16101 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
a53c44a6 16102 '') as_fn_error $? "missing file argument" ;;
abf5048b 16103 esac
25e9e4f0 16104 as_fn_append CONFIG_FILES " '$ac_optarg'"
f5818d2f
AJ
16105 ac_need_defaults=false;;
16106 --header | --heade | --head | --hea )
11af04e3 16107 $ac_shift
abf5048b
AJ
16108 case $ac_optarg in
16109 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16110 esac
25e9e4f0 16111 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
f5818d2f 16112 ac_need_defaults=false;;
fc6ffb29
AJ
16113 --he | --h)
16114 # Conflict between --help and --header
a53c44a6 16115 as_fn_error $? "ambiguous option: \`$1'
25e9e4f0 16116Try \`$0 --help' for more information.";;
fc6ffb29 16117 --help | --hel | -h )
abf5048b 16118 $as_echo "$ac_cs_usage"; exit ;;
e24bcc77
AJ
16119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16120 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16121 ac_cs_silent=: ;;
f5818d2f
AJ
16122
16123 # This is an error.
a53c44a6 16124 -*) as_fn_error $? "unrecognized option: \`$1'
25e9e4f0 16125Try \`$0 --help' for more information." ;;
f5818d2f 16126
25e9e4f0 16127 *) as_fn_append ac_config_targets " $1"
fc6ffb29 16128 ac_need_defaults=false ;;
f5818d2f 16129
e2991ea7 16130 esac
f5818d2f 16131 shift
e2991ea7
AJ
16132done
16133
e24bcc77
AJ
16134ac_configure_extra_args=
16135
16136if $ac_cs_silent; then
16137 exec 6>/dev/null
16138 ac_configure_extra_args="$ac_configure_extra_args --silent"
16139fi
16140
16141_ACEOF
abf5048b 16142cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
e24bcc77 16143if \$ac_cs_recheck; then
abf5048b
AJ
16144 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16145 shift
16146 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16147 CONFIG_SHELL='$SHELL'
fc6ffb29 16148 export CONFIG_SHELL
abf5048b 16149 exec "\$@"
e24bcc77
AJ
16150fi
16151
f5818d2f 16152_ACEOF
abf5048b 16153cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fc6ffb29
AJ
16154exec 5>>config.log
16155{
16156 echo
16157 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16158## Running $as_me. ##
16159_ASBOX
abf5048b 16160 $as_echo "$ac_log"
fc6ffb29 16161} >&5
e2991ea7 16162
fc6ffb29 16163_ACEOF
abf5048b 16164cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39b4ba21
AJ
16165#
16166# INIT-COMMANDS
16167#
16168wine_fn_output_makefile ()
16169{
16170 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16171$ALL_MAKEFILE_DEPENDS
16172_WINE_EOF
a53c44a6 16173 as_fn_error $? "could not create Makefile" "$LINENO" 5
39b4ba21
AJ
16174}
16175
fc6ffb29 16176_ACEOF
daa2886c 16177
abf5048b 16178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fc6ffb29
AJ
16179
16180# Handling of arguments.
f5818d2f
AJ
16181for ac_config_target in $ac_config_targets
16182do
fc6ffb29
AJ
16183 case $ac_config_target in
16184 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
c4704c2d 16185 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
40977bf1 16186 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
a6320526 16187 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
ce12296c
AJ
16188 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16189 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16190 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16191 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
321d3883 16192 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
7d020c9f 16193 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
4422d22c 16194 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
4cffb2d0 16195 "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
7dfc4477
AJ
16196 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16197 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
1c60e3bf 16198 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
b8a2e3b8 16199 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
fc6ffb29
AJ
16200 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16201 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16202 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
cb1fc8f4 16203 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
fc6ffb29
AJ
16204 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16205 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
fc6ffb29 16206 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
39b4ba21 16207 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
81b8ee86 16208 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
fc6ffb29 16209
9797da40 16210 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
f5818d2f
AJ
16211 esac
16212done
16213
fc6ffb29 16214
f5818d2f
AJ
16215# If the user did not use the arguments to specify the items to instantiate,
16216# then the envvar interface is used. Set only those that are not.
16217# We use the long form for the default assignment because of an extremely
16218# bizarre bug on SunOS 4.1.3.
16219if $ac_need_defaults; then
16220 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16221 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7d020c9f 16222 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
f5818d2f
AJ
16223 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16224fi
16225
e24bcc77 16226# Have a temporary directory for convenience. Make it in the build tree
fc6ffb29 16227# simply because there is no reason against having it here, and in addition,
e24bcc77 16228# creating and moving files from /tmp can sometimes cause problems.
fc6ffb29
AJ
16229# Hook for its removal unless debugging.
16230# Note that there is a small window in which the directory will not be cleaned:
16231# after its creation but before its name has been assigned to `$tmp'.
f5818d2f
AJ
16232$debug ||
16233{
9797da40 16234 tmp= ac_tmp=
fc6ffb29 16235 trap 'exit_status=$?
9797da40
AJ
16236 : "${ac_tmp:=$tmp}"
16237 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
fc6ffb29 16238' 0
25e9e4f0 16239 trap 'as_fn_exit 1' 1 2 13 15
f5818d2f 16240}
f5818d2f 16241# Create a (secure) tmp directory for tmp files.
e24bcc77 16242
f5818d2f 16243{
fc6ffb29 16244 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9797da40 16245 test -d "$tmp"
f5818d2f
AJ
16246} ||
16247{
fc6ffb29
AJ
16248 tmp=./conf$$-$RANDOM
16249 (umask 077 && mkdir "$tmp")
a53c44a6 16250} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9797da40 16251ac_tmp=$tmp
f5818d2f 16252
abf5048b
AJ
16253# Set up the scripts for CONFIG_FILES section.
16254# No need to generate them if there are no CONFIG_FILES.
16255# This happens for instance with `./config.status config.h'.
fc6ffb29
AJ
16256if test -n "$CONFIG_FILES"; then
16257
abf5048b
AJ
16258if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16259 ac_cs_awk_getline=:
16260 ac_cs_awk_pipe_init=
16261 ac_cs_awk_read_file='
16262 while ((getline aline < (F[key])) > 0)
16263 print(aline)
16264 close(F[key])'
16265 ac_cs_awk_pipe_fini=
16266else
16267 ac_cs_awk_getline=false
16268 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16269 ac_cs_awk_read_file='
16270 print "|#_!!_#|"
16271 print "cat " F[key] " &&"
16272 '$ac_cs_awk_pipe_init
16273 # The final `:' finishes the AND list.
16274 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16275fi
25e9e4f0
AJ
16276ac_cr=`echo X | tr X '\015'`
16277# On cygwin, bash can eat \r inside `` if the user requested igncr.
16278# But we know of no other shell where ac_cr would be empty at this
16279# point, so we can use a bashism as a fallback.
16280if test "x$ac_cr" = x; then
16281 eval ac_cr=\$\'\\r\'
16282fi
abf5048b
AJ
16283ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16284if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
a53c44a6 16285 ac_cs_awk_cr='\\r'
abf5048b
AJ
16286else
16287 ac_cs_awk_cr=$ac_cr
16288fi
fc6ffb29 16289
9797da40 16290echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
abf5048b 16291_ACEOF
fc6ffb29 16292
abf5048b
AJ
16293# Create commands to substitute file output variables.
16294{
16295 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
9797da40 16296 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
abf5048b
AJ
16297 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16298 echo "_ACAWK" &&
16299 echo "_ACEOF"
16300} >conf$$files.sh &&
16301. ./conf$$files.sh ||
a53c44a6 16302 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
abf5048b 16303rm -f conf$$files.sh
fc6ffb29 16304
abf5048b
AJ
16305{
16306 echo "cat >conf$$subs.awk <<_ACEOF" &&
16307 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16308 echo "_ACEOF"
16309} >conf$$subs.sh ||
a53c44a6
AJ
16310 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16311ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
fc6ffb29
AJ
16312ac_delim='%!_!# '
16313for ac_last_try in false false false false false :; do
abf5048b 16314 . ./conf$$subs.sh ||
a53c44a6 16315 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
abf5048b
AJ
16316
16317 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16318 if test $ac_delim_n = $ac_delim_num; then
fc6ffb29
AJ
16319 break
16320 elif $ac_last_try; then
a53c44a6 16321 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
fc6ffb29
AJ
16322 else
16323 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
da0cfb36 16324 fi
fc6ffb29 16325done
abf5048b
AJ
16326rm -f conf$$subs.sh
16327
16328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9797da40 16329cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
abf5048b
AJ
16330_ACEOF
16331sed -n '
16332h
16333s/^/S["/; s/!.*/"]=/
16334p
16335g
16336s/^[^!]*!//
16337:repl
16338t repl
16339s/'"$ac_delim"'$//
16340t delim
16341:nl
16342h
fa8c4f76 16343s/\(.\{148\}\)..*/\1/
abf5048b
AJ
16344t more1
16345s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16346p
16347n
16348b repl
16349:more1
16350s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16351p
16352g
16353s/.\{148\}//
16354t nl
16355:delim
16356h
fa8c4f76 16357s/\(.\{148\}\)..*/\1/
abf5048b
AJ
16358t more2
16359s/["\\]/\\&/g; s/^/"/; s/$/"/
16360p
16361b
16362:more2
16363s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16364p
16365g
16366s/.\{148\}//
16367t delim
16368' <conf$$subs.awk | sed '
16369/^[^""]/{
16370 N
16371 s/\n//
fc6ffb29 16372}
abf5048b
AJ
16373' >>$CONFIG_STATUS || ac_write_fail=1
16374rm -f conf$$subs.awk
16375cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16376_ACAWK
9797da40 16377cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
abf5048b
AJ
16378 for (key in S) S_is_set[key] = 1
16379 FS = "\a"
16380 \$ac_cs_awk_pipe_init
fc6ffb29 16381}
abf5048b
AJ
16382{
16383 line = $ 0
16384 nfields = split(line, field, "@")
16385 substed = 0
16386 len = length(field[1])
16387 for (i = 2; i < nfields; i++) {
16388 key = field[i]
16389 keylen = length(key)
16390 if (S_is_set[key]) {
16391 value = S[key]
16392 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16393 len += length(value) + length(field[++i])
16394 substed = 1
16395 } else
16396 len += 1 + keylen
16397 }
16398 if (nfields == 3 && !substed) {
16399 key = field[2]
16400 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16401 \$ac_cs_awk_read_file
16402 next
16403 }
16404 }
16405 print line
fc6ffb29 16406}
abf5048b
AJ
16407\$ac_cs_awk_pipe_fini
16408_ACAWK
fc6ffb29 16409_ACEOF
abf5048b
AJ
16410cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16411if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16412 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16413else
16414 cat
9797da40 16415fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
a53c44a6 16416 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
fc6ffb29 16417_ACEOF
fc6ffb29 16418
a53c44a6
AJ
16419# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16420# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
fc6ffb29
AJ
16421# trailing colons and then remove the whole line if VPATH becomes empty
16422# (actually we leave an empty line to preserve line numbers).
16423if test "x$srcdir" = x.; then
a53c44a6
AJ
16424 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16425h
16426s///
16427s/^/:/
16428s/[ ]*$/:/
16429s/:\$(srcdir):/:/g
16430s/:\${srcdir}:/:/g
16431s/:@srcdir@:/:/g
16432s/^:*//
fc6ffb29 16433s/:*$//
a53c44a6
AJ
16434x
16435s/\(=[ ]*\).*/\1/
16436G
16437s/\n//
fc6ffb29
AJ
16438s/^[^=]*=[ ]*$//
16439}'
16440fi
16441
abf5048b 16442cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fc6ffb29
AJ
16443fi # test -n "$CONFIG_FILES"
16444
abf5048b
AJ
16445# Set up the scripts for CONFIG_HEADERS section.
16446# No need to generate them if there are no CONFIG_HEADERS.
16447# This happens for instance with `./config.status Makefile'.
16448if test -n "$CONFIG_HEADERS"; then
9797da40 16449cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
abf5048b
AJ
16450BEGIN {
16451_ACEOF
16452
16453# Transform confdefs.h into an awk script `defines.awk', embedded as
16454# here-document in config.status, that substitutes the proper values into
16455# config.h.in to produce config.h.
16456
16457# Create a delimiter string that does not exist in confdefs.h, to ease
16458# handling of long lines.
16459ac_delim='%!_!# '
16460for ac_last_try in false false :; do
9797da40
AJ
16461 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16462 if test -z "$ac_tt"; then
abf5048b
AJ
16463 break
16464 elif $ac_last_try; then
a53c44a6 16465 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
abf5048b
AJ
16466 else
16467 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16468 fi
16469done
16470
16471# For the awk script, D is an array of macro values keyed by name,
16472# likewise P contains macro parameters if any. Preserve backslash
16473# newline sequences.
16474
16475ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16476sed -n '
16477s/.\{148\}/&'"$ac_delim"'/g
16478t rset
16479:rset
16480s/^[ ]*#[ ]*define[ ][ ]*/ /
16481t def
16482d
16483:def
16484s/\\$//
16485t bsnl
16486s/["\\]/\\&/g
16487s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16488D["\1"]=" \3"/p
16489s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16490d
16491:bsnl
16492s/["\\]/\\&/g
16493s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16494D["\1"]=" \3\\\\\\n"\\/p
16495t cont
16496s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16497t cont
16498d
16499:cont
16500n
16501s/.\{148\}/&'"$ac_delim"'/g
16502t clear
16503:clear
16504s/\\$//
16505t bsnlc
16506s/["\\]/\\&/g; s/^/"/; s/$/"/p
16507d
16508:bsnlc
16509s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16510b cont
16511' <confdefs.h | sed '
16512s/'"$ac_delim"'/"\\\
16513"/g' >>$CONFIG_STATUS || ac_write_fail=1
16514
16515cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16516 for (key in D) D_is_set[key] = 1
16517 FS = "\a"
16518}
16519/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16520 line = \$ 0
16521 split(line, arg, " ")
16522 if (arg[1] == "#") {
16523 defundef = arg[2]
16524 mac1 = arg[3]
16525 } else {
16526 defundef = substr(arg[1], 2)
16527 mac1 = arg[2]
16528 }
16529 split(mac1, mac2, "(") #)
16530 macro = mac2[1]
16531 prefix = substr(line, 1, index(line, defundef) - 1)
16532 if (D_is_set[macro]) {
16533 # Preserve the white space surrounding the "#".
16534 print prefix "define", macro P[macro] D[macro]
16535 next
16536 } else {
16537 # Replace #undef with comments. This is necessary, for example,
16538 # in the case of _POSIX_SOURCE, which is predefined and required
16539 # on some systems where configure will not decide to define it.
16540 if (defundef == "undef") {
16541 print "/*", prefix defundef, macro, "*/"
16542 next
16543 }
16544 }
16545}
16546{ print }
16547_ACAWK
16548_ACEOF
16549cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
a53c44a6 16550 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
abf5048b
AJ
16551fi # test -n "$CONFIG_HEADERS"
16552
fc6ffb29 16553
7d020c9f 16554eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
abf5048b
AJ
16555shift
16556for ac_tag
fc6ffb29
AJ
16557do
16558 case $ac_tag in
16559 :[FHLC]) ac_mode=$ac_tag; continue;;
16560 esac
16561 case $ac_mode$ac_tag in
16562 :[FHL]*:*);;
9797da40 16563 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
fc6ffb29
AJ
16564 :[FH]-) ac_tag=-:-;;
16565 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
e2991ea7 16566 esac
fc6ffb29
AJ
16567 ac_save_IFS=$IFS
16568 IFS=:
16569 set x $ac_tag
16570 IFS=$ac_save_IFS
16571 shift
16572 ac_file=$1
16573 shift
e2991ea7 16574
fc6ffb29
AJ
16575 case $ac_mode in
16576 :L) ac_source=$1;;
16577 :[FH])
16578 ac_file_inputs=
16579 for ac_f
16580 do
16581 case $ac_f in
9797da40 16582 -) ac_f="$ac_tmp/stdin";;
fc6ffb29
AJ
16583 *) # Look for the file first in the build tree, then in the source tree
16584 # (if the path is not absolute). The absolute path cannot be DOS-style,
16585 # because $ac_f cannot contain `:'.
16586 test -f "$ac_f" ||
16587 case $ac_f in
16588 [\\/$]*) false;;
16589 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16590 esac ||
9797da40 16591 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
fc6ffb29 16592 esac
abf5048b 16593 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25e9e4f0 16594 as_fn_append ac_file_inputs " '$ac_f'"
fc6ffb29
AJ
16595 done
16596
16597 # Let's still pretend it is `configure' which instantiates (i.e., don't
16598 # use $as_me), people would be surprised to read:
16599 # /* config.h. Generated by config.status. */
abf5048b
AJ
16600 configure_input='Generated from '`
16601 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16602 `' by configure.'
fc6ffb29
AJ
16603 if test x"$ac_file" != x-; then
16604 configure_input="$ac_file. $configure_input"
25e9e4f0 16605 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
abf5048b 16606$as_echo "$as_me: creating $ac_file" >&6;}
fc6ffb29 16607 fi
abf5048b
AJ
16608 # Neutralize special characters interpreted by sed in replacement strings.
16609 case $configure_input in #(
16610 *\&* | *\|* | *\\* )
16611 ac_sed_conf_input=`$as_echo "$configure_input" |
16612 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16613 *) ac_sed_conf_input=$configure_input;;
16614 esac
fc6ffb29
AJ
16615
16616 case $ac_tag in
9797da40
AJ
16617 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16618 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
fc6ffb29
AJ
16619 esac
16620 ;;
16621 esac
16622
16623 ac_dir=`$as_dirname -- "$ac_file" ||
daa2886c 16624$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
875927f6
AJ
16625 X"$ac_file" : 'X\(//\)[^/]' \| \
16626 X"$ac_file" : 'X\(//\)$' \| \
fc6ffb29 16627 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
abf5048b 16628$as_echo X"$ac_file" |
fc6ffb29
AJ
16629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16630 s//\1/
16631 q
16632 }
16633 /^X\(\/\/\)[^/].*/{
16634 s//\1/
16635 q
16636 }
16637 /^X\(\/\/\)$/{
16638 s//\1/
16639 q
16640 }
16641 /^X\(\/\).*/{
16642 s//\1/
16643 q
16644 }
16645 s/.*/./; q'`
25e9e4f0 16646 as_dir="$ac_dir"; as_fn_mkdir_p
daa2886c 16647 ac_builddir=.
e2991ea7 16648
fc6ffb29
AJ
16649case "$ac_dir" in
16650.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16651*)
abf5048b 16652 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
fc6ffb29 16653 # A ".." for each directory in $ac_dir_suffix.
abf5048b 16654 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
fc6ffb29
AJ
16655 case $ac_top_builddir_sub in
16656 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16657 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16658 esac ;;
16659esac
16660ac_abs_top_builddir=$ac_pwd
16661ac_abs_builddir=$ac_pwd$ac_dir_suffix
16662# for backward compatibility:
16663ac_top_builddir=$ac_top_build_prefix
daa2886c
AJ
16664
16665case $srcdir in
fc6ffb29 16666 .) # We are building in place.
daa2886c 16667 ac_srcdir=.
fc6ffb29
AJ
16668 ac_top_srcdir=$ac_top_builddir_sub
16669 ac_abs_top_srcdir=$ac_pwd ;;
16670 [\\/]* | ?:[\\/]* ) # Absolute name.
daa2886c 16671 ac_srcdir=$srcdir$ac_dir_suffix;
fc6ffb29
AJ
16672 ac_top_srcdir=$srcdir
16673 ac_abs_top_srcdir=$srcdir ;;
16674 *) # Relative name.
16675 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16676 ac_top_srcdir=$ac_top_build_prefix$srcdir
16677 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
daa2886c 16678esac
fc6ffb29 16679ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
875927f6 16680
daa2886c 16681
fc6ffb29
AJ
16682 case $ac_mode in
16683 :F)
16684 #
16685 # CONFIG_FILE
16686 #
e2991ea7 16687
f5818d2f
AJ
16688 case $INSTALL in
16689 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
fc6ffb29 16690 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
d7d4fdf8 16691 esac
fc6ffb29 16692_ACEOF
da0cfb36 16693
abf5048b 16694cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fc6ffb29
AJ
16695# If the template does not know about datarootdir, expand it.
16696# FIXME: This hack should be removed a few years after 2.60.
0ebeb530 16697ac_datarootdir_hack=; ac_datarootdir_seen=
abf5048b
AJ
16698ac_sed_dataroot='
16699/datarootdir/ {
fc6ffb29
AJ
16700 p
16701 q
16702}
16703/@datadir@/p
16704/@docdir@/p
16705/@infodir@/p
16706/@localedir@/p
25e9e4f0 16707/@mandir@/p'
abf5048b 16708case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
0ebeb530 16709*datarootdir*) ac_datarootdir_seen=yes;;
fc6ffb29 16710*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25e9e4f0 16711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
abf5048b 16712$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
daa2886c 16713_ACEOF
abf5048b 16714cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
fc6ffb29
AJ
16715 ac_datarootdir_hack='
16716 s&@datadir@&$datadir&g
16717 s&@docdir@&$docdir&g
16718 s&@infodir@&$infodir&g
16719 s&@localedir@&$localedir&g
16720 s&@mandir@&$mandir&g
25e9e4f0 16721 s&\\\${datarootdir}&$datarootdir&g' ;;
fc6ffb29
AJ
16722esac
16723_ACEOF
16724
16725# Neutralize VPATH when `$srcdir' = `.'.
16726# Shell code in configure.ac might set extrasub.
16727# FIXME: do we really want to maintain this feature?
abf5048b
AJ
16728cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16729ac_sed_extra="$ac_vpsub
f5818d2f 16730$extrasub
daa2886c 16731_ACEOF
abf5048b 16732cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f5818d2f
AJ
16733:t
16734/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
abf5048b 16735s|@configure_input@|$ac_sed_conf_input|;t t
fc6ffb29 16736s&@top_builddir@&$ac_top_builddir_sub&;t t
abf5048b 16737s&@top_build_prefix@&$ac_top_build_prefix&;t t
fc6ffb29
AJ
16738s&@srcdir@&$ac_srcdir&;t t
16739s&@abs_srcdir@&$ac_abs_srcdir&;t t
16740s&@top_srcdir@&$ac_top_srcdir&;t t
16741s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16742s&@builddir@&$ac_builddir&;t t
16743s&@abs_builddir@&$ac_abs_builddir&;t t
16744s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16745s&@INSTALL@&$ac_INSTALL&;t t
16746$ac_datarootdir_hack
abf5048b
AJ
16747"
16748eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16749if $ac_cs_awk_getline; then
9797da40 16750 $AWK -f "$ac_tmp/subs.awk"
abf5048b 16751else
9797da40
AJ
16752 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16753fi \
16754 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
fc6ffb29 16755
0ebeb530 16756test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9797da40
AJ
16757 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16758 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16759 "$ac_tmp/out"`; test -z "$ac_out"; } &&
25e9e4f0 16760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
a53c44a6 16761which seems to be undefined. Please make sure it is defined" >&5
abf5048b 16762$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
a53c44a6 16763which seems to be undefined. Please make sure it is defined" >&2;}
0ebeb530 16764
9797da40 16765 rm -f "$ac_tmp/stdin"
f5818d2f 16766 case $ac_file in
9797da40
AJ
16767 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16768 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
abf5048b 16769 esac \
a53c44a6 16770 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
fc6ffb29
AJ
16771 ;;
16772 :H)
16773 #
16774 # CONFIG_HEADER
16775 #
f5818d2f 16776 if test x"$ac_file" != x-; then
abf5048b
AJ
16777 {
16778 $as_echo "/* $configure_input */" \
9797da40
AJ
16779 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16780 } >"$ac_tmp/config.h" \
a53c44a6 16781 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9797da40 16782 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
25e9e4f0 16783 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
abf5048b 16784$as_echo "$as_me: $ac_file is unchanged" >&6;}
f5818d2f 16785 else
abf5048b 16786 rm -f "$ac_file"
9797da40 16787 mv "$ac_tmp/config.h" "$ac_file" \
a53c44a6 16788 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18f92e76 16789 fi
f5818d2f 16790 else
abf5048b 16791 $as_echo "/* $configure_input */" \
9797da40 16792 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
a53c44a6 16793 || as_fn_error $? "could not create -" "$LINENO" 5
18f92e76 16794 fi
fc6ffb29 16795 ;;
7d020c9f
AJ
16796 :L)
16797 #
16798 # CONFIG_LINK
16799 #
16800
16801 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16802 :
16803 else
16804 # Prefer the file from the source tree if names are identical.
16805 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16806 ac_source=$srcdir/$ac_source
16807 fi
16808
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16810$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16811
16812 if test ! -r "$ac_source"; then
a53c44a6 16813 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
7d020c9f
AJ
16814 fi
16815 rm -f "$ac_file"
875927f6 16816
7d020c9f 16817 # Try a relative symlink, then a hard link, then a copy.
a53c44a6 16818 case $ac_source in
7d020c9f
AJ
16819 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16820 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16821 esac
16822 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16823 ln "$ac_source" "$ac_file" 2>/dev/null ||
16824 cp -p "$ac_source" "$ac_file" ||
a53c44a6 16825 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
7d020c9f
AJ
16826 fi
16827 ;;
25e9e4f0 16828 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
abf5048b 16829$as_echo "$as_me: executing $ac_file commands" >&6;}
fc6ffb29
AJ
16830 ;;
16831 esac
daa2886c
AJ
16832
16833
fc6ffb29 16834 case $ac_file$ac_mode in
c4704c2d 16835 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
4cffb2d0
HD
16836 "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
16837$as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
a1c253e0
AJ
16838 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
16839$as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
16840 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
16841$as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
16842 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
16843$as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
16844 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
16845$as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
16846 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
16847$as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
16848 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
16849$as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
39b4ba21 16850 "Makefile":C) wine_fn_output_makefile Makefile ;;
fc6ffb29 16851
f5818d2f 16852 esac
fc6ffb29 16853done # for ac_tag
e2991ea7 16854
87a2f8df 16855
25e9e4f0 16856as_fn_exit 0
daa2886c 16857_ACEOF
f5818d2f
AJ
16858ac_clean_files=$ac_clean_files_save
16859
abf5048b 16860test $ac_write_fail = 0 ||
a53c44a6 16861 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
abf5048b 16862
daa2886c 16863
f5818d2f
AJ
16864# configure is writing to config.log, and then calls config.status.
16865# config.status does its own redirection, appending to config.log.
16866# Unfortunately, on DOS this fails, as config.log is still kept open
16867# by configure, so config.status won't be able to write to it; its
16868# output is simply discarded. So we exec the FD to /dev/null,
16869# effectively closing config.log, so it can be properly (re)opened and
16870# appended to by config.status. When coming back to configure, we
16871# need to make the FD available again.
16872if test "$no_create" != yes; then
16873 ac_cs_success=:
e24bcc77
AJ
16874 ac_config_status_args=
16875 test "$silent" = yes &&
16876 ac_config_status_args="$ac_config_status_args --quiet"
f5818d2f 16877 exec 5>/dev/null
e24bcc77 16878 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
f5818d2f
AJ
16879 exec 5>>config.log
16880 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16881 # would make configure fail if this is the last instruction.
a53c44a6 16882 $ac_cs_success || as_fn_exit 1
f5818d2f 16883fi
abf5048b 16884if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25e9e4f0 16885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
abf5048b
AJ
16886$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16887fi
e2991ea7 16888
daa2886c 16889
e3bd111b
AJ
16890if test "$no_create" = "yes"
16891then
16892 exit 0
16893fi
16894
f9dec94f 16895ac_save_IFS="$IFS"
a41f0f1b
AJ
16896if test "x$wine_notices != "x; then
16897 echo >&6
4736c993 16898 IFS="|"
f9dec94f 16899 for msg in $wine_notices; do
4736c993 16900 IFS="$ac_save_IFS"
f9dec94f 16901 if test -n "$msg"; then
25e9e4f0 16902 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
abf5048b 16903$as_echo "$as_me: $msg" >&6;}
f9dec94f
AJ
16904 fi
16905 done
99d026fb 16906fi
4736c993 16907IFS="|"
f9dec94f 16908for msg in $wine_warnings; do
4736c993 16909 IFS="$ac_save_IFS"
f9dec94f
AJ
16910 if test -n "$msg"; then
16911 echo >&2
25e9e4f0 16912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
abf5048b 16913$as_echo "$as_me: WARNING: $msg" >&2;}
f9dec94f
AJ
16914 fi
16915done
16916IFS="$ac_save_IFS"
99d026fb 16917
a41f0f1b 16918echo "
64362acf 16919$as_me: Finished. Do '${ac_make}' to compile Wine.
a41f0f1b 16920" >&6
e2991ea7 16921