d3dx10: Add stub for d3dx10_35.
[wine] / configure
CommitLineData
e2991ea7 1#! /bin/sh
e2991ea7 2# Guess values for system-dependent variables and create Makefiles.
8b2a403a 3# Generated by GNU Autoconf 2.65 for Wine 1.3.0.
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,
fa8c4f76
AJ
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
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.
25e9e4f0 94case $0 in #((
fc6ffb29
AJ
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
25e9e4f0
AJ
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
fc6ffb29
AJ
103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
abf5048b 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25e9e4f0 114 exit 1
fc6ffb29
AJ
115fi
116
25e9e4f0
AJ
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
fc6ffb29 124done
11af04e3
AJ
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
abf5048b
AJ
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
11af04e3 134
25e9e4f0
AJ
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: wine-devel@winehq.org about your system, including any
235$0: error possibly output before this message. Then install
236$0: a modern shell, or manually run the script under such a
237$0: shell if you do have one."
238 fi
239 exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257 { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266 return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274 set +e
275 as_fn_set_status $1
276 exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359fi # as_fn_arith
360
361
362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with status $?, using 1 if that was 0.
367as_fn_error ()
368{
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 fi
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376} # as_fn_error
377
fc6ffb29
AJ
378if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11af04e3
AJ
380 as_expr=expr
381else
382 as_expr=false
383fi
384
fc6ffb29 385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11af04e3
AJ
386 as_basename=basename
387else
388 as_basename=false
389fi
daa2886c 390
25e9e4f0
AJ
391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393else
394 as_dirname=false
395fi
daa2886c 396
fc6ffb29 397as_me=`$as_basename -- "$0" ||
daa2886c
AJ
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
fc6ffb29 400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
abf5048b 401$as_echo X/"$0" |
fc6ffb29
AJ
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
daa2886c 415
25e9e4f0
AJ
416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
11af04e3 422
daa2886c 423
25e9e4f0
AJ
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
438 N
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
daa2886c 446
25e9e4f0
AJ
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
fc6ffb29 453}
daa2886c 454
25e9e4f0
AJ
455ECHO_C= ECHO_N= ECHO_T=
456case `echo -n x` in #(((((
457-n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
464*)
465 ECHO_N='-n';;
466esac
fc6ffb29 467
25e9e4f0
AJ
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
fc6ffb29 471else
25e9e4f0
AJ
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
fc6ffb29 474fi
25e9e4f0
AJ
475if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
488 fi
489else
490 as_ln_s='cp -p'
fc6ffb29 491fi
25e9e4f0
AJ
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
fc6ffb29 494
25e9e4f0
AJ
495if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
fc6ffb29 497else
25e9e4f0
AJ
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
fc6ffb29
AJ
500fi
501
25e9e4f0
AJ
502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
fc6ffb29 504else
25e9e4f0
AJ
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
522fi
523as_executable_p=$as_test_x
fc6ffb29 524
25e9e4f0
AJ
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
fc6ffb29 527
25e9e4f0
AJ
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
dc9f3843 530
dc9f3843 531
fa8c4f76
AJ
532test -n "$DJDIR" || exec 7<&0 </dev/null
533exec 6>&1
f5818d2f
AJ
534
535# Name of the host.
536# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537# so uname gets run too.
538ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539
f5818d2f
AJ
540#
541# Initializations.
542#
e2991ea7 543ac_default_prefix=/usr/local
fc6ffb29 544ac_clean_files=
11af04e3 545ac_config_libobj_dir=.
fc6ffb29 546LIBOBJS=
f5818d2f
AJ
547cross_compiling=no
548subdirs=
daa2886c
AJ
549MFLAGS=
550MAKEFLAGS=
f5818d2f 551
daa2886c
AJ
552# Identity of this package.
553PACKAGE_NAME='Wine'
554PACKAGE_TARNAME='wine'
8b2a403a
AJ
555PACKAGE_VERSION='1.3.0'
556PACKAGE_STRING='Wine 1.3.0'
875927f6 557PACKAGE_BUGREPORT='wine-devel@winehq.org'
25e9e4f0 558PACKAGE_URL='http://www.winehq.org'
daa2886c 559
f5818d2f
AJ
560ac_unique_file="server/atom.c"
561# Factoring default headers for most tests.
562ac_includes_default="\
563#include <stdio.h>
f0ca586f 564#ifdef HAVE_SYS_TYPES_H
f5818d2f
AJ
565# include <sys/types.h>
566#endif
f0ca586f 567#ifdef HAVE_SYS_STAT_H
f5818d2f
AJ
568# include <sys/stat.h>
569#endif
f0ca586f 570#ifdef STDC_HEADERS
f5818d2f
AJ
571# include <stdlib.h>
572# include <stddef.h>
573#else
f0ca586f 574# ifdef HAVE_STDLIB_H
f5818d2f
AJ
575# include <stdlib.h>
576# endif
577#endif
f0ca586f
PK
578#ifdef HAVE_STRING_H
579# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
f5818d2f
AJ
580# include <memory.h>
581# endif
582# include <string.h>
583#endif
f0ca586f 584#ifdef HAVE_STRINGS_H
f5818d2f
AJ
585# include <strings.h>
586#endif
f0ca586f 587#ifdef HAVE_INTTYPES_H
f5818d2f 588# include <inttypes.h>
fc6ffb29 589#endif
f0ca586f 590#ifdef HAVE_STDINT_H
fc6ffb29 591# include <stdint.h>
f5818d2f 592#endif
f0ca586f 593#ifdef HAVE_UNISTD_H
f5818d2f
AJ
594# include <unistd.h>
595#endif"
e2991ea7 596
abf5048b
AJ
597ac_subst_vars='LTLIBOBJS
598LIBOBJS
454fb3c1 599ALL_TEST_BINARIES
7d831155 600ALL_WINETEST_DEPENDS
abf5048b
AJ
601LDAPLIBS
602LIBPOLL
603LIBDL
604EXTRA_BINARIES
3e6eab3f 605MAIN_BINARY
abf5048b
AJ
606SOCKETLIBS
607CRTLIBS
b860c4aa 608TOOLSEXT
abf5048b 609LDPATH
6c142387 610UNWINDFLAGS
abf5048b
AJ
611BUILTINFLAG
612EXTRACFLAGS
de1d7fbe 613LIBKSTAT
d435499f 614LIBOPENAL
db71d7c0 615LIBMPG123
85b6189c 616PNGINCL
abf5048b
AJ
617FONTCONFIGINCL
618CUPSINCL
619AUDIOIOLIBS
620ALSALIBS
621ESDLIBS
622ESDINCL
623ESDCONFIG
11ca05f6 624ZLIB
abf5048b
AJ
625FREETYPEINCL
626FREETYPELIBS
627ft_devel
628LCMSLIBS
629RESOLVLIBS
630GPHOTO2INCL
631GPHOTO2LIBS
632gphoto2port_devel
633gphoto2_devel
634SANEINCL
635sane_devel
636GNUTLSINCL
637HALINCL
638XSLTINCL
abf5048b
AJ
639XML2INCL
640XML2LIBS
641NASLIBS
40664c0c
AJ
642X_EXTRA_LIBS
643X_LIBS
644X_PRE_LIBS
645X_CFLAGS
646XMKMF
c891f6bc 647LIBPTHREAD
1f254216 648CROSSTARGET
abf5048b 649CROSSCC
7d2e7726 650CROSSTEST_DISABLE
abf5048b 651CARBONLIB
d435499f 652FRAMEWORK_OPENAL
abf5048b
AJ
653COREAUDIO
654DISKARBITRATIONLIB
655LDEXECFLAGS
656IOKITLIB
657COREFOUNDATIONLIB
658SECURITYLIB
abf5048b
AJ
659DLLWRAP
660DLLTOOL
661LDD
662LDRPATH_LOCAL
663LDRPATH_INSTALL
664IMPLIBEXT
665LIBEXT
666LDDLLFLAGS
667LDSHARED
668DLLFLAGS
669DLLEXT
40664c0c 670CPP
abf5048b
AJ
671OPENGL_LIBS
672XLIB
abf5048b 673PRELINK
2eda9c72 674MAINTAINER_MODE
abf5048b 675ICOTOOL
476a2bee 676CONVERT
abf5048b
AJ
677RSVG
678PKG_CONFIG
679FONTFORGE
680LINTFLAGS
681LINT
682INSTALL_DATA
683INSTALL_SCRIPT
684INSTALL_PROGRAM
685LDCONFIG
686EGREP
687GREP
abf5048b 688LN_S
abf5048b
AJ
689STRIP
690RANLIB
691ARFLAGS
692ac_ct_AR
693AR
abf5048b
AJ
694BISON
695FLEX
abf5048b 696TOOLSDIR
90647774 697WOW64_DISABLE
07f77c41 698TARGETFLAGS
abf5048b
AJ
699CPPBIN
700ac_ct_CXX
701CXXFLAGS
702CXX
703OBJEXT
704EXEEXT
705ac_ct_CC
706CPPFLAGS
707LDFLAGS
708CFLAGS
709CC
710SET_MAKE
abf5048b
AJ
711host_os
712host_vendor
713host_cpu
714host
715build_os
716build_vendor
717build_cpu
718build
abf5048b
AJ
719target_alias
720host_alias
fc6ffb29 721build_alias
abf5048b
AJ
722LIBS
723ECHO_T
724ECHO_N
725ECHO_C
726DEFS
727mandir
728localedir
729libdir
730psdir
731pdfdir
732dvidir
733htmldir
734infodir
735docdir
736oldincludedir
737includedir
738localstatedir
739sharedstatedir
740sysconfdir
741datadir
742datarootdir
743libexecdir
744sbindir
745bindir
746program_transform_name
747prefix
748exec_prefix
25e9e4f0 749PACKAGE_URL
abf5048b
AJ
750PACKAGE_BUGREPORT
751PACKAGE_STRING
752PACKAGE_VERSION
753PACKAGE_TARNAME
754PACKAGE_NAME
755PATH_SEPARATOR
756SHELL'
757ac_subst_files='MAKE_RULES
cb1fc8f4 758MAKE_TEST_RULES
abf5048b
AJ
759MAKE_DLL_RULES
760MAKE_IMPLIB_RULES
abf5048b
AJ
761MAKE_PROG_RULES'
762ac_user_opts='
763enable_option_checking
764enable_win16
765enable_win64
35078f4b 766enable_tests
abf5048b
AJ
767enable_maintainer_mode
768with_alsa
769with_audioio
770with_capi
771with_cms
772with_coreaudio
773with_cups
774with_curses
775with_esd
776with_fontconfig
777with_freetype
778with_gphoto
779with_glu
780with_gnutls
6ce32e0d 781with_gsm
abf5048b
AJ
782with_hal
783with_jack
784with_jpeg
785with_ldap
db71d7c0 786with_mpg123
abf5048b 787with_nas
862965f4 788with_openal
abf5048b
AJ
789with_opengl
790with_openssl
791with_oss
792with_png
c891f6bc 793with_pthread
abf5048b 794with_sane
73cd5693 795with_tiff
bf6f0750 796with_v4l
abf5048b
AJ
797with_xcomposite
798with_xcursor
799with_xinerama
800with_xinput
801with_xml
802with_xrandr
803with_xrender
804with_xshape
805with_xshm
806with_xslt
807with_xxf86vm
808with_wine_tools
39a75d37 809with_wine64
bc56c4ea 810enable_largefile
abf5048b
AJ
811with_x
812'
813 ac_precious_vars='build_alias
fc6ffb29
AJ
814host_alias
815target_alias
fc6ffb29
AJ
816CC
817CFLAGS
818LDFLAGS
abf5048b 819LIBS
fc6ffb29 820CPPFLAGS
fc6ffb29
AJ
821CXX
822CXXFLAGS
abf5048b 823CCC
40664c0c
AJ
824CPP
825XMKMF'
fc6ffb29 826
daa2886c 827
e2991ea7 828# Initialize some variables set by options.
f5818d2f
AJ
829ac_init_help=
830ac_init_version=false
abf5048b
AJ
831ac_unrecognized_opts=
832ac_unrecognized_sep=
e2991ea7
AJ
833# The variables have the same names as the options, with
834# dashes changed to underlines.
f5818d2f 835cache_file=/dev/null
e2991ea7 836exec_prefix=NONE
e2991ea7 837no_create=
e2991ea7
AJ
838no_recursion=
839prefix=NONE
840program_prefix=NONE
841program_suffix=NONE
842program_transform_name=s,x,x,
843silent=
844site=
845srcdir=
e2991ea7
AJ
846verbose=
847x_includes=NONE
848x_libraries=NONE
f5818d2f
AJ
849
850# Installation directory options.
851# These are left unexpanded so users can "make install exec_prefix=/foo"
852# and all the variables that are supposed to be based on exec_prefix
853# by default will actually change.
854# Use braces instead of parens because sh, perl, etc. also accept them.
fc6ffb29 855# (The list follows the same order as the GNU Coding Standards.)
d7d4fdf8
AJ
856bindir='${exec_prefix}/bin'
857sbindir='${exec_prefix}/sbin'
858libexecdir='${exec_prefix}/libexec'
fc6ffb29
AJ
859datarootdir='${prefix}/share'
860datadir='${datarootdir}'
d7d4fdf8
AJ
861sysconfdir='${prefix}/etc'
862sharedstatedir='${prefix}/com'
863localstatedir='${prefix}/var'
d7d4fdf8
AJ
864includedir='${prefix}/include'
865oldincludedir='/usr/include'
fc6ffb29
AJ
866docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
867infodir='${datarootdir}/info'
868htmldir='${docdir}'
869dvidir='${docdir}'
870pdfdir='${docdir}'
871psdir='${docdir}'
872libdir='${exec_prefix}/lib'
873localedir='${datarootdir}/locale'
874mandir='${datarootdir}/man'
e2991ea7 875
e2991ea7 876ac_prev=
fc6ffb29 877ac_dashdash=
e2991ea7
AJ
878for ac_option
879do
e2991ea7
AJ
880 # If the previous option needs an argument, assign it.
881 if test -n "$ac_prev"; then
fc6ffb29 882 eval $ac_prev=\$ac_option
e2991ea7
AJ
883 ac_prev=
884 continue
885 fi
886
fc6ffb29
AJ
887 case $ac_option in
888 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889 *) ac_optarg=yes ;;
890 esac
e2991ea7
AJ
891
892 # Accept the important Cygnus configure options, so we can diagnose typos.
893
fc6ffb29
AJ
894 case $ac_dashdash$ac_option in
895 --)
896 ac_dashdash=yes ;;
e2991ea7 897
d7d4fdf8
AJ
898 -bindir | --bindir | --bindi | --bind | --bin | --bi)
899 ac_prev=bindir ;;
900 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
f5818d2f 901 bindir=$ac_optarg ;;
d7d4fdf8
AJ
902
903 -build | --build | --buil | --bui | --bu)
f5818d2f 904 ac_prev=build_alias ;;
d7d4fdf8 905 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
f5818d2f 906 build_alias=$ac_optarg ;;
e2991ea7
AJ
907
908 -cache-file | --cache-file | --cache-fil | --cache-fi \
909 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910 ac_prev=cache_file ;;
911 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
f5818d2f
AJ
913 cache_file=$ac_optarg ;;
914
915 --config-cache | -C)
916 cache_file=config.cache ;;
e2991ea7 917
fc6ffb29 918 -datadir | --datadir | --datadi | --datad)
d7d4fdf8 919 ac_prev=datadir ;;
fc6ffb29 920 -datadir=* | --datadir=* | --datadi=* | --datad=*)
f5818d2f 921 datadir=$ac_optarg ;;
d7d4fdf8 922
fc6ffb29
AJ
923 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924 | --dataroo | --dataro | --datar)
925 ac_prev=datarootdir ;;
926 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928 datarootdir=$ac_optarg ;;
929
e2991ea7 930 -disable-* | --disable-*)
abf5048b 931 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
e2991ea7 932 # Reject names that are not valid shell variable names.
abf5048b 933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
25e9e4f0 934 as_fn_error "invalid feature name: $ac_useropt"
abf5048b
AJ
935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
938 *"
939"enable_$ac_useropt"
940"*) ;;
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
943 esac
944 eval enable_$ac_useropt=no ;;
fc6ffb29
AJ
945
946 -docdir | --docdir | --docdi | --doc | --do)
947 ac_prev=docdir ;;
948 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949 docdir=$ac_optarg ;;
950
951 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952 ac_prev=dvidir ;;
953 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954 dvidir=$ac_optarg ;;
e2991ea7
AJ
955
956 -enable-* | --enable-*)
abf5048b 957 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
e2991ea7 958 # Reject names that are not valid shell variable names.
abf5048b 959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
25e9e4f0 960 as_fn_error "invalid feature name: $ac_useropt"
abf5048b
AJ
961 ac_useropt_orig=$ac_useropt
962 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963 case $ac_user_opts in
964 *"
965"enable_$ac_useropt"
966"*) ;;
967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
968 ac_unrecognized_sep=', ';;
969 esac
970 eval enable_$ac_useropt=\$ac_optarg ;;
e2991ea7
AJ
971
972 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
973 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
974 | --exec | --exe | --ex)
975 ac_prev=exec_prefix ;;
976 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
977 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
978 | --exec=* | --exe=* | --ex=*)
f5818d2f 979 exec_prefix=$ac_optarg ;;
e2991ea7
AJ
980
981 -gas | --gas | --ga | --g)
982 # Obsolete; use --with-gas.
983 with_gas=yes ;;
984
f5818d2f
AJ
985 -help | --help | --hel | --he | -h)
986 ac_init_help=long ;;
987 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
988 ac_init_help=recursive ;;
989 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
990 ac_init_help=short ;;
e2991ea7
AJ
991
992 -host | --host | --hos | --ho)
f5818d2f 993 ac_prev=host_alias ;;
e2991ea7 994 -host=* | --host=* | --hos=* | --ho=*)
f5818d2f 995 host_alias=$ac_optarg ;;
e2991ea7 996
fc6ffb29
AJ
997 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
998 ac_prev=htmldir ;;
999 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1000 | --ht=*)
1001 htmldir=$ac_optarg ;;
1002
d7d4fdf8
AJ
1003 -includedir | --includedir | --includedi | --included | --include \
1004 | --includ | --inclu | --incl | --inc)
1005 ac_prev=includedir ;;
1006 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1007 | --includ=* | --inclu=* | --incl=* | --inc=*)
f5818d2f 1008 includedir=$ac_optarg ;;
d7d4fdf8
AJ
1009
1010 -infodir | --infodir | --infodi | --infod | --info | --inf)
1011 ac_prev=infodir ;;
1012 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
f5818d2f 1013 infodir=$ac_optarg ;;
d7d4fdf8
AJ
1014
1015 -libdir | --libdir | --libdi | --libd)
1016 ac_prev=libdir ;;
1017 -libdir=* | --libdir=* | --libdi=* | --libd=*)
f5818d2f 1018 libdir=$ac_optarg ;;
d7d4fdf8
AJ
1019
1020 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1021 | --libexe | --libex | --libe)
1022 ac_prev=libexecdir ;;
1023 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1024 | --libexe=* | --libex=* | --libe=*)
f5818d2f 1025 libexecdir=$ac_optarg ;;
d7d4fdf8 1026
fc6ffb29
AJ
1027 -localedir | --localedir | --localedi | --localed | --locale)
1028 ac_prev=localedir ;;
1029 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1030 localedir=$ac_optarg ;;
1031
d7d4fdf8 1032 -localstatedir | --localstatedir | --localstatedi | --localstated \
fc6ffb29 1033 | --localstate | --localstat | --localsta | --localst | --locals)
d7d4fdf8
AJ
1034 ac_prev=localstatedir ;;
1035 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
fc6ffb29 1036 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
f5818d2f 1037 localstatedir=$ac_optarg ;;
d7d4fdf8
AJ
1038
1039 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1040 ac_prev=mandir ;;
1041 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
f5818d2f 1042 mandir=$ac_optarg ;;
d7d4fdf8 1043
e2991ea7
AJ
1044 -nfp | --nfp | --nf)
1045 # Obsolete; use --without-fp.
1046 with_fp=no ;;
1047
1048 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
daa2886c 1049 | --no-cr | --no-c | -n)
e2991ea7
AJ
1050 no_create=yes ;;
1051
1052 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1053 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1054 no_recursion=yes ;;
1055
d7d4fdf8
AJ
1056 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1057 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1058 | --oldin | --oldi | --old | --ol | --o)
1059 ac_prev=oldincludedir ;;
1060 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1061 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1062 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
f5818d2f 1063 oldincludedir=$ac_optarg ;;
d7d4fdf8 1064
e2991ea7
AJ
1065 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1066 ac_prev=prefix ;;
1067 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
f5818d2f 1068 prefix=$ac_optarg ;;
e2991ea7
AJ
1069
1070 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1071 | --program-pre | --program-pr | --program-p)
1072 ac_prev=program_prefix ;;
1073 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1074 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
f5818d2f 1075 program_prefix=$ac_optarg ;;
e2991ea7
AJ
1076
1077 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1078 | --program-suf | --program-su | --program-s)
1079 ac_prev=program_suffix ;;
1080 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1081 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
f5818d2f 1082 program_suffix=$ac_optarg ;;
e2991ea7
AJ
1083
1084 -program-transform-name | --program-transform-name \
1085 | --program-transform-nam | --program-transform-na \
1086 | --program-transform-n | --program-transform- \
1087 | --program-transform | --program-transfor \
1088 | --program-transfo | --program-transf \
1089 | --program-trans | --program-tran \
1090 | --progr-tra | --program-tr | --program-t)
1091 ac_prev=program_transform_name ;;
1092 -program-transform-name=* | --program-transform-name=* \
1093 | --program-transform-nam=* | --program-transform-na=* \
1094 | --program-transform-n=* | --program-transform-=* \
1095 | --program-transform=* | --program-transfor=* \
1096 | --program-transfo=* | --program-transf=* \
1097 | --program-trans=* | --program-tran=* \
1098 | --progr-tra=* | --program-tr=* | --program-t=*)
f5818d2f 1099 program_transform_name=$ac_optarg ;;
e2991ea7 1100
fc6ffb29
AJ
1101 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1102 ac_prev=pdfdir ;;
1103 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1104 pdfdir=$ac_optarg ;;
1105
1106 -psdir | --psdir | --psdi | --psd | --ps)
1107 ac_prev=psdir ;;
1108 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1109 psdir=$ac_optarg ;;
1110
e2991ea7
AJ
1111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1112 | -silent | --silent | --silen | --sile | --sil)
1113 silent=yes ;;
1114
d7d4fdf8
AJ
1115 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1116 ac_prev=sbindir ;;
1117 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1118 | --sbi=* | --sb=*)
f5818d2f 1119 sbindir=$ac_optarg ;;
d7d4fdf8
AJ
1120
1121 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1122 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1123 | --sharedst | --shareds | --shared | --share | --shar \
1124 | --sha | --sh)
1125 ac_prev=sharedstatedir ;;
1126 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1127 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1128 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1129 | --sha=* | --sh=*)
f5818d2f 1130 sharedstatedir=$ac_optarg ;;
d7d4fdf8 1131
e2991ea7
AJ
1132 -site | --site | --sit)
1133 ac_prev=site ;;
1134 -site=* | --site=* | --sit=*)
f5818d2f 1135 site=$ac_optarg ;;
e2991ea7
AJ
1136
1137 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1138 ac_prev=srcdir ;;
1139 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
f5818d2f 1140 srcdir=$ac_optarg ;;
e2991ea7 1141
d7d4fdf8
AJ
1142 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1143 | --syscon | --sysco | --sysc | --sys | --sy)
1144 ac_prev=sysconfdir ;;
1145 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1146 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
f5818d2f 1147 sysconfdir=$ac_optarg ;;
d7d4fdf8 1148
e2991ea7 1149 -target | --target | --targe | --targ | --tar | --ta | --t)
f5818d2f 1150 ac_prev=target_alias ;;
e2991ea7 1151 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
f5818d2f 1152 target_alias=$ac_optarg ;;
e2991ea7
AJ
1153
1154 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1155 verbose=yes ;;
1156
f5818d2f
AJ
1157 -version | --version | --versio | --versi | --vers | -V)
1158 ac_init_version=: ;;
e2991ea7
AJ
1159
1160 -with-* | --with-*)
abf5048b 1161 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
e2991ea7 1162 # Reject names that are not valid shell variable names.
abf5048b 1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
25e9e4f0 1164 as_fn_error "invalid package name: $ac_useropt"
abf5048b
AJ
1165 ac_useropt_orig=$ac_useropt
1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in
1168 *"
1169"with_$ac_useropt"
1170"*) ;;
1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1172 ac_unrecognized_sep=', ';;
1173 esac
1174 eval with_$ac_useropt=\$ac_optarg ;;
e2991ea7
AJ
1175
1176 -without-* | --without-*)
abf5048b 1177 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
e2991ea7 1178 # Reject names that are not valid shell variable names.
abf5048b 1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
25e9e4f0 1180 as_fn_error "invalid package name: $ac_useropt"
abf5048b
AJ
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1184 *"
1185"with_$ac_useropt"
1186"*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=no ;;
e2991ea7
AJ
1191
1192 --x)
1193 # Obsolete; use --with-x.
1194 with_x=yes ;;
1195
1196 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1197 | --x-incl | --x-inc | --x-in | --x-i)
1198 ac_prev=x_includes ;;
1199 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1200 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
f5818d2f 1201 x_includes=$ac_optarg ;;
e2991ea7
AJ
1202
1203 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1204 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1205 ac_prev=x_libraries ;;
1206 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1207 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
f5818d2f 1208 x_libraries=$ac_optarg ;;
e2991ea7 1209
25e9e4f0
AJ
1210 -*) as_fn_error "unrecognized option: \`$ac_option'
1211Try \`$0 --help' for more information."
e2991ea7
AJ
1212 ;;
1213
f5818d2f
AJ
1214 *=*)
1215 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1216 # Reject names that are not valid shell variable names.
25e9e4f0
AJ
1217 case $ac_envvar in #(
1218 '' | [0-9]* | *[!_$as_cr_alnum]* )
1219 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1220 esac
fc6ffb29 1221 eval $ac_envvar=\$ac_optarg
f5818d2f
AJ
1222 export $ac_envvar ;;
1223
d7d4fdf8 1224 *)
f5818d2f 1225 # FIXME: should be removed in autoconf 3.0.
abf5048b 1226 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
f5818d2f 1227 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
abf5048b 1228 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
f5818d2f 1229 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
e2991ea7
AJ
1230 ;;
1231
1232 esac
1233done
1234
1235if test -n "$ac_prev"; then
f5818d2f 1236 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
25e9e4f0 1237 as_fn_error "missing argument to $ac_option"
e2991ea7 1238fi
e2991ea7 1239
abf5048b
AJ
1240if test -n "$ac_unrecognized_opts"; then
1241 case $enable_option_checking in
1242 no) ;;
25e9e4f0 1243 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
abf5048b
AJ
1244 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1245 esac
1246fi
1247
1248# Check all directory arguments for consistency.
fc6ffb29
AJ
1249for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1250 datadir sysconfdir sharedstatedir localstatedir includedir \
1251 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1252 libdir localedir mandir
e2991ea7 1253do
fc6ffb29 1254 eval ac_val=\$$ac_var
abf5048b
AJ
1255 # Remove trailing slashes.
1256 case $ac_val in
1257 */ )
1258 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1259 eval $ac_var=\$ac_val;;
1260 esac
1261 # Be sure to have absolute directory names.
f5818d2f 1262 case $ac_val in
fc6ffb29
AJ
1263 [\\/$]* | ?:[\\/]* ) continue;;
1264 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
e2991ea7 1265 esac
25e9e4f0 1266 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
e2991ea7
AJ
1267done
1268
f5818d2f
AJ
1269# There might be people who depend on the old broken behavior: `$host'
1270# used to hold the argument of --host etc.
daa2886c 1271# FIXME: To remove some day.
f5818d2f
AJ
1272build=$build_alias
1273host=$host_alias
1274target=$target_alias
1275
daa2886c 1276# FIXME: To remove some day.
f5818d2f
AJ
1277if test "x$host_alias" != x; then
1278 if test "x$build_alias" = x; then
1279 cross_compiling=maybe
abf5048b 1280 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
f5818d2f
AJ
1281 If a cross compiler is detected then cross compile mode will be used." >&2
1282 elif test "x$build_alias" != "x$host_alias"; then
1283 cross_compiling=yes
1284 fi
1285fi
e2991ea7 1286
f5818d2f
AJ
1287ac_tool_prefix=
1288test -n "$host_alias" && ac_tool_prefix=$host_alias-
e2991ea7 1289
f5818d2f 1290test "$silent" = yes && exec 6>/dev/null
e2991ea7 1291
daa2886c 1292
fc6ffb29
AJ
1293ac_pwd=`pwd` && test -n "$ac_pwd" &&
1294ac_ls_di=`ls -di .` &&
1295ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
25e9e4f0 1296 as_fn_error "working directory cannot be determined"
fc6ffb29 1297test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
25e9e4f0 1298 as_fn_error "pwd does not report name of working directory"
fc6ffb29
AJ
1299
1300
e2991ea7
AJ
1301# Find the source files, if location was not specified.
1302if test -z "$srcdir"; then
1303 ac_srcdir_defaulted=yes
fc6ffb29 1304 # Try the directory containing this script, then the parent directory.
abf5048b
AJ
1305 ac_confdir=`$as_dirname -- "$as_myself" ||
1306$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1307 X"$as_myself" : 'X\(//\)[^/]' \| \
1308 X"$as_myself" : 'X\(//\)$' \| \
1309 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1310$as_echo X"$as_myself" |
fc6ffb29
AJ
1311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1312 s//\1/
1313 q
1314 }
1315 /^X\(\/\/\)[^/].*/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)$/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\).*/{
1324 s//\1/
1325 q
1326 }
1327 s/.*/./; q'`
e2991ea7 1328 srcdir=$ac_confdir
fc6ffb29 1329 if test ! -r "$srcdir/$ac_unique_file"; then
e2991ea7
AJ
1330 srcdir=..
1331 fi
1332else
1333 ac_srcdir_defaulted=no
1334fi
fc6ffb29
AJ
1335if test ! -r "$srcdir/$ac_unique_file"; then
1336 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
25e9e4f0 1337 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
e2991ea7 1338fi
fc6ffb29
AJ
1339ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1340ac_abs_confdir=`(
25e9e4f0 1341 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
fc6ffb29
AJ
1342 pwd)`
1343# When building in place, set srcdir=.
1344if test "$ac_abs_confdir" = "$ac_pwd"; then
1345 srcdir=.
1346fi
1347# Remove unnecessary trailing slashes from srcdir.
1348# Double slashes in file names in object file debugging info
1349# mess up M-x gdb in Emacs.
1350case $srcdir in
1351*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1352esac
1353for ac_var in $ac_precious_vars; do
1354 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1355 eval ac_env_${ac_var}_value=\$${ac_var}
1356 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1358done
f5818d2f
AJ
1359
1360#
1361# Report the --help message.
1362#
1363if test "$ac_init_help" = "long"; then
1364 # Omit some internal or obsolete options to make the list less imposing.
1365 # This message is too long to be a string in the A/UX 3.1 sh.
daa2886c 1366 cat <<_ACEOF
8b2a403a 1367\`configure' configures Wine 1.3.0 to adapt to many kinds of systems.
f5818d2f
AJ
1368
1369Usage: $0 [OPTION]... [VAR=VALUE]...
1370
1371To assign environment variables (e.g., CC, CFLAGS...), specify them as
1372VAR=VALUE. See below for descriptions of some of the useful variables.
1373
1374Defaults for the options are specified in brackets.
1375
1376Configuration:
1377 -h, --help display this help and exit
1378 --help=short display options specific to this package
1379 --help=recursive display the short help of all the included packages
1380 -V, --version display version information and exit
1381 -q, --quiet, --silent do not print \`checking...' messages
1382 --cache-file=FILE cache test results in FILE [disabled]
1383 -C, --config-cache alias for \`--cache-file=config.cache'
1384 -n, --no-create do not create output files
1385 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1386
f5818d2f
AJ
1387Installation directories:
1388 --prefix=PREFIX install architecture-independent files in PREFIX
abf5048b 1389 [$ac_default_prefix]
f5818d2f 1390 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
abf5048b 1391 [PREFIX]
f5818d2f
AJ
1392
1393By default, \`make install' will install all the files in
1394\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1395an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1396for instance \`--prefix=\$HOME'.
1397
1398For better control, use the options below.
1399
1400Fine tuning of the installation directories:
abf5048b
AJ
1401 --bindir=DIR user executables [EPREFIX/bin]
1402 --sbindir=DIR system admin executables [EPREFIX/sbin]
1403 --libexecdir=DIR program executables [EPREFIX/libexec]
1404 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1405 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1406 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1407 --libdir=DIR object code libraries [EPREFIX/lib]
1408 --includedir=DIR C header files [PREFIX/include]
1409 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1410 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1411 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1412 --infodir=DIR info documentation [DATAROOTDIR/info]
1413 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1414 --mandir=DIR man documentation [DATAROOTDIR/man]
1415 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1416 --htmldir=DIR html documentation [DOCDIR]
1417 --dvidir=DIR dvi documentation [DOCDIR]
1418 --pdfdir=DIR pdf documentation [DOCDIR]
1419 --psdir=DIR ps documentation [DOCDIR]
daa2886c 1420_ACEOF
f5818d2f 1421
daa2886c 1422 cat <<\_ACEOF
f5818d2f
AJ
1423
1424X features:
1425 --x-includes=DIR X include files are in DIR
1426 --x-libraries=DIR X library files are in DIR
1427
1428System types:
1429 --build=BUILD configure for building on BUILD [guessed]
daa2886c 1430 --host=HOST cross-compile to build programs to run on HOST [BUILD]
daa2886c 1431_ACEOF
f5818d2f
AJ
1432fi
1433
1434if test -n "$ac_init_help"; then
1435 case $ac_init_help in
8b2a403a 1436 short | recursive ) echo "Configuration of Wine 1.3.0:";;
f5818d2f 1437 esac
daa2886c 1438 cat <<\_ACEOF
f5818d2f
AJ
1439
1440Optional Features:
abf5048b 1441 --disable-option-checking ignore unrecognized --enable/--with options
f5818d2f
AJ
1442 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1443 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
53fa0d54 1444 --disable-win16 do not include Win16 support
2aa8e871
AJ
1445 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1446 binaries)
35078f4b 1447 --disable-tests do not build the regression tests
9d037226
AJ
1448 --enable-maintainer-mode
1449 enable maintainer-specific build rules
bc56c4ea 1450 --disable-largefile omit support for large files
f5818d2f
AJ
1451
1452Optional Packages:
1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a41f0f1b
AJ
1455 --without-alsa do not use the Alsa sound support
1456 --without-audioio do not use the AudioIO sound support
1457 --without-capi do not use CAPI (ISDN support)
1458 --without-cms do not use CMS (color management support)
1459 --without-coreaudio do not use the CoreAudio sound support
1460 --without-cups do not use CUPS
1461 --without-curses do not use (n)curses
1462 --without-esd do not use the EsounD sound support
1463 --without-fontconfig do not use fontconfig
a20c0e12 1464 --without-freetype do not use the FreeType library
a41f0f1b 1465 --without-gphoto do not use gphoto (Digital Camera support)
ad798735 1466 --without-glu do not use the GLU library
874c9ef6 1467 --without-gnutls do not use GnuTLS (schannel support)
6ce32e0d 1468 --without-gsm do not use libgsm (GSM 06.10 codec support)
a41f0f1b
AJ
1469 --without-hal do not use HAL (dynamic device support)
1470 --without-jack do not use the Jack sound support
1471 --without-jpeg do not use JPEG
1472 --without-ldap do not use LDAP
db71d7c0 1473 --without-mpg123 do not use the mpg123 library
a41f0f1b 1474 --without-nas do not use the NAS sound support
862965f4 1475 --without-openal do not use OpenAL
53fa0d54 1476 --without-opengl do not use OpenGL
a41f0f1b
AJ
1477 --without-openssl do not use OpenSSL
1478 --without-oss do not use the OSS sound support
1479 --without-png do not use PNG
c891f6bc 1480 --without-pthread do not use the pthread library
a41f0f1b 1481 --without-sane do not use SANE (scanner support)
73cd5693 1482 --without-tiff do not use TIFF
bf6f0750 1483 --without-v4l do not use v4l1 (v4l support)
a41f0f1b
AJ
1484 --without-xcomposite do not use the Xcomposite extension
1485 --without-xcursor do not use the Xcursor extension
1486 --without-xinerama do not use Xinerama (multi-monitor support)
1487 --without-xinput do not use the Xinput extension
1488 --without-xml do not use XML
1489 --without-xrandr do not use Xrandr (resolution changes)
1490 --without-xrender do not use the Xrender extension
1491 --without-xshape do not use the Xshape extension
1492 --without-xshm do not use XShm (shared memory extension)
1493 --without-xslt do not use XSLT
a49beb4c 1494 --without-xxf86vm do not use XFree video mode extension
a41f0f1b 1495 --with-wine-tools=DIR use Wine tools from directory DIR
39a75d37 1496 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
f5818d2f
AJ
1497 --with-x use the X Window System
1498
1499Some influential environment variables:
53fa0d54
EP
1500 CC C compiler command
1501 CFLAGS C compiler flags
1502 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1503 nonstandard directory <lib dir>
dc9f3843 1504 LIBS libraries to pass to the linker, e.g. -l<library>
fa8c4f76 1505 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
fc6ffb29 1506 you have headers in a nonstandard directory <include dir>
f41c2b21
DP
1507 CXX C++ compiler command
1508 CXXFLAGS C++ compiler flags
53fa0d54 1509 CPP C preprocessor
40664c0c 1510 XMKMF Path to xmkmf, Makefile generator for X Window System
f5818d2f
AJ
1511
1512Use these variables to override the choices made by `configure' or to help
1513it to find libraries and programs with nonstandard names/locations.
1514
875927f6 1515Report bugs to <wine-devel@winehq.org>.
25e9e4f0 1516Wine home page: <http://www.winehq.org>.
daa2886c 1517_ACEOF
fc6ffb29 1518ac_status=$?
f5818d2f
AJ
1519fi
1520
1521if test "$ac_init_help" = "recursive"; then
1522 # If there are subdirs, report their specific --help.
daa2886c 1523 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
abf5048b
AJ
1524 test -d "$ac_dir" ||
1525 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1526 continue
daa2886c
AJ
1527 ac_builddir=.
1528
fc6ffb29
AJ
1529case "$ac_dir" in
1530.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531*)
abf5048b 1532 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
fc6ffb29 1533 # A ".." for each directory in $ac_dir_suffix.
abf5048b 1534 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
fc6ffb29
AJ
1535 case $ac_top_builddir_sub in
1536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1538 esac ;;
1539esac
1540ac_abs_top_builddir=$ac_pwd
1541ac_abs_builddir=$ac_pwd$ac_dir_suffix
1542# for backward compatibility:
1543ac_top_builddir=$ac_top_build_prefix
f5818d2f 1544
daa2886c 1545case $srcdir in
fc6ffb29 1546 .) # We are building in place.
daa2886c 1547 ac_srcdir=.
fc6ffb29
AJ
1548 ac_top_srcdir=$ac_top_builddir_sub
1549 ac_abs_top_srcdir=$ac_pwd ;;
1550 [\\/]* | ?:[\\/]* ) # Absolute name.
daa2886c 1551 ac_srcdir=$srcdir$ac_dir_suffix;
fc6ffb29
AJ
1552 ac_top_srcdir=$srcdir
1553 ac_abs_top_srcdir=$srcdir ;;
1554 *) # Relative name.
1555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1556 ac_top_srcdir=$ac_top_build_prefix$srcdir
1557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
875927f6 1558esac
fc6ffb29 1559ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
daa2886c 1560
fc6ffb29
AJ
1561 cd "$ac_dir" || { ac_status=$?; continue; }
1562 # Check for guested configure.
0ebeb530 1563 if test -f "$ac_srcdir/configure.gnu"; then
fc6ffb29 1564 echo &&
0ebeb530
JW
1565 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1566 elif test -f "$ac_srcdir/configure"; then
fc6ffb29 1567 echo &&
0ebeb530 1568 $SHELL "$ac_srcdir/configure" --help=recursive
f5818d2f 1569 else
abf5048b 1570 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
fc6ffb29
AJ
1571 fi || ac_status=$?
1572 cd "$ac_pwd" || { ac_status=$?; break; }
f5818d2f
AJ
1573 done
1574fi
e2991ea7 1575
fc6ffb29 1576test -n "$ac_init_help" && exit $ac_status
f5818d2f 1577if $ac_init_version; then
daa2886c 1578 cat <<\_ACEOF
8b2a403a 1579Wine configure 1.3.0
fa8c4f76 1580generated by GNU Autoconf 2.65
f5818d2f 1581
25e9e4f0 1582Copyright (C) 2009 Free Software Foundation, Inc.
f5818d2f
AJ
1583This configure script is free software; the Free Software Foundation
1584gives unlimited permission to copy, distribute and modify it.
daa2886c 1585_ACEOF
fc6ffb29 1586 exit
f5818d2f 1587fi
f5818d2f 1588
25e9e4f0
AJ
1589## ------------------------ ##
1590## Autoconf initialization. ##
1591## ------------------------ ##
f5818d2f 1592
25e9e4f0
AJ
1593# ac_fn_c_try_compile LINENO
1594# --------------------------
1595# Try to compile conftest.$ac_ext, and return whether this succeeded.
1596ac_fn_c_try_compile ()
f5818d2f 1597{
25e9e4f0
AJ
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 rm -f conftest.$ac_objext
1600 if { { ac_try="$ac_compile"
1601case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604esac
1605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606$as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_compile") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1613 fi
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } && {
1616 test -z "$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 } && test -s conftest.$ac_objext; then :
1619 ac_retval=0
1620else
1621 $as_echo "$as_me: failed program was:" >&5
1622sed 's/^/| /' conftest.$ac_ext >&5
f5818d2f 1623
25e9e4f0
AJ
1624 ac_retval=1
1625fi
1626 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
fa8c4f76 1627 as_fn_set_status $ac_retval
f5818d2f 1628
25e9e4f0 1629} # ac_fn_c_try_compile
f5818d2f 1630
25e9e4f0
AJ
1631# ac_fn_cxx_try_compile LINENO
1632# ----------------------------
1633# Try to compile conftest.$ac_ext, and return whether this succeeded.
1634ac_fn_cxx_try_compile ()
1635{
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 rm -f conftest.$ac_objext
1638 if { { ac_try="$ac_compile"
1639case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642esac
1643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644$as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_compile") 2>conftest.err
1646 ac_status=$?
1647 if test -s conftest.err; then
1648 grep -v '^ *+' conftest.err >conftest.er1
1649 cat conftest.er1 >&5
1650 mv -f conftest.er1 conftest.err
1651 fi
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && {
1654 test -z "$ac_cxx_werror_flag" ||
1655 test ! -s conftest.err
1656 } && test -s conftest.$ac_objext; then :
1657 ac_retval=0
1658else
1659 $as_echo "$as_me: failed program was:" >&5
1660sed 's/^/| /' conftest.$ac_ext >&5
f5818d2f 1661
25e9e4f0
AJ
1662 ac_retval=1
1663fi
1664 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
fa8c4f76 1665 as_fn_set_status $ac_retval
daa2886c 1666
25e9e4f0
AJ
1667} # ac_fn_cxx_try_compile
1668
1669# ac_fn_c_try_link LINENO
1670# -----------------------
1671# Try to link conftest.$ac_ext, and return whether this succeeded.
1672ac_fn_c_try_link ()
1673{
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 rm -f conftest.$ac_objext conftest$ac_exeext
1676 if { { ac_try="$ac_link"
1677case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680esac
1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682$as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_link") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1689 fi
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } && {
1692 test -z "$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 } && test -s conftest$ac_exeext && {
1695 test "$cross_compiling" = yes ||
1696 $as_test_x conftest$ac_exeext
1697 }; then :
1698 ac_retval=0
1699else
1700 $as_echo "$as_me: failed program was:" >&5
1701sed 's/^/| /' conftest.$ac_ext >&5
1702
1703 ac_retval=1
1704fi
1705 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1706 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1707 # interfere with the next link command; also delete a directory that is
1708 # left behind by Apple's compiler. We do this before executing the actions.
1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
fa8c4f76 1711 as_fn_set_status $ac_retval
25e9e4f0
AJ
1712
1713} # ac_fn_c_try_link
1714
1715# ac_fn_c_try_cpp LINENO
1716# ----------------------
1717# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1718ac_fn_c_try_cpp ()
1719{
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 if { { ac_try="$ac_cpp conftest.$ac_ext"
1722case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1729 ac_status=$?
1730 if test -s conftest.err; then
1731 grep -v '^ *+' conftest.err >conftest.er1
1732 cat conftest.er1 >&5
1733 mv -f conftest.er1 conftest.err
1734 fi
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } >/dev/null && {
1737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1738 test ! -s conftest.err
1739 }; then :
1740 ac_retval=0
1741else
1742 $as_echo "$as_me: failed program was:" >&5
1743sed 's/^/| /' conftest.$ac_ext >&5
1744
1745 ac_retval=1
1746fi
1747 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
fa8c4f76 1748 as_fn_set_status $ac_retval
25e9e4f0
AJ
1749
1750} # ac_fn_c_try_cpp
1751
1752# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1753# -------------------------------------------------------
1754# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1755# the include files in INCLUDES and setting the cache variable VAR
1756# accordingly.
1757ac_fn_c_check_header_mongrel ()
1758{
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762$as_echo_n "checking for $2... " >&6; }
1763if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1764 $as_echo_n "(cached) " >&6
1765fi
1766eval ac_res=\$$3
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768$as_echo "$ac_res" >&6; }
1769else
1770 # Is the header compilable?
1771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1772$as_echo_n "checking $2 usability... " >&6; }
1773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774/* end confdefs.h. */
1775$4
1776#include <$2>
1777_ACEOF
1778if ac_fn_c_try_compile "$LINENO"; then :
1779 ac_header_compiler=yes
1780else
1781 ac_header_compiler=no
1782fi
1783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1785$as_echo "$ac_header_compiler" >&6; }
1786
1787# Is the header present?
1788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1789$as_echo_n "checking $2 presence... " >&6; }
1790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791/* end confdefs.h. */
1792#include <$2>
1793_ACEOF
1794if ac_fn_c_try_cpp "$LINENO"; then :
1795 ac_header_preproc=yes
1796else
1797 ac_header_preproc=no
1798fi
1799rm -f conftest.err conftest.$ac_ext
1800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1801$as_echo "$ac_header_preproc" >&6; }
1802
1803# So? What about this header?
1804case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1805 yes:no: )
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1807$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1809$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1810 ;;
1811 no:yes:* )
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1813$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1815$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1817$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1819$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1821$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1822( cat <<\_ASBOX
1823## ------------------------------------ ##
1824## Report this to wine-devel@winehq.org ##
1825## ------------------------------------ ##
1826_ASBOX
1827 ) | sed "s/^/$as_me: WARNING: /" >&2
1828 ;;
1829esac
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831$as_echo_n "checking for $2... " >&6; }
1832if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1833 $as_echo_n "(cached) " >&6
1834else
1835 eval "$3=\$ac_header_compiler"
1836fi
1837eval ac_res=\$$3
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839$as_echo "$ac_res" >&6; }
1840fi
1841 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842
1843} # ac_fn_c_check_header_mongrel
1844
1845# ac_fn_c_try_run LINENO
1846# ----------------------
1847# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1848# that executables *can* be run.
1849ac_fn_c_try_run ()
1850{
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 if { { ac_try="$ac_link"
1853case "(($ac_try" in
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1856esac
1857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858$as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_link") 2>&5
1860 ac_status=$?
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1863 { { case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866esac
1867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868$as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_try") 2>&5
1870 ac_status=$?
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; }; }; then :
1873 ac_retval=0
1874else
1875 $as_echo "$as_me: program exited with status $ac_status" >&5
1876 $as_echo "$as_me: failed program was:" >&5
1877sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 ac_retval=$ac_status
1880fi
1881 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
fa8c4f76 1883 as_fn_set_status $ac_retval
25e9e4f0
AJ
1884
1885} # ac_fn_c_try_run
1886
1887# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1888# -------------------------------------------------------
1889# Tests whether HEADER exists and can be compiled using the include files in
1890# INCLUDES, setting the cache variable VAR accordingly.
1891ac_fn_c_check_header_compile ()
1892{
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895$as_echo_n "checking for $2... " >&6; }
1896if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1897 $as_echo_n "(cached) " >&6
1898else
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900/* end confdefs.h. */
1901$4
1902#include <$2>
1903_ACEOF
1904if ac_fn_c_try_compile "$LINENO"; then :
1905 eval "$3=yes"
1906else
1907 eval "$3=no"
1908fi
1909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910fi
1911eval ac_res=\$$3
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913$as_echo "$ac_res" >&6; }
1914 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1915
1916} # ac_fn_c_check_header_compile
1917
1918# ac_fn_c_check_func LINENO FUNC VAR
1919# ----------------------------------
1920# Tests whether FUNC exists, setting the cache variable VAR accordingly
1921ac_fn_c_check_func ()
1922{
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925$as_echo_n "checking for $2... " >&6; }
1926if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1927 $as_echo_n "(cached) " >&6
1928else
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930/* end confdefs.h. */
1931/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1933#define $2 innocuous_$2
1934
1935/* System header to define __stub macros and hopefully few prototypes,
1936 which can conflict with char $2 (); below.
1937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1938 <limits.h> exists even on freestanding compilers. */
1939
1940#ifdef __STDC__
1941# include <limits.h>
1942#else
1943# include <assert.h>
1944#endif
1945
1946#undef $2
1947
1948/* Override any GCC internal prototype to avoid an error.
1949 Use char because int might match the return type of a GCC
1950 builtin and then its argument prototype would still apply. */
1951#ifdef __cplusplus
1952extern "C"
1953#endif
1954char $2 ();
1955/* The GNU C library defines this for functions which it implements
1956 to always fail with ENOSYS. Some functions are actually named
1957 something starting with __ and the normal name is an alias. */
1958#if defined __stub_$2 || defined __stub___$2
1959choke me
1960#endif
1961
1962int
1963main ()
1964{
1965return $2 ();
1966 ;
1967 return 0;
1968}
1969_ACEOF
1970if ac_fn_c_try_link "$LINENO"; then :
1971 eval "$3=yes"
1972else
1973 eval "$3=no"
1974fi
1975rm -f core conftest.err conftest.$ac_objext \
1976 conftest$ac_exeext conftest.$ac_ext
1977fi
1978eval ac_res=\$$3
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980$as_echo "$ac_res" >&6; }
1981 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1982
1983} # ac_fn_c_check_func
1984
1985# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1986# ----------------------------------------------------
1987# Tries to find if the field MEMBER exists in type AGGR, after including
1988# INCLUDES, setting cache variable VAR accordingly.
1989ac_fn_c_check_member ()
1990{
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1993$as_echo_n "checking for $2.$3... " >&6; }
1994if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1995 $as_echo_n "(cached) " >&6
1996else
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998/* end confdefs.h. */
1999$5
2000int
2001main ()
2002{
2003static $2 ac_aggr;
2004if (ac_aggr.$3)
2005return 0;
2006 ;
2007 return 0;
2008}
2009_ACEOF
2010if ac_fn_c_try_compile "$LINENO"; then :
2011 eval "$4=yes"
2012else
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014/* end confdefs.h. */
2015$5
2016int
2017main ()
2018{
2019static $2 ac_aggr;
2020if (sizeof ac_aggr.$3)
2021return 0;
2022 ;
2023 return 0;
2024}
2025_ACEOF
2026if ac_fn_c_try_compile "$LINENO"; then :
2027 eval "$4=yes"
2028else
2029 eval "$4=no"
2030fi
2031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032fi
2033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034fi
2035eval ac_res=\$$4
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037$as_echo "$ac_res" >&6; }
2038 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2039
2040} # ac_fn_c_check_member
2041
2042# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2043# -------------------------------------------
2044# Tests whether TYPE exists after having included INCLUDES, setting cache
2045# variable VAR accordingly.
2046ac_fn_c_check_type ()
2047{
2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2050$as_echo_n "checking for $2... " >&6; }
2051if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2052 $as_echo_n "(cached) " >&6
2053else
2054 eval "$3=no"
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056/* end confdefs.h. */
2057$4
2058int
2059main ()
2060{
2061if (sizeof ($2))
2062 return 0;
2063 ;
2064 return 0;
2065}
2066_ACEOF
2067if ac_fn_c_try_compile "$LINENO"; then :
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069/* end confdefs.h. */
2070$4
2071int
2072main ()
2073{
2074if (sizeof (($2)))
2075 return 0;
2076 ;
2077 return 0;
2078}
2079_ACEOF
2080if ac_fn_c_try_compile "$LINENO"; then :
2081
2082else
2083 eval "$3=yes"
2084fi
2085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086fi
2087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088fi
2089eval ac_res=\$$3
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2091$as_echo "$ac_res" >&6; }
2092 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2093
2094} # ac_fn_c_check_type
2095cat >config.log <<_ACEOF
2096This file contains any messages produced by compilers while
2097running configure, to aid debugging if configure makes a mistake.
2098
8b2a403a 2099It was created by Wine $as_me 1.3.0, which was
fa8c4f76 2100generated by GNU Autoconf 2.65. Invocation command line was
25e9e4f0
AJ
2101
2102 $ $0 $@
2103
2104_ACEOF
2105exec 5>>config.log
2106{
2107cat <<_ASUNAME
2108## --------- ##
2109## Platform. ##
2110## --------- ##
2111
2112hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2113uname -m = `(uname -m) 2>/dev/null || echo unknown`
2114uname -r = `(uname -r) 2>/dev/null || echo unknown`
2115uname -s = `(uname -s) 2>/dev/null || echo unknown`
2116uname -v = `(uname -v) 2>/dev/null || echo unknown`
2117
2118/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2119/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2120
2121/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2122/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2123/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2124/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2125/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2126/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2127/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2128
2129_ASUNAME
2130
2131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
daa2886c
AJ
2132for as_dir in $PATH
2133do
2134 IFS=$as_save_IFS
2135 test -z "$as_dir" && as_dir=.
25e9e4f0
AJ
2136 $as_echo "PATH: $as_dir"
2137 done
fc6ffb29 2138IFS=$as_save_IFS
daa2886c 2139
f5818d2f
AJ
2140} >&5
2141
daa2886c
AJ
2142cat >&5 <<_ACEOF
2143
2144
2145## ----------- ##
2146## Core tests. ##
2147## ----------- ##
2148
2149_ACEOF
f5818d2f 2150
f5818d2f
AJ
2151
2152# Keep a trace of the command line.
2153# Strip out --no-create and --no-recursion so they do not pile up.
e24bcc77 2154# Strip out --silent because we don't want to record it for future runs.
f5818d2f 2155# Also quote any args containing shell meta-characters.
e24bcc77 2156# Make two passes to allow for proper duplicate-argument suppression.
f5818d2f 2157ac_configure_args=
e24bcc77
AJ
2158ac_configure_args0=
2159ac_configure_args1=
e24bcc77
AJ
2160ac_must_keep_next=false
2161for ac_pass in 1 2
f5818d2f 2162do
e24bcc77
AJ
2163 for ac_arg
2164 do
2165 case $ac_arg in
2166 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2168 | -silent | --silent | --silen | --sile | --sil)
2169 continue ;;
fc6ffb29 2170 *\'*)
abf5048b 2171 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
e24bcc77
AJ
2172 esac
2173 case $ac_pass in
25e9e4f0 2174 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
e24bcc77 2175 2)
25e9e4f0 2176 as_fn_append ac_configure_args1 " '$ac_arg'"
e24bcc77 2177 if test $ac_must_keep_next = true; then
875927f6 2178 ac_must_keep_next=false # Got value, back to normal.
e24bcc77 2179 else
875927f6
AJ
2180 case $ac_arg in
2181 *=* | --config-cache | -C | -disable-* | --disable-* \
2182 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2183 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2184 | -with-* | --with-* | -without-* | --without-* | --x)
2185 case "$ac_configure_args0 " in
2186 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2187 esac
2188 ;;
2189 -* ) ac_must_keep_next=true ;;
2190 esac
e24bcc77 2191 fi
25e9e4f0 2192 as_fn_append ac_configure_args " '$ac_arg'"
e24bcc77
AJ
2193 ;;
2194 esac
2195 done
f5818d2f 2196done
25e9e4f0
AJ
2197{ ac_configure_args0=; unset ac_configure_args0;}
2198{ ac_configure_args1=; unset ac_configure_args1;}
f5818d2f
AJ
2199
2200# When interrupted or exit'd, cleanup temporary files, and complete
2201# config.log. We remove comments because anyway the quotes in there
2202# would cause problems or look ugly.
fc6ffb29
AJ
2203# WARNING: Use '\'' to represent an apostrophe within the trap.
2204# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
f5818d2f
AJ
2205trap 'exit_status=$?
2206 # Save into config.log some information that might help in debugging.
daa2886c
AJ
2207 {
2208 echo
11af04e3 2209
daa2886c
AJ
2210 cat <<\_ASBOX
2211## ---------------- ##
2212## Cache variables. ##
2213## ---------------- ##
2214_ASBOX
2215 echo
2216 # The following way of writing the cache mishandles newlines in values,
fc6ffb29
AJ
2217(
2218 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2219 eval ac_val=\$$ac_var
2220 case $ac_val in #(
2221 *${as_nl}*)
2222 case $ac_var in #(
25e9e4f0 2223 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
abf5048b 2224$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
fc6ffb29
AJ
2225 esac
2226 case $ac_var in #(
2227 _ | IFS | as_nl) ;; #(
abf5048b 2228 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25e9e4f0 2229 *) { eval $ac_var=; unset $ac_var;} ;;
fc6ffb29
AJ
2230 esac ;;
2231 esac
2232 done
f5818d2f 2233 (set) 2>&1 |
fc6ffb29
AJ
2234 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2235 *${as_nl}ac_space=\ *)
f5818d2f 2236 sed -n \
fc6ffb29
AJ
2237 "s/'\''/'\''\\\\'\'''\''/g;
2238 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2239 ;; #(
f5818d2f 2240 *)
fc6ffb29 2241 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
f5818d2f 2242 ;;
fc6ffb29
AJ
2243 esac |
2244 sort
2245)
daa2886c 2246 echo
11af04e3
AJ
2247
2248 cat <<\_ASBOX
2249## ----------------- ##
2250## Output variables. ##
2251## ----------------- ##
2252_ASBOX
2253 echo
2254 for ac_var in $ac_subst_vars
2255 do
fc6ffb29 2256 eval ac_val=\$$ac_var
0ebeb530 2257 case $ac_val in
abf5048b 2258 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
0ebeb530 2259 esac
abf5048b 2260 $as_echo "$ac_var='\''$ac_val'\''"
11af04e3
AJ
2261 done | sort
2262 echo
2263
2264 if test -n "$ac_subst_files"; then
2265 cat <<\_ASBOX
fc6ffb29
AJ
2266## ------------------- ##
2267## File substitutions. ##
2268## ------------------- ##
11af04e3
AJ
2269_ASBOX
2270 echo
2271 for ac_var in $ac_subst_files
2272 do
fc6ffb29 2273 eval ac_val=\$$ac_var
0ebeb530 2274 case $ac_val in
abf5048b 2275 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
0ebeb530 2276 esac
abf5048b 2277 $as_echo "$ac_var='\''$ac_val'\''"
11af04e3
AJ
2278 done | sort
2279 echo
2280 fi
2281
daa2886c
AJ
2282 if test -s confdefs.h; then
2283 cat <<\_ASBOX
2284## ----------- ##
2285## confdefs.h. ##
2286## ----------- ##
2287_ASBOX
2288 echo
fc6ffb29 2289 cat confdefs.h
daa2886c
AJ
2290 echo
2291 fi
2292 test "$ac_signal" != 0 &&
abf5048b
AJ
2293 $as_echo "$as_me: caught signal $ac_signal"
2294 $as_echo "$as_me: exit $exit_status"
daa2886c 2295 } >&5
fc6ffb29
AJ
2296 rm -f core *.core core.conftest.* &&
2297 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
f5818d2f 2298 exit $exit_status
fc6ffb29 2299' 0
f5818d2f 2300for ac_signal in 1 2 13 15; do
25e9e4f0 2301 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
f5818d2f
AJ
2302done
2303ac_signal=0
2304
2305# confdefs.h avoids OS command line length limits that DEFS can exceed.
fc6ffb29 2306rm -f -r conftest* confdefs.h
f5818d2f 2307
25e9e4f0
AJ
2308$as_echo "/* confdefs.h */" > confdefs.h
2309
daa2886c
AJ
2310# Predefined preprocessor variables.
2311
2312cat >>confdefs.h <<_ACEOF
2313#define PACKAGE_NAME "$PACKAGE_NAME"
2314_ACEOF
2315
daa2886c
AJ
2316cat >>confdefs.h <<_ACEOF
2317#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2318_ACEOF
2319
daa2886c
AJ
2320cat >>confdefs.h <<_ACEOF
2321#define PACKAGE_VERSION "$PACKAGE_VERSION"
2322_ACEOF
2323
daa2886c
AJ
2324cat >>confdefs.h <<_ACEOF
2325#define PACKAGE_STRING "$PACKAGE_STRING"
2326_ACEOF
2327
daa2886c
AJ
2328cat >>confdefs.h <<_ACEOF
2329#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2330_ACEOF
2331
25e9e4f0
AJ
2332cat >>confdefs.h <<_ACEOF
2333#define PACKAGE_URL "$PACKAGE_URL"
2334_ACEOF
2335
daa2886c 2336
f5818d2f 2337# Let the site file select an alternate cache file if it wants to.
abf5048b
AJ
2338# Prefer an explicitly selected file to automatically selected ones.
2339ac_site_file1=NONE
2340ac_site_file2=NONE
fc6ffb29 2341if test -n "$CONFIG_SITE"; then
abf5048b 2342 ac_site_file1=$CONFIG_SITE
fc6ffb29 2343elif test "x$prefix" != xNONE; then
abf5048b
AJ
2344 ac_site_file1=$prefix/share/config.site
2345 ac_site_file2=$prefix/etc/config.site
fc6ffb29 2346else
abf5048b
AJ
2347 ac_site_file1=$ac_default_prefix/share/config.site
2348 ac_site_file2=$ac_default_prefix/etc/config.site
e2991ea7 2349fi
abf5048b 2350for ac_site_file in "$ac_site_file1" "$ac_site_file2"
fc6ffb29 2351do
abf5048b 2352 test "x$ac_site_file" = xNONE && continue
fa8c4f76 2353 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
25e9e4f0 2354 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
abf5048b 2355$as_echo "$as_me: loading site script $ac_site_file" >&6;}
daa2886c 2356 sed 's/^/| /' "$ac_site_file" >&5
e2991ea7
AJ
2357 . "$ac_site_file"
2358 fi
2359done
2360
2361if test -r "$cache_file"; then
fa8c4f76
AJ
2362 # Some versions of bash will fail to source /dev/null (special files
2363 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2364 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
25e9e4f0 2365 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
abf5048b 2366$as_echo "$as_me: loading cache $cache_file" >&6;}
f5818d2f 2367 case $cache_file in
0ebeb530
JW
2368 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2369 *) . "./$cache_file";;
f5818d2f
AJ
2370 esac
2371 fi
e2991ea7 2372else
25e9e4f0 2373 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
abf5048b 2374$as_echo "$as_me: creating cache $cache_file" >&6;}
f5818d2f
AJ
2375 >$cache_file
2376fi
2377
2378# Check that the precious variables saved in the cache have kept the same
2379# value.
2380ac_cache_corrupted=false
fc6ffb29 2381for ac_var in $ac_precious_vars; do
f5818d2f
AJ
2382 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2383 eval ac_new_set=\$ac_env_${ac_var}_set
fc6ffb29
AJ
2384 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2385 eval ac_new_val=\$ac_env_${ac_var}_value
f5818d2f
AJ
2386 case $ac_old_set,$ac_new_set in
2387 set,)
25e9e4f0 2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
abf5048b 2389$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
f5818d2f
AJ
2390 ac_cache_corrupted=: ;;
2391 ,set)
25e9e4f0 2392 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
abf5048b 2393$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
f5818d2f
AJ
2394 ac_cache_corrupted=: ;;
2395 ,);;
2396 *)
2397 if test "x$ac_old_val" != "x$ac_new_val"; then
abf5048b
AJ
2398 # differences in whitespace do not lead to failure.
2399 ac_old_val_w=`echo x $ac_old_val`
2400 ac_new_val_w=`echo x $ac_new_val`
2401 if test "$ac_old_val_w" != "$ac_new_val_w"; then
25e9e4f0 2402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
abf5048b
AJ
2403$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2404 ac_cache_corrupted=:
2405 else
25e9e4f0 2406 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
abf5048b
AJ
2407$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2408 eval $ac_var=\$ac_old_val
2409 fi
25e9e4f0 2410 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
abf5048b 2411$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
25e9e4f0 2412 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
abf5048b 2413$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
f5818d2f
AJ
2414 fi;;
2415 esac
daa2886c 2416 # Pass precious variables to config.status.
f5818d2f
AJ
2417 if test "$ac_new_set" = set; then
2418 case $ac_new_val in
abf5048b 2419 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
daa2886c
AJ
2420 *) ac_arg=$ac_var=$ac_new_val ;;
2421 esac
2422 case " $ac_configure_args " in
2423 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
25e9e4f0 2424 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
f5818d2f
AJ
2425 esac
2426 fi
2427done
2428if $ac_cache_corrupted; then
25e9e4f0 2429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
abf5048b 2430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25e9e4f0 2431 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
abf5048b 2432$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
25e9e4f0 2433 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
e2991ea7 2434fi
25e9e4f0
AJ
2435## -------------------- ##
2436## Main body of script. ##
2437## -------------------- ##
daa2886c 2438
fc6ffb29
AJ
2439ac_ext=c
2440ac_cpp='$CPP $CPPFLAGS'
2441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2443ac_compiler_gnu=$ac_cv_c_compiler_gnu
daa2886c 2444
e2991ea7 2445
11af04e3 2446
fc6ffb29 2447ac_config_headers="$ac_config_headers include/config.h"
18f92e76 2448
d7d4fdf8 2449ac_aux_dir=
0ebeb530 2450for ac_dir in tools "$srcdir"/tools; do
25e9e4f0
AJ
2451 for ac_t in install-sh install.sh shtool; do
2452 if test -f "$ac_dir/$ac_t"; then
2453 ac_aux_dir=$ac_dir
2454 ac_install_sh="$ac_aux_dir/$ac_t -c"
2455 break 2
2456 fi
2457 done
d7d4fdf8
AJ
2458done
2459if test -z "$ac_aux_dir"; then
25e9e4f0 2460 as_fn_error "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
d7d4fdf8 2461fi
0ebeb530
JW
2462
2463# These three variables are undocumented and unsupported,
2464# and are intended to be withdrawn in a future Autoconf release.
2465# They can cause serious problems if a builder's source tree is in a directory
2466# whose full name contains unusual characters.
2467ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2468ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2469ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2470
ff8331ea 2471
daa2886c
AJ
2472
2473
d59227e5 2474
fc6ffb29 2475# Check whether --enable-win16 was given.
25e9e4f0 2476if test "${enable_win16+set}" = set; then :
fc6ffb29
AJ
2477 enableval=$enable_win16;
2478fi
c728efc3 2479
fc6ffb29 2480# Check whether --enable-win64 was given.
25e9e4f0 2481if test "${enable_win64+set}" = set; then :
fc6ffb29
AJ
2482 enableval=$enable_win64;
2483fi
2aa8e871 2484
35078f4b 2485# Check whether --enable-tests was given.
25e9e4f0 2486if test "${enable_tests+set}" = set; then :
35078f4b
AJ
2487 enableval=$enable_tests;
2488fi
2489
9d037226 2490# Check whether --enable-maintainer-mode was given.
25e9e4f0 2491if test "${enable_maintainer_mode+set}" = set; then :
9d037226 2492 enableval=$enable_maintainer_mode;
9d037226
AJ
2493fi
2494
b8074991
AJ
2495
2496
a41f0f1b 2497# Check whether --with-alsa was given.
25e9e4f0 2498if test "${with_alsa+set}" = set; then :
a41f0f1b
AJ
2499 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2500fi
2501
2502
2503# Check whether --with-audioio was given.
25e9e4f0 2504if test "${with_audioio+set}" = set; then :
a41f0f1b
AJ
2505 withval=$with_audioio; if test "x$withval" = "xno"; then ac_cv_header_libaudioio_h=no; fi
2506fi
2507
2508
2509# Check whether --with-capi was given.
25e9e4f0 2510if test "${with_capi+set}" = set; then :
a41f0f1b
AJ
2511 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2512fi
2513
2514
2515# Check whether --with-cms was given.
25e9e4f0 2516if test "${with_cms+set}" = set; then :
a41f0f1b
AJ
2517 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2518fi
2519
2520
2521# Check whether --with-coreaudio was given.
25e9e4f0 2522if test "${with_coreaudio+set}" = set; then :
a41f0f1b
AJ
2523 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2524fi
2525
2526
2527# Check whether --with-cups was given.
25e9e4f0 2528if test "${with_cups+set}" = set; then :
289ea338 2529 withval=$with_cups;
a41f0f1b
AJ
2530fi
2531
2532
2533# Check whether --with-curses was given.
25e9e4f0 2534if test "${with_curses+set}" = set; then :
a41f0f1b
AJ
2535 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2536fi
2537
2538
2539# Check whether --with-esd was given.
25e9e4f0 2540if test "${with_esd+set}" = set; then :
a41f0f1b
AJ
2541 withval=$with_esd;
2542fi
2543
2544
2545# Check whether --with-fontconfig was given.
25e9e4f0 2546if test "${with_fontconfig+set}" = set; then :
a41f0f1b
AJ
2547 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2548fi
2549
2550
a20c0e12 2551# Check whether --with-freetype was given.
25e9e4f0 2552if test "${with_freetype+set}" = set; then :
a20c0e12
AJ
2553 withval=$with_freetype;
2554fi
2555
2556
a41f0f1b 2557# Check whether --with-gphoto was given.
25e9e4f0 2558if test "${with_gphoto+set}" = set; then :
a41f0f1b
AJ
2559 withval=$with_gphoto;
2560fi
2561
2562
ad798735 2563# Check whether --with-glu was given.
25e9e4f0 2564if test "${with_glu+set}" = set; then :
ad798735
AJ
2565 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2566fi
2567
2568
874c9ef6 2569# Check whether --with-gnutls was given.
25e9e4f0 2570if test "${with_gnutls+set}" = set; then :
874c9ef6
HV
2571 withval=$with_gnutls;
2572fi
2573
2574
6ce32e0d
AJ
2575# Check whether --with-gsm was given.
2576if test "${with_gsm+set}" = set; then :
2577 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
58b5a3f6
ML
2578fi
2579
2580
a41f0f1b 2581# Check whether --with-hal was given.
25e9e4f0 2582if test "${with_hal+set}" = set; then :
a41f0f1b
AJ
2583 withval=$with_hal;
2584fi
2585
2586
2587# Check whether --with-jack was given.
25e9e4f0 2588if test "${with_jack+set}" = set; then :
a41f0f1b
AJ
2589 withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2590fi
2591
2592
2593# Check whether --with-jpeg was given.
25e9e4f0 2594if test "${with_jpeg+set}" = set; then :
a41f0f1b
AJ
2595 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2596fi
2597
2598
2599# Check whether --with-ldap was given.
25e9e4f0 2600if test "${with_ldap+set}" = set; then :
a41f0f1b
AJ
2601 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2602fi
2603
2604
db71d7c0
AS
2605# Check whether --with-mpg123 was given.
2606if test "${with_mpg123+set}" = set; then :
2607 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2608fi
2609
2610
a41f0f1b 2611# Check whether --with-nas was given.
25e9e4f0 2612if test "${with_nas+set}" = set; then :
a41f0f1b
AJ
2613 withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2614fi
2615
2616
862965f4
CR
2617# Check whether --with-openal was given.
2618if test "${with_openal+set}" = set; then :
0b08f19e 2619 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
2620fi
2621
2622
fc6ffb29 2623# Check whether --with-opengl was given.
25e9e4f0 2624if test "${with_opengl+set}" = set; then :
fc6ffb29
AJ
2625 withval=$with_opengl;
2626fi
f90efa9c
AJ
2627
2628
a41f0f1b 2629# Check whether --with-openssl was given.
25e9e4f0 2630if test "${with_openssl+set}" = set; then :
a41f0f1b
AJ
2631 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2632fi
2633
2634
2635# Check whether --with-oss was given.
25e9e4f0 2636if test "${with_oss+set}" = set; then :
a41f0f1b
AJ
2637 withval=$with_oss; if test "x$withval" = "xno"; then ac_cv_header_soundcard_h=no; ac_cv_header_sys_soundcard_h=no; ac_cv_header_machine_soundcard_h=no; fi
2638fi
2639
2640
2641# Check whether --with-png was given.
25e9e4f0 2642if test "${with_png+set}" = set; then :
a41f0f1b
AJ
2643 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2644fi
2645
2646
c891f6bc 2647# Check whether --with-pthread was given.
25e9e4f0 2648if test "${with_pthread+set}" = set; then :
c891f6bc
AJ
2649 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2650fi
2651
2652
a41f0f1b 2653# Check whether --with-sane was given.
25e9e4f0 2654if test "${with_sane+set}" = set; then :
a41f0f1b
AJ
2655 withval=$with_sane;
2656fi
2657
2658
73cd5693
VP
2659# Check whether --with-tiff was given.
2660if test "${with_tiff+set}" = set; then :
2661 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2662fi
2663
2664
bf6f0750
ML
2665# Check whether --with-v4l was given.
2666if test "${with_v4l+set}" = set; then :
2667 withval=$with_v4l;
2668fi
2669
2670
a41f0f1b 2671# Check whether --with-xcomposite was given.
25e9e4f0 2672if test "${with_xcomposite+set}" = set; then :
a41f0f1b
AJ
2673 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2674fi
2675
2676
2677# Check whether --with-xcursor was given.
25e9e4f0 2678if test "${with_xcursor+set}" = set; then :
a41f0f1b
AJ
2679 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2680fi
2681
2682
2683# Check whether --with-xinerama was given.
25e9e4f0 2684if test "${with_xinerama+set}" = set; then :
a41f0f1b
AJ
2685 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2686fi
2687
2688
2689# Check whether --with-xinput was given.
25e9e4f0 2690if test "${with_xinput+set}" = set; then :
a41f0f1b
AJ
2691 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2692fi
2693
2694
2695# Check whether --with-xml was given.
25e9e4f0 2696if test "${with_xml+set}" = set; then :
a41f0f1b
AJ
2697 withval=$with_xml;
2698fi
2699
2700
2701# Check whether --with-xrandr was given.
25e9e4f0 2702if test "${with_xrandr+set}" = set; then :
a41f0f1b
AJ
2703 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2704fi
2705
2706
2707# Check whether --with-xrender was given.
25e9e4f0 2708if test "${with_xrender+set}" = set; then :
a41f0f1b
AJ
2709 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2710fi
2711
2712
2713# Check whether --with-xshape was given.
25e9e4f0 2714if test "${with_xshape+set}" = set; then :
a41f0f1b
AJ
2715 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2716fi
2717
2718
2719# Check whether --with-xshm was given.
25e9e4f0 2720if test "${with_xshm+set}" = set; then :
a41f0f1b
AJ
2721 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2722fi
2723
2724
2725# Check whether --with-xslt was given.
25e9e4f0 2726if test "${with_xslt+set}" = set; then :
a41f0f1b
AJ
2727 withval=$with_xslt;
2728fi
2729
2730
a49beb4c 2731# Check whether --with-xxf86vm was given.
25e9e4f0 2732if test "${with_xxf86vm+set}" = set; then :
7b285a4e 2733 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
2734fi
2735
2736
2737
fc6ffb29 2738# Check whether --with-wine-tools was given.
25e9e4f0 2739if test "${with_wine_tools+set}" = set; then :
fc6ffb29
AJ
2740 withval=$with_wine_tools;
2741fi
fc01b729 2742
fc01b729 2743
39a75d37
AJ
2744# Check whether --with-wine64 was given.
2745if test "${with_wine64+set}" = set; then :
2746 withval=$with_wine64;
2747fi
2748
2749
f5818d2f 2750# Make sure we can run config.sub.
0ebeb530 2751$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
25e9e4f0 2752 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
f5818d2f 2753
25e9e4f0 2754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
abf5048b 2755$as_echo_n "checking build system type... " >&6; }
25e9e4f0 2756if test "${ac_cv_build+set}" = set; then :
abf5048b 2757 $as_echo_n "(cached) " >&6
f5818d2f 2758else
fc6ffb29
AJ
2759 ac_build_alias=$build_alias
2760test "x$ac_build_alias" = x &&
0ebeb530 2761 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
fc6ffb29 2762test "x$ac_build_alias" = x &&
25e9e4f0 2763 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
0ebeb530 2764ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
25e9e4f0 2765 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
f5818d2f
AJ
2766
2767fi
25e9e4f0 2768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
abf5048b 2769$as_echo "$ac_cv_build" >&6; }
fc6ffb29
AJ
2770case $ac_cv_build in
2771*-*-*) ;;
25e9e4f0 2772*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
fc6ffb29 2773esac
f5818d2f 2774build=$ac_cv_build
fc6ffb29
AJ
2775ac_save_IFS=$IFS; IFS='-'
2776set x $ac_cv_build
2777shift
2778build_cpu=$1
2779build_vendor=$2
2780shift; shift
2781# Remember, the first character of IFS is used to create $*,
2782# except with old shells:
2783build_os=$*
2784IFS=$ac_save_IFS
2785case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2786
2787
25e9e4f0 2788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
abf5048b 2789$as_echo_n "checking host system type... " >&6; }
25e9e4f0 2790if test "${ac_cv_host+set}" = set; then :
abf5048b 2791 $as_echo_n "(cached) " >&6
f5818d2f 2792else
fc6ffb29
AJ
2793 if test "x$host_alias" = x; then
2794 ac_cv_host=$ac_cv_build
2795else
0ebeb530 2796 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
25e9e4f0 2797 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
fc6ffb29 2798fi
f5818d2f
AJ
2799
2800fi
25e9e4f0 2801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
abf5048b 2802$as_echo "$ac_cv_host" >&6; }
fc6ffb29
AJ
2803case $ac_cv_host in
2804*-*-*) ;;
25e9e4f0 2805*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
fc6ffb29 2806esac
f5818d2f 2807host=$ac_cv_host
fc6ffb29
AJ
2808ac_save_IFS=$IFS; IFS='-'
2809set x $ac_cv_host
2810shift
2811host_cpu=$1
2812host_vendor=$2
2813shift; shift
2814# Remember, the first character of IFS is used to create $*,
2815# except with old shells:
2816host_os=$*
2817IFS=$ac_save_IFS
2818case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
f5818d2f 2819
daa2886c 2820
71440f35 2821
73b724e7
AJ
2822case "$srcdir" in
2823 .) ;;
2824 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
25e9e4f0
AJ
2825 as_fn_error "you are building out of the source tree, but the source tree contains object files.
2826You need to run 'make distclean' in the source tree first." "$LINENO" 5
73b724e7
AJ
2827 fi ;;
2828esac
2829
71440f35 2830
25e9e4f0 2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
abf5048b
AJ
2832$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2833set x ${MAKE-make}
2834ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
25e9e4f0 2835if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
abf5048b 2836 $as_echo_n "(cached) " >&6
f5818d2f 2837else
daa2886c 2838 cat >conftest.make <<\_ACEOF
fc6ffb29 2839SHELL = /bin/sh
e2991ea7 2840all:
0ebeb530 2841 @echo '@@@%%%=$(MAKE)=@@@%%%'
daa2886c 2842_ACEOF
e2991ea7 2843# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
0ebeb530
JW
2844case `${MAKE-make} -f conftest.make 2>/dev/null` in
2845 *@@@%%%=?*=@@@%%%*)
2846 eval ac_cv_prog_make_${ac_make}_set=yes;;
2847 *)
2848 eval ac_cv_prog_make_${ac_make}_set=no;;
2849esac
f5818d2f 2850rm -f conftest.make
e2991ea7 2851fi
0ebeb530 2852if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
25e9e4f0 2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
abf5048b 2854$as_echo "yes" >&6; }
e2991ea7
AJ
2855 SET_MAKE=
2856else
25e9e4f0 2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 2858$as_echo "no" >&6; }
e2991ea7
AJ
2859 SET_MAKE="MAKE=${MAKE-make}"
2860fi
2861
f5818d2f
AJ
2862ac_ext=c
2863ac_cpp='$CPP $CPPFLAGS'
2864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867if test -n "$ac_tool_prefix"; then
2868 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2869set dummy ${ac_tool_prefix}gcc; ac_word=$2
25e9e4f0 2870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf5048b 2871$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 2872if test "${ac_cv_prog_CC+set}" = set; then :
abf5048b 2873 $as_echo_n "(cached) " >&6
f5818d2f
AJ
2874else
2875 if test -n "$CC"; then
2876 ac_cv_prog_CC="$CC" # Let the user override the test.
2877else
daa2886c
AJ
2878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879for as_dir in $PATH
2880do
2881 IFS=$as_save_IFS
2882 test -z "$as_dir" && as_dir=.
25e9e4f0 2883 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 2884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c 2885 ac_cv_prog_CC="${ac_tool_prefix}gcc"
25e9e4f0 2886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
daa2886c
AJ
2887 break 2
2888 fi
2889done
25e9e4f0 2890 done
fc6ffb29 2891IFS=$as_save_IFS
f5818d2f
AJ
2892
2893fi
2894fi
2895CC=$ac_cv_prog_CC
2896if test -n "$CC"; then
25e9e4f0 2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
abf5048b 2898$as_echo "$CC" >&6; }
f5818d2f 2899else
25e9e4f0 2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 2901$as_echo "no" >&6; }
f5818d2f
AJ
2902fi
2903
fc6ffb29 2904
f5818d2f
AJ
2905fi
2906if test -z "$ac_cv_prog_CC"; then
2907 ac_ct_CC=$CC
2908 # Extract the first word of "gcc", so it can be a program name with args.
e2991ea7 2909set dummy gcc; ac_word=$2
25e9e4f0 2910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf5048b 2911$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 2912if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
abf5048b 2913 $as_echo_n "(cached) " >&6
f5818d2f
AJ
2914else
2915 if test -n "$ac_ct_CC"; then
2916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2917else
daa2886c
AJ
2918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919for as_dir in $PATH
2920do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
25e9e4f0 2923 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 2924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c 2925 ac_cv_prog_ac_ct_CC="gcc"
25e9e4f0 2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
daa2886c
AJ
2927 break 2
2928 fi
2929done
25e9e4f0 2930 done
fc6ffb29 2931IFS=$as_save_IFS
f5818d2f
AJ
2932
2933fi
2934fi
2935ac_ct_CC=$ac_cv_prog_ac_ct_CC
2936if test -n "$ac_ct_CC"; then
25e9e4f0 2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
abf5048b 2938$as_echo "$ac_ct_CC" >&6; }
f5818d2f 2939else
25e9e4f0 2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 2941$as_echo "no" >&6; }
f5818d2f
AJ
2942fi
2943
fc6ffb29
AJ
2944 if test "x$ac_ct_CC" = x; then
2945 CC=""
2946 else
2947 case $cross_compiling:$ac_tool_warned in
2948yes:)
25e9e4f0 2949{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
abf5048b 2950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
fc6ffb29
AJ
2951ac_tool_warned=yes ;;
2952esac
2953 CC=$ac_ct_CC
2954 fi
f5818d2f
AJ
2955else
2956 CC="$ac_cv_prog_CC"
2957fi
2958
2959if test -z "$CC"; then
fc6ffb29
AJ
2960 if test -n "$ac_tool_prefix"; then
2961 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
f5818d2f 2962set dummy ${ac_tool_prefix}cc; ac_word=$2
25e9e4f0 2963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf5048b 2964$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 2965if test "${ac_cv_prog_CC+set}" = set; then :
abf5048b 2966 $as_echo_n "(cached) " >&6
e2991ea7
AJ
2967else
2968 if test -n "$CC"; then
2969 ac_cv_prog_CC="$CC" # Let the user override the test.
2970else
daa2886c
AJ
2971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972for as_dir in $PATH
2973do
2974 IFS=$as_save_IFS
2975 test -z "$as_dir" && as_dir=.
25e9e4f0 2976 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 2977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c 2978 ac_cv_prog_CC="${ac_tool_prefix}cc"
25e9e4f0 2979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
daa2886c
AJ
2980 break 2
2981 fi
2982done
25e9e4f0 2983 done
fc6ffb29 2984IFS=$as_save_IFS
f5818d2f 2985
e2991ea7
AJ
2986fi
2987fi
f5818d2f 2988CC=$ac_cv_prog_CC
e2991ea7 2989if test -n "$CC"; then
25e9e4f0 2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
abf5048b 2991$as_echo "$CC" >&6; }
f5818d2f 2992else
25e9e4f0 2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 2994$as_echo "no" >&6; }
f5818d2f
AJ
2995fi
2996
e2991ea7 2997
fc6ffb29 2998 fi
f5818d2f 2999fi
b817f4fb
AJ
3000if test -z "$CC"; then
3001 # Extract the first word of "cc", so it can be a program name with args.
3002set dummy cc; ac_word=$2
25e9e4f0 3003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf5048b 3004$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 3005if test "${ac_cv_prog_CC+set}" = set; then :
abf5048b 3006 $as_echo_n "(cached) " >&6
b817f4fb
AJ
3007else
3008 if test -n "$CC"; then
3009 ac_cv_prog_CC="$CC" # Let the user override the test.
3010else
b817f4fb 3011 ac_prog_rejected=no
daa2886c
AJ
3012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013for as_dir in $PATH
3014do
3015 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=.
25e9e4f0 3017 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 3018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
3019 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3020 ac_prog_rejected=yes
3021 continue
3022 fi
3023 ac_cv_prog_CC="cc"
25e9e4f0 3024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
daa2886c
AJ
3025 break 2
3026 fi
3027done
25e9e4f0 3028 done
fc6ffb29 3029IFS=$as_save_IFS
f5818d2f 3030
b817f4fb
AJ
3031if test $ac_prog_rejected = yes; then
3032 # We found a bogon in the path, so make sure we never use it.
3033 set dummy $ac_cv_prog_CC
3034 shift
f5818d2f 3035 if test $# != 0; then
b817f4fb
AJ
3036 # We chose a different compiler from the bogus one.
3037 # However, it has the same basename, so the bogon will be chosen
3038 # first if we set CC to just the basename; use the full file name.
3039 shift
11af04e3 3040 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
b817f4fb
AJ
3041 fi
3042fi
3043fi
3044fi
f5818d2f 3045CC=$ac_cv_prog_CC
b817f4fb 3046if test -n "$CC"; then
25e9e4f0 3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
abf5048b 3048$as_echo "$CC" >&6; }
b817f4fb 3049else
25e9e4f0 3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 3051$as_echo "no" >&6; }
b817f4fb
AJ
3052fi
3053
fc6ffb29 3054
f5818d2f
AJ
3055fi
3056if test -z "$CC"; then
3057 if test -n "$ac_tool_prefix"; then
fc6ffb29 3058 for ac_prog in cl.exe
f5818d2f
AJ
3059 do
3060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3061set dummy $ac_tool_prefix$ac_prog; ac_word=$2
25e9e4f0 3062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf5048b 3063$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 3064if test "${ac_cv_prog_CC+set}" = set; then :
abf5048b 3065 $as_echo_n "(cached) " >&6
f5818d2f
AJ
3066else
3067 if test -n "$CC"; then
18ad24a7
EP
3068 ac_cv_prog_CC="$CC" # Let the user override the test.
3069else
daa2886c
AJ
3070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071for as_dir in $PATH
3072do
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
25e9e4f0 3075 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 3076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c 3077 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
25e9e4f0 3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
daa2886c
AJ
3079 break 2
3080 fi
3081done
25e9e4f0 3082 done
fc6ffb29 3083IFS=$as_save_IFS
f5818d2f 3084
18ad24a7
EP
3085fi
3086fi
f5818d2f 3087CC=$ac_cv_prog_CC
18ad24a7 3088if test -n "$CC"; then
25e9e4f0 3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
abf5048b 3090$as_echo "$CC" >&6; }
18ad24a7 3091else
25e9e4f0 3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 3093$as_echo "no" >&6; }
b817f4fb 3094fi
e2991ea7 3095
fc6ffb29 3096
f5818d2f
AJ
3097 test -n "$CC" && break
3098 done
3099fi
3100if test -z "$CC"; then
3101 ac_ct_CC=$CC
fc6ffb29 3102 for ac_prog in cl.exe
f5818d2f
AJ
3103do
3104 # Extract the first word of "$ac_prog", so it can be a program name with args.
3105set dummy $ac_prog; ac_word=$2
25e9e4f0 3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf5048b 3107$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 3108if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
abf5048b 3109 $as_echo_n "(cached) " >&6
f5818d2f
AJ
3110else
3111 if test -n "$ac_ct_CC"; then
3112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3113else
daa2886c
AJ
3114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115for as_dir in $PATH
3116do
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
25e9e4f0 3119 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 3120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c 3121 ac_cv_prog_ac_ct_CC="$ac_prog"
25e9e4f0 3122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
daa2886c
AJ
3123 break 2
3124 fi
3125done
25e9e4f0 3126 done
fc6ffb29 3127IFS=$as_save_IFS
da0cfb36 3128
f5818d2f
AJ
3129fi
3130fi
3131ac_ct_CC=$ac_cv_prog_ac_ct_CC
3132if test -n "$ac_ct_CC"; then
25e9e4f0 3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
abf5048b 3134$as_echo "$ac_ct_CC" >&6; }
f5818d2f 3135else
25e9e4f0 3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 3137$as_echo "no" >&6; }
f5818d2f 3138fi
da0cfb36 3139
fc6ffb29 3140
f5818d2f
AJ
3141 test -n "$ac_ct_CC" && break
3142done
18ad24a7 3143
fc6ffb29
AJ
3144 if test "x$ac_ct_CC" = x; then
3145 CC=""
3146 else
3147 case $cross_compiling:$ac_tool_warned in
3148yes:)
25e9e4f0 3149{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
abf5048b 3150$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
fc6ffb29
AJ
3151ac_tool_warned=yes ;;
3152esac
3153 CC=$ac_ct_CC
3154 fi
f5818d2f
AJ
3155fi
3156
3157fi
3158
daa2886c 3159
25e9e4f0 3160test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
abf5048b 3161$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25e9e4f0
AJ
3162as_fn_error "no acceptable C compiler found in \$PATH
3163See \`config.log' for more details." "$LINENO" 5; }
f5818d2f
AJ
3164
3165# Provide some information about the compiler.
25e9e4f0 3166$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
abf5048b
AJ
3167set X $ac_compile
3168ac_compiler=$2
25e9e4f0
AJ
3169for ac_option in --version -v -V -qversion; do
3170 { { ac_try="$ac_compiler $ac_option >&5"
0ebeb530
JW
3171case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3174esac
25e9e4f0
AJ
3175eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3176$as_echo "$ac_try_echo"; } >&5
3177 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
f5818d2f 3178 ac_status=$?
25e9e4f0
AJ
3179 if test -s conftest.err; then
3180 sed '10a\
3181... rest of stderr output deleted ...
3182 10q' conftest.err >conftest.er1
3183 cat conftest.er1 >&5
25e9e4f0 3184 fi
fa8c4f76 3185 rm -f conftest.er1 conftest.err
25e9e4f0
AJ
3186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187 test $ac_status = 0; }
3188done
f5818d2f 3189
25e9e4f0 3190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 3191/* end confdefs.h. */
fa8c4f76 3192
f5818d2f
AJ
3193int
3194main ()
3195{
3196
3197 ;
3198 return 0;
3199}
3200_ACEOF
3201ac_clean_files_save=$ac_clean_files
fa8c4f76 3202ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
f5818d2f
AJ
3203# Try to create an executable without -o first, disregard a.out.
3204# It will help us diagnose broken compilers, and finding out an intuition
3205# of exeext.
fa8c4f76
AJ
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3207$as_echo_n "checking whether the C compiler works... " >&6; }
abf5048b
AJ
3208ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3209
3210# The possible output files:
3211ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3212
0ebeb530
JW
3213ac_rmfiles=
3214for ac_file in $ac_files
3215do
3216 case $ac_file in
abf5048b 3217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
0ebeb530
JW
3218 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3219 esac
3220done
3221rm -f $ac_rmfiles
fc6ffb29 3222
25e9e4f0 3223if { { ac_try="$ac_link_default"
0ebeb530
JW
3224case "(($ac_try" in
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3227esac
25e9e4f0
AJ
3228eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3229$as_echo "$ac_try_echo"; } >&5
0ebeb530 3230 (eval "$ac_link_default") 2>&5
f5818d2f 3231 ac_status=$?
25e9e4f0
AJ
3232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3233 test $ac_status = 0; }; then :
0ebeb530
JW
3234 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3235# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3236# in a Makefile. We should not override ac_cv_exeext if it was cached,
3237# so that the user can short-circuit this test for compilers unknown to
3238# Autoconf.
78bd1948 3239for ac_file in $ac_files ''
e24bcc77 3240do
11af04e3 3241 test -f "$ac_file" || continue
f5818d2f 3242 case $ac_file in
abf5048b 3243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
0ebeb530
JW
3244 ;;
3245 [ab].out )
3246 # We found the default executable, but exeext='' is most
3247 # certainly right.
3248 break;;
3249 *.* )
25e9e4f0 3250 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
0ebeb530
JW
3251 then :; else
3252 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3253 fi
3254 # We set ac_cv_exeext here because the later test for it is not
3255 # safe: cross compilers may not add the suffix if given an `-o'
3256 # argument, so we may need to know it at that point already.
3257 # Even if this section looks crufty: it has the advantage of
3258 # actually working.
3259 break;;
3260 * )
3261 break;;
f5818d2f
AJ
3262 esac
3263done
0ebeb530 3264test "$ac_cv_exeext" = no && ac_cv_exeext=
fc6ffb29 3265
f5818d2f 3266else
78bd1948
AJ
3267 ac_file=''
3268fi
25e9e4f0 3269if test -z "$ac_file"; then :
fa8c4f76
AJ
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271$as_echo "no" >&6; }
3272$as_echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3273sed 's/^/| /' conftest.$ac_ext >&5
3274
25e9e4f0 3275{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
abf5048b 3276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25e9e4f0
AJ
3277{ as_fn_set_status 77
3278as_fn_error "C compiler cannot create executables
3279See \`config.log' for more details." "$LINENO" 5; }; }
fa8c4f76
AJ
3280else
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3282$as_echo "yes" >&6; }
f5818d2f 3283fi
fa8c4f76
AJ
3284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3285$as_echo_n "checking for C compiler default output file name... " >&6; }
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3287$as_echo "$ac_file" >&6; }
0ebeb530 3288ac_exeext=$ac_cv_exeext
0ebeb530 3289
fa8c4f76 3290rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
0ebeb530 3291ac_clean_files=$ac_clean_files_save
25e9e4f0 3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
abf5048b 3293$as_echo_n "checking for suffix of executables... " >&6; }
25e9e4f0 3294if { { ac_try="$ac_link"
0ebeb530
JW
3295case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298esac
25e9e4f0
AJ
3299eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300$as_echo "$ac_try_echo"; } >&5
0ebeb530 3301 (eval "$ac_link") 2>&5
f5818d2f 3302 ac_status=$?
25e9e4f0
AJ
3303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304 test $ac_status = 0; }; then :
0ebeb530
JW
3305 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3306# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3307# work properly (i.e., refer to `conftest.exe'), while it won't with
3308# `rm'.
3309for ac_file in conftest.exe conftest conftest.*; do
3310 test -f "$ac_file" || continue
3311 case $ac_file in
abf5048b 3312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
0ebeb530
JW
3313 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3314 break;;
3315 * ) break;;
3316 esac
3317done
da0cfb36 3318else
25e9e4f0 3319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
abf5048b 3320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25e9e4f0
AJ
3321as_fn_error "cannot compute suffix of executables: cannot compile and link
3322See \`config.log' for more details." "$LINENO" 5; }
da0cfb36 3323fi
fa8c4f76 3324rm -f conftest conftest$ac_cv_exeext
25e9e4f0 3325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
abf5048b 3326$as_echo "$ac_cv_exeext" >&6; }
0ebeb530
JW
3327
3328rm -f conftest.$ac_ext
f5818d2f
AJ
3329EXEEXT=$ac_cv_exeext
3330ac_exeext=$EXEEXT
fa8c4f76
AJ
3331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332/* end confdefs.h. */
3333#include <stdio.h>
3334int
3335main ()
3336{
3337FILE *f = fopen ("conftest.out", "w");
3338 return ferror (f) || fclose (f) != 0;
3339
3340 ;
3341 return 0;
3342}
3343_ACEOF
3344ac_clean_files="$ac_clean_files conftest.out"
3345# Check that the compiler produces executables we can run. If not, either
3346# the compiler is broken, or we cross compile.
3347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3348$as_echo_n "checking whether we are cross compiling... " >&6; }
3349if test "$cross_compiling" != yes; then
3350 { { ac_try="$ac_link"
3351case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3354esac
3355eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356$as_echo "$ac_try_echo"; } >&5
3357 (eval "$ac_link") 2>&5
3358 ac_status=$?
3359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360 test $ac_status = 0; }
3361 if { ac_try='./conftest$ac_cv_exeext'
3362 { { case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365esac
3366eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367$as_echo "$ac_try_echo"; } >&5
3368 (eval "$ac_try") 2>&5
3369 ac_status=$?
3370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371 test $ac_status = 0; }; }; then
3372 cross_compiling=no
3373 else
3374 if test "$cross_compiling" = maybe; then
3375 cross_compiling=yes
3376 else
3377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3378$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379as_fn_error "cannot run C compiled programs.
3380If you meant to cross compile, use \`--host'.
3381See \`config.log' for more details." "$LINENO" 5; }
3382 fi
3383 fi
3384fi
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3386$as_echo "$cross_compiling" >&6; }
3387
3388rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3389ac_clean_files=$ac_clean_files_save
25e9e4f0 3390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
abf5048b 3391$as_echo_n "checking for suffix of object files... " >&6; }
25e9e4f0 3392if test "${ac_cv_objext+set}" = set; then :
abf5048b 3393 $as_echo_n "(cached) " >&6
e2991ea7 3394else
25e9e4f0 3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0ebeb530
JW
3396/* end confdefs.h. */
3397
3398int
3399main ()
3400{
3401
3402 ;
3403 return 0;
3404}
3405_ACEOF
3406rm -f conftest.o conftest.obj
25e9e4f0 3407if { { ac_try="$ac_compile"
0ebeb530
JW
3408case "(($ac_try" in
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3411esac
25e9e4f0
AJ
3412eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413$as_echo "$ac_try_echo"; } >&5
0ebeb530 3414 (eval "$ac_compile") 2>&5
f5818d2f 3415 ac_status=$?
25e9e4f0
AJ
3416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417 test $ac_status = 0; }; then :
fc6ffb29
AJ
3418 for ac_file in conftest.o conftest.obj conftest.*; do
3419 test -f "$ac_file" || continue;
f5818d2f 3420 case $ac_file in
abf5048b 3421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
f5818d2f
AJ
3422 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3423 break;;
3424 esac
3425done
18ad24a7 3426else
abf5048b 3427 $as_echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3428sed 's/^/| /' conftest.$ac_ext >&5
3429
25e9e4f0 3430{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
abf5048b 3431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25e9e4f0
AJ
3432as_fn_error "cannot compute suffix of object files: cannot compile
3433See \`config.log' for more details." "$LINENO" 5; }
18ad24a7 3434fi
0ebeb530 3435rm -f conftest.$ac_cv_objext conftest.$ac_ext
f5818d2f 3436fi
25e9e4f0 3437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
abf5048b 3438$as_echo "$ac_cv_objext" >&6; }
f5818d2f
AJ
3439OBJEXT=$ac_cv_objext
3440ac_objext=$OBJEXT
25e9e4f0 3441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
abf5048b 3442$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
25e9e4f0 3443if test "${ac_cv_c_compiler_gnu+set}" = set; then :
abf5048b 3444 $as_echo_n "(cached) " >&6
e2991ea7 3445else
25e9e4f0 3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 3447/* end confdefs.h. */
f5818d2f
AJ
3448
3449int
3450main ()
3451{
3452#ifndef __GNUC__
3453 choke me
3454#endif
3455
3456 ;
3457 return 0;
3458}
3459_ACEOF
25e9e4f0 3460if ac_fn_c_try_compile "$LINENO"; then :
f5818d2f
AJ
3461 ac_compiler_gnu=yes
3462else
25e9e4f0 3463 ac_compiler_gnu=no
f5818d2f 3464fi
0ebeb530 3465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f
AJ
3466ac_cv_c_compiler_gnu=$ac_compiler_gnu
3467
3468fi
25e9e4f0 3469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
abf5048b
AJ
3470$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3471if test $ac_compiler_gnu = yes; then
3472 GCC=yes
3473else
3474 GCC=
3475fi
f5818d2f
AJ
3476ac_test_CFLAGS=${CFLAGS+set}
3477ac_save_CFLAGS=$CFLAGS
25e9e4f0 3478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
abf5048b 3479$as_echo_n "checking whether $CC accepts -g... " >&6; }
25e9e4f0 3480if test "${ac_cv_prog_cc_g+set}" = set; then :
abf5048b 3481 $as_echo_n "(cached) " >&6
f5818d2f 3482else
fc6ffb29
AJ
3483 ac_save_c_werror_flag=$ac_c_werror_flag
3484 ac_c_werror_flag=yes
3485 ac_cv_prog_cc_g=no
3486 CFLAGS="-g"
25e9e4f0 3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fc6ffb29
AJ
3488/* end confdefs.h. */
3489
3490int
3491main ()
3492{
3493
3494 ;
3495 return 0;
3496}
3497_ACEOF
25e9e4f0 3498if ac_fn_c_try_compile "$LINENO"; then :
fc6ffb29
AJ
3499 ac_cv_prog_cc_g=yes
3500else
25e9e4f0
AJ
3501 CFLAGS=""
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fc6ffb29
AJ
3503/* end confdefs.h. */
3504
3505int
3506main ()
3507{
3508
3509 ;
3510 return 0;
3511}
3512_ACEOF
25e9e4f0 3513if ac_fn_c_try_compile "$LINENO"; then :
fc6ffb29 3514
25e9e4f0
AJ
3515else
3516 ac_c_werror_flag=$ac_save_c_werror_flag
fc6ffb29 3517 CFLAGS="-g"
25e9e4f0 3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 3519/* end confdefs.h. */
f5818d2f
AJ
3520
3521int
3522main ()
3523{
3524
3525 ;
3526 return 0;
3527}
3528_ACEOF
25e9e4f0 3529if ac_fn_c_try_compile "$LINENO"; then :
7e6ae4ba 3530 ac_cv_prog_cc_g=yes
fc6ffb29 3531fi
0ebeb530 3532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29 3533fi
0ebeb530 3534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e2991ea7 3535fi
0ebeb530 3536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29 3537 ac_c_werror_flag=$ac_save_c_werror_flag
e2991ea7 3538fi
25e9e4f0 3539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
abf5048b 3540$as_echo "$ac_cv_prog_cc_g" >&6; }
18ad24a7 3541if test "$ac_test_CFLAGS" = set; then
f5818d2f 3542 CFLAGS=$ac_save_CFLAGS
18ad24a7
EP
3543elif test $ac_cv_prog_cc_g = yes; then
3544 if test "$GCC" = yes; then
da0cfb36
AJ
3545 CFLAGS="-g -O2"
3546 else
18ad24a7 3547 CFLAGS="-g"
e2991ea7
AJ
3548 fi
3549else
18ad24a7
EP
3550 if test "$GCC" = yes; then
3551 CFLAGS="-O2"
3552 else
3553 CFLAGS=
3554 fi
e2991ea7 3555fi
25e9e4f0 3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
abf5048b 3557$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
25e9e4f0 3558if test "${ac_cv_prog_cc_c89+set}" = set; then :
abf5048b 3559 $as_echo_n "(cached) " >&6
11af04e3 3560else
fc6ffb29 3561 ac_cv_prog_cc_c89=no
11af04e3 3562ac_save_CC=$CC
25e9e4f0 3563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 3564/* end confdefs.h. */
11af04e3
AJ
3565#include <stdarg.h>
3566#include <stdio.h>
3567#include <sys/types.h>
3568#include <sys/stat.h>
3569/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3570struct buf { int x; };
3571FILE * (*rcsopen) (struct buf *, struct stat *, int);
3572static char *e (p, i)
3573 char **p;
3574 int i;
3575{
3576 return p[i];
3577}
3578static char *f (char * (*g) (char **, int), char **p, ...)
3579{
3580 char *s;
3581 va_list v;
3582 va_start (v,p);
3583 s = g (p, va_arg (v,int));
3584 va_end (v);
3585 return s;
3586}
875927f6
AJ
3587
3588/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3589 function prototypes and stuff, but not '\xHH' hex character constants.
3590 These don't provoke an error unfortunately, instead are silently treated
fc6ffb29 3591 as 'x'. The following induces an error, until -std is added to get
875927f6
AJ
3592 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3593 array size at least. It's necessary to write '\x00'==0 to get something
fc6ffb29 3594 that's true only with -std. */
875927f6
AJ
3595int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3596
f5f37a85
AJ
3597/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3598 inside strings and character constants. */
3599#define FOO(x) 'x'
3600int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3601
11af04e3
AJ
3602int test (int i, double x);
3603struct s1 {int (*f) (int a);};
3604struct s2 {int (*f) (double a);};
3605int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3606int argc;
3607char **argv;
3608int
3609main ()
3610{
3611return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3612 ;
3613 return 0;
3614}
3615_ACEOF
fc6ffb29
AJ
3616for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3617 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11af04e3
AJ
3618do
3619 CC="$ac_save_CC $ac_arg"
25e9e4f0 3620 if ac_fn_c_try_compile "$LINENO"; then :
fc6ffb29 3621 ac_cv_prog_cc_c89=$ac_arg
11af04e3 3622fi
0ebeb530 3623rm -f core conftest.err conftest.$ac_objext
fc6ffb29 3624 test "x$ac_cv_prog_cc_c89" != "xno" && break
11af04e3 3625done
fc6ffb29 3626rm -f conftest.$ac_ext
11af04e3
AJ
3627CC=$ac_save_CC
3628
3629fi
fc6ffb29
AJ
3630# AC_CACHE_VAL
3631case "x$ac_cv_prog_cc_c89" in
3632 x)
25e9e4f0 3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
abf5048b 3634$as_echo "none needed" >&6; } ;;
fc6ffb29 3635 xno)
25e9e4f0 3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
abf5048b 3637$as_echo "unsupported" >&6; } ;;
11af04e3 3638 *)
fc6ffb29 3639 CC="$CC $ac_cv_prog_cc_c89"
25e9e4f0 3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
abf5048b 3641$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11af04e3 3642esac
25e9e4f0 3643if test "x$ac_cv_prog_cc_c89" != xno; then :
11af04e3 3644
25e9e4f0 3645fi
e24bcc77 3646
f5818d2f
AJ
3647ac_ext=c
3648ac_cpp='$CPP $CPPFLAGS'
3649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651ac_compiler_gnu=$ac_cv_c_compiler_gnu
e2991ea7 3652
fc6ffb29 3653ac_ext=cpp
f41c2b21
DP
3654ac_cpp='$CXXCPP $CPPFLAGS'
3655ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3656ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3657ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
fc6ffb29
AJ
3658if test -z "$CXX"; then
3659 if test -n "$CCC"; then
3660 CXX=$CCC
3661 else
3662 if test -n "$ac_tool_prefix"; then
3663 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
f41c2b21
DP
3664 do
3665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3666set dummy $ac_tool_prefix$ac_prog; ac_word=$2
25e9e4f0 3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf5048b 3668$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 3669if test "${ac_cv_prog_CXX+set}" = set; then :
abf5048b 3670 $as_echo_n "(cached) " >&6
f41c2b21
DP
3671else
3672 if test -n "$CXX"; then
3673 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3674else
3675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676for as_dir in $PATH
3677do
3678 IFS=$as_save_IFS
3679 test -z "$as_dir" && as_dir=.
25e9e4f0 3680 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 3681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f41c2b21 3682 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
25e9e4f0 3683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f41c2b21
DP
3684 break 2
3685 fi
3686done
25e9e4f0 3687 done
fc6ffb29 3688IFS=$as_save_IFS
f41c2b21
DP
3689
3690fi
3691fi
3692CXX=$ac_cv_prog_CXX
3693if test -n "$CXX"; then
25e9e4f0 3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
abf5048b 3695$as_echo "$CXX" >&6; }
f41c2b21 3696else
25e9e4f0 3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 3698$as_echo "no" >&6; }
f41c2b21
DP
3699fi
3700
fc6ffb29 3701
f41c2b21
DP
3702 test -n "$CXX" && break
3703 done
3704fi
3705if test -z "$CXX"; then
3706 ac_ct_CXX=$CXX
fc6ffb29 3707 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
f41c2b21
DP
3708do
3709 # Extract the first word of "$ac_prog", so it can be a program name with args.
3710set dummy $ac_prog; ac_word=$2
25e9e4f0 3711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf5048b 3712$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 3713if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
abf5048b 3714 $as_echo_n "(cached) " >&6
f41c2b21
DP
3715else
3716 if test -n "$ac_ct_CXX"; then
3717 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3718else
3719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720for as_dir in $PATH
3721do
3722 IFS=$as_save_IFS
3723 test -z "$as_dir" && as_dir=.
25e9e4f0 3724 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 3725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f41c2b21 3726 ac_cv_prog_ac_ct_CXX="$ac_prog"
25e9e4f0 3727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f41c2b21
DP
3728 break 2
3729 fi
3730done
25e9e4f0 3731 done
fc6ffb29 3732IFS=$as_save_IFS
f41c2b21
DP
3733
3734fi
3735fi
3736ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3737if test -n "$ac_ct_CXX"; then
25e9e4f0 3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
abf5048b 3739$as_echo "$ac_ct_CXX" >&6; }
f41c2b21 3740else
25e9e4f0 3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 3742$as_echo "no" >&6; }
f41c2b21
DP
3743fi
3744
fc6ffb29 3745
f41c2b21
DP
3746 test -n "$ac_ct_CXX" && break
3747done
f41c2b21 3748
fc6ffb29
AJ
3749 if test "x$ac_ct_CXX" = x; then
3750 CXX="g++"
3751 else
3752 case $cross_compiling:$ac_tool_warned in
3753yes:)
25e9e4f0 3754{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
abf5048b 3755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
fc6ffb29
AJ
3756ac_tool_warned=yes ;;
3757esac
3758 CXX=$ac_ct_CXX
3759 fi
f41c2b21
DP
3760fi
3761
fc6ffb29
AJ
3762 fi
3763fi
f41c2b21 3764# Provide some information about the compiler.
25e9e4f0 3765$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
abf5048b
AJ
3766set X $ac_compile
3767ac_compiler=$2
25e9e4f0
AJ
3768for ac_option in --version -v -V -qversion; do
3769 { { ac_try="$ac_compiler $ac_option >&5"
0ebeb530
JW
3770case "(($ac_try" in
3771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772 *) ac_try_echo=$ac_try;;
3773esac
25e9e4f0
AJ
3774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3775$as_echo "$ac_try_echo"; } >&5
3776 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
f41c2b21 3777 ac_status=$?
25e9e4f0
AJ
3778 if test -s conftest.err; then
3779 sed '10a\
3780... rest of stderr output deleted ...
3781 10q' conftest.err >conftest.er1
3782 cat conftest.er1 >&5
25e9e4f0 3783 fi
fa8c4f76 3784 rm -f conftest.er1 conftest.err
25e9e4f0
AJ
3785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3786 test $ac_status = 0; }
3787done
f41c2b21 3788
25e9e4f0 3789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
abf5048b 3790$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
25e9e4f0 3791if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
abf5048b 3792 $as_echo_n "(cached) " >&6
f41c2b21 3793else
25e9e4f0 3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f41c2b21
DP
3795/* end confdefs.h. */
3796
3797int
3798main ()
3799{
3800#ifndef __GNUC__
3801 choke me
3802#endif
3803
3804 ;
3805 return 0;
3806}
3807_ACEOF
25e9e4f0 3808if ac_fn_cxx_try_compile "$LINENO"; then :
f41c2b21
DP
3809 ac_compiler_gnu=yes
3810else
25e9e4f0 3811 ac_compiler_gnu=no
f41c2b21 3812fi
0ebeb530 3813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f41c2b21
DP
3814ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3815
3816fi
25e9e4f0 3817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
abf5048b
AJ
3818$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3819if test $ac_compiler_gnu = yes; then
3820 GXX=yes
3821else
3822 GXX=
3823fi
f41c2b21
DP
3824ac_test_CXXFLAGS=${CXXFLAGS+set}
3825ac_save_CXXFLAGS=$CXXFLAGS
25e9e4f0 3826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
abf5048b 3827$as_echo_n "checking whether $CXX accepts -g... " >&6; }
25e9e4f0 3828if test "${ac_cv_prog_cxx_g+set}" = set; then :
abf5048b 3829 $as_echo_n "(cached) " >&6
f41c2b21 3830else
fc6ffb29
AJ
3831 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3832 ac_cxx_werror_flag=yes
3833 ac_cv_prog_cxx_g=no
3834 CXXFLAGS="-g"
25e9e4f0 3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f41c2b21
DP
3836/* end confdefs.h. */
3837
3838int
3839main ()
3840{
3841
3842 ;
3843 return 0;
3844}
3845_ACEOF
25e9e4f0 3846if ac_fn_cxx_try_compile "$LINENO"; then :
f41c2b21
DP
3847 ac_cv_prog_cxx_g=yes
3848else
25e9e4f0
AJ
3849 CXXFLAGS=""
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f41c2b21 3851/* end confdefs.h. */
fc6ffb29 3852
f41c2b21
DP
3853int
3854main ()
3855{
fc6ffb29 3856
f41c2b21
DP
3857 ;
3858 return 0;
3859}
3860_ACEOF
25e9e4f0 3861if ac_fn_cxx_try_compile "$LINENO"; then :
f41c2b21 3862
25e9e4f0
AJ
3863else
3864 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
fc6ffb29 3865 CXXFLAGS="-g"
25e9e4f0 3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f41c2b21 3867/* end confdefs.h. */
fc6ffb29 3868
f41c2b21
DP
3869int
3870main ()
3871{
fc6ffb29 3872
f41c2b21
DP
3873 ;
3874 return 0;
3875}
3876_ACEOF
25e9e4f0 3877if ac_fn_cxx_try_compile "$LINENO"; then :
fc6ffb29 3878 ac_cv_prog_cxx_g=yes
f41c2b21 3879fi
0ebeb530 3880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29 3881fi
0ebeb530 3882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f41c2b21 3883fi
0ebeb530 3884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29
AJ
3885 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3886fi
25e9e4f0 3887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
abf5048b 3888$as_echo "$ac_cv_prog_cxx_g" >&6; }
fc6ffb29
AJ
3889if test "$ac_test_CXXFLAGS" = set; then
3890 CXXFLAGS=$ac_save_CXXFLAGS
3891elif test $ac_cv_prog_cxx_g = yes; then
3892 if test "$GXX" = yes; then
3893 CXXFLAGS="-g -O2"
3894 else
3895 CXXFLAGS="-g"
3896 fi
3897else
3898 if test "$GXX" = yes; then
3899 CXXFLAGS="-O2"
3900 else
3901 CXXFLAGS=
3902 fi
3903fi
f41c2b21
DP
3904ac_ext=c
3905ac_cpp='$CPP $CPPFLAGS'
3906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908ac_compiler_gnu=$ac_cv_c_compiler_gnu
3909
3e61ef7d
AJ
3910if test -n "$ac_tool_prefix"; then
3911 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3912set dummy ${ac_tool_prefix}cpp; ac_word=$2
25e9e4f0 3913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf5048b 3914$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 3915if test "${ac_cv_prog_CPPBIN+set}" = set; then :
abf5048b 3916 $as_echo_n "(cached) " >&6
f41c2b21 3917else
a631ef63
AJ
3918 if test -n "$CPPBIN"; then
3919 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
f41c2b21
DP
3920else
3921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922for as_dir in $PATH
3923do
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
25e9e4f0 3926 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 3927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a631ef63 3928 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
25e9e4f0 3929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f41c2b21
DP
3930 break 2
3931 fi
3932done
25e9e4f0 3933 done
fc6ffb29 3934IFS=$as_save_IFS
f41c2b21
DP
3935
3936fi
3937fi
a631ef63
AJ
3938CPPBIN=$ac_cv_prog_CPPBIN
3939if test -n "$CPPBIN"; then
25e9e4f0 3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
abf5048b 3941$as_echo "$CPPBIN" >&6; }
f41c2b21 3942else
25e9e4f0 3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 3944$as_echo "no" >&6; }
f41c2b21
DP
3945fi
3946
fc6ffb29 3947
3e61ef7d 3948fi
a631ef63
AJ
3949if test -z "$ac_cv_prog_CPPBIN"; then
3950 ac_ct_CPPBIN=$CPPBIN
3e61ef7d
AJ
3951 # Extract the first word of "cpp", so it can be a program name with args.
3952set dummy cpp; ac_word=$2
25e9e4f0 3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf5048b 3954$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 3955if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then :
abf5048b 3956 $as_echo_n "(cached) " >&6
3e61ef7d 3957else
a631ef63
AJ
3958 if test -n "$ac_ct_CPPBIN"; then
3959 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3e61ef7d
AJ
3960else
3961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962for as_dir in $PATH
3963do
3964 IFS=$as_save_IFS
3965 test -z "$as_dir" && as_dir=.
25e9e4f0 3966 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 3967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a631ef63 3968 ac_cv_prog_ac_ct_CPPBIN="cpp"
25e9e4f0 3969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3e61ef7d
AJ
3970 break 2
3971 fi
3972done
25e9e4f0 3973 done
fc6ffb29 3974IFS=$as_save_IFS
3e61ef7d 3975
3e61ef7d
AJ
3976fi
3977fi
a631ef63
AJ
3978ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3979if test -n "$ac_ct_CPPBIN"; then
25e9e4f0 3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
abf5048b 3981$as_echo "$ac_ct_CPPBIN" >&6; }
3e61ef7d 3982else
25e9e4f0 3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 3984$as_echo "no" >&6; }
3e61ef7d
AJ
3985fi
3986
fc6ffb29
AJ
3987 if test "x$ac_ct_CPPBIN" = x; then
3988 CPPBIN="cpp"
3989 else
3990 case $cross_compiling:$ac_tool_warned in
3991yes:)
25e9e4f0 3992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
abf5048b 3993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
fc6ffb29
AJ
3994ac_tool_warned=yes ;;
3995esac
3996 CPPBIN=$ac_ct_CPPBIN
3997 fi
3e61ef7d 3998else
a631ef63 3999 CPPBIN="$ac_cv_prog_CPPBIN"
3e61ef7d
AJ
4000fi
4001
f41c2b21 4002
1aea4efd
AJ
4003cat >>confdefs.h <<_ACEOF
4004#define EXEEXT "$ac_exeext"
4005_ACEOF
4006
4007
dfa66db2 4008case $host in
42664338 4009 *-darwin*)
39a75d37 4010 if test "x$enable_win64" = "xyes"
42664338
KT
4011 then
4012 CC="$CC -m64"
4013 CXX="$CXX -m64"
4014 LD="${LD:-ld} -arch x86_64"
4015 AS="${AS:-as} -arch x86_64"
4016 host_cpu="x86_64"
4017 notice_platform="64-bit "
4018 TARGETFLAGS="-m64"
4019
4020 else
4021 CC="$CC -m32"
4022 CXX="$CXX -m32"
4023 LD="${LD:-ld} -arch i386"
4024 AS="${AS:-as} -arch i386"
4025 host_cpu="i386"
4026 notice_platform="32-bit "
4027 TARGETFLAGS="-m32"
4028
4029 enable_win16=${enable_win16:-yes}
4030 fi
4031 ;;
dfa66db2 4032 x86_64*)
6b4ed0fa 4033 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
dfa66db2
AJ
4034 then
4035 CC="$CC -m32"
4036 CXX="$CXX -m32"
25e9e4f0 4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
dfa66db2
AJ
4038$as_echo_n "checking whether $CC works... " >&6; }
4039
25e9e4f0 4040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dfa66db2
AJ
4041/* end confdefs.h. */
4042
4043int
4044main ()
4045{
4046
4047 ;
4048 return 0;
4049}
4050_ACEOF
25e9e4f0
AJ
4051if ac_fn_c_try_link "$LINENO"; then :
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
dfa66db2
AJ
4053$as_echo "yes" >&6; }
4054else
25e9e4f0 4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
dfa66db2 4056$as_echo "no" >&6; }
25e9e4f0 4057 as_fn_error "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
dfa66db2 4058fi
25e9e4f0
AJ
4059rm -f core conftest.err conftest.$ac_objext \
4060 conftest$ac_exeext conftest.$ac_ext
dfa66db2
AJ
4061 LD="${LD:-ld} -m elf_i386"
4062 AS="${AS:-as} --32"
4063 host_cpu="i386"
4064 notice_platform="32-bit "
07f77c41
AJ
4065 TARGETFLAGS="-m32"
4066
9981f4c4 4067 enable_win16=${enable_win16:-yes}
07f77c41 4068 else
8812d241
AJ
4069 if test "x${GCC}" = "xyes"
4070 then
25e9e4f0 4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
8812d241 4072$as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
25e9e4f0 4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812d241
AJ
4074/* end confdefs.h. */
4075#include <stdarg.h>
4076int
4077main ()
4078{
4079void func(__builtin_ms_va_list *args);
4080 ;
4081 return 0;
4082}
4083_ACEOF
25e9e4f0
AJ
4084if ac_fn_c_try_compile "$LINENO"; then :
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8812d241
AJ
4086$as_echo "yes" >&6; }
4087else
25e9e4f0 4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812d241 4089$as_echo "no" >&6; }
25e9e4f0 4090 as_fn_error "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
8812d241 4091fi
8812d241
AJ
4092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 fi
07f77c41
AJ
4094 TARGETFLAGS="-m64"
4095
dfa66db2
AJ
4096 fi
4097 ;;
391fce6e 4098 *-mingw32*|*-cygwin*)
9981f4c4 4099 enable_win16=${enable_win16:-no}
ac0a38cf 4100 CFLAGS="$CFLAGS -D_WIN32"
9981f4c4
AJ
4101 ;;
4102 i[3456789]86*)
4103 enable_win16=${enable_win16:-yes}
4104 ;;
dfa66db2
AJ
4105esac
4106
9981f4c4 4107enable_win16=${enable_win16:-no}
776820e5 4108
95081550
AJ
4109enable_winetest=${enable_winetest:-$enable_tests}
4110
39a75d37
AJ
4111if test -n "$with_wine64"
4112then
4113 if test "x$enable_win64" = "xyes"
4114 then
4115 as_fn_error "--enable-win64 and --with-wine64 are mutually exclusive.
4116--enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4117 fi
90647774
AJ
4118 WOW64_DISABLE=\#
4119
39a75d37 4120 enable_fonts=${enable_fonts:-no}
39a75d37
AJ
4121 enable_server=${enable_server:-no}
4122 enable_tools=${enable_tools:-no}
b3265323
AJ
4123elif test "x$enable_win64" = "xyes"
4124then
4125 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
39a75d37
AJ
4126fi
4127
25e9e4f0 4128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
abf5048b 4129$as_echo_n "checking for the directory containing the Wine tools... " >&6; }
25e9e4f0 4130if test "${wine_cv_toolsdir+set}" = set; then :
abf5048b 4131 $as_echo_n "(cached) " >&6
f41c2b21 4132else
39a75d37
AJ
4133 wine_cv_toolsdir="$with_wine_tools"
4134 if test -z "$with_wine_tools"; then
f41c2b21 4135 if test "$cross_compiling" = "yes"; then
25e9e4f0 4136 as_fn_error "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
39a75d37
AJ
4137 elif test -n "$with_wine64"; then
4138 wine_cv_toolsdir="$with_wine64"
f41c2b21 4139 fi
39a75d37
AJ
4140 fi
4141 if test -z "$wine_cv_toolsdir"; then
4142 wine_cv_toolsdir="\$(TOPOBJDIR)"
4143 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4144 case "$wine_cv_toolsdir" in
4145 /*) ;;
4146 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$wine_cv_toolsdir" ;;
f41c2b21
DP
4147 esac
4148 else
39a75d37 4149 as_fn_error "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
f41c2b21
DP
4150 fi
4151fi
25e9e4f0 4152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
abf5048b 4153$as_echo "$wine_cv_toolsdir" >&6; }
f41c2b21
DP
4154TOOLSDIR=$wine_cv_toolsdir
4155
4d135d9a 4156if test -n "$host_alias" -a "$host_alias" != "$build_alias"
424cb27e 4157then
0fea4a50 4158 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
424cb27e
AJ
4159
4160fi
f41c2b21 4161
40664c0c
AJ
4162for ac_prog in flex
4163do
4164 # Extract the first word of "$ac_prog", so it can be a program name with args.
4165set dummy $ac_prog; ac_word=$2
25e9e4f0 4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 4167$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 4168if test "${ac_cv_prog_FLEX+set}" = set; then :
abf5048b 4169 $as_echo_n "(cached) " >&6
f5818d2f 4170else
40664c0c
AJ
4171 if test -n "$FLEX"; then
4172 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
e2991ea7 4173else
40664c0c
AJ
4174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175for as_dir in $PATH
4176do
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
25e9e4f0 4179 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
4180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4181 ac_cv_prog_FLEX="$ac_prog"
25e9e4f0 4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
4183 break 2
4184 fi
4185done
25e9e4f0 4186 done
40664c0c 4187IFS=$as_save_IFS
e24bcc77 4188
40664c0c
AJ
4189fi
4190fi
4191FLEX=$ac_cv_prog_FLEX
4192if test -n "$FLEX"; then
25e9e4f0 4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
40664c0c
AJ
4194$as_echo "$FLEX" >&6; }
4195else
25e9e4f0 4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c 4197$as_echo "no" >&6; }
f5818d2f 4198fi
fc6ffb29 4199
f5818d2f 4200
40664c0c
AJ
4201 test -n "$FLEX" && break
4202done
4203test -n "$FLEX" || FLEX="none"
4204
4205if test "$FLEX" = "none"
4206then
25e9e4f0 4207 as_fn_error "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
40664c0c 4208fi
ce307333
MS
4209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4210$as_echo_n "checking whether flex is recent enough... " >&6; }
4211cat >conftest.l <<EOF
4212%top{
4213#include "prediluvian.h"
4214}
4215%%
4216EOF
27816c7c 4217if $FLEX -t conftest.l >/dev/null 2>&5
ce307333
MS
4218then
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4220$as_echo "yes" >&6; }
4221else
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4223$as_echo "no" >&6; }
4224 as_fn_error "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4225fi
40664c0c
AJ
4226
4227for ac_prog in bison
4228do
4229 # Extract the first word of "$ac_prog", so it can be a program name with args.
4230set dummy $ac_prog; ac_word=$2
25e9e4f0 4231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 4232$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 4233if test "${ac_cv_prog_BISON+set}" = set; then :
40664c0c 4234 $as_echo_n "(cached) " >&6
18ad24a7 4235else
40664c0c
AJ
4236 if test -n "$BISON"; then
4237 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4238else
4239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240for as_dir in $PATH
4241do
4242 IFS=$as_save_IFS
4243 test -z "$as_dir" && as_dir=.
25e9e4f0 4244 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
4245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4246 ac_cv_prog_BISON="$ac_prog"
25e9e4f0 4247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
4248 break 2
4249 fi
4250done
25e9e4f0 4251 done
40664c0c 4252IFS=$as_save_IFS
e24bcc77 4253
40664c0c
AJ
4254fi
4255fi
4256BISON=$ac_cv_prog_BISON
4257if test -n "$BISON"; then
25e9e4f0 4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
40664c0c
AJ
4259$as_echo "$BISON" >&6; }
4260else
25e9e4f0 4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c 4262$as_echo "no" >&6; }
f5818d2f 4263fi
fc6ffb29 4264
f5818d2f 4265
40664c0c 4266 test -n "$BISON" && break
f5818d2f 4267done
40664c0c
AJ
4268test -n "$BISON" || BISON="none"
4269
4270if test "$BISON" = "none"
4271then
25e9e4f0 4272 as_fn_error "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
f5818d2f
AJ
4273fi
4274
40664c0c
AJ
4275if test -n "$ac_tool_prefix"; then
4276 for ac_prog in ar gar
4277 do
4278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4279set dummy $ac_tool_prefix$ac_prog; ac_word=$2
25e9e4f0 4280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 4281$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 4282if test "${ac_cv_prog_AR+set}" = set; then :
40664c0c
AJ
4283 $as_echo_n "(cached) " >&6
4284else
4285 if test -n "$AR"; then
4286 ac_cv_prog_AR="$AR" # Let the user override the test.
4287else
4288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289for as_dir in $PATH
4290do
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
25e9e4f0 4293 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
4294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4295 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
25e9e4f0 4296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
4297 break 2
4298 fi
4299done
25e9e4f0 4300 done
40664c0c 4301IFS=$as_save_IFS
f5818d2f 4302
40664c0c
AJ
4303fi
4304fi
4305AR=$ac_cv_prog_AR
4306if test -n "$AR"; then
25e9e4f0 4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
40664c0c 4308$as_echo "$AR" >&6; }
e2991ea7 4309else
25e9e4f0 4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c
AJ
4311$as_echo "no" >&6; }
4312fi
e24bcc77 4313
40664c0c
AJ
4314
4315 test -n "$AR" && break
4316 done
4317fi
4318if test -z "$AR"; then
4319 ac_ct_AR=$AR
4320 for ac_prog in ar gar
4321do
4322 # Extract the first word of "$ac_prog", so it can be a program name with args.
4323set dummy $ac_prog; ac_word=$2
25e9e4f0 4324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 4325$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 4326if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
40664c0c
AJ
4327 $as_echo_n "(cached) " >&6
4328else
4329 if test -n "$ac_ct_AR"; then
4330 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4331else
4332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333for as_dir in $PATH
4334do
4335 IFS=$as_save_IFS
4336 test -z "$as_dir" && as_dir=.
25e9e4f0 4337 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
4338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4339 ac_cv_prog_ac_ct_AR="$ac_prog"
25e9e4f0 4340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c 4341 break 2
f5818d2f
AJ
4342 fi
4343done
25e9e4f0 4344 done
40664c0c
AJ
4345IFS=$as_save_IFS
4346
4347fi
4348fi
4349ac_ct_AR=$ac_cv_prog_ac_ct_AR
4350if test -n "$ac_ct_AR"; then
25e9e4f0 4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
40664c0c
AJ
4352$as_echo "$ac_ct_AR" >&6; }
4353else
25e9e4f0 4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c 4355$as_echo "no" >&6; }
e2991ea7 4356fi
fc6ffb29 4357
b817f4fb 4358
40664c0c
AJ
4359 test -n "$ac_ct_AR" && break
4360done
4361
4362 if test "x$ac_ct_AR" = x; then
4363 AR="ar"
4364 else
4365 case $cross_compiling:$ac_tool_warned in
4366yes:)
25e9e4f0 4367{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
40664c0c
AJ
4368$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4369ac_tool_warned=yes ;;
0ebeb530 4370esac
40664c0c
AJ
4371 AR=$ac_ct_AR
4372 fi
4373fi
e24bcc77 4374
40664c0c
AJ
4375ARFLAGS=rc
4376
4377if test -n "$ac_tool_prefix"; then
4378 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4379set dummy ${ac_tool_prefix}ranlib; ac_word=$2
25e9e4f0 4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 4381$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 4382if test "${ac_cv_prog_RANLIB+set}" = set; then :
40664c0c
AJ
4383 $as_echo_n "(cached) " >&6
4384else
4385 if test -n "$RANLIB"; then
4386 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4387else
4388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389for as_dir in $PATH
e2991ea7 4390do
40664c0c
AJ
4391 IFS=$as_save_IFS
4392 test -z "$as_dir" && as_dir=.
25e9e4f0 4393 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
4394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4395 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
25e9e4f0 4396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
4397 break 2
4398 fi
e2991ea7 4399done
25e9e4f0 4400 done
40664c0c
AJ
4401IFS=$as_save_IFS
4402
4403fi
4404fi
4405RANLIB=$ac_cv_prog_RANLIB
4406if test -n "$RANLIB"; then
25e9e4f0 4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
40664c0c
AJ
4408$as_echo "$RANLIB" >&6; }
4409else
25e9e4f0 4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c 4411$as_echo "no" >&6; }
e2991ea7 4412fi
fc6ffb29 4413
b817f4fb 4414
e2991ea7 4415fi
40664c0c
AJ
4416if test -z "$ac_cv_prog_RANLIB"; then
4417 ac_ct_RANLIB=$RANLIB
4418 # Extract the first word of "ranlib", so it can be a program name with args.
4419set dummy ranlib; ac_word=$2
25e9e4f0 4420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 4421$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 4422if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
40664c0c
AJ
4423 $as_echo_n "(cached) " >&6
4424else
4425 if test -n "$ac_ct_RANLIB"; then
4426 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4427else
4428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429for as_dir in $PATH
4430do
4431 IFS=$as_save_IFS
4432 test -z "$as_dir" && as_dir=.
25e9e4f0 4433 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
4434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4435 ac_cv_prog_ac_ct_RANLIB="ranlib"
25e9e4f0 4436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
4437 break 2
4438 fi
4439done
25e9e4f0 4440 done
40664c0c 4441IFS=$as_save_IFS
e2991ea7 4442
40664c0c
AJ
4443fi
4444fi
4445ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4446if test -n "$ac_ct_RANLIB"; then
25e9e4f0 4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
40664c0c 4448$as_echo "$ac_ct_RANLIB" >&6; }
e2991ea7 4449else
25e9e4f0 4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c 4451$as_echo "no" >&6; }
e2991ea7
AJ
4452fi
4453
40664c0c
AJ
4454 if test "x$ac_ct_RANLIB" = x; then
4455 RANLIB=":"
4456 else
4457 case $cross_compiling:$ac_tool_warned in
4458yes:)
25e9e4f0 4459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
40664c0c
AJ
4460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4461ac_tool_warned=yes ;;
4462esac
4463 RANLIB=$ac_ct_RANLIB
4464 fi
4465else
4466 RANLIB="$ac_cv_prog_RANLIB"
4467fi
da0cfb36 4468
40664c0c
AJ
4469if test -n "$ac_tool_prefix"; then
4470 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4471set dummy ${ac_tool_prefix}strip; ac_word=$2
25e9e4f0 4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 4473$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 4474if test "${ac_cv_prog_STRIP+set}" = set; then :
40664c0c 4475 $as_echo_n "(cached) " >&6
ff8331ea 4476else
40664c0c
AJ
4477 if test -n "$STRIP"; then
4478 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4479else
4480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481for as_dir in $PATH
4482do
4483 IFS=$as_save_IFS
4484 test -z "$as_dir" && as_dir=.
25e9e4f0 4485 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
4486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4487 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
25e9e4f0 4488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c 4489 break 2
ff8331ea 4490 fi
40664c0c 4491done
25e9e4f0 4492 done
40664c0c 4493IFS=$as_save_IFS
ff8331ea 4494
40664c0c
AJ
4495fi
4496fi
4497STRIP=$ac_cv_prog_STRIP
4498if test -n "$STRIP"; then
25e9e4f0 4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
40664c0c
AJ
4500$as_echo "$STRIP" >&6; }
4501else
25e9e4f0 4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c
AJ
4503$as_echo "no" >&6; }
4504fi
ff8331ea 4505
da0cfb36 4506
40664c0c
AJ
4507fi
4508if test -z "$ac_cv_prog_STRIP"; then
4509 ac_ct_STRIP=$STRIP
4510 # Extract the first word of "strip", so it can be a program name with args.
4511set dummy strip; ac_word=$2
25e9e4f0 4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 4513$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 4514if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
40664c0c 4515 $as_echo_n "(cached) " >&6
ff8331ea 4516else
40664c0c
AJ
4517 if test -n "$ac_ct_STRIP"; then
4518 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
ff8331ea 4519else
40664c0c
AJ
4520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521for as_dir in $PATH
4522do
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
25e9e4f0 4525 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
4526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4527 ac_cv_prog_ac_ct_STRIP="strip"
25e9e4f0 4528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
4529 break 2
4530 fi
4531done
25e9e4f0 4532 done
40664c0c 4533IFS=$as_save_IFS
e24bcc77 4534
ff8331ea 4535fi
40664c0c
AJ
4536fi
4537ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4538if test -n "$ac_ct_STRIP"; then
25e9e4f0 4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
40664c0c
AJ
4540$as_echo "$ac_ct_STRIP" >&6; }
4541else
25e9e4f0 4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c 4543$as_echo "no" >&6; }
c8278926
AJ
4544fi
4545
40664c0c
AJ
4546 if test "x$ac_ct_STRIP" = x; then
4547 STRIP="strip"
ff8331ea 4548 else
40664c0c
AJ
4549 case $cross_compiling:$ac_tool_warned in
4550yes:)
25e9e4f0 4551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
40664c0c
AJ
4552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4553ac_tool_warned=yes ;;
0ebeb530 4554esac
40664c0c
AJ
4555 STRIP=$ac_ct_STRIP
4556 fi
ff8331ea 4557else
40664c0c
AJ
4558 STRIP="$ac_cv_prog_STRIP"
4559fi
e24bcc77 4560
25e9e4f0 4561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
40664c0c
AJ
4562$as_echo_n "checking whether ln -s works... " >&6; }
4563LN_S=$as_ln_s
4564if test "$LN_S" = "ln -s"; then
25e9e4f0 4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40664c0c 4566$as_echo "yes" >&6; }
f5818d2f 4567else
25e9e4f0 4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
40664c0c
AJ
4569$as_echo "no, using $LN_S" >&6; }
4570fi
875927f6 4571
25e9e4f0 4572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
40664c0c 4573$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
25e9e4f0 4574if test "${ac_cv_path_GREP+set}" = set; then :
abf5048b 4575 $as_echo_n "(cached) " >&6
ff8331ea 4576else
40664c0c
AJ
4577 if test -z "$GREP"; then
4578 ac_path_GREP_found=false
4579 # Loop through the user's path and test for each of PROGNAME-LIST
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4582do
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
25e9e4f0 4585 for ac_prog in grep ggrep; do
40664c0c
AJ
4586 for ac_exec_ext in '' $ac_executable_extensions; do
4587 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4588 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4589# Check for GNU ac_path_GREP and select it if it is found.
4590 # Check for GNU $ac_path_GREP
4591case `"$ac_path_GREP" --version 2>&1` in
4592*GNU*)
4593 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4594*)
4595 ac_count=0
4596 $as_echo_n 0123456789 >"conftest.in"
4597 while :
4598 do
4599 cat "conftest.in" "conftest.in" >"conftest.tmp"
4600 mv "conftest.tmp" "conftest.in"
4601 cp "conftest.in" "conftest.nl"
4602 $as_echo 'GREP' >> "conftest.nl"
4603 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4604 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
25e9e4f0 4605 as_fn_arith $ac_count + 1 && ac_count=$as_val
40664c0c
AJ
4606 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4607 # Best one so far, save it but keep looking for a better one
4608 ac_cv_path_GREP="$ac_path_GREP"
4609 ac_path_GREP_max=$ac_count
4610 fi
4611 # 10*(2^10) chars as input seems more than enough
4612 test $ac_count -gt 10 && break
4613 done
4614 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
0ebeb530 4615esac
e24bcc77 4616
40664c0c
AJ
4617 $ac_path_GREP_found && break 3
4618 done
4619 done
25e9e4f0 4620 done
40664c0c
AJ
4621IFS=$as_save_IFS
4622 if test -z "$ac_cv_path_GREP"; then
25e9e4f0 4623 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
40664c0c
AJ
4624 fi
4625else
4626 ac_cv_path_GREP=$GREP
f5818d2f 4627fi
fc6ffb29 4628
f5818d2f 4629fi
25e9e4f0 4630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
40664c0c
AJ
4631$as_echo "$ac_cv_path_GREP" >&6; }
4632 GREP="$ac_cv_path_GREP"
ff8331ea 4633
40664c0c 4634
25e9e4f0 4635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
40664c0c 4636$as_echo_n "checking for egrep... " >&6; }
25e9e4f0 4637if test "${ac_cv_path_EGREP+set}" = set; then :
abf5048b 4638 $as_echo_n "(cached) " >&6
ff8331ea 4639else
40664c0c
AJ
4640 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4641 then ac_cv_path_EGREP="$GREP -E"
4642 else
4643 if test -z "$EGREP"; then
4644 ac_path_EGREP_found=false
4645 # Loop through the user's path and test for each of PROGNAME-LIST
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4648do
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
25e9e4f0 4651 for ac_prog in egrep; do
40664c0c
AJ
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4654 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4655# Check for GNU ac_path_EGREP and select it if it is found.
4656 # Check for GNU $ac_path_EGREP
4657case `"$ac_path_EGREP" --version 2>&1` in
4658*GNU*)
4659 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4660*)
4661 ac_count=0
4662 $as_echo_n 0123456789 >"conftest.in"
4663 while :
4664 do
4665 cat "conftest.in" "conftest.in" >"conftest.tmp"
4666 mv "conftest.tmp" "conftest.in"
4667 cp "conftest.in" "conftest.nl"
4668 $as_echo 'EGREP' >> "conftest.nl"
4669 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4670 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
25e9e4f0 4671 as_fn_arith $ac_count + 1 && ac_count=$as_val
40664c0c
AJ
4672 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4673 # Best one so far, save it but keep looking for a better one
4674 ac_cv_path_EGREP="$ac_path_EGREP"
4675 ac_path_EGREP_max=$ac_count
4676 fi
4677 # 10*(2^10) chars as input seems more than enough
4678 test $ac_count -gt 10 && break
4679 done
4680 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
0ebeb530 4681esac
e24bcc77 4682
40664c0c
AJ
4683 $ac_path_EGREP_found && break 3
4684 done
4685 done
25e9e4f0 4686 done
40664c0c
AJ
4687IFS=$as_save_IFS
4688 if test -z "$ac_cv_path_EGREP"; then
25e9e4f0 4689 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
40664c0c
AJ
4690 fi
4691else
4692 ac_cv_path_EGREP=$EGREP
f5818d2f 4693fi
fc6ffb29 4694
40664c0c 4695 fi
ff8331ea 4696fi
25e9e4f0 4697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
40664c0c
AJ
4698$as_echo "$ac_cv_path_EGREP" >&6; }
4699 EGREP="$ac_cv_path_EGREP"
ff8331ea
AJ
4700
4701
40664c0c
AJ
4702# Extract the first word of "ldconfig", so it can be a program name with args.
4703set dummy ldconfig; ac_word=$2
25e9e4f0 4704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 4705$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 4706if test "${ac_cv_path_LDCONFIG+set}" = set; then :
abf5048b 4707 $as_echo_n "(cached) " >&6
f5818d2f 4708else
40664c0c
AJ
4709 case $LDCONFIG in
4710 [\\/]* | ?:[\\/]*)
4711 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4712 ;;
4713 *)
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715for as_dir in /sbin /usr/sbin $PATH
4716do
4717 IFS=$as_save_IFS
4718 test -z "$as_dir" && as_dir=.
25e9e4f0 4719 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
4720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4721 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
25e9e4f0 4722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
4723 break 2
4724 fi
4725done
25e9e4f0 4726 done
40664c0c 4727IFS=$as_save_IFS
da0cfb36 4728
40664c0c
AJ
4729 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4730 ;;
0ebeb530 4731esac
40664c0c
AJ
4732fi
4733LDCONFIG=$ac_cv_path_LDCONFIG
4734if test -n "$LDCONFIG"; then
25e9e4f0 4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
40664c0c 4736$as_echo "$LDCONFIG" >&6; }
f5818d2f 4737else
25e9e4f0 4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c 4739$as_echo "no" >&6; }
f5818d2f 4740fi
fc6ffb29 4741
da0cfb36 4742
40664c0c
AJ
4743# Find a good install program. We prefer a C program (faster),
4744# so one script is as good as another. But avoid the broken or
4745# incompatible versions:
4746# SysV /etc/install, /usr/sbin/install
4747# SunOS /usr/etc/install
4748# IRIX /sbin/install
4749# AIX /bin/install
4750# AmigaOS /C/install, which installs bootblocks on floppy discs
4751# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4752# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4753# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4754# OS/2's system install, which has a completely different semantic
4755# ./install, which can be erroneously created by make from ./install.sh.
4756# Reject install programs that cannot install multiple files.
25e9e4f0 4757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
40664c0c
AJ
4758$as_echo_n "checking for a BSD-compatible install... " >&6; }
4759if test -z "$INSTALL"; then
25e9e4f0 4760if test "${ac_cv_path_install+set}" = set; then :
abf5048b 4761 $as_echo_n "(cached) " >&6
ff8331ea 4762else
40664c0c
AJ
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764for as_dir in $PATH
4765do
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
25e9e4f0
AJ
4768 # Account for people who put trailing slashes in PATH elements.
4769case $as_dir/ in #((
4770 ./ | .// | /[cC]/* | \
40664c0c 4771 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
25e9e4f0 4772 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
40664c0c
AJ
4773 /usr/ucb/* ) ;;
4774 *)
4775 # OSF1 and SCO ODT 3.0 have their own names for install.
4776 # Don't use installbsd from OSF since it installs stuff as root
4777 # by default.
4778 for ac_prog in ginstall scoinst install; do
4779 for ac_exec_ext in '' $ac_executable_extensions; do
4780 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4781 if test $ac_prog = install &&
4782 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4783 # AIX install. It has an incompatible calling convention.
4784 :
4785 elif test $ac_prog = install &&
4786 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4787 # program-specific install script used by HP pwplus--don't use.
4788 :
4789 else
4790 rm -rf conftest.one conftest.two conftest.dir
4791 echo one > conftest.one
4792 echo two > conftest.two
4793 mkdir conftest.dir
4794 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4795 test -s conftest.one && test -s conftest.two &&
4796 test -s conftest.dir/conftest.one &&
4797 test -s conftest.dir/conftest.two
4798 then
4799 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4800 break 3
4801 fi
4802 fi
4803 fi
4804 done
4805 done
4806 ;;
0ebeb530 4807esac
e24bcc77 4808
25e9e4f0 4809 done
40664c0c
AJ
4810IFS=$as_save_IFS
4811
4812rm -rf conftest.one conftest.two conftest.dir
fc6ffb29 4813
f5818d2f 4814fi
40664c0c
AJ
4815 if test "${ac_cv_path_install+set}" = set; then
4816 INSTALL=$ac_cv_path_install
4817 else
4818 # As a last resort, use the slow shell script. Don't cache a
4819 # value for INSTALL within a source directory, because that will
4820 # break other packages using the cache if that directory is
4821 # removed, or if the value is a relative name.
4822 INSTALL=$ac_install_sh
4823 fi
ff8331ea 4824fi
25e9e4f0 4825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
40664c0c 4826$as_echo "$INSTALL" >&6; }
ff8331ea 4827
40664c0c
AJ
4828# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4829# It thinks the first close brace ends the variable substitution.
4830test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
875927f6 4831
40664c0c 4832test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
875927f6 4833
40664c0c 4834test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
875927f6 4835
40664c0c
AJ
4836case "$INSTALL" in
4837 [\\/$]* | ?:[\\/]* ) ;;
4838 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4839esac
875927f6 4840
40664c0c
AJ
4841for ac_prog in lclint lint
4842do
4843 # Extract the first word of "$ac_prog", so it can be a program name with args.
4844set dummy $ac_prog; ac_word=$2
25e9e4f0 4845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 4846$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 4847if test "${ac_cv_prog_LINT+set}" = set; then :
40664c0c 4848 $as_echo_n "(cached) " >&6
f5818d2f 4849else
40664c0c
AJ
4850 if test -n "$LINT"; then
4851 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4852else
4853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854for as_dir in $PATH
4855do
4856 IFS=$as_save_IFS
4857 test -z "$as_dir" && as_dir=.
25e9e4f0 4858 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
4859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4860 ac_cv_prog_LINT="$ac_prog"
25e9e4f0 4861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
4862 break 2
4863 fi
4864done
25e9e4f0 4865 done
40664c0c 4866IFS=$as_save_IFS
e24bcc77 4867
f5818d2f 4868fi
f5818d2f 4869fi
40664c0c
AJ
4870LINT=$ac_cv_prog_LINT
4871if test -n "$LINT"; then
25e9e4f0 4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
40664c0c
AJ
4873$as_echo "$LINT" >&6; }
4874else
25e9e4f0 4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c
AJ
4876$as_echo "no" >&6; }
4877fi
da0cfb36 4878
40664c0c
AJ
4879
4880 test -n "$LINT" && break
4881done
4882
4883if test "$LINT" = "lint"
4884then
4885 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4886 fi
4887
4888
4889
4890for ac_prog in fontforge
4891do
4892 # Extract the first word of "$ac_prog", so it can be a program name with args.
4893set dummy $ac_prog; ac_word=$2
25e9e4f0 4894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 4895$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 4896if test "${ac_cv_prog_FONTFORGE+set}" = set; then :
abf5048b 4897 $as_echo_n "(cached) " >&6
e2bfa4c7 4898else
40664c0c
AJ
4899 if test -n "$FONTFORGE"; then
4900 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
f5818d2f 4901else
40664c0c
AJ
4902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903for as_dir in $PATH
4904do
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
25e9e4f0 4907 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
4908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4909 ac_cv_prog_FONTFORGE="$ac_prog"
25e9e4f0 4910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
4911 break 2
4912 fi
4913done
25e9e4f0 4914 done
40664c0c 4915IFS=$as_save_IFS
e24bcc77 4916
f5818d2f 4917fi
f5818d2f 4918fi
40664c0c
AJ
4919FONTFORGE=$ac_cv_prog_FONTFORGE
4920if test -n "$FONTFORGE"; then
25e9e4f0 4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
40664c0c
AJ
4922$as_echo "$FONTFORGE" >&6; }
4923else
25e9e4f0 4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c 4925$as_echo "no" >&6; }
da0cfb36
AJ
4926fi
4927
da0cfb36 4928
40664c0c
AJ
4929 test -n "$FONTFORGE" && break
4930done
4931test -n "$FONTFORGE" || FONTFORGE="false"
4932
4933for ac_prog in pkg-config
4934do
4935 # Extract the first word of "$ac_prog", so it can be a program name with args.
4936set dummy $ac_prog; ac_word=$2
25e9e4f0 4937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 4938$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 4939if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then :
abf5048b 4940 $as_echo_n "(cached) " >&6
da0cfb36 4941else
40664c0c
AJ
4942 if test -n "$PKG_CONFIG"; then
4943 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4944else
4945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946for as_dir in $PATH
4947do
4948 IFS=$as_save_IFS
4949 test -z "$as_dir" && as_dir=.
25e9e4f0 4950 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
4951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4952 ac_cv_prog_PKG_CONFIG="$ac_prog"
25e9e4f0 4953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
4954 break 2
4955 fi
4956done
25e9e4f0 4957 done
40664c0c 4958IFS=$as_save_IFS
875927f6 4959
40664c0c
AJ
4960fi
4961fi
4962PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4963if test -n "$PKG_CONFIG"; then
25e9e4f0 4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
40664c0c
AJ
4965$as_echo "$PKG_CONFIG" >&6; }
4966else
25e9e4f0 4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c
AJ
4968$as_echo "no" >&6; }
4969fi
875927f6 4970
875927f6 4971
40664c0c
AJ
4972 test -n "$PKG_CONFIG" && break
4973done
4974test -n "$PKG_CONFIG" || PKG_CONFIG="false"
875927f6 4975
40664c0c
AJ
4976for ac_prog in rsvg
4977do
4978 # Extract the first word of "$ac_prog", so it can be a program name with args.
4979set dummy $ac_prog; ac_word=$2
25e9e4f0 4980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 4981$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 4982if test "${ac_cv_prog_RSVG+set}" = set; then :
40664c0c
AJ
4983 $as_echo_n "(cached) " >&6
4984else
4985 if test -n "$RSVG"; then
4986 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4987else
4988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989for as_dir in $PATH
4990do
4991 IFS=$as_save_IFS
4992 test -z "$as_dir" && as_dir=.
25e9e4f0 4993 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
4994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995 ac_cv_prog_RSVG="$ac_prog"
25e9e4f0 4996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
4997 break 2
4998 fi
4999done
25e9e4f0 5000 done
40664c0c
AJ
5001IFS=$as_save_IFS
5002
5003fi
5004fi
5005RSVG=$ac_cv_prog_RSVG
5006if test -n "$RSVG"; then
25e9e4f0 5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
40664c0c
AJ
5008$as_echo "$RSVG" >&6; }
5009else
25e9e4f0 5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c
AJ
5011$as_echo "no" >&6; }
5012fi
5013
5014
5015 test -n "$RSVG" && break
5016done
5017test -n "$RSVG" || RSVG="false"
5018
476a2bee
JH
5019for ac_prog in convert
5020do
5021 # Extract the first word of "$ac_prog", so it can be a program name with args.
5022set dummy $ac_prog; ac_word=$2
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024$as_echo_n "checking for $ac_word... " >&6; }
5025if test "${ac_cv_prog_CONVERT+set}" = set; then :
5026 $as_echo_n "(cached) " >&6
5027else
5028 if test -n "$CONVERT"; then
5029 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5030else
5031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032for as_dir in $PATH
5033do
5034 IFS=$as_save_IFS
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5038 ac_cv_prog_CONVERT="$ac_prog"
5039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 break 2
5041 fi
5042done
5043 done
5044IFS=$as_save_IFS
5045
5046fi
5047fi
5048CONVERT=$ac_cv_prog_CONVERT
5049if test -n "$CONVERT"; then
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5051$as_echo "$CONVERT" >&6; }
5052else
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054$as_echo "no" >&6; }
5055fi
5056
5057
5058 test -n "$CONVERT" && break
5059done
5060test -n "$CONVERT" || CONVERT="false"
5061
40664c0c
AJ
5062for ac_prog in icotool
5063do
5064 # Extract the first word of "$ac_prog", so it can be a program name with args.
5065set dummy $ac_prog; ac_word=$2
25e9e4f0 5066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 5067$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 5068if test "${ac_cv_prog_ICOTOOL+set}" = set; then :
40664c0c
AJ
5069 $as_echo_n "(cached) " >&6
5070else
5071 if test -n "$ICOTOOL"; then
5072 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5073else
5074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075for as_dir in $PATH
5076do
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
25e9e4f0 5079 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
5080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081 ac_cv_prog_ICOTOOL="$ac_prog"
25e9e4f0 5082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
5083 break 2
5084 fi
5085done
25e9e4f0 5086 done
40664c0c
AJ
5087IFS=$as_save_IFS
5088
5089fi
5090fi
5091ICOTOOL=$ac_cv_prog_ICOTOOL
5092if test -n "$ICOTOOL"; then
25e9e4f0 5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
40664c0c
AJ
5094$as_echo "$ICOTOOL" >&6; }
5095else
25e9e4f0 5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c
AJ
5097$as_echo "no" >&6; }
5098fi
5099
5100
5101 test -n "$ICOTOOL" && break
5102done
5103test -n "$ICOTOOL" || ICOTOOL="false"
5104
5105
2eda9c72 5106if test "x$enable_maintainer_mode" != "xyes"
40664c0c 5107then
2eda9c72
AN
5108 MAINTAINER_MODE=\#
5109
5110else
0dc503bc
AJ
5111 if test "$FONTFORGE" = "false"; then as_fn_append wine_warnings "|fontforge is missing, fonts can't be rebuilt."; fi
5112 if test "$RSVG" = "false"; then as_fn_append wine_warnings "|rsvg is missing, icons can't be rebuilt."; fi
b9eae1ef
JH
5113
5114 if test "$CONVERT" = false
5115 then
5116 as_fn_append wine_warnings "|imagemagick is missing, icons can't be rebuilt."
5117 else
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5119$as_echo_n "checking for recent enough imagemagick... " >&6; }
5120 convert_version=`convert --version | head -n1`
5121 if test "x$convert_version" != "x"
5122 then
5123 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5124 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5125 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5126 then
5127 CONVERT=false
5128 as_fn_append wine_warnings "|imagemagick version 6.6 or newer is needed to rebuild icons."
5129 fi
5130 fi
5131 if test "$CONVERT" = false
5132 then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5134$as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5135 else
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5137$as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5138 fi
5139 fi
425f1384
JH
5140
5141 if test "$ICOTOOL" = false
5142 then
5143 as_fn_append wine_warnings "|icotool is missing, icons can't be rebuilt."
5144 else
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5146$as_echo_n "checking for recent enough icotool... " >&6; }
5147 icotool_version=`icotool --version | head -n1`
5148 if test "x$icotool_version" != "x"
5149 then
9571f781
JH
5150 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5151 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
425f1384
JH
5152 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5153 then
5154 ICOTOOL=false
5155 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5156 fi
5157 fi
5158 if test "$ICOTOOL" = false
5159 then
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5161$as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5162 else
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5164$as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5165 fi
5166 fi
5167
40664c0c
AJ
5168fi
5169
5170case $host_cpu in
5171 *i[3456789]86*)
5172 # Extract the first word of "prelink", so it can be a program name with args.
5173set dummy prelink; ac_word=$2
25e9e4f0 5174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 5175$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 5176if test "${ac_cv_path_PRELINK+set}" = set; then :
40664c0c
AJ
5177 $as_echo_n "(cached) " >&6
5178else
5179 case $PRELINK in
5180 [\\/]* | ?:[\\/]*)
5181 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
5182 ;;
5183 *)
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185for as_dir in /sbin /usr/sbin $PATH
5186do
5187 IFS=$as_save_IFS
5188 test -z "$as_dir" && as_dir=.
25e9e4f0 5189 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
5190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5191 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
25e9e4f0 5192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
5193 break 2
5194 fi
5195done
25e9e4f0 5196 done
40664c0c
AJ
5197IFS=$as_save_IFS
5198
5199 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
5200 ;;
5201esac
5202fi
5203PRELINK=$ac_cv_path_PRELINK
5204if test -n "$PRELINK"; then
25e9e4f0 5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
40664c0c
AJ
5206$as_echo "$PRELINK" >&6; }
5207else
25e9e4f0 5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c
AJ
5209$as_echo "no" >&6; }
5210fi
5211
5212
5213 ;;
5214esac
5215
5216
25e9e4f0 5217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
40664c0c 5218$as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
25e9e4f0 5219if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then :
40664c0c
AJ
5220 $as_echo_n "(cached) " >&6
5221else
5222 ac_check_lib_save_LIBS=$LIBS
5223LIBS="-li386 $LIBS"
25e9e4f0 5224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664c0c
AJ
5225/* end confdefs.h. */
5226
5227/* Override any GCC internal prototype to avoid an error.
5228 Use char because int might match the return type of a GCC
5229 builtin and then its argument prototype would still apply. */
5230#ifdef __cplusplus
f5818d2f
AJ
5231extern "C"
5232#endif
40664c0c 5233char i386_set_ldt ();
e24bcc77
AJ
5234int
5235main ()
5236{
40664c0c 5237return i386_set_ldt ();
f5818d2f
AJ
5238 ;
5239 return 0;
5240}
5241_ACEOF
25e9e4f0 5242if ac_fn_c_try_link "$LINENO"; then :
40664c0c 5243 ac_cv_lib_i386_i386_set_ldt=yes
f5818d2f 5244else
25e9e4f0 5245 ac_cv_lib_i386_i386_set_ldt=no
f5818d2f 5246fi
25e9e4f0
AJ
5247rm -f core conftest.err conftest.$ac_objext \
5248 conftest$ac_exeext conftest.$ac_ext
40664c0c 5249LIBS=$ac_check_lib_save_LIBS
f5818d2f 5250fi
25e9e4f0 5251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
40664c0c 5252$as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
25e9e4f0 5253if test "x$ac_cv_lib_i386_i386_set_ldt" = x""yes; then :
40664c0c
AJ
5254 cat >>confdefs.h <<_ACEOF
5255#define HAVE_LIBI386 1
5256_ACEOF
da0cfb36 5257
40664c0c
AJ
5258 LIBS="-li386 $LIBS"
5259
5260fi
5261
25e9e4f0 5262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
40664c0c 5263$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
25e9e4f0 5264if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
abf5048b 5265 $as_echo_n "(cached) " >&6
da0cfb36 5266else
f5818d2f 5267 ac_check_lib_save_LIBS=$LIBS
40664c0c 5268LIBS="-lossaudio $LIBS"
25e9e4f0 5269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 5270/* end confdefs.h. */
f5818d2f 5271
fc6ffb29
AJ
5272/* Override any GCC internal prototype to avoid an error.
5273 Use char because int might match the return type of a GCC
5274 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
5275#ifdef __cplusplus
5276extern "C"
5277#endif
40664c0c 5278char _oss_ioctl ();
f5818d2f
AJ
5279int
5280main ()
5281{
40664c0c 5282return _oss_ioctl ();
f5818d2f
AJ
5283 ;
5284 return 0;
5285}
5286_ACEOF
25e9e4f0 5287if ac_fn_c_try_link "$LINENO"; then :
40664c0c 5288 ac_cv_lib_ossaudio__oss_ioctl=yes
f5818d2f 5289else
25e9e4f0 5290 ac_cv_lib_ossaudio__oss_ioctl=no
f5818d2f 5291fi
25e9e4f0
AJ
5292rm -f core conftest.err conftest.$ac_objext \
5293 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
5294LIBS=$ac_check_lib_save_LIBS
5295fi
25e9e4f0 5296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
40664c0c 5297$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
25e9e4f0 5298if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
40664c0c
AJ
5299 cat >>confdefs.h <<_ACEOF
5300#define HAVE_LIBOSSAUDIO 1
5301_ACEOF
e2bfa4c7 5302
40664c0c 5303 LIBS="-lossaudio $LIBS"
da0cfb36 5304
40664c0c
AJ
5305fi
5306
e2991ea7 5307
40664c0c 5308XLIB=""
f5818d2f 5309
40664c0c 5310OPENGL_LIBS=""
5c5a6217 5311
fc6ffb29 5312
5c5a6217 5313
bc56c4ea
EP
5314# Check whether --enable-largefile was given.
5315if test "${enable_largefile+set}" = set; then :
5316 enableval=$enable_largefile;
5317fi
5318
5319if test "$enable_largefile" != no; then
5320
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5322$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5323if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5324 $as_echo_n "(cached) " >&6
5325else
5326 ac_cv_sys_largefile_CC=no
5327 if test "$GCC" != yes; then
5328 ac_save_CC=$CC
5329 while :; do
5330 # IRIX 6.2 and later do not support large files by default,
5331 # so use the C compiler's -n32 option if that helps.
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333/* end confdefs.h. */
5334#include <sys/types.h>
5335 /* Check that off_t can represent 2**63 - 1 correctly.
5336 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5337 since some C++ compilers masquerading as C compilers
5338 incorrectly reject 9223372036854775807. */
5339#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5340 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5341 && LARGE_OFF_T % 2147483647 == 1)
5342 ? 1 : -1];
5343int
5344main ()
5345{
5346
5347 ;
5348 return 0;
5349}
5350_ACEOF
5351 if ac_fn_c_try_compile "$LINENO"; then :
5352 break
5353fi
5354rm -f core conftest.err conftest.$ac_objext
5355 CC="$CC -n32"
5356 if ac_fn_c_try_compile "$LINENO"; then :
5357 ac_cv_sys_largefile_CC=' -n32'; break
5358fi
5359rm -f core conftest.err conftest.$ac_objext
5360 break
5361 done
5362 CC=$ac_save_CC
5363 rm -f conftest.$ac_ext
5364 fi
5365fi
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5367$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5368 if test "$ac_cv_sys_largefile_CC" != no; then
5369 CC=$CC$ac_cv_sys_largefile_CC
5370 fi
5371
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5373$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5374if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5375 $as_echo_n "(cached) " >&6
5376else
5377 while :; do
5378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379/* end confdefs.h. */
5380#include <sys/types.h>
5381 /* Check that off_t can represent 2**63 - 1 correctly.
5382 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5383 since some C++ compilers masquerading as C compilers
5384 incorrectly reject 9223372036854775807. */
5385#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5386 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5387 && LARGE_OFF_T % 2147483647 == 1)
5388 ? 1 : -1];
5389int
5390main ()
5391{
5392
5393 ;
5394 return 0;
5395}
5396_ACEOF
5397if ac_fn_c_try_compile "$LINENO"; then :
5398 ac_cv_sys_file_offset_bits=no; break
5399fi
5400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402/* end confdefs.h. */
5403#define _FILE_OFFSET_BITS 64
5404#include <sys/types.h>
5405 /* Check that off_t can represent 2**63 - 1 correctly.
5406 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5407 since some C++ compilers masquerading as C compilers
5408 incorrectly reject 9223372036854775807. */
5409#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5410 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5411 && LARGE_OFF_T % 2147483647 == 1)
5412 ? 1 : -1];
5413int
5414main ()
5415{
5416
5417 ;
5418 return 0;
5419}
5420_ACEOF
5421if ac_fn_c_try_compile "$LINENO"; then :
5422 ac_cv_sys_file_offset_bits=64; break
5423fi
5424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5425 ac_cv_sys_file_offset_bits=unknown
5426 break
5427done
5428fi
5429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5430$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5431case $ac_cv_sys_file_offset_bits in #(
5432 no | unknown) ;;
5433 *)
5434cat >>confdefs.h <<_ACEOF
5435#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5436_ACEOF
5437;;
5438esac
5439rm -rf conftest*
5440 if test $ac_cv_sys_file_offset_bits = unknown; then
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5442$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5443if test "${ac_cv_sys_large_files+set}" = set; then :
5444 $as_echo_n "(cached) " >&6
5445else
5446 while :; do
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448/* end confdefs.h. */
5449#include <sys/types.h>
5450 /* Check that off_t can represent 2**63 - 1 correctly.
5451 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5452 since some C++ compilers masquerading as C compilers
5453 incorrectly reject 9223372036854775807. */
5454#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5455 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5456 && LARGE_OFF_T % 2147483647 == 1)
5457 ? 1 : -1];
5458int
5459main ()
5460{
5461
5462 ;
5463 return 0;
5464}
5465_ACEOF
5466if ac_fn_c_try_compile "$LINENO"; then :
5467 ac_cv_sys_large_files=no; break
5468fi
5469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471/* end confdefs.h. */
5472#define _LARGE_FILES 1
5473#include <sys/types.h>
5474 /* Check that off_t can represent 2**63 - 1 correctly.
5475 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5476 since some C++ compilers masquerading as C compilers
5477 incorrectly reject 9223372036854775807. */
5478#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5479 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5480 && LARGE_OFF_T % 2147483647 == 1)
5481 ? 1 : -1];
5482int
5483main ()
5484{
5485
5486 ;
5487 return 0;
5488}
5489_ACEOF
5490if ac_fn_c_try_compile "$LINENO"; then :
5491 ac_cv_sys_large_files=1; break
5492fi
5493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494 ac_cv_sys_large_files=unknown
5495 break
5496done
5497fi
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5499$as_echo "$ac_cv_sys_large_files" >&6; }
5500case $ac_cv_sys_large_files in #(
5501 no | unknown) ;;
5502 *)
5503cat >>confdefs.h <<_ACEOF
5504#define _LARGE_FILES $ac_cv_sys_large_files
5505_ACEOF
5506;;
5507esac
5508rm -rf conftest*
5509 fi
5510fi
5511
5512
40664c0c
AJ
5513ac_ext=c
5514ac_cpp='$CPP $CPPFLAGS'
5515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5517ac_compiler_gnu=$ac_cv_c_compiler_gnu
25e9e4f0 5518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
40664c0c
AJ
5519$as_echo_n "checking how to run the C preprocessor... " >&6; }
5520# On Suns, sometimes $CPP names a directory.
5521if test -n "$CPP" && test -d "$CPP"; then
5522 CPP=
5c5a6217 5523fi
40664c0c 5524if test -z "$CPP"; then
25e9e4f0 5525 if test "${ac_cv_prog_CPP+set}" = set; then :
abf5048b 5526 $as_echo_n "(cached) " >&6
b53bb419 5527else
40664c0c
AJ
5528 # Double quotes because CPP needs to be expanded
5529 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5530 do
5531 ac_preproc_ok=false
5532for ac_c_preproc_warn_flag in '' yes
daa2886c 5533do
40664c0c
AJ
5534 # Use a header file that comes with gcc, so configuring glibc
5535 # with a fresh cross-compiler works.
5536 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5537 # <limits.h> exists even on freestanding compilers.
5538 # On the NeXT, cc -E runs the code through the compiler's parser,
5539 # not just through cpp. "Syntax error" is here to catch this case.
25e9e4f0 5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664c0c
AJ
5541/* end confdefs.h. */
5542#ifdef __STDC__
5543# include <limits.h>
5544#else
5545# include <assert.h>
5546#endif
5547 Syntax error
5548_ACEOF
25e9e4f0 5549if ac_fn_c_try_cpp "$LINENO"; then :
40664c0c 5550
25e9e4f0 5551else
40664c0c
AJ
5552 # Broken: fails on valid input.
5553continue
b53bb419 5554fi
40664c0c 5555rm -f conftest.err conftest.$ac_ext
fc6ffb29 5556
40664c0c
AJ
5557 # OK, works on sane cases. Now check whether nonexistent headers
5558 # can be detected and how.
25e9e4f0 5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664c0c
AJ
5560/* end confdefs.h. */
5561#include <ac_nonexistent.h>
5562_ACEOF
25e9e4f0 5563if ac_fn_c_try_cpp "$LINENO"; then :
40664c0c
AJ
5564 # Broken: success on invalid input.
5565continue
5566else
40664c0c
AJ
5567 # Passes both tests.
5568ac_preproc_ok=:
5569break
f5818d2f 5570fi
40664c0c 5571rm -f conftest.err conftest.$ac_ext
1d4db787 5572
40664c0c
AJ
5573done
5574# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5575rm -f conftest.err conftest.$ac_ext
25e9e4f0 5576if $ac_preproc_ok; then :
40664c0c 5577 break
1d4db787
MM
5578fi
5579
40664c0c
AJ
5580 done
5581 ac_cv_prog_CPP=$CPP
fc6ffb29 5582
1d4db787 5583fi
40664c0c 5584 CPP=$ac_cv_prog_CPP
1d4db787 5585else
40664c0c
AJ
5586 ac_cv_prog_CPP=$CPP
5587fi
25e9e4f0 5588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
40664c0c
AJ
5589$as_echo "$CPP" >&6; }
5590ac_preproc_ok=false
5591for ac_c_preproc_warn_flag in '' yes
1d4db787 5592do
40664c0c
AJ
5593 # Use a header file that comes with gcc, so configuring glibc
5594 # with a fresh cross-compiler works.
5595 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5596 # <limits.h> exists even on freestanding compilers.
5597 # On the NeXT, cc -E runs the code through the compiler's parser,
5598 # not just through cpp. "Syntax error" is here to catch this case.
25e9e4f0 5599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664c0c
AJ
5600/* end confdefs.h. */
5601#ifdef __STDC__
5602# include <limits.h>
5603#else
5604# include <assert.h>
5605#endif
5606 Syntax error
5607_ACEOF
25e9e4f0 5608if ac_fn_c_try_cpp "$LINENO"; then :
1d4db787 5609
25e9e4f0 5610else
40664c0c
AJ
5611 # Broken: fails on valid input.
5612continue
5613fi
40664c0c 5614rm -f conftest.err conftest.$ac_ext
c80c290e 5615
40664c0c
AJ
5616 # OK, works on sane cases. Now check whether nonexistent headers
5617 # can be detected and how.
25e9e4f0 5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664c0c
AJ
5619/* end confdefs.h. */
5620#include <ac_nonexistent.h>
5621_ACEOF
25e9e4f0 5622if ac_fn_c_try_cpp "$LINENO"; then :
40664c0c
AJ
5623 # Broken: success on invalid input.
5624continue
eb5f89c5 5625else
40664c0c
AJ
5626 # Passes both tests.
5627ac_preproc_ok=:
5628break
eb5f89c5 5629fi
40664c0c
AJ
5630rm -f conftest.err conftest.$ac_ext
5631
5632done
5633# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5634rm -f conftest.err conftest.$ac_ext
25e9e4f0
AJ
5635if $ac_preproc_ok; then :
5636
eb5f89c5 5637else
25e9e4f0 5638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
40664c0c 5639$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25e9e4f0
AJ
5640as_fn_error "C preprocessor \"$CPP\" fails sanity check
5641See \`config.log' for more details." "$LINENO" 5; }
eb5f89c5
AJ
5642fi
5643
40664c0c
AJ
5644ac_ext=c
5645ac_cpp='$CPP $CPPFLAGS'
5646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5648ac_compiler_gnu=$ac_cv_c_compiler_gnu
5649
fc6ffb29 5650
25e9e4f0 5651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
40664c0c 5652$as_echo_n "checking for ANSI C header files... " >&6; }
25e9e4f0 5653if test "${ac_cv_header_stdc+set}" = set; then :
abf5048b 5654 $as_echo_n "(cached) " >&6
eb5f89c5 5655else
25e9e4f0 5656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664c0c
AJ
5657/* end confdefs.h. */
5658#include <stdlib.h>
5659#include <stdarg.h>
5660#include <string.h>
5661#include <float.h>
eb5f89c5 5662
40664c0c
AJ
5663int
5664main ()
5665{
5666
5667 ;
5668 return 0;
5669}
5670_ACEOF
25e9e4f0 5671if ac_fn_c_try_compile "$LINENO"; then :
40664c0c 5672 ac_cv_header_stdc=yes
eb5f89c5 5673else
25e9e4f0 5674 ac_cv_header_stdc=no
eb5f89c5 5675fi
40664c0c 5676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
86bd0461 5677
40664c0c
AJ
5678if test $ac_cv_header_stdc = yes; then
5679 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25e9e4f0 5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664c0c
AJ
5681/* end confdefs.h. */
5682#include <string.h>
86bd0461 5683
40664c0c
AJ
5684_ACEOF
5685if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25e9e4f0
AJ
5686 $EGREP "memchr" >/dev/null 2>&1; then :
5687
86bd0461 5688else
40664c0c 5689 ac_cv_header_stdc=no
86bd0461 5690fi
40664c0c
AJ
5691rm -f conftest*
5692
86bd0461 5693fi
40664c0c
AJ
5694
5695if test $ac_cv_header_stdc = yes; then
5696 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25e9e4f0 5697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664c0c
AJ
5698/* end confdefs.h. */
5699#include <stdlib.h>
5700
5701_ACEOF
5702if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25e9e4f0
AJ
5703 $EGREP "free" >/dev/null 2>&1; then :
5704
eb5f89c5 5705else
40664c0c 5706 ac_cv_header_stdc=no
86bd0461 5707fi
40664c0c 5708rm -f conftest*
86bd0461 5709
86bd0461 5710fi
40664c0c
AJ
5711
5712if test $ac_cv_header_stdc = yes; then
5713 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25e9e4f0 5714 if test "$cross_compiling" = yes; then :
40664c0c 5715 :
86bd0461 5716else
25e9e4f0 5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664c0c
AJ
5718/* end confdefs.h. */
5719#include <ctype.h>
5720#include <stdlib.h>
5721#if ((' ' & 0x0FF) == 0x020)
5722# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5723# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5724#else
5725# define ISLOWER(c) \
5726 (('a' <= (c) && (c) <= 'i') \
5727 || ('j' <= (c) && (c) <= 'r') \
5728 || ('s' <= (c) && (c) <= 'z'))
5729# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5730#endif
5731
5732#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5733int
5734main ()
5735{
5736 int i;
5737 for (i = 0; i < 256; i++)
5738 if (XOR (islower (i), ISLOWER (i))
5739 || toupper (i) != TOUPPER (i))
5740 return 2;
5741 return 0;
5742}
5743_ACEOF
25e9e4f0 5744if ac_fn_c_try_run "$LINENO"; then :
86bd0461 5745
25e9e4f0
AJ
5746else
5747 ac_cv_header_stdc=no
86bd0461 5748fi
25e9e4f0
AJ
5749rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5750 conftest.$ac_objext conftest.beam conftest.$ac_ext
86bd0461 5751fi
86bd0461 5752
eb5f89c5 5753fi
40664c0c 5754fi
25e9e4f0 5755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
40664c0c
AJ
5756$as_echo "$ac_cv_header_stdc" >&6; }
5757if test $ac_cv_header_stdc = yes; then
eb5f89c5 5758
25e9e4f0 5759$as_echo "#define STDC_HEADERS 1" >>confdefs.h
fc01b729 5760
fc01b729
AJ
5761fi
5762
40664c0c 5763# On IRIX 5.3, sys/types and inttypes.h are conflicting.
40664c0c
AJ
5764for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5765 inttypes.h stdint.h unistd.h
25e9e4f0
AJ
5766do :
5767 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5768ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5769"
5770eval as_val=\$$as_ac_Header
5771 if test "x$as_val" = x""yes; then :
40664c0c
AJ
5772 cat >>confdefs.h <<_ACEOF
5773#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5774_ACEOF
fc01b729 5775
40664c0c 5776fi
86bd0461 5777
86bd0461
FG
5778done
5779
fc01b729 5780
40664c0c 5781for ac_header in \
862965f4 5782 AL/al.h \
4430ab43 5783 AudioToolbox/AudioConverter.h \
40664c0c
AJ
5784 AudioUnit/AudioUnit.h \
5785 Carbon/Carbon.h \
5786 CoreAudio/CoreAudio.h \
5787 DiskArbitration/DiskArbitration.h \
5788 IOKit/IOKitLib.h \
225a494d 5789 IOKit/hid/IOHIDLib.h \
0b08f19e 5790 OpenAL/al.h \
40664c0c
AJ
5791 alias.h \
5792 alsa/asoundlib.h \
5793 arpa/inet.h \
5794 arpa/nameser.h \
5795 asm/types.h \
5796 capi20.h \
5797 curses.h \
5798 direct.h \
5799 dirent.h \
5800 dlfcn.h \
5801 elf.h \
5802 float.h \
7d5e565b 5803 fnmatch.h \
40664c0c
AJ
5804 fontconfig/fontconfig.h \
5805 getopt.h \
5806 grp.h \
58b5a3f6 5807 gsm.h \
c186d8a3 5808 gsm/gsm.h \
40664c0c 5809 ieeefp.h \
801d9c3a 5810 inet/mib2.h \
40664c0c
AJ
5811 io.h \
5812 jack/jack.h \
5813 jpeglib.h \
de1d7fbe 5814 kstat.h \
40664c0c
AJ
5815 lber.h \
5816 lcms.h \
5817 lcms/lcms.h \
5818 ldap.h \
5819 libaudioio.h \
5820 link.h \
5821 linux/cdrom.h \
5822 linux/compiler.h \
5823 linux/hdreg.h \
5824 linux/input.h \
5825 linux/ioctl.h \
5826 linux/joystick.h \
5827 linux/major.h \
5828 linux/param.h \
5829 linux/serial.h \
5830 linux/types.h \
5831 linux/ucdrom.h \
d35c0e87 5832 mach-o/nlist.h \
40664c0c
AJ
5833 mach/mach.h \
5834 mach/machine.h \
5835 machine/cpu.h \
5836 machine/limits.h \
5837 machine/soundcard.h \
40b3d2ed 5838 machine/sysarch.h \
40664c0c 5839 mntent.h \
db71d7c0 5840 mpg123.h \
40664c0c
AJ
5841 ncurses.h \
5842 netdb.h \
5843 netinet/in.h \
5844 netinet/in_systm.h \
5845 netinet/tcp.h \
5846 netinet/tcp_fsm.h \
5847 openssl/err.h \
5848 openssl/ssl.h \
5849 png.h \
5850 poll.h \
01b972d6 5851 port.h \
40664c0c
AJ
5852 process.h \
5853 pthread.h \
5854 pwd.h \
5855 regex.h \
5856 sched.h \
5857 scsi/scsi.h \
5858 scsi/scsi_ioctl.h \
5859 scsi/sg.h \
5860 soundcard.h \
2d7ccb38 5861 stdbool.h \
40664c0c
AJ
5862 stdint.h \
5863 strings.h \
801d9c3a 5864 stropts.h \
40664c0c
AJ
5865 sys/asoundlib.h \
5866 sys/cdio.h \
5867 sys/elf32.h \
5868 sys/epoll.h \
5869 sys/errno.h \
5870 sys/event.h \
5871 sys/exec_elf.h \
5872 sys/filio.h \
61a70360 5873 sys/inotify.h \
40664c0c
AJ
5874 sys/ioctl.h \
5875 sys/ipc.h \
5876 sys/limits.h \
5877 sys/link.h \
40664c0c
AJ
5878 sys/mman.h \
5879 sys/modem.h \
5880 sys/msg.h \
5881 sys/mtio.h \
5882 sys/param.h \
5883 sys/poll.h \
5884 sys/prctl.h \
5885 sys/protosw.h \
5886 sys/ptrace.h \
40664c0c
AJ
5887 sys/resource.h \
5888 sys/scsiio.h \
5889 sys/shm.h \
5890 sys/signal.h \
5891 sys/socket.h \
5892 sys/socketvar.h \
5893 sys/sockio.h \
5894 sys/soundcard.h \
5895 sys/statvfs.h \
5896 sys/strtio.h \
5897 sys/syscall.h \
801d9c3a 5898 sys/tihdr.h \
40664c0c
AJ
5899 sys/time.h \
5900 sys/timeout.h \
5901 sys/times.h \
5902 sys/uio.h \
5903 sys/un.h \
5904 sys/utsname.h \
5905 sys/vm86.h \
5906 sys/wait.h \
5907 syscall.h \
5908 termios.h \
73cd5693 5909 tiffio.h \
40664c0c
AJ
5910 unistd.h \
5911 utime.h \
5912 valgrind/memcheck.h \
11ca05f6
JC
5913 valgrind/valgrind.h \
5914 zlib.h
40664c0c 5915
25e9e4f0
AJ
5916do :
5917 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5918ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5919eval as_val=\$$as_ac_Header
5920 if test "x$as_val" = x""yes; then :
40664c0c
AJ
5921 cat >>confdefs.h <<_ACEOF
5922#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5923_ACEOF
f5818d2f 5924
e533e972
AJ
5925fi
5926
40664c0c
AJ
5927done
5928
25e9e4f0 5929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
40664c0c 5930$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25e9e4f0 5931if test "${ac_cv_header_stat_broken+set}" = set; then :
40664c0c 5932 $as_echo_n "(cached) " >&6
f5818d2f 5933else
25e9e4f0 5934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 5935/* end confdefs.h. */
40664c0c
AJ
5936#include <sys/types.h>
5937#include <sys/stat.h>
5938
5939#if defined S_ISBLK && defined S_IFDIR
5940extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5941#endif
5942
5943#if defined S_ISBLK && defined S_IFCHR
5944extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5945#endif
5946
5947#if defined S_ISLNK && defined S_IFREG
5948extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5949#endif
5950
5951#if defined S_ISSOCK && defined S_IFREG
5952extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
f5818d2f 5953#endif
e533e972 5954
f5818d2f 5955_ACEOF
25e9e4f0 5956if ac_fn_c_try_compile "$LINENO"; then :
40664c0c 5957 ac_cv_header_stat_broken=no
f5818d2f 5958else
25e9e4f0 5959 ac_cv_header_stat_broken=yes
f5818d2f 5960fi
40664c0c 5961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ea584724 5962fi
25e9e4f0 5963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
40664c0c
AJ
5964$as_echo "$ac_cv_header_stat_broken" >&6; }
5965if test $ac_cv_header_stat_broken = yes; then
daa2886c 5966
25e9e4f0 5967$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
875927f6 5968
e533e972 5969fi
875927f6 5970
c555274d 5971
e24bcc77 5972
40664c0c 5973for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
25e9e4f0
AJ
5974do :
5975 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5976ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
40664c0c
AJ
5977 #ifdef HAVE_SYS_PARAM_H
5978 # include <sys/param.h>
5979 #endif
25e9e4f0
AJ
5980"
5981eval as_val=\$$as_ac_Header
5982 if test "x$as_val" = x""yes; then :
daa2886c 5983 cat >>confdefs.h <<_ACEOF
abf5048b 5984#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
728bedcf
MM
5985_ACEOF
5986
728bedcf
MM
5987fi
5988
5989done
5990
5991
40664c0c
AJ
5992for ac_header in \
5993 netinet/ip.h \
5994 net/if.h \
5995 net/if_arp.h \
5996 net/if_dl.h \
5997 net/if_types.h \
5998 net/route.h \
5999 netinet/if_ether.h \
6000 netinet/if_inarp.h \
6001 netinet/in_pcb.h \
6002 netinet/ip_icmp.h \
6003 netinet/ip_var.h \
6004 netinet/udp.h \
6005 netipx/ipx.h \
7ff12568 6006
25e9e4f0
AJ
6007do :
6008 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6009ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
40664c0c
AJ
6010 #ifdef HAVE_SYS_SOCKET_H
6011 # include <sys/socket.h>
6012 #endif
6013 #ifdef HAVE_SYS_SOCKETVAR_H
6014 # include <sys/socketvar.h>
6015 #endif
6016 #ifdef HAVE_NET_ROUTE_H
6017 # include <net/route.h>
6018 #endif
6019 #ifdef HAVE_NETINET_IN_H
6020 # include <netinet/in.h>
6021 #endif
6022 #ifdef HAVE_NETINET_IN_SYSTM_H
6023 # include <netinet/in_systm.h>
6024 #endif
6025 #ifdef HAVE_NET_IF_H
6026 # include <net/if.h>
6027 #endif
6028 #ifdef HAVE_NETINET_IP_H
6029 # include <netinet/ip.h>
6030 #endif
25e9e4f0
AJ
6031"
6032eval as_val=\$$as_ac_Header
6033 if test "x$as_val" = x""yes; then :
40664c0c
AJ
6034 cat >>confdefs.h <<_ACEOF
6035#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6036_ACEOF
7ff12568 6037
40664c0c 6038fi
7ff12568 6039
40664c0c 6040done
7ff12568
RK
6041
6042
40664c0c 6043for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
25e9e4f0
AJ
6044do :
6045 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6046ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
40664c0c
AJ
6047 #ifdef HAVE_ALIAS_H
6048 # include <alias.h>
6049 #endif
6050 #ifdef HAVE_SYS_SOCKET_H
6051 # include <sys/socket.h>
6052 #endif
6053 #ifdef HAVE_SYS_SOCKETVAR_H
6054 # include <sys/socketvar.h>
6055 #endif
6056 #ifdef HAVE_SYS_TIMEOUT_H
6057 # include <sys/timeout.h>
6058 #endif
6059 #ifdef HAVE_NETINET_IN_H
6060 # include <netinet/in.h>
6061 #endif
6062 #ifdef HAVE_NETINET_IN_SYSTM_H
6063 # include <netinet/in_systm.h>
6064 #endif
6065 #ifdef HAVE_NETINET_IP_H
6066 # include <netinet/ip.h>
6067 #endif
6068 #ifdef HAVE_NETINET_IP_VAR_H
6069 # include <netinet/ip_var.h>
6070 #endif
6071 #ifdef HAVE_NETINET_IP_ICMP_H
6072 # include <netinet/ip_icmp.h>
6073 #endif
6074 #ifdef HAVE_NETINET_UDP_H
6075 # include <netinet/udp.h>
6076 #endif
6077 #ifdef HAVE_NETINET_TCP_H
6078 # include <netinet/tcp.h>
6079 #endif
6080 #ifdef HAVE_NETINET_TCP_TIMER_H
6081 #include <netinet/tcp_timer.h>
6082 #endif
25e9e4f0
AJ
6083"
6084eval as_val=\$$as_ac_Header
6085 if test "x$as_val" = x""yes; then :
40664c0c
AJ
6086 cat >>confdefs.h <<_ACEOF
6087#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6088_ACEOF
7ff12568 6089
40664c0c 6090fi
7ff12568 6091
40664c0c 6092done
7ff12568
RK
6093
6094
0ce420de 6095for ac_header in linux/ipx.h linux/irda.h
25e9e4f0 6096do :
0ce420de
JL
6097 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6098ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
40664c0c
AJ
6099 #ifdef HAVE_ASM_TYPES_H
6100 # include <asm/types.h>
6101 #endif
6102 #ifdef HAVE_SYS_SOCKET_H
6103 # include <sys/socket.h>
6104 #endif
6105 #ifdef HAVE_LINUX_TYPES_H
6106 # include <linux/types.h>
6107 #endif
25e9e4f0 6108"
0ce420de
JL
6109eval as_val=\$$as_ac_Header
6110 if test "x$as_val" = x""yes; then :
25e9e4f0 6111 cat >>confdefs.h <<_ACEOF
0ce420de 6112#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2d7ccb38
AE
6113_ACEOF
6114
6115fi
6116
6117done
6118
6119
2d7ccb38 6120for ac_header in mach-o/dyld_images.h
25e9e4f0
AJ
6121do :
6122 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
2d7ccb38
AE
6123 # include <stdbool.h>
6124 #endif
6125 #ifdef HAVE_STDINT_H
6126 # include <stdint.h>
6127 #endif
25e9e4f0
AJ
6128"
6129if test "x$ac_cv_header_mach_o_dyld_images_h" = x""yes; then :
40664c0c 6130 cat >>confdefs.h <<_ACEOF
25e9e4f0 6131#define HAVE_MACH_O_DYLD_IMAGES_H 1
40664c0c 6132_ACEOF
7ff12568 6133
40664c0c 6134fi
7ff12568 6135
40664c0c 6136done
7ff12568
RK
6137
6138
40664c0c 6139for ac_header in resolv.h
25e9e4f0
AJ
6140do :
6141 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
40664c0c
AJ
6142 #ifdef HAVE_SYS_SOCKET_H
6143 # include <sys/socket.h>
6144 #endif
6145 #ifdef HAVE_NETINET_IN_H
6146 # include <netinet/in.h>
6147 #endif
6148 #ifdef HAVE_ARPA_NAMESER_H
6149 # include <arpa/nameser.h>
6150 #endif
25e9e4f0
AJ
6151"
6152if test "x$ac_cv_header_resolv_h" = x""yes; then :
40664c0c 6153 cat >>confdefs.h <<_ACEOF
25e9e4f0 6154#define HAVE_RESOLV_H 1
40664c0c 6155_ACEOF
7ff12568 6156
40664c0c 6157fi
7ff12568 6158
40664c0c 6159done
7ff12568
RK
6160
6161
e3c0e30d
JL
6162for ac_header in ifaddrs.h
6163do :
6164 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6165"
6166if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
6167 cat >>confdefs.h <<_ACEOF
6168#define HAVE_IFADDRS_H 1
6169_ACEOF
6170
6171fi
6172
6173done
6174
6175
40664c0c 6176for ac_header in ucontext.h
25e9e4f0
AJ
6177do :
6178 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6179"
6180if test "x$ac_cv_header_ucontext_h" = x""yes; then :
40664c0c 6181 cat >>confdefs.h <<_ACEOF
25e9e4f0 6182#define HAVE_UCONTEXT_H 1
40664c0c 6183_ACEOF
daa2886c 6184
40664c0c
AJ
6185fi
6186
6187done
6188
6189
40664c0c 6190for ac_header in sys/thr.h
25e9e4f0
AJ
6191do :
6192 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
40664c0c
AJ
6193#ifdef HAVE_UCONTEXT_H
6194#include <ucontext.h>
6195#endif
25e9e4f0
AJ
6196"
6197if test "x$ac_cv_header_sys_thr_h" = x""yes; then :
40664c0c 6198 cat >>confdefs.h <<_ACEOF
25e9e4f0 6199#define HAVE_SYS_THR_H 1
40664c0c
AJ
6200_ACEOF
6201
6202fi
6203
6204done
6205
6206
40664c0c 6207for ac_header in pthread_np.h
25e9e4f0
AJ
6208do :
6209 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
40664c0c
AJ
6210#include <pthread.h>
6211#endif
25e9e4f0
AJ
6212"
6213if test "x$ac_cv_header_pthread_np_h" = x""yes; then :
40664c0c 6214 cat >>confdefs.h <<_ACEOF
25e9e4f0 6215#define HAVE_PTHREAD_NP_H 1
40664c0c
AJ
6216_ACEOF
6217
6218fi
6219
6220done
6221
6222
40664c0c 6223for ac_header in linux/videodev.h
25e9e4f0
AJ
6224do :
6225 ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "#ifdef HAVE_SYS_TIME_H
40664c0c
AJ
6226#include <sys/time.h>
6227#endif
6228#include <sys/types.h>
6229#ifdef HAVE_ASM_TYPES_H
6230#include <asm/types.h>
6231#endif
25e9e4f0
AJ
6232"
6233if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
40664c0c 6234 cat >>confdefs.h <<_ACEOF
25e9e4f0 6235#define HAVE_LINUX_VIDEODEV_H 1
40664c0c
AJ
6236_ACEOF
6237
6238fi
6239
6240done
6241
6242
40664c0c 6243for ac_header in linux/capi.h
25e9e4f0
AJ
6244do :
6245 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6246"
6247if test "x$ac_cv_header_linux_capi_h" = x""yes; then :
40664c0c 6248 cat >>confdefs.h <<_ACEOF
25e9e4f0 6249#define HAVE_LINUX_CAPI_H 1
40664c0c
AJ
6250_ACEOF
6251
6252fi
6253
6254done
6255
6256
6257
6258DLLEXT=""
6259
6260DLLFLAGS="-D_REENTRANT"
6261
6262LDSHARED=""
6263
6264LDDLLFLAGS=""
6265
6266LIBEXT="so"
6267
6268IMPLIBEXT="def"
6269
6270LDRPATH_INSTALL=""
6271
6272LDRPATH_LOCAL=""
6273
950a0f87 6274STATIC_IMPLIBEXT="def.a"
40664c0c
AJ
6275# Extract the first word of "ldd", so it can be a program name with args.
6276set dummy ldd; ac_word=$2
25e9e4f0 6277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 6278$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 6279if test "${ac_cv_path_LDD+set}" = set; then :
40664c0c
AJ
6280 $as_echo_n "(cached) " >&6
6281else
6282 case $LDD in
6283 [\\/]* | ?:[\\/]*)
6284 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6285 ;;
6286 *)
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288as_dummy="/sbin:/usr/sbin:$PATH"
6289for as_dir in $as_dummy
6290do
6291 IFS=$as_save_IFS
6292 test -z "$as_dir" && as_dir=.
25e9e4f0 6293 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
6294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6295 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
25e9e4f0 6296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
6297 break 2
6298 fi
6299done
25e9e4f0 6300 done
40664c0c
AJ
6301IFS=$as_save_IFS
6302
6303 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6304 ;;
6305esac
6306fi
6307LDD=$ac_cv_path_LDD
6308if test -n "$LDD"; then
25e9e4f0 6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
40664c0c
AJ
6310$as_echo "$LDD" >&6; }
6311else
25e9e4f0 6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c
AJ
6313$as_echo "no" >&6; }
6314fi
6315
6316
6317
6318case $host_os in
6319 cygwin*|mingw32*)
6320 if test -n "$ac_tool_prefix"; then
6321 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6322set dummy ${ac_tool_prefix}dlltool; ac_word=$2
25e9e4f0 6323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 6324$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 6325if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
40664c0c
AJ
6326 $as_echo_n "(cached) " >&6
6327else
6328 if test -n "$DLLTOOL"; then
6329 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6330else
6331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332for as_dir in $PATH
6333do
6334 IFS=$as_save_IFS
6335 test -z "$as_dir" && as_dir=.
25e9e4f0 6336 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
6337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6338 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
25e9e4f0 6339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
6340 break 2
6341 fi
6342done
25e9e4f0 6343 done
40664c0c
AJ
6344IFS=$as_save_IFS
6345
6346fi
6347fi
6348DLLTOOL=$ac_cv_prog_DLLTOOL
6349if test -n "$DLLTOOL"; then
25e9e4f0 6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
40664c0c
AJ
6351$as_echo "$DLLTOOL" >&6; }
6352else
25e9e4f0 6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c
AJ
6354$as_echo "no" >&6; }
6355fi
6356
6357
6358fi
6359if test -z "$ac_cv_prog_DLLTOOL"; then
6360 ac_ct_DLLTOOL=$DLLTOOL
6361 # Extract the first word of "dlltool", so it can be a program name with args.
6362set dummy dlltool; ac_word=$2
25e9e4f0 6363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 6364$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 6365if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
40664c0c
AJ
6366 $as_echo_n "(cached) " >&6
6367else
6368 if test -n "$ac_ct_DLLTOOL"; then
6369 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6370else
6371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372for as_dir in $PATH
6373do
6374 IFS=$as_save_IFS
6375 test -z "$as_dir" && as_dir=.
25e9e4f0 6376 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
6377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6378 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
25e9e4f0 6379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
6380 break 2
6381 fi
6382done
25e9e4f0 6383 done
40664c0c
AJ
6384IFS=$as_save_IFS
6385
6386fi
6387fi
6388ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6389if test -n "$ac_ct_DLLTOOL"; then
25e9e4f0 6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
40664c0c
AJ
6391$as_echo "$ac_ct_DLLTOOL" >&6; }
6392else
25e9e4f0 6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c
AJ
6394$as_echo "no" >&6; }
6395fi
6396
6397 if test "x$ac_ct_DLLTOOL" = x; then
6398 DLLTOOL="false"
6399 else
6400 case $cross_compiling:$ac_tool_warned in
6401yes:)
25e9e4f0 6402{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
40664c0c
AJ
6403$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6404ac_tool_warned=yes ;;
6405esac
6406 DLLTOOL=$ac_ct_DLLTOOL
6407 fi
6408else
6409 DLLTOOL="$ac_cv_prog_DLLTOOL"
6410fi
6411
6412 if test -n "$ac_tool_prefix"; then
6413 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6414set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
25e9e4f0 6415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 6416$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 6417if test "${ac_cv_prog_DLLWRAP+set}" = set; then :
40664c0c
AJ
6418 $as_echo_n "(cached) " >&6
6419else
6420 if test -n "$DLLWRAP"; then
6421 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6422else
6423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424for as_dir in $PATH
6425do
6426 IFS=$as_save_IFS
6427 test -z "$as_dir" && as_dir=.
25e9e4f0 6428 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
6429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6430 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
25e9e4f0 6431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
6432 break 2
6433 fi
6434done
25e9e4f0 6435 done
40664c0c
AJ
6436IFS=$as_save_IFS
6437
6438fi
6439fi
6440DLLWRAP=$ac_cv_prog_DLLWRAP
6441if test -n "$DLLWRAP"; then
25e9e4f0 6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
40664c0c
AJ
6443$as_echo "$DLLWRAP" >&6; }
6444else
25e9e4f0 6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c
AJ
6446$as_echo "no" >&6; }
6447fi
6448
6449
6450fi
6451if test -z "$ac_cv_prog_DLLWRAP"; then
6452 ac_ct_DLLWRAP=$DLLWRAP
6453 # Extract the first word of "dllwrap", so it can be a program name with args.
6454set dummy dllwrap; ac_word=$2
25e9e4f0 6455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40664c0c 6456$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 6457if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then :
40664c0c
AJ
6458 $as_echo_n "(cached) " >&6
6459else
6460 if test -n "$ac_ct_DLLWRAP"; then
6461 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6462else
6463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464for as_dir in $PATH
6465do
6466 IFS=$as_save_IFS
6467 test -z "$as_dir" && as_dir=.
25e9e4f0 6468 for ac_exec_ext in '' $ac_executable_extensions; do
40664c0c
AJ
6469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6470 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
25e9e4f0 6471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40664c0c
AJ
6472 break 2
6473 fi
6474done
25e9e4f0 6475 done
40664c0c
AJ
6476IFS=$as_save_IFS
6477
6478fi
6479fi
6480ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6481if test -n "$ac_ct_DLLWRAP"; then
25e9e4f0 6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
40664c0c
AJ
6483$as_echo "$ac_ct_DLLWRAP" >&6; }
6484else
25e9e4f0 6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c
AJ
6486$as_echo "no" >&6; }
6487fi
6488
6489 if test "x$ac_ct_DLLWRAP" = x; then
6490 DLLWRAP="false"
6491 else
6492 case $cross_compiling:$ac_tool_warned in
6493yes:)
25e9e4f0 6494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
40664c0c
AJ
6495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6496ac_tool_warned=yes ;;
6497esac
6498 DLLWRAP=$ac_ct_DLLWRAP
6499 fi
6500else
6501 DLLWRAP="$ac_cv_prog_DLLWRAP"
6502fi
6503
40664c0c
AJ
6504 if test "$DLLWRAP" = "false"; then
6505 LIBEXT="a"
6506 else
6507 LIBEXT="dll"
6508 fi
6509 IMPLIBEXT="a"
950a0f87 6510 STATIC_IMPLIBEXT="a"
40664c0c
AJ
6511 enable_iphlpapi=${enable_iphlpapi:-no}
6512 enable_kernel32=${enable_kernel32:-no}
6513 enable_msvcrt=${enable_msvcrt:-no}
6514 enable_ntdll=${enable_ntdll:-no}
6515 enable_ws2_32=${enable_ws2_32:-no}
6516 enable_loader=${enable_loader:-no}
6517 enable_server=${enable_server:-no}
6518 with_x=${with_x:-no}
c891f6bc 6519 with_pthread=${with_pthread:-no}
40664c0c
AJ
6520 ;;
6521 darwin*|macosx*)
6522 DLLEXT=".so"
6523 LIBEXT="dylib"
6524 DLLFLAGS="$DLLFLAGS -fPIC"
6525 LDDLLFLAGS="-bundle -multiply_defined suppress"
6526 LIBWINE_LDFLAGS="-multiply_defined suppress"
6527 LDSHARED="\$(CC) -dynamiclib"
6528 STRIP="$STRIP -x"
6529 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(TOPOBJDIR)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6530 SECURITYLIB="-framework Security -framework CoreFoundation"
f5818d2f 6531
40664c0c 6532 COREFOUNDATIONLIB="-framework CoreFoundation"
255b486c 6533
40664c0c 6534 IOKITLIB="-framework IOKit -framework CoreFoundation"
044b5c41 6535
691bdbd1 6536 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
255b486c 6537
40664c0c
AJ
6538 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6539 then
6540 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
255b486c 6541
40664c0c
AJ
6542 fi
6543 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6544 then
6545 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
f5818d2f 6546
40664c0c 6547 fi
0b08f19e
KT
6548 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6549 then
d435499f 6550 FRAMEWORK_OPENAL="-framework OpenAL"
0b08f19e 6551
d435499f
ML
6552
6553cat >>confdefs.h <<_ACEOF
6554#define HAVE_OPENAL 1
6555_ACEOF
6556
6557 ac_cv_lib_openal=yes
0b08f19e 6558 fi
81f8c037
AJ
6559 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6560 then
6561 ac_save_LIBS="$LIBS"
6562 LIBS="$LIBS $IOKITLIB"
25e9e4f0
AJ
6563 for ac_func in IOHIDManagerCreate
6564do :
6565 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6566if test "x$ac_cv_func_IOHIDManagerCreate" = x""yes; then :
6567 cat >>confdefs.h <<_ACEOF
6568#define HAVE_IOHIDMANAGERCREATE 1
81f8c037 6569_ACEOF
81f8c037 6570
25e9e4f0
AJ
6571fi
6572done
81f8c037 6573
25e9e4f0
AJ
6574 LIBS="$ac_save_LIBS"
6575 fi
6576 case $host_cpu in
6577 *powerpc*)
6578 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6579 esac
6580 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6581 then
6582 CARBONLIB="-framework Carbon"
7ff12568 6583
40664c0c 6584 enable_winequartz_drv=${enable_winequartz_drv:-yes}
cc8eb6b7
AJ
6585 fi
6586 if test "x$enable_win16" = "xyes"
6587 then
25e9e4f0 6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
cc8eb6b7 6589$as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
25e9e4f0
AJ
6590 if test "$cross_compiling" = yes; then :
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
cc8eb6b7
AJ
6592$as_echo "cross-compiling, assuming yes" >&6; }
6593else
25e9e4f0 6594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc8eb6b7
AJ
6595/* end confdefs.h. */
6596asm(".text\n"
6597 "bad:\tnop;nop\n"
6598 "good:\tnop;nop\n\t"
6599 ".globl _testfunc\n"
6600 "_testfunc:\tcallw good");
6601 extern void testfunc();
6602int
6603main ()
6604{
6605unsigned short *p = (unsigned short *)testfunc;
6606 return p[0] != 0xe866 || p[1] != 0xfffa
6607 ;
6608 return 0;
6609}
6610_ACEOF
25e9e4f0
AJ
6611if ac_fn_c_try_run "$LINENO"; then :
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cc8eb6b7
AJ
6613$as_echo "yes" >&6; }
6614else
25e9e4f0 6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cc8eb6b7 6616$as_echo "no" >&6; }
25e9e4f0 6617 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 6618fi
25e9e4f0
AJ
6619rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6620 conftest.$ac_objext conftest.beam conftest.$ac_ext
cc8eb6b7
AJ
6621fi
6622
40664c0c
AJ
6623 fi
6624 ;;
6625 *)
6626 DLLFLAGS="$DLLFLAGS -fPIC"
6627 DLLEXT=".so"
25e9e4f0 6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
40664c0c 6629$as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
25e9e4f0 6630if test "${ac_cv_c_dll_gnuelf+set}" = set; then :
40664c0c
AJ
6631 $as_echo_n "(cached) " >&6
6632else
6633 ac_wine_try_cflags_saved=$CFLAGS
6634CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
25e9e4f0
AJ
6635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636/* end confdefs.h. */
40664c0c 6637void myfunc() {}
f5818d2f 6638_ACEOF
25e9e4f0 6639if ac_fn_c_try_link "$LINENO"; then :
40664c0c 6640 ac_cv_c_dll_gnuelf="yes"
f0ca586f 6641else
25e9e4f0 6642 ac_cv_c_dll_gnuelf="no"
f5818d2f 6643fi
25e9e4f0
AJ
6644rm -f core conftest.err conftest.$ac_objext \
6645 conftest$ac_exeext conftest.$ac_ext
40664c0c 6646CFLAGS=$ac_wine_try_cflags_saved
c90fb25c 6647fi
25e9e4f0 6648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
40664c0c
AJ
6649$as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6650 if test "$ac_cv_c_dll_gnuelf" = "yes"
6651 then
6652 LDSHARED="\$(CC) -shared"
6653 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
25e9e4f0 6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
40664c0c 6655$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
25e9e4f0 6656if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then :
abf5048b 6657 $as_echo_n "(cached) " >&6
b079add3 6658else
40664c0c
AJ
6659 ac_wine_try_cflags_saved=$CFLAGS
6660CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
25e9e4f0 6661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b079add3 6662/* end confdefs.h. */
5d3eacd2 6663int main(int argc, char **argv) { return 0; }
b079add3 6664_ACEOF
25e9e4f0 6665if ac_fn_c_try_link "$LINENO"; then :
40664c0c
AJ
6666 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6667else
25e9e4f0 6668 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
40664c0c 6669fi
25e9e4f0
AJ
6670rm -f core conftest.err conftest.$ac_objext \
6671 conftest$ac_exeext conftest.$ac_ext
40664c0c
AJ
6672CFLAGS=$ac_wine_try_cflags_saved
6673fi
25e9e4f0 6674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
40664c0c 6675$as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
25e9e4f0 6676if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
40664c0c
AJ
6677 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6678else
25e9e4f0 6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
40664c0c 6680$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
25e9e4f0 6681if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then :
abf5048b 6682 $as_echo_n "(cached) " >&6
2569635c 6683else
40664c0c
AJ
6684 ac_wine_try_cflags_saved=$CFLAGS
6685CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
25e9e4f0 6686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569635c 6687/* end confdefs.h. */
5d3eacd2 6688int main(int argc, char **argv) { return 0; }
2569635c 6689_ACEOF
25e9e4f0 6690if ac_fn_c_try_link "$LINENO"; then :
40664c0c 6691 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
2569635c 6692else
25e9e4f0 6693 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
2569635c 6694fi
25e9e4f0
AJ
6695rm -f core conftest.err conftest.$ac_objext \
6696 conftest$ac_exeext conftest.$ac_ext
40664c0c 6697CFLAGS=$ac_wine_try_cflags_saved
2569635c 6698fi
25e9e4f0 6699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
40664c0c 6700$as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
25e9e4f0 6701if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
40664c0c 6702 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
2569635c 6703fi
40664c0c 6704fi
020b0ef6 6705
25e9e4f0 6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
40664c0c 6707$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
25e9e4f0 6708if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then :
abf5048b 6709 $as_echo_n "(cached) " >&6
7ff12568 6710else
40664c0c
AJ
6711 ac_wine_try_cflags_saved=$CFLAGS
6712CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
25e9e4f0 6713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7ff12568 6714/* end confdefs.h. */
5d3eacd2 6715int main(int argc, char **argv) { return 0; }
7ff12568 6716_ACEOF
25e9e4f0 6717if ac_fn_c_try_link "$LINENO"; then :
40664c0c 6718 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
7ff12568 6719else
25e9e4f0 6720 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
7ff12568 6721fi
25e9e4f0
AJ
6722rm -f core conftest.err conftest.$ac_objext \
6723 conftest$ac_exeext conftest.$ac_ext
40664c0c 6724CFLAGS=$ac_wine_try_cflags_saved
7ff12568 6725fi
25e9e4f0 6726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
40664c0c 6727$as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
25e9e4f0 6728if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
40664c0c 6729 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
5b6879c5
FJ
6730fi
6731
25e9e4f0 6732 { $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 6733$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
25e9e4f0 6734if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then :
abf5048b 6735 $as_echo_n "(cached) " >&6
faf05dfd 6736else
40664c0c
AJ
6737 ac_wine_try_cflags_saved=$CFLAGS
6738CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
25e9e4f0 6739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
faf05dfd 6740/* end confdefs.h. */
5d3eacd2 6741int main(int argc, char **argv) { return 0; }
faf05dfd 6742_ACEOF
25e9e4f0 6743if ac_fn_c_try_link "$LINENO"; then :
40664c0c
AJ
6744 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6745else
25e9e4f0 6746 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
faf05dfd 6747fi
25e9e4f0
AJ
6748rm -f core conftest.err conftest.$ac_objext \
6749 conftest$ac_exeext conftest.$ac_ext
40664c0c
AJ
6750CFLAGS=$ac_wine_try_cflags_saved
6751fi
25e9e4f0 6752{ $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 6753$as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
25e9e4f0 6754if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
40664c0c
AJ
6755 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6756fi
faf05dfd 6757
40664c0c 6758 echo '{ global: *; };' >conftest.map
25e9e4f0 6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
40664c0c 6760$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
25e9e4f0 6761if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then :
abf5048b 6762 $as_echo_n "(cached) " >&6
d94475bd 6763else
40664c0c
AJ
6764 ac_wine_try_cflags_saved=$CFLAGS
6765CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
25e9e4f0 6766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 6767/* end confdefs.h. */
5d3eacd2 6768int main(int argc, char **argv) { return 0; }
f5818d2f 6769_ACEOF
25e9e4f0 6770if ac_fn_c_try_link "$LINENO"; then :
40664c0c 6771 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
f5818d2f 6772else
25e9e4f0 6773 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
f5818d2f 6774fi
25e9e4f0
AJ
6775rm -f core conftest.err conftest.$ac_objext \
6776 conftest$ac_exeext conftest.$ac_ext
40664c0c 6777CFLAGS=$ac_wine_try_cflags_saved
f5818d2f 6778fi
25e9e4f0 6779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
40664c0c 6780$as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
25e9e4f0 6781if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
40664c0c 6782 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
7ff12568 6783fi
40664c0c 6784 rm -f conftest.map
2d6d4e96 6785
25e9e4f0 6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
40664c0c 6787$as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
25e9e4f0 6788if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then :
abf5048b 6789 $as_echo_n "(cached) " >&6
02e90087 6790else
40664c0c
AJ
6791 ac_wine_try_cflags_saved=$CFLAGS
6792CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
25e9e4f0 6793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 6794/* end confdefs.h. */
5d3eacd2 6795int main(int argc, char **argv) { return 0; }
60833da9 6796_ACEOF
25e9e4f0 6797if ac_fn_c_try_link "$LINENO"; then :
40664c0c 6798 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
60833da9 6799else
25e9e4f0 6800 ac_cv_cflags__fPIC__Wl___export_dynamic=no
60833da9 6801fi
25e9e4f0
AJ
6802rm -f core conftest.err conftest.$ac_objext \
6803 conftest$ac_exeext conftest.$ac_ext
40664c0c 6804CFLAGS=$ac_wine_try_cflags_saved
60833da9 6805fi
25e9e4f0 6806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
40664c0c 6807$as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
25e9e4f0 6808if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
40664c0c 6809 LDEXECFLAGS="-Wl,--export-dynamic"
60833da9
TC
6810
6811fi
6812
25e9e4f0
AJ
6813 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
40664c0c 6815$as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
25e9e4f0 6816if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then :
abf5048b 6817 $as_echo_n "(cached) " >&6
60833da9 6818else
40664c0c
AJ
6819 ac_wine_try_cflags_saved=$CFLAGS
6820CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
25e9e4f0 6821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60833da9 6822/* end confdefs.h. */
5d3eacd2 6823int main(int argc, char **argv) { return 0; }
4ff90b47 6824_ACEOF
25e9e4f0 6825if ac_fn_c_try_link "$LINENO"; then :
40664c0c 6826 eval "$as_ac_var=yes"
4ff90b47 6827else
25e9e4f0 6828 eval "$as_ac_var=no"
4ff90b47 6829fi
25e9e4f0
AJ
6830rm -f core conftest.err conftest.$ac_objext \
6831 conftest$ac_exeext conftest.$ac_ext
40664c0c 6832CFLAGS=$ac_wine_try_cflags_saved
4ff90b47 6833fi
25e9e4f0
AJ
6834eval ac_res=\$$as_ac_var
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
abf5048b 6836$as_echo "$ac_res" >&6; }
25e9e4f0 6837if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
40664c0c
AJ
6838 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6839 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
6840else
25e9e4f0
AJ
6841 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
40664c0c 6843$as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
25e9e4f0 6844if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then :
abf5048b 6845 $as_echo_n "(cached) " >&6
4ff90b47 6846else
40664c0c
AJ
6847 ac_wine_try_cflags_saved=$CFLAGS
6848CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
25e9e4f0 6849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4ff90b47 6850/* end confdefs.h. */
5d3eacd2 6851int main(int argc, char **argv) { return 0; }
f5818d2f 6852_ACEOF
25e9e4f0 6853if ac_fn_c_try_link "$LINENO"; then :
40664c0c 6854 eval "$as_ac_var=yes"
f5818d2f 6855else
25e9e4f0 6856 eval "$as_ac_var=no"
f5818d2f 6857fi
25e9e4f0
AJ
6858rm -f core conftest.err conftest.$ac_objext \
6859 conftest$ac_exeext conftest.$ac_ext
40664c0c 6860CFLAGS=$ac_wine_try_cflags_saved
f5818d2f 6861fi
25e9e4f0
AJ
6862eval ac_res=\$$as_ac_var
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
abf5048b 6864$as_echo "$ac_res" >&6; }
25e9e4f0 6865if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
40664c0c
AJ
6866 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6867 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
f2b77ccb 6868fi
40664c0c 6869fi
2d6d4e96 6870
25e9e4f0 6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
40664c0c 6872$as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
25e9e4f0 6873if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then :
abf5048b 6874 $as_echo_n "(cached) " >&6
399931a2 6875else
40664c0c
AJ
6876 ac_wine_try_cflags_saved=$CFLAGS
6877CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
25e9e4f0 6878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 6879/* end confdefs.h. */
5d3eacd2 6880int main(int argc, char **argv) { return 0; }
f5818d2f 6881_ACEOF
25e9e4f0 6882if ac_fn_c_try_link "$LINENO"; then :
40664c0c 6883 ac_cv_cflags__Wl___enable_new_dtags=yes
f5818d2f 6884else
25e9e4f0 6885 ac_cv_cflags__Wl___enable_new_dtags=no
f5818d2f 6886fi
25e9e4f0
AJ
6887rm -f core conftest.err conftest.$ac_objext \
6888 conftest$ac_exeext conftest.$ac_ext
40664c0c 6889CFLAGS=$ac_wine_try_cflags_saved
f5818d2f 6890fi
25e9e4f0 6891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
40664c0c 6892$as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
25e9e4f0 6893if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
40664c0c 6894 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
399931a2
SC
6895fi
6896
40664c0c
AJ
6897 case $host_cpu in
6898 *i[3456789]86* | x86_64)
25e9e4f0 6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
40664c0c 6900$as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
25e9e4f0 6901if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then :
abf5048b 6902 $as_echo_n "(cached) " >&6
2d6d4e96 6903else
40664c0c
AJ
6904 ac_wine_try_cflags_saved=$CFLAGS
6905CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
25e9e4f0 6906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f174bc6 6907/* end confdefs.h. */
5d3eacd2 6908int main(int argc, char **argv) { return 0; }
8f174bc6 6909_ACEOF
25e9e4f0 6910if ac_fn_c_try_link "$LINENO"; then :
40664c0c 6911 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
7ff12568 6912else
25e9e4f0 6913 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
2d6d4e96 6914fi
25e9e4f0
AJ
6915rm -f core conftest.err conftest.$ac_objext \
6916 conftest$ac_exeext conftest.$ac_ext
40664c0c 6917CFLAGS=$ac_wine_try_cflags_saved
7ff12568 6918fi
25e9e4f0 6919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
40664c0c 6920$as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
25e9e4f0 6921if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
40664c0c 6922 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
2d6d4e96 6923fi
40664c0c
AJ
6924 ;;
6925 esac
2d6d4e96 6926
40664c0c 6927 else
25e9e4f0 6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
40664c0c 6929$as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
25e9e4f0 6930if test "${ac_cv_c_dll_unixware+set}" = set; then :
abf5048b 6931 $as_echo_n "(cached) " >&6
7ff12568 6932else
40664c0c
AJ
6933 ac_wine_try_cflags_saved=$CFLAGS
6934CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
25e9e4f0
AJ
6935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936/* end confdefs.h. */
40664c0c
AJ
6937void myfunc() {}
6938_ACEOF
25e9e4f0 6939if ac_fn_c_try_link "$LINENO"; then :
40664c0c 6940 ac_cv_c_dll_unixware="yes"
a3097628 6941else
25e9e4f0 6942 ac_cv_c_dll_unixware="no"
40664c0c 6943fi
25e9e4f0
AJ
6944rm -f core conftest.err conftest.$ac_objext \
6945 conftest$ac_exeext conftest.$ac_ext
40664c0c 6946CFLAGS=$ac_wine_try_cflags_saved
a3097628 6947fi
25e9e4f0 6948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
40664c0c
AJ
6949$as_echo "$ac_cv_c_dll_unixware" >&6; }
6950 if test "$ac_cv_c_dll_unixware" = "yes"
6951 then
6952 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
6953 LDDLLFLAGS="-Wl,-G,-B,symbolic"
6954
6955 else
25e9e4f0 6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
40664c0c 6957$as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
25e9e4f0 6958if test "${ac_cv_c_dll_hpux+set}" = set; then :
abf5048b 6959 $as_echo_n "(cached) " >&6
2d6d4e96 6960else
40664c0c
AJ
6961 ac_wine_try_cflags_saved=$CFLAGS
6962CFLAGS="$CFLAGS -shared"
25e9e4f0
AJ
6963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964/* end confdefs.h. */
40664c0c
AJ
6965void myfunc() {}
6966_ACEOF
25e9e4f0 6967if ac_fn_c_try_link "$LINENO"; then :
40664c0c 6968 ac_cv_c_dll_hpux="yes"
c7c9f939 6969else
25e9e4f0 6970 ac_cv_c_dll_hpux="no"
8f174bc6 6971fi
25e9e4f0
AJ
6972rm -f core conftest.err conftest.$ac_objext \
6973 conftest$ac_exeext conftest.$ac_ext
40664c0c
AJ
6974CFLAGS=$ac_wine_try_cflags_saved
6975fi
25e9e4f0 6976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
40664c0c
AJ
6977$as_echo "$ac_cv_c_dll_hpux" >&6; }
6978 if test "$ac_cv_c_dll_hpux" = "yes"
6979 then
6980 LIBEXT="sl"
6981 DLLEXT=".sl"
6982 LDDLLFLAGS="-shared -fPIC"
6983 LDSHARED="\$(CC) -shared"
6984 fi
6985 fi
6986 fi
6987 ;;
a3097628 6988esac
40664c0c
AJ
6989
6990enable_winequartz_drv=${enable_winequartz_drv:-no}
6991
6992if test "$LIBEXT" = "a"; then
25e9e4f0 6993 as_fn_error "could not find a way to build shared libraries.
40664c0c
AJ
6994It is currently not possible to build Wine without shared library
6995(.so) support to allow transparent switch between .so and .dll files.
6996If you are using Linux, you will need a newer binutils.
25e9e4f0 6997" "$LINENO" 5
2d6d4e96 6998fi
2d6d4e96 6999
7d2e7726
AJ
7000CROSSTEST_DISABLE=\#
7001
7002if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
40664c0c 7003then
a91fb219
AJ
7004 case "$host_cpu" in
7005 i[3456789]86*)
7006 ac_prefix_list="i686-pc-mingw32-gcc i586-pc-mingw32-gcc i486-pc-mingw32-gcc i386-pc-mingw32-gcc i686-mingw32msvc-gcc i586-mingw32msvc-gcc i486-mingw32msvc-gcc i386-mingw32msvc-gcc i686-mingw32-gcc i586-mingw32-gcc i486-mingw32-gcc i386-mingw32-gcc " ;;
7007 x86_64)
7008 ac_prefix_list="x86_64-pc-mingw32-gcc x86_64-w64-mingw32-gcc " ;;
7009 *)
7010 ac_prefix_list="" ;;
7011esac
7012for ac_prog in $ac_prefix_list
40664c0c
AJ
7013do
7014 # Extract the first word of "$ac_prog", so it can be a program name with args.
7015set dummy $ac_prog; ac_word=$2
25e9e4f0 7016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf5048b 7017$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 7018if test "${ac_cv_prog_CROSSCC+set}" = set; then :
abf5048b 7019 $as_echo_n "(cached) " >&6
a3097628 7020else
40664c0c
AJ
7021 if test -n "$CROSSCC"; then
7022 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
a3097628
AJ
7023else
7024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025for as_dir in $PATH
7026do
7027 IFS=$as_save_IFS
7028 test -z "$as_dir" && as_dir=.
25e9e4f0 7029 for ac_exec_ext in '' $ac_executable_extensions; do
a3097628 7030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40664c0c 7031 ac_cv_prog_CROSSCC="$ac_prog"
25e9e4f0 7032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a3097628
AJ
7033 break 2
7034 fi
7035done
25e9e4f0 7036 done
a3097628 7037IFS=$as_save_IFS
2d6d4e96
HL
7038
7039fi
a3097628 7040fi
40664c0c
AJ
7041CROSSCC=$ac_cv_prog_CROSSCC
7042if test -n "$CROSSCC"; then
25e9e4f0 7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
40664c0c 7044$as_echo "$CROSSCC" >&6; }
a3097628 7045else
25e9e4f0 7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 7047$as_echo "no" >&6; }
a3097628 7048fi
2d6d4e96 7049
92ec21bd 7050
40664c0c
AJ
7051 test -n "$CROSSCC" && break
7052done
7053test -n "$CROSSCC" || CROSSCC="false"
7054
40664c0c
AJ
7055 if test "$CROSSCC" != "false"
7056 then
c2a29dbb
AJ
7057 ac_save_CC="$CC"
7058 CC="$CROSSCC"
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7060$as_echo_n "checking whether $CROSSCC works... " >&6; }
7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062/* end confdefs.h. */
a2d88ab3 7063
c2a29dbb
AJ
7064int
7065main ()
7066{
7067
7068 ;
7069 return 0;
7070}
7071_ACEOF
7072if ac_fn_c_try_compile "$LINENO"; then :
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7074$as_echo "yes" >&6; }
7075 set x $CROSSCC
7076 shift
7077 target=""
7078 while test $# -ge 1
7079 do
7080 case "$1" in
7081 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7082 esac
7083 shift
7084 done
7085 if test -n "$target"
7086 then
7087 CROSSTEST_DISABLE=""
7088 CROSSTARGET="$target"
7089
7090 fi
7091else
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7093$as_echo "no" >&6; }
7094fi
7095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7096 CC="$ac_save_CC"
40664c0c
AJ
7097 fi
7098fi
7099
7100
c891f6bc
AJ
7101if test "$ac_cv_header_pthread_h" = "yes"
7102then
25e9e4f0 7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
c891f6bc 7104$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
25e9e4f0 7105if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
c891f6bc
AJ
7106 $as_echo_n "(cached) " >&6
7107else
7108 ac_check_lib_save_LIBS=$LIBS
7109LIBS="-lpthread $LIBS"
25e9e4f0 7110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c891f6bc
AJ
7111/* end confdefs.h. */
7112
7113/* Override any GCC internal prototype to avoid an error.
7114 Use char because int might match the return type of a GCC
7115 builtin and then its argument prototype would still apply. */
7116#ifdef __cplusplus
7117extern "C"
7118#endif
7119char pthread_create ();
7120int
7121main ()
7122{
7123return pthread_create ();
7124 ;
7125 return 0;
7126}
7127_ACEOF
25e9e4f0 7128if ac_fn_c_try_link "$LINENO"; then :
c891f6bc
AJ
7129 ac_cv_lib_pthread_pthread_create=yes
7130else
25e9e4f0 7131 ac_cv_lib_pthread_pthread_create=no
c891f6bc 7132fi
25e9e4f0
AJ
7133rm -f core conftest.err conftest.$ac_objext \
7134 conftest$ac_exeext conftest.$ac_ext
c891f6bc
AJ
7135LIBS=$ac_check_lib_save_LIBS
7136fi
25e9e4f0 7137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
c891f6bc 7138$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
25e9e4f0 7139if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
c891f6bc
AJ
7140 LIBPTHREAD="-lpthread"
7141
7142fi
7143
7144fi
25e9e4f0 7145if test "x$LIBPTHREAD" = "x"; then :
c891f6bc
AJ
7146 case "x$with_pthread" in
7147 xno) ;;
25e9e4f0 7148 *) as_fn_error "pthread ${notice_platform}development files not found.
c891f6bc 7149Wine cannot support threads without libpthread.
25e9e4f0 7150Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
c891f6bc
AJ
7151esac
7152fi
7153
7154
25e9e4f0 7155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
40664c0c
AJ
7156$as_echo_n "checking for X... " >&6; }
7157
7158
7159# Check whether --with-x was given.
25e9e4f0 7160if test "${with_x+set}" = set; then :
40664c0c
AJ
7161 withval=$with_x;
7162fi
7163
7164# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7165if test "x$with_x" = xno; then
7166 # The user explicitly disabled X.
7167 have_x=disabled
7168else
7169 case $x_includes,$x_libraries in #(
25e9e4f0
AJ
7170 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
7171 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
40664c0c
AJ
7172 $as_echo_n "(cached) " >&6
7173else
7174 # One or both of the vars are not set, and there is no cached value.
7175ac_x_includes=no ac_x_libraries=no
7176rm -f -r conftest.dir
7177if mkdir conftest.dir; then
7178 cd conftest.dir
7179 cat >Imakefile <<'_ACEOF'
7180incroot:
7181 @echo incroot='${INCROOT}'
7182usrlibdir:
7183 @echo usrlibdir='${USRLIBDIR}'
7184libdir:
7185 @echo libdir='${LIBDIR}'
7186_ACEOF
7187 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7188 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7189 for ac_var in incroot usrlibdir libdir; do
7190 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7191 done
7192 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7193 for ac_extension in a so sl dylib la dll; do
7194 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7195 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7196 ac_im_usrlibdir=$ac_im_libdir; break
7197 fi
7198 done
7199 # Screen out bogus values from the imake configuration. They are
7200 # bogus both because they are the default anyway, and because
7201 # using them would break gcc on systems where it needs fixed includes.
7202 case $ac_im_incroot in
7203 /usr/include) ac_x_includes= ;;
7204 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7205 esac
7206 case $ac_im_usrlibdir in
7207 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7208 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7209 esac
7210 fi
7211 cd ..
7212 rm -f -r conftest.dir
7213fi
7214
7215# Standard set of common directories for X headers.
7216# Check X11 before X11Rn because it is often a symlink to the current release.
7217ac_x_header_dirs='
7218/usr/X11/include
25e9e4f0 7219/usr/X11R7/include
40664c0c
AJ
7220/usr/X11R6/include
7221/usr/X11R5/include
7222/usr/X11R4/include
7223
7224/usr/include/X11
25e9e4f0 7225/usr/include/X11R7
40664c0c
AJ
7226/usr/include/X11R6
7227/usr/include/X11R5
7228/usr/include/X11R4
7229
7230/usr/local/X11/include
25e9e4f0 7231/usr/local/X11R7/include
40664c0c
AJ
7232/usr/local/X11R6/include
7233/usr/local/X11R5/include
7234/usr/local/X11R4/include
7235
7236/usr/local/include/X11
25e9e4f0 7237/usr/local/include/X11R7
40664c0c
AJ
7238/usr/local/include/X11R6
7239/usr/local/include/X11R5
7240/usr/local/include/X11R4
7241
7242/usr/X386/include
7243/usr/x386/include
7244/usr/XFree86/include/X11
7245
7246/usr/include
7247/usr/local/include
7248/usr/unsupported/include
7249/usr/athena/include
7250/usr/local/x11r5/include
7251/usr/lpp/Xamples/include
7252
7253/usr/openwin/include
7254/usr/openwin/share/include'
7255
7256if test "$ac_x_includes" = no; then
7257 # Guess where to find include files, by looking for Xlib.h.
7258 # First, try using that file with no special directory specified.
25e9e4f0 7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664c0c
AJ
7260/* end confdefs.h. */
7261#include <X11/Xlib.h>
7262_ACEOF
25e9e4f0 7263if ac_fn_c_try_cpp "$LINENO"; then :
40664c0c
AJ
7264 # We can compile using X headers with no special include directory.
7265ac_x_includes=
7266else
40664c0c
AJ
7267 for ac_dir in $ac_x_header_dirs; do
7268 if test -r "$ac_dir/X11/Xlib.h"; then
7269 ac_x_includes=$ac_dir
7270 break
a3097628 7271 fi
40664c0c
AJ
7272done
7273fi
40664c0c
AJ
7274rm -f conftest.err conftest.$ac_ext
7275fi # $ac_x_includes = no
7276
7277if test "$ac_x_libraries" = no; then
7278 # Check for the libraries.
7279 # See if we find them without any special options.
7280 # Don't add to $LIBS permanently.
7281 ac_save_LIBS=$LIBS
7282 LIBS="-lX11 $LIBS"
25e9e4f0 7283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664c0c
AJ
7284/* end confdefs.h. */
7285#include <X11/Xlib.h>
7286int
7287main ()
7288{
7289XrmInitialize ()
7290 ;
7291 return 0;
7292}
7293_ACEOF
25e9e4f0 7294if ac_fn_c_try_link "$LINENO"; then :
40664c0c
AJ
7295 LIBS=$ac_save_LIBS
7296# We can link X programs with no special library path.
7297ac_x_libraries=
7298else
25e9e4f0 7299 LIBS=$ac_save_LIBS
40664c0c
AJ
7300for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7301do
7302 # Don't even attempt the hair of trying to link an X program!
7303 for ac_extension in a so sl dylib la dll; do
7304 if test -r "$ac_dir/libX11.$ac_extension"; then
7305 ac_x_libraries=$ac_dir
7306 break 2
7307 fi
7308 done
7309done
7310fi
25e9e4f0
AJ
7311rm -f core conftest.err conftest.$ac_objext \
7312 conftest$ac_exeext conftest.$ac_ext
40664c0c
AJ
7313fi # $ac_x_libraries = no
7314
7315case $ac_x_includes,$ac_x_libraries in #(
7316 no,* | *,no | *\'*)
7317 # Didn't find X, or a directory has "'" in its name.
7318 ac_cv_have_x="have_x=no";; #(
7319 *)
7320 # Record where we found X for the cache.
7321 ac_cv_have_x="have_x=yes\
7322 ac_x_includes='$ac_x_includes'\
7323 ac_x_libraries='$ac_x_libraries'"
7324esac
7325fi
7326;; #(
7327 *) have_x=yes;;
7328 esac
7329 eval "$ac_cv_have_x"
7330fi # $with_x != no
7331
7332if test "$have_x" != yes; then
25e9e4f0 7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
40664c0c
AJ
7334$as_echo "$have_x" >&6; }
7335 no_x=yes
a3097628 7336else
40664c0c
AJ
7337 # If each of the values was on the command line, it overrides each guess.
7338 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7339 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7340 # Update the cache value to reflect the command line values.
7341 ac_cv_have_x="have_x=yes\
7342 ac_x_includes='$x_includes'\
7343 ac_x_libraries='$x_libraries'"
25e9e4f0 7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
40664c0c 7345$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
a3097628 7346fi
2d6d4e96 7347
40664c0c
AJ
7348if test "$no_x" = yes; then
7349 # Not all programs may use this symbol, but it does not hurt to define it.
312a1db3 7350
25e9e4f0 7351$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
2d6d4e96 7352
40664c0c
AJ
7353 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7354else
7355 if test -n "$x_includes"; then
7356 X_CFLAGS="$X_CFLAGS -I$x_includes"
7357 fi
e24bcc77 7358
40664c0c
AJ
7359 # It would also be nice to do this for all -L options, not just this one.
7360 if test -n "$x_libraries"; then
7361 X_LIBS="$X_LIBS -L$x_libraries"
7362 # For Solaris; some versions of Sun CC require a space after -R and
7363 # others require no space. Words are not sufficient . . . .
25e9e4f0 7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
40664c0c
AJ
7365$as_echo_n "checking whether -R must be followed by a space... " >&6; }
7366 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7367 ac_xsave_c_werror_flag=$ac_c_werror_flag
7368 ac_c_werror_flag=yes
25e9e4f0 7369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664c0c 7370/* end confdefs.h. */
fc6ffb29 7371
40664c0c
AJ
7372int
7373main ()
7374{
fc6ffb29 7375
40664c0c
AJ
7376 ;
7377 return 0;
7378}
7379_ACEOF
25e9e4f0
AJ
7380if ac_fn_c_try_link "$LINENO"; then :
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664c0c
AJ
7382$as_echo "no" >&6; }
7383 X_LIBS="$X_LIBS -R$x_libraries"
7384else
25e9e4f0
AJ
7385 LIBS="$ac_xsave_LIBS -R $x_libraries"
7386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664c0c 7387/* end confdefs.h. */
a3097628 7388
40664c0c
AJ
7389int
7390main ()
7391{
7392
7393 ;
7394 return 0;
7395}
ef799c46 7396_ACEOF
25e9e4f0
AJ
7397if ac_fn_c_try_link "$LINENO"; then :
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40664c0c
AJ
7399$as_echo "yes" >&6; }
7400 X_LIBS="$X_LIBS -R $x_libraries"
ef799c46 7401else
25e9e4f0 7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
40664c0c 7403$as_echo "neither works" >&6; }
ef799c46 7404fi
25e9e4f0
AJ
7405rm -f core conftest.err conftest.$ac_objext \
7406 conftest$ac_exeext conftest.$ac_ext
ef799c46 7407fi
25e9e4f0
AJ
7408rm -f core conftest.err conftest.$ac_objext \
7409 conftest$ac_exeext conftest.$ac_ext
40664c0c
AJ
7410 ac_c_werror_flag=$ac_xsave_c_werror_flag
7411 LIBS=$ac_xsave_LIBS
7412 fi
7413
7414 # Check for system-dependent libraries X programs must link with.
7415 # Do this before checking for the system-independent R6 libraries
7416 # (-lICE), since we may need -lsocket or whatever for X linking.
7417
7418 if test "$ISC" = yes; then
7419 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7420 else
7421 # Martyn Johnson says this is needed for Ultrix, if the X
7422 # libraries were built with DECnet support. And Karl Berry says
7423 # the Alpha needs dnet_stub (dnet does not exist).
7424 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25e9e4f0 7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664c0c
AJ
7426/* end confdefs.h. */
7427
7428/* Override any GCC internal prototype to avoid an error.
7429 Use char because int might match the return type of a GCC
7430 builtin and then its argument prototype would still apply. */
7431#ifdef __cplusplus
7432extern "C"
7433#endif
7434char XOpenDisplay ();
7435int
7436main ()
7437{
7438return XOpenDisplay ();
7439 ;
7440 return 0;
7441}
7442_ACEOF
25e9e4f0 7443if ac_fn_c_try_link "$LINENO"; then :
40664c0c 7444
25e9e4f0
AJ
7445else
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
40664c0c 7447$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25e9e4f0 7448if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
abf5048b 7449 $as_echo_n "(cached) " >&6
a3097628 7450else
40664c0c
AJ
7451 ac_check_lib_save_LIBS=$LIBS
7452LIBS="-ldnet $LIBS"
25e9e4f0 7453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7d00b050 7454/* end confdefs.h. */
a3097628 7455
40664c0c
AJ
7456/* Override any GCC internal prototype to avoid an error.
7457 Use char because int might match the return type of a GCC
7458 builtin and then its argument prototype would still apply. */
7459#ifdef __cplusplus
7460extern "C"
7461#endif
7462char dnet_ntoa ();
7d00b050
AJ
7463int
7464main ()
7465{
40664c0c 7466return dnet_ntoa ();
7d00b050
AJ
7467 ;
7468 return 0;
7469}
7470_ACEOF
25e9e4f0 7471if ac_fn_c_try_link "$LINENO"; then :
40664c0c 7472 ac_cv_lib_dnet_dnet_ntoa=yes
7d00b050 7473else
25e9e4f0 7474 ac_cv_lib_dnet_dnet_ntoa=no
7d00b050 7475fi
25e9e4f0
AJ
7476rm -f core conftest.err conftest.$ac_objext \
7477 conftest$ac_exeext conftest.$ac_ext
40664c0c 7478LIBS=$ac_check_lib_save_LIBS
a3097628 7479fi
25e9e4f0 7480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
40664c0c 7481$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25e9e4f0 7482if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
40664c0c
AJ
7483 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7484fi
7485
7486 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25e9e4f0 7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
40664c0c 7488$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25e9e4f0 7489if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
abf5048b 7490 $as_echo_n "(cached) " >&6
6f670b13 7491else
40664c0c
AJ
7492 ac_check_lib_save_LIBS=$LIBS
7493LIBS="-ldnet_stub $LIBS"
25e9e4f0 7494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 7495/* end confdefs.h. */
2d6d4e96 7496
40664c0c
AJ
7497/* Override any GCC internal prototype to avoid an error.
7498 Use char because int might match the return type of a GCC
7499 builtin and then its argument prototype would still apply. */
7500#ifdef __cplusplus
7501extern "C"
7502#endif
7503char dnet_ntoa ();
a3097628
AJ
7504int
7505main ()
7506{
40664c0c 7507return dnet_ntoa ();
a3097628
AJ
7508 ;
7509 return 0;
7510}
6f670b13 7511_ACEOF
25e9e4f0 7512if ac_fn_c_try_link "$LINENO"; then :
40664c0c 7513 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6f670b13 7514else
25e9e4f0 7515 ac_cv_lib_dnet_stub_dnet_ntoa=no
6f670b13 7516fi
25e9e4f0
AJ
7517rm -f core conftest.err conftest.$ac_objext \
7518 conftest$ac_exeext conftest.$ac_ext
40664c0c 7519LIBS=$ac_check_lib_save_LIBS
a3097628 7520fi
25e9e4f0 7521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
40664c0c 7522$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25e9e4f0 7523if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
40664c0c 7524 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6f670b13 7525fi
6f670b13 7526
40664c0c 7527 fi
2d6d4e96 7528fi
25e9e4f0
AJ
7529rm -f core conftest.err conftest.$ac_objext \
7530 conftest$ac_exeext conftest.$ac_ext
40664c0c 7531 LIBS="$ac_xsave_LIBS"
2d6d4e96 7532
40664c0c
AJ
7533 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7534 # to get the SysV transport functions.
7535 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7536 # needs -lnsl.
7537 # The nsl library prevents programs from opening the X display
7538 # on Irix 5.2, according to T.E. Dickey.
7539 # The functions gethostbyname, getservbyname, and inet_addr are
7540 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25e9e4f0
AJ
7541 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7542if test "x$ac_cv_func_gethostbyname" = x""yes; then :
e24bcc77 7543
6f670b13 7544fi
fc6ffb29 7545
40664c0c 7546 if test $ac_cv_func_gethostbyname = no; then
25e9e4f0 7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
40664c0c 7548$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25e9e4f0 7549if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
abf5048b 7550 $as_echo_n "(cached) " >&6
6f670b13 7551else
40664c0c
AJ
7552 ac_check_lib_save_LIBS=$LIBS
7553LIBS="-lnsl $LIBS"
25e9e4f0 7554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 7555/* end confdefs.h. */
6f670b13 7556
40664c0c
AJ
7557/* Override any GCC internal prototype to avoid an error.
7558 Use char because int might match the return type of a GCC
7559 builtin and then its argument prototype would still apply. */
7560#ifdef __cplusplus
7561extern "C"
7562#endif
7563char gethostbyname ();
6f670b13
FG
7564int
7565main ()
7566{
40664c0c 7567return gethostbyname ();
6f670b13
FG
7568 ;
7569 return 0;
7570}
7571_ACEOF
25e9e4f0 7572if ac_fn_c_try_link "$LINENO"; then :
40664c0c 7573 ac_cv_lib_nsl_gethostbyname=yes
6f670b13 7574else
25e9e4f0 7575 ac_cv_lib_nsl_gethostbyname=no
6f670b13 7576fi
25e9e4f0
AJ
7577rm -f core conftest.err conftest.$ac_objext \
7578 conftest$ac_exeext conftest.$ac_ext
40664c0c 7579LIBS=$ac_check_lib_save_LIBS
6f670b13 7580fi
25e9e4f0 7581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
40664c0c 7582$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25e9e4f0 7583if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
40664c0c 7584 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
c84c4784
AJ
7585fi
7586
40664c0c 7587 if test $ac_cv_lib_nsl_gethostbyname = no; then
25e9e4f0 7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
40664c0c 7589$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25e9e4f0 7590if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
abf5048b 7591 $as_echo_n "(cached) " >&6
dcc2d6c2 7592else
40664c0c
AJ
7593 ac_check_lib_save_LIBS=$LIBS
7594LIBS="-lbsd $LIBS"
25e9e4f0 7595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dcc2d6c2 7596/* end confdefs.h. */
2d6d4e96 7597
40664c0c
AJ
7598/* Override any GCC internal prototype to avoid an error.
7599 Use char because int might match the return type of a GCC
7600 builtin and then its argument prototype would still apply. */
7601#ifdef __cplusplus
7602extern "C"
7603#endif
7604char gethostbyname ();
2d6d4e96
HL
7605int
7606main ()
7607{
40664c0c 7608return gethostbyname ();
2d6d4e96
HL
7609 ;
7610 return 0;
7611}
7612_ACEOF
25e9e4f0 7613if ac_fn_c_try_link "$LINENO"; then :
40664c0c 7614 ac_cv_lib_bsd_gethostbyname=yes
2d6d4e96 7615else
25e9e4f0 7616 ac_cv_lib_bsd_gethostbyname=no
2d6d4e96 7617fi
25e9e4f0
AJ
7618rm -f core conftest.err conftest.$ac_objext \
7619 conftest$ac_exeext conftest.$ac_ext
40664c0c 7620LIBS=$ac_check_lib_save_LIBS
2d6d4e96 7621fi
25e9e4f0 7622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
40664c0c 7623$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25e9e4f0 7624if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
40664c0c 7625 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
2d6d4e96
HL
7626fi
7627
40664c0c
AJ
7628 fi
7629 fi
2d6d4e96 7630
40664c0c
AJ
7631 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7632 # socket/setsockopt and other routines are undefined under SCO ODT
7633 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7634 # on later versions), says Simon Leinen: it contains gethostby*
7635 # variants that don't use the name server (or something). -lsocket
7636 # must be given before -lnsl if both are needed. We assume that
7637 # if connect needs -lnsl, so does gethostbyname.
25e9e4f0
AJ
7638 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7639if test "x$ac_cv_func_connect" = x""yes; then :
7640
7641fi
7642
7643 if test $ac_cv_func_connect = no; then
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7645$as_echo_n "checking for connect in -lsocket... " >&6; }
7646if test "${ac_cv_lib_socket_connect+set}" = set; then :
abf5048b 7647 $as_echo_n "(cached) " >&6
2d6d4e96 7648else
25e9e4f0
AJ
7649 ac_check_lib_save_LIBS=$LIBS
7650LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2d6d4e96 7652/* end confdefs.h. */
40664c0c
AJ
7653
7654/* Override any GCC internal prototype to avoid an error.
7655 Use char because int might match the return type of a GCC
7656 builtin and then its argument prototype would still apply. */
7657#ifdef __cplusplus
7658extern "C"
7659#endif
7660char connect ();
a3097628
AJ
7661int
7662main ()
7663{
40664c0c 7664return connect ();
a3097628
AJ
7665 ;
7666 return 0;
7667}
2d6d4e96 7668_ACEOF
25e9e4f0 7669if ac_fn_c_try_link "$LINENO"; then :
40664c0c 7670 ac_cv_lib_socket_connect=yes
dcc2d6c2 7671else
25e9e4f0 7672 ac_cv_lib_socket_connect=no
dcc2d6c2 7673fi
25e9e4f0
AJ
7674rm -f core conftest.err conftest.$ac_objext \
7675 conftest$ac_exeext conftest.$ac_ext
40664c0c 7676LIBS=$ac_check_lib_save_LIBS
dcc2d6c2 7677fi
25e9e4f0 7678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
40664c0c 7679$as_echo "$ac_cv_lib_socket_connect" >&6; }
25e9e4f0 7680if test "x$ac_cv_lib_socket_connect" = x""yes; then :
40664c0c
AJ
7681 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7682fi
7683
7684 fi
7685
7686 # Guillermo Gomez says -lposix is necessary on A/UX.
25e9e4f0
AJ
7687 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7688if test "x$ac_cv_func_remove" = x""yes; then :
fc6ffb29 7689
dcc2d6c2
MM
7690fi
7691
40664c0c 7692 if test $ac_cv_func_remove = no; then
25e9e4f0 7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
40664c0c 7694$as_echo_n "checking for remove in -lposix... " >&6; }
25e9e4f0 7695if test "${ac_cv_lib_posix_remove+set}" = set; then :
abf5048b 7696 $as_echo_n "(cached) " >&6
f4077ae5 7697else
40664c0c
AJ
7698 ac_check_lib_save_LIBS=$LIBS
7699LIBS="-lposix $LIBS"
25e9e4f0 7700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f4077ae5
TC
7701/* end confdefs.h. */
7702
40664c0c
AJ
7703/* Override any GCC internal prototype to avoid an error.
7704 Use char because int might match the return type of a GCC
7705 builtin and then its argument prototype would still apply. */
7706#ifdef __cplusplus
7707extern "C"
7708#endif
7709char remove ();
f4077ae5
TC
7710int
7711main ()
7712{
40664c0c 7713return remove ();
f4077ae5
TC
7714 ;
7715 return 0;
7716}
7717_ACEOF
25e9e4f0 7718if ac_fn_c_try_link "$LINENO"; then :
40664c0c 7719 ac_cv_lib_posix_remove=yes
f4077ae5 7720else
25e9e4f0 7721 ac_cv_lib_posix_remove=no
f4077ae5 7722fi
25e9e4f0
AJ
7723rm -f core conftest.err conftest.$ac_objext \
7724 conftest$ac_exeext conftest.$ac_ext
40664c0c 7725LIBS=$ac_check_lib_save_LIBS
f4077ae5 7726fi
25e9e4f0 7727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
40664c0c 7728$as_echo "$ac_cv_lib_posix_remove" >&6; }
25e9e4f0 7729if test "x$ac_cv_lib_posix_remove" = x""yes; then :
40664c0c 7730 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
f4077ae5
TC
7731fi
7732
40664c0c 7733 fi
f4077ae5 7734
40664c0c 7735 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25e9e4f0
AJ
7736 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7737if test "x$ac_cv_func_shmat" = x""yes; then :
fc6ffb29 7738
70adb8f5 7739fi
70adb8f5 7740
40664c0c 7741 if test $ac_cv_func_shmat = no; then
25e9e4f0 7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
40664c0c 7743$as_echo_n "checking for shmat in -lipc... " >&6; }
25e9e4f0 7744if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
abf5048b 7745 $as_echo_n "(cached) " >&6
575d8944 7746else
40664c0c
AJ
7747 ac_check_lib_save_LIBS=$LIBS
7748LIBS="-lipc $LIBS"
25e9e4f0 7749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664c0c
AJ
7750/* end confdefs.h. */
7751
7752/* Override any GCC internal prototype to avoid an error.
7753 Use char because int might match the return type of a GCC
7754 builtin and then its argument prototype would still apply. */
7755#ifdef __cplusplus
7756extern "C"
7757#endif
7758char shmat ();
7759int
7760main ()
7761{
7762return shmat ();
7763 ;
7764 return 0;
7765}
575d8944 7766_ACEOF
25e9e4f0 7767if ac_fn_c_try_link "$LINENO"; then :
40664c0c 7768 ac_cv_lib_ipc_shmat=yes
a3097628 7769else
25e9e4f0 7770 ac_cv_lib_ipc_shmat=no
a3097628 7771fi
25e9e4f0
AJ
7772rm -f core conftest.err conftest.$ac_objext \
7773 conftest$ac_exeext conftest.$ac_ext
40664c0c
AJ
7774LIBS=$ac_check_lib_save_LIBS
7775fi
25e9e4f0 7776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
40664c0c 7777$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25e9e4f0 7778if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
40664c0c 7779 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
a3097628 7780fi
a3097628 7781
40664c0c
AJ
7782 fi
7783 fi
7784
7785 # Check for libraries that X11R6 Xt/Xaw programs need.
7786 ac_save_LDFLAGS=$LDFLAGS
7787 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7788 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7789 # check for ICE first), but we must link in the order -lSM -lICE or
7790 # we get undefined symbols. So assume we have SM if we have ICE.
7791 # These have to be linked with before -lX11, unlike the other
7792 # libraries we check for below, so use a different variable.
7793 # John Interrante, Karl Berry
25e9e4f0 7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
40664c0c 7795$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25e9e4f0 7796if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
abf5048b 7797 $as_echo_n "(cached) " >&6
a3097628 7798else
40664c0c
AJ
7799 ac_check_lib_save_LIBS=$LIBS
7800LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25e9e4f0 7801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40664c0c
AJ
7802/* end confdefs.h. */
7803
7804/* Override any GCC internal prototype to avoid an error.
7805 Use char because int might match the return type of a GCC
7806 builtin and then its argument prototype would still apply. */
7807#ifdef __cplusplus
7808extern "C"
7809#endif
7810char IceConnectionNumber ();
7811int
7812main ()
7813{
7814return IceConnectionNumber ();
7815 ;
7816 return 0;
7817}
575d8944 7818_ACEOF
25e9e4f0 7819if ac_fn_c_try_link "$LINENO"; then :
40664c0c 7820 ac_cv_lib_ICE_IceConnectionNumber=yes
575d8944 7821else
25e9e4f0 7822 ac_cv_lib_ICE_IceConnectionNumber=no
575d8944 7823fi
25e9e4f0
AJ
7824rm -f core conftest.err conftest.$ac_objext \
7825 conftest$ac_exeext conftest.$ac_ext
40664c0c 7826LIBS=$ac_check_lib_save_LIBS
a3097628 7827fi
25e9e4f0 7828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
40664c0c 7829$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25e9e4f0 7830if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
40664c0c 7831 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
2d6d4e96 7832fi
f3719a88 7833
40664c0c 7834 LDFLAGS=$ac_save_LDFLAGS
f3719a88 7835
a3097628 7836fi
2d6d4e96 7837
2d6d4e96 7838
a3097628 7839if test "$have_x" = "yes"
2d6d4e96 7840then
fd03c506 7841 XLIB="-lX11"
a3097628
AJ
7842 ac_save_CPPFLAGS="$CPPFLAGS"
7843 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
2d6d4e96 7844
25e9e4f0 7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
abf5048b 7846$as_echo_n "checking for -lX11... " >&6; }
25e9e4f0 7847if test "${ac_cv_lib_soname_X11+set}" = set; then :
abf5048b 7848 $as_echo_n "(cached) " >&6
a851854a
AJ
7849else
7850 ac_check_soname_save_LIBS=$LIBS
7851LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
25e9e4f0 7852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a851854a
AJ
7853/* end confdefs.h. */
7854
7855/* Override any GCC internal prototype to avoid an error.
7856 Use char because int might match the return type of a GCC
7857 builtin and then its argument prototype would still apply. */
7858#ifdef __cplusplus
7859extern "C"
7860#endif
7861char XCreateWindow ();
7862int
7863main ()
7864{
7865return XCreateWindow ();
7866 ;
7867 return 0;
7868}
7869_ACEOF
25e9e4f0 7870if ac_fn_c_try_link "$LINENO"; then :
a851854a 7871 case "$LIBEXT" in
2b05c840 7872 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
a851854a
AJ
7873 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'` ;;
7874 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7875 esac
a851854a 7876fi
25e9e4f0
AJ
7877rm -f core conftest.err conftest.$ac_objext \
7878 conftest$ac_exeext conftest.$ac_ext
a851854a
AJ
7879 LIBS=$ac_check_soname_save_LIBS
7880fi
25e9e4f0
AJ
7881if test "x$ac_cv_lib_soname_X11" = "x"; then :
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 7883$as_echo "not found" >&6; }
a851854a
AJ
7884
7885else
25e9e4f0 7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
abf5048b 7887$as_echo "$ac_cv_lib_soname_X11" >&6; }
a851854a
AJ
7888
7889cat >>confdefs.h <<_ACEOF
7890#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7891_ACEOF
7892
7893
7894fi
25e9e4f0 7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
abf5048b 7896$as_echo_n "checking for -lXext... " >&6; }
25e9e4f0 7897if test "${ac_cv_lib_soname_Xext+set}" = set; then :
abf5048b 7898 $as_echo_n "(cached) " >&6
a851854a
AJ
7899else
7900 ac_check_soname_save_LIBS=$LIBS
7901LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
25e9e4f0 7902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a851854a
AJ
7903/* end confdefs.h. */
7904
7905/* Override any GCC internal prototype to avoid an error.
7906 Use char because int might match the return type of a GCC
7907 builtin and then its argument prototype would still apply. */
7908#ifdef __cplusplus
7909extern "C"
7910#endif
7911char XextCreateExtension ();
7912int
7913main ()
7914{
7915return XextCreateExtension ();
7916 ;
7917 return 0;
7918}
7919_ACEOF
25e9e4f0 7920if ac_fn_c_try_link "$LINENO"; then :
a851854a 7921 case "$LIBEXT" in
2b05c840 7922 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
a851854a
AJ
7923 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'` ;;
7924 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7925 esac
a851854a 7926fi
25e9e4f0
AJ
7927rm -f core conftest.err conftest.$ac_objext \
7928 conftest$ac_exeext conftest.$ac_ext
a851854a
AJ
7929 LIBS=$ac_check_soname_save_LIBS
7930fi
25e9e4f0
AJ
7931if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 7933$as_echo "not found" >&6; }
a851854a
AJ
7934
7935else
25e9e4f0 7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
abf5048b 7937$as_echo "$ac_cv_lib_soname_Xext" >&6; }
a851854a
AJ
7938
7939cat >>confdefs.h <<_ACEOF
7940#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
7941_ACEOF
7942
fd03c506 7943 XLIB="-lXext $XLIB"
a851854a
AJ
7944fi
7945
25e9e4f0 7946 for ac_header in X11/Xlib.h \
a3097628
AJ
7947 X11/XKBlib.h \
7948 X11/Xutil.h \
7949 X11/Xcursor/Xcursor.h \
7950 X11/extensions/shape.h \
7951 X11/extensions/XInput.h \
7952 X11/extensions/XShm.h \
42584658 7953 X11/extensions/Xcomposite.h \
a3097628
AJ
7954 X11/extensions/Xinerama.h \
7955 X11/extensions/Xrandr.h \
7956 X11/extensions/Xrender.h \
7b285a4e
AH
7957 X11/extensions/xf86vmode.h \
7958 X11/extensions/xf86vmproto.h
25e9e4f0
AJ
7959do :
7960 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7961ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
a3097628
AJ
7962# include <X11/Xlib.h>
7963#endif
7964#ifdef HAVE_X11_XUTIL_H
7965# include <X11/Xutil.h>
7966#endif
25e9e4f0
AJ
7967"
7968eval as_val=\$$as_ac_Header
7969 if test "x$as_val" = x""yes; then :
f3719a88 7970 cat >>confdefs.h <<_ACEOF
abf5048b 7971#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
f3719a88 7972_ACEOF
a3097628
AJ
7973
7974fi
7975
7976done
7977
7978
7979 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7980 then
25e9e4f0 7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
abf5048b 7982$as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
25e9e4f0 7983if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then :
abf5048b 7984 $as_echo_n "(cached) " >&6
f3719a88
MM
7985else
7986 ac_check_lib_save_LIBS=$LIBS
fd03c506 7987LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
25e9e4f0 7988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f3719a88
MM
7989/* end confdefs.h. */
7990
fc6ffb29
AJ
7991/* Override any GCC internal prototype to avoid an error.
7992 Use char because int might match the return type of a GCC
7993 builtin and then its argument prototype would still apply. */
f3719a88
MM
7994#ifdef __cplusplus
7995extern "C"
7996#endif
a3097628 7997char XkbQueryExtension ();
f3719a88
MM
7998int
7999main ()
8000{
a3097628 8001return XkbQueryExtension ();
f3719a88
MM
8002 ;
8003 return 0;
8004}
8005_ACEOF
25e9e4f0 8006if ac_fn_c_try_link "$LINENO"; then :
a3097628 8007 ac_cv_lib_X11_XkbQueryExtension=yes
f3719a88 8008else
25e9e4f0 8009 ac_cv_lib_X11_XkbQueryExtension=no
f3719a88 8010fi
25e9e4f0
AJ
8011rm -f core conftest.err conftest.$ac_objext \
8012 conftest$ac_exeext conftest.$ac_ext
f3719a88
MM
8013LIBS=$ac_check_lib_save_LIBS
8014fi
25e9e4f0 8015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
abf5048b 8016$as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
25e9e4f0 8017if test "x$ac_cv_lib_X11_XkbQueryExtension" = x""yes; then :
f3719a88 8018
25e9e4f0 8019$as_echo "#define HAVE_XKB 1" >>confdefs.h
f3719a88 8020
19a988a2
AJ
8021fi
8022
8023 fi
8024
8025 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8026 then
25e9e4f0 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
abf5048b 8028$as_echo_n "checking for -lXcursor... " >&6; }
25e9e4f0 8029if test "${ac_cv_lib_soname_Xcursor+set}" = set; then :
abf5048b 8030 $as_echo_n "(cached) " >&6
19a988a2
AJ
8031else
8032 ac_check_soname_save_LIBS=$LIBS
fd03c506 8033LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
25e9e4f0 8034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19a988a2
AJ
8035/* end confdefs.h. */
8036
8037/* Override any GCC internal prototype to avoid an error.
8038 Use char because int might match the return type of a GCC
8039 builtin and then its argument prototype would still apply. */
8040#ifdef __cplusplus
8041extern "C"
8042#endif
8043char XcursorImageLoadCursor ();
8044int
8045main ()
8046{
8047return XcursorImageLoadCursor ();
8048 ;
8049 return 0;
8050}
8051_ACEOF
25e9e4f0 8052if ac_fn_c_try_link "$LINENO"; then :
19a988a2 8053 case "$LIBEXT" in
2b05c840 8054 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
19a988a2
AJ
8055 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'` ;;
8056 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8057 esac
19a988a2 8058fi
25e9e4f0
AJ
8059rm -f core conftest.err conftest.$ac_objext \
8060 conftest$ac_exeext conftest.$ac_ext
19a988a2
AJ
8061 LIBS=$ac_check_soname_save_LIBS
8062fi
25e9e4f0
AJ
8063if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 8065$as_echo "not found" >&6; }
19a988a2
AJ
8066
8067else
25e9e4f0 8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
abf5048b 8069$as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
19a988a2
AJ
8070
8071cat >>confdefs.h <<_ACEOF
8072#define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8073_ACEOF
8074
8075
d68d4335 8076fi
d68d4335 8077 fi
25e9e4f0 8078 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
a41f0f1b 8079 case "x$with_xcursor" in
0dc503bc 8080 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
a41f0f1b 8081 xno) ;;
25e9e4f0
AJ
8082 *) as_fn_error "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8083This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
a41f0f1b
AJ
8084esac
8085fi
8086
d68d4335
AJ
8087 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8088 then
25e9e4f0 8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
abf5048b 8090$as_echo_n "checking for -lXi... " >&6; }
25e9e4f0 8091if test "${ac_cv_lib_soname_Xi+set}" = set; then :
abf5048b 8092 $as_echo_n "(cached) " >&6
d68d4335
AJ
8093else
8094 ac_check_soname_save_LIBS=$LIBS
fd03c506 8095LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
25e9e4f0 8096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d68d4335
AJ
8097/* end confdefs.h. */
8098
8099/* Override any GCC internal prototype to avoid an error.
8100 Use char because int might match the return type of a GCC
8101 builtin and then its argument prototype would still apply. */
8102#ifdef __cplusplus
8103extern "C"
8104#endif
8105char XOpenDevice ();
8106int
8107main ()
8108{
8109return XOpenDevice ();
8110 ;
8111 return 0;
8112}
8113_ACEOF
25e9e4f0 8114if ac_fn_c_try_link "$LINENO"; then :
d68d4335 8115 case "$LIBEXT" in
2b05c840 8116 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
d68d4335
AJ
8117 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'` ;;
8118 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8119 esac
d68d4335 8120fi
25e9e4f0
AJ
8121rm -f core conftest.err conftest.$ac_objext \
8122 conftest$ac_exeext conftest.$ac_ext
d68d4335
AJ
8123 LIBS=$ac_check_soname_save_LIBS
8124fi
25e9e4f0
AJ
8125if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 8127$as_echo "not found" >&6; }
d68d4335
AJ
8128
8129else
25e9e4f0 8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
abf5048b 8131$as_echo "$ac_cv_lib_soname_Xi" >&6; }
d68d4335
AJ
8132
8133cat >>confdefs.h <<_ACEOF
8134#define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8135_ACEOF
8136
8137
90c75bdd 8138fi
a3097628 8139 fi
25e9e4f0 8140 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
a41f0f1b 8141 case "x$with_xinput" in
0dc503bc 8142 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
a41f0f1b 8143 xno) ;;
25e9e4f0
AJ
8144 *) as_fn_error "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8145This is an error since --with-xinput was requested." "$LINENO" 5 ;;
a41f0f1b
AJ
8146esac
8147fi
8148
a3097628
AJ
8149 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8150 then
25e9e4f0 8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
abf5048b 8152$as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
25e9e4f0 8153if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
abf5048b 8154 $as_echo_n "(cached) " >&6
daa2886c 8155else
73482144 8156 ac_check_lib_save_LIBS=$LIBS
fd03c506 8157LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
25e9e4f0 8158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 8159/* end confdefs.h. */
73482144 8160
fc6ffb29
AJ
8161/* Override any GCC internal prototype to avoid an error.
8162 Use char because int might match the return type of a GCC
8163 builtin and then its argument prototype would still apply. */
73482144
AJ
8164#ifdef __cplusplus
8165extern "C"
8166#endif
a3097628 8167char XShmQueryExtension ();
73482144
AJ
8168int
8169main ()
8170{
a3097628 8171return XShmQueryExtension ();
73482144
AJ
8172 ;
8173 return 0;
8174}
daa2886c 8175_ACEOF
25e9e4f0 8176if ac_fn_c_try_link "$LINENO"; then :
a3097628 8177 ac_cv_lib_Xext_XShmQueryExtension=yes
daa2886c 8178else
25e9e4f0 8179 ac_cv_lib_Xext_XShmQueryExtension=no
24110288 8180fi
25e9e4f0
AJ
8181rm -f core conftest.err conftest.$ac_objext \
8182 conftest$ac_exeext conftest.$ac_ext
73482144
AJ
8183LIBS=$ac_check_lib_save_LIBS
8184fi
25e9e4f0 8185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
abf5048b 8186$as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
25e9e4f0 8187if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
24110288 8188
25e9e4f0 8189$as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
73482144 8190
6a530aba
LZ
8191fi
8192
a3097628 8193 fi
25e9e4f0 8194 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
a41f0f1b 8195 case "x$with_xshm" in
0dc503bc 8196 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
a41f0f1b 8197 xno) ;;
25e9e4f0
AJ
8198 *) as_fn_error "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8199This is an error since --with-xshm was requested." "$LINENO" 5 ;;
a41f0f1b 8200esac
f9dec94f
AJ
8201fi
8202
a3097628
AJ
8203 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8204 then
25e9e4f0 8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
abf5048b 8206$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
25e9e4f0 8207if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
abf5048b 8208 $as_echo_n "(cached) " >&6
6a530aba
LZ
8209else
8210 ac_check_lib_save_LIBS=$LIBS
fd03c506 8211LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
25e9e4f0 8212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6a530aba
LZ
8213/* end confdefs.h. */
8214
8215/* Override any GCC internal prototype to avoid an error.
8216 Use char because int might match the return type of a GCC
8217 builtin and then its argument prototype would still apply. */
8218#ifdef __cplusplus
8219extern "C"
8220#endif
a3097628 8221char XShapeQueryExtension ();
6a530aba
LZ
8222int
8223main ()
8224{
a3097628 8225return XShapeQueryExtension ();
6a530aba
LZ
8226 ;
8227 return 0;
8228}
8229_ACEOF
25e9e4f0 8230if ac_fn_c_try_link "$LINENO"; then :
a3097628 8231 ac_cv_lib_Xext_XShapeQueryExtension=yes
6a530aba 8232else
25e9e4f0 8233 ac_cv_lib_Xext_XShapeQueryExtension=no
6a530aba 8234fi
25e9e4f0
AJ
8235rm -f core conftest.err conftest.$ac_objext \
8236 conftest$ac_exeext conftest.$ac_ext
6a530aba
LZ
8237LIBS=$ac_check_lib_save_LIBS
8238fi
25e9e4f0 8239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
abf5048b 8240$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
25e9e4f0 8241if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
fc6ffb29 8242
25e9e4f0 8243$as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
a3097628
AJ
8244
8245fi
8246
8247 fi
25e9e4f0 8248 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
a41f0f1b 8249 case "x$with_xshape" in
0dc503bc 8250 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
a41f0f1b 8251 xno) ;;
25e9e4f0
AJ
8252 *) as_fn_error "XShape ${notice_platform}development files not found, XShape won't be supported.
8253This is an error since --with-xshape was requested." "$LINENO" 5 ;;
a41f0f1b 8254esac
f9dec94f
AJ
8255fi
8256
7b285a4e 8257 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
a3097628 8258 then
25e9e4f0 8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
abf5048b 8260$as_echo_n "checking for -lXxf86vm... " >&6; }
25e9e4f0 8261if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then :
abf5048b 8262 $as_echo_n "(cached) " >&6
2d6d4e96 8263else
a49beb4c 8264 ac_check_soname_save_LIBS=$LIBS
fd03c506 8265LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
25e9e4f0 8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2d6d4e96
HL
8267/* end confdefs.h. */
8268
fc6ffb29
AJ
8269/* Override any GCC internal prototype to avoid an error.
8270 Use char because int might match the return type of a GCC
8271 builtin and then its argument prototype would still apply. */
2d6d4e96
HL
8272#ifdef __cplusplus
8273extern "C"
8274#endif
a3097628 8275char XF86VidModeQueryExtension ();
2d6d4e96
HL
8276int
8277main ()
8278{
a3097628 8279return XF86VidModeQueryExtension ();
2d6d4e96
HL
8280 ;
8281 return 0;
8282}
8283_ACEOF
25e9e4f0 8284if ac_fn_c_try_link "$LINENO"; then :
a49beb4c 8285 case "$LIBEXT" in
2b05c840 8286 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
a49beb4c
FG
8287 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'` ;;
8288 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8289 esac
2d6d4e96 8290fi
25e9e4f0
AJ
8291rm -f core conftest.err conftest.$ac_objext \
8292 conftest$ac_exeext conftest.$ac_ext
a49beb4c 8293 LIBS=$ac_check_soname_save_LIBS
2d6d4e96 8294fi
25e9e4f0
AJ
8295if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 8297$as_echo "not found" >&6; }
2d6d4e96 8298
a49beb4c 8299else
25e9e4f0 8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
abf5048b 8301$as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
a49beb4c
FG
8302
8303cat >>confdefs.h <<_ACEOF
8304#define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
2d6d4e96
HL
8305_ACEOF
8306
2d6d4e96 8307
00068989 8308fi
a3097628 8309 fi
25e9e4f0 8310 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
a49beb4c 8311 case "x$with_xxf86vm" in
0dc503bc 8312 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
a41f0f1b 8313 xno) ;;
25e9e4f0
AJ
8314 *) as_fn_error "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8315This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
a41f0f1b 8316esac
f9dec94f
AJ
8317fi
8318
a851854a 8319 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 8320 then
25e9e4f0 8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
abf5048b 8322$as_echo_n "checking for -lXrender... " >&6; }
25e9e4f0 8323if test "${ac_cv_lib_soname_Xrender+set}" = set; then :
abf5048b 8324 $as_echo_n "(cached) " >&6
629639ee
AJ
8325else
8326 ac_check_soname_save_LIBS=$LIBS
fd03c506 8327LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
25e9e4f0 8328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
00068989 8329/* end confdefs.h. */
629639ee
AJ
8330
8331/* Override any GCC internal prototype to avoid an error.
8332 Use char because int might match the return type of a GCC
8333 builtin and then its argument prototype would still apply. */
8334#ifdef __cplusplus
8335extern "C"
8336#endif
8337char XRenderQueryExtension ();
a3097628
AJ
8338int
8339main ()
8340{
629639ee 8341return XRenderQueryExtension ();
a3097628
AJ
8342 ;
8343 return 0;
8344}
00068989 8345_ACEOF
25e9e4f0 8346if ac_fn_c_try_link "$LINENO"; then :
629639ee 8347 case "$LIBEXT" in
2b05c840 8348 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
629639ee
AJ
8349 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'` ;;
8350 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8351 esac
629639ee 8352fi
25e9e4f0
AJ
8353rm -f core conftest.err conftest.$ac_objext \
8354 conftest$ac_exeext conftest.$ac_ext
629639ee
AJ
8355 LIBS=$ac_check_soname_save_LIBS
8356fi
25e9e4f0
AJ
8357if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 8359$as_echo "not found" >&6; }
629639ee
AJ
8360
8361else
25e9e4f0 8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
abf5048b 8363$as_echo "$ac_cv_lib_soname_Xrender" >&6; }
629639ee
AJ
8364
8365cat >>confdefs.h <<_ACEOF
8366#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8367_ACEOF
8368
25e9e4f0 8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
abf5048b 8370$as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
25e9e4f0 8371if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then :
abf5048b 8372 $as_echo_n "(cached) " >&6
af928ecb 8373else
629639ee 8374 ac_check_lib_save_LIBS=$LIBS
fd03c506 8375LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
25e9e4f0 8376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
af928ecb 8377/* end confdefs.h. */
a3097628 8378
af928ecb
AJ
8379/* Override any GCC internal prototype to avoid an error.
8380 Use char because int might match the return type of a GCC
8381 builtin and then its argument prototype would still apply. */
8382#ifdef __cplusplus
8383extern "C"
8384#endif
629639ee 8385char XRenderSetPictureTransform ();
af928ecb
AJ
8386int
8387main ()
8388{
629639ee 8389return XRenderSetPictureTransform ();
af928ecb
AJ
8390 ;
8391 return 0;
8392}
8393_ACEOF
25e9e4f0 8394if ac_fn_c_try_link "$LINENO"; then :
629639ee 8395 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
af928ecb 8396else
25e9e4f0 8397 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
af928ecb 8398fi
25e9e4f0
AJ
8399rm -f core conftest.err conftest.$ac_objext \
8400 conftest$ac_exeext conftest.$ac_ext
629639ee 8401LIBS=$ac_check_lib_save_LIBS
af928ecb 8402fi
25e9e4f0 8403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
abf5048b 8404$as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
25e9e4f0 8405if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = x""yes; then :
af928ecb 8406
25e9e4f0 8407$as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
a3097628 8408
af928ecb
AJ
8409fi
8410
00068989 8411fi
fc6ffb29 8412
a3097628 8413 fi
25e9e4f0 8414 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
a41f0f1b 8415 case "x$with_xrender" in
0dc503bc 8416 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
a41f0f1b 8417 xno) ;;
25e9e4f0
AJ
8418 *) as_fn_error "libxrender ${notice_platform}development files not found, XRender won't be supported.
8419This is an error since --with-xrender was requested." "$LINENO" 5 ;;
a41f0f1b 8420esac
f9dec94f
AJ
8421fi
8422
629639ee 8423 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
a3097628 8424 then
25e9e4f0 8425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
629639ee
AJ
8426/* end confdefs.h. */
8427#include <X11/Xlib.h>
8428#include <X11/extensions/Xrandr.h>
8429int
8430main ()
8431{
8432static typeof(XRRSetScreenConfigAndRate) * func;
8433 ;
8434 return 0;
8435}
8436_ACEOF
25e9e4f0
AJ
8437if ac_fn_c_try_compile "$LINENO"; then :
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
abf5048b 8439$as_echo_n "checking for -lXrandr... " >&6; }
25e9e4f0 8440if test "${ac_cv_lib_soname_Xrandr+set}" = set; then :
abf5048b 8441 $as_echo_n "(cached) " >&6
a3097628 8442else
629639ee 8443 ac_check_soname_save_LIBS=$LIBS
fd03c506 8444LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
25e9e4f0 8445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
00068989 8446/* end confdefs.h. */
a3097628
AJ
8447
8448/* Override any GCC internal prototype to avoid an error.
8449 Use char because int might match the return type of a GCC
8450 builtin and then its argument prototype would still apply. */
8451#ifdef __cplusplus
8452extern "C"
8453#endif
629639ee 8454char XRRQueryExtension ();
a3097628
AJ
8455int
8456main ()
8457{
629639ee 8458return XRRQueryExtension ();
a3097628
AJ
8459 ;
8460 return 0;
8461}
00068989 8462_ACEOF
25e9e4f0 8463if ac_fn_c_try_link "$LINENO"; then :
629639ee 8464 case "$LIBEXT" in
2b05c840 8465 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
629639ee
AJ
8466 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'` ;;
8467 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8468 esac
00068989 8469fi
25e9e4f0
AJ
8470rm -f core conftest.err conftest.$ac_objext \
8471 conftest$ac_exeext conftest.$ac_ext
629639ee 8472 LIBS=$ac_check_soname_save_LIBS
00068989 8473fi
25e9e4f0
AJ
8474if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 8476$as_echo "not found" >&6; }
00068989 8477
629639ee 8478else
25e9e4f0 8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
abf5048b 8480$as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
629639ee
AJ
8481
8482cat >>confdefs.h <<_ACEOF
8483#define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
00068989 8484_ACEOF
b18b9f37 8485
629639ee 8486
b18b9f37 8487fi
629639ee 8488fi
629639ee 8489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a3097628 8490 fi
25e9e4f0 8491 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
a41f0f1b 8492 case "x$with_xrandr" in
0dc503bc 8493 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
a41f0f1b 8494 xno) ;;
25e9e4f0
AJ
8495 *) as_fn_error "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8496This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
a41f0f1b 8497esac
f9dec94f
AJ
8498fi
8499
a3097628
AJ
8500 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8501 then
25e9e4f0 8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
00068989 8503/* end confdefs.h. */
a3097628
AJ
8504#include <X11/Xlib.h>
8505#include <X11/extensions/Xinerama.h>
00068989
AJ
8506int
8507main ()
8508{
a3097628 8509static typeof(XineramaQueryScreens) * func;
00068989
AJ
8510 ;
8511 return 0;
8512}
8513_ACEOF
25e9e4f0
AJ
8514if ac_fn_c_try_compile "$LINENO"; then :
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
abf5048b 8516$as_echo_n "checking for -lXinerama... " >&6; }
25e9e4f0 8517if test "${ac_cv_lib_soname_Xinerama+set}" = set; then :
abf5048b 8518 $as_echo_n "(cached) " >&6
35d2fd7a
AJ
8519else
8520 ac_check_soname_save_LIBS=$LIBS
fd03c506 8521LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
25e9e4f0 8522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35d2fd7a 8523/* end confdefs.h. */
a3097628 8524
35d2fd7a
AJ
8525/* Override any GCC internal prototype to avoid an error.
8526 Use char because int might match the return type of a GCC
8527 builtin and then its argument prototype would still apply. */
8528#ifdef __cplusplus
8529extern "C"
8530#endif
8531char XineramaQueryScreens ();
8532int
8533main ()
8534{
8535return XineramaQueryScreens ();
8536 ;
8537 return 0;
8538}
8539_ACEOF
25e9e4f0 8540if ac_fn_c_try_link "$LINENO"; then :
35d2fd7a 8541 case "$LIBEXT" in
2b05c840 8542 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
35d2fd7a
AJ
8543 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'` ;;
8544 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8545 esac
35d2fd7a 8546fi
25e9e4f0
AJ
8547rm -f core conftest.err conftest.$ac_objext \
8548 conftest$ac_exeext conftest.$ac_ext
35d2fd7a
AJ
8549 LIBS=$ac_check_soname_save_LIBS
8550fi
25e9e4f0
AJ
8551if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 8553$as_echo "not found" >&6; }
35d2fd7a
AJ
8554
8555else
25e9e4f0 8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
abf5048b 8557$as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
35d2fd7a
AJ
8558
8559cat >>confdefs.h <<_ACEOF
8560#define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
a3097628
AJ
8561_ACEOF
8562
35d2fd7a
AJ
8563
8564fi
a3097628 8565fi
a3097628
AJ
8566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8567 fi
25e9e4f0 8568 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
a41f0f1b 8569 case "x$with_xinerama" in
0dc503bc 8570 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
a41f0f1b 8571 xno) ;;
25e9e4f0
AJ
8572 *) as_fn_error "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8573This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
a41f0f1b 8574esac
f9dec94f
AJ
8575fi
8576
42584658
CR
8577 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8578 then
25e9e4f0 8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
abf5048b 8580$as_echo_n "checking for -lXcomposite... " >&6; }
25e9e4f0 8581if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then :
abf5048b 8582 $as_echo_n "(cached) " >&6
42584658
CR
8583else
8584 ac_check_soname_save_LIBS=$LIBS
fd03c506 8585LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
25e9e4f0 8586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42584658
CR
8587/* end confdefs.h. */
8588
8589/* Override any GCC internal prototype to avoid an error.
8590 Use char because int might match the return type of a GCC
8591 builtin and then its argument prototype would still apply. */
8592#ifdef __cplusplus
8593extern "C"
8594#endif
8595char XCompositeRedirectWindow ();
8596int
8597main ()
8598{
8599return XCompositeRedirectWindow ();
8600 ;
8601 return 0;
8602}
8603_ACEOF
25e9e4f0 8604if ac_fn_c_try_link "$LINENO"; then :
42584658 8605 case "$LIBEXT" in
2b05c840 8606 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
42584658
CR
8607 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'` ;;
8608 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8609 esac
42584658 8610fi
25e9e4f0
AJ
8611rm -f core conftest.err conftest.$ac_objext \
8612 conftest$ac_exeext conftest.$ac_ext
42584658
CR
8613 LIBS=$ac_check_soname_save_LIBS
8614fi
25e9e4f0
AJ
8615if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 8617$as_echo "not found" >&6; }
42584658
CR
8618
8619else
25e9e4f0 8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
abf5048b 8621$as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
42584658
CR
8622
8623cat >>confdefs.h <<_ACEOF
8624#define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8625_ACEOF
8626
8627
8628fi
42584658 8629 fi
25e9e4f0 8630 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
a41f0f1b 8631 case "x$with_xcomposite" in
0dc503bc 8632 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
a41f0f1b 8633 xno) ;;
25e9e4f0
AJ
8634 *) as_fn_error "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8635This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
a41f0f1b 8636esac
42584658
CR
8637fi
8638
25e9e4f0 8639 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
75e40229
KK
8640#include <X11/Xlib.h>
8641#endif
25e9e4f0
AJ
8642"
8643if test "x$ac_cv_member_XICCallback_callback" = x""yes; then :
75e40229
KK
8644
8645cat >>confdefs.h <<_ACEOF
8646#define HAVE_XICCALLBACK_CALLBACK 1
8647_ACEOF
8648
8649
8650fi
8651
8652
a3097628 8653
a41f0f1b
AJ
8654 opengl_msg=""
8655 if test "x$with_opengl" != "xno"
a3097628 8656 then
25e9e4f0
AJ
8657 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8658do :
8659 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8660ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
a3097628 8661# include <GL/glx.h>
b18b9f37 8662#endif
25e9e4f0
AJ
8663"
8664eval as_val=\$$as_ac_Header
8665 if test "x$as_val" = x""yes; then :
a3097628 8666 cat >>confdefs.h <<_ACEOF
abf5048b 8667#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
00068989
AJ
8668_ACEOF
8669
2d6d4e96
HL
8670fi
8671
a3097628 8672done
2d6d4e96 8673
a3097628
AJ
8674 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8675 then
25e9e4f0 8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
abf5048b 8677$as_echo_n "checking for up-to-date OpenGL version... " >&6; }
25e9e4f0 8678if test "${wine_cv_opengl_header_version_OK+set}" = set; then :
abf5048b 8679 $as_echo_n "(cached) " >&6
2d6d4e96 8680else
25e9e4f0 8681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2d6d4e96 8682/* end confdefs.h. */
a3097628 8683#include <GL/gl.h>
2d6d4e96
HL
8684int
8685main ()
8686{
a3097628 8687GLenum test = GL_UNSIGNED_SHORT_5_6_5;
2d6d4e96
HL
8688 ;
8689 return 0;
8690}
8691_ACEOF
25e9e4f0 8692if ac_fn_c_try_compile "$LINENO"; then :
a3097628 8693 wine_cv_opengl_header_version_OK="yes"
2d6d4e96 8694else
25e9e4f0 8695 wine_cv_opengl_header_version_OK="no"
2d6d4e96 8696fi
a3097628 8697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2d6d4e96 8698fi
25e9e4f0 8699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
abf5048b 8700$as_echo "$wine_cv_opengl_header_version_OK" >&6; }
2d6d4e96 8701
a3097628
AJ
8702 if test "$wine_cv_opengl_header_version_OK" = "yes"
8703 then
25e9e4f0 8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
abf5048b 8705$as_echo_n "checking for -lGL... " >&6; }
25e9e4f0 8706if test "${ac_cv_lib_soname_GL+set}" = set; then :
abf5048b 8707 $as_echo_n "(cached) " >&6
2d6d4e96 8708else
31353e1e 8709 ac_check_soname_save_LIBS=$LIBS
fd03c506 8710LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
25e9e4f0 8711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2d6d4e96
HL
8712/* end confdefs.h. */
8713
fc6ffb29
AJ
8714/* Override any GCC internal prototype to avoid an error.
8715 Use char because int might match the return type of a GCC
8716 builtin and then its argument prototype would still apply. */
2d6d4e96
HL
8717#ifdef __cplusplus
8718extern "C"
8719#endif
a3097628 8720char glXCreateContext ();
2d6d4e96
HL
8721int
8722main ()
8723{
a3097628 8724return glXCreateContext ();
2d6d4e96
HL
8725 ;
8726 return 0;
8727}
8728_ACEOF
25e9e4f0 8729if ac_fn_c_try_link "$LINENO"; then :
31353e1e 8730 case "$LIBEXT" in
2b05c840 8731 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
31353e1e
AJ
8732 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'` ;;
8733 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8734 esac
d701ee22 8735fi
25e9e4f0
AJ
8736rm -f core conftest.err conftest.$ac_objext \
8737 conftest$ac_exeext conftest.$ac_ext
d701ee22
FG
8738 LIBS=$ac_check_soname_save_LIBS
8739fi
25e9e4f0
AJ
8740if test "x$ac_cv_lib_soname_GL" = "x"; then :
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 8742$as_echo "not found" >&6; }
25e9e4f0 8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
abf5048b 8744$as_echo_n "checking for -lGL... " >&6; }
25e9e4f0 8745if test "${ac_cv_lib_soname_GL+set}" = set; then :
abf5048b 8746 $as_echo_n "(cached) " >&6
d701ee22
FG
8747else
8748 ac_check_soname_save_LIBS=$LIBS
fd03c506 8749LIBS="-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 8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d701ee22
FG
8751/* end confdefs.h. */
8752
8753/* Override any GCC internal prototype to avoid an error.
8754 Use char because int might match the return type of a GCC
8755 builtin and then its argument prototype would still apply. */
8756#ifdef __cplusplus
8757extern "C"
8758#endif
8759char glXCreateContext ();
8760int
8761main ()
8762{
8763return glXCreateContext ();
8764 ;
8765 return 0;
8766}
8767_ACEOF
25e9e4f0 8768if ac_fn_c_try_link "$LINENO"; then :
d701ee22 8769 case "$LIBEXT" in
2b05c840 8770 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
d701ee22
FG
8771 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'` ;;
8772 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8773 esac
2d6d4e96 8774fi
25e9e4f0
AJ
8775rm -f core conftest.err conftest.$ac_objext \
8776 conftest$ac_exeext conftest.$ac_ext
31353e1e 8777 LIBS=$ac_check_soname_save_LIBS
2d6d4e96 8778fi
25e9e4f0
AJ
8779if test "x$ac_cv_lib_soname_GL" = "x"; then :
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 8781$as_echo "not found" >&6; }
f9dec94f 8782 if test -f /usr/X11R6/lib/libGL.a
d701ee22 8783 then
a41f0f1b 8784 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
f9dec94f 8785This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
d701ee22 8786 else
a41f0f1b 8787 opengl_msg="No OpenGL library found on this system."
d701ee22
FG
8788 fi
8789else
25e9e4f0 8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
abf5048b 8791$as_echo "$ac_cv_lib_soname_GL" >&6; }
d701ee22
FG
8792
8793cat >>confdefs.h <<_ACEOF
8794#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8795_ACEOF
8796
8797 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 8798
25e9e4f0 8799$as_echo "#define HAVE_OPENGL 1" >>confdefs.h
d701ee22
FG
8800
8801fi
31353e1e 8802else
25e9e4f0 8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
abf5048b 8804$as_echo "$ac_cv_lib_soname_GL" >&6; }
31353e1e
AJ
8805
8806cat >>confdefs.h <<_ACEOF
8807#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8808_ACEOF
8809
8810 OPENGL_LIBS="-lGL"
a3097628 8811
25e9e4f0 8812$as_echo "#define HAVE_OPENGL 1" >>confdefs.h
a3097628 8813
8f1d42eb 8814fi
ad798735
AJ
8815 if test "$ac_cv_header_GL_glu_h" = "yes"
8816 then
25e9e4f0 8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
abf5048b 8818$as_echo_n "checking for -lGLU... " >&6; }
25e9e4f0 8819if test "${ac_cv_lib_soname_GLU+set}" = set; then :
abf5048b 8820 $as_echo_n "(cached) " >&6
f5f37a85 8821else
ad798735 8822 ac_check_soname_save_LIBS=$LIBS
fd03c506 8823LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
25e9e4f0 8824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f5f37a85 8825/* end confdefs.h. */
f5f37a85
AJ
8826
8827/* Override any GCC internal prototype to avoid an error.
8828 Use char because int might match the return type of a GCC
8829 builtin and then its argument prototype would still apply. */
8830#ifdef __cplusplus
8831extern "C"
8832#endif
a3097628 8833char gluLookAt ();
f5f37a85
AJ
8834int
8835main ()
8836{
a3097628 8837return gluLookAt ();
f5f37a85
AJ
8838 ;
8839 return 0;
8840}
8841_ACEOF
25e9e4f0 8842if ac_fn_c_try_link "$LINENO"; then :
ad798735 8843 case "$LIBEXT" in
2b05c840 8844 dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
ad798735
AJ
8845 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'` ;;
8846 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8847 esac
73482144 8848fi
25e9e4f0
AJ
8849rm -f core conftest.err conftest.$ac_objext \
8850 conftest$ac_exeext conftest.$ac_ext
ad798735 8851 LIBS=$ac_check_soname_save_LIBS
73482144 8852fi
25e9e4f0
AJ
8853if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 8855$as_echo "not found" >&6; }
a3097628 8856
ad798735 8857else
25e9e4f0 8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
abf5048b 8859$as_echo "$ac_cv_lib_soname_GLU" >&6; }
ad798735
AJ
8860
8861cat >>confdefs.h <<_ACEOF
8862#define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8863_ACEOF
8864
dbb535e4 8865
ad798735 8866fi
ad798735 8867 fi
25e9e4f0 8868 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
ad798735 8869 case "x$with_glu" in
0dc503bc 8870 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
ad798735 8871 xno) ;;
25e9e4f0
AJ
8872 *) as_fn_error "libGLU ${notice_platform}development files not found, GLU won't be supported.
8873This is an error since --with-glu was requested." "$LINENO" 5 ;;
ad798735 8874esac
73482144 8875fi
f9dec94f 8876 else
a41f0f1b 8877 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
a3097628
AJ
8878 fi
8879 else
a41f0f1b 8880 opengl_msg="OpenGL development headers not found."
a3097628 8881 fi
8e9504da
AJ
8882 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8883 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8884 else
8885 enable_opengl32=${enable_opengl32:-no}
8886 enable_glu32=${enable_glu32:-no}
a3097628 8887 fi
25e9e4f0 8888 if test -n "$opengl_msg"; then :
a41f0f1b 8889 case "x$with_opengl" in
0dc503bc 8890 x) as_fn_append wine_warnings "|$opengl_msg
a41f0f1b
AJ
8891OpenGL and Direct3D won't be supported." ;;
8892 xno) ;;
25e9e4f0 8893 *) as_fn_error "$opengl_msg
a41f0f1b 8894OpenGL and Direct3D won't be supported.
25e9e4f0 8895This is an error since --with-opengl was requested." "$LINENO" 5 ;;
a41f0f1b
AJ
8896esac
8897fi
8898
a3097628 8899 NASLIBS=""
fc6ffb29 8900
25e9e4f0
AJ
8901 for ac_header in audio/audiolib.h
8902do :
8903 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
8904if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then :
a3097628 8905 cat >>confdefs.h <<_ACEOF
25e9e4f0 8906#define HAVE_AUDIO_AUDIOLIB_H 1
40e7ef3a 8907_ACEOF
25e9e4f0
AJ
8908 for ac_header in audio/soundlib.h
8909do :
8910 ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
8911"
8912if test "x$ac_cv_header_audio_soundlib_h" = x""yes; then :
a3097628 8913 cat >>confdefs.h <<_ACEOF
25e9e4f0 8914#define HAVE_AUDIO_SOUNDLIB_H 1
a3097628
AJ
8915_ACEOF
8916
8917fi
8918
8919done
40e7ef3a 8920
25e9e4f0 8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
abf5048b 8922$as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
25e9e4f0 8923if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then :
abf5048b 8924 $as_echo_n "(cached) " >&6
a3097628
AJ
8925else
8926 ac_check_lib_save_LIBS=$LIBS
fd03c506 8927LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
25e9e4f0 8928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40e7ef3a 8929/* end confdefs.h. */
a3097628
AJ
8930
8931/* Override any GCC internal prototype to avoid an error.
8932 Use char because int might match the return type of a GCC
8933 builtin and then its argument prototype would still apply. */
8934#ifdef __cplusplus
8935extern "C"
8936#endif
8937char AuCreateFlow ();
8938int
8939main ()
8940{
8941return AuCreateFlow ();
8942 ;
8943 return 0;
8944}
40e7ef3a 8945_ACEOF
25e9e4f0 8946if ac_fn_c_try_link "$LINENO"; then :
a3097628 8947 ac_cv_lib_audio_AuCreateFlow=yes
40e7ef3a 8948else
25e9e4f0 8949 ac_cv_lib_audio_AuCreateFlow=no
40e7ef3a 8950fi
25e9e4f0
AJ
8951rm -f core conftest.err conftest.$ac_objext \
8952 conftest$ac_exeext conftest.$ac_ext
a3097628 8953LIBS=$ac_check_lib_save_LIBS
40e7ef3a 8954fi
25e9e4f0 8955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
abf5048b 8956$as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
25e9e4f0 8957if test "x$ac_cv_lib_audio_AuCreateFlow" = x""yes; then :
40e7ef3a 8958
25e9e4f0 8959$as_echo "#define HAVE_NAS 1" >>confdefs.h
a3097628 8960
25e9e4f0 8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
abf5048b 8962$as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
25e9e4f0 8963if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then :
abf5048b 8964 $as_echo_n "(cached) " >&6
40e7ef3a
MM
8965else
8966 ac_check_lib_save_LIBS=$LIBS
a3097628 8967LIBS="-lXau $X_LIBS $LIBS"
25e9e4f0 8968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40e7ef3a
MM
8969/* end confdefs.h. */
8970
fc6ffb29
AJ
8971/* Override any GCC internal prototype to avoid an error.
8972 Use char because int might match the return type of a GCC
8973 builtin and then its argument prototype would still apply. */
40e7ef3a
MM
8974#ifdef __cplusplus
8975extern "C"
8976#endif
a3097628 8977char XauGetBestAuthByAddr ();
40e7ef3a
MM
8978int
8979main ()
8980{
a3097628 8981return XauGetBestAuthByAddr ();
40e7ef3a
MM
8982 ;
8983 return 0;
8984}
8985_ACEOF
25e9e4f0 8986if ac_fn_c_try_link "$LINENO"; then :
a3097628 8987 ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
40e7ef3a 8988else
25e9e4f0 8989 ac_cv_lib_Xau_XauGetBestAuthByAddr=no
40e7ef3a 8990fi
25e9e4f0
AJ
8991rm -f core conftest.err conftest.$ac_objext \
8992 conftest$ac_exeext conftest.$ac_ext
40e7ef3a
MM
8993LIBS=$ac_check_lib_save_LIBS
8994fi
25e9e4f0 8995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
abf5048b 8996$as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
25e9e4f0 8997if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = x""yes; then :
fd03c506 8998 NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
a3097628 8999else
fd03c506 9000 NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
a3097628 9001fi
40e7ef3a 9002
40e7ef3a 9003
40e7ef3a
MM
9004fi
9005
40e7ef3a
MM
9006fi
9007
a3097628
AJ
9008done
9009
40e7ef3a 9010
40e7ef3a 9011 CPPFLAGS="$ac_save_CPPFLAGS"
a3097628
AJ
9012else
9013 XLIB=""
9014 X_CFLAGS=""
9015 X_LIBS=""
dbb535e4
AJ
9016 enable_winex11_drv=${enable_winex11_drv:-no}
9017 enable_opengl32=${enable_opengl32:-no}
9018 enable_glu32=${enable_glu32:-no}
a41f0f1b 9019fi
25e9e4f0 9020if test "x$XLIB" = "x"; then :
a41f0f1b 9021 case "x$with_x" in
a41f0f1b 9022 xno) ;;
25e9e4f0 9023 *) as_fn_error "X ${notice_platform}development files not found. Wine will be built
a41f0f1b 9024without X support, which probably isn't what you want. You will need to install
d2c8bfbf 9025${notice_platform}development packages of Xlib/Xfree86 at the very least.
25e9e4f0 9026Use the --without-x option if you really want this." "$LINENO" 5 ;;
a41f0f1b 9027esac
40e7ef3a
MM
9028fi
9029
a3097628
AJ
9030
9031XML2LIBS=""
9032
9033XML2INCL=""
9034
a3097628
AJ
9035XSLTINCL=""
9036
a41f0f1b 9037if test "x$with_xml" != "xno"
6b0720f5 9038then
a41f0f1b
AJ
9039 ac_save_CPPFLAGS="$CPPFLAGS"
9040 if test "$PKG_CONFIG" != "false"
9041 then
9042 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9043 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9044 else
9045 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9046 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
9047 fi
9048 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
25e9e4f0
AJ
9049 for ac_header in libxml/parser.h
9050do :
9051 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
9052if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
a3097628 9053 cat >>confdefs.h <<_ACEOF
25e9e4f0 9054#define HAVE_LIBXML_PARSER_H 1
a3097628 9055_ACEOF
25e9e4f0 9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
abf5048b 9057$as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
25e9e4f0 9058if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then :
abf5048b 9059 $as_echo_n "(cached) " >&6
6b0720f5
SQH
9060else
9061 ac_check_lib_save_LIBS=$LIBS
a3097628 9062LIBS="-lxml2 $ac_xml_libs $LIBS"
25e9e4f0 9063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 9064/* end confdefs.h. */
6b0720f5 9065
fc6ffb29
AJ
9066/* Override any GCC internal prototype to avoid an error.
9067 Use char because int might match the return type of a GCC
9068 builtin and then its argument prototype would still apply. */
6b0720f5
SQH
9069#ifdef __cplusplus
9070extern "C"
9071#endif
a3097628 9072char xmlParseMemory ();
6b0720f5
SQH
9073int
9074main ()
9075{
a3097628 9076return xmlParseMemory ();
6b0720f5
SQH
9077 ;
9078 return 0;
9079}
9080_ACEOF
25e9e4f0 9081if ac_fn_c_try_link "$LINENO"; then :
a3097628 9082 ac_cv_lib_xml2_xmlParseMemory=yes
6b0720f5 9083else
25e9e4f0 9084 ac_cv_lib_xml2_xmlParseMemory=no
6b0720f5 9085fi
25e9e4f0
AJ
9086rm -f core conftest.err conftest.$ac_objext \
9087 conftest$ac_exeext conftest.$ac_ext
6b0720f5
SQH
9088LIBS=$ac_check_lib_save_LIBS
9089fi
25e9e4f0 9090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
abf5048b 9091$as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
25e9e4f0 9092if test "x$ac_cv_lib_xml2_xmlParseMemory" = x""yes; then :
6b0720f5 9093
25e9e4f0 9094$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
6b0720f5 9095
a41f0f1b
AJ
9096 XML2LIBS="$ac_xml_libs"
9097 XML2INCL="$ac_xml_cflags"
6b0720f5
SQH
9098fi
9099
25e9e4f0 9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
abf5048b 9101$as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
25e9e4f0 9102if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then :
abf5048b 9103 $as_echo_n "(cached) " >&6
4ee8290b 9104else
73482144 9105 ac_check_lib_save_LIBS=$LIBS
a3097628 9106LIBS="-lxml2 $ac_xml_libs $LIBS"
25e9e4f0 9107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2d6d4e96
HL
9108/* end confdefs.h. */
9109
fc6ffb29
AJ
9110/* Override any GCC internal prototype to avoid an error.
9111 Use char because int might match the return type of a GCC
9112 builtin and then its argument prototype would still apply. */
2d6d4e96
HL
9113#ifdef __cplusplus
9114extern "C"
9115#endif
a3097628 9116char xmlReadMemory ();
2d6d4e96
HL
9117int
9118main ()
9119{
a3097628 9120return xmlReadMemory ();
2d6d4e96
HL
9121 ;
9122 return 0;
9123}
9124_ACEOF
25e9e4f0 9125if ac_fn_c_try_link "$LINENO"; then :
a3097628 9126 ac_cv_lib_xml2_xmlReadMemory=yes
2d6d4e96 9127else
25e9e4f0 9128 ac_cv_lib_xml2_xmlReadMemory=no
2d6d4e96 9129fi
25e9e4f0
AJ
9130rm -f core conftest.err conftest.$ac_objext \
9131 conftest$ac_exeext conftest.$ac_ext
2d6d4e96
HL
9132LIBS=$ac_check_lib_save_LIBS
9133fi
25e9e4f0 9134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
abf5048b 9135$as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
25e9e4f0 9136if test "x$ac_cv_lib_xml2_xmlReadMemory" = x""yes; then :
2d6d4e96 9137
25e9e4f0 9138$as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
2d6d4e96 9139
2d6d4e96
HL
9140fi
9141
25e9e4f0 9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
abf5048b 9143$as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
25e9e4f0 9144if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then :
abf5048b 9145 $as_echo_n "(cached) " >&6
2d6d4e96
HL
9146else
9147 ac_check_lib_save_LIBS=$LIBS
a3097628 9148LIBS="-lxml2 $ac_xml_libs $LIBS"
25e9e4f0 9149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4ee8290b 9150/* end confdefs.h. */
4ee8290b 9151
fc6ffb29
AJ
9152/* Override any GCC internal prototype to avoid an error.
9153 Use char because int might match the return type of a GCC
9154 builtin and then its argument prototype would still apply. */
73482144
AJ
9155#ifdef __cplusplus
9156extern "C"
9157#endif
a3097628 9158char xmlNewDocPI ();
4ee8290b
AJ
9159int
9160main ()
9161{
a3097628 9162return xmlNewDocPI ();
4ee8290b
AJ
9163 ;
9164 return 0;
9165}
9166_ACEOF
25e9e4f0 9167if ac_fn_c_try_link "$LINENO"; then :
a3097628 9168 ac_cv_lib_xml2_xmlNewDocPI=yes
4ee8290b 9169else
25e9e4f0 9170 ac_cv_lib_xml2_xmlNewDocPI=no
4ee8290b 9171fi
25e9e4f0
AJ
9172rm -f core conftest.err conftest.$ac_objext \
9173 conftest$ac_exeext conftest.$ac_ext
73482144 9174LIBS=$ac_check_lib_save_LIBS
4ee8290b 9175fi
25e9e4f0 9176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
abf5048b 9177$as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
25e9e4f0 9178if test "x$ac_cv_lib_xml2_xmlNewDocPI" = x""yes; then :
a3097628 9179
25e9e4f0 9180$as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
a3097628
AJ
9181
9182fi
9183
9184
9185fi
9186
9187done
9188
a41f0f1b
AJ
9189 CPPFLAGS="$ac_save_CPPFLAGS"
9190fi
25e9e4f0 9191if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
a41f0f1b 9192 case "x$with_xml" in
0dc503bc 9193 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found, XML won't be supported." ;;
a41f0f1b 9194 xno) ;;
25e9e4f0
AJ
9195 *) as_fn_error "libxml2 ${notice_platform}development files not found, XML won't be supported.
9196This is an error since --with-xml was requested." "$LINENO" 5 ;;
a41f0f1b 9197esac
f9dec94f
AJ
9198fi
9199
a41f0f1b 9200if test "x$with_xslt" != "xno"
a3097628 9201then
a41f0f1b
AJ
9202 if test "$PKG_CONFIG" != "false"
9203 then
9204 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9205 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9206 else
9207 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9208 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9209 fi
9d7f7bfc 9210 ac_save_CPPFLAGS="$CPPFLAGS"
a41f0f1b 9211 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
25e9e4f0
AJ
9212 for ac_header in libxslt/pattern.h libxslt/transform.h
9213do :
9214 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9215ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
a3097628 9216# include <libxslt/pattern.h>
d3447022 9217#endif
25e9e4f0
AJ
9218"
9219eval as_val=\$$as_ac_Header
9220 if test "x$as_val" = x""yes; then :
a3097628 9221 cat >>confdefs.h <<_ACEOF
abf5048b 9222#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a3097628 9223_ACEOF
9d7f7bfc
LZ
9224
9225fi
9226
9227done
9228
9229 CPPFLAGS="$ac_save_CPPFLAGS"
9230 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9231 then
25e9e4f0 9232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
3d384f17 9233$as_echo_n "checking for -lxslt... " >&6; }
25e9e4f0 9234if test "${ac_cv_lib_soname_xslt+set}" = set; then :
abf5048b 9235 $as_echo_n "(cached) " >&6
b2c62c94 9236else
3d384f17 9237 ac_check_soname_save_LIBS=$LIBS
a3097628 9238LIBS="-lxslt $ac_xslt_libs $LIBS"
25e9e4f0 9239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b2c62c94 9240/* end confdefs.h. */
b2c62c94 9241
fc6ffb29
AJ
9242/* Override any GCC internal prototype to avoid an error.
9243 Use char because int might match the return type of a GCC
9244 builtin and then its argument prototype would still apply. */
b2c62c94
HL
9245#ifdef __cplusplus
9246extern "C"
b2c62c94 9247#endif
a3097628 9248char xsltCompilePattern ();
b2c62c94
HL
9249int
9250main ()
9251{
a3097628 9252return xsltCompilePattern ();
b2c62c94
HL
9253 ;
9254 return 0;
9255}
9256_ACEOF
25e9e4f0 9257if ac_fn_c_try_link "$LINENO"; then :
3d384f17 9258 case "$LIBEXT" in
2b05c840 9259 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
3d384f17
FG
9260 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'` ;;
9261 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9262 esac
b2c62c94 9263fi
25e9e4f0
AJ
9264rm -f core conftest.err conftest.$ac_objext \
9265 conftest$ac_exeext conftest.$ac_ext
3d384f17 9266 LIBS=$ac_check_soname_save_LIBS
b2c62c94 9267fi
25e9e4f0
AJ
9268if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3d384f17 9270$as_echo "not found" >&6; }
9d7f7bfc 9271
9d7f7bfc 9272else
25e9e4f0 9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
3d384f17 9274$as_echo "$ac_cv_lib_soname_xslt" >&6; }
9d7f7bfc 9275
3d384f17
FG
9276cat >>confdefs.h <<_ACEOF
9277#define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9d7f7bfc 9278_ACEOF
ea524def 9279
3d384f17 9280 XSLTINCL="$ac_xslt_cflags"
9d7f7bfc 9281fi
9d7f7bfc 9282 fi
a41f0f1b 9283fi
25e9e4f0 9284if test "x$ac_cv_lib_soname_xslt" = "x"; then :
a41f0f1b 9285 case "x$with_xslt" in
0dc503bc 9286 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
a41f0f1b 9287 xno) ;;
25e9e4f0
AJ
9288 *) as_fn_error "libxslt ${notice_platform}development files not found, xslt won't be supported.
9289This is an error since --with-xslt was requested." "$LINENO" 5 ;;
a41f0f1b 9290esac
f9dec94f
AJ
9291fi
9292
a3097628
AJ
9293HALINCL=""
9294
295a0cdd 9295if test "x$with_hal" != "xno"
a3097628
AJ
9296then
9297 ac_save_CPPFLAGS="$CPPFLAGS"
295a0cdd
FG
9298 if test "$PKG_CONFIG" != "false"
9299 then
9300 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9301 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9302 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9303 fi
25e9e4f0
AJ
9304 for ac_header in dbus/dbus.h hal/libhal.h
9305do :
9306 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9307ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9308eval as_val=\$$as_ac_Header
9309 if test "x$as_val" = x""yes; then :
a3097628 9310 cat >>confdefs.h <<_ACEOF
abf5048b 9311#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a3097628 9312_ACEOF
d9ef88cd 9313
d9ef88cd
MM
9314fi
9315
a3097628
AJ
9316done
9317
9318 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9319 then
25e9e4f0 9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
abf5048b 9321$as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
25e9e4f0 9322if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then :
abf5048b 9323 $as_echo_n "(cached) " >&6
ea524def
HL
9324else
9325 ac_check_lib_save_LIBS=$LIBS
c1099bb7 9326LIBS="-ldbus-1 $ac_hal_libs $LIBS"
25e9e4f0 9327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea524def
HL
9328/* end confdefs.h. */
9329
fc6ffb29
AJ
9330/* Override any GCC internal prototype to avoid an error.
9331 Use char because int might match the return type of a GCC
9332 builtin and then its argument prototype would still apply. */
ea524def
HL
9333#ifdef __cplusplus
9334extern "C"
9335#endif
c1099bb7 9336char dbus_connection_close ();
ea524def
HL
9337int
9338main ()
9339{
c1099bb7 9340return dbus_connection_close ();
ea524def
HL
9341 ;
9342 return 0;
9343}
9344_ACEOF
25e9e4f0 9345if ac_fn_c_try_link "$LINENO"; then :
c1099bb7 9346 ac_cv_lib_dbus_1_dbus_connection_close=yes
ea524def 9347else
25e9e4f0 9348 ac_cv_lib_dbus_1_dbus_connection_close=no
ea524def 9349fi
25e9e4f0
AJ
9350rm -f core conftest.err conftest.$ac_objext \
9351 conftest$ac_exeext conftest.$ac_ext
ea524def
HL
9352LIBS=$ac_check_lib_save_LIBS
9353fi
25e9e4f0 9354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
abf5048b 9355$as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
25e9e4f0
AJ
9356if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = x""yes; then :
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
abf5048b 9358$as_echo_n "checking for -lhal... " >&6; }
25e9e4f0 9359if test "${ac_cv_lib_soname_hal+set}" = set; then :
abf5048b 9360 $as_echo_n "(cached) " >&6
f5818d2f 9361else
c1099bb7
AJ
9362 ac_check_soname_save_LIBS=$LIBS
9363LIBS="-lhal $ac_hal_libs $LIBS"
25e9e4f0 9364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 9365/* end confdefs.h. */
9c269172 9366
a3097628
AJ
9367/* Override any GCC internal prototype to avoid an error.
9368 Use char because int might match the return type of a GCC
9369 builtin and then its argument prototype would still apply. */
9370#ifdef __cplusplus
9371extern "C"
9372#endif
c1099bb7 9373char libhal_ctx_new ();
a3097628
AJ
9374int
9375main ()
9376{
c1099bb7 9377return libhal_ctx_new ();
a3097628
AJ
9378 ;
9379 return 0;
9380}
daa2886c 9381_ACEOF
25e9e4f0 9382if ac_fn_c_try_link "$LINENO"; then :
c1099bb7 9383 case "$LIBEXT" in
2b05c840 9384 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
c1099bb7
AJ
9385 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'` ;;
9386 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9387 esac
daa2886c 9388fi
25e9e4f0
AJ
9389rm -f core conftest.err conftest.$ac_objext \
9390 conftest$ac_exeext conftest.$ac_ext
c1099bb7 9391 LIBS=$ac_check_soname_save_LIBS
40432fef 9392fi
25e9e4f0
AJ
9393if test "x$ac_cv_lib_soname_hal" = "x"; then :
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 9395$as_echo "not found" >&6; }
a3097628 9396
c1099bb7 9397else
25e9e4f0 9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
abf5048b 9399$as_echo "$ac_cv_lib_soname_hal" >&6; }
c1099bb7
AJ
9400
9401cat >>confdefs.h <<_ACEOF
9402#define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
daa2886c 9403_ACEOF
f5818d2f 9404
c1099bb7 9405 HALINCL="$ac_hal_cflags"
a3097628 9406fi
40432fef 9407fi
daa2886c 9408
a3097628
AJ
9409 fi
9410 CPPFLAGS="$ac_save_CPPFLAGS"
9411fi
d8062736 9412if test "x$ac_cv_lib_soname_hal" = "x" -a "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
a41f0f1b 9413 case "x$with_hal" in
0dc503bc 9414 x) as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
a41f0f1b 9415 xno) ;;
25e9e4f0
AJ
9416 *) as_fn_error "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9417This is an error since --with-hal was requested." "$LINENO" 5 ;;
a41f0f1b 9418esac
f9dec94f
AJ
9419fi
9420
295a0cdd 9421if test "x$with_gnutls" != "xno"
874c9ef6
HV
9422then
9423 ac_save_CPPFLAGS="$CPPFLAGS"
295a0cdd
FG
9424 if test "$PKG_CONFIG" != "false"
9425 then
9426 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9427 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9428 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9429 fi
25e9e4f0
AJ
9430 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9431if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
9432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3aae9546
FG
9433/* end confdefs.h. */
9434#include <gnutls/gnutls.h>
9435int
9436main ()
9437{
8c4a2978 9438typeof(gnutls_mac_get_key_size) *pfunc;
3aae9546
FG
9439 ;
9440 return 0;
9441}
9442_ACEOF
25e9e4f0
AJ
9443if ac_fn_c_try_compile "$LINENO"; then :
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
abf5048b 9445$as_echo_n "checking for -lgnutls... " >&6; }
25e9e4f0 9446if test "${ac_cv_lib_soname_gnutls+set}" = set; then :
abf5048b 9447 $as_echo_n "(cached) " >&6
874c9ef6
HV
9448else
9449 ac_check_soname_save_LIBS=$LIBS
9450LIBS="-lgnutls $ac_gnutls_libs $LIBS"
25e9e4f0 9451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
874c9ef6
HV
9452/* end confdefs.h. */
9453
9454/* Override any GCC internal prototype to avoid an error.
9455 Use char because int might match the return type of a GCC
9456 builtin and then its argument prototype would still apply. */
9457#ifdef __cplusplus
9458extern "C"
9459#endif
9460char gnutls_global_init ();
9461int
9462main ()
9463{
9464return gnutls_global_init ();
9465 ;
9466 return 0;
9467}
9468_ACEOF
25e9e4f0 9469if ac_fn_c_try_link "$LINENO"; then :
874c9ef6 9470 case "$LIBEXT" in
2b05c840 9471 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
874c9ef6
HV
9472 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'` ;;
9473 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9474 esac
874c9ef6 9475fi
25e9e4f0
AJ
9476rm -f core conftest.err conftest.$ac_objext \
9477 conftest$ac_exeext conftest.$ac_ext
874c9ef6
HV
9478 LIBS=$ac_check_soname_save_LIBS
9479fi
25e9e4f0
AJ
9480if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 9482$as_echo "not found" >&6; }
874c9ef6
HV
9483
9484else
25e9e4f0 9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
abf5048b 9486$as_echo "$ac_cv_lib_soname_gnutls" >&6; }
874c9ef6
HV
9487
9488cat >>confdefs.h <<_ACEOF
9489#define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9490_ACEOF
9491
9492 GNUTLSINCL="$ac_gnutls_cflags"
9493
9494fi
3aae9546 9495fi
3aae9546 9496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
874c9ef6
HV
9497fi
9498
9499
9500 CPPFLAGS="$ac_save_CPPFLAGS"
9501fi
25e9e4f0 9502if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
874c9ef6 9503 case "x$with_gnutls" in
0dc503bc 9504 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
874c9ef6 9505 xno) ;;
25e9e4f0
AJ
9506 *) as_fn_error "libgnutls ${notice_platform}development files not found, no schannel support.
9507This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
874c9ef6
HV
9508esac
9509fi
9510
a3097628
AJ
9511CURSESLIBS=""
9512if test "$ac_cv_header_ncurses_h" = "yes"
9513then
25e9e4f0 9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
abf5048b 9515$as_echo_n "checking for -lncurses... " >&6; }
25e9e4f0 9516if test "${ac_cv_lib_soname_ncurses+set}" = set; then :
abf5048b 9517 $as_echo_n "(cached) " >&6
a3097628 9518else
d0783774 9519 ac_check_soname_save_LIBS=$LIBS
a3097628 9520LIBS="-lncurses $LIBS"
25e9e4f0 9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 9522/* end confdefs.h. */
a3097628
AJ
9523
9524/* Override any GCC internal prototype to avoid an error.
9525 Use char because int might match the return type of a GCC
9526 builtin and then its argument prototype would still apply. */
9527#ifdef __cplusplus
9528extern "C"
9529#endif
9530char waddch ();
9531int
9532main ()
9533{
9534return waddch ();
9535 ;
9536 return 0;
9537}
f5818d2f 9538_ACEOF
25e9e4f0 9539if ac_fn_c_try_link "$LINENO"; then :
d0783774 9540 case "$LIBEXT" in
2b05c840 9541 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
d0783774
AJ
9542 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'` ;;
9543 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9544 esac
18d7573c 9545fi
25e9e4f0
AJ
9546rm -f core conftest.err conftest.$ac_objext \
9547 conftest$ac_exeext conftest.$ac_ext
d0783774 9548 LIBS=$ac_check_soname_save_LIBS
a3097628 9549fi
25e9e4f0
AJ
9550if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 9552$as_echo "not found" >&6; }
d0783774
AJ
9553
9554else
25e9e4f0 9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
abf5048b 9556$as_echo "$ac_cv_lib_soname_ncurses" >&6; }
d0783774
AJ
9557
9558cat >>confdefs.h <<_ACEOF
9559#define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9560_ACEOF
9561
9562 CURSESLIBS="-lncurses"
a3097628 9563fi
a3097628
AJ
9564elif test "$ac_cv_header_curses_h" = "yes"
9565then
25e9e4f0 9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
abf5048b 9567$as_echo_n "checking for -lcurses... " >&6; }
25e9e4f0 9568if test "${ac_cv_lib_soname_curses+set}" = set; then :
abf5048b 9569 $as_echo_n "(cached) " >&6
d8a6c278 9570else
d0783774 9571 ac_check_soname_save_LIBS=$LIBS
a3097628 9572LIBS="-lcurses $LIBS"
25e9e4f0 9573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d8a6c278 9574/* end confdefs.h. */
d8a6c278 9575
a3097628
AJ
9576/* Override any GCC internal prototype to avoid an error.
9577 Use char because int might match the return type of a GCC
9578 builtin and then its argument prototype would still apply. */
9579#ifdef __cplusplus
9580extern "C"
9581#endif
9582char waddch ();
d8a6c278
HD
9583int
9584main ()
9585{
a3097628 9586return waddch ();
d8a6c278
HD
9587 ;
9588 return 0;
9589}
9590_ACEOF
25e9e4f0 9591if ac_fn_c_try_link "$LINENO"; then :
d0783774 9592 case "$LIBEXT" in
2b05c840 9593 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
d0783774
AJ
9594 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'` ;;
9595 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9596 esac
d8a6c278 9597fi
25e9e4f0
AJ
9598rm -f core conftest.err conftest.$ac_objext \
9599 conftest$ac_exeext conftest.$ac_ext
d0783774 9600 LIBS=$ac_check_soname_save_LIBS
a3097628 9601fi
25e9e4f0
AJ
9602if test "x$ac_cv_lib_soname_curses" = "x"; then :
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 9604$as_echo "not found" >&6; }
d0783774
AJ
9605
9606else
25e9e4f0 9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
abf5048b 9608$as_echo "$ac_cv_lib_soname_curses" >&6; }
d0783774
AJ
9609
9610cat >>confdefs.h <<_ACEOF
9611#define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9612_ACEOF
9613
9614 CURSESLIBS="-lcurses"
d8a6c278 9615fi
a3097628
AJ
9616fi
9617ac_save_LIBS="$LIBS"
9618LIBS="$LIBS $CURSESLIBS"
a3097628 9619for ac_func in mousemask
25e9e4f0
AJ
9620do :
9621 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9622if test "x$ac_cv_func_mousemask" = x""yes; then :
35bca77f 9623 cat >>confdefs.h <<_ACEOF
25e9e4f0 9624#define HAVE_MOUSEMASK 1
35bca77f
HD
9625_ACEOF
9626
9627fi
9628done
9629
a3097628 9630LIBS="$ac_save_LIBS"
25e9e4f0 9631if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
a41f0f1b 9632 case "x$with_curses" in
0dc503bc 9633 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
a41f0f1b 9634 xno) ;;
25e9e4f0
AJ
9635 *) as_fn_error "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9636This is an error since --with-curses was requested." "$LINENO" 5 ;;
a41f0f1b 9637esac
f9dec94f
AJ
9638fi
9639
3fe5d805
FG
9640if test "x$with_sane" != "xno"
9641then
9642 ac_save_CPPFLAGS="$CPPFLAGS"
9643 # Extract the first word of "sane-config", so it can be a program name with args.
a3097628 9644set dummy sane-config; ac_word=$2
25e9e4f0 9645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf5048b 9646$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 9647if test "${ac_cv_prog_sane_devel+set}" = set; then :
abf5048b 9648 $as_echo_n "(cached) " >&6
a3097628
AJ
9649else
9650 if test -n "$sane_devel"; then
9651 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9652else
9653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9654for as_dir in $PATH
9655do
9656 IFS=$as_save_IFS
9657 test -z "$as_dir" && as_dir=.
25e9e4f0 9658 for ac_exec_ext in '' $ac_executable_extensions; do
a3097628
AJ
9659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9660 ac_cv_prog_sane_devel="sane-config"
25e9e4f0 9661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a3097628
AJ
9662 break 2
9663 fi
9664done
25e9e4f0 9665 done
a3097628 9666IFS=$as_save_IFS
9b1d3726 9667
a3097628
AJ
9668 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9669fi
9670fi
9671sane_devel=$ac_cv_prog_sane_devel
9672if test -n "$sane_devel"; then
25e9e4f0 9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
abf5048b 9674$as_echo "$sane_devel" >&6; }
a3097628 9675else
25e9e4f0 9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 9677$as_echo "no" >&6; }
563598d4
IP
9678fi
9679
00acb5f7 9680
3fe5d805
FG
9681 if test "$sane_devel" != "no"
9682 then
9683 ac_sane_incl="`$sane_devel --cflags`"
9684 ac_sane_libs="`$sane_devel --ldflags`"
9685 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9686 fi
25e9e4f0
AJ
9687 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9688if test "x$ac_cv_header_sane_sane_h" = x""yes; then :
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9690$as_echo_n "checking for -lsane... " >&6; }
9691if test "${ac_cv_lib_soname_sane+set}" = set; then :
abf5048b 9692 $as_echo_n "(cached) " >&6
6509fa93 9693else
25e9e4f0
AJ
9694 ac_check_soname_save_LIBS=$LIBS
9695LIBS="-lsane $ac_sane_libs $LIBS"
9696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 9697/* end confdefs.h. */
a3097628 9698
25e9e4f0
AJ
9699/* Override any GCC internal prototype to avoid an error.
9700 Use char because int might match the return type of a GCC
9701 builtin and then its argument prototype would still apply. */
9702#ifdef __cplusplus
9703extern "C"
9704#endif
9705char sane_init ();
9706int
9707main ()
9708{
9709return sane_init ();
9710 ;
9711 return 0;
9712}
a3097628 9713_ACEOF
25e9e4f0 9714if ac_fn_c_try_link "$LINENO"; then :
418e74b5 9715 case "$LIBEXT" in
2b05c840 9716 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
418e74b5
AJ
9717 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'` ;;
9718 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9719 esac
418e74b5 9720fi
25e9e4f0
AJ
9721rm -f core conftest.err conftest.$ac_objext \
9722 conftest$ac_exeext conftest.$ac_ext
418e74b5
AJ
9723 LIBS=$ac_check_soname_save_LIBS
9724fi
25e9e4f0
AJ
9725if test "x$ac_cv_lib_soname_sane" = "x"; then :
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 9727$as_echo "not found" >&6; }
6509fa93 9728
a3097628 9729else
25e9e4f0 9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
abf5048b 9731$as_echo "$ac_cv_lib_soname_sane" >&6; }
418e74b5
AJ
9732
9733cat >>confdefs.h <<_ACEOF
9734#define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9735_ACEOF
9736
9737 SANEINCL="$ac_sane_incl"
9738
9739fi
a3097628
AJ
9740fi
9741
9742
9743 CPPFLAGS="$ac_save_CPPFLAGS"
9744fi
25e9e4f0 9745if test "x$ac_cv_lib_soname_sane" = "x"; then :
a41f0f1b 9746 case "x$with_sane" in
0dc503bc 9747 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
a41f0f1b 9748 xno) ;;
25e9e4f0
AJ
9749 *) as_fn_error "libsane ${notice_platform}development files not found, scanners won't be supported.
9750This is an error since --with-sane was requested." "$LINENO" 5 ;;
a41f0f1b 9751esac
f9dec94f
AJ
9752fi
9753
bf6f0750
ML
9754if test "x$with_v4l" != "xno"
9755then
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9757$as_echo_n "checking for -lv4l1... " >&6; }
9758if test "${ac_cv_lib_soname_v4l1+set}" = set; then :
9759 $as_echo_n "(cached) " >&6
9760else
9761 ac_check_soname_save_LIBS=$LIBS
9762LIBS="-lv4l1 $LIBS"
9763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764/* end confdefs.h. */
9765
9766/* Override any GCC internal prototype to avoid an error.
9767 Use char because int might match the return type of a GCC
9768 builtin and then its argument prototype would still apply. */
9769#ifdef __cplusplus
9770extern "C"
9771#endif
9772char v4l1_open ();
9773int
9774main ()
9775{
9776return v4l1_open ();
9777 ;
9778 return 0;
9779}
9780_ACEOF
9781if ac_fn_c_try_link "$LINENO"; then :
9782 case "$LIBEXT" in
2b05c840 9783 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
bf6f0750
ML
9784 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'` ;;
9785 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9786 esac
9787fi
9788rm -f core conftest.err conftest.$ac_objext \
9789 conftest$ac_exeext conftest.$ac_ext
9790 LIBS=$ac_check_soname_save_LIBS
9791fi
9792if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9794$as_echo "not found" >&6; }
9795
9796else
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
9798$as_echo "$ac_cv_lib_soname_v4l1" >&6; }
9799
9800cat >>confdefs.h <<_ACEOF
9801#define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
9802_ACEOF
9803
9804
9805fi
9806fi
9807if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9808 case "x$with_v4l" in
0dc503bc 9809 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
bf6f0750
ML
9810 xno) ;;
9811 *) as_fn_error "libv4l ${notice_platform}development files not found.
9812This is an error since --with-v4l was requested." "$LINENO" 5 ;;
9813esac
9814fi
9815
3fe5d805
FG
9816if test "x$with_gphoto" != "xno"
9817then
9818 ac_save_CPPFLAGS="$CPPFLAGS"
9819 # Extract the first word of "gphoto2-config", so it can be a program name with args.
a3097628 9820set dummy gphoto2-config; ac_word=$2
25e9e4f0 9821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf5048b 9822$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 9823if test "${ac_cv_prog_gphoto2_devel+set}" = set; then :
abf5048b 9824 $as_echo_n "(cached) " >&6
a3097628
AJ
9825else
9826 if test -n "$gphoto2_devel"; then
9827 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
9828else
9829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9830for as_dir in $PATH
9831do
9832 IFS=$as_save_IFS
9833 test -z "$as_dir" && as_dir=.
25e9e4f0 9834 for ac_exec_ext in '' $ac_executable_extensions; do
a3097628
AJ
9835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9836 ac_cv_prog_gphoto2_devel="gphoto2-config"
25e9e4f0 9837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a3097628
AJ
9838 break 2
9839 fi
9840done
25e9e4f0 9841 done
a3097628
AJ
9842IFS=$as_save_IFS
9843
9844 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
9845fi
9846fi
9847gphoto2_devel=$ac_cv_prog_gphoto2_devel
9848if test -n "$gphoto2_devel"; then
25e9e4f0 9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
abf5048b 9850$as_echo "$gphoto2_devel" >&6; }
a3097628 9851else
25e9e4f0 9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 9853$as_echo "no" >&6; }
a3097628
AJ
9854fi
9855
9856
3fe5d805 9857 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
a3097628 9858set dummy gphoto2-port-config; ac_word=$2
25e9e4f0 9859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf5048b 9860$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 9861if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then :
abf5048b 9862 $as_echo_n "(cached) " >&6
a3097628
AJ
9863else
9864 if test -n "$gphoto2port_devel"; then
9865 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
9866else
9867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9868for as_dir in $PATH
9869do
9870 IFS=$as_save_IFS
9871 test -z "$as_dir" && as_dir=.
25e9e4f0 9872 for ac_exec_ext in '' $ac_executable_extensions; do
a3097628
AJ
9873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9874 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
25e9e4f0 9875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a3097628
AJ
9876 break 2
9877 fi
9878done
25e9e4f0 9879 done
a3097628
AJ
9880IFS=$as_save_IFS
9881
9882 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
6509fa93 9883fi
a3097628
AJ
9884fi
9885gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
9886if test -n "$gphoto2port_devel"; then
25e9e4f0 9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
abf5048b 9888$as_echo "$gphoto2port_devel" >&6; }
5ee517ac 9889else
25e9e4f0 9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 9891$as_echo "no" >&6; }
5ee517ac 9892fi
fc6ffb29 9893
5ee517ac 9894
3fe5d805
FG
9895 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
9896 then
9897 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
9898 ac_gphoto2_libs=""
9899 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
9900 do
9901 case "$i" in
9902 -L/usr/lib|-L/usr/lib64) ;;
9903 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
9904 esac
9905 done
9906 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
9907 fi
4bf77d6c 9908 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
25e9e4f0
AJ
9909 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
9910if test "x$ac_cv_header_gphoto2_camera_h" = x""yes; then :
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
abf5048b 9912$as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
25e9e4f0 9913if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then :
abf5048b 9914 $as_echo_n "(cached) " >&6
80e34dbb 9915else
a3097628 9916 ac_check_lib_save_LIBS=$LIBS
4bc03fe8 9917LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
25e9e4f0 9918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80e34dbb 9919/* end confdefs.h. */
80e34dbb 9920
a3097628
AJ
9921/* Override any GCC internal prototype to avoid an error.
9922 Use char because int might match the return type of a GCC
9923 builtin and then its argument prototype would still apply. */
9924#ifdef __cplusplus
9925extern "C"
9926#endif
9927char gp_camera_new ();
80e34dbb
AJ
9928int
9929main ()
9930{
a3097628 9931return gp_camera_new ();
80e34dbb
AJ
9932 ;
9933 return 0;
9934}
9935_ACEOF
25e9e4f0 9936if ac_fn_c_try_link "$LINENO"; then :
a3097628 9937 ac_cv_lib_gphoto2_gp_camera_new=yes
80e34dbb 9938else
25e9e4f0 9939 ac_cv_lib_gphoto2_gp_camera_new=no
80e34dbb 9940fi
25e9e4f0
AJ
9941rm -f core conftest.err conftest.$ac_objext \
9942 conftest$ac_exeext conftest.$ac_ext
a3097628 9943LIBS=$ac_check_lib_save_LIBS
80e34dbb 9944fi
25e9e4f0 9945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
abf5048b 9946$as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
25e9e4f0 9947if test "x$ac_cv_lib_gphoto2_gp_camera_new" = x""yes; then :
80e34dbb 9948
25e9e4f0 9949$as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
80e34dbb 9950
f9dec94f
AJ
9951 GPHOTO2LIBS="$ac_gphoto2_libs"
9952
9953 GPHOTO2INCL="$ac_gphoto2_incl"
9954
a3097628
AJ
9955fi
9956
a3097628
AJ
9957fi
9958
80e34dbb 9959
a3097628 9960 CPPFLAGS="$ac_save_CPPFLAGS"
80e34dbb 9961fi
25e9e4f0 9962if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
a41f0f1b 9963 case "x$with_gphoto" in
0dc503bc 9964 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
a41f0f1b 9965 xno) ;;
25e9e4f0
AJ
9966 *) as_fn_error "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
9967This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
a41f0f1b 9968esac
f9dec94f
AJ
9969fi
9970
9971
a3097628 9972RESOLVLIBS=""
80e34dbb 9973
a3097628
AJ
9974if test "$ac_cv_header_resolv_h" = "yes"
9975then
4a9a3d7f
AJ
9976 ac_save_LIBS="$LIBS"
9977 LIBS="$LIBS -lresolv"
25e9e4f0 9978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
821ab863 9979/* end confdefs.h. */
ba349210
RS
9980#ifdef HAVE_NETINET_IN_H
9981#include <netinet/in.h>
9982#endif
4a9a3d7f 9983#include <resolv.h>
821ab863
AJ
9984int
9985main ()
9986{
4a9a3d7f 9987res_init();
821ab863
AJ
9988 ;
9989 return 0;
9990}
9991_ACEOF
25e9e4f0 9992if ac_fn_c_try_link "$LINENO"; then :
4a9a3d7f 9993
25e9e4f0 9994$as_echo "#define HAVE_RESOLV 1" >>confdefs.h
4a9a3d7f
AJ
9995
9996 RESOLVLIBS="-lresolv"
821ab863 9997fi
25e9e4f0
AJ
9998rm -f core conftest.err conftest.$ac_objext \
9999 conftest$ac_exeext conftest.$ac_ext
4a9a3d7f 10000 LIBS="$ac_save_LIBS"
73482144 10001fi
2a91e3f9 10002
a3097628 10003LCMSLIBS=""
fc6ffb29 10004
a3097628 10005if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
73482144 10006then
25e9e4f0 10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
abf5048b 10008$as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
25e9e4f0 10009if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
abf5048b 10010 $as_echo_n "(cached) " >&6
2a91e3f9 10011else
73482144 10012 ac_check_lib_save_LIBS=$LIBS
a3097628 10013LIBS="-llcms $LIBS"
25e9e4f0 10014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 10015/* end confdefs.h. */
73482144 10016
fc6ffb29
AJ
10017/* Override any GCC internal prototype to avoid an error.
10018 Use char because int might match the return type of a GCC
10019 builtin and then its argument prototype would still apply. */
73482144
AJ
10020#ifdef __cplusplus
10021extern "C"
10022#endif
a3097628 10023char cmsOpenProfileFromFile ();
73482144
AJ
10024int
10025main ()
10026{
a3097628 10027return cmsOpenProfileFromFile ();
73482144
AJ
10028 ;
10029 return 0;
10030}
2a91e3f9 10031_ACEOF
25e9e4f0 10032if ac_fn_c_try_link "$LINENO"; then :
a3097628 10033 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
2a91e3f9 10034else
25e9e4f0 10035 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
2a91e3f9 10036fi
25e9e4f0
AJ
10037rm -f core conftest.err conftest.$ac_objext \
10038 conftest$ac_exeext conftest.$ac_ext
73482144
AJ
10039LIBS=$ac_check_lib_save_LIBS
10040fi
25e9e4f0 10041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
abf5048b 10042$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
25e9e4f0 10043if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
73482144 10044
25e9e4f0 10045$as_echo "#define HAVE_LCMS 1" >>confdefs.h
e24bcc77 10046
a3097628 10047 LCMSLIBS="-llcms"
2a91e3f9 10048fi
875927f6 10049
2a91e3f9 10050fi
25e9e4f0 10051if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
a41f0f1b 10052 case "x$with_cms" in
0dc503bc 10053 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
a41f0f1b 10054 xno) ;;
25e9e4f0
AJ
10055 *) as_fn_error "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10056This is an error since --with-cms was requested." "$LINENO" 5 ;;
a41f0f1b 10057esac
f9dec94f
AJ
10058fi
10059
3fe5d805
FG
10060if test "x$with_freetype" != "xno"
10061then
10062 for ac_prog in freetype-config freetype2-config
bcba2705
FG
10063do
10064 # Extract the first word of "$ac_prog", so it can be a program name with args.
10065set dummy $ac_prog; ac_word=$2
25e9e4f0 10066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf5048b 10067$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 10068if test "${ac_cv_prog_ft_devel+set}" = set; then :
abf5048b 10069 $as_echo_n "(cached) " >&6
2a91e3f9 10070else
bcba2705
FG
10071 if test -n "$ft_devel"; then
10072 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
2a91e3f9 10073else
bcba2705
FG
10074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10075for as_dir in $PATH
10076do
10077 IFS=$as_save_IFS
10078 test -z "$as_dir" && as_dir=.
25e9e4f0 10079 for ac_exec_ext in '' $ac_executable_extensions; do
bcba2705
FG
10080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10081 ac_cv_prog_ft_devel="$ac_prog"
25e9e4f0 10082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bcba2705
FG
10083 break 2
10084 fi
10085done
25e9e4f0 10086 done
bcba2705 10087IFS=$as_save_IFS
e24bcc77 10088
2a91e3f9 10089fi
2a91e3f9 10090fi
bcba2705
FG
10091ft_devel=$ac_cv_prog_ft_devel
10092if test -n "$ft_devel"; then
25e9e4f0 10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
abf5048b 10094$as_echo "$ft_devel" >&6; }
bcba2705 10095else
25e9e4f0 10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 10097$as_echo "no" >&6; }
bcba2705
FG
10098fi
10099
10100
10101 test -n "$ft_devel" && break
10102done
3fe5d805 10103test -n "$ft_devel" || ft_devel="no"
bcba2705 10104
3fe5d805
FG
10105 if test "$ft_devel" != "no"
10106 then
10107 ac_freetype_incl=`$ft_devel --cflags`
10108 ac_freetype_libs=`$ft_devel --libs`
10109 fi
4bf77d6c 10110 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
25e9e4f0 10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
abf5048b 10112$as_echo_n "checking for -lfreetype... " >&6; }
25e9e4f0 10113if test "${ac_cv_lib_soname_freetype+set}" = set; then :
abf5048b 10114 $as_echo_n "(cached) " >&6
a3097628 10115else
bcba2705
FG
10116 ac_check_soname_save_LIBS=$LIBS
10117LIBS="-lfreetype $ac_freetype_libs $LIBS"
25e9e4f0 10118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
00fdd9fc 10119/* end confdefs.h. */
a3097628
AJ
10120
10121/* Override any GCC internal prototype to avoid an error.
10122 Use char because int might match the return type of a GCC
10123 builtin and then its argument prototype would still apply. */
10124#ifdef __cplusplus
10125extern "C"
73482144 10126#endif
bcba2705 10127char FT_Init_FreeType ();
73482144
AJ
10128int
10129main ()
10130{
bcba2705 10131return FT_Init_FreeType ();
73482144
AJ
10132 ;
10133 return 0;
10134}
00fdd9fc 10135_ACEOF
25e9e4f0 10136if ac_fn_c_try_link "$LINENO"; then :
bcba2705 10137 case "$LIBEXT" in
2b05c840 10138 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
bcba2705
FG
10139 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'` ;;
10140 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10141 esac
a3097628 10142fi
25e9e4f0
AJ
10143rm -f core conftest.err conftest.$ac_objext \
10144 conftest$ac_exeext conftest.$ac_ext
bcba2705 10145 LIBS=$ac_check_soname_save_LIBS
00fdd9fc 10146fi
25e9e4f0
AJ
10147if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 10149$as_echo "not found" >&6; }
bcba2705
FG
10150 ft_lib=no
10151else
25e9e4f0 10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
abf5048b 10153$as_echo "$ac_cv_lib_soname_freetype" >&6; }
fc6ffb29 10154
bcba2705
FG
10155cat >>confdefs.h <<_ACEOF
10156#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
a3097628
AJ
10157_ACEOF
10158
bcba2705 10159 ft_lib=yes
00fdd9fc 10160fi
bcba2705
FG
10161 if test "$ft_lib" = "yes"
10162 then
10163 ac_save_CPPFLAGS="$CPPFLAGS"
10164 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
25e9e4f0 10165 for ac_header in ft2build.h \
bcba2705
FG
10166 freetype/freetype.h \
10167 freetype/ftglyph.h \
10168 freetype/fttypes.h \
10169 freetype/tttables.h \
bcba2705
FG
10170 freetype/ftsnames.h \
10171 freetype/ttnameid.h \
10172 freetype/ftoutln.h \
10173 freetype/ftwinfnt.h \
10174 freetype/ftmodapi.h \
028617b9 10175 freetype/ftlcdfil.h \
bcba2705 10176 freetype/internal/sfnt.h
25e9e4f0
AJ
10177do :
10178 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10179ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
bcba2705
FG
10180 # include <ft2build.h>
10181 #endif
25e9e4f0
AJ
10182"
10183eval as_val=\$$as_ac_Header
10184 if test "x$as_val" = x""yes; then :
a3097628 10185 cat >>confdefs.h <<_ACEOF
abf5048b 10186#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
73482144 10187_ACEOF
00fdd9fc 10188
00fdd9fc 10189fi
bcba2705 10190
a3097628
AJ
10191done
10192
25e9e4f0 10193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
efca0f6a 10194/* end confdefs.h. */
a3097628
AJ
10195#include <ft2build.h>
10196 #include <freetype/fttrigon.h>
efca0f6a 10197_ACEOF
25e9e4f0 10198if ac_fn_c_try_cpp "$LINENO"; then :
a3097628 10199
25e9e4f0 10200$as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
a3097628
AJ
10201
10202 wine_cv_fttrigon=yes
efca0f6a 10203else
a3097628 10204 wine_cv_fttrigon=no
182d150a 10205fi
a3097628 10206rm -f conftest.err conftest.$ac_ext
25e9e4f0
AJ
10207 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10208"
10209if test "x$ac_cv_type_FT_TrueTypeEngineType" = x""yes; then :
a3097628
AJ
10210
10211cat >>confdefs.h <<_ACEOF
10212#define HAVE_FT_TRUETYPEENGINETYPE 1
10213_ACEOF
10214
10215
182d150a 10216fi
f8cb48b5 10217
a3097628 10218 ac_save_CFLAGS="$CFLAGS"
24a55f38 10219 CFLAGS="$CFLAGS $ac_freetype_libs"
25e9e4f0
AJ
10220 for ac_func in FT_Load_Sfnt_Table
10221do :
10222 ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10223if test "x$ac_cv_func_FT_Load_Sfnt_Table" = x""yes; then :
a3097628 10224 cat >>confdefs.h <<_ACEOF
25e9e4f0 10225#define HAVE_FT_LOAD_SFNT_TABLE 1
a3097628
AJ
10226_ACEOF
10227
182d150a 10228fi
a3097628 10229done
182d150a 10230
a3097628
AJ
10231 CFLAGS="$ac_save_CFLAGS"
10232 CPPFLAGS="$ac_save_CPPFLAGS"
10233 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10234 then
d75cc5aa 10235
25e9e4f0 10236$as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
a3097628 10237
24a55f38
AJ
10238 FREETYPELIBS="$ac_freetype_libs"
10239
10240 FREETYPEINCL="$ac_freetype_incl"
10241
a3097628
AJ
10242 fi
10243 fi
10244fi
25e9e4f0 10245if test "x$FREETYPELIBS" = "x"; then :
a20c0e12
AJ
10246 case "x$with_freetype" in
10247 xno) ;;
25e9e4f0
AJ
10248 *) as_fn_error "FreeType ${notice_platform}development files not found. Fonts will not be built.
10249Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
a20c0e12 10250esac
a3097628 10251fi
6de0af1e 10252test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
a20c0e12 10253
25e9e4f0 10254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
abf5048b 10255$as_echo_n "checking for parport header/ppdev.h... " >&6; }
25e9e4f0 10256if test "${ac_cv_c_ppdev+set}" = set; then :
abf5048b 10257 $as_echo_n "(cached) " >&6
c509bc4d 10258else
25e9e4f0 10259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c509bc4d 10260/* end confdefs.h. */
dd33ee99
YD
10261#ifdef HAVE_SYS_IOCTL_H
10262# include <sys/ioctl.h>
10263#endif
a3097628 10264#include <linux/ppdev.h>
c509bc4d
MM
10265int
10266main ()
10267{
a3097628 10268ioctl (1,PPCLAIM,0)
c509bc4d
MM
10269 ;
10270 return 0;
10271}
10272_ACEOF
25e9e4f0 10273if ac_fn_c_try_compile "$LINENO"; then :
a3097628 10274 ac_cv_c_ppdev="yes"
c509bc4d 10275else
25e9e4f0 10276 ac_cv_c_ppdev="no"
c509bc4d 10277fi
0ebeb530 10278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c509bc4d 10279fi
25e9e4f0 10280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
abf5048b 10281$as_echo "$ac_cv_c_ppdev" >&6; }
a3097628
AJ
10282if test "$ac_cv_c_ppdev" = "yes"
10283then
b7443722 10284
25e9e4f0 10285$as_echo "#define HAVE_PPDEV 1" >>confdefs.h
b7443722 10286
a3097628
AJ
10287fi
10288
a3097628
AJ
10289ac_wine_check_funcs_save_LIBS="$LIBS"
10290LIBS="$LIBS $LIBPTHREAD"
a3097628
AJ
10291for ac_func in \
10292 pthread_attr_get_np \
10293 pthread_getattr_np \
10294 pthread_get_stackaddr_np \
10295 pthread_get_stacksize_np
25e9e4f0
AJ
10296do :
10297 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10298ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10299eval as_val=\$$as_ac_var
10300 if test "x$as_val" = x""yes; then :
a3097628 10301 cat >>confdefs.h <<_ACEOF
abf5048b 10302#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
a3097628
AJ
10303_ACEOF
10304
73482144 10305fi
a3097628 10306done
8cc3a5e4 10307
a3097628 10308LIBS="$ac_wine_check_funcs_save_LIBS"
fc6ffb29 10309
11ca05f6
JC
10310if test "$ac_cv_header_zlib_h" = "yes"
10311then
25e9e4f0 10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
11ca05f6 10313$as_echo_n "checking for inflate in -lz... " >&6; }
25e9e4f0 10314if test "${ac_cv_lib_z_inflate+set}" = set; then :
11ca05f6
JC
10315 $as_echo_n "(cached) " >&6
10316else
10317 ac_check_lib_save_LIBS=$LIBS
10318LIBS="-lz $LIBS"
25e9e4f0 10319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11ca05f6
JC
10320/* end confdefs.h. */
10321
10322/* Override any GCC internal prototype to avoid an error.
10323 Use char because int might match the return type of a GCC
10324 builtin and then its argument prototype would still apply. */
10325#ifdef __cplusplus
10326extern "C"
10327#endif
10328char inflate ();
10329int
10330main ()
10331{
10332return inflate ();
10333 ;
10334 return 0;
10335}
10336_ACEOF
25e9e4f0 10337if ac_fn_c_try_link "$LINENO"; then :
11ca05f6
JC
10338 ac_cv_lib_z_inflate=yes
10339else
25e9e4f0 10340 ac_cv_lib_z_inflate=no
11ca05f6 10341fi
25e9e4f0
AJ
10342rm -f core conftest.err conftest.$ac_objext \
10343 conftest$ac_exeext conftest.$ac_ext
11ca05f6
JC
10344LIBS=$ac_check_lib_save_LIBS
10345fi
25e9e4f0 10346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
11ca05f6 10347$as_echo "$ac_cv_lib_z_inflate" >&6; }
25e9e4f0 10348if test "x$ac_cv_lib_z_inflate" = x""yes; then :
11ca05f6 10349
25e9e4f0 10350$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
11ca05f6
JC
10351
10352 ZLIB="-lz"
10353
10354fi
10355
10356fi
10357
3fe5d805
FG
10358if test "x$with_esd" != xno
10359then
10360 save_CFLAGS="$CFLAGS"
10361 # Extract the first word of "esd-config", so it can be a program name with args.
a3097628 10362set dummy esd-config; ac_word=$2
25e9e4f0 10363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
abf5048b 10364$as_echo_n "checking for $ac_word... " >&6; }
25e9e4f0 10365if test "${ac_cv_path_ESDCONFIG+set}" = set; then :
abf5048b 10366 $as_echo_n "(cached) " >&6
fa3a5360 10367else
a3097628
AJ
10368 case $ESDCONFIG in
10369 [\\/]* | ?:[\\/]*)
10370 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10371 ;;
10372 *)
10373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73482144
AJ
10374for as_dir in $PATH
10375do
10376 IFS=$as_save_IFS
10377 test -z "$as_dir" && as_dir=.
25e9e4f0 10378 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 10379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a3097628 10380 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
25e9e4f0 10381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
73482144
AJ
10382 break 2
10383 fi
10384done
25e9e4f0 10385 done
fc6ffb29 10386IFS=$as_save_IFS
73482144 10387
3fe5d805 10388 test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
a3097628
AJ
10389 ;;
10390esac
73482144 10391fi
a3097628
AJ
10392ESDCONFIG=$ac_cv_path_ESDCONFIG
10393if test -n "$ESDCONFIG"; then
25e9e4f0 10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
abf5048b 10395$as_echo "$ESDCONFIG" >&6; }
73482144 10396else
25e9e4f0 10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
abf5048b 10398$as_echo "no" >&6; }
8cc3a5e4
AJ
10399fi
10400
e533e972 10401
3fe5d805
FG
10402 if test "x$ESDCONFIG" != "xno"
10403 then
10404 ac_esd_incl=""
10405 for i in `$ESDCONFIG --cflags`
10406 do
10407 case "$i" in
10408 -I*) ac_esd_incl="$ac_esd_incl $i";;
10409 esac
10410 done
10411 ac_esd_libs=`$ESDCONFIG --libs`
10412 CFLAGS="$CFLAGS $ac_esd_incl"
10413 fi
4bf77d6c 10414 ac_esd_libs=${ac_esd_libs:-"-lesd"}
25e9e4f0
AJ
10415 ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10416if test "x$ac_cv_header_esd_h" = x""yes; then :
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
10418$as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
10419if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then :
3fe5d805 10420 $as_echo_n "(cached) " >&6
3fe5d805 10421else
25e9e4f0
AJ
10422 ac_check_lib_save_LIBS=$LIBS
10423LIBS="-lesd $ac_esd_libs $LIBS"
10424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3fe5d805 10425/* end confdefs.h. */
25e9e4f0
AJ
10426
10427/* Override any GCC internal prototype to avoid an error.
10428 Use char because int might match the return type of a GCC
10429 builtin and then its argument prototype would still apply. */
10430#ifdef __cplusplus
10431extern "C"
10432#endif
10433char esd_open_sound ();
10434int
10435main ()
10436{
10437return esd_open_sound ();
10438 ;
10439 return 0;
10440}
3fe5d805 10441_ACEOF
25e9e4f0
AJ
10442if ac_fn_c_try_link "$LINENO"; then :
10443 ac_cv_lib_esd_esd_open_sound=yes
3fe5d805 10444else
25e9e4f0
AJ
10445 ac_cv_lib_esd_esd_open_sound=no
10446fi
10447rm -f core conftest.err conftest.$ac_objext \
10448 conftest$ac_exeext conftest.$ac_ext
10449LIBS=$ac_check_lib_save_LIBS
3fe5d805 10450fi
25e9e4f0
AJ
10451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
10452$as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
10453if test "x$ac_cv_lib_esd_esd_open_sound" = x""yes; then :
10454 ESDINCL="$ac_esd_incl"
2ffc7e2c 10455
3fe5d805 10456 ESDLIBS="$ac_esd_libs"
2ffc7e2c 10457
a3097628 10458
25e9e4f0 10459$as_echo "#define HAVE_ESD 1" >>confdefs.h
2ffc7e2c
AJ
10460
10461fi
a3097628 10462
3fe5d805
FG
10463fi
10464
10465
a3097628 10466 CFLAGS="$save_CFLAGS"
2ffc7e2c 10467fi
a3097628
AJ
10468
10469ALSALIBS=""
10470
10471if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10472then
25e9e4f0 10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access in -lasound" >&5
abf5048b 10474$as_echo_n "checking for snd_pcm_hw_params_get_access in -lasound... " >&6; }
25e9e4f0 10475if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then :
abf5048b 10476 $as_echo_n "(cached) " >&6
2ffc7e2c 10477else
a3097628
AJ
10478 ac_check_lib_save_LIBS=$LIBS
10479LIBS="-lasound $LIBS"
25e9e4f0 10480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a3097628 10481/* end confdefs.h. */
2ffc7e2c 10482
a3097628
AJ
10483/* Override any GCC internal prototype to avoid an error.
10484 Use char because int might match the return type of a GCC
10485 builtin and then its argument prototype would still apply. */
10486#ifdef __cplusplus
10487extern "C"
10488#endif
10489char snd_pcm_hw_params_get_access ();
10490int
10491main ()
10492{
10493return snd_pcm_hw_params_get_access ();
10494 ;
10495 return 0;
10496}
10497_ACEOF
25e9e4f0 10498if ac_fn_c_try_link "$LINENO"; then :
a3097628 10499 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
2ffc7e2c 10500else
25e9e4f0 10501 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
2ffc7e2c 10502fi
25e9e4f0
AJ
10503rm -f core conftest.err conftest.$ac_objext \
10504 conftest$ac_exeext conftest.$ac_ext
a3097628
AJ
10505LIBS=$ac_check_lib_save_LIBS
10506fi
25e9e4f0 10507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
abf5048b 10508$as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
25e9e4f0
AJ
10509if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access" = x""yes; then :
10510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a3097628
AJ
10511/* end confdefs.h. */
10512#ifdef HAVE_ALSA_ASOUNDLIB_H
10513#include <alsa/asoundlib.h>
10514#elif defined(HAVE_SYS_ASOUNDLIB_H)
10515#include <sys/asoundlib.h>
10516#endif
10517int
10518main ()
10519{
10520int ret = snd_pcm_hw_params_get_access(NULL, NULL)
10521 ;
10522 return 0;
10523}
10524_ACEOF
25e9e4f0 10525if ac_fn_c_try_compile "$LINENO"; then :
42b81ea0 10526
25e9e4f0 10527$as_echo "#define HAVE_ALSA 1" >>confdefs.h
42b81ea0 10528
a3097628 10529 ALSALIBS="-lasound"
a3097628 10530fi
a3097628
AJ
10531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10532fi
4e686043 10533
a3097628
AJ
10534fi
10535
a3097628
AJ
10536AUDIOIOLIBS=""
10537
10538if test "$ac_cv_header_libaudioio_h" = "yes"
10539then
25e9e4f0 10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AudioIOGetVersion in -laudioio" >&5
abf5048b 10541$as_echo_n "checking for AudioIOGetVersion in -laudioio... " >&6; }
25e9e4f0 10542if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then :
abf5048b 10543 $as_echo_n "(cached) " >&6
e533e972 10544else
a3097628
AJ
10545 ac_check_lib_save_LIBS=$LIBS
10546LIBS="-laudioio $LIBS"
25e9e4f0 10547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a3097628
AJ
10548/* end confdefs.h. */
10549
10550/* Override any GCC internal prototype to avoid an error.
10551 Use char because int might match the return type of a GCC
10552 builtin and then its argument prototype would still apply. */
10553#ifdef __cplusplus
10554extern "C"
10555#endif
10556char AudioIOGetVersion ();
10557int
10558main ()
10559{
10560return AudioIOGetVersion ();
10561 ;
10562 return 0;
10563}
e533e972 10564_ACEOF
25e9e4f0 10565if ac_fn_c_try_link "$LINENO"; then :
a3097628 10566 ac_cv_lib_audioio_AudioIOGetVersion=yes
73482144 10567else
25e9e4f0 10568 ac_cv_lib_audioio_AudioIOGetVersion=no
e533e972 10569fi
25e9e4f0
AJ
10570rm -f core conftest.err conftest.$ac_objext \
10571 conftest$ac_exeext conftest.$ac_ext
a3097628 10572LIBS=$ac_check_lib_save_LIBS
e533e972 10573fi
25e9e4f0 10574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
abf5048b 10575$as_echo "$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
25e9e4f0 10576if test "x$ac_cv_lib_audioio_AudioIOGetVersion" = x""yes; then :
a3097628
AJ
10577 AUDIOIOLIBS="-laudioio"
10578
25e9e4f0 10579$as_echo "#define HAVE_LIBAUDIOIO 1" >>confdefs.h
a3097628
AJ
10580
10581fi
10582
10583fi
10584
10585
10586if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10587then
25e9e4f0 10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
abf5048b 10589$as_echo_n "checking for -lcapi20... " >&6; }
25e9e4f0 10590if test "${ac_cv_lib_soname_capi20+set}" = set; then :
abf5048b 10591 $as_echo_n "(cached) " >&6
93a5b868 10592else
3336e9bf 10593 ac_check_soname_save_LIBS=$LIBS
a3097628 10594LIBS="-lcapi20 $LIBS"
25e9e4f0 10595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 10596/* end confdefs.h. */
fa3a5360 10597
a3097628
AJ
10598/* Override any GCC internal prototype to avoid an error.
10599 Use char because int might match the return type of a GCC
10600 builtin and then its argument prototype would still apply. */
10601#ifdef __cplusplus
10602extern "C"
10603#endif
10604char capi20_register ();
e24bcc77
AJ
10605int
10606main ()
10607{
a3097628 10608return capi20_register ();
f5818d2f
AJ
10609 ;
10610 return 0;
10611}
10612_ACEOF
25e9e4f0 10613if ac_fn_c_try_link "$LINENO"; then :
3336e9bf 10614 case "$LIBEXT" in
2b05c840 10615 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
3336e9bf
AJ
10616 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'` ;;
10617 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10618 esac
93a5b868 10619fi
25e9e4f0
AJ
10620rm -f core conftest.err conftest.$ac_objext \
10621 conftest$ac_exeext conftest.$ac_ext
3336e9bf 10622 LIBS=$ac_check_soname_save_LIBS
93a5b868 10623fi
25e9e4f0
AJ
10624if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 10626$as_echo "not found" >&6; }
a3097628 10627
3336e9bf 10628else
25e9e4f0 10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
abf5048b 10630$as_echo "$ac_cv_lib_soname_capi20" >&6; }
3336e9bf
AJ
10631
10632cat >>confdefs.h <<_ACEOF
10633#define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
a3097628
AJ
10634_ACEOF
10635
3336e9bf 10636
702d3556 10637fi
702d3556 10638fi
25e9e4f0 10639if test "x$ac_cv_lib_soname_capi20" = "x"; then :
a41f0f1b 10640 case "x$with_capi" in
0dc503bc 10641 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
a41f0f1b 10642 xno) ;;
25e9e4f0
AJ
10643 *) as_fn_error "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
10644This is an error since --with-capi was requested." "$LINENO" 5 ;;
a41f0f1b 10645esac
f9dec94f
AJ
10646fi
10647
289ea338
FG
10648CUPSINCL=""
10649
10650if test "x$with_cups" != "xno"
702d3556 10651then
289ea338
FG
10652 ac_save_CPPFLAGS="$CPPFLAGS"
10653 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
a991a568 10654 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
289ea338 10655 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
25e9e4f0
AJ
10656 for ac_header in cups/cups.h
10657do :
10658 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
10659if test "x$ac_cv_header_cups_cups_h" = x""yes; then :
289ea338 10660 cat >>confdefs.h <<_ACEOF
25e9e4f0 10661#define HAVE_CUPS_CUPS_H 1
289ea338 10662_ACEOF
25e9e4f0 10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
abf5048b 10664$as_echo_n "checking for -lcups... " >&6; }
25e9e4f0 10665if test "${ac_cv_lib_soname_cups+set}" = set; then :
abf5048b 10666 $as_echo_n "(cached) " >&6
702d3556
AJ
10667else
10668 ac_check_soname_save_LIBS=$LIBS
289ea338 10669LIBS="-lcups $ac_cups_libs $LIBS"
25e9e4f0 10670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
702d3556
AJ
10671/* end confdefs.h. */
10672
10673/* Override any GCC internal prototype to avoid an error.
10674 Use char because int might match the return type of a GCC
10675 builtin and then its argument prototype would still apply. */
10676#ifdef __cplusplus
10677extern "C"
10678#endif
10679char cupsGetDefault ();
10680int
10681main ()
10682{
10683return cupsGetDefault ();
10684 ;
10685 return 0;
10686}
10687_ACEOF
25e9e4f0 10688if ac_fn_c_try_link "$LINENO"; then :
702d3556 10689 case "$LIBEXT" in
2b05c840 10690 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
702d3556
AJ
10691 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'` ;;
10692 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10693 esac
702d3556 10694fi
25e9e4f0
AJ
10695rm -f core conftest.err conftest.$ac_objext \
10696 conftest$ac_exeext conftest.$ac_ext
702d3556
AJ
10697 LIBS=$ac_check_soname_save_LIBS
10698fi
25e9e4f0
AJ
10699if test "x$ac_cv_lib_soname_cups" = "x"; then :
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 10701$as_echo "not found" >&6; }
702d3556
AJ
10702
10703else
25e9e4f0 10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
abf5048b 10705$as_echo "$ac_cv_lib_soname_cups" >&6; }
702d3556
AJ
10706
10707cat >>confdefs.h <<_ACEOF
10708#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10709_ACEOF
10710
289ea338
FG
10711 CUPSINCL="$ac_cups_cflags"
10712fi
34200c35
AJ
10713fi
10714
289ea338
FG
10715done
10716
10717 CPPFLAGS="$ac_save_CPPFLAGS"
34200c35 10718fi
25e9e4f0 10719if test "x$ac_cv_lib_soname_cups" = "x"; then :
a41f0f1b 10720 case "x$with_cups" in
0dc503bc 10721 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
a41f0f1b 10722 xno) ;;
25e9e4f0
AJ
10723 *) as_fn_error "libcups ${notice_platform}development files not found, CUPS won't be supported.
10724This is an error since --with-cups was requested." "$LINENO" 5 ;;
a41f0f1b 10725esac
f9dec94f
AJ
10726fi
10727
34200c35
AJ
10728if test "$ac_cv_header_jack_jack_h" = "yes"
10729then
25e9e4f0 10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
abf5048b 10731$as_echo_n "checking for -ljack... " >&6; }
25e9e4f0 10732if test "${ac_cv_lib_soname_jack+set}" = set; then :
abf5048b 10733 $as_echo_n "(cached) " >&6
34200c35
AJ
10734else
10735 ac_check_soname_save_LIBS=$LIBS
10736LIBS="-ljack $LIBS"
25e9e4f0 10737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34200c35
AJ
10738/* end confdefs.h. */
10739
10740/* Override any GCC internal prototype to avoid an error.
10741 Use char because int might match the return type of a GCC
10742 builtin and then its argument prototype would still apply. */
10743#ifdef __cplusplus
10744extern "C"
10745#endif
10746char jack_client_new ();
10747int
10748main ()
10749{
10750return jack_client_new ();
10751 ;
10752 return 0;
10753}
10754_ACEOF
25e9e4f0 10755if ac_fn_c_try_link "$LINENO"; then :
34200c35 10756 case "$LIBEXT" in
2b05c840 10757 dll) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest.exe | grep "jack" | sed -e "s/dll.*/dll/"';2,$d'` ;;
90a6fb04
FG
10758 dylib) ac_cv_lib_soname_jack=`otool -L conftest$ac_exeext | grep "libjack-*[0-9.]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libjack-*[0-9.]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10759 *) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjack-*[0-9.]*\\.$LIBEXT" | sed -e "s/^.*\(libjack-*[0-9.]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
34200c35 10760 esac
34200c35 10761fi
25e9e4f0
AJ
10762rm -f core conftest.err conftest.$ac_objext \
10763 conftest$ac_exeext conftest.$ac_ext
34200c35
AJ
10764 LIBS=$ac_check_soname_save_LIBS
10765fi
25e9e4f0
AJ
10766if test "x$ac_cv_lib_soname_jack" = "x"; then :
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 10768$as_echo "not found" >&6; }
34200c35
AJ
10769
10770else
25e9e4f0 10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
abf5048b 10772$as_echo "$ac_cv_lib_soname_jack" >&6; }
34200c35
AJ
10773
10774cat >>confdefs.h <<_ACEOF
10775#define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
10776_ACEOF
10777
10778
ccd5f284 10779fi
ccd5f284
AJ
10780fi
10781
10782if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10783then
25e9e4f0 10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
abf5048b 10785$as_echo_n "checking for -lfontconfig... " >&6; }
25e9e4f0 10786if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
abf5048b 10787 $as_echo_n "(cached) " >&6
ccd5f284
AJ
10788else
10789 ac_check_soname_save_LIBS=$LIBS
10790LIBS="-lfontconfig $LIBS"
25e9e4f0 10791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ccd5f284
AJ
10792/* end confdefs.h. */
10793
10794/* Override any GCC internal prototype to avoid an error.
10795 Use char because int might match the return type of a GCC
10796 builtin and then its argument prototype would still apply. */
10797#ifdef __cplusplus
10798extern "C"
10799#endif
10800char FcInit ();
10801int
10802main ()
10803{
10804return FcInit ();
10805 ;
10806 return 0;
10807}
10808_ACEOF
25e9e4f0 10809if ac_fn_c_try_link "$LINENO"; then :
ccd5f284 10810 case "$LIBEXT" in
2b05c840 10811 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
ccd5f284
AJ
10812 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'` ;;
10813 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10814 esac
ccd5f284 10815fi
25e9e4f0
AJ
10816rm -f core conftest.err conftest.$ac_objext \
10817 conftest$ac_exeext conftest.$ac_ext
ccd5f284
AJ
10818 LIBS=$ac_check_soname_save_LIBS
10819fi
25e9e4f0
AJ
10820if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 10822$as_echo "not found" >&6; }
ccd5f284
AJ
10823
10824else
25e9e4f0 10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
abf5048b 10826$as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
ccd5f284
AJ
10827
10828cat >>confdefs.h <<_ACEOF
10829#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10830_ACEOF
10831
10832
f91909b3 10833fi
a41f0f1b 10834elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
5c076730
AJ
10835then
10836 ac_save_CPPFLAGS="$CPPFLAGS"
10837 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10838 $as_unset ac_cv_header_fontconfig_fontconfig_h
25e9e4f0
AJ
10839 for ac_header in fontconfig/fontconfig.h
10840do :
10841 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
10842if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
5c076730 10843 cat >>confdefs.h <<_ACEOF
25e9e4f0 10844#define HAVE_FONTCONFIG_FONTCONFIG_H 1
5c076730
AJ
10845_ACEOF
10846
10847fi
10848
10849done
10850
10851 CPPFLAGS="$ac_save_CPPFLAGS"
10852 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10853 then
10854 FONTCONFIGINCL="$X_CFLAGS"
10855
25e9e4f0 10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
abf5048b 10857$as_echo_n "checking for -lfontconfig... " >&6; }
25e9e4f0 10858if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
abf5048b 10859 $as_echo_n "(cached) " >&6
5c076730
AJ
10860else
10861 ac_check_soname_save_LIBS=$LIBS
10862LIBS="-lfontconfig $X_LIBS $LIBS"
25e9e4f0 10863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c076730
AJ
10864/* end confdefs.h. */
10865
10866/* Override any GCC internal prototype to avoid an error.
10867 Use char because int might match the return type of a GCC
10868 builtin and then its argument prototype would still apply. */
10869#ifdef __cplusplus
10870extern "C"
10871#endif
10872char FcInit ();
10873int
10874main ()
10875{
10876return FcInit ();
10877 ;
10878 return 0;
10879}
10880_ACEOF
25e9e4f0 10881if ac_fn_c_try_link "$LINENO"; then :
5c076730 10882 case "$LIBEXT" in
2b05c840 10883 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
5c076730
AJ
10884 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'` ;;
10885 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10886 esac
5c076730 10887fi
25e9e4f0
AJ
10888rm -f core conftest.err conftest.$ac_objext \
10889 conftest$ac_exeext conftest.$ac_ext
5c076730
AJ
10890 LIBS=$ac_check_soname_save_LIBS
10891fi
25e9e4f0
AJ
10892if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 10894$as_echo "not found" >&6; }
5c076730
AJ
10895
10896else
25e9e4f0 10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
abf5048b 10898$as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
5c076730
AJ
10899
10900cat >>confdefs.h <<_ACEOF
10901#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10902_ACEOF
10903
10904
10905fi
5c076730 10906 fi
f91909b3 10907fi
25e9e4f0 10908if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
a41f0f1b 10909 case "x$with_fontconfig" in
0dc503bc 10910 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
a41f0f1b 10911 xno) ;;
25e9e4f0
AJ
10912 *) as_fn_error "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
10913This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
a41f0f1b 10914esac
7f674966
AJ
10915fi
10916
f91909b3
AJ
10917if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
10918then
25e9e4f0 10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
abf5048b 10920$as_echo_n "checking for -lssl... " >&6; }
25e9e4f0 10921if test "${ac_cv_lib_soname_ssl+set}" = set; then :
abf5048b 10922 $as_echo_n "(cached) " >&6
f91909b3
AJ
10923else
10924 ac_check_soname_save_LIBS=$LIBS
10925LIBS="-lssl $LIBS"
25e9e4f0 10926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f91909b3
AJ
10927/* end confdefs.h. */
10928
10929/* Override any GCC internal prototype to avoid an error.
10930 Use char because int might match the return type of a GCC
10931 builtin and then its argument prototype would still apply. */
10932#ifdef __cplusplus
10933extern "C"
10934#endif
10935char SSL_library_init ();
10936int
10937main ()
10938{
10939return SSL_library_init ();
10940 ;
10941 return 0;
10942}
10943_ACEOF
25e9e4f0 10944if ac_fn_c_try_link "$LINENO"; then :
f91909b3 10945 case "$LIBEXT" in
2b05c840 10946 dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
f91909b3
AJ
10947 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'` ;;
10948 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10949 esac
f91909b3 10950fi
25e9e4f0
AJ
10951rm -f core conftest.err conftest.$ac_objext \
10952 conftest$ac_exeext conftest.$ac_ext
f91909b3
AJ
10953 LIBS=$ac_check_soname_save_LIBS
10954fi
25e9e4f0
AJ
10955if test "x$ac_cv_lib_soname_ssl" = "x"; then :
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 10957$as_echo "not found" >&6; }
f91909b3
AJ
10958
10959else
25e9e4f0 10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
abf5048b 10961$as_echo "$ac_cv_lib_soname_ssl" >&6; }
f91909b3
AJ
10962
10963cat >>confdefs.h <<_ACEOF
10964#define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
10965_ACEOF
10966
10967
10968fi
25e9e4f0 10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
abf5048b 10970$as_echo_n "checking for -lcrypto... " >&6; }
25e9e4f0 10971if test "${ac_cv_lib_soname_crypto+set}" = set; then :
abf5048b 10972 $as_echo_n "(cached) " >&6
f91909b3
AJ
10973else
10974 ac_check_soname_save_LIBS=$LIBS
10975LIBS="-lcrypto $LIBS"
25e9e4f0 10976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f91909b3
AJ
10977/* end confdefs.h. */
10978
10979/* Override any GCC internal prototype to avoid an error.
10980 Use char because int might match the return type of a GCC
10981 builtin and then its argument prototype would still apply. */
10982#ifdef __cplusplus
10983extern "C"
10984#endif
10985char BIO_new_socket ();
10986int
10987main ()
10988{
10989return BIO_new_socket ();
10990 ;
10991 return 0;
10992}
10993_ACEOF
25e9e4f0 10994if ac_fn_c_try_link "$LINENO"; then :
f91909b3 10995 case "$LIBEXT" in
2b05c840 10996 dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
f91909b3
AJ
10997 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'` ;;
10998 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10999 esac
f91909b3 11000fi
25e9e4f0
AJ
11001rm -f core conftest.err conftest.$ac_objext \
11002 conftest$ac_exeext conftest.$ac_ext
f91909b3
AJ
11003 LIBS=$ac_check_soname_save_LIBS
11004fi
25e9e4f0
AJ
11005if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 11007$as_echo "not found" >&6; }
f91909b3
AJ
11008
11009else
25e9e4f0 11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
abf5048b 11011$as_echo "$ac_cv_lib_soname_crypto" >&6; }
f91909b3
AJ
11012
11013cat >>confdefs.h <<_ACEOF
11014#define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11015_ACEOF
11016
11017
d0fddf4f 11018fi
d0fddf4f 11019fi
25e9e4f0 11020if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
a41f0f1b 11021 case "x$with_openssl" in
0dc503bc 11022 x) as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
a41f0f1b 11023 xno) ;;
25e9e4f0
AJ
11024 *) as_fn_error "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11025This is an error since --with-openssl was requested." "$LINENO" 5 ;;
a41f0f1b 11026esac
7f674966
AJ
11027fi
11028
c186d8a3 11029if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
58b5a3f6 11030then
25e9e4f0 11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
58b5a3f6 11032$as_echo_n "checking for -lgsm... " >&6; }
25e9e4f0 11033if test "${ac_cv_lib_soname_gsm+set}" = set; then :
58b5a3f6
ML
11034 $as_echo_n "(cached) " >&6
11035else
11036 ac_check_soname_save_LIBS=$LIBS
11037LIBS="-lgsm $LIBS"
25e9e4f0 11038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58b5a3f6
ML
11039/* end confdefs.h. */
11040
11041/* Override any GCC internal prototype to avoid an error.
11042 Use char because int might match the return type of a GCC
11043 builtin and then its argument prototype would still apply. */
11044#ifdef __cplusplus
11045extern "C"
11046#endif
11047char gsm_create ();
11048int
11049main ()
11050{
11051return gsm_create ();
11052 ;
11053 return 0;
11054}
11055_ACEOF
25e9e4f0 11056if ac_fn_c_try_link "$LINENO"; then :
58b5a3f6 11057 case "$LIBEXT" in
2b05c840 11058 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
58b5a3f6
ML
11059 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'` ;;
11060 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11061 esac
58b5a3f6 11062fi
25e9e4f0
AJ
11063rm -f core conftest.err conftest.$ac_objext \
11064 conftest$ac_exeext conftest.$ac_ext
58b5a3f6
ML
11065 LIBS=$ac_check_soname_save_LIBS
11066fi
25e9e4f0
AJ
11067if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
58b5a3f6
ML
11069$as_echo "not found" >&6; }
11070
11071else
25e9e4f0 11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
58b5a3f6
ML
11073$as_echo "$ac_cv_lib_soname_gsm" >&6; }
11074
11075cat >>confdefs.h <<_ACEOF
11076#define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11077_ACEOF
11078
11079
11080fi
58b5a3f6 11081fi
25e9e4f0 11082if test "x$ac_cv_lib_soname_gsm" = "x"; then :
6ce32e0d 11083 case "x$with_gsm" in
0dc503bc 11084 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
58b5a3f6 11085 xno) ;;
25e9e4f0 11086 *) as_fn_error "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
6ce32e0d 11087This is an error since --with-gsm was requested." "$LINENO" 5 ;;
58b5a3f6
ML
11088esac
11089fi
11090
d0fddf4f
AJ
11091if test "$ac_cv_header_jpeglib_h" = "yes"
11092then
25e9e4f0 11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
abf5048b 11094$as_echo_n "checking for -ljpeg... " >&6; }
25e9e4f0 11095if test "${ac_cv_lib_soname_jpeg+set}" = set; then :
abf5048b 11096 $as_echo_n "(cached) " >&6
d0fddf4f
AJ
11097else
11098 ac_check_soname_save_LIBS=$LIBS
11099LIBS="-ljpeg $LIBS"
25e9e4f0 11100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0fddf4f
AJ
11101/* end confdefs.h. */
11102
11103/* Override any GCC internal prototype to avoid an error.
11104 Use char because int might match the return type of a GCC
11105 builtin and then its argument prototype would still apply. */
11106#ifdef __cplusplus
11107extern "C"
11108#endif
11109char jpeg_start_decompress ();
11110int
11111main ()
11112{
11113return jpeg_start_decompress ();
11114 ;
11115 return 0;
11116}
11117_ACEOF
25e9e4f0 11118if ac_fn_c_try_link "$LINENO"; then :
d0fddf4f 11119 case "$LIBEXT" in
2b05c840 11120 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
d0fddf4f
AJ
11121 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'` ;;
11122 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11123 esac
d0fddf4f 11124fi
25e9e4f0
AJ
11125rm -f core conftest.err conftest.$ac_objext \
11126 conftest$ac_exeext conftest.$ac_ext
d0fddf4f
AJ
11127 LIBS=$ac_check_soname_save_LIBS
11128fi
25e9e4f0
AJ
11129if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 11131$as_echo "not found" >&6; }
d0fddf4f
AJ
11132
11133else
25e9e4f0 11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
abf5048b 11135$as_echo "$ac_cv_lib_soname_jpeg" >&6; }
d0fddf4f
AJ
11136
11137cat >>confdefs.h <<_ACEOF
11138#define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11139_ACEOF
11140
11141
00302152 11142fi
00302152 11143fi
25e9e4f0 11144if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
a41f0f1b 11145 case "x$with_jpeg" in
0dc503bc 11146 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
a41f0f1b 11147 xno) ;;
25e9e4f0
AJ
11148 *) as_fn_error "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11149This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
a41f0f1b 11150esac
7f674966
AJ
11151fi
11152
00302152
AJ
11153if test "$ac_cv_header_png_h" = "yes"
11154then
25e9e4f0 11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
abf5048b 11156$as_echo_n "checking for -lpng... " >&6; }
25e9e4f0 11157if test "${ac_cv_lib_soname_png+set}" = set; then :
abf5048b 11158 $as_echo_n "(cached) " >&6
00302152
AJ
11159else
11160 ac_check_soname_save_LIBS=$LIBS
fe8879e6 11161LIBS="-lpng -lm -lz $LIBS"
25e9e4f0 11162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
00302152
AJ
11163/* end confdefs.h. */
11164
11165/* Override any GCC internal prototype to avoid an error.
11166 Use char because int might match the return type of a GCC
11167 builtin and then its argument prototype would still apply. */
11168#ifdef __cplusplus
11169extern "C"
11170#endif
11171char png_create_read_struct ();
11172int
11173main ()
11174{
11175return png_create_read_struct ();
11176 ;
11177 return 0;
11178}
11179_ACEOF
25e9e4f0 11180if ac_fn_c_try_link "$LINENO"; then :
00302152 11181 case "$LIBEXT" in
2b05c840 11182 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
00302152
AJ
11183 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'` ;;
11184 *) 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'` ;;
11185 esac
00302152 11186fi
25e9e4f0
AJ
11187rm -f core conftest.err conftest.$ac_objext \
11188 conftest$ac_exeext conftest.$ac_ext
00302152
AJ
11189 LIBS=$ac_check_soname_save_LIBS
11190fi
25e9e4f0
AJ
11191if test "x$ac_cv_lib_soname_png" = "x"; then :
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 11193$as_echo "not found" >&6; }
00302152
AJ
11194
11195else
25e9e4f0 11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
abf5048b 11197$as_echo "$ac_cv_lib_soname_png" >&6; }
00302152
AJ
11198
11199cat >>confdefs.h <<_ACEOF
11200#define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11201_ACEOF
11202
11203
a3097628 11204fi
615e0e64
MM
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11206$as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11207if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11208 $as_echo_n "(cached) " >&6
11209else
11210 ac_check_lib_save_LIBS=$LIBS
11211LIBS="-lpng -lm -lz $LIBS"
11212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11213/* end confdefs.h. */
11214
11215/* Override any GCC internal prototype to avoid an error.
11216 Use char because int might match the return type of a GCC
11217 builtin and then its argument prototype would still apply. */
11218#ifdef __cplusplus
11219extern "C"
11220#endif
11221char png_set_expand_gray_1_2_4_to_8 ();
11222int
11223main ()
11224{
11225return png_set_expand_gray_1_2_4_to_8 ();
11226 ;
11227 return 0;
11228}
11229_ACEOF
11230if ac_fn_c_try_link "$LINENO"; then :
11231 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11232else
11233 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11234fi
11235rm -f core conftest.err conftest.$ac_objext \
11236 conftest$ac_exeext conftest.$ac_ext
11237LIBS=$ac_check_lib_save_LIBS
11238fi
11239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11240$as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11241if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11242
11243$as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11244
11245
11246fi
11247
85b6189c
JCH
11248elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11249then
11250 ac_save_CPPFLAGS="$CPPFLAGS"
11251 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11252 $as_unset ac_cv_header_png_h
25e9e4f0
AJ
11253 for ac_header in png.h
11254do :
11255 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11256if test "x$ac_cv_header_png_h" = x""yes; then :
11257 cat >>confdefs.h <<_ACEOF
11258#define HAVE_PNG_H 1
11259_ACEOF
85b6189c 11260
85b6189c 11261fi
25e9e4f0
AJ
11262
11263done
11264
11265 CPPFLAGS="$ac_save_CPPFLAGS"
11266 if test "$ac_cv_header_png_h" = "yes"
11267 then
11268 PNGINCL="$X_CFLAGS"
11269
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11271$as_echo_n "checking for -lpng... " >&6; }
11272if test "${ac_cv_lib_soname_png+set}" = set; then :
11273 $as_echo_n "(cached) " >&6
85b6189c 11274else
25e9e4f0
AJ
11275 ac_check_soname_save_LIBS=$LIBS
11276LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85b6189c 11278/* end confdefs.h. */
85b6189c 11279
25e9e4f0
AJ
11280/* Override any GCC internal prototype to avoid an error.
11281 Use char because int might match the return type of a GCC
11282 builtin and then its argument prototype would still apply. */
11283#ifdef __cplusplus
11284extern "C"
11285#endif
11286char png_create_read_struct ();
11287int
11288main ()
11289{
11290return png_create_read_struct ();
11291 ;
11292 return 0;
11293}
11294_ACEOF
11295if ac_fn_c_try_link "$LINENO"; then :
11296 case "$LIBEXT" in
2b05c840 11297 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
25e9e4f0
AJ
11298 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'` ;;
11299 *) 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'` ;;
11300 esac
11301fi
11302rm -f core conftest.err conftest.$ac_objext \
11303 conftest$ac_exeext conftest.$ac_ext
11304 LIBS=$ac_check_soname_save_LIBS
85b6189c 11305fi
25e9e4f0
AJ
11306if test "x$ac_cv_lib_soname_png" = "x"; then :
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11308$as_echo "not found" >&6; }
85b6189c 11309
25e9e4f0
AJ
11310else
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11312$as_echo "$ac_cv_lib_soname_png" >&6; }
85b6189c 11313
25e9e4f0
AJ
11314cat >>confdefs.h <<_ACEOF
11315#define SONAME_LIBPNG "$ac_cv_lib_soname_png"
85b6189c
JCH
11316_ACEOF
11317
11318
11319fi
615e0e64
MM
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11321$as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11322if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11323 $as_echo_n "(cached) " >&6
11324else
11325 ac_check_lib_save_LIBS=$LIBS
11326LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11328/* end confdefs.h. */
11329
11330/* Override any GCC internal prototype to avoid an error.
11331 Use char because int might match the return type of a GCC
11332 builtin and then its argument prototype would still apply. */
11333#ifdef __cplusplus
11334extern "C"
11335#endif
11336char png_set_expand_gray_1_2_4_to_8 ();
11337int
11338main ()
11339{
11340return png_set_expand_gray_1_2_4_to_8 ();
11341 ;
11342 return 0;
11343}
11344_ACEOF
11345if ac_fn_c_try_link "$LINENO"; then :
11346 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11347else
11348 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11349fi
11350rm -f core conftest.err conftest.$ac_objext \
11351 conftest$ac_exeext conftest.$ac_ext
11352LIBS=$ac_check_lib_save_LIBS
11353fi
11354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11355$as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11356if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11357 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11358
11359fi
11360
85b6189c 11361 fi
a3097628 11362fi
25e9e4f0 11363if test "x$ac_cv_lib_soname_png" = "x"; then :
a41f0f1b 11364 case "x$with_png" in
0dc503bc 11365 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
a41f0f1b 11366 xno) ;;
25e9e4f0
AJ
11367 *) as_fn_error "libpng ${notice_platform}development files not found, PNG won't be supported.
11368This is an error since --with-png was requested." "$LINENO" 5 ;;
a41f0f1b 11369esac
7f674966
AJ
11370fi
11371
73cd5693
VP
11372if test "$ac_cv_header_tiffio_h" = "yes"
11373then
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11375$as_echo_n "checking for -ltiff... " >&6; }
11376if test "${ac_cv_lib_soname_tiff+set}" = set; then :
11377 $as_echo_n "(cached) " >&6
11378else
11379 ac_check_soname_save_LIBS=$LIBS
11380LIBS="-ltiff $LIBS"
11381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11382/* end confdefs.h. */
11383
11384/* Override any GCC internal prototype to avoid an error.
11385 Use char because int might match the return type of a GCC
11386 builtin and then its argument prototype would still apply. */
11387#ifdef __cplusplus
11388extern "C"
11389#endif
11390char TIFFClientOpen ();
11391int
11392main ()
11393{
11394return TIFFClientOpen ();
11395 ;
11396 return 0;
11397}
11398_ACEOF
11399if ac_fn_c_try_link "$LINENO"; then :
11400 case "$LIBEXT" in
11401 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11402 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'` ;;
11403 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11404 esac
11405fi
11406rm -f core conftest.err conftest.$ac_objext \
11407 conftest$ac_exeext conftest.$ac_ext
11408 LIBS=$ac_check_soname_save_LIBS
11409fi
11410if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11412$as_echo "not found" >&6; }
11413
11414else
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11416$as_echo "$ac_cv_lib_soname_tiff" >&6; }
11417
11418cat >>confdefs.h <<_ACEOF
11419#define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11420_ACEOF
11421
11422
11423fi
11424fi
11425if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11426 case "x$with_tiff" in
11427 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11428 xno) ;;
11429 *) as_fn_error "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11430This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11431esac
11432fi
11433
db71d7c0
AS
11434if test "$ac_cv_header_mpg123_h" = "yes"
11435then
7bf8d057
AJ
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11437$as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11438if test "${ac_cv_lib_mpg123_mpg123_feed+set}" = set; then :
db71d7c0
AS
11439 $as_echo_n "(cached) " >&6
11440else
11441 ac_check_lib_save_LIBS=$LIBS
11442LIBS="-lmpg123 $LIBS"
11443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11444/* end confdefs.h. */
11445
11446/* Override any GCC internal prototype to avoid an error.
11447 Use char because int might match the return type of a GCC
11448 builtin and then its argument prototype would still apply. */
11449#ifdef __cplusplus
11450extern "C"
11451#endif
7bf8d057 11452char mpg123_feed ();
db71d7c0
AS
11453int
11454main ()
11455{
7bf8d057 11456return mpg123_feed ();
db71d7c0
AS
11457 ;
11458 return 0;
11459}
11460_ACEOF
11461if ac_fn_c_try_link "$LINENO"; then :
7bf8d057 11462 ac_cv_lib_mpg123_mpg123_feed=yes
db71d7c0 11463else
7bf8d057 11464 ac_cv_lib_mpg123_mpg123_feed=no
db71d7c0
AS
11465fi
11466rm -f core conftest.err conftest.$ac_objext \
11467 conftest$ac_exeext conftest.$ac_ext
11468LIBS=$ac_check_lib_save_LIBS
11469fi
7bf8d057
AJ
11470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11471$as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11472if test "x$ac_cv_lib_mpg123_mpg123_feed" = x""yes; then :
db71d7c0
AS
11473 LIBMPG123="-lmpg123"
11474
11475fi
11476
11477fi
4430ab43 11478if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
db71d7c0 11479 case "x$with_mpg123" in
0dc503bc 11480 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
db71d7c0 11481 xno) ;;
7bf8d057 11482 *) as_fn_error "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
db71d7c0
AS
11483This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11484esac
11485fi
c58eff62 11486test "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 11487
862965f4
CR
11488if test "$ac_cv_header_AL_al_h" = "yes"
11489then
d435499f
ML
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11491$as_echo_n "checking for -lopenal... " >&6; }
11492if test "${ac_cv_lib_soname_openal+set}" = set; then :
862965f4
CR
11493 $as_echo_n "(cached) " >&6
11494else
d435499f 11495 ac_check_soname_save_LIBS=$LIBS
862965f4 11496LIBS="-lopenal $LIBS"
d435499f 11497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
862965f4
CR
11498/* end confdefs.h. */
11499
11500/* Override any GCC internal prototype to avoid an error.
11501 Use char because int might match the return type of a GCC
11502 builtin and then its argument prototype would still apply. */
11503#ifdef __cplusplus
11504extern "C"
11505#endif
11506char alGetSource3i ();
11507int
11508main ()
11509{
11510return alGetSource3i ();
11511 ;
11512 return 0;
11513}
11514_ACEOF
11515if ac_fn_c_try_link "$LINENO"; then :
d435499f
ML
11516 case "$LIBEXT" in
11517 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11518 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'` ;;
11519 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11520 esac
862965f4
CR
11521fi
11522rm -f core conftest.err conftest.$ac_objext \
11523 conftest$ac_exeext conftest.$ac_ext
d435499f 11524 LIBS=$ac_check_soname_save_LIBS
862965f4 11525fi
d435499f
ML
11526if test "x$ac_cv_lib_soname_openal" = "x"; then :
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11528$as_echo "not found" >&6; }
862965f4 11529
d435499f
ML
11530else
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11532$as_echo "$ac_cv_lib_soname_openal" >&6; }
11533
11534cat >>confdefs.h <<_ACEOF
11535#define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11536_ACEOF
11537
11538 LIBOPENAL="-lopenal"
862965f4 11539
d435499f
ML
11540 ac_cv_lib_openal=yes
11541
11542cat >>confdefs.h <<_ACEOF
11543#define HAVE_OPENAL 1
11544_ACEOF
11545
11546fi
862965f4 11547fi
d435499f 11548if test "x$ac_cv_lib_openal" != xyes; then :
862965f4 11549 case "x$with_openal" in
0dc503bc 11550 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
862965f4
CR
11551 xno) ;;
11552 *) as_fn_error "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11553This is an error since --with-openal was requested." "$LINENO" 5 ;;
11554esac
11555fi
d435499f 11556test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
862965f4 11557
de1d7fbe
AJ
11558if test "$ac_cv_header_kstat_h" = "yes"
11559then
25e9e4f0 11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
de1d7fbe 11561$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
25e9e4f0 11562if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
de1d7fbe
AJ
11563 $as_echo_n "(cached) " >&6
11564else
11565 ac_check_lib_save_LIBS=$LIBS
11566LIBS="-lkstat $LIBS"
25e9e4f0 11567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
de1d7fbe
AJ
11568/* end confdefs.h. */
11569
11570/* Override any GCC internal prototype to avoid an error.
11571 Use char because int might match the return type of a GCC
11572 builtin and then its argument prototype would still apply. */
11573#ifdef __cplusplus
11574extern "C"
11575#endif
11576char kstat_open ();
11577int
11578main ()
11579{
11580return kstat_open ();
11581 ;
11582 return 0;
11583}
11584_ACEOF
25e9e4f0 11585if ac_fn_c_try_link "$LINENO"; then :
de1d7fbe
AJ
11586 ac_cv_lib_kstat_kstat_open=yes
11587else
25e9e4f0 11588 ac_cv_lib_kstat_kstat_open=no
de1d7fbe 11589fi
25e9e4f0
AJ
11590rm -f core conftest.err conftest.$ac_objext \
11591 conftest$ac_exeext conftest.$ac_ext
de1d7fbe
AJ
11592LIBS=$ac_check_lib_save_LIBS
11593fi
25e9e4f0 11594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
de1d7fbe 11595$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
25e9e4f0 11596if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
de1d7fbe 11597
25e9e4f0 11598$as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
de1d7fbe
AJ
11599
11600 LIBKSTAT="-lkstat"
11601
11602fi
11603
11604fi
11605
25e9e4f0 11606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
abf5048b 11607$as_echo_n "checking for -lodbc... " >&6; }
25e9e4f0 11608if test "${ac_cv_lib_soname_odbc+set}" = set; then :
abf5048b 11609 $as_echo_n "(cached) " >&6
84f8ab6b
AJ
11610else
11611 ac_check_soname_save_LIBS=$LIBS
11612LIBS="-lodbc $LIBS"
25e9e4f0 11613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84f8ab6b
AJ
11614/* end confdefs.h. */
11615
11616/* Override any GCC internal prototype to avoid an error.
11617 Use char because int might match the return type of a GCC
11618 builtin and then its argument prototype would still apply. */
11619#ifdef __cplusplus
11620extern "C"
11621#endif
11622char SQLConnect ();
11623int
11624main ()
11625{
11626return SQLConnect ();
11627 ;
11628 return 0;
11629}
11630_ACEOF
25e9e4f0 11631if ac_fn_c_try_link "$LINENO"; then :
84f8ab6b 11632 case "$LIBEXT" in
2b05c840 11633 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
84f8ab6b
AJ
11634 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'` ;;
11635 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11636 esac
84f8ab6b 11637fi
25e9e4f0
AJ
11638rm -f core conftest.err conftest.$ac_objext \
11639 conftest$ac_exeext conftest.$ac_ext
84f8ab6b
AJ
11640 LIBS=$ac_check_soname_save_LIBS
11641fi
25e9e4f0
AJ
11642if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
abf5048b 11644$as_echo "not found" >&6; }
84f8ab6b
AJ
11645 cat >>confdefs.h <<_ACEOF
11646#define SONAME_LIBODBC "libodbc.$LIBEXT"
11647_ACEOF
11648
11649else
25e9e4f0 11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
abf5048b 11651$as_echo "$ac_cv_lib_soname_odbc" >&6; }
84f8ab6b
AJ
11652
11653cat >>confdefs.h <<_ACEOF
11654#define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11655_ACEOF
11656
11657
11658fi
11659
3089a9f2 11660if test "x$ALSALIBS$AUDIOIOLIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
a41f0f1b
AJ
11661 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
11662 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
11663 "$ac_cv_header_soundcard_h" != "yes" -a \
11664 "x$with_alsa$with_audioio$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnonononononono
11665then
0dc503bc 11666 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
f9dec94f
AJ
11667fi
11668
11669
a3097628
AJ
11670EXTRACFLAGS=""
11671
11672if test "x${GCC}" = "xyes"
11673then
11674 EXTRACFLAGS="-Wall -pipe"
11675
25e9e4f0 11676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
abf5048b 11677$as_echo_n "checking for gcc strength-reduce bug... " >&6; }
25e9e4f0 11678if test "${ac_cv_c_gcc_strength_bug+set}" = set; then :
abf5048b 11679 $as_echo_n "(cached) " >&6
0623a6f3 11680else
25e9e4f0 11681 if test "$cross_compiling" = yes; then :
a3097628
AJ
11682 ac_cv_c_gcc_strength_bug="yes"
11683else
25e9e4f0 11684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 11685/* end confdefs.h. */
a3097628 11686int L[4] = {0,1,2,3};
f5818d2f
AJ
11687int
11688main ()
11689{
a3097628
AJ
11690static int Array[3];
11691 unsigned int B = 3;
11692 int i;
11693 for(i=0; i<B; i++) Array[i] = i - 3;
11694 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11695 L[i] = 4;
95251a78 11696 return (Array[1] != -2 || L[2] != 3)
f5818d2f
AJ
11697 ;
11698 return 0;
11699}
11700_ACEOF
25e9e4f0 11701if ac_fn_c_try_run "$LINENO"; then :
a3097628 11702 ac_cv_c_gcc_strength_bug="no"
0623a6f3 11703else
25e9e4f0 11704 ac_cv_c_gcc_strength_bug="yes"
fa3a5360 11705fi
25e9e4f0
AJ
11706rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11707 conftest.$ac_objext conftest.beam conftest.$ac_ext
182d150a
AJ
11708fi
11709
11710fi
25e9e4f0 11711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
abf5048b 11712$as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
a3097628
AJ
11713 if test "$ac_cv_c_gcc_strength_bug" = "yes"
11714 then
11715 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
11716 fi
182d150a 11717
25e9e4f0 11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
abf5048b 11719$as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
25e9e4f0 11720if test "${ac_cv_cflags__fno_builtin+set}" = set; then :
abf5048b 11721 $as_echo_n "(cached) " >&6
6538cb44
AJ
11722else
11723 ac_wine_try_cflags_saved=$CFLAGS
11724CFLAGS="$CFLAGS -fno-builtin"
25e9e4f0 11725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538cb44 11726/* end confdefs.h. */
5d3eacd2 11727int main(int argc, char **argv) { return 0; }
6538cb44 11728_ACEOF
25e9e4f0 11729if ac_fn_c_try_link "$LINENO"; then :
6538cb44
AJ
11730 ac_cv_cflags__fno_builtin=yes
11731else
25e9e4f0 11732 ac_cv_cflags__fno_builtin=no
6538cb44 11733fi
25e9e4f0
AJ
11734rm -f core conftest.err conftest.$ac_objext \
11735 conftest$ac_exeext conftest.$ac_ext
6538cb44
AJ
11736CFLAGS=$ac_wine_try_cflags_saved
11737fi
25e9e4f0 11738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
abf5048b 11739$as_echo "$ac_cv_cflags__fno_builtin" >&6; }
25e9e4f0 11740if test $ac_cv_cflags__fno_builtin = yes; then :
6538cb44
AJ
11741 BUILTINFLAG="-fno-builtin"
11742
a3097628 11743fi
25e9e4f0 11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
abf5048b 11745$as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
25e9e4f0 11746if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then :
abf5048b 11747 $as_echo_n "(cached) " >&6
7e6ae4ba 11748else
67e8dc68 11749 ac_wine_try_cflags_saved=$CFLAGS
a3097628 11750CFLAGS="$CFLAGS -fno-strict-aliasing"
25e9e4f0 11751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e533e972 11752/* end confdefs.h. */
5d3eacd2 11753int main(int argc, char **argv) { return 0; }
f5818d2f 11754_ACEOF
25e9e4f0 11755if ac_fn_c_try_link "$LINENO"; then :
a3097628 11756 ac_cv_cflags__fno_strict_aliasing=yes
7e6ae4ba 11757else
25e9e4f0 11758 ac_cv_cflags__fno_strict_aliasing=no
7e6ae4ba 11759fi
25e9e4f0
AJ
11760rm -f core conftest.err conftest.$ac_objext \
11761 conftest$ac_exeext conftest.$ac_ext
67e8dc68 11762CFLAGS=$ac_wine_try_cflags_saved
f5818d2f 11763fi
25e9e4f0 11764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
abf5048b 11765$as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
25e9e4f0 11766if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
a3097628 11767 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
182d150a 11768fi
25e9e4f0 11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
abf5048b 11770$as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
25e9e4f0 11771if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then :
abf5048b 11772 $as_echo_n "(cached) " >&6
0ebeb530 11773else
182d150a 11774 ac_wine_try_cflags_saved=$CFLAGS
a3097628 11775CFLAGS="$CFLAGS -Wdeclaration-after-statement"
25e9e4f0 11776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0ebeb530 11777/* end confdefs.h. */
5d3eacd2 11778int main(int argc, char **argv) { return 0; }
0ebeb530 11779_ACEOF
25e9e4f0 11780if ac_fn_c_try_link "$LINENO"; then :
a3097628 11781 ac_cv_cflags__Wdeclaration_after_statement=yes
0ebeb530 11782else
25e9e4f0 11783 ac_cv_cflags__Wdeclaration_after_statement=no
0ebeb530 11784fi
25e9e4f0
AJ
11785rm -f core conftest.err conftest.$ac_objext \
11786 conftest$ac_exeext conftest.$ac_ext
0ebeb530
JW
11787CFLAGS=$ac_wine_try_cflags_saved
11788fi
25e9e4f0 11789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
abf5048b 11790$as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
25e9e4f0 11791if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
a3097628 11792 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
295806f9
AJ
11793fi
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
11795$as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
11796if test "${ac_cv_cflags__Wstrict_prototypes+set}" = set; then :
11797 $as_echo_n "(cached) " >&6
11798else
11799 ac_wine_try_cflags_saved=$CFLAGS
11800CFLAGS="$CFLAGS -Wstrict-prototypes"
11801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11802/* end confdefs.h. */
5d3eacd2 11803int main(int argc, char **argv) { return 0; }
295806f9
AJ
11804_ACEOF
11805if ac_fn_c_try_link "$LINENO"; then :
11806 ac_cv_cflags__Wstrict_prototypes=yes
11807else
11808 ac_cv_cflags__Wstrict_prototypes=no
11809fi
11810rm -f core conftest.err conftest.$ac_objext \
11811 conftest$ac_exeext conftest.$ac_ext
11812CFLAGS=$ac_wine_try_cflags_saved
11813fi
11814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
11815$as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
11816if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
11817 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
182d150a 11818fi
eae5829e
GP
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
11820$as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
11821if test "${ac_cv_cflags__Wtype_limits+set}" = set; then :
abf5048b 11822 $as_echo_n "(cached) " >&6
0ebeb530
JW
11823else
11824 ac_wine_try_cflags_saved=$CFLAGS
eae5829e 11825CFLAGS="$CFLAGS -Wtype-limits"
25e9e4f0 11826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0ebeb530 11827/* end confdefs.h. */
5d3eacd2 11828int main(int argc, char **argv) { return 0; }
0ebeb530 11829_ACEOF
25e9e4f0 11830if ac_fn_c_try_link "$LINENO"; then :
eae5829e 11831 ac_cv_cflags__Wtype_limits=yes
0ebeb530 11832else
eae5829e 11833 ac_cv_cflags__Wtype_limits=no
0ebeb530 11834fi
25e9e4f0
AJ
11835rm -f core conftest.err conftest.$ac_objext \
11836 conftest$ac_exeext conftest.$ac_ext
0ebeb530
JW
11837CFLAGS=$ac_wine_try_cflags_saved
11838fi
eae5829e
GP
11839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
11840$as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
11841if test $ac_cv_cflags__Wtype_limits = yes; then :
11842 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
182d150a 11843fi
eae5829e
GP
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
11845$as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
11846if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then :
abf5048b 11847 $as_echo_n "(cached) " >&6
701ef1d8
GP
11848else
11849 ac_wine_try_cflags_saved=$CFLAGS
eae5829e 11850CFLAGS="$CFLAGS -Wwrite-strings"
25e9e4f0 11851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
701ef1d8 11852/* end confdefs.h. */
5d3eacd2 11853int main(int argc, char **argv) { return 0; }
701ef1d8 11854_ACEOF
25e9e4f0 11855if ac_fn_c_try_link "$LINENO"; then :
eae5829e 11856 ac_cv_cflags__Wwrite_strings=yes
701ef1d8 11857else
eae5829e 11858 ac_cv_cflags__Wwrite_strings=no
701ef1d8 11859fi
25e9e4f0
AJ
11860rm -f core conftest.err conftest.$ac_objext \
11861 conftest$ac_exeext conftest.$ac_ext
701ef1d8
GP
11862CFLAGS=$ac_wine_try_cflags_saved
11863fi
eae5829e
GP
11864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
11865$as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
11866if test $ac_cv_cflags__Wwrite_strings = yes; then :
11867 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
701ef1d8
GP
11868fi
11869
a3097628
AJ
11870 saved_CFLAGS="$CFLAGS"
11871 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
25e9e4f0 11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings" >&5
abf5048b 11873$as_echo_n "checking for broken string.h that generates warnings... " >&6; }
25e9e4f0 11874if test "${ac_cv_c_string_h_warnings+set}" = set; then :
abf5048b 11875 $as_echo_n "(cached) " >&6
f2abe47d 11876else
25e9e4f0 11877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 11878/* end confdefs.h. */
a3097628 11879#include <string.h>
f2abe47d
AJ
11880int
11881main ()
11882{
11883
11884 ;
11885 return 0;
11886}
11887_ACEOF
25e9e4f0 11888if ac_fn_c_try_compile "$LINENO"; then :
a3097628 11889 ac_cv_c_string_h_warnings=no
f2abe47d 11890else
25e9e4f0 11891 ac_cv_c_string_h_warnings=yes
f2abe47d 11892fi
a3097628 11893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f2abe47d 11894fi
25e9e4f0 11895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
abf5048b 11896$as_echo "$ac_cv_c_string_h_warnings" >&6; }
a3097628
AJ
11897 CFLAGS="$saved_CFLAGS"
11898 if test "$ac_cv_c_string_h_warnings" = "no"
11899 then
11900 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
11901 fi
12753c57 11902
83676d72
AJ
11903 saved_CFLAGS="$CFLAGS"
11904 CFLAGS="$CFLAGS -Werror"
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unused result warnings" >&5
11906$as_echo_n "checking for broken unused result warnings... " >&6; }
11907if test "${ac_cv_c_unused_result_warnings+set}" = set; then :
11908 $as_echo_n "(cached) " >&6
11909else
11910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11911/* end confdefs.h. */
11912#include <unistd.h>
11913int
11914main ()
11915{
11916write(2,"a",1)
11917 ;
11918 return 0;
11919}
11920_ACEOF
11921if ac_fn_c_try_compile "$LINENO"; then :
11922 ac_cv_c_unused_result_warnings=no
11923else
11924 ac_cv_c_unused_result_warnings=yes
11925fi
11926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11927fi
11928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_result_warnings" >&5
11929$as_echo "$ac_cv_c_unused_result_warnings" >&6; }
11930 CFLAGS="$saved_CFLAGS"
11931 if test "$ac_cv_c_unused_result_warnings" = "yes"
11932 then
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-unused-result" >&5
11934$as_echo_n "checking whether the compiler supports -Wno-unused-result... " >&6; }
11935if test "${ac_cv_cflags__Wno_unused_result+set}" = set; then :
11936 $as_echo_n "(cached) " >&6
11937else
11938 ac_wine_try_cflags_saved=$CFLAGS
11939CFLAGS="$CFLAGS -Wno-unused-result"
11940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11941/* end confdefs.h. */
11942int main(int argc, char **argv) { return 0; }
11943_ACEOF
11944if ac_fn_c_try_link "$LINENO"; then :
11945 ac_cv_cflags__Wno_unused_result=yes
11946else
11947 ac_cv_cflags__Wno_unused_result=no
11948fi
11949rm -f core conftest.err conftest.$ac_objext \
11950 conftest$ac_exeext conftest.$ac_ext
11951CFLAGS=$ac_wine_try_cflags_saved
11952fi
11953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_unused_result" >&5
11954$as_echo "$ac_cv_cflags__Wno_unused_result" >&6; }
11955if test $ac_cv_cflags__Wno_unused_result = yes; then :
11956 EXTRACFLAGS="$EXTRACFLAGS -Wno-unused-result"
11957fi
11958 fi
11959
2eda9c72 11960 if test "x$enable_maintainer_mode" = "xyes"
12753c57
AJ
11961 then
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
11963$as_echo_n "checking whether the compiler supports -Werror... " >&6; }
11964if test "${ac_cv_cflags__Werror+set}" = set; then :
11965 $as_echo_n "(cached) " >&6
11966else
11967 ac_wine_try_cflags_saved=$CFLAGS
11968CFLAGS="$CFLAGS -Werror"
11969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11970/* end confdefs.h. */
5d3eacd2 11971int main(int argc, char **argv) { return 0; }
12753c57
AJ
11972_ACEOF
11973if ac_fn_c_try_link "$LINENO"; then :
11974 ac_cv_cflags__Werror=yes
11975else
11976 ac_cv_cflags__Werror=no
11977fi
11978rm -f core conftest.err conftest.$ac_objext \
11979 conftest$ac_exeext conftest.$ac_ext
11980CFLAGS=$ac_wine_try_cflags_saved
11981fi
11982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
11983$as_echo "$ac_cv_cflags__Werror" >&6; }
11984if test $ac_cv_cflags__Werror = yes; then :
11985 EXTRACFLAGS="$EXTRACFLAGS -Werror"
11986fi
fdac5e57
SD
11987 fi
11988
11989 saved_CFLAGS="$CFLAGS"
11990 CFLAGS="$CFLAGS -Werror"
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
11992$as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
11993if test "${ac_cv_have_ms_hook_prologue+set}" = set; then :
11994 $as_echo_n "(cached) " >&6
11995else
11996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997/* end confdefs.h. */
11998int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
11999int
12000main ()
12001{
12002
12003 ;
12004 return 0;
12005}
12006_ACEOF
12007if ac_fn_c_try_compile "$LINENO"; then :
12008 ac_cv_have_ms_hook_prologue="yes"
12009else
12010 ac_cv_have_ms_hook_prologue="no"
12011fi
12012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12013fi
12014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12015$as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12016 CFLAGS="$saved_CFLAGS"
12017 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12018 then
12019
12020$as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12021
12022 else
12023 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12024
12753c57 12025 fi
182d150a 12026fi
e533e972 12027
4d52d379 12028
25e9e4f0 12029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
857f1e09 12030$as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
25e9e4f0 12031if test "${ac_cv_c_extern_prefix+set}" = set; then :
857f1e09
AJ
12032 $as_echo_n "(cached) " >&6
12033else
25e9e4f0 12034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
857f1e09
AJ
12035/* end confdefs.h. */
12036extern int ac_test;
12037int
12038main ()
12039{
12040asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12041 ;
12042 return 0;
12043}
12044_ACEOF
25e9e4f0 12045if ac_fn_c_try_link "$LINENO"; then :
857f1e09
AJ
12046 ac_cv_c_extern_prefix="yes"
12047else
25e9e4f0 12048 ac_cv_c_extern_prefix="no"
857f1e09 12049fi
25e9e4f0
AJ
12050rm -f core conftest.err conftest.$ac_objext \
12051 conftest$ac_exeext conftest.$ac_ext
857f1e09 12052fi
25e9e4f0 12053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
857f1e09
AJ
12054$as_echo "$ac_cv_c_extern_prefix" >&6; }
12055
9cebf090
AJ
12056case $host_cpu in
12057 *i[3456789]86*)
25e9e4f0 12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
9cebf090 12059$as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
25e9e4f0 12060if test "${ac_cv_c_stdcall_suffix+set}" = set; then :
9cebf090
AJ
12061 $as_echo_n "(cached) " >&6
12062else
25e9e4f0 12063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9cebf090
AJ
12064/* end confdefs.h. */
12065#ifndef _MSC_VER
12066#define __stdcall __attribute__((__stdcall__))
12067#endif
12068int __stdcall ac_test(int i) { return i; }
12069int
12070main ()
12071{
12072asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12073 ;
12074 return 0;
12075}
12076_ACEOF
25e9e4f0 12077if ac_fn_c_try_link "$LINENO"; then :
9cebf090
AJ
12078 ac_cv_c_stdcall_suffix="yes"
12079else
25e9e4f0 12080 ac_cv_c_stdcall_suffix="no"
9cebf090 12081fi
25e9e4f0
AJ
12082rm -f core conftest.err conftest.$ac_objext \
12083 conftest$ac_exeext conftest.$ac_ext
9cebf090 12084fi
25e9e4f0 12085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
9cebf090
AJ
12086$as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12087 *) ac_cv_c_stdcall_suffix="no" ;;
12088esac
12089
857f1e09 12090
857f1e09
AJ
12091if test "$ac_cv_c_extern_prefix" = "yes"
12092then
25e9e4f0 12093 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
857f1e09
AJ
12094
12095 asm_name_prefix="_"
12096else
25e9e4f0 12097 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
857f1e09
AJ
12098
12099 asm_name_prefix=""
12100fi
12101
12102
9cebf090
AJ
12103if test "$ac_cv_c_stdcall_suffix" = "yes"
12104then
25e9e4f0 12105 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
9cebf090
AJ
12106
12107else
25e9e4f0 12108 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
9cebf090
AJ
12109
12110fi
12111
12112
25e9e4f0 12113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
abf5048b 12114$as_echo_n "checking how to define a function in assembly code... " >&6; }
25e9e4f0 12115if test "${ac_cv_asm_func_def+set}" = set; then :
abf5048b 12116 $as_echo_n "(cached) " >&6
36048242 12117else
25e9e4f0 12118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36048242
AJ
12119/* end confdefs.h. */
12120
12121int
12122main ()
12123{
a3097628 12124asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
36048242
AJ
12125 ;
12126 return 0;
12127}
12128_ACEOF
25e9e4f0 12129if ac_fn_c_try_link "$LINENO"; then :
a3097628 12130 ac_cv_asm_func_def=".def"
36048242 12131else
25e9e4f0 12132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a3097628 12133/* end confdefs.h. */
36048242 12134
a3097628
AJ
12135int
12136main ()
12137{
12138asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12139 ;
12140 return 0;
12141}
440ff6db 12142_ACEOF
25e9e4f0 12143if ac_fn_c_try_link "$LINENO"; then :
a3097628 12144 ac_cv_asm_func_def=".type @function"
440ff6db 12145else
25e9e4f0 12146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a3097628 12147/* end confdefs.h. */
e533e972 12148
a3097628
AJ
12149int
12150main ()
12151{
12152asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12153 ;
12154 return 0;
12155}
ef2d04d4 12156_ACEOF
25e9e4f0 12157if ac_fn_c_try_link "$LINENO"; then :
a3097628 12158 ac_cv_asm_func_def=".type 2"
e533e972 12159else
25e9e4f0 12160 ac_cv_asm_func_def="unknown"
e533e972 12161fi
25e9e4f0
AJ
12162rm -f core conftest.err conftest.$ac_objext \
12163 conftest$ac_exeext conftest.$ac_ext
e533e972 12164fi
25e9e4f0
AJ
12165rm -f core conftest.err conftest.$ac_objext \
12166 conftest$ac_exeext conftest.$ac_ext
e533e972 12167fi
25e9e4f0
AJ
12168rm -f core conftest.err conftest.$ac_objext \
12169 conftest$ac_exeext conftest.$ac_ext
a3097628 12170fi
25e9e4f0 12171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
abf5048b 12172$as_echo "$ac_cv_asm_func_def" >&6; }
e533e972 12173
e533e972 12174
a3097628
AJ
12175case "$ac_cv_asm_func_def" in
12176 ".def")
25e9e4f0 12177 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
857f1e09 12178
ea9cf9e4 12179 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
a3097628 12180 ".type @function")
25e9e4f0 12181 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
857f1e09 12182
ea9cf9e4 12183 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
a3097628 12184 ".type 2")
25e9e4f0 12185 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
857f1e09 12186
ea9cf9e4 12187 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
a3097628 12188 *)
25e9e4f0 12189 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
857f1e09
AJ
12190
12191 asm_func_header="" ;;
a3097628
AJ
12192esac
12193
25e9e4f0 12194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
857f1e09 12195$as_echo_n "checking whether asm() works outside of functions... " >&6; }
25e9e4f0 12196if test "${ac_cv_c_asm_outside_funcs+set}" = set; then :
857f1e09
AJ
12197 $as_echo_n "(cached) " >&6
12198else
25e9e4f0 12199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
857f1e09
AJ
12200/* end confdefs.h. */
12201asm(".text\n\t.long 0");
12202int
12203main ()
12204{
a3097628 12205
857f1e09
AJ
12206 ;
12207 return 0;
12208}
12209_ACEOF
25e9e4f0 12210if ac_fn_c_try_compile "$LINENO"; then :
857f1e09
AJ
12211 ac_cv_c_asm_outside_funcs="yes"
12212else
25e9e4f0 12213 ac_cv_c_asm_outside_funcs="no"
857f1e09 12214fi
857f1e09
AJ
12215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12216fi
25e9e4f0 12217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
857f1e09
AJ
12218$as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12219
25e9e4f0 12220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
857f1e09 12221$as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
25e9e4f0 12222if test "${ac_cv_c_dot_previous+set}" = set; then :
abf5048b 12223 $as_echo_n "(cached) " >&6
2ffc7e2c 12224else
25e9e4f0 12225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a3097628 12226/* end confdefs.h. */
857f1e09 12227
a3097628
AJ
12228int
12229main ()
12230{
857f1e09 12231asm(".text\nac_test:\t.long 0\n\t.previous");
a3097628
AJ
12232 ;
12233 return 0;
12234}
12235_ACEOF
25e9e4f0 12236if ac_fn_c_try_link "$LINENO"; then :
857f1e09 12237 ac_cv_c_dot_previous="yes"
2ffc7e2c 12238else
25e9e4f0 12239 ac_cv_c_dot_previous="no"
2ffc7e2c 12240fi
25e9e4f0
AJ
12241rm -f core conftest.err conftest.$ac_objext \
12242 conftest$ac_exeext conftest.$ac_ext
2ffc7e2c 12243fi
25e9e4f0 12244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
857f1e09
AJ
12245$as_echo "$ac_cv_c_dot_previous" >&6; }
12246
25e9e4f0 12247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
ccea0ae9 12248$as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
25e9e4f0 12249if test "${ac_cv_c_cfi_support+set}" = set; then :
ccea0ae9
AJ
12250 $as_echo_n "(cached) " >&6
12251else
25e9e4f0 12252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ccea0ae9
AJ
12253/* end confdefs.h. */
12254asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12255int
12256main ()
12257{
12258
12259 ;
12260 return 0;
12261}
12262_ACEOF
25e9e4f0 12263if ac_fn_c_try_compile "$LINENO"; then :
ccea0ae9
AJ
12264 ac_cv_c_cfi_support="yes"
12265else
25e9e4f0 12266 ac_cv_c_cfi_support="no"
ccea0ae9 12267fi
ccea0ae9
AJ
12268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12269fi
25e9e4f0 12270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
ccea0ae9
AJ
12271$as_echo "$ac_cv_c_cfi_support" >&6; }
12272
ea9cf9e4 12273asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
857f1e09
AJ
12274asm_func_trailer=""
12275if test "$ac_cv_c_dot_previous" = "yes"
12276then
12277 asm_func_trailer="\\n\\t.previous"
12278fi
ccea0ae9
AJ
12279if test "$ac_cv_c_cfi_support" = "yes"
12280then
12281 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12282 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
e1f0a0db 12283
25e9e4f0 12284$as_echo "#define __ASM_CFI(str) str" >>confdefs.h
e1f0a0db 12285
6c142387
AJ
12286 UNWINDFLAGS=-fasynchronous-unwind-tables
12287
e1f0a0db 12288else
25e9e4f0 12289 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
e1f0a0db 12290
ccea0ae9
AJ
12291fi
12292
857f1e09 12293asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
2ffc7e2c
AJ
12294
12295
857f1e09 12296if test "$ac_cv_c_asm_outside_funcs" = "yes"
a3097628 12297then
857f1e09 12298 cat >>confdefs.h <<_ACEOF
ea9cf9e4 12299#define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
a3097628
AJ
12300_ACEOF
12301
12302else
857f1e09 12303 cat >>confdefs.h <<_ACEOF
ea9cf9e4 12304#define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
a3097628 12305_ACEOF
e533e972 12306
e533e972
AJ
12307fi
12308
25e9e4f0 12309$as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
ea9cf9e4
AJ
12310
12311
25e9e4f0 12312$as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
ea9cf9e4
AJ
12313
12314
a3097628 12315
3a0233d6
AJ
12316LDPATH=""
12317
e533e972
AJ
12318case $build_os in
12319 cygwin*|mingw32*)
b860c4aa
AJ
12320 TOOLSEXT=".exe"
12321
e533e972 12322 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
3a0233d6 12323 ;;
e533e972 12324 darwin*|macosx*)
3a0233d6 12325 ;;
e533e972
AJ
12326 *)
12327 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
3a0233d6 12328 ;;
e533e972
AJ
12329esac
12330
12331case $host_os in
12332 mingw32*)
12333 CRTLIBS="-lmsvcrt"
12334
dc1a9f19 12335 SOCKETLIBS="-L\$(TOPOBJDIR)/dlls/ws2_32 -lws2_32"
e533e972
AJ
12336
12337 ;;
12338esac
12339
3e6eab3f
AJ
12340MAIN_BINARY="wine"
12341
f3831cf2 12342test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
3e6eab3f 12343
f4a19c84 12344case $host_cpu in
e533e972
AJ
12345 *i[3456789]86*)
12346 case $host_os in
5e18596f 12347 linux*)
f4a19c84 12348 EXTRA_BINARIES="wine-preloader"
e533e972
AJ
12349 ;;
12350 esac
12351 ;;
12352esac
12353
12354
95251a78
AJ
12355ac_save_CFLAGS="$CFLAGS"
12356CFLAGS="$CFLAGS $BUILTINFLAG"
e533e972 12357for ac_func in \
e533e972
AJ
12358 _pclose \
12359 _popen \
12360 _snprintf \
12361 _spawnvp \
ff96bd6a 12362 _strdup \
e533e972
AJ
12363 _stricmp \
12364 _strnicmp \
e9f5bce3
RS
12365 _strtoi64 \
12366 _strtoui64 \
e533e972
AJ
12367 _vsnprintf \
12368 asctime_r \
12369 chsize \
e533e972
AJ
12370 dlopen \
12371 epoll_create \
12372 ffs \
12373 finite \
7d5e565b 12374 fnmatch \
e533e972
AJ
12375 fork \
12376 fpclass \
12377 fstatfs \
12378 fstatvfs \
12379 ftruncate \
12380 futimes \
12381 futimesat \
a9f214cb 12382 getdirentries \
e533e972
AJ
12383 getopt_long \
12384 getpagesize \
e533e972 12385 getpwuid \
e533e972
AJ
12386 gettid \
12387 gettimeofday \
12388 getuid \
e533e972
AJ
12389 kqueue \
12390 lstat \
12391 memmove \
12392 mmap \
12393 pclose \
6f68b774 12394 pipe2 \
e533e972
AJ
12395 poll \
12396 popen \
01b972d6 12397 port_create \
e533e972
AJ
12398 prctl \
12399 pread \
12400 pwrite \
87175c61 12401 readdir \
e533e972 12402 readlink \
474b2e4b 12403 sched_setaffinity \
e533e972
AJ
12404 sched_yield \
12405 select \
39f67279 12406 setproctitle \
e533e972
AJ
12407 setrlimit \
12408 settimeofday \
12409 sigaltstack \
12410 sigprocmask \
12411 snprintf \
12412 spawnvp \
12413 statfs \
12414 statvfs \
12415 strcasecmp \
ff96bd6a 12416 strdup \
e533e972
AJ
12417 strerror \
12418 strncasecmp \
6c04a187 12419 strtold \
e9f5bce3
RS
12420 strtoll \
12421 strtoull \
0fbd5569 12422 symlink \
e533e972 12423 tcgetattr \
0c4f152e 12424 thr_kill2 \
e533e972
AJ
12425 timegm \
12426 usleep \
12427 vsnprintf \
12428 wait4 \
12429 waitpid \
12430
25e9e4f0
AJ
12431do :
12432 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12433ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12434eval as_val=\$$as_ac_var
12435 if test "x$as_val" = x""yes; then :
e533e972 12436 cat >>confdefs.h <<_ACEOF
abf5048b 12437#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9557d1bf 12438_ACEOF
30de3e8e 12439
9557d1bf 12440fi
e533e972 12441done
e82dfab2 12442
95251a78 12443CFLAGS="$ac_save_CFLAGS"
e533e972
AJ
12444
12445if test "$ac_cv_func_dlopen" = no
12446then
25e9e4f0 12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
abf5048b 12448$as_echo_n "checking for dlopen in -ldl... " >&6; }
25e9e4f0 12449if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
abf5048b 12450 $as_echo_n "(cached) " >&6
e82dfab2 12451else
e533e972
AJ
12452 ac_check_lib_save_LIBS=$LIBS
12453LIBS="-ldl $LIBS"
25e9e4f0 12454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e82dfab2
HD
12455/* end confdefs.h. */
12456
fc6ffb29
AJ
12457/* Override any GCC internal prototype to avoid an error.
12458 Use char because int might match the return type of a GCC
12459 builtin and then its argument prototype would still apply. */
e82dfab2
HD
12460#ifdef __cplusplus
12461extern "C"
12462#endif
e533e972 12463char dlopen ();
e82dfab2
HD
12464int
12465main ()
12466{
e533e972 12467return dlopen ();
e82dfab2
HD
12468 ;
12469 return 0;
12470}
12471_ACEOF
25e9e4f0 12472if ac_fn_c_try_link "$LINENO"; then :
e533e972 12473 ac_cv_lib_dl_dlopen=yes
e82dfab2 12474else
25e9e4f0 12475 ac_cv_lib_dl_dlopen=no
e82dfab2 12476fi
25e9e4f0
AJ
12477rm -f core conftest.err conftest.$ac_objext \
12478 conftest$ac_exeext conftest.$ac_ext
e533e972 12479LIBS=$ac_check_lib_save_LIBS
e82dfab2 12480fi
25e9e4f0 12481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
abf5048b 12482$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
25e9e4f0
AJ
12483if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12484 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
e533e972 12485 LIBDL="-ldl"
30de3e8e 12486
e82dfab2
HD
12487fi
12488
e533e972
AJ
12489fi
12490ac_wine_check_funcs_save_LIBS="$LIBS"
12491LIBS="$LIBS $LIBDL"
e533e972 12492for ac_func in dladdr
25e9e4f0
AJ
12493do :
12494 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12495if test "x$ac_cv_func_dladdr" = x""yes; then :
e533e972 12496 cat >>confdefs.h <<_ACEOF
25e9e4f0 12497#define HAVE_DLADDR 1
daa2886c 12498_ACEOF
30de3e8e 12499
1bb94039 12500fi
e533e972 12501done
1bb94039 12502
e533e972
AJ
12503LIBS="$ac_wine_check_funcs_save_LIBS"
12504
12505if test "$ac_cv_func_poll" = no
12506then
25e9e4f0 12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
abf5048b 12508$as_echo_n "checking for poll in -lpoll... " >&6; }
25e9e4f0 12509if test "${ac_cv_lib_poll_poll+set}" = set; then :
abf5048b 12510 $as_echo_n "(cached) " >&6
1bb94039 12511else
bcba2705
FG
12512 ac_check_lib_save_LIBS=$LIBS
12513LIBS="-lpoll $LIBS"
25e9e4f0 12514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bcba2705
FG
12515/* end confdefs.h. */
12516
12517/* Override any GCC internal prototype to avoid an error.
12518 Use char because int might match the return type of a GCC
12519 builtin and then its argument prototype would still apply. */
12520#ifdef __cplusplus
12521extern "C"
12522#endif
12523char poll ();
12524int
12525main ()
12526{
12527return poll ();
12528 ;
12529 return 0;
12530}
12531_ACEOF
25e9e4f0 12532if ac_fn_c_try_link "$LINENO"; then :
bcba2705
FG
12533 ac_cv_lib_poll_poll=yes
12534else
25e9e4f0 12535 ac_cv_lib_poll_poll=no
bcba2705 12536fi
25e9e4f0
AJ
12537rm -f core conftest.err conftest.$ac_objext \
12538 conftest$ac_exeext conftest.$ac_ext
bcba2705
FG
12539LIBS=$ac_check_lib_save_LIBS
12540fi
25e9e4f0 12541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
abf5048b 12542$as_echo "$ac_cv_lib_poll_poll" >&6; }
25e9e4f0
AJ
12543if test "x$ac_cv_lib_poll_poll" = x""yes; then :
12544 $as_echo "#define HAVE_POLL 1" >>confdefs.h
bcba2705
FG
12545 LIBPOLL="-lpoll"
12546
12547fi
12548
12549fi
12550
25e9e4f0 12551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
abf5048b 12552$as_echo_n "checking for library containing gethostbyname... " >&6; }
25e9e4f0 12553if test "${ac_cv_search_gethostbyname+set}" = set; then :
abf5048b 12554 $as_echo_n "(cached) " >&6
bcba2705
FG
12555else
12556 ac_func_search_save_LIBS=$LIBS
25e9e4f0 12557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bcba2705
FG
12558/* end confdefs.h. */
12559
12560/* Override any GCC internal prototype to avoid an error.
12561 Use char because int might match the return type of a GCC
12562 builtin and then its argument prototype would still apply. */
12563#ifdef __cplusplus
12564extern "C"
12565#endif
12566char gethostbyname ();
12567int
12568main ()
12569{
12570return gethostbyname ();
12571 ;
12572 return 0;
12573}
12574_ACEOF
12575for ac_lib in '' nsl; do
12576 if test -z "$ac_lib"; then
12577 ac_res="none required"
12578 else
12579 ac_res=-l$ac_lib
12580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12581 fi
25e9e4f0 12582 if ac_fn_c_try_link "$LINENO"; then :
bcba2705 12583 ac_cv_search_gethostbyname=$ac_res
bcba2705 12584fi
25e9e4f0
AJ
12585rm -f core conftest.err conftest.$ac_objext \
12586 conftest$ac_exeext
12587 if test "${ac_cv_search_gethostbyname+set}" = set; then :
bcba2705
FG
12588 break
12589fi
12590done
25e9e4f0
AJ
12591if test "${ac_cv_search_gethostbyname+set}" = set; then :
12592
bcba2705
FG
12593else
12594 ac_cv_search_gethostbyname=no
12595fi
12596rm conftest.$ac_ext
12597LIBS=$ac_func_search_save_LIBS
12598fi
25e9e4f0 12599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
abf5048b 12600$as_echo "$ac_cv_search_gethostbyname" >&6; }
bcba2705 12601ac_res=$ac_cv_search_gethostbyname
25e9e4f0 12602if test "$ac_res" != no; then :
bcba2705
FG
12603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12604
12605fi
12606
12607
25e9e4f0 12608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
abf5048b 12609$as_echo_n "checking for library containing connect... " >&6; }
25e9e4f0 12610if test "${ac_cv_search_connect+set}" = set; then :
abf5048b 12611 $as_echo_n "(cached) " >&6
bcba2705
FG
12612else
12613 ac_func_search_save_LIBS=$LIBS
25e9e4f0 12614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bcba2705
FG
12615/* end confdefs.h. */
12616
12617/* Override any GCC internal prototype to avoid an error.
12618 Use char because int might match the return type of a GCC
12619 builtin and then its argument prototype would still apply. */
12620#ifdef __cplusplus
12621extern "C"
12622#endif
12623char connect ();
12624int
12625main ()
12626{
12627return connect ();
12628 ;
12629 return 0;
12630}
12631_ACEOF
12632for ac_lib in '' socket; do
12633 if test -z "$ac_lib"; then
12634 ac_res="none required"
12635 else
12636 ac_res=-l$ac_lib
12637 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12638 fi
25e9e4f0 12639 if ac_fn_c_try_link "$LINENO"; then :
bcba2705 12640 ac_cv_search_connect=$ac_res
bcba2705 12641fi
25e9e4f0
AJ
12642rm -f core conftest.err conftest.$ac_objext \
12643 conftest$ac_exeext
12644 if test "${ac_cv_search_connect+set}" = set; then :
bcba2705
FG
12645 break
12646fi
12647done
25e9e4f0
AJ
12648if test "${ac_cv_search_connect+set}" = set; then :
12649
bcba2705
FG
12650else
12651 ac_cv_search_connect=no
12652fi
12653rm conftest.$ac_ext
12654LIBS=$ac_func_search_save_LIBS
12655fi
25e9e4f0 12656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
abf5048b 12657$as_echo "$ac_cv_search_connect" >&6; }
bcba2705 12658ac_res=$ac_cv_search_connect
25e9e4f0 12659if test "$ac_res" != no; then :
bcba2705
FG
12660 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12661
12662fi
12663
12664
25e9e4f0 12665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
abf5048b 12666$as_echo_n "checking for library containing inet_aton... " >&6; }
25e9e4f0 12667if test "${ac_cv_search_inet_aton+set}" = set; then :
abf5048b 12668 $as_echo_n "(cached) " >&6
bcba2705
FG
12669else
12670 ac_func_search_save_LIBS=$LIBS
25e9e4f0 12671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bcba2705
FG
12672/* end confdefs.h. */
12673
12674/* Override any GCC internal prototype to avoid an error.
12675 Use char because int might match the return type of a GCC
12676 builtin and then its argument prototype would still apply. */
12677#ifdef __cplusplus
12678extern "C"
12679#endif
12680char inet_aton ();
12681int
12682main ()
12683{
12684return inet_aton ();
12685 ;
12686 return 0;
12687}
12688_ACEOF
12689for ac_lib in '' resolv; do
12690 if test -z "$ac_lib"; then
12691 ac_res="none required"
12692 else
12693 ac_res=-l$ac_lib
12694 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12695 fi
25e9e4f0 12696 if ac_fn_c_try_link "$LINENO"; then :
bcba2705 12697 ac_cv_search_inet_aton=$ac_res
bcba2705 12698fi
25e9e4f0
AJ
12699rm -f core conftest.err conftest.$ac_objext \
12700 conftest$ac_exeext
12701 if test "${ac_cv_search_inet_aton+set}" = set; then :
bcba2705
FG
12702 break
12703fi
12704done
25e9e4f0
AJ
12705if test "${ac_cv_search_inet_aton+set}" = set; then :
12706
bcba2705
FG
12707else
12708 ac_cv_search_inet_aton=no
12709fi
12710rm conftest.$ac_ext
12711LIBS=$ac_func_search_save_LIBS
12712fi
25e9e4f0 12713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
abf5048b 12714$as_echo "$ac_cv_search_inet_aton" >&6; }
bcba2705 12715ac_res=$ac_cv_search_inet_aton
25e9e4f0 12716if test "$ac_res" != no; then :
bcba2705
FG
12717 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12718
12719fi
12720
12721
bcba2705
FG
12722for ac_func in \
12723 getaddrinfo \
12724 getnameinfo \
12725 getnetbyname \
12726 getprotobyname \
12727 getprotobynumber \
12728 getservbyport \
12729 inet_network \
06566917
AE
12730 inet_ntop \
12731 inet_pton \
bcba2705 12732 sendmsg \
98bec05e 12733 socketpair \
bcba2705 12734
25e9e4f0
AJ
12735do :
12736 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12737ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12738eval as_val=\$$as_ac_var
12739 if test "x$as_val" = x""yes; then :
12740 cat >>confdefs.h <<_ACEOF
12741#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
e24bcc77 12742_ACEOF
bcba2705 12743
25e9e4f0
AJ
12744fi
12745done
bcba2705 12746
bcba2705 12747
25e9e4f0
AJ
12748LDAPLIBS=""
12749
12750if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12751then
12752 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
12753"
12754if test "x$ac_cv_type_LDAPSortKey" = x""yes; then :
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
12756$as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
12757if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then :
12758 $as_echo_n "(cached) " >&6
12759else
12760 ac_check_lib_save_LIBS=$LIBS
12761LIBS="-lldap_r $LIBPTHREAD $LIBS"
12762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12763/* end confdefs.h. */
1bb94039 12764
fc6ffb29
AJ
12765/* Override any GCC internal prototype to avoid an error.
12766 Use char because int might match the return type of a GCC
12767 builtin and then its argument prototype would still apply. */
82776020
AJ
12768#ifdef __cplusplus
12769extern "C"
12770#endif
25e9e4f0 12771char ldap_initialize ();
f5818d2f
AJ
12772int
12773main ()
12774{
25e9e4f0 12775return ldap_initialize ();
f5818d2f
AJ
12776 ;
12777 return 0;
12778}
12779_ACEOF
25e9e4f0
AJ
12780if ac_fn_c_try_link "$LINENO"; then :
12781 ac_cv_lib_ldap_r_ldap_initialize=yes
1bb94039 12782else
25e9e4f0 12783 ac_cv_lib_ldap_r_ldap_initialize=no
1bb94039 12784fi
25e9e4f0
AJ
12785rm -f core conftest.err conftest.$ac_objext \
12786 conftest$ac_exeext conftest.$ac_ext
12787LIBS=$ac_check_lib_save_LIBS
1bb94039 12788fi
25e9e4f0
AJ
12789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
12790$as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
12791if test "x$ac_cv_lib_ldap_r_ldap_initialize" = x""yes; then :
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
12793$as_echo_n "checking for ber_init in -llber... " >&6; }
12794if test "${ac_cv_lib_lber_ber_init+set}" = set; then :
abf5048b 12795 $as_echo_n "(cached) " >&6
f5818d2f 12796else
25e9e4f0
AJ
12797 ac_check_lib_save_LIBS=$LIBS
12798LIBS="-llber $LIBPTHREAD $LIBS"
12799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 12800/* end confdefs.h. */
875927f6 12801
25e9e4f0
AJ
12802/* Override any GCC internal prototype to avoid an error.
12803 Use char because int might match the return type of a GCC
12804 builtin and then its argument prototype would still apply. */
12805#ifdef __cplusplus
12806extern "C"
12807#endif
12808char ber_init ();
e24bcc77
AJ
12809int
12810main ()
12811{
25e9e4f0 12812return ber_init ();
abf5048b 12813 ;
bcba2705 12814 return 0;
abf5048b
AJ
12815}
12816_ACEOF
25e9e4f0
AJ
12817if ac_fn_c_try_link "$LINENO"; then :
12818 ac_cv_lib_lber_ber_init=yes
12819else
12820 ac_cv_lib_lber_ber_init=no
12821fi
12822rm -f core conftest.err conftest.$ac_objext \
12823 conftest$ac_exeext conftest.$ac_ext
12824LIBS=$ac_check_lib_save_LIBS
12825fi
12826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
12827$as_echo "$ac_cv_lib_lber_ber_init" >&6; }
12828if test "x$ac_cv_lib_lber_ber_init" = x""yes; then :
abf5048b 12829
25e9e4f0 12830$as_echo "#define HAVE_LDAP 1" >>confdefs.h
bcba2705
FG
12831
12832 LDAPLIBS="-lldap_r -llber"
28710419 12833fi
1089260f
AJ
12834
12835fi
daa2886c 12836
bcba2705 12837fi
daa2886c 12838
bcba2705
FG
12839 ac_wine_check_funcs_save_LIBS="$LIBS"
12840LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
41c59964 12841for ac_func in \
bcba2705
FG
12842 ldap_count_references \
12843 ldap_first_reference \
12844 ldap_next_reference \
12845 ldap_parse_reference \
12846 ldap_parse_sort_control \
12847 ldap_parse_sortresponse_control \
12848 ldap_parse_vlv_control \
12849 ldap_parse_vlvresponse_control
25e9e4f0
AJ
12850do :
12851 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12852ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12853eval as_val=\$$as_ac_var
12854 if test "x$as_val" = x""yes; then :
41c59964 12855 cat >>confdefs.h <<_ACEOF
abf5048b 12856#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41c59964
BT
12857_ACEOF
12858
12859fi
12860done
12861
bcba2705
FG
12862LIBS="$ac_wine_check_funcs_save_LIBS"
12863fi
25e9e4f0 12864if test "x$LDAPLIBS" = "x"; then :
bcba2705 12865 case "x$with_ldap" in
0dc503bc 12866 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
bcba2705 12867 xno) ;;
25e9e4f0
AJ
12868 *) as_fn_error "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
12869This is an error since --with-ldap was requested." "$LINENO" 5 ;;
bcba2705
FG
12870esac
12871fi
12872
25e9e4f0 12873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
921e6624 12874$as_echo_n "checking whether mkdir takes only one argument... " >&6; }
25e9e4f0 12875if test "${wine_cv_one_arg_mkdir+set}" = set; then :
921e6624
AJ
12876 $as_echo_n "(cached) " >&6
12877else
25e9e4f0 12878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
921e6624
AJ
12879/* end confdefs.h. */
12880#include <sys/stat.h>
12881int
12882main ()
12883{
12884mkdir("foo");
12885 ;
12886 return 0;
12887}
12888_ACEOF
25e9e4f0 12889if ac_fn_c_try_compile "$LINENO"; then :
921e6624
AJ
12890 wine_cv_one_arg_mkdir=yes
12891else
25e9e4f0 12892 wine_cv_one_arg_mkdir=no
921e6624 12893fi
921e6624
AJ
12894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12895fi
25e9e4f0 12896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
921e6624
AJ
12897$as_echo "$wine_cv_one_arg_mkdir" >&6; }
12898if test "$wine_cv_one_arg_mkdir" = "yes"
12899then
12900
25e9e4f0 12901$as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
921e6624
AJ
12902
12903fi
12904
41c59964 12905
25e9e4f0 12906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
abf5048b 12907$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25e9e4f0 12908if test "${ac_cv_c_const+set}" = set; then :
abf5048b 12909 $as_echo_n "(cached) " >&6
f5818d2f 12910else
25e9e4f0 12911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 12912/* end confdefs.h. */
f41c2b21 12913
f5818d2f
AJ
12914int
12915main ()
12916{
f41c2b21
DP
12917/* FIXME: Include the comments suggested by Paul. */
12918#ifndef __cplusplus
12919 /* Ultrix mips cc rejects this. */
12920 typedef int charset[2];
f0ca586f 12921 const charset cs;
f41c2b21 12922 /* SunOS 4.1.1 cc rejects this. */
f0ca586f
PK
12923 char const *const *pcpcc;
12924 char **ppc;
f41c2b21
DP
12925 /* NEC SVR4.0.2 mips cc rejects this. */
12926 struct point {int x, y;};
12927 static struct point const zero = {0,0};
12928 /* AIX XL C 1.02.0.0 rejects this.
12929 It does not let you subtract one const X* pointer from another in
12930 an arm of an if-expression whose if-part is not a constant
12931 expression */
12932 const char *g = "string";
f0ca586f 12933 pcpcc = &g + (g ? g-g : 0);
f41c2b21 12934 /* HPUX 7.0 cc rejects these. */
f0ca586f
PK
12935 ++pcpcc;
12936 ppc = (char**) pcpcc;
12937 pcpcc = (char const *const *) ppc;
f41c2b21
DP
12938 { /* SCO 3.2v4 cc rejects this. */
12939 char *t;
12940 char const *s = 0 ? (char *) 0 : (char const *) 0;
12941
12942 *t++ = 0;
fc6ffb29 12943 if (s) return 0;
f41c2b21
DP
12944 }
12945 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12946 int x[] = {25, 17};
12947 const int *foo = &x[0];
12948 ++foo;
12949 }
12950 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12951 typedef const int *iptr;
12952 iptr p = 0;
12953 ++p;
12954 }
12955 { /* AIX XL C 1.02.0.0 rejects this saying
12956 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12957 struct s { int j; const int *ap[3]; };
12958 struct s *b; b->j = 5;
12959 }
12960 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12961 const int foo = 10;
fc6ffb29 12962 if (!foo) return 0;
f41c2b21 12963 }
f0ca586f 12964 return !cs[0] && !zero.x;
f41c2b21
DP
12965#endif
12966
f5818d2f
AJ
12967 ;
12968 return 0;
12969}
12970_ACEOF
25e9e4f0 12971if ac_fn_c_try_compile "$LINENO"; then :
f41c2b21 12972 ac_cv_c_const=yes
f5818d2f 12973else
25e9e4f0 12974 ac_cv_c_const=no
c7c217b3 12975fi
0ebeb530 12976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f 12977fi
25e9e4f0 12978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
abf5048b 12979$as_echo "$ac_cv_c_const" >&6; }
f41c2b21 12980if test $ac_cv_c_const = no; then
5769d1de 12981
25e9e4f0 12982$as_echo "#define const /**/" >>confdefs.h
5769d1de 12983
5769d1de 12984fi
f41c2b21 12985
25e9e4f0 12986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
abf5048b 12987$as_echo_n "checking for inline... " >&6; }
25e9e4f0 12988if test "${ac_cv_c_inline+set}" = set; then :
abf5048b 12989 $as_echo_n "(cached) " >&6
5769d1de 12990else
f41c2b21
DP
12991 ac_cv_c_inline=no
12992for ac_kw in inline __inline__ __inline; do
25e9e4f0 12993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f41c2b21
DP
12994/* end confdefs.h. */
12995#ifndef __cplusplus
12996typedef int foo_t;
12997static $ac_kw foo_t static_foo () {return 0; }
12998$ac_kw foo_t foo () {return 0; }
12999#endif
13000
5769d1de 13001_ACEOF
25e9e4f0 13002if ac_fn_c_try_compile "$LINENO"; then :
fc6ffb29 13003 ac_cv_c_inline=$ac_kw
5769d1de 13004fi
0ebeb530 13005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29 13006 test "$ac_cv_c_inline" != no && break
f41c2b21 13007done
f5818d2f 13008
f41c2b21 13009fi
25e9e4f0 13010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
abf5048b 13011$as_echo "$ac_cv_c_inline" >&6; }
c7c217b3 13012
f41c2b21
DP
13013case $ac_cv_c_inline in
13014 inline | yes) ;;
13015 *)
13016 case $ac_cv_c_inline in
13017 no) ac_val=;;
13018 *) ac_val=$ac_cv_c_inline;;
13019 esac
13020 cat >>confdefs.h <<_ACEOF
13021#ifndef __cplusplus
13022#define inline $ac_val
13023#endif
13024_ACEOF
13025 ;;
13026esac
c7c217b3 13027
25e9e4f0
AJ
13028ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13029if test "x$ac_cv_type_mode_t" = x""yes; then :
13030
13031cat >>confdefs.h <<_ACEOF
13032#define HAVE_MODE_T 1
e24bcc77 13033_ACEOF
25e9e4f0
AJ
13034
13035
13036fi
13037ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13038if test "x$ac_cv_type_off_t" = x""yes; then :
13039
13040cat >>confdefs.h <<_ACEOF
13041#define HAVE_OFF_T 1
f5818d2f 13042_ACEOF
25e9e4f0
AJ
13043
13044
13045fi
13046ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13047if test "x$ac_cv_type_pid_t" = x""yes; then :
13048
13049cat >>confdefs.h <<_ACEOF
13050#define HAVE_PID_T 1
e24bcc77 13051_ACEOF
abf5048b 13052
25e9e4f0 13053
abf5048b 13054fi
25e9e4f0
AJ
13055ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13056if test "x$ac_cv_type_size_t" = x""yes; then :
abf5048b 13057
25e9e4f0
AJ
13058cat >>confdefs.h <<_ACEOF
13059#define HAVE_SIZE_T 1
13060_ACEOF
f41c2b21 13061
abf5048b 13062
f41c2b21 13063fi
25e9e4f0
AJ
13064ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13065if test "x$ac_cv_type_ssize_t" = x""yes; then :
13066
13067cat >>confdefs.h <<_ACEOF
13068#define HAVE_SSIZE_T 1
13069_ACEOF
13070
fc6ffb29 13071
f41c2b21 13072fi
25e9e4f0
AJ
13073ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13074if test "x$ac_cv_type_long_long" = x""yes; then :
f41c2b21
DP
13075
13076cat >>confdefs.h <<_ACEOF
25e9e4f0 13077#define HAVE_LONG_LONG 1
f41c2b21
DP
13078_ACEOF
13079
13080
13081fi
25e9e4f0
AJ
13082ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13083if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then :
13084
13085cat >>confdefs.h <<_ACEOF
13086#define HAVE_FSBLKCNT_T 1
abf5048b 13087_ACEOF
abf5048b 13088
25e9e4f0 13089
abf5048b 13090fi
25e9e4f0
AJ
13091ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13092if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then :
abf5048b 13093
25e9e4f0
AJ
13094cat >>confdefs.h <<_ACEOF
13095#define HAVE_FSFILCNT_T 1
13096_ACEOF
abf5048b
AJ
13097
13098
13099fi
13100
25e9e4f0
AJ
13101ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13102#include <signal.h>
13103"
13104if test "x$ac_cv_type_sigset_t" = x""yes; then :
abf5048b
AJ
13105
13106cat >>confdefs.h <<_ACEOF
25e9e4f0 13107#define HAVE_SIGSET_T 1
abf5048b
AJ
13108_ACEOF
13109
13110
13111fi
25e9e4f0
AJ
13112
13113ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13114"
13115if test "x$ac_cv_type_request_sense" = x""yes; then :
13116
13117cat >>confdefs.h <<_ACEOF
13118#define HAVE_REQUEST_SENSE 1
abf5048b 13119_ACEOF
abf5048b 13120
25e9e4f0 13121
abf5048b
AJ
13122fi
13123
abf5048b 13124
25e9e4f0
AJ
13125ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13126#ifdef HAVE_SYS_SOCKET_H
13127#include <sys/socket.h>
13128#endif
13129#ifdef HAVE_SYS_SOCKETVAR_H
13130#include <sys/socketvar.h>
13131#endif
13132#ifdef HAVE_NET_ROUTE_H
13133#include <net/route.h>
13134#endif
13135#ifdef HAVE_NETINET_IN_H
13136#include <netinet/in.h>
13137#endif
13138#ifdef HAVE_NETINET_IN_SYSTM_H
13139#include <netinet/in_systm.h>
13140#endif
13141#ifdef HAVE_NETINET_IP_H
13142#include <netinet/ip.h>
13143#endif
13144#ifdef HAVE_NETINET_IN_PCB_H
13145#include <netinet/in_pcb.h>
13146#endif
13147"
13148if test "x$ac_cv_type_struct_xinpgen" = x""yes; then :
13149
13150cat >>confdefs.h <<_ACEOF
13151#define HAVE_STRUCT_XINPGEN 1
13152_ACEOF
abf5048b 13153
abf5048b 13154
abf5048b 13155fi
25e9e4f0
AJ
13156
13157
13158ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13159#include <linux/input.h>
13160#endif
13161"
13162if test "x$ac_cv_member_struct_ff_effect_direction" = x""yes; then :
abf5048b
AJ
13163
13164cat >>confdefs.h <<_ACEOF
25e9e4f0 13165#define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
abf5048b
AJ
13166_ACEOF
13167
13168
13169fi
25e9e4f0
AJ
13170
13171
13172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13173$as_echo_n "checking for sigaddset... " >&6; }
13174if test "${wine_cv_have_sigaddset+set}" = set; then :
abf5048b
AJ
13175 $as_echo_n "(cached) " >&6
13176else
25e9e4f0 13177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
abf5048b 13178/* end confdefs.h. */
25e9e4f0 13179#include <signal.h>
abf5048b
AJ
13180int
13181main ()
13182{
25e9e4f0 13183sigset_t set; sigaddset(&set,SIGTERM);
abf5048b
AJ
13184 ;
13185 return 0;
13186}
13187_ACEOF
25e9e4f0
AJ
13188if ac_fn_c_try_link "$LINENO"; then :
13189 wine_cv_have_sigaddset=yes
13190else
13191 wine_cv_have_sigaddset=no
13192fi
13193rm -f core conftest.err conftest.$ac_objext \
13194 conftest$ac_exeext conftest.$ac_ext
13195fi
13196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13197$as_echo "$wine_cv_have_sigaddset" >&6; }
13198if test "$wine_cv_have_sigaddset" = "yes"
13199then
13200
13201$as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13202
13203fi
13204
13205
13206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13207$as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13208if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then :
13209 $as_echo_n "(cached) " >&6
13210else
13211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
abf5048b 13212/* end confdefs.h. */
25e9e4f0 13213#include <netdb.h>
abf5048b
AJ
13214int
13215main ()
13216{
25e9e4f0
AJ
13217
13218 char *name=0;
13219 struct hostent he;
13220 struct hostent *result;
13221 char *buf=0;
13222 int bufsize=0;
13223 int res,errnr;
13224 char *addr=0;
13225 int addrlen=0;
13226 int addrtype=0;
13227 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13228 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13229
abf5048b
AJ
13230 ;
13231 return 0;
13232}
13233_ACEOF
25e9e4f0
AJ
13234if ac_fn_c_try_link "$LINENO"; then :
13235 wine_cv_linux_gethostbyname_r_6=yes
abf5048b 13236else
25e9e4f0 13237 wine_cv_linux_gethostbyname_r_6=no
abf5048b
AJ
13238
13239fi
25e9e4f0
AJ
13240rm -f core conftest.err conftest.$ac_objext \
13241 conftest$ac_exeext conftest.$ac_ext
abf5048b 13242
abf5048b 13243fi
25e9e4f0
AJ
13244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13245$as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13246 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13247 then
abf5048b 13248
25e9e4f0 13249$as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
abf5048b 13250
25e9e4f0 13251 fi
abf5048b 13252
25e9e4f0
AJ
13253if test "$ac_cv_header_linux_joystick_h" = "yes"
13254then
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13256$as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13257if test "${wine_cv_linux_joystick_22_api+set}" = set; then :
abf5048b
AJ
13258 $as_echo_n "(cached) " >&6
13259else
25e9e4f0 13260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
abf5048b 13261/* end confdefs.h. */
25e9e4f0
AJ
13262
13263 #include <sys/ioctl.h>
13264 #include <sys/types.h>
13265 #include <linux/joystick.h>
13266
13267 struct js_event blub;
13268 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13269 #error "no 2.2 header"
13270 #endif
13271
abf5048b
AJ
13272int
13273main ()
13274{
25e9e4f0 13275/*empty*/
abf5048b
AJ
13276 ;
13277 return 0;
13278}
13279_ACEOF
25e9e4f0
AJ
13280if ac_fn_c_try_compile "$LINENO"; then :
13281 wine_cv_linux_joystick_22_api=yes
36bdc64e 13282else
25e9e4f0 13283 wine_cv_linux_joystick_22_api=no
36bdc64e 13284fi
0ebeb530 13285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29 13286
36bdc64e 13287fi
25e9e4f0
AJ
13288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13289$as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13290 if test "$wine_cv_linux_joystick_22_api" = "yes"
13291 then
36bdc64e 13292
25e9e4f0 13293$as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
36bdc64e 13294
25e9e4f0 13295 fi
36bdc64e 13296fi
36bdc64e 13297
36bdc64e 13298
25e9e4f0
AJ
13299ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13300#ifdef HAVE_SYS_PARAM_H
13301# include <sys/param.h>
13302#endif
13303#ifdef HAVE_SYS_MOUNT_H
13304# include <sys/mount.h>
13305#endif
13306#ifdef HAVE_SYS_VFS_H
13307# include <sys/vfs.h>
13308#endif
13309#ifdef HAVE_SYS_STATFS_H
13310# include <sys/statfs.h>
36bdc64e 13311#endif
25e9e4f0
AJ
13312"
13313if test "x$ac_cv_member_struct_statfs_f_bfree" = x""yes; then :
36bdc64e 13314
25e9e4f0
AJ
13315cat >>confdefs.h <<_ACEOF
13316#define HAVE_STRUCT_STATFS_F_BFREE 1
36bdc64e 13317_ACEOF
36bdc64e 13318
fc6ffb29 13319
36bdc64e 13320fi
25e9e4f0
AJ
13321ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13322#ifdef HAVE_SYS_PARAM_H
13323# include <sys/param.h>
13324#endif
13325#ifdef HAVE_SYS_MOUNT_H
13326# include <sys/mount.h>
13327#endif
13328#ifdef HAVE_SYS_VFS_H
13329# include <sys/vfs.h>
13330#endif
13331#ifdef HAVE_SYS_STATFS_H
13332# include <sys/statfs.h>
13333#endif
13334"
13335if test "x$ac_cv_member_struct_statfs_f_bavail" = x""yes; then :
36bdc64e
GP
13336
13337cat >>confdefs.h <<_ACEOF
25e9e4f0 13338#define HAVE_STRUCT_STATFS_F_BAVAIL 1
36bdc64e
GP
13339_ACEOF
13340
13341
571d9fb0 13342fi
25e9e4f0
AJ
13343ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13344#ifdef HAVE_SYS_PARAM_H
13345# include <sys/param.h>
571d9fb0 13346#endif
25e9e4f0
AJ
13347#ifdef HAVE_SYS_MOUNT_H
13348# include <sys/mount.h>
13349#endif
13350#ifdef HAVE_SYS_VFS_H
13351# include <sys/vfs.h>
13352#endif
13353#ifdef HAVE_SYS_STATFS_H
13354# include <sys/statfs.h>
571d9fb0 13355#endif
25e9e4f0
AJ
13356"
13357if test "x$ac_cv_member_struct_statfs_f_frsize" = x""yes; then :
571d9fb0 13358
25e9e4f0
AJ
13359cat >>confdefs.h <<_ACEOF
13360#define HAVE_STRUCT_STATFS_F_FRSIZE 1
571d9fb0 13361_ACEOF
fc6ffb29 13362
fc6ffb29 13363
571d9fb0 13364fi
25e9e4f0
AJ
13365ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13366#ifdef HAVE_SYS_PARAM_H
13367# include <sys/param.h>
13368#endif
13369#ifdef HAVE_SYS_MOUNT_H
13370# include <sys/mount.h>
13371#endif
13372#ifdef HAVE_SYS_VFS_H
13373# include <sys/vfs.h>
13374#endif
13375#ifdef HAVE_SYS_STATFS_H
13376# include <sys/statfs.h>
13377#endif
13378"
13379if test "x$ac_cv_member_struct_statfs_f_ffree" = x""yes; then :
571d9fb0
GP
13380
13381cat >>confdefs.h <<_ACEOF
25e9e4f0 13382#define HAVE_STRUCT_STATFS_F_FFREE 1
571d9fb0
GP
13383_ACEOF
13384
13385
36bdc64e 13386fi
25e9e4f0
AJ
13387ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13388#ifdef HAVE_SYS_PARAM_H
13389# include <sys/param.h>
13390#endif
13391#ifdef HAVE_SYS_MOUNT_H
13392# include <sys/mount.h>
13393#endif
13394#ifdef HAVE_SYS_VFS_H
13395# include <sys/vfs.h>
13396#endif
13397#ifdef HAVE_SYS_STATFS_H
13398# include <sys/statfs.h>
db89a54b 13399#endif
25e9e4f0
AJ
13400"
13401if test "x$ac_cv_member_struct_statfs_f_favail" = x""yes; then :
db89a54b 13402
25e9e4f0
AJ
13403cat >>confdefs.h <<_ACEOF
13404#define HAVE_STRUCT_STATFS_F_FAVAIL 1
db89a54b 13405_ACEOF
db89a54b 13406
25e9e4f0
AJ
13407
13408fi
13409ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13410#ifdef HAVE_SYS_PARAM_H
13411# include <sys/param.h>
13412#endif
13413#ifdef HAVE_SYS_MOUNT_H
13414# include <sys/mount.h>
13415#endif
13416#ifdef HAVE_SYS_VFS_H
13417# include <sys/vfs.h>
13418#endif
13419#ifdef HAVE_SYS_STATFS_H
13420# include <sys/statfs.h>
db89a54b 13421#endif
25e9e4f0
AJ
13422"
13423if test "x$ac_cv_member_struct_statfs_f_namelen" = x""yes; then :
db89a54b 13424
25e9e4f0
AJ
13425cat >>confdefs.h <<_ACEOF
13426#define HAVE_STRUCT_STATFS_F_NAMELEN 1
db89a54b 13427_ACEOF
db89a54b 13428
fc6ffb29 13429
db89a54b 13430fi
fc6ffb29 13431
25e9e4f0
AJ
13432
13433ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13434#include <sys/statvfs.h>
13435#endif
13436"
13437if test "x$ac_cv_member_struct_statvfs_f_blocks" = x""yes; then :
db89a54b
AJ
13438
13439cat >>confdefs.h <<_ACEOF
25e9e4f0 13440#define HAVE_STRUCT_STATVFS_F_BLOCKS 1
db89a54b
AJ
13441_ACEOF
13442
13443
13444fi
13445
13446
25e9e4f0
AJ
13447ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13448#ifdef HAVE_SYS_SOCKET_H
13449# include <sys/socket.h>
13450#endif
13451#ifdef HAVE_SYS_UN_H
13452# include <sys/un.h>
13453#endif
13454"
13455if test "x$ac_cv_member_struct_msghdr_msg_accrights" = x""yes; then :
d6507196 13456
25e9e4f0
AJ
13457cat >>confdefs.h <<_ACEOF
13458#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
d6507196 13459_ACEOF
d6507196 13460
fc6ffb29 13461
d6507196 13462fi
25e9e4f0
AJ
13463ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13464#ifdef HAVE_SYS_SOCKET_H
13465# include <sys/socket.h>
13466#endif
13467#ifdef HAVE_SYS_UN_H
13468# include <sys/un.h>
13469#endif
13470"
13471if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
d6507196
PR
13472
13473cat >>confdefs.h <<_ACEOF
25e9e4f0 13474#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
d6507196
PR
13475_ACEOF
13476
13477
af2d274f 13478fi
25e9e4f0
AJ
13479ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13480#ifdef HAVE_SYS_SOCKET_H
13481# include <sys/socket.h>
13482#endif
13483#ifdef HAVE_SYS_UN_H
13484# include <sys/un.h>
13485#endif
13486"
13487if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = x""yes; then :
af2d274f 13488
25e9e4f0
AJ
13489cat >>confdefs.h <<_ACEOF
13490#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
af2d274f 13491_ACEOF
af2d274f 13492
af2d274f 13493
af2d274f
MK
13494fi
13495
25e9e4f0
AJ
13496
13497ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13498#ifdef HAVE_SCSI_SG_H
13499#include <scsi/sg.h>
13500#endif
13501"
13502if test "x$ac_cv_member_scsireq_t_cmd" = x""yes; then :
af2d274f
MK
13503
13504cat >>confdefs.h <<_ACEOF
25e9e4f0 13505#define HAVE_SCSIREQ_T_CMD 1
af2d274f
MK
13506_ACEOF
13507
13508
13509fi
25e9e4f0
AJ
13510ac_fn_c_check_member "$LINENO" "sg_io_hdr_t" "interface_id" "ac_cv_member_sg_io_hdr_t_interface_id" "#include <sys/types.h>
13511#ifdef HAVE_SCSI_SG_H
13512#include <scsi/sg.h>
13513#endif
13514"
13515if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = x""yes; then :
af2d274f 13516
25e9e4f0
AJ
13517cat >>confdefs.h <<_ACEOF
13518#define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
af2d274f 13519_ACEOF
af2d274f 13520
af2d274f 13521
af2d274f
MK
13522fi
13523
25e9e4f0
AJ
13524
13525ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13526"
13527if test "x$ac_cv_member_siginfo_t_si_fd" = x""yes; then :
af2d274f
MK
13528
13529cat >>confdefs.h <<_ACEOF
25e9e4f0 13530#define HAVE_SIGINFO_T_SI_FD 1
af2d274f
MK
13531_ACEOF
13532
13533
13534fi
af2d274f 13535
25e9e4f0
AJ
13536
13537ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13538#ifdef HAVE_SYS_MTIO_H
13539#include <sys/mtio.h>
13540#endif
13541"
13542if test "x$ac_cv_member_struct_mtget_mt_blksiz" = x""yes; then :
13543
13544cat >>confdefs.h <<_ACEOF
13545#define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
af2d274f 13546_ACEOF
af2d274f 13547
af2d274f 13548
25e9e4f0
AJ
13549fi
13550ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
13551#ifdef HAVE_SYS_MTIO_H
13552#include <sys/mtio.h>
13553#endif
13554"
13555if test "x$ac_cv_member_struct_mtget_mt_gstat" = x""yes; then :
13556
13557cat >>confdefs.h <<_ACEOF
13558#define HAVE_STRUCT_MTGET_MT_GSTAT 1
13559_ACEOF
13560
af2d274f 13561
af2d274f 13562fi
25e9e4f0
AJ
13563ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
13564#ifdef HAVE_SYS_MTIO_H
13565#include <sys/mtio.h>
13566#endif
13567"
13568if test "x$ac_cv_member_struct_mtget_mt_blkno" = x""yes; then :
af2d274f
MK
13569
13570cat >>confdefs.h <<_ACEOF
25e9e4f0 13571#define HAVE_STRUCT_MTGET_MT_BLKNO 1
af2d274f
MK
13572_ACEOF
13573
13574
d6507196
PR
13575fi
13576
13577
25e9e4f0
AJ
13578ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
13579#include <getopt.h>
40a6a74a 13580#endif
25e9e4f0
AJ
13581"
13582if test "x$ac_cv_member_struct_option_name" = x""yes; then :
40a6a74a 13583
25e9e4f0
AJ
13584cat >>confdefs.h <<_ACEOF
13585#define HAVE_STRUCT_OPTION_NAME 1
40a6a74a 13586_ACEOF
40a6a74a 13587
40a6a74a 13588
25e9e4f0
AJ
13589fi
13590
13591
13592ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13593if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
13594
13595cat >>confdefs.h <<_ACEOF
13596#define HAVE_STRUCT_STAT_ST_BLOCKS 1
40a6a74a 13597_ACEOF
40a6a74a 13598
25e9e4f0 13599
40a6a74a 13600fi
25e9e4f0
AJ
13601ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13602if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
13603
13604cat >>confdefs.h <<_ACEOF
13605#define HAVE_STRUCT_STAT_ST_MTIM 1
13606_ACEOF
13607
fc6ffb29 13608
40a6a74a 13609fi
25e9e4f0
AJ
13610ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
13611if test "x$ac_cv_member_struct_stat_st_ctim" = x""yes; then :
13612
13613cat >>confdefs.h <<_ACEOF
13614#define HAVE_STRUCT_STAT_ST_CTIM 1
13615_ACEOF
13616
fc6ffb29 13617
40a6a74a 13618fi
25e9e4f0
AJ
13619ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
13620if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then :
40a6a74a
VL
13621
13622cat >>confdefs.h <<_ACEOF
25e9e4f0 13623#define HAVE_STRUCT_STAT_ST_ATIM 1
40a6a74a
VL
13624_ACEOF
13625
13626
13627fi
13628
13629
25e9e4f0 13630ac_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
13631#include <sys/types.h>
13632#endif
13633#ifdef HAVE_NETINET_IN_H
25e9e4f0 13634#include <netinet/in.h>
788e30f1 13635#endif
25e9e4f0
AJ
13636"
13637if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
788e30f1 13638
25e9e4f0
AJ
13639cat >>confdefs.h <<_ACEOF
13640#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
788e30f1 13641_ACEOF
788e30f1 13642
25e9e4f0
AJ
13643
13644fi
13645
13646
13647ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
788e30f1
AJ
13648#include <sys/types.h>
13649#endif
13650#ifdef HAVE_NETINET_IN_H
13651# include <netinet/in.h>
13652#endif
13653#ifdef HAVE_ARPA_NAMESER_H
13654# include <arpa/nameser.h>
13655#endif
25e9e4f0
AJ
13656"
13657if test "x$ac_cv_member_ns_msg__msg_ptr" = x""yes; then :
788e30f1
AJ
13658
13659cat >>confdefs.h <<_ACEOF
13660#define HAVE_NS_MSG__MSG_PTR 1
13661_ACEOF
13662
13663
13664fi
13665
13666
25e9e4f0 13667ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
ac0252db
AE
13668#include <sys/types.h>
13669#endif
13670#ifdef HAVE_ALIAS_H
13671#include <alias.h>
13672#endif
13673#ifdef HAVE_SYS_SOCKET_H
13674#include <sys/socket.h>
13675#endif
13676#ifdef HAVE_SYS_SOCKETVAR_H
13677#include <sys/socketvar.h>
13678#endif
13679#ifdef HAVE_SYS_TIMEOUT_H
13680#include <sys/timeout.h>
13681#endif
13682#ifdef HAVE_NETINET_IN_H
13683#include <netinet/in.h>
13684#endif
13685#ifdef HAVE_NETINET_IN_SYSTM_H
13686#include <netinet/in_systm.h>
13687#endif
13688#ifdef HAVE_NETINET_IP_H
13689#include <netinet/ip.h>
13690#endif
13691#ifdef HAVE_NETINET_IP_VAR_H
13692#include <netinet/ip_var.h>
13693#endif
13694#ifdef HAVE_NETINET_IP_ICMP_H
13695#include <netinet/ip_icmp.h>
13696#endif
13697#ifdef HAVE_NETINET_ICMP_VAR
13698#include <netinet/icmp_var.h>
13699#endif
25e9e4f0
AJ
13700"
13701if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = x""yes; then :
ac0252db
AE
13702
13703cat >>confdefs.h <<_ACEOF
13704#define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
13705_ACEOF
13706
13707
13708fi
13709
13710
984c3b2c
JL
13711ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
13712#include <sys/types.h>
13713#endif
13714#ifdef HAVE_NET_IF_H
13715# include <net/if.h>
13716#endif
13717"
13718if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
13719
13720cat >>confdefs.h <<_ACEOF
13721#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
13722_ACEOF
13723
13724
13725fi
13726
13727
25e9e4f0 13728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
abf5048b 13729$as_echo_n "checking for timezone variable... " >&6; }
25e9e4f0 13730if test "${ac_cv_have_timezone+set}" = set; then :
abf5048b 13731 $as_echo_n "(cached) " >&6
6618b035 13732else
25e9e4f0 13733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618b035
PK
13734/* end confdefs.h. */
13735#include <time.h>
13736int
13737main ()
13738{
ff2bd661 13739timezone = 1
6618b035
PK
13740 ;
13741 return 0;
13742}
25e9e4f0
AJ
13743_ACEOF
13744if ac_fn_c_try_link "$LINENO"; then :
6618b035
PK
13745 ac_cv_have_timezone="yes"
13746else
25e9e4f0 13747 ac_cv_have_timezone="no"
6618b035 13748fi
25e9e4f0
AJ
13749rm -f core conftest.err conftest.$ac_objext \
13750 conftest$ac_exeext conftest.$ac_ext
6618b035 13751fi
25e9e4f0 13752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
abf5048b 13753$as_echo "$ac_cv_have_timezone" >&6; }
6618b035
PK
13754if test "$ac_cv_have_timezone" = "yes"
13755then
13756
25e9e4f0 13757$as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
6618b035
PK
13758
13759fi
25e9e4f0 13760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
abf5048b 13761$as_echo_n "checking for daylight variable... " >&6; }
25e9e4f0 13762if test "${ac_cv_have_daylight+set}" = set; then :
abf5048b 13763 $as_echo_n "(cached) " >&6
6618b035 13764else
25e9e4f0 13765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618b035
PK
13766/* end confdefs.h. */
13767#include <time.h>
13768int
13769main ()
13770{
ff2bd661 13771daylight = 1
6618b035
PK
13772 ;
13773 return 0;
13774}
13775_ACEOF
25e9e4f0 13776if ac_fn_c_try_link "$LINENO"; then :
6618b035
PK
13777 ac_cv_have_daylight="yes"
13778else
25e9e4f0 13779 ac_cv_have_daylight="no"
6618b035 13780fi
25e9e4f0
AJ
13781rm -f core conftest.err conftest.$ac_objext \
13782 conftest$ac_exeext conftest.$ac_ext
6618b035 13783fi
25e9e4f0 13784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
abf5048b 13785$as_echo "$ac_cv_have_daylight" >&6; }
6618b035
PK
13786if test "$ac_cv_have_daylight" = "yes"
13787then
13788
25e9e4f0 13789$as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
6618b035
PK
13790
13791fi
13792
25e9e4f0 13793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
abf5048b 13794$as_echo_n "checking for isinf... " >&6; }
25e9e4f0 13795if test "${ac_cv_have_isinf+set}" = set; then :
abf5048b 13796 $as_echo_n "(cached) " >&6
4992b659 13797else
25e9e4f0 13798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992b659
PS
13799/* end confdefs.h. */
13800#include <math.h>
13801int
13802main ()
13803{
2fef93a8 13804float f = 0.0; int i=isinf(f)
4992b659
PS
13805 ;
13806 return 0;
13807}
13808_ACEOF
25e9e4f0 13809if ac_fn_c_try_link "$LINENO"; then :
4992b659
PS
13810 ac_cv_have_isinf="yes"
13811else
25e9e4f0 13812 ac_cv_have_isinf="no"
4992b659 13813fi
25e9e4f0
AJ
13814rm -f core conftest.err conftest.$ac_objext \
13815 conftest$ac_exeext conftest.$ac_ext
4992b659 13816fi
25e9e4f0 13817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
abf5048b 13818$as_echo "$ac_cv_have_isinf" >&6; }
4992b659
PS
13819if test "$ac_cv_have_isinf" = "yes"
13820then
13821
25e9e4f0 13822$as_echo "#define HAVE_ISINF 1" >>confdefs.h
4992b659
PS
13823
13824fi
13825
25e9e4f0 13826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
abf5048b 13827$as_echo_n "checking for isnan... " >&6; }
25e9e4f0 13828if test "${ac_cv_have_isnan+set}" = set; then :
abf5048b 13829 $as_echo_n "(cached) " >&6
1715dcbb 13830else
25e9e4f0 13831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1715dcbb
JC
13832/* end confdefs.h. */
13833#include <math.h>
13834int
13835main ()
13836{
13837float f = 0.0; int i=isnan(f)
13838 ;
13839 return 0;
13840}
13841_ACEOF
25e9e4f0 13842if ac_fn_c_try_link "$LINENO"; then :
1715dcbb
JC
13843 ac_cv_have_isnan="yes"
13844else
25e9e4f0 13845 ac_cv_have_isnan="no"
1715dcbb 13846fi
25e9e4f0
AJ
13847rm -f core conftest.err conftest.$ac_objext \
13848 conftest$ac_exeext conftest.$ac_ext
1715dcbb 13849fi
25e9e4f0 13850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
abf5048b 13851$as_echo "$ac_cv_have_isnan" >&6; }
1715dcbb
JC
13852if test "$ac_cv_have_isnan" = "yes"
13853then
13854
25e9e4f0 13855$as_echo "#define HAVE_ISNAN 1" >>confdefs.h
1715dcbb
JC
13856
13857fi
13858
daa2886c 13859
fc01b729 13860case $host_cpu in
25e9e4f0 13861 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
abf5048b 13862$as_echo_n "checking whether we need to define __i386__... " >&6; }
25e9e4f0 13863if test "${ac_cv_cpp_def___i386__+set}" = set; then :
abf5048b 13864 $as_echo_n "(cached) " >&6
51d46ba9 13865else
25e9e4f0 13866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 13867/* end confdefs.h. */
f5818d2f 13868#ifndef __i386__
51d46ba9
AJ
13869yes
13870#endif
f5818d2f 13871_ACEOF
51d46ba9 13872if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25e9e4f0 13873 $EGREP "yes" >/dev/null 2>&1; then :
05783b55 13874 ac_cv_cpp_def___i386__=yes
51d46ba9 13875else
05783b55 13876 ac_cv_cpp_def___i386__=no
51d46ba9
AJ
13877fi
13878rm -f conftest*
13879
13880fi
25e9e4f0 13881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
abf5048b 13882$as_echo "$ac_cv_cpp_def___i386__" >&6; }
25e9e4f0 13883if test $ac_cv_cpp_def___i386__ = yes; then :
05783b55
AJ
13884 CFLAGS="$CFLAGS -D__i386__"
13885 LINTFLAGS="$LINTFLAGS -D__i386__"
25e9e4f0
AJ
13886fi ;;
13887 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
abf5048b 13888$as_echo_n "checking whether we need to define __x86_64__... " >&6; }
25e9e4f0 13889if test "${ac_cv_cpp_def___x86_64__+set}" = set; then :
abf5048b 13890 $as_echo_n "(cached) " >&6
e3be5642 13891else
25e9e4f0 13892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e3be5642
AJ
13893/* end confdefs.h. */
13894#ifndef __x86_64__
13895yes
13896#endif
13897_ACEOF
13898if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25e9e4f0 13899 $EGREP "yes" >/dev/null 2>&1; then :
e3be5642
AJ
13900 ac_cv_cpp_def___x86_64__=yes
13901else
13902 ac_cv_cpp_def___x86_64__=no
13903fi
13904rm -f conftest*
13905
13906fi
25e9e4f0 13907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
abf5048b 13908$as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
25e9e4f0 13909if test $ac_cv_cpp_def___x86_64__ = yes; then :
e3be5642
AJ
13910 CFLAGS="$CFLAGS -D__x86_64__"
13911 LINTFLAGS="$LINTFLAGS -D__x86_64__"
25e9e4f0
AJ
13912fi ;;
13913 *alpha*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __ALPHA__" >&5
abf5048b 13914$as_echo_n "checking whether we need to define __ALPHA__... " >&6; }
25e9e4f0 13915if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then :
abf5048b 13916 $as_echo_n "(cached) " >&6
69b67861 13917else
25e9e4f0 13918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 13919/* end confdefs.h. */
69b67861
SE
13920#ifndef __ALPHA__
13921yes
13922#endif
13923_ACEOF
13924if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25e9e4f0 13925 $EGREP "yes" >/dev/null 2>&1; then :
05783b55 13926 ac_cv_cpp_def___ALPHA__=yes
69b67861 13927else
05783b55 13928 ac_cv_cpp_def___ALPHA__=no
69b67861
SE
13929fi
13930rm -f conftest*
13931
13932fi
25e9e4f0 13933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___ALPHA__" >&5
abf5048b 13934$as_echo "$ac_cv_cpp_def___ALPHA__" >&6; }
25e9e4f0 13935if test $ac_cv_cpp_def___ALPHA__ = yes; then :
05783b55
AJ
13936 CFLAGS="$CFLAGS -D__ALPHA__"
13937 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
25e9e4f0
AJ
13938fi ;;
13939 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
abf5048b 13940$as_echo_n "checking whether we need to define __sparc__... " >&6; }
25e9e4f0 13941if test "${ac_cv_cpp_def___sparc__+set}" = set; then :
abf5048b 13942 $as_echo_n "(cached) " >&6
57807fa1 13943else
25e9e4f0 13944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 13945/* end confdefs.h. */
57807fa1
GM
13946#ifndef __sparc__
13947yes
13948#endif
13949_ACEOF
13950if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25e9e4f0 13951 $EGREP "yes" >/dev/null 2>&1; then :
05783b55 13952 ac_cv_cpp_def___sparc__=yes
57807fa1 13953else
05783b55 13954 ac_cv_cpp_def___sparc__=no
57807fa1
GM
13955fi
13956rm -f conftest*
13957
13958fi
25e9e4f0 13959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
abf5048b 13960$as_echo "$ac_cv_cpp_def___sparc__" >&6; }
25e9e4f0 13961if test $ac_cv_cpp_def___sparc__ = yes; then :
05783b55
AJ
13962 CFLAGS="$CFLAGS -D__sparc__"
13963 LINTFLAGS="$LINTFLAGS -D__sparc__"
25e9e4f0
AJ
13964fi ;;
13965 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
abf5048b 13966$as_echo_n "checking whether we need to define __powerpc__... " >&6; }
25e9e4f0 13967if test "${ac_cv_cpp_def___powerpc__+set}" = set; then :
abf5048b 13968 $as_echo_n "(cached) " >&6
b64b7deb 13969else
25e9e4f0 13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b64b7deb
PH
13971/* end confdefs.h. */
13972#ifndef __powerpc__
13973yes
13974#endif
13975_ACEOF
13976if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25e9e4f0 13977 $EGREP "yes" >/dev/null 2>&1; then :
b64b7deb
PH
13978 ac_cv_cpp_def___powerpc__=yes
13979else
13980 ac_cv_cpp_def___powerpc__=no
13981fi
13982rm -f conftest*
13983
13984fi
25e9e4f0 13985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
abf5048b 13986$as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
25e9e4f0 13987if test $ac_cv_cpp_def___powerpc__ = yes; then :
b64b7deb
PH
13988 CFLAGS="$CFLAGS -D__powerpc__"
13989 LINTFLAGS="$LINTFLAGS -D__powerpc__"
25e9e4f0 13990fi ;;
05783b55 13991esac
57807fa1
GM
13992
13993case $host_vendor in
25e9e4f0 13994 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
abf5048b 13995$as_echo_n "checking whether we need to define __sun__... " >&6; }
25e9e4f0 13996if test "${ac_cv_cpp_def___sun__+set}" = set; then :
abf5048b 13997 $as_echo_n "(cached) " >&6
57807fa1 13998else
25e9e4f0 13999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e24bcc77 14000/* end confdefs.h. */
57807fa1
GM
14001#ifndef __sun__
14002yes
14003#endif
14004_ACEOF
14005if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25e9e4f0 14006 $EGREP "yes" >/dev/null 2>&1; then :
05783b55 14007 ac_cv_cpp_def___sun__=yes
57807fa1 14008else
05783b55 14009 ac_cv_cpp_def___sun__=no
57807fa1
GM
14010fi
14011rm -f conftest*
14012
14013fi
25e9e4f0 14014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
abf5048b 14015$as_echo "$ac_cv_cpp_def___sun__" >&6; }
25e9e4f0 14016if test $ac_cv_cpp_def___sun__ = yes; then :
05783b55
AJ
14017 CFLAGS="$CFLAGS -D__sun__"
14018 LINTFLAGS="$LINTFLAGS -D__sun__"
25e9e4f0 14019fi ;;
05783b55 14020esac
57807fa1
GM
14021
14022
a360e934 14023
7d831155 14024
6c142387 14025
7d831155
AJ
14026ac_config_commands="$ac_config_commands include/stamp-h"
14027
7d020c9f 14028
39b4ba21
AJ
14029ALL_MAKEFILE_DEPENDS="
14030# Rules automatically generated by configure
a360e934 14031
39b4ba21 14032.INIT: Makefile
39b4ba21 14033.MAKEFILEDEPS:
bd3110d8 14034all: Makefile
39b4ba21
AJ
14035Makefile: Makefile.in Make.rules config.status
14036 @./config.status Make.tmp Makefile"
7d831155 14037
abfb11e1 14038ALL_WINETEST_DEPENDS="# Test binaries"
7d831155 14039
454fb3c1
AJ
14040ALL_TEST_BINARIES=""
14041
49163da1 14042
2de10c4a
AJ
14043wine_fn_append_file ()
14044{
14045 as_fn_append $1 " \\$as_nl $2"
14046}
fc7f1c7e 14047
2de10c4a
AJ
14048wine_fn_append_rule ()
14049{
14050 as_fn_append $1 "$as_nl$2"
14051}
fc7f1c7e 14052
943cd739
AJ
14053wine_fn_all_dir_rules ()
14054{
14055 wine_fn_append_file ALL_DIRS $1
14056 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
764d4c2a
AJ
14057"__clean__: $1/__clean__
14058.PHONY: $1/__clean__
3cc14dc3
AJ
14059$1/__clean__: $1/Makefile
14060 @cd $1 && \$(MAKE) clean
14061 \$(RM) $1/Makefile
18e5313c
AJ
14062$1/Makefile: $1/Makefile.in config.status $2
14063 @./config.status --file $1/Makefile && cd $1 && \$(MAKE) depend
764d4c2a
AJ
14064depend: $1/__depend__
14065.PHONY: $1/__depend__
18e5313c 14066$1/__depend__: \$(MAKEDEP) dummy
943cd739
AJ
14067 @./config.status --file $1/Makefile && cd $1 && \$(MAKE) depend"
14068}
14069
fc7f1c7e
AJ
14070wine_fn_config_makefile ()
14071{
14072 ac_dir=$1
03642414 14073 ac_enable=$2
03642414
AJ
14074 eval as_val=\$$ac_enable
14075 if test "x$as_val" = x""no; then :
9bdd0272
AJ
14076 return 0
14077fi
03642414 14078
9bdd0272
AJ
14079 wine_fn_all_dir_rules $ac_dir "Make.rules \$(MAKEDEP)"
14080 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
764d4c2a
AJ
14081"all: $ac_dir
14082.PHONY: $ac_dir
6c90aeae
AJ
14083$ac_dir: $ac_dir/Makefile dummy
14084 @cd $ac_dir && \$(MAKE)
e84063bf
AJ
14085install:: $ac_dir
14086 @cd $ac_dir && \$(MAKE) install
14087install-lib:: $ac_dir
14088 @cd $ac_dir && \$(MAKE) install-lib
14089install-dev:: $ac_dir
14090 @cd $ac_dir && \$(MAKE) install-dev
14091uninstall:: $ac_dir/Makefile
14092 @cd $ac_dir && \$(MAKE) uninstall"
fc7f1c7e
AJ
14093}
14094
14095wine_fn_config_lib ()
14096{
14097 ac_name=$1
b8fb1d5d 14098 ac_dir=dlls/$ac_name
943cd739 14099 wine_fn_all_dir_rules $ac_dir "dlls/Makeimplib.rules \$(MAKEDEP)"
fc7f1c7e 14100 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
c2c3c210 14101"all __builddeps__: $ac_dir
7d2e7726 14102$ac_dir: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include dummy
6c90aeae 14103 @cd $ac_dir && \$(MAKE)
c2c3c210
AJ
14104install install-dev:: $ac_dir
14105 @cd $ac_dir && \$(MAKE) install
14106uninstall:: $ac_dir/Makefile
14107 @cd $ac_dir && \$(MAKE) uninstall"
fc7f1c7e
AJ
14108}
14109
50231941
AJ
14110wine_fn_config_dll ()
14111{
14112 ac_dir=$1
5cdd8415
AJ
14113 ac_enable=$2
14114 ac_implib=$3
14115 ac_implibsrc=$4
50231941
AJ
14116 ac_file="dlls/$ac_dir/lib$ac_implib"
14117 ac_deps="tools/widl tools/winebuild tools/winegcc include"
b0e48e1e
AJ
14118 ac_implibflags=""
14119
14120 case $ac_dir in
14121 *16) ac_implibflags=" -m16" ;;
14122 esac
50231941 14123
943cd739 14124 wine_fn_all_dir_rules dlls/$ac_dir "dlls/Makedll.rules \$(MAKEDEP)"
82b743ff 14125
5cdd8415
AJ
14126 eval as_val=\$$ac_enable
14127 if test "x$as_val" = x""no; then :
14128 test "$ac_enable" != enable_win16 || return 0
14129else
60a05ad2 14130 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
764d4c2a
AJ
14131"all: dlls/$ac_dir
14132.PHONY: dlls/$ac_dir
6c90aeae
AJ
14133dlls/$ac_dir: dlls/$ac_dir/Makefile __builddeps__ dummy
14134 @cd dlls/$ac_dir && \$(MAKE)
82b743ff
AJ
14135install:: dlls/$ac_dir/Makefile __builddeps__
14136 @cd dlls/$ac_dir && \$(MAKE) install
14137install-lib:: dlls/$ac_dir/Makefile __builddeps__
14138 @cd dlls/$ac_dir && \$(MAKE) install-lib
60a05ad2
AJ
14139uninstall manpages htmlpages sgmlpages xmlpages:: dlls/$ac_dir/Makefile
14140 @cd dlls/$ac_dir && \$(MAKE) \$@"
5cdd8415 14141fi
50231941
AJ
14142
14143 if test -n "$ac_implibsrc"
14144 then
14145 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
e55ff7fe 14146"__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
e55ff7fe 14147$ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
50231941 14148$ac_file.def: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile
faa7eae8
AJ
14149 @cd dlls/$ac_dir && \$(MAKE) lib$ac_implib.def
14150$ac_file.$STATIC_IMPLIBEXT: dlls/$ac_dir/Makefile dummy
14151 @cd dlls/$ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
82b743ff
AJ
14152install-dev:: dlls/$ac_dir/Makefile __builddeps__
14153 @cd dlls/$ac_dir && \$(MAKE) install-dev"
faa7eae8
AJ
14154 if test "x$CROSSTEST_DISABLE" = x
14155 then
14156 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14157"__builddeps__: $ac_file.cross.a
14158$ac_file.cross.a: dlls/$ac_dir/Makefile dummy
14159 @cd dlls/$ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14160 fi
14161
50231941
AJ
14162 elif test -n "$ac_implib"
14163 then
14164 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
e55ff7fe 14165"__builddeps__: $ac_file.$IMPLIBEXT
f56dd18a 14166$ac_file.def: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile \$(WINEBUILD)
b0e48e1e 14167 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(SRCDIR)/dlls/$ac_dir/$ac_dir.spec
f56dd18a 14168$ac_file.a: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile \$(WINEBUILD)
b0e48e1e 14169 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(SRCDIR)/dlls/$ac_dir/$ac_dir.spec
82b743ff
AJ
14170install-dev:: dlls/$ac_dir/Makefile __builddeps__
14171 @cd dlls/$ac_dir && \$(MAKE) install-dev"
faa7eae8
AJ
14172 if test "x$CROSSTEST_DISABLE" = x
14173 then
14174 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14175"__builddeps__: $ac_file.cross.a
f56dd18a 14176$ac_file.cross.a: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile \$(WINEBUILD)
b0e48e1e 14177 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(SRCDIR)/dlls/$ac_dir/$ac_dir.spec"
faa7eae8 14178 fi
50231941
AJ
14179
14180 if test "$ac_dir" != "$ac_implib"
14181 then
14182 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
e55ff7fe 14183"__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
e55ff7fe 14184dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
50231941 14185 \$(RM) \$@ && \$(LN_S) $ac_dir/lib$ac_implib.$IMPLIBEXT \$@
50231941
AJ
14186clean::
14187 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
faa7eae8
AJ
14188 if test "x$CROSSTEST_DISABLE" = x
14189 then
14190 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14191"__builddeps__: dlls/lib$ac_implib.cross.a
14192dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14193 \$(RM) \$@ && \$(LN_S) $ac_dir/lib$ac_implib.cross.a \$@"
14194 fi
50231941
AJ
14195 fi
14196 fi
14197}
14198
14199wine_fn_config_program ()
14200{
14201 ac_dir=$1
d394e042
AJ
14202 ac_enable=$2
14203 ac_install=$3
943cd739 14204 wine_fn_all_dir_rules programs/$ac_dir "programs/Makeprog.rules \$(MAKEDEP)"
d7b387d3 14205
d394e042
AJ
14206 eval as_val=\$$ac_enable
14207 if test "x$as_val" = x""no; then :
14208
14209else
d7b387d3 14210 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
764d4c2a
AJ
14211"all: programs/$ac_dir
14212.PHONY: programs/$ac_dir
6c90aeae
AJ
14213programs/$ac_dir: programs/$ac_dir/Makefile __builddeps__ dummy
14214 @cd programs/$ac_dir && \$(MAKE)"
14215
2fb30218
AJ
14216 test -n "$ac_install" || return
14217 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
d7b387d3
AJ
14218"install install-lib:: programs/$ac_dir/Makefile __builddeps__
14219 @cd programs/$ac_dir && \$(MAKE) install
14220uninstall:: programs/$ac_dir/Makefile
14221 @cd programs/$ac_dir && \$(MAKE) uninstall"
718ea42f 14222 if test "$ac_install" = installbin -a -n "$DLLEXT" -a "x$enable_tools" != xno
2fb30218
AJ
14223 then
14224 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
718ea42f
AJ
14225"install install-lib:: tools \$(DESTDIR)\$(bindir)
14226 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_dir
2fb30218
AJ
14227uninstall::
14228 \$(RM) \$(DESTDIR)\$(bindir)/$ac_dir"
d7b387d3 14229 fi
d394e042 14230fi
50231941
AJ
14231}
14232
fc7f1c7e
AJ
14233wine_fn_config_test ()
14234{
14235 ac_dir=$1
14236 ac_name=$2
14237 wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe
14238 wine_fn_append_rule ALL_WINETEST_DEPENDS \
14239"$ac_name.exe: \$(TOPOBJDIR)/$ac_dir/$ac_name.exe$DLLEXT
14240 cp \$(TOPOBJDIR)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@
14241$ac_name.rc:
14242 echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" >\$@ || (\$(RM) \$@ && false)
14243$ac_name.res: $ac_name.rc $ac_name.exe"
943cd739 14244 wine_fn_all_dir_rules $ac_dir "Maketest.rules \$(MAKEDEP)"
44cff7e9 14245
dc3afa1f
AJ
14246 if test "x$enable_tests" = x""no; then :
14247
14248else
44cff7e9 14249 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
764d4c2a
AJ
14250"all programs/winetest: $ac_dir
14251.PHONY: $ac_dir
6c90aeae
AJ
14252$ac_dir: $ac_dir/Makefile __builddeps__ dummy
14253 @cd $ac_dir && \$(MAKE)
764d4c2a
AJ
14254test: $ac_dir/__test__
14255.PHONY: $ac_dir/__test__
eab7efd1 14256$ac_dir/__test__: dummy
44cff7e9
AJ
14257 @cd $ac_dir && \$(MAKE) test
14258testclean::
14259 \$(RM) $ac_dir/*.ok"
faa7eae8
AJ
14260
14261 if test "x$CROSSTEST_DISABLE" = x
14262 then
14263 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14264"crosstest: $ac_dir/__crosstest__
14265.PHONY: $ac_dir/__crosstest__
14266$ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14267 @cd $ac_dir && \$(MAKE) crosstest"
faa7eae8 14268 fi
dc3afa1f 14269fi
fc7f1c7e 14270}
d81a8f8d
AJ
14271
14272wine_fn_config_tool ()
14273{
14274 ac_dir=$1
14275 ac_deps="Make.rules"
14276 if test "$ac_dir" != tools
14277 then
14278 ac_deps="$ac_deps \$(MAKEDEP)"
14279 fi
943cd739 14280 wine_fn_all_dir_rules $ac_dir "$ac_deps"
6dbe7a03 14281
d81a8f8d
AJ
14282 if test "x$enable_tools" = x""no; then :
14283
14284else
6dbe7a03
AJ
14285 case $ac_dir in
14286 tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14287"install:: $ac_dir
14288 @cd $ac_dir && \$(MAKE) install
14289install-lib:: $ac_dir
14290 @cd $ac_dir && \$(MAKE) install-lib
14291install-dev:: $ac_dir
14292 @cd $ac_dir && \$(MAKE) install-dev" ;;
14293 *) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14294"install install-dev:: $ac_dir
14295 @cd $ac_dir && \$(MAKE) install" ;;
14296 esac
14297 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14298"uninstall:: $ac_dir/Makefile
14299 @cd $ac_dir && \$(MAKE) uninstall
764d4c2a
AJ
14300all __tooldeps__: $ac_dir
14301.PHONY: $ac_dir
6c90aeae
AJ
14302$ac_dir: $ac_dir/Makefile libs/port dummy
14303 @cd $ac_dir && \$(MAKE)"
b0e48e1e
AJ
14304 case $ac_dir in
14305 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14306 esac
d81a8f8d
AJ
14307fi
14308}
abfb11e1
AJ
14309
14310wine_fn_config_makerules ()
14311{
14312 ac_rules=$1
14313 ac_deps=$2
14314 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14315"$ac_rules: $ac_rules.in $ac_deps config.status
14316 @./config.status $ac_rules
14317distclean::
14318 \$(RM) $ac_rules"
14319}
14320
14321wine_fn_config_symlink ()
14322{
14323 ac_link=$1
14324 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14325"$ac_link:
14326 @./config.status $ac_link
14327distclean::
14328 \$(RM) $ac_link"
14329}
a070f9b0
AJ
14330
14331if test "x$CROSSTEST_DISABLE" != x
14332then
14333 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14334"crosstest:
14335 @echo \"crosstest is not supported (mingw not installed?)\" && false"
14336fi
a6320526 14337ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
abfb11e1 14338test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
0ef63e16 14339if test "x$enable_fonts" != xno; then
ce12296c 14340ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
abfb11e1 14341test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
0ef63e16
AJ
14342fi
14343if test "x$enable_fonts" != xno; then
ce12296c 14344ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
abfb11e1 14345test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
0ef63e16
AJ
14346fi
14347if test "x$enable_fonts" != xno; then
ce12296c 14348ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
abfb11e1 14349test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
0ef63e16
AJ
14350fi
14351if test "x$enable_fonts" != xno; then
ce12296c 14352ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
abfb11e1 14353test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
0ef63e16 14354fi
321d3883
AJ
14355ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14356test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
7d020c9f 14357ac_config_links="$ac_config_links wine:tools/winewrapper"
abfb11e1 14358wine_fn_config_symlink wine
7d020c9f 14359
7dfc4477 14360ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
89118568 14361
7dfc4477 14362ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
89118568 14363
1c60e3bf 14364ac_config_commands="$ac_config_commands dlls/kernel32/nls"
f5818d2f 14365
b8a2e3b8 14366ac_config_commands="$ac_config_commands dlls/user32/resources"
f5818d2f 14367
fc6ffb29 14368ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
f5818d2f 14369
fc6ffb29 14370ac_config_commands="$ac_config_commands include/wine"
f5818d2f 14371
f5818d2f 14372
abfb11e1 14373wine_fn_config_makerules Make.rules
f5818d2f 14374MAKE_RULES=Make.rules
a360e934 14375ac_config_files="$ac_config_files Make.rules"
f5818d2f 14376
abfb11e1 14377wine_fn_config_makerules Maketest.rules Make.rules
cb1fc8f4
AJ
14378MAKE_TEST_RULES=Maketest.rules
14379ac_config_files="$ac_config_files Maketest.rules"
14380
abfb11e1 14381wine_fn_config_makerules dlls/Makedll.rules Make.rules
f5818d2f 14382MAKE_DLL_RULES=dlls/Makedll.rules
a360e934 14383ac_config_files="$ac_config_files dlls/Makedll.rules"
d0edc5fe 14384
abfb11e1 14385wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
633b12d5 14386MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
a360e934 14387ac_config_files="$ac_config_files dlls/Makeimplib.rules"
633b12d5 14388
abfb11e1 14389wine_fn_config_makerules programs/Makeprog.rules Make.rules
626f425b 14390MAKE_PROG_RULES=programs/Makeprog.rules
a360e934 14391ac_config_files="$ac_config_files programs/Makeprog.rules"
626f425b 14392
daa2886c 14393
5cdd8415
AJ
14394wine_fn_config_dll acledit enable_acledit
14395wine_fn_config_dll aclui enable_aclui aclui
14396wine_fn_config_dll activeds enable_activeds activeds
14397wine_fn_config_dll actxprxy enable_actxprxy
fc7f1c7e 14398wine_fn_config_lib adsiid
5cdd8415 14399wine_fn_config_dll advapi32 enable_advapi32 advapi32
fc7f1c7e 14400wine_fn_config_test dlls/advapi32/tests advapi32_test
5cdd8415 14401wine_fn_config_dll advpack enable_advpack advpack
fc7f1c7e 14402wine_fn_config_test dlls/advpack/tests advpack_test
5cdd8415 14403wine_fn_config_dll amstream enable_amstream
fc7f1c7e 14404wine_fn_config_test dlls/amstream/tests amstream_test
5cdd8415
AJ
14405wine_fn_config_dll appwiz.cpl enable_appwiz_cpl
14406wine_fn_config_dll atl enable_atl atl
b3f04255 14407wine_fn_config_test dlls/atl/tests atl_test
5cdd8415
AJ
14408wine_fn_config_dll authz enable_authz
14409wine_fn_config_dll avicap32 enable_avicap32 avicap32
14410wine_fn_config_dll avifil32 enable_avifil32 avifil32
fc7f1c7e 14411wine_fn_config_test dlls/avifil32/tests avifil32_test
5cdd8415
AJ
14412wine_fn_config_dll avifile.dll16 enable_win16
14413wine_fn_config_dll avrt enable_avrt avrt
14414wine_fn_config_dll bcrypt enable_bcrypt
14415wine_fn_config_dll browseui enable_browseui
fc7f1c7e 14416wine_fn_config_test dlls/browseui/tests browseui_test
5cdd8415 14417wine_fn_config_dll cabinet enable_cabinet cabinet
fc7f1c7e 14418wine_fn_config_test dlls/cabinet/tests cabinet_test
5cdd8415
AJ
14419wine_fn_config_dll capi2032 enable_capi2032 capi2032
14420wine_fn_config_dll cards enable_cards cards
14421wine_fn_config_dll cfgmgr32 enable_cfgmgr32 cfgmgr32
14422wine_fn_config_dll clusapi enable_clusapi clusapi
14423wine_fn_config_dll comcat enable_comcat
fc7f1c7e 14424wine_fn_config_test dlls/comcat/tests comcat_test
5cdd8415 14425wine_fn_config_dll comctl32 enable_comctl32 comctl32
fc7f1c7e 14426wine_fn_config_test dlls/comctl32/tests comctl32_test
5cdd8415 14427wine_fn_config_dll comdlg32 enable_comdlg32 comdlg32
fc7f1c7e 14428wine_fn_config_test dlls/comdlg32/tests comdlg32_test
5cdd8415
AJ
14429wine_fn_config_dll comm.drv16 enable_win16
14430wine_fn_config_dll commdlg.dll16 enable_win16
14431wine_fn_config_dll compobj.dll16 enable_win16
14432wine_fn_config_dll compstui enable_compstui compstui
14433wine_fn_config_dll credui enable_credui credui
fc7f1c7e 14434wine_fn_config_test dlls/credui/tests credui_test
5cdd8415
AJ
14435wine_fn_config_dll crtdll enable_crtdll crtdll
14436wine_fn_config_dll crypt32 enable_crypt32 crypt32
fc7f1c7e 14437wine_fn_config_test dlls/crypt32/tests crypt32_test
5cdd8415
AJ
14438wine_fn_config_dll cryptdlg enable_cryptdlg
14439wine_fn_config_dll cryptdll enable_cryptdll cryptdll
14440wine_fn_config_dll cryptnet enable_cryptnet cryptnet
fc7f1c7e 14441wine_fn_config_test dlls/cryptnet/tests cryptnet_test
5cdd8415 14442wine_fn_config_dll cryptui enable_cryptui cryptui
fc7f1c7e 14443wine_fn_config_test dlls/cryptui/tests cryptui_test
5cdd8415
AJ
14444wine_fn_config_dll ctapi32 enable_ctapi32
14445wine_fn_config_dll ctl3d.dll16 enable_win16
14446wine_fn_config_dll ctl3d32 enable_ctl3d32 ctl3d32
14447wine_fn_config_dll ctl3dv2.dll16 enable_win16
14448wine_fn_config_dll d3d10 enable_d3d10 d3d10
fc7f1c7e 14449wine_fn_config_test dlls/d3d10/tests d3d10_test
5cdd8415 14450wine_fn_config_dll d3d10core enable_d3d10core d3d10core
fc7f1c7e 14451wine_fn_config_test dlls/d3d10core/tests d3d10core_test
5cdd8415 14452wine_fn_config_dll d3d8 enable_d3d8 d3d8
fc7f1c7e 14453wine_fn_config_test dlls/d3d8/tests d3d8_test
5cdd8415 14454wine_fn_config_dll d3d9 enable_d3d9 d3d9
fc7f1c7e 14455wine_fn_config_test dlls/d3d9/tests d3d9_test
0ac336ff 14456wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
66d44999 14457wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
8ea75838 14458wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
458eb08a 14459wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
3c59b9c6 14460wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
fbf1e835 14461wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
99491464 14462wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
fd4efcd0 14463wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
79c1bc42 14464wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
fe050706 14465wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
70962ee4 14466wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 d3dcompiler
5cdd8415
AJ
14467wine_fn_config_dll d3dim enable_d3dim d3dim
14468wine_fn_config_dll d3drm enable_d3drm d3drm
fc7f1c7e 14469wine_fn_config_test dlls/d3drm/tests d3drm_test
955b8445 14470wine_fn_config_dll d3dx10_35 enable_d3dx10_35
f44830e5 14471wine_fn_config_dll d3dx10_36 enable_d3dx10_36
4196ba2f 14472wine_fn_config_dll d3dx10_37 enable_d3dx10_37
199ff9b3 14473wine_fn_config_dll d3dx10_38 enable_d3dx10_38
fb8d7cde 14474wine_fn_config_dll d3dx10_39 enable_d3dx10_39
662cbb16 14475wine_fn_config_dll d3dx10_40 enable_d3dx10_40
17591cc3 14476wine_fn_config_dll d3dx10_41 enable_d3dx10_41
e5d9e12c 14477wine_fn_config_dll d3dx10_42 enable_d3dx10_42
3c5b2e6e 14478wine_fn_config_dll d3dx10_43 enable_d3dx10_43
5cdd8415
AJ
14479wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14480wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14481wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14482wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14483wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14484wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14485wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14486wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14487wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14488wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14489wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14490wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14491wine_fn_config_dll d3dx9_36 enable_d3dx9_36 d3dx9
fc7f1c7e 14492wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
5cdd8415
AJ
14493wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14494wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14495wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14496wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14497wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14498wine_fn_config_dll d3dx9_42 enable_d3dx9_42
14499wine_fn_config_dll d3dxof enable_d3dxof d3dxof
fc7f1c7e 14500wine_fn_config_test dlls/d3dxof/tests d3dxof_test
5cdd8415
AJ
14501wine_fn_config_dll dbghelp enable_dbghelp dbghelp
14502wine_fn_config_dll dciman32 enable_dciman32 dciman32
14503wine_fn_config_dll ddeml.dll16 enable_win16
14504wine_fn_config_dll ddraw enable_ddraw ddraw
fc7f1c7e 14505wine_fn_config_test dlls/ddraw/tests ddraw_test
5cdd8415 14506wine_fn_config_dll ddrawex enable_ddrawex
fc7f1c7e 14507wine_fn_config_test dlls/ddrawex/tests ddrawex_test
5cdd8415
AJ
14508wine_fn_config_dll devenum enable_devenum
14509wine_fn_config_dll dinput enable_dinput dinput "data_formats.c"
fc7f1c7e 14510wine_fn_config_test dlls/dinput/tests dinput_test
5cdd8415
AJ
14511wine_fn_config_dll dinput8 enable_dinput8 dinput8
14512wine_fn_config_dll dispdib.dll16 enable_win16
14513wine_fn_config_dll dispex enable_dispex
df07561c 14514wine_fn_config_test dlls/dispex/tests dispex_test
5cdd8415
AJ
14515wine_fn_config_dll display.drv16 enable_win16
14516wine_fn_config_dll dmband enable_dmband
14517wine_fn_config_dll dmcompos enable_dmcompos
14518wine_fn_config_dll dmime enable_dmime
203272ea 14519wine_fn_config_test dlls/dmime/tests dmime_test
5cdd8415 14520wine_fn_config_dll dmloader enable_dmloader
fc7f1c7e 14521wine_fn_config_test dlls/dmloader/tests dmloader_test
5cdd8415
AJ
14522wine_fn_config_dll dmscript enable_dmscript
14523wine_fn_config_dll dmstyle enable_dmstyle
14524wine_fn_config_dll dmsynth enable_dmsynth
14525wine_fn_config_dll dmusic enable_dmusic
14526wine_fn_config_dll dmusic32 enable_dmusic32 dmusic32
14527wine_fn_config_dll dnsapi enable_dnsapi dnsapi
fc7f1c7e 14528wine_fn_config_test dlls/dnsapi/tests dnsapi_test
5cdd8415
AJ
14529wine_fn_config_dll dplay enable_dplay dplay
14530wine_fn_config_dll dplayx enable_dplayx dplayx
fc7f1c7e 14531wine_fn_config_test dlls/dplayx/tests dplayx_test
5cdd8415
AJ
14532wine_fn_config_dll dpnaddr enable_dpnaddr
14533wine_fn_config_dll dpnet enable_dpnet dpnet
14534wine_fn_config_dll dpnhpast enable_dpnhpast
14535wine_fn_config_dll dpnlobby enable_dpnlobby
14536wine_fn_config_dll dpwsockx enable_dpwsockx
14537wine_fn_config_dll drmclien enable_drmclien
14538wine_fn_config_dll dsound enable_dsound dsound
fc7f1c7e 14539wine_fn_config_test dlls/dsound/tests dsound_test
5cdd8415
AJ
14540wine_fn_config_dll dssenh enable_dssenh
14541wine_fn_config_dll dswave enable_dswave
14542wine_fn_config_dll dwmapi enable_dwmapi dwmapi
14543wine_fn_config_dll dxdiagn enable_dxdiagn
fc7f1c7e 14544wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
fc7f1c7e 14545wine_fn_config_lib dxerr8
fc7f1c7e 14546wine_fn_config_lib dxerr9
5cdd8415 14547wine_fn_config_dll dxgi enable_dxgi dxgi
fc7f1c7e 14548wine_fn_config_test dlls/dxgi/tests dxgi_test
fc7f1c7e 14549wine_fn_config_lib dxguid
e2cf9ad3 14550wine_fn_config_dll explorerframe enable_explorerframe
87212d51 14551wine_fn_config_test dlls/explorerframe/tests explorerframe_test
5cdd8415
AJ
14552wine_fn_config_dll faultrep enable_faultrep
14553wine_fn_config_dll fltlib enable_fltlib
14554wine_fn_config_dll fusion enable_fusion
fc7f1c7e 14555wine_fn_config_test dlls/fusion/tests fusion_test
5cdd8415 14556wine_fn_config_dll fwpuclnt enable_fwpuclnt
b3a9ce44 14557wine_fn_config_dll gameux enable_gameux
cb886f49 14558wine_fn_config_test dlls/gameux/tests gameux_test
5cdd8415
AJ
14559wine_fn_config_dll gdi.exe16 enable_win16
14560wine_fn_config_dll gdi32 enable_gdi32 gdi32
fc7f1c7e 14561wine_fn_config_test dlls/gdi32/tests gdi32_test
5cdd8415 14562wine_fn_config_dll gdiplus enable_gdiplus gdiplus
fc7f1c7e 14563wine_fn_config_test dlls/gdiplus/tests gdiplus_test
5cdd8415
AJ
14564wine_fn_config_dll glu32 enable_glu32 glu32
14565wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
14566wine_fn_config_dll gpkcsp enable_gpkcsp
14567wine_fn_config_dll hal enable_hal
14568wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx
14569wine_fn_config_dll hid enable_hid hid
14570wine_fn_config_dll hlink enable_hlink hlink
fc7f1c7e 14571wine_fn_config_test dlls/hlink/tests hlink_test
5cdd8415
AJ
14572wine_fn_config_dll hnetcfg enable_hnetcfg
14573wine_fn_config_dll httpapi enable_httpapi
14574wine_fn_config_dll iccvid enable_iccvid
14575wine_fn_config_dll icmp enable_icmp
14576wine_fn_config_dll ifsmgr.vxd enable_win16
14577wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
14578wine_fn_config_dll imagehlp enable_imagehlp imagehlp
fc7f1c7e 14579wine_fn_config_test dlls/imagehlp/tests imagehlp_test
5cdd8415
AJ
14580wine_fn_config_dll imm.dll16 enable_win16
14581wine_fn_config_dll imm32 enable_imm32 imm32
fc7f1c7e 14582wine_fn_config_test dlls/imm32/tests imm32_test
5cdd8415 14583wine_fn_config_dll inetcomm enable_inetcomm inetcomm
fc7f1c7e 14584wine_fn_config_test dlls/inetcomm/tests inetcomm_test
5cdd8415 14585wine_fn_config_dll inetmib1 enable_inetmib1
fc7f1c7e 14586wine_fn_config_test dlls/inetmib1/tests inetmib1_test
5cdd8415 14587wine_fn_config_dll infosoft enable_infosoft
fc7f1c7e 14588wine_fn_config_test dlls/infosoft/tests infosoft_test
5cdd8415
AJ
14589wine_fn_config_dll initpki enable_initpki
14590wine_fn_config_dll inkobj enable_inkobj
14591wine_fn_config_dll inseng enable_inseng
14592wine_fn_config_dll iphlpapi enable_iphlpapi iphlpapi
fc7f1c7e 14593wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
5cdd8415
AJ
14594wine_fn_config_dll itircl enable_itircl
14595wine_fn_config_dll itss enable_itss
fc7f1c7e 14596wine_fn_config_test dlls/itss/tests itss_test
5cdd8415 14597wine_fn_config_dll jscript enable_jscript
fc7f1c7e 14598wine_fn_config_test dlls/jscript/tests jscript_test
5cdd8415 14599wine_fn_config_dll kernel32 enable_kernel32 kernel32
fc7f1c7e 14600wine_fn_config_test dlls/kernel32/tests kernel32_test
5cdd8415
AJ
14601wine_fn_config_dll keyboard.drv16 enable_win16
14602wine_fn_config_dll krnl386.exe16 enable_win16 kernel
14603wine_fn_config_dll loadperf enable_loadperf loadperf
14604wine_fn_config_dll localspl enable_localspl
fc7f1c7e 14605wine_fn_config_test dlls/localspl/tests localspl_test
5cdd8415 14606wine_fn_config_dll localui enable_localui
fc7f1c7e 14607wine_fn_config_test dlls/localui/tests localui_test
5cdd8415 14608wine_fn_config_dll lz32 enable_lz32 lz32
fc7f1c7e 14609wine_fn_config_test dlls/lz32/tests lz32_test
5cdd8415
AJ
14610wine_fn_config_dll lzexpand.dll16 enable_win16
14611wine_fn_config_dll mapi32 enable_mapi32 mapi32
fc7f1c7e 14612wine_fn_config_test dlls/mapi32/tests mapi32_test
5cdd8415
AJ
14613wine_fn_config_dll mapistub enable_mapistub
14614wine_fn_config_dll mciavi32 enable_mciavi32
14615wine_fn_config_dll mcicda enable_mcicda
14616wine_fn_config_dll mciqtz32 enable_mciqtz32
14617wine_fn_config_dll mciseq enable_mciseq
14618wine_fn_config_dll mciwave enable_mciwave
14619wine_fn_config_dll midimap enable_midimap
14620wine_fn_config_dll mlang enable_mlang mlang
fc7f1c7e 14621wine_fn_config_test dlls/mlang/tests mlang_test
5cdd8415 14622wine_fn_config_dll mmdevapi enable_mmdevapi
fc7f1c7e 14623wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
5cdd8415
AJ
14624wine_fn_config_dll mmdevldr.vxd enable_win16
14625wine_fn_config_dll mmsystem.dll16 enable_win16
14626wine_fn_config_dll monodebg.vxd enable_win16
14627wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
14628wine_fn_config_dll mouse.drv16 enable_win16
14629wine_fn_config_dll mpr enable_mpr mpr
14630wine_fn_config_dll mprapi enable_mprapi mprapi
14631wine_fn_config_dll msacm.dll16 enable_win16
14632wine_fn_config_dll msacm32.drv enable_msacm32_drv
14633wine_fn_config_dll msacm32 enable_msacm32 msacm32
fc7f1c7e 14634wine_fn_config_test dlls/msacm32/tests msacm32_test
5cdd8415
AJ
14635wine_fn_config_dll msadp32.acm enable_msadp32_acm
14636wine_fn_config_dll mscat32 enable_mscat32
14637wine_fn_config_dll mscms enable_mscms mscms
fc7f1c7e 14638wine_fn_config_test dlls/mscms/tests mscms_test
5cdd8415
AJ
14639wine_fn_config_dll mscoree enable_mscoree
14640wine_fn_config_dll msctf enable_msctf
fc7f1c7e 14641wine_fn_config_test dlls/msctf/tests msctf_test
5cdd8415
AJ
14642wine_fn_config_dll msdaps enable_msdaps
14643wine_fn_config_dll msdmo enable_msdmo msdmo
14644wine_fn_config_dll msftedit enable_msftedit
14645wine_fn_config_dll msg711.acm enable_msg711_acm
14646wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
14647wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
14648wine_fn_config_dll mshtml enable_mshtml mshtml
fc7f1c7e 14649wine_fn_config_test dlls/mshtml/tests mshtml_test
5cdd8415 14650wine_fn_config_dll msi enable_msi msi
fc7f1c7e 14651wine_fn_config_test dlls/msi/tests msi_test
5cdd8415
AJ
14652wine_fn_config_dll msimg32 enable_msimg32 msimg32
14653wine_fn_config_dll msimtf enable_msimtf
14654wine_fn_config_dll msisip enable_msisip
14655wine_fn_config_dll msisys.ocx enable_msisys_ocx
14656wine_fn_config_dll msnet32 enable_msnet32
14657wine_fn_config_dll msrle32 enable_msrle32
14658wine_fn_config_dll mssign32 enable_mssign32
14659wine_fn_config_dll mssip32 enable_mssip32
14660wine_fn_config_dll mstask enable_mstask
fc7f1c7e 14661wine_fn_config_test dlls/mstask/tests mstask_test
5cdd8415 14662wine_fn_config_dll msvcirt enable_msvcirt
9ae9d263 14663wine_fn_config_dll msvcp90 enable_msvcp90
d589d95d 14664wine_fn_config_test dlls/msvcp90/tests msvcp90_test
1434ef4e 14665wine_fn_config_dll msvcr100 enable_msvcr100
5cdd8415
AJ
14666wine_fn_config_dll msvcr70 enable_msvcr70 msvcr70
14667wine_fn_config_dll msvcr71 enable_msvcr71 msvcr71
c452249e
PC
14668wine_fn_config_dll msvcr80 enable_msvcr80
14669wine_fn_config_dll msvcr90 enable_msvcr90
73e669c6 14670wine_fn_config_test dlls/msvcr90/tests msvcr90_test
5cdd8415 14671wine_fn_config_dll msvcrt enable_msvcrt msvcrt
fc7f1c7e 14672wine_fn_config_test dlls/msvcrt/tests msvcrt_test
5cdd8415
AJ
14673wine_fn_config_dll msvcrt20 enable_msvcrt20 msvcrt20
14674wine_fn_config_dll msvcrt40 enable_msvcrt40 msvcrt40
14675wine_fn_config_dll msvcrtd enable_msvcrtd msvcrtd
fc7f1c7e 14676wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
5cdd8415 14677wine_fn_config_dll msvfw32 enable_msvfw32 msvfw32
fc7f1c7e 14678wine_fn_config_test dlls/msvfw32/tests msvfw32_test
5cdd8415
AJ
14679wine_fn_config_dll msvidc32 enable_msvidc32
14680wine_fn_config_dll msvideo.dll16 enable_win16
14681wine_fn_config_dll mswsock enable_mswsock mswsock
14682wine_fn_config_dll msxml3 enable_msxml3
fc7f1c7e 14683wine_fn_config_test dlls/msxml3/tests msxml3_test
5cdd8415
AJ
14684wine_fn_config_dll msxml4 enable_msxml4
14685wine_fn_config_dll nddeapi enable_nddeapi nddeapi
14686wine_fn_config_dll netapi32 enable_netapi32 netapi32
fc7f1c7e 14687wine_fn_config_test dlls/netapi32/tests netapi32_test
5cdd8415
AJ
14688wine_fn_config_dll newdev enable_newdev newdev
14689wine_fn_config_dll ntdll enable_ntdll ntdll
fc7f1c7e 14690wine_fn_config_test dlls/ntdll/tests ntdll_test
5cdd8415 14691wine_fn_config_dll ntdsapi enable_ntdsapi ntdsapi
fc7f1c7e 14692wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
5cdd8415
AJ
14693wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe ntoskrnl.exe
14694wine_fn_config_dll ntprint enable_ntprint
fc7f1c7e 14695wine_fn_config_test dlls/ntprint/tests ntprint_test
5cdd8415
AJ
14696wine_fn_config_dll objsel enable_objsel
14697wine_fn_config_dll odbc32 enable_odbc32 odbc32
14698wine_fn_config_dll odbccp32 enable_odbccp32 odbccp32
fc7f1c7e 14699wine_fn_config_test dlls/odbccp32/tests odbccp32_test
5cdd8415
AJ
14700wine_fn_config_dll ole2.dll16 enable_win16
14701wine_fn_config_dll ole2conv.dll16 enable_win16
14702wine_fn_config_dll ole2disp.dll16 enable_win16
14703wine_fn_config_dll ole2nls.dll16 enable_win16
14704wine_fn_config_dll ole2prox.dll16 enable_win16
14705wine_fn_config_dll ole2thk.dll16 enable_win16
14706wine_fn_config_dll ole32 enable_ole32 ole32
fc7f1c7e 14707wine_fn_config_test dlls/ole32/tests ole32_test
5cdd8415 14708wine_fn_config_dll oleacc enable_oleacc oleacc
fc7f1c7e 14709wine_fn_config_test dlls/oleacc/tests oleacc_test
5cdd8415 14710wine_fn_config_dll oleaut32 enable_oleaut32 oleaut32
fc7f1c7e 14711wine_fn_config_test dlls/oleaut32/tests oleaut32_test
5cdd8415
AJ
14712wine_fn_config_dll olecli.dll16 enable_win16
14713wine_fn_config_dll olecli32 enable_olecli32 olecli32
14714wine_fn_config_dll oledb32 enable_oledb32
fc7f1c7e 14715wine_fn_config_test dlls/oledb32/tests oledb32_test
5cdd8415
AJ
14716wine_fn_config_dll oledlg enable_oledlg oledlg
14717wine_fn_config_dll olepro32 enable_olepro32 olepro32
14718wine_fn_config_dll olesvr.dll16 enable_win16
14719wine_fn_config_dll olesvr32 enable_olesvr32 olesvr32
14720wine_fn_config_dll olethk32 enable_olethk32
14721wine_fn_config_dll openal32 enable_openal32
14722wine_fn_config_dll opengl32 enable_opengl32 opengl32
fc7f1c7e 14723wine_fn_config_test dlls/opengl32/tests opengl32_test
5cdd8415 14724wine_fn_config_dll pdh enable_pdh pdh
fc7f1c7e 14725wine_fn_config_test dlls/pdh/tests pdh_test
5cdd8415
AJ
14726wine_fn_config_dll pidgen enable_pidgen
14727wine_fn_config_dll powrprof enable_powrprof powrprof
14728wine_fn_config_dll printui enable_printui
c50177b1 14729wine_fn_config_dll propsys enable_propsys propsys
c20908bf 14730wine_fn_config_test dlls/propsys/tests propsys_test
5cdd8415 14731wine_fn_config_dll psapi enable_psapi psapi
fc7f1c7e 14732wine_fn_config_test dlls/psapi/tests psapi_test
5cdd8415
AJ
14733wine_fn_config_dll pstorec enable_pstorec
14734wine_fn_config_dll qcap enable_qcap
14735wine_fn_config_dll qedit enable_qedit
fc7f1c7e 14736wine_fn_config_test dlls/qedit/tests qedit_test
5cdd8415 14737wine_fn_config_dll qmgr enable_qmgr
fc7f1c7e 14738wine_fn_config_test dlls/qmgr/tests qmgr_test
5cdd8415
AJ
14739wine_fn_config_dll qmgrprxy enable_qmgrprxy
14740wine_fn_config_dll quartz enable_quartz quartz
fc7f1c7e 14741wine_fn_config_test dlls/quartz/tests quartz_test
5cdd8415
AJ
14742wine_fn_config_dll query enable_query
14743wine_fn_config_dll rasapi16.dll16 enable_win16
14744wine_fn_config_dll rasapi32 enable_rasapi32 rasapi32
fc7f1c7e 14745wine_fn_config_test dlls/rasapi32/tests rasapi32_test
5cdd8415
AJ
14746wine_fn_config_dll rasdlg enable_rasdlg rasdlg
14747wine_fn_config_dll resutils enable_resutils resutils
14748wine_fn_config_dll riched20 enable_riched20 riched20
fc7f1c7e 14749wine_fn_config_test dlls/riched20/tests riched20_test
5cdd8415 14750wine_fn_config_dll riched32 enable_riched32
fc7f1c7e 14751wine_fn_config_test dlls/riched32/tests riched32_test
5cdd8415 14752wine_fn_config_dll rpcrt4 enable_rpcrt4 rpcrt4
fc7f1c7e 14753wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
5cdd8415
AJ
14754wine_fn_config_dll rsabase enable_rsabase
14755wine_fn_config_dll rsaenh enable_rsaenh rsaenh
fc7f1c7e 14756wine_fn_config_test dlls/rsaenh/tests rsaenh_test
5cdd8415 14757wine_fn_config_dll rtutils enable_rtutils rtutils
1ae673f8 14758wine_fn_config_dll samlib enable_samlib
5cdd8415
AJ
14759wine_fn_config_dll sane.ds enable_sane_ds
14760wine_fn_config_dll sccbase enable_sccbase
14761wine_fn_config_dll schannel enable_schannel
fc7f1c7e 14762wine_fn_config_test dlls/schannel/tests schannel_test
5cdd8415 14763wine_fn_config_dll secur32 enable_secur32 secur32
fc7f1c7e 14764wine_fn_config_test dlls/secur32/tests secur32_test
5cdd8415
AJ
14765wine_fn_config_dll security enable_security
14766wine_fn_config_dll sensapi enable_sensapi sensapi
14767wine_fn_config_dll serialui enable_serialui serialui
fc7f1c7e 14768wine_fn_config_test dlls/serialui/tests serialui_test
5cdd8415 14769wine_fn_config_dll setupapi enable_setupapi setupapi
fc7f1c7e 14770wine_fn_config_test dlls/setupapi/tests setupapi_test
5cdd8415
AJ
14771wine_fn_config_dll setupx.dll16 enable_win16
14772wine_fn_config_dll sfc enable_sfc sfc
14773wine_fn_config_dll sfc_os enable_sfc_os sfc_os
14774wine_fn_config_dll shdoclc enable_shdoclc
14775wine_fn_config_dll shdocvw enable_shdocvw shdocvw
fc7f1c7e 14776wine_fn_config_test dlls/shdocvw/tests shdocvw_test
5cdd8415
AJ
14777wine_fn_config_dll shell.dll16 enable_win16
14778wine_fn_config_dll shell32 enable_shell32 shell32
fc7f1c7e 14779wine_fn_config_test dlls/shell32/tests shell32_test
5cdd8415
AJ
14780wine_fn_config_dll shfolder enable_shfolder shfolder
14781wine_fn_config_dll shlwapi enable_shlwapi shlwapi
fc7f1c7e 14782wine_fn_config_test dlls/shlwapi/tests shlwapi_test
5cdd8415
AJ
14783wine_fn_config_dll slbcsp enable_slbcsp
14784wine_fn_config_dll slc enable_slc slc
14785wine_fn_config_dll snmpapi enable_snmpapi snmpapi
fc7f1c7e 14786wine_fn_config_test dlls/snmpapi/tests snmpapi_test
5cdd8415
AJ
14787wine_fn_config_dll softpub enable_softpub
14788wine_fn_config_dll sound.drv16 enable_win16
14789wine_fn_config_dll spoolss enable_spoolss spoolss
fc7f1c7e 14790wine_fn_config_test dlls/spoolss/tests spoolss_test
5cdd8415
AJ
14791wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
14792wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
14793wine_fn_config_dll sti enable_sti sti
fc7f1c7e 14794wine_fn_config_test dlls/sti/tests sti_test
5cdd8415
AJ
14795wine_fn_config_dll storage.dll16 enable_win16
14796wine_fn_config_dll stress.dll16 enable_win16
fc7f1c7e 14797wine_fn_config_lib strmiids
5cdd8415
AJ
14798wine_fn_config_dll svrapi enable_svrapi
14799wine_fn_config_dll sxs enable_sxs
14800wine_fn_config_dll system.drv16 enable_win16
14801wine_fn_config_dll t2embed enable_t2embed
14802wine_fn_config_dll tapi32 enable_tapi32 tapi32
14803wine_fn_config_dll toolhelp.dll16 enable_win16
14804wine_fn_config_dll traffic enable_traffic
14805wine_fn_config_dll twain.dll16 enable_win16
14806wine_fn_config_dll twain_32 enable_twain_32
fc7f1c7e 14807wine_fn_config_test dlls/twain_32/tests twain_32_test
5cdd8415
AJ
14808wine_fn_config_dll typelib.dll16 enable_win16
14809wine_fn_config_dll unicows enable_unicows unicows
14810wine_fn_config_dll updspapi enable_updspapi
14811wine_fn_config_dll url enable_url url
14812wine_fn_config_dll urlmon enable_urlmon urlmon
fc7f1c7e 14813wine_fn_config_test dlls/urlmon/tests urlmon_test
5cdd8415
AJ
14814wine_fn_config_dll usbd.sys enable_usbd_sys usbd.sys
14815wine_fn_config_dll user.exe16 enable_win16
14816wine_fn_config_dll user32 enable_user32 user32
fc7f1c7e 14817wine_fn_config_test dlls/user32/tests user32_test
5cdd8415 14818wine_fn_config_dll userenv enable_userenv userenv
fc7f1c7e 14819wine_fn_config_test dlls/userenv/tests userenv_test
5cdd8415 14820wine_fn_config_dll usp10 enable_usp10 usp10
fc7f1c7e 14821wine_fn_config_test dlls/usp10/tests usp10_test
fc7f1c7e 14822wine_fn_config_lib uuid
5cdd8415 14823wine_fn_config_dll uxtheme enable_uxtheme uxtheme
fc7f1c7e 14824wine_fn_config_test dlls/uxtheme/tests uxtheme_test
5cdd8415
AJ
14825wine_fn_config_dll vdhcp.vxd enable_win16
14826wine_fn_config_dll vdmdbg enable_vdmdbg vdmdbg
14827wine_fn_config_dll ver.dll16 enable_win16
14828wine_fn_config_dll version enable_version version
fc7f1c7e 14829wine_fn_config_test dlls/version/tests version_test
5cdd8415
AJ
14830wine_fn_config_dll vmm.vxd enable_win16
14831wine_fn_config_dll vnbt.vxd enable_win16
14832wine_fn_config_dll vnetbios.vxd enable_win16
14833wine_fn_config_dll vtdapi.vxd enable_win16
14834wine_fn_config_dll vwin32.vxd enable_win16
14835wine_fn_config_dll w32skrnl enable_win16
14836wine_fn_config_dll w32sys.dll16 enable_win16
14837wine_fn_config_dll wbemprox enable_wbemprox
14838wine_fn_config_dll wiaservc enable_wiaservc
14839wine_fn_config_dll win32s16.dll16 enable_win16
14840wine_fn_config_dll win87em.dll16 enable_win16
14841wine_fn_config_dll winaspi.dll16 enable_win16
14842wine_fn_config_dll windebug.dll16 enable_win16
14843wine_fn_config_dll windowscodecs enable_windowscodecs windowscodecs
fc7f1c7e 14844wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
5cdd8415
AJ
14845wine_fn_config_dll winealsa.drv enable_winealsa_drv
14846wine_fn_config_dll wineaudioio.drv enable_wineaudioio_drv
14847wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
fc7f1c7e 14848wine_fn_config_lib winecrt0
5cdd8415
AJ
14849wine_fn_config_dll wined3d enable_wined3d wined3d
14850wine_fn_config_dll wineesd.drv enable_wineesd_drv
14851wine_fn_config_dll winejack.drv enable_winejack_drv
14852wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
14853wine_fn_config_dll winemapi enable_winemapi
14854wine_fn_config_dll winemp3.acm enable_winemp3_acm
14855wine_fn_config_dll winenas.drv enable_winenas_drv
14856wine_fn_config_dll wineoss.drv enable_wineoss_drv
14857wine_fn_config_dll wineps.drv enable_wineps_drv
14858wine_fn_config_dll wineps16.drv16 enable_win16
14859wine_fn_config_dll winequartz.drv enable_winequartz_drv
14860wine_fn_config_dll winex11.drv enable_winex11_drv
14861wine_fn_config_dll wing.dll16 enable_win16
14862wine_fn_config_dll wing32 enable_wing32
14863wine_fn_config_dll winhttp enable_winhttp winhttp
fc7f1c7e 14864wine_fn_config_test dlls/winhttp/tests winhttp_test
5cdd8415 14865wine_fn_config_dll wininet enable_wininet wininet
fc7f1c7e 14866wine_fn_config_test dlls/wininet/tests wininet_test
5cdd8415 14867wine_fn_config_dll winmm enable_winmm winmm
fc7f1c7e 14868wine_fn_config_test dlls/winmm/tests winmm_test
5cdd8415
AJ
14869wine_fn_config_dll winnls.dll16 enable_win16
14870wine_fn_config_dll winnls32 enable_winnls32 winnls32
14871wine_fn_config_dll winscard enable_winscard winscard
14872wine_fn_config_dll winsock.dll16 enable_win16
14873wine_fn_config_dll winspool.drv enable_winspool_drv winspool
fc7f1c7e 14874wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
5cdd8415
AJ
14875wine_fn_config_dll wintab.dll16 enable_win16
14876wine_fn_config_dll wintab32 enable_wintab32 wintab32
fc7f1c7e 14877wine_fn_config_test dlls/wintab32/tests wintab32_test
5cdd8415 14878wine_fn_config_dll wintrust enable_wintrust wintrust
fc7f1c7e 14879wine_fn_config_test dlls/wintrust/tests wintrust_test
5cdd8415 14880wine_fn_config_dll wldap32 enable_wldap32 wldap32
fc7f1c7e 14881wine_fn_config_test dlls/wldap32/tests wldap32_test
5cdd8415
AJ
14882wine_fn_config_dll wmi enable_wmi
14883wine_fn_config_dll wmiutils enable_wmiutils
14884wine_fn_config_dll wnaspi32 enable_wnaspi32 wnaspi32
14885wine_fn_config_dll wow32 enable_win16 wow32
14886wine_fn_config_dll ws2_32 enable_ws2_32 ws2_32
fc7f1c7e 14887wine_fn_config_test dlls/ws2_32/tests ws2_32_test
5cdd8415
AJ
14888wine_fn_config_dll wsock32 enable_wsock32 wsock32
14889wine_fn_config_dll wtsapi32 enable_wtsapi32 wtsapi32
14890wine_fn_config_dll wuapi enable_wuapi
14891wine_fn_config_dll wuaueng enable_wuaueng
14892wine_fn_config_dll xinput1_1 enable_xinput1_1
14893wine_fn_config_dll xinput1_2 enable_xinput1_2
14894wine_fn_config_dll xinput1_3 enable_xinput1_3 xinput
fc7f1c7e 14895wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
5cdd8415
AJ
14896wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
14897wine_fn_config_dll xmllite enable_xmllite
fc7f1c7e 14898wine_fn_config_test dlls/xmllite/tests xmllite_test
03642414
AJ
14899wine_fn_config_makefile documentation enable_documentation
14900wine_fn_config_makefile fonts enable_fonts
14901wine_fn_config_makefile include enable_include
14902wine_fn_config_makefile libs/port enable_libs_port
14903wine_fn_config_makefile libs/wine enable_libs_wine
14904wine_fn_config_makefile libs/wpp enable_libs_wpp
14905wine_fn_config_makefile loader enable_loader
d394e042
AJ
14906wine_fn_config_program attrib enable_attrib install
14907wine_fn_config_program cacls enable_cacls install
14908wine_fn_config_program clock enable_clock install
14909wine_fn_config_program cmd enable_cmd install
fc7f1c7e 14910wine_fn_config_test programs/cmd/tests cmd.exe_test
d394e042
AJ
14911wine_fn_config_program cmdlgtst enable_cmdlgtst
14912wine_fn_config_program control enable_control install
14913wine_fn_config_program dxdiag enable_dxdiag install
14914wine_fn_config_program eject enable_eject install
14915wine_fn_config_program expand enable_expand install
14916wine_fn_config_program explorer enable_explorer install
14917wine_fn_config_program extrac32 enable_extrac32 install
14918wine_fn_config_program hh enable_hh install
14919wine_fn_config_program icinfo enable_icinfo install
14920wine_fn_config_program iexplore enable_iexplore install
6919c8df 14921wine_fn_config_program ipconfig enable_ipconfig install
d394e042
AJ
14922wine_fn_config_program lodctr enable_lodctr install
14923wine_fn_config_program mshta enable_mshta install
14924wine_fn_config_program msiexec enable_msiexec installbin
14925wine_fn_config_program net enable_net install
4d3e6f4c 14926wine_fn_config_program ngen enable_ngen install
d394e042
AJ
14927wine_fn_config_program notepad enable_notepad installbin
14928wine_fn_config_program oleview enable_oleview install
14929wine_fn_config_program ping enable_ping install
14930wine_fn_config_program progman enable_progman install
14931wine_fn_config_program reg enable_reg install
14932wine_fn_config_program regedit enable_regedit installbin
f3c6c62b 14933wine_fn_config_test programs/regedit/tests regedit.exe_test
d394e042
AJ
14934wine_fn_config_program regsvr32 enable_regsvr32 installbin
14935wine_fn_config_program rpcss enable_rpcss install
df898ea4 14936wine_fn_config_program rundll.exe16 enable_win16 install
d394e042 14937wine_fn_config_program rundll32 enable_rundll32 install
544da28e 14938wine_fn_config_program sc enable_sc install
d394e042
AJ
14939wine_fn_config_program secedit enable_secedit install
14940wine_fn_config_program services enable_services install
14941wine_fn_config_program spoolsv enable_spoolsv install
14942wine_fn_config_program start enable_start install
14943wine_fn_config_program svchost enable_svchost install
14944wine_fn_config_program taskmgr enable_taskmgr install
14945wine_fn_config_program termsv enable_termsv install
14946wine_fn_config_program uninstaller enable_uninstaller install
14947wine_fn_config_program unlodctr enable_unlodctr install
14948wine_fn_config_program view enable_view
14949wine_fn_config_program wineboot enable_wineboot installbin
14950wine_fn_config_program winebrowser enable_winebrowser install
14951wine_fn_config_program winecfg enable_winecfg installbin
14952wine_fn_config_program wineconsole enable_wineconsole installbin
14953wine_fn_config_program winedbg enable_winedbg installbin
14954wine_fn_config_program winedevice enable_winedevice install
14955wine_fn_config_program winefile enable_winefile installbin
14956wine_fn_config_program winemenubuilder enable_winemenubuilder install
14957wine_fn_config_program winemine enable_winemine installbin
14958wine_fn_config_program winepath enable_winepath installbin
14959wine_fn_config_program winetest enable_winetest
14960wine_fn_config_program winevdm enable_win16 install
14961wine_fn_config_program winhelp.exe16 enable_win16 install
14962wine_fn_config_program winhlp32 enable_winhlp32 install
14963wine_fn_config_program winoldap.mod16 enable_win16 install
14964wine_fn_config_program winver enable_winver install
14965wine_fn_config_program wordpad enable_wordpad install
14966wine_fn_config_program write enable_write install
16bad58a 14967wine_fn_config_program wscript enable_wscript install
d394e042 14968wine_fn_config_program xcopy enable_xcopy install
03642414 14969wine_fn_config_makefile server enable_server
d81a8f8d
AJ
14970wine_fn_config_tool tools
14971wine_fn_config_tool tools/widl
14972wine_fn_config_tool tools/winebuild
14973wine_fn_config_tool tools/winedump
14974wine_fn_config_tool tools/winegcc
14975wine_fn_config_tool tools/wmc
14976wine_fn_config_tool tools/wrc
626f425b 14977
39b4ba21
AJ
14978ac_config_commands="$ac_config_commands Makefile"
14979
14980
14981ac_config_files="$ac_config_files Make.tmp:Makefile.in"
92b57312
AJ
14982
14983
e5c585e4
AJ
14984
14985if test -n "$with_wine64"
14986then
f3831cf2 14987wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server $with_wine64/loader/wine
e5c585e4
AJ
14988fonts server:
14989 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
f3831cf2
AJ
14990$with_wine64/loader/wine:
14991 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
e5c585e4 14992clean::
f3831cf2 14993 \$(RM) fonts server $with_wine64/loader/wine"
e5c585e4
AJ
14994fi
14995
39b4ba21
AJ
14996wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall::
14997 -rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)"
14998
f5818d2f 14999cat >confcache <<\_ACEOF
e2991ea7
AJ
15000# This file is a shell script that caches the results of configure
15001# tests run on this system so they can be shared between configure
f5818d2f
AJ
15002# scripts and configure runs, see configure's option --config-cache.
15003# It is not useful on other systems. If it contains results you don't
15004# want to keep, you may remove or edit it.
e2991ea7 15005#
f5818d2f
AJ
15006# config.status only pays attention to the cache file if you give it
15007# the --recheck option to rerun configure.
e2991ea7 15008#
11af04e3 15009# `ac_cv_env_foo' variables (set or unset) will be overridden when
f5818d2f
AJ
15010# loading this file, other *unset* `ac_cv_foo' will be assigned the
15011# following values.
15012
15013_ACEOF
15014
7e6ae4ba
AJ
15015# The following way of writing the cache mishandles newlines in values,
15016# but we know of no workaround that is simple, portable, and efficient.
fc6ffb29 15017# So, we kill variables containing newlines.
e2991ea7
AJ
15018# Ultrix sh set writes to stderr and can't be redirected directly,
15019# and sets the high bit in the cache file unless we assign to the vars.
fc6ffb29
AJ
15020(
15021 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15022 eval ac_val=\$$ac_var
15023 case $ac_val in #(
15024 *${as_nl}*)
15025 case $ac_var in #(
25e9e4f0 15026 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
abf5048b 15027$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
fc6ffb29
AJ
15028 esac
15029 case $ac_var in #(
15030 _ | IFS | as_nl) ;; #(
abf5048b 15031 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25e9e4f0 15032 *) { eval $ac_var=; unset $ac_var;} ;;
fc6ffb29
AJ
15033 esac ;;
15034 esac
15035 done
15036
f5818d2f 15037 (set) 2>&1 |
fc6ffb29
AJ
15038 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15039 *${as_nl}ac_space=\ *)
25e9e4f0
AJ
15040 # `set' does not quote correctly, so add quotes: double-quote
15041 # substitution turns \\\\ into \\, and sed turns \\ into \.
f5818d2f 15042 sed -n \
875927f6
AJ
15043 "s/'/'\\\\''/g;
15044 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
fc6ffb29 15045 ;; #(
f5818d2f
AJ
15046 *)
15047 # `set' quotes correctly as required by POSIX, so do not add quotes.
fc6ffb29 15048 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
f5818d2f 15049 ;;
fc6ffb29
AJ
15050 esac |
15051 sort
15052) |
f5818d2f 15053 sed '
fc6ffb29 15054 /^ac_cv_env_/b end
f5818d2f 15055 t clear
fc6ffb29 15056 :clear
f5818d2f
AJ
15057 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15058 t end
fc6ffb29
AJ
15059 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15060 :end' >>confcache
0ebeb530
JW
15061if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15062 if test -w "$cache_file"; then
fc6ffb29 15063 test "x$cache_file" != "x/dev/null" &&
25e9e4f0 15064 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
abf5048b 15065$as_echo "$as_me: updating cache $cache_file" >&6;}
f5818d2f 15066 cat confcache >$cache_file
e2991ea7 15067 else
25e9e4f0 15068 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
abf5048b 15069$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
e2991ea7
AJ
15070 fi
15071fi
15072rm -f confcache
15073
e2991ea7
AJ
15074test "x$prefix" = xNONE && prefix=$ac_default_prefix
15075# Let make expand exec_prefix.
15076test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15077
18f92e76 15078DEFS=-DHAVE_CONFIG_H
e2991ea7 15079
11af04e3
AJ
15080ac_libobjs=
15081ac_ltlibobjs=
15082for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15083 # 1. Remove the extension, and $U if already installed.
fc6ffb29 15084 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
abf5048b 15085 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
fc6ffb29
AJ
15086 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15087 # will be set to the directory where LIBOBJS objects are built.
25e9e4f0
AJ
15088 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15089 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11af04e3
AJ
15090done
15091LIBOBJS=$ac_libobjs
15092
15093LTLIBOBJS=$ac_ltlibobjs
15094
15095
daa2886c 15096
e2991ea7 15097: ${CONFIG_STATUS=./config.status}
abf5048b 15098ac_write_fail=0
f5818d2f
AJ
15099ac_clean_files_save=$ac_clean_files
15100ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25e9e4f0 15101{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
abf5048b 15102$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25e9e4f0
AJ
15103as_write_fail=0
15104cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
f5818d2f 15105#! $SHELL
daa2886c 15106# Generated by $as_me.
e2991ea7 15107# Run this file to recreate the current configuration.
e2991ea7 15108# Compiler output produced by configure, useful for debugging
f5818d2f 15109# configure, is in config.log if it exists.
e2991ea7 15110
f5818d2f 15111debug=false
e24bcc77
AJ
15112ac_cs_recheck=false
15113ac_cs_silent=false
f5818d2f 15114
25e9e4f0
AJ
15115SHELL=\${CONFIG_SHELL-$SHELL}
15116export SHELL
15117_ASEOF
15118cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15119## -------------------- ##
15120## M4sh Initialization. ##
15121## -------------------- ##
daa2886c 15122
dc9f3843
AJ
15123# Be more Bourne compatible
15124DUALCASE=1; export DUALCASE # for MKS sh
25e9e4f0 15125if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
f5818d2f
AJ
15126 emulate sh
15127 NULLCMD=:
abf5048b 15128 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11af04e3
AJ
15129 # is contrary to our usage. Disable this feature.
15130 alias -g '${1+"$@"}'='"$@"'
fc6ffb29
AJ
15131 setopt NO_GLOB_SUBST
15132else
25e9e4f0
AJ
15133 case `(set -o) 2>/dev/null` in #(
15134 *posix*) :
15135 set -o posix ;; #(
15136 *) :
15137 ;;
dc9f3843 15138esac
f5818d2f 15139fi
dc9f3843
AJ
15140
15141
abf5048b
AJ
15142as_nl='
15143'
15144export as_nl
15145# Printing a long string crashes Solaris 7 /usr/bin/printf.
15146as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15147as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15148as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25e9e4f0
AJ
15149# Prefer a ksh shell builtin over an external printf program on Solaris,
15150# but without wasting forks for bash or zsh.
15151if test -z "$BASH_VERSION$ZSH_VERSION" \
15152 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15153 as_echo='print -r --'
15154 as_echo_n='print -rn --'
15155elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
abf5048b
AJ
15156 as_echo='printf %s\n'
15157 as_echo_n='printf %s'
15158else
15159 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15160 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15161 as_echo_n='/usr/ucb/echo -n'
fc6ffb29 15162 else
abf5048b
AJ
15163 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15164 as_echo_n_body='eval
15165 arg=$1;
25e9e4f0 15166 case $arg in #(
abf5048b
AJ
15167 *"$as_nl"*)
15168 expr "X$arg" : "X\\(.*\\)$as_nl";
15169 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15170 esac;
15171 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15172 '
15173 export as_echo_n_body
15174 as_echo_n='sh -c $as_echo_n_body as_echo'
fc6ffb29 15175 fi
abf5048b
AJ
15176 export as_echo_body
15177 as_echo='sh -c $as_echo_body as_echo'
15178fi
15179
15180# The user is always right.
15181if test "${PATH_SEPARATOR+set}" != set; then
15182 PATH_SEPARATOR=:
15183 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15184 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15185 PATH_SEPARATOR=';'
15186 }
fc6ffb29
AJ
15187fi
15188
11af04e3 15189
fc6ffb29
AJ
15190# IFS
15191# We need space, tab and new line, in precisely that order. Quoting is
15192# there to prevent editors from complaining about space-tab.
15193# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15194# splitting by setting IFS to empty value.)
fc6ffb29
AJ
15195IFS=" "" $as_nl"
15196
15197# Find who we are. Look in the path if we contain no directory separator.
25e9e4f0 15198case $0 in #((
fc6ffb29
AJ
15199 *[\\/]* ) as_myself=$0 ;;
15200 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15201for as_dir in $PATH
15202do
15203 IFS=$as_save_IFS
15204 test -z "$as_dir" && as_dir=.
25e9e4f0
AJ
15205 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15206 done
fc6ffb29
AJ
15207IFS=$as_save_IFS
15208
15209 ;;
15210esac
15211# We did not find ourselves, most probably we were run as `sh COMMAND'
15212# in which case we are not to be found in the path.
15213if test "x$as_myself" = x; then
15214 as_myself=$0
15215fi
15216if test ! -f "$as_myself"; then
abf5048b 15217 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25e9e4f0 15218 exit 1
fc6ffb29
AJ
15219fi
15220
25e9e4f0
AJ
15221# Unset variables that we do not need and which cause bugs (e.g. in
15222# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15223# suppresses any "Segmentation fault" message there. '((' could
15224# trigger a bug in pdksh 5.2.14.
15225for as_var in BASH_ENV ENV MAIL MAILPATH
15226do eval test x\${$as_var+set} = xset \
15227 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
fc6ffb29 15228done
11af04e3
AJ
15229PS1='$ '
15230PS2='> '
15231PS4='+ '
15232
15233# NLS nuisances.
abf5048b
AJ
15234LC_ALL=C
15235export LC_ALL
15236LANGUAGE=C
15237export LANGUAGE
11af04e3 15238
25e9e4f0
AJ
15239# CDPATH.
15240(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15241
15242
15243# as_fn_error ERROR [LINENO LOG_FD]
15244# ---------------------------------
15245# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15246# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15247# script with status $?, using 1 if that was 0.
15248as_fn_error ()
15249{
15250 as_status=$?; test $as_status -eq 0 && as_status=1
15251 if test "$3"; then
15252 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15253 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15254 fi
15255 $as_echo "$as_me: error: $1" >&2
15256 as_fn_exit $as_status
15257} # as_fn_error
15258
15259
15260# as_fn_set_status STATUS
15261# -----------------------
15262# Set $? to STATUS, without forking.
15263as_fn_set_status ()
15264{
15265 return $1
15266} # as_fn_set_status
15267
15268# as_fn_exit STATUS
15269# -----------------
15270# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15271as_fn_exit ()
15272{
15273 set +e
15274 as_fn_set_status $1
15275 exit $1
15276} # as_fn_exit
15277
15278# as_fn_unset VAR
15279# ---------------
15280# Portably unset VAR.
15281as_fn_unset ()
15282{
15283 { eval $1=; unset $1;}
15284}
15285as_unset=as_fn_unset
15286# as_fn_append VAR VALUE
15287# ----------------------
15288# Append the text in VALUE to the end of the definition contained in VAR. Take
15289# advantage of any shell optimizations that allow amortized linear growth over
15290# repeated appends, instead of the typical quadratic growth present in naive
15291# implementations.
15292if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15293 eval 'as_fn_append ()
15294 {
15295 eval $1+=\$2
15296 }'
15297else
15298 as_fn_append ()
15299 {
15300 eval $1=\$$1\$2
15301 }
15302fi # as_fn_append
15303
15304# as_fn_arith ARG...
15305# ------------------
15306# Perform arithmetic evaluation on the ARGs, and store the result in the
15307# global $as_val. Take advantage of shells that can avoid forks. The arguments
15308# must be portable across $(()) and expr.
15309if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15310 eval 'as_fn_arith ()
15311 {
15312 as_val=$(( $* ))
15313 }'
15314else
15315 as_fn_arith ()
15316 {
15317 as_val=`expr "$@" || test $? -eq 1`
15318 }
15319fi # as_fn_arith
15320
15321
fc6ffb29
AJ
15322if expr a : '\(a\)' >/dev/null 2>&1 &&
15323 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11af04e3
AJ
15324 as_expr=expr
15325else
15326 as_expr=false
15327fi
15328
fc6ffb29 15329if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11af04e3
AJ
15330 as_basename=basename
15331else
15332 as_basename=false
15333fi
daa2886c 15334
25e9e4f0
AJ
15335if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15336 as_dirname=dirname
15337else
15338 as_dirname=false
15339fi
daa2886c 15340
fc6ffb29 15341as_me=`$as_basename -- "$0" ||
daa2886c
AJ
15342$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15343 X"$0" : 'X\(//\)$' \| \
fc6ffb29 15344 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
abf5048b 15345$as_echo X/"$0" |
fc6ffb29
AJ
15346 sed '/^.*\/\([^/][^/]*\)\/*$/{
15347 s//\1/
15348 q
15349 }
15350 /^X\/\(\/\/\)$/{
15351 s//\1/
15352 q
15353 }
15354 /^X\/\(\/\).*/{
15355 s//\1/
15356 q
15357 }
15358 s/.*/./; q'`
daa2886c 15359
25e9e4f0
AJ
15360# Avoid depending upon Character Ranges.
15361as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15362as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15363as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15364as_cr_digits='0123456789'
15365as_cr_alnum=$as_cr_Letters$as_cr_digits
fc6ffb29
AJ
15366
15367ECHO_C= ECHO_N= ECHO_T=
25e9e4f0 15368case `echo -n x` in #(((((
fc6ffb29 15369-n*)
25e9e4f0 15370 case `echo 'xy\c'` in
fc6ffb29 15371 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25e9e4f0
AJ
15372 xy) ECHO_C='\c';;
15373 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15374 ECHO_T=' ';;
fc6ffb29
AJ
15375 esac;;
15376*)
15377 ECHO_N='-n';;
daa2886c 15378esac
f5818d2f
AJ
15379
15380rm -f conf$$ conf$$.exe conf$$.file
fc6ffb29
AJ
15381if test -d conf$$.dir; then
15382 rm -f conf$$.dir/conf$$.file
15383else
15384 rm -f conf$$.dir
abf5048b
AJ
15385 mkdir conf$$.dir 2>/dev/null
15386fi
15387if (echo >conf$$.file) 2>/dev/null; then
15388 if ln -s conf$$.file conf$$ 2>/dev/null; then
15389 as_ln_s='ln -s'
15390 # ... but there are two gotchas:
15391 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15392 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15393 # In both cases, we have to default to `cp -p'.
15394 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15395 as_ln_s='cp -p'
15396 elif ln conf$$.file conf$$ 2>/dev/null; then
15397 as_ln_s=ln
15398 else
f5818d2f 15399 as_ln_s='cp -p'
abf5048b 15400 fi
f5818d2f
AJ
15401else
15402 as_ln_s='cp -p'
15403fi
fc6ffb29
AJ
15404rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15405rmdir conf$$.dir 2>/dev/null
f5818d2f 15406
25e9e4f0
AJ
15407
15408# as_fn_mkdir_p
15409# -------------
15410# Create "$as_dir" as a directory, including parents if necessary.
15411as_fn_mkdir_p ()
15412{
15413
15414 case $as_dir in #(
15415 -*) as_dir=./$as_dir;;
15416 esac
15417 test -d "$as_dir" || eval $as_mkdir_p || {
15418 as_dirs=
15419 while :; do
15420 case $as_dir in #(
15421 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15422 *) as_qdir=$as_dir;;
15423 esac
15424 as_dirs="'$as_qdir' $as_dirs"
15425 as_dir=`$as_dirname -- "$as_dir" ||
15426$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15427 X"$as_dir" : 'X\(//\)[^/]' \| \
15428 X"$as_dir" : 'X\(//\)$' \| \
15429 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15430$as_echo X"$as_dir" |
15431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15432 s//\1/
15433 q
15434 }
15435 /^X\(\/\/\)[^/].*/{
15436 s//\1/
15437 q
15438 }
15439 /^X\(\/\/\)$/{
15440 s//\1/
15441 q
15442 }
15443 /^X\(\/\).*/{
15444 s//\1/
15445 q
15446 }
15447 s/.*/./; q'`
15448 test -d "$as_dir" && break
15449 done
15450 test -z "$as_dirs" || eval "mkdir $as_dirs"
15451 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15452
15453
15454} # as_fn_mkdir_p
11af04e3 15455if mkdir -p . 2>/dev/null; then
25e9e4f0 15456 as_mkdir_p='mkdir -p "$as_dir"'
11af04e3 15457else
875927f6 15458 test -d ./-p && rmdir ./-p
11af04e3
AJ
15459 as_mkdir_p=false
15460fi
15461
dc9f3843
AJ
15462if test -x / >/dev/null 2>&1; then
15463 as_test_x='test -x'
fc6ffb29 15464else
dc9f3843
AJ
15465 if ls -dL / >/dev/null 2>&1; then
15466 as_ls_L_option=L
15467 else
15468 as_ls_L_option=
15469 fi
15470 as_test_x='
15471 eval sh -c '\''
15472 if test -d "$1"; then
abf5048b 15473 test -d "$1/.";
dc9f3843 15474 else
25e9e4f0 15475 case $1 in #(
abf5048b 15476 -*)set "./$1";;
dc9f3843 15477 esac;
25e9e4f0 15478 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
dc9f3843
AJ
15479 ???[sx]*):;;*)false;;esac;fi
15480 '\'' sh
15481 '
fc6ffb29 15482fi
dc9f3843 15483as_executable_p=$as_test_x
f5818d2f 15484
daa2886c 15485# Sed expression to map a string onto a valid CPP name.
875927f6 15486as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
daa2886c
AJ
15487
15488# Sed expression to map a string onto a valid variable name.
875927f6 15489as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
f5818d2f 15490
f5818d2f 15491
f5818d2f 15492exec 6>&1
25e9e4f0
AJ
15493## ----------------------------------- ##
15494## Main body of $CONFIG_STATUS script. ##
15495## ----------------------------------- ##
15496_ASEOF
15497test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
f5818d2f 15498
25e9e4f0
AJ
15499cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15500# Save the log message, to keep $0 and so on meaningful, and to
daa2886c 15501# report actual input values of CONFIG_FILES etc. instead of their
fc6ffb29
AJ
15502# values after options handling.
15503ac_log="
8b2a403a 15504This file was extended by Wine $as_me 1.3.0, which was
fa8c4f76 15505generated by GNU Autoconf 2.65. Invocation command line was
daa2886c
AJ
15506
15507 CONFIG_FILES = $CONFIG_FILES
15508 CONFIG_HEADERS = $CONFIG_HEADERS
15509 CONFIG_LINKS = $CONFIG_LINKS
15510 CONFIG_COMMANDS = $CONFIG_COMMANDS
15511 $ $0 $@
15512
fc6ffb29
AJ
15513on `(hostname || uname -n) 2>/dev/null | sed 1q`
15514"
15515
f5818d2f
AJ
15516_ACEOF
15517
abf5048b
AJ
15518case $ac_config_files in *"
15519"*) set x $ac_config_files; shift; ac_config_files=$*;;
15520esac
15521
15522case $ac_config_headers in *"
15523"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15524esac
15525
15526
15527cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f5818d2f 15528# Files that config.status was made for.
fc6ffb29
AJ
15529config_files="$ac_config_files"
15530config_headers="$ac_config_headers"
7d020c9f 15531config_links="$ac_config_links"
fc6ffb29 15532config_commands="$ac_config_commands"
f5818d2f 15533
fc6ffb29 15534_ACEOF
f5818d2f 15535
abf5048b 15536cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f5818d2f 15537ac_cs_usage="\
25e9e4f0
AJ
15538\`$as_me' instantiates files and other configuration actions
15539from templates according to the current configuration. Unless the files
15540and actions are specified as TAGs, all are instantiated by default.
f5818d2f 15541
25e9e4f0 15542Usage: $0 [OPTION]... [TAG]...
f5818d2f
AJ
15543
15544 -h, --help print this help, then exit
78bd1948 15545 -V, --version print version number and configuration settings, then exit
fa8c4f76 15546 --config print configuration, then exit
abf5048b
AJ
15547 -q, --quiet, --silent
15548 do not print progress messages
f5818d2f
AJ
15549 -d, --debug don't remove temporary files
15550 --recheck update $as_me by reconfiguring in the same conditions
abf5048b
AJ
15551 --file=FILE[:TEMPLATE]
15552 instantiate the configuration file FILE
15553 --header=FILE[:TEMPLATE]
15554 instantiate the configuration header FILE
f5818d2f
AJ
15555
15556Configuration files:
15557$config_files
15558
15559Configuration headers:
15560$config_headers
15561
7d020c9f
AJ
15562Configuration links:
15563$config_links
15564
f5818d2f
AJ
15565Configuration commands:
15566$config_commands
15567
25e9e4f0
AJ
15568Report bugs to <wine-devel@winehq.org>.
15569Wine home page: <http://www.winehq.org>."
f5818d2f 15570
fc6ffb29 15571_ACEOF
abf5048b 15572cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
fa8c4f76 15573ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
f5818d2f 15574ac_cs_version="\\
8b2a403a 15575Wine config.status 1.3.0
fa8c4f76
AJ
15576configured by $0, generated by GNU Autoconf 2.65,
15577 with options \\"\$ac_cs_config\\"
f5818d2f 15578
25e9e4f0 15579Copyright (C) 2009 Free Software Foundation, Inc.
f5818d2f
AJ
15580This config.status script is free software; the Free Software Foundation
15581gives unlimited permission to copy, distribute and modify it."
fc6ffb29
AJ
15582
15583ac_pwd='$ac_pwd'
15584srcdir='$srcdir'
15585INSTALL='$INSTALL'
abf5048b 15586test -n "\$AWK" || AWK=awk
daa2886c 15587_ACEOF
f5818d2f 15588
abf5048b
AJ
15589cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15590# The default lists apply if the user does not specify any file.
f5818d2f
AJ
15591ac_need_defaults=:
15592while test $# != 0
e2991ea7 15593do
f5818d2f
AJ
15594 case $1 in
15595 --*=*)
fc6ffb29
AJ
15596 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15597 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11af04e3
AJ
15598 ac_shift=:
15599 ;;
fc6ffb29 15600 *)
11af04e3
AJ
15601 ac_option=$1
15602 ac_optarg=$2
15603 ac_shift=shift
f5818d2f 15604 ;;
f5818d2f
AJ
15605 esac
15606
11af04e3 15607 case $ac_option in
f5818d2f 15608 # Handling of the options.
e24bcc77
AJ
15609 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15610 ac_cs_recheck=: ;;
fc6ffb29 15611 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
abf5048b 15612 $as_echo "$ac_cs_version"; exit ;;
fa8c4f76
AJ
15613 --config | --confi | --conf | --con | --co | --c )
15614 $as_echo "$ac_cs_config"; exit ;;
fc6ffb29 15615 --debug | --debu | --deb | --de | --d | -d )
f5818d2f
AJ
15616 debug=: ;;
15617 --file | --fil | --fi | --f )
11af04e3 15618 $ac_shift
abf5048b
AJ
15619 case $ac_optarg in
15620 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15621 esac
25e9e4f0 15622 as_fn_append CONFIG_FILES " '$ac_optarg'"
f5818d2f
AJ
15623 ac_need_defaults=false;;
15624 --header | --heade | --head | --hea )
11af04e3 15625 $ac_shift
abf5048b
AJ
15626 case $ac_optarg in
15627 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15628 esac
25e9e4f0 15629 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
f5818d2f 15630 ac_need_defaults=false;;
fc6ffb29
AJ
15631 --he | --h)
15632 # Conflict between --help and --header
25e9e4f0
AJ
15633 as_fn_error "ambiguous option: \`$1'
15634Try \`$0 --help' for more information.";;
fc6ffb29 15635 --help | --hel | -h )
abf5048b 15636 $as_echo "$ac_cs_usage"; exit ;;
e24bcc77
AJ
15637 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15638 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15639 ac_cs_silent=: ;;
f5818d2f
AJ
15640
15641 # This is an error.
25e9e4f0
AJ
15642 -*) as_fn_error "unrecognized option: \`$1'
15643Try \`$0 --help' for more information." ;;
f5818d2f 15644
25e9e4f0 15645 *) as_fn_append ac_config_targets " $1"
fc6ffb29 15646 ac_need_defaults=false ;;
f5818d2f 15647
e2991ea7 15648 esac
f5818d2f 15649 shift
e2991ea7
AJ
15650done
15651
e24bcc77
AJ
15652ac_configure_extra_args=
15653
15654if $ac_cs_silent; then
15655 exec 6>/dev/null
15656 ac_configure_extra_args="$ac_configure_extra_args --silent"
15657fi
15658
15659_ACEOF
abf5048b 15660cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
e24bcc77 15661if \$ac_cs_recheck; then
abf5048b
AJ
15662 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15663 shift
15664 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15665 CONFIG_SHELL='$SHELL'
fc6ffb29 15666 export CONFIG_SHELL
abf5048b 15667 exec "\$@"
e24bcc77
AJ
15668fi
15669
f5818d2f 15670_ACEOF
abf5048b 15671cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fc6ffb29
AJ
15672exec 5>>config.log
15673{
15674 echo
15675 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15676## Running $as_me. ##
15677_ASBOX
abf5048b 15678 $as_echo "$ac_log"
fc6ffb29 15679} >&5
e2991ea7 15680
fc6ffb29 15681_ACEOF
abf5048b 15682cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39b4ba21
AJ
15683#
15684# INIT-COMMANDS
15685#
15686wine_fn_output_makefile ()
15687{
15688 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
15689$ALL_MAKEFILE_DEPENDS
15690_WINE_EOF
15691 as_fn_error "could not create Makefile" "$LINENO" 5
15692}
15693
fc6ffb29 15694_ACEOF
daa2886c 15695
abf5048b 15696cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fc6ffb29
AJ
15697
15698# Handling of arguments.
f5818d2f
AJ
15699for ac_config_target in $ac_config_targets
15700do
fc6ffb29
AJ
15701 case $ac_config_target in
15702 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
c4704c2d 15703 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
a6320526 15704 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
ce12296c
AJ
15705 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
15706 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
15707 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
15708 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
321d3883 15709 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
7d020c9f 15710 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
7dfc4477
AJ
15711 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
15712 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
1c60e3bf 15713 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
b8a2e3b8 15714 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
fc6ffb29
AJ
15715 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
15716 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
15717 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
cb1fc8f4 15718 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
fc6ffb29
AJ
15719 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
15720 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
fc6ffb29 15721 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
39b4ba21
AJ
15722 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
15723 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Makefile.in" ;;
fc6ffb29 15724
25e9e4f0 15725 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
f5818d2f
AJ
15726 esac
15727done
15728
fc6ffb29 15729
f5818d2f
AJ
15730# If the user did not use the arguments to specify the items to instantiate,
15731# then the envvar interface is used. Set only those that are not.
15732# We use the long form for the default assignment because of an extremely
15733# bizarre bug on SunOS 4.1.3.
15734if $ac_need_defaults; then
15735 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15736 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7d020c9f 15737 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
f5818d2f
AJ
15738 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15739fi
15740
e24bcc77 15741# Have a temporary directory for convenience. Make it in the build tree
fc6ffb29 15742# simply because there is no reason against having it here, and in addition,
e24bcc77 15743# creating and moving files from /tmp can sometimes cause problems.
fc6ffb29
AJ
15744# Hook for its removal unless debugging.
15745# Note that there is a small window in which the directory will not be cleaned:
15746# after its creation but before its name has been assigned to `$tmp'.
f5818d2f
AJ
15747$debug ||
15748{
fc6ffb29
AJ
15749 tmp=
15750 trap 'exit_status=$?
15751 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15752' 0
25e9e4f0 15753 trap 'as_fn_exit 1' 1 2 13 15
f5818d2f 15754}
f5818d2f 15755# Create a (secure) tmp directory for tmp files.
e24bcc77 15756
f5818d2f 15757{
fc6ffb29 15758 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
f5818d2f
AJ
15759 test -n "$tmp" && test -d "$tmp"
15760} ||
15761{
fc6ffb29
AJ
15762 tmp=./conf$$-$RANDOM
15763 (umask 077 && mkdir "$tmp")
25e9e4f0 15764} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
f5818d2f 15765
abf5048b
AJ
15766# Set up the scripts for CONFIG_FILES section.
15767# No need to generate them if there are no CONFIG_FILES.
15768# This happens for instance with `./config.status config.h'.
fc6ffb29
AJ
15769if test -n "$CONFIG_FILES"; then
15770
abf5048b
AJ
15771if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15772 ac_cs_awk_getline=:
15773 ac_cs_awk_pipe_init=
15774 ac_cs_awk_read_file='
15775 while ((getline aline < (F[key])) > 0)
15776 print(aline)
15777 close(F[key])'
15778 ac_cs_awk_pipe_fini=
15779else
15780 ac_cs_awk_getline=false
15781 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15782 ac_cs_awk_read_file='
15783 print "|#_!!_#|"
15784 print "cat " F[key] " &&"
15785 '$ac_cs_awk_pipe_init
15786 # The final `:' finishes the AND list.
15787 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15788fi
25e9e4f0
AJ
15789ac_cr=`echo X | tr X '\015'`
15790# On cygwin, bash can eat \r inside `` if the user requested igncr.
15791# But we know of no other shell where ac_cr would be empty at this
15792# point, so we can use a bashism as a fallback.
15793if test "x$ac_cr" = x; then
15794 eval ac_cr=\$\'\\r\'
15795fi
abf5048b
AJ
15796ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15797if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25e9e4f0 15798 ac_cs_awk_cr='\r'
abf5048b
AJ
15799else
15800 ac_cs_awk_cr=$ac_cr
15801fi
fc6ffb29 15802
abf5048b
AJ
15803echo 'BEGIN {' >"$tmp/subs1.awk" &&
15804_ACEOF
fc6ffb29 15805
abf5048b
AJ
15806# Create commands to substitute file output variables.
15807{
15808 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15809 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15810 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15811 echo "_ACAWK" &&
15812 echo "_ACEOF"
15813} >conf$$files.sh &&
15814. ./conf$$files.sh ||
25e9e4f0 15815 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
abf5048b 15816rm -f conf$$files.sh
fc6ffb29 15817
abf5048b
AJ
15818{
15819 echo "cat >conf$$subs.awk <<_ACEOF" &&
15820 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15821 echo "_ACEOF"
15822} >conf$$subs.sh ||
25e9e4f0 15823 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
abf5048b 15824ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
fc6ffb29
AJ
15825ac_delim='%!_!# '
15826for ac_last_try in false false false false false :; do
abf5048b 15827 . ./conf$$subs.sh ||
25e9e4f0 15828 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
abf5048b
AJ
15829
15830 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15831 if test $ac_delim_n = $ac_delim_num; then
fc6ffb29
AJ
15832 break
15833 elif $ac_last_try; then
25e9e4f0 15834 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
fc6ffb29
AJ
15835 else
15836 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
da0cfb36 15837 fi
fc6ffb29 15838done
abf5048b
AJ
15839rm -f conf$$subs.sh
15840
15841cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15842cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15843_ACEOF
15844sed -n '
15845h
15846s/^/S["/; s/!.*/"]=/
15847p
15848g
15849s/^[^!]*!//
15850:repl
15851t repl
15852s/'"$ac_delim"'$//
15853t delim
15854:nl
15855h
fa8c4f76 15856s/\(.\{148\}\)..*/\1/
abf5048b
AJ
15857t more1
15858s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15859p
15860n
15861b repl
15862:more1
15863s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15864p
15865g
15866s/.\{148\}//
15867t nl
15868:delim
15869h
fa8c4f76 15870s/\(.\{148\}\)..*/\1/
abf5048b
AJ
15871t more2
15872s/["\\]/\\&/g; s/^/"/; s/$/"/
15873p
15874b
15875:more2
15876s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15877p
15878g
15879s/.\{148\}//
15880t delim
15881' <conf$$subs.awk | sed '
15882/^[^""]/{
15883 N
15884 s/\n//
fc6ffb29 15885}
abf5048b
AJ
15886' >>$CONFIG_STATUS || ac_write_fail=1
15887rm -f conf$$subs.awk
15888cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15889_ACAWK
15890cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15891 for (key in S) S_is_set[key] = 1
15892 FS = "\a"
15893 \$ac_cs_awk_pipe_init
fc6ffb29 15894}
abf5048b
AJ
15895{
15896 line = $ 0
15897 nfields = split(line, field, "@")
15898 substed = 0
15899 len = length(field[1])
15900 for (i = 2; i < nfields; i++) {
15901 key = field[i]
15902 keylen = length(key)
15903 if (S_is_set[key]) {
15904 value = S[key]
15905 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15906 len += length(value) + length(field[++i])
15907 substed = 1
15908 } else
15909 len += 1 + keylen
15910 }
15911 if (nfields == 3 && !substed) {
15912 key = field[2]
15913 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15914 \$ac_cs_awk_read_file
15915 next
15916 }
15917 }
15918 print line
fc6ffb29 15919}
abf5048b
AJ
15920\$ac_cs_awk_pipe_fini
15921_ACAWK
fc6ffb29 15922_ACEOF
abf5048b
AJ
15923cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15924if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15925 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15926else
15927 cat
15928fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25e9e4f0 15929 || as_fn_error "could not setup config files machinery" "$LINENO" 5
fc6ffb29 15930_ACEOF
fc6ffb29
AJ
15931
15932# VPATH may cause trouble with some makes, so we remove $(srcdir),
15933# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15934# trailing colons and then remove the whole line if VPATH becomes empty
15935# (actually we leave an empty line to preserve line numbers).
15936if test "x$srcdir" = x.; then
15937 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15938s/:*\$(srcdir):*/:/
15939s/:*\${srcdir}:*/:/
15940s/:*@srcdir@:*/:/
15941s/^\([^=]*=[ ]*\):*/\1/
15942s/:*$//
15943s/^[^=]*=[ ]*$//
15944}'
15945fi
15946
abf5048b 15947cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fc6ffb29
AJ
15948fi # test -n "$CONFIG_FILES"
15949
abf5048b
AJ
15950# Set up the scripts for CONFIG_HEADERS section.
15951# No need to generate them if there are no CONFIG_HEADERS.
15952# This happens for instance with `./config.status Makefile'.
15953if test -n "$CONFIG_HEADERS"; then
15954cat >"$tmp/defines.awk" <<\_ACAWK ||
15955BEGIN {
15956_ACEOF
15957
15958# Transform confdefs.h into an awk script `defines.awk', embedded as
15959# here-document in config.status, that substitutes the proper values into
15960# config.h.in to produce config.h.
15961
15962# Create a delimiter string that does not exist in confdefs.h, to ease
15963# handling of long lines.
15964ac_delim='%!_!# '
15965for ac_last_try in false false :; do
15966 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15967 if test -z "$ac_t"; then
15968 break
15969 elif $ac_last_try; then
25e9e4f0 15970 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
abf5048b
AJ
15971 else
15972 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15973 fi
15974done
15975
15976# For the awk script, D is an array of macro values keyed by name,
15977# likewise P contains macro parameters if any. Preserve backslash
15978# newline sequences.
15979
15980ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15981sed -n '
15982s/.\{148\}/&'"$ac_delim"'/g
15983t rset
15984:rset
15985s/^[ ]*#[ ]*define[ ][ ]*/ /
15986t def
15987d
15988:def
15989s/\\$//
15990t bsnl
15991s/["\\]/\\&/g
15992s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15993D["\1"]=" \3"/p
15994s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15995d
15996:bsnl
15997s/["\\]/\\&/g
15998s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15999D["\1"]=" \3\\\\\\n"\\/p
16000t cont
16001s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16002t cont
16003d
16004:cont
16005n
16006s/.\{148\}/&'"$ac_delim"'/g
16007t clear
16008:clear
16009s/\\$//
16010t bsnlc
16011s/["\\]/\\&/g; s/^/"/; s/$/"/p
16012d
16013:bsnlc
16014s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16015b cont
16016' <confdefs.h | sed '
16017s/'"$ac_delim"'/"\\\
16018"/g' >>$CONFIG_STATUS || ac_write_fail=1
16019
16020cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16021 for (key in D) D_is_set[key] = 1
16022 FS = "\a"
16023}
16024/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16025 line = \$ 0
16026 split(line, arg, " ")
16027 if (arg[1] == "#") {
16028 defundef = arg[2]
16029 mac1 = arg[3]
16030 } else {
16031 defundef = substr(arg[1], 2)
16032 mac1 = arg[2]
16033 }
16034 split(mac1, mac2, "(") #)
16035 macro = mac2[1]
16036 prefix = substr(line, 1, index(line, defundef) - 1)
16037 if (D_is_set[macro]) {
16038 # Preserve the white space surrounding the "#".
16039 print prefix "define", macro P[macro] D[macro]
16040 next
16041 } else {
16042 # Replace #undef with comments. This is necessary, for example,
16043 # in the case of _POSIX_SOURCE, which is predefined and required
16044 # on some systems where configure will not decide to define it.
16045 if (defundef == "undef") {
16046 print "/*", prefix defundef, macro, "*/"
16047 next
16048 }
16049 }
16050}
16051{ print }
16052_ACAWK
16053_ACEOF
16054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25e9e4f0 16055 as_fn_error "could not setup config headers machinery" "$LINENO" 5
abf5048b
AJ
16056fi # test -n "$CONFIG_HEADERS"
16057
fc6ffb29 16058
7d020c9f 16059eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
abf5048b
AJ
16060shift
16061for ac_tag
fc6ffb29
AJ
16062do
16063 case $ac_tag in
16064 :[FHLC]) ac_mode=$ac_tag; continue;;
16065 esac
16066 case $ac_mode$ac_tag in
16067 :[FHL]*:*);;
25e9e4f0 16068 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
fc6ffb29
AJ
16069 :[FH]-) ac_tag=-:-;;
16070 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
e2991ea7 16071 esac
fc6ffb29
AJ
16072 ac_save_IFS=$IFS
16073 IFS=:
16074 set x $ac_tag
16075 IFS=$ac_save_IFS
16076 shift
16077 ac_file=$1
16078 shift
e2991ea7 16079
fc6ffb29
AJ
16080 case $ac_mode in
16081 :L) ac_source=$1;;
16082 :[FH])
16083 ac_file_inputs=
16084 for ac_f
16085 do
16086 case $ac_f in
16087 -) ac_f="$tmp/stdin";;
16088 *) # Look for the file first in the build tree, then in the source tree
16089 # (if the path is not absolute). The absolute path cannot be DOS-style,
16090 # because $ac_f cannot contain `:'.
16091 test -f "$ac_f" ||
16092 case $ac_f in
16093 [\\/$]*) false;;
16094 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16095 esac ||
25e9e4f0 16096 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
fc6ffb29 16097 esac
abf5048b 16098 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25e9e4f0 16099 as_fn_append ac_file_inputs " '$ac_f'"
fc6ffb29
AJ
16100 done
16101
16102 # Let's still pretend it is `configure' which instantiates (i.e., don't
16103 # use $as_me), people would be surprised to read:
16104 # /* config.h. Generated by config.status. */
abf5048b
AJ
16105 configure_input='Generated from '`
16106 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16107 `' by configure.'
fc6ffb29
AJ
16108 if test x"$ac_file" != x-; then
16109 configure_input="$ac_file. $configure_input"
25e9e4f0 16110 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
abf5048b 16111$as_echo "$as_me: creating $ac_file" >&6;}
fc6ffb29 16112 fi
abf5048b
AJ
16113 # Neutralize special characters interpreted by sed in replacement strings.
16114 case $configure_input in #(
16115 *\&* | *\|* | *\\* )
16116 ac_sed_conf_input=`$as_echo "$configure_input" |
16117 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16118 *) ac_sed_conf_input=$configure_input;;
16119 esac
fc6ffb29
AJ
16120
16121 case $ac_tag in
abf5048b 16122 *:-:* | *:-) cat >"$tmp/stdin" \
25e9e4f0 16123 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
fc6ffb29
AJ
16124 esac
16125 ;;
16126 esac
16127
16128 ac_dir=`$as_dirname -- "$ac_file" ||
daa2886c 16129$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
875927f6
AJ
16130 X"$ac_file" : 'X\(//\)[^/]' \| \
16131 X"$ac_file" : 'X\(//\)$' \| \
fc6ffb29 16132 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
abf5048b 16133$as_echo X"$ac_file" |
fc6ffb29
AJ
16134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16135 s//\1/
16136 q
16137 }
16138 /^X\(\/\/\)[^/].*/{
16139 s//\1/
16140 q
16141 }
16142 /^X\(\/\/\)$/{
16143 s//\1/
16144 q
16145 }
16146 /^X\(\/\).*/{
16147 s//\1/
16148 q
16149 }
16150 s/.*/./; q'`
25e9e4f0 16151 as_dir="$ac_dir"; as_fn_mkdir_p
daa2886c 16152 ac_builddir=.
e2991ea7 16153
fc6ffb29
AJ
16154case "$ac_dir" in
16155.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16156*)
abf5048b 16157 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
fc6ffb29 16158 # A ".." for each directory in $ac_dir_suffix.
abf5048b 16159 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
fc6ffb29
AJ
16160 case $ac_top_builddir_sub in
16161 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16162 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16163 esac ;;
16164esac
16165ac_abs_top_builddir=$ac_pwd
16166ac_abs_builddir=$ac_pwd$ac_dir_suffix
16167# for backward compatibility:
16168ac_top_builddir=$ac_top_build_prefix
daa2886c
AJ
16169
16170case $srcdir in
fc6ffb29 16171 .) # We are building in place.
daa2886c 16172 ac_srcdir=.
fc6ffb29
AJ
16173 ac_top_srcdir=$ac_top_builddir_sub
16174 ac_abs_top_srcdir=$ac_pwd ;;
16175 [\\/]* | ?:[\\/]* ) # Absolute name.
daa2886c 16176 ac_srcdir=$srcdir$ac_dir_suffix;
fc6ffb29
AJ
16177 ac_top_srcdir=$srcdir
16178 ac_abs_top_srcdir=$srcdir ;;
16179 *) # Relative name.
16180 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16181 ac_top_srcdir=$ac_top_build_prefix$srcdir
16182 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
daa2886c 16183esac
fc6ffb29 16184ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
875927f6 16185
daa2886c 16186
fc6ffb29
AJ
16187 case $ac_mode in
16188 :F)
16189 #
16190 # CONFIG_FILE
16191 #
e2991ea7 16192
f5818d2f
AJ
16193 case $INSTALL in
16194 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
fc6ffb29 16195 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
d7d4fdf8 16196 esac
fc6ffb29 16197_ACEOF
da0cfb36 16198
abf5048b 16199cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fc6ffb29
AJ
16200# If the template does not know about datarootdir, expand it.
16201# FIXME: This hack should be removed a few years after 2.60.
0ebeb530 16202ac_datarootdir_hack=; ac_datarootdir_seen=
abf5048b
AJ
16203ac_sed_dataroot='
16204/datarootdir/ {
fc6ffb29
AJ
16205 p
16206 q
16207}
16208/@datadir@/p
16209/@docdir@/p
16210/@infodir@/p
16211/@localedir@/p
25e9e4f0 16212/@mandir@/p'
abf5048b 16213case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
0ebeb530 16214*datarootdir*) ac_datarootdir_seen=yes;;
fc6ffb29 16215*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25e9e4f0 16216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
abf5048b 16217$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
daa2886c 16218_ACEOF
abf5048b 16219cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
fc6ffb29
AJ
16220 ac_datarootdir_hack='
16221 s&@datadir@&$datadir&g
16222 s&@docdir@&$docdir&g
16223 s&@infodir@&$infodir&g
16224 s&@localedir@&$localedir&g
16225 s&@mandir@&$mandir&g
25e9e4f0 16226 s&\\\${datarootdir}&$datarootdir&g' ;;
fc6ffb29
AJ
16227esac
16228_ACEOF
16229
16230# Neutralize VPATH when `$srcdir' = `.'.
16231# Shell code in configure.ac might set extrasub.
16232# FIXME: do we really want to maintain this feature?
abf5048b
AJ
16233cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16234ac_sed_extra="$ac_vpsub
f5818d2f 16235$extrasub
daa2886c 16236_ACEOF
abf5048b 16237cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f5818d2f
AJ
16238:t
16239/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
abf5048b 16240s|@configure_input@|$ac_sed_conf_input|;t t
fc6ffb29 16241s&@top_builddir@&$ac_top_builddir_sub&;t t
abf5048b 16242s&@top_build_prefix@&$ac_top_build_prefix&;t t
fc6ffb29
AJ
16243s&@srcdir@&$ac_srcdir&;t t
16244s&@abs_srcdir@&$ac_abs_srcdir&;t t
16245s&@top_srcdir@&$ac_top_srcdir&;t t
16246s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16247s&@builddir@&$ac_builddir&;t t
16248s&@abs_builddir@&$ac_abs_builddir&;t t
16249s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16250s&@INSTALL@&$ac_INSTALL&;t t
16251$ac_datarootdir_hack
abf5048b
AJ
16252"
16253eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16254if $ac_cs_awk_getline; then
16255 $AWK -f "$tmp/subs.awk"
16256else
16257 $AWK -f "$tmp/subs.awk" | $SHELL
16258fi >$tmp/out \
25e9e4f0 16259 || as_fn_error "could not create $ac_file" "$LINENO" 5
fc6ffb29 16260
0ebeb530
JW
16261test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16262 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
f5f37a85 16263 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25e9e4f0 16264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
0ebeb530 16265which seems to be undefined. Please make sure it is defined." >&5
abf5048b 16266$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
0ebeb530
JW
16267which seems to be undefined. Please make sure it is defined." >&2;}
16268
fc6ffb29 16269 rm -f "$tmp/stdin"
f5818d2f 16270 case $ac_file in
abf5048b
AJ
16271 -) cat "$tmp/out" && rm -f "$tmp/out";;
16272 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16273 esac \
25e9e4f0 16274 || as_fn_error "could not create $ac_file" "$LINENO" 5
fc6ffb29
AJ
16275 ;;
16276 :H)
16277 #
16278 # CONFIG_HEADER
16279 #
f5818d2f 16280 if test x"$ac_file" != x-; then
abf5048b
AJ
16281 {
16282 $as_echo "/* $configure_input */" \
16283 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16284 } >"$tmp/config.h" \
25e9e4f0 16285 || as_fn_error "could not create $ac_file" "$LINENO" 5
abf5048b 16286 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25e9e4f0 16287 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
abf5048b 16288$as_echo "$as_me: $ac_file is unchanged" >&6;}
f5818d2f 16289 else
abf5048b
AJ
16290 rm -f "$ac_file"
16291 mv "$tmp/config.h" "$ac_file" \
25e9e4f0 16292 || as_fn_error "could not create $ac_file" "$LINENO" 5
18f92e76 16293 fi
f5818d2f 16294 else
abf5048b
AJ
16295 $as_echo "/* $configure_input */" \
16296 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25e9e4f0 16297 || as_fn_error "could not create -" "$LINENO" 5
18f92e76 16298 fi
fc6ffb29 16299 ;;
7d020c9f
AJ
16300 :L)
16301 #
16302 # CONFIG_LINK
16303 #
16304
16305 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16306 :
16307 else
16308 # Prefer the file from the source tree if names are identical.
16309 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16310 ac_source=$srcdir/$ac_source
16311 fi
16312
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16314$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16315
16316 if test ! -r "$ac_source"; then
16317 as_fn_error "$ac_source: file not found" "$LINENO" 5
16318 fi
16319 rm -f "$ac_file"
875927f6 16320
7d020c9f
AJ
16321 # Try a relative symlink, then a hard link, then a copy.
16322 case $srcdir in
16323 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16324 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16325 esac
16326 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16327 ln "$ac_source" "$ac_file" 2>/dev/null ||
16328 cp -p "$ac_source" "$ac_file" ||
16329 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16330 fi
16331 ;;
25e9e4f0 16332 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
abf5048b 16333$as_echo "$as_me: executing $ac_file commands" >&6;}
fc6ffb29
AJ
16334 ;;
16335 esac
daa2886c
AJ
16336
16337
fc6ffb29 16338 case $ac_file$ac_mode in
c4704c2d 16339 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
a1c253e0
AJ
16340 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
16341$as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
16342 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
16343$as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
16344 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
16345$as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
16346 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
16347$as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
16348 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
16349$as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
16350 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
16351$as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
39b4ba21 16352 "Makefile":C) wine_fn_output_makefile Makefile ;;
fc6ffb29 16353
f5818d2f 16354 esac
fc6ffb29 16355done # for ac_tag
e2991ea7 16356
87a2f8df 16357
25e9e4f0 16358as_fn_exit 0
daa2886c 16359_ACEOF
f5818d2f
AJ
16360ac_clean_files=$ac_clean_files_save
16361
abf5048b 16362test $ac_write_fail = 0 ||
25e9e4f0 16363 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
abf5048b 16364
daa2886c 16365
f5818d2f
AJ
16366# configure is writing to config.log, and then calls config.status.
16367# config.status does its own redirection, appending to config.log.
16368# Unfortunately, on DOS this fails, as config.log is still kept open
16369# by configure, so config.status won't be able to write to it; its
16370# output is simply discarded. So we exec the FD to /dev/null,
16371# effectively closing config.log, so it can be properly (re)opened and
16372# appended to by config.status. When coming back to configure, we
16373# need to make the FD available again.
16374if test "$no_create" != yes; then
16375 ac_cs_success=:
e24bcc77
AJ
16376 ac_config_status_args=
16377 test "$silent" = yes &&
16378 ac_config_status_args="$ac_config_status_args --quiet"
f5818d2f 16379 exec 5>/dev/null
e24bcc77 16380 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
f5818d2f
AJ
16381 exec 5>>config.log
16382 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16383 # would make configure fail if this is the last instruction.
25e9e4f0 16384 $ac_cs_success || as_fn_exit $?
f5818d2f 16385fi
abf5048b 16386if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25e9e4f0 16387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
abf5048b
AJ
16388$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16389fi
e2991ea7 16390
daa2886c 16391
e3bd111b
AJ
16392if test "$no_create" = "yes"
16393then
16394 exit 0
16395fi
16396
f9dec94f 16397ac_save_IFS="$IFS"
a41f0f1b
AJ
16398if test "x$wine_notices != "x; then
16399 echo >&6
4736c993 16400 IFS="|"
f9dec94f 16401 for msg in $wine_notices; do
4736c993 16402 IFS="$ac_save_IFS"
f9dec94f 16403 if test -n "$msg"; then
25e9e4f0 16404 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
abf5048b 16405$as_echo "$as_me: $msg" >&6;}
f9dec94f
AJ
16406 fi
16407 done
99d026fb 16408fi
4736c993 16409IFS="|"
f9dec94f 16410for msg in $wine_warnings; do
4736c993 16411 IFS="$ac_save_IFS"
f9dec94f
AJ
16412 if test -n "$msg"; then
16413 echo >&2
25e9e4f0 16414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
abf5048b 16415$as_echo "$as_me: WARNING: $msg" >&2;}
f9dec94f
AJ
16416 fi
16417done
16418IFS="$ac_save_IFS"
99d026fb 16419
a41f0f1b 16420echo "
64362acf 16421$as_me: Finished. Do '${ac_make}' to compile Wine.
a41f0f1b 16422" >&6
e2991ea7 16423