1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for Wine 1.1.30.
4 #
5 # Report bugs to <wine-devel@winehq.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and
232 $0: wine-devel@winehq.org about your system, including any
233 $0: error possibly output before this message. Then install
234 $0: a modern shell, or manually run the script under such a
235 $0: shell if you do have one."
236 fi
237 exit 1
238 fi
239 fi
240 fi
241 SHELL=${CONFIG_SHELL-/bin/sh}
242 export SHELL
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
246
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
250 # as_fn_unset VAR
251 # ---------------
252 # Portably unset VAR.
253 as_fn_unset ()
254 {
255 { eval $1=; unset $1;}
256 }
257 as_unset=as_fn_unset
258
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
262 as_fn_set_status ()
263 {
264 return $1
265 } # as_fn_set_status
266
267 # as_fn_exit STATUS
268 # -----------------
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270 as_fn_exit ()
271 {
272 set +e
273 as_fn_set_status $1
274 exit $1
275 } # as_fn_exit
276
277 # as_fn_mkdir_p
278 # -------------
279 # Create "$as_dir" as a directory, including parents if necessary.
280 as_fn_mkdir_p ()
281 {
282
283 case $as_dir in #(
284 -*) as_dir=./$as_dir;;
285 esac
286 test -d "$as_dir" || eval $as_mkdir_p || {
287 as_dirs=
288 while :; do
289 case $as_dir in #(
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291 *) as_qdir=$as_dir;;
292 esac
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301 s//\1/
302 q
303 }
304 /^X\(\/\/\)[^/].*/{
305 s//\1/
306 q
307 }
308 /^X\(\/\/\)$/{
309 s//\1/
310 q
311 }
312 /^X\(\/\).*/{
313 s//\1/
314 q
315 }
316 s/.*/./; q'`
317 test -d "$as_dir" && break
318 done
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321
322
323 } # as_fn_mkdir_p
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
329 # implementations.
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
332 {
333 eval $1+=\$2
334 }'
335 else
336 as_fn_append ()
337 {
338 eval $1=\$$1\$2
339 }
340 fi # as_fn_append
341
342 # as_fn_arith ARG...
343 # ------------------
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348 eval 'as_fn_arith ()
349 {
350 as_val=$(( $* ))
351 }'
352 else
353 as_fn_arith ()
354 {
355 as_val=`expr "$@" || test $? -eq 1`
356 }
357 fi # as_fn_arith
358
359
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
365 as_fn_error ()
366 {
367 as_status=$?; test $as_status -eq 0 && as_status=1
368 if test "$3"; then
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 fi
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
374 } # as_fn_error
375
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
378 as_expr=expr
379 else
380 as_expr=false
381 fi
382
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384 as_basename=basename
385 else
386 as_basename=false
387 fi
388
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390 as_dirname=dirname
391 else
392 as_dirname=false
393 fi
394
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 $as_echo X/"$0" |
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
401 s//\1/
402 q
403 }
404 /^X\/\(\/\/\)$/{
405 s//\1/
406 q
407 }
408 /^X\/\(\/\).*/{
409 s//\1/
410 q
411 }
412 s/.*/./; q'`
413
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
420
421
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
427 sed -n '
428 p
429 /[$]LINENO/=
430 ' <$as_myself |
431 sed '
432 s/[$]LINENO.*/&-/
433 t lineno
434 b
435 :lineno
436 N
437 :loop
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 t loop
440 s/-\n.*//
441 ' >$as_me.lineno &&
442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
448 . "./$as_me.lineno"
449 # Exit status is that of the last command.
450 exit
451 }
452
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
455 -n*)
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 xy) ECHO_C='\c';;
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
460 ECHO_T=' ';;
461 esac;;
462 *)
463 ECHO_N='-n';;
464 esac
465
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
469 else
470 rm -f conf$$.dir
471 mkdir conf$$.dir 2>/dev/null
472 fi
473 if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 as_ln_s='ln -s'
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 as_ln_s='cp -p'
482 elif ln conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s=ln
484 else
485 as_ln_s='cp -p'
486 fi
487 else
488 as_ln_s='cp -p'
489 fi
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
492
493 if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
495 else
496 test -d ./-p && rmdir ./-p
497 as_mkdir_p=false
498 fi
499
500 if test -x / >/dev/null 2>&1; then
501 as_test_x='test -x'
502 else
503 if ls -dL / >/dev/null 2>&1; then
504 as_ls_L_option=L
505 else
506 as_ls_L_option=
507 fi
508 as_test_x='
509 eval sh -c '\''
510 if test -d "$1"; then
511 test -d "$1/.";
512 else
513 case $1 in #(
514 -*)set "./$1";;
515 esac;
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
518 '\'' sh
519 '
520 fi
521 as_executable_p=$as_test_x
522
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528
529
530 exec 7<&0 </dev/null 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME='Wine'
551 PACKAGE_TARNAME='wine'
552 PACKAGE_VERSION='1.1.30'
553 PACKAGE_STRING='Wine 1.1.30'
554 PACKAGE_BUGREPORT='wine-devel@winehq.org'
555 PACKAGE_URL='http://www.winehq.org'
556
557 ac_unique_file="server/atom.c"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_subst_vars='LTLIBOBJS
595 LIBOBJS
596 ALL_WINETEST_DEPENDS
597 ALL_PROGRAM_BIN_INSTALL_DIRS
598 ALL_PROGRAM_INSTALL_DIRS
599 ALL_PROGRAM_DIRS
600 ALL_TEST_DIRS
601 ALL_IMPLIB_DIRS
602 ALL_DLL_DIRS
603 ALL_TOP_DIRS
604 ALL_MAKEFILE_DEPENDS
605 ALL_MAKEFILES
606 ALL_MAKERULES
607 DEPENDENCIES
608 LDAPLIBS
609 LIBPOLL
610 LIBDL
611 EXTRA_BINARIES
612 MAIN_BINARY
613 SOCKETLIBS
614 CRTLIBS
615 TOOLSEXT
616 LDPATH
617 BUILTINFLAG
618 EXTRACFLAGS
619 LIBKSTAT
620 LIBMPG123
621 PNGINCL
622 FONTCONFIGINCL
623 CUPSINCL
624 AUDIOIOLIBS
625 ALSALIBS
626 ESDLIBS
627 ESDINCL
628 ESDCONFIG
629 ZLIB
630 FREETYPEINCL
631 FREETYPELIBS
632 ft_devel
633 LCMSLIBS
634 RESOLVLIBS
635 GPHOTO2INCL
636 GPHOTO2LIBS
637 gphoto2port_devel
638 gphoto2_devel
639 SANEINCL
640 sane_devel
641 GNUTLSINCL
642 HALINCL
643 XSLTINCL
644 XML2INCL
645 XML2LIBS
646 NASLIBS
647 X_EXTRA_LIBS
648 X_LIBS
649 X_PRE_LIBS
650 X_CFLAGS
651 XMKMF
652 LIBPTHREAD
653 CROSSTARGETFLAGS
654 CROSSTEST
655 CROSSCC
656 CARBONLIB
657 LIBOPENAL
658 COREAUDIO
659 DISKARBITRATIONLIB
660 LDEXECFLAGS
661 IOKITLIB
662 COREFOUNDATIONLIB
663 SECURITYLIB
664 MINGWAR
665 DLLWRAP
666 DLLTOOL
667 LDD
668 LDRPATH_LOCAL
669 LDRPATH_INSTALL
670 IMPLIBEXT
671 LIBEXT
672 LDDLLFLAGS
673 LDSHARED
674 DLLFLAGS
675 DLLEXT
676 CPP
677 OPENGL_LIBS
678 XLIB
679 PRELINK
680 ICOTOOL
681 RSVG
682 PKG_CONFIG
683 FONTFORGE
684 LINTFLAGS
685 LINT
686 INSTALL_DATA
687 INSTALL_SCRIPT
688 INSTALL_PROGRAM
689 LDCONFIG
690 EGREP
691 GREP
692 LN
693 LN_S
694 STRIP
695 RANLIB
696 ARFLAGS
697 ac_ct_AR
698 AR
699 BISON
700 FLEX
701 TOOLSDIR
702 WOW64_DISABLE
703 WIN16_INSTALL
704 WIN16_FILES
705 TARGETFLAGS
706 CPPBIN
707 ac_ct_CXX
708 CXXFLAGS
709 CXX
710 OBJEXT
711 EXEEXT
712 ac_ct_CC
713 CPPFLAGS
714 LDFLAGS
715 CFLAGS
716 CC
717 SET_MAKE
718 host_os
719 host_vendor
720 host_cpu
721 host
722 build_os
723 build_vendor
724 build_cpu
725 build
726 MAINTAINER_MODE
727 target_alias
728 host_alias
729 build_alias
730 LIBS
731 ECHO_T
732 ECHO_N
733 ECHO_C
734 DEFS
735 mandir
736 localedir
737 libdir
738 psdir
739 pdfdir
740 dvidir
741 htmldir
742 infodir
743 docdir
744 oldincludedir
745 includedir
746 localstatedir
747 sharedstatedir
748 sysconfdir
749 datadir
750 datarootdir
751 libexecdir
752 sbindir
753 bindir
754 program_transform_name
755 prefix
756 exec_prefix
757 PACKAGE_URL
758 PACKAGE_BUGREPORT
759 PACKAGE_STRING
760 PACKAGE_VERSION
761 PACKAGE_TARNAME
762 PACKAGE_NAME
763 PATH_SEPARATOR
764 SHELL'
765 ac_subst_files='MAKE_RULES
766 MAKE_DLL_RULES
767 MAKE_IMPLIB_RULES
768 MAKE_TEST_RULES
769 MAKE_PROG_RULES'
770 ac_user_opts='
771 enable_option_checking
772 enable_win16
773 enable_win64
774 enable_tests
775 enable_maintainer_mode
776 with_alsa
777 with_audioio
778 with_capi
779 with_cms
780 with_coreaudio
781 with_cups
782 with_curses
783 with_esd
784 with_fontconfig
785 with_freetype
786 with_gphoto
787 with_glu
788 with_gnutls
789 with_gsm
790 with_hal
791 with_jack
792 with_jpeg
793 with_ldap
794 with_mpg123
795 with_nas
796 with_openal
797 with_opengl
798 with_openssl
799 with_oss
800 with_png
801 with_pthread
802 with_sane
803 with_xcomposite
804 with_xcursor
805 with_xinerama
806 with_xinput
807 with_xml
808 with_xrandr
809 with_xrender
810 with_xshape
811 with_xshm
812 with_xslt
813 with_xxf86vm
814 with_wine_tools
815 with_wine64
816 enable_largefile
817 with_x
818 '
819 ac_precious_vars='build_alias
820 host_alias
821 target_alias
822 CC
823 CFLAGS
824 LDFLAGS
825 LIBS
826 CPPFLAGS
827 CXX
828 CXXFLAGS
829 CCC
830 CPP
831 XMKMF'
832
833
834 # Initialize some variables set by options.
835 ac_init_help=
836 ac_init_version=false
837 ac_unrecognized_opts=
838 ac_unrecognized_sep=
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
841 cache_file=/dev/null
842 exec_prefix=NONE
843 no_create=
844 no_recursion=
845 prefix=NONE
846 program_prefix=NONE
847 program_suffix=NONE
848 program_transform_name=s,x,x,
849 silent=
850 site=
851 srcdir=
852 verbose=
853 x_includes=NONE
854 x_libraries=NONE
855
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir='${exec_prefix}/bin'
863 sbindir='${exec_prefix}/sbin'
864 libexecdir='${exec_prefix}/libexec'
865 datarootdir='${prefix}/share'
866 datadir='${datarootdir}'
867 sysconfdir='${prefix}/etc'
868 sharedstatedir='${prefix}/com'
869 localstatedir='${prefix}/var'
870 includedir='${prefix}/include'
871 oldincludedir='/usr/include'
872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir='${datarootdir}/info'
874 htmldir='${docdir}'
875 dvidir='${docdir}'
876 pdfdir='${docdir}'
877 psdir='${docdir}'
878 libdir='${exec_prefix}/lib'
879 localedir='${datarootdir}/locale'
880 mandir='${datarootdir}/man'
881
882 ac_prev=
883 ac_dashdash=
884 for ac_option
885 do
886 # If the previous option needs an argument, assign it.
887 if test -n "$ac_prev"; then
888 eval $ac_prev=\$ac_option
889 ac_prev=
890 continue
891 fi
892
893 case $ac_option in
894 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895 *) ac_optarg=yes ;;
896 esac
897
898 # Accept the important Cygnus configure options, so we can diagnose typos.
899
900 case $ac_dashdash$ac_option in
901 --)
902 ac_dashdash=yes ;;
903
904 -bindir | --bindir | --bindi | --bind | --bin | --bi)
905 ac_prev=bindir ;;
906 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907 bindir=$ac_optarg ;;
908
909 -build | --build | --buil | --bui | --bu)
910 ac_prev=build_alias ;;
911 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912 build_alias=$ac_optarg ;;
913
914 -cache-file | --cache-file | --cache-fil | --cache-fi \
915 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916 ac_prev=cache_file ;;
917 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919 cache_file=$ac_optarg ;;
920
921 --config-cache | -C)
922 cache_file=config.cache ;;
923
924 -datadir | --datadir | --datadi | --datad)
925 ac_prev=datadir ;;
926 -datadir=* | --datadir=* | --datadi=* | --datad=*)
927 datadir=$ac_optarg ;;
928
929 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930 | --dataroo | --dataro | --datar)
931 ac_prev=datarootdir ;;
932 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934 datarootdir=$ac_optarg ;;
935
936 -disable-* | --disable-*)
937 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error "invalid feature name: $ac_useropt"
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
944 *"
945 "enable_$ac_useropt"
946 "*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
949 esac
950 eval enable_$ac_useropt=no ;;
951
952 -docdir | --docdir | --docdi | --doc | --do)
953 ac_prev=docdir ;;
954 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955 docdir=$ac_optarg ;;
956
957 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
958 ac_prev=dvidir ;;
959 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960 dvidir=$ac_optarg ;;
961
962 -enable-* | --enable-*)
963 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 as_fn_error "invalid feature name: $ac_useropt"
967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
970 *"
971 "enable_$ac_useropt"
972 "*) ;;
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
975 esac
976 eval enable_$ac_useropt=\$ac_optarg ;;
977
978 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
979 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
980 | --exec | --exe | --ex)
981 ac_prev=exec_prefix ;;
982 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
983 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
984 | --exec=* | --exe=* | --ex=*)
985 exec_prefix=$ac_optarg ;;
986
987 -gas | --gas | --ga | --g)
988 # Obsolete; use --with-gas.
989 with_gas=yes ;;
990
991 -help | --help | --hel | --he | -h)
992 ac_init_help=long ;;
993 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
994 ac_init_help=recursive ;;
995 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
996 ac_init_help=short ;;
997
998 -host | --host | --hos | --ho)
999 ac_prev=host_alias ;;
1000 -host=* | --host=* | --hos=* | --ho=*)
1001 host_alias=$ac_optarg ;;
1002
1003 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1004 ac_prev=htmldir ;;
1005 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1006 | --ht=*)
1007 htmldir=$ac_optarg ;;
1008
1009 -includedir | --includedir | --includedi | --included | --include \
1010 | --includ | --inclu | --incl | --inc)
1011 ac_prev=includedir ;;
1012 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1013 | --includ=* | --inclu=* | --incl=* | --inc=*)
1014 includedir=$ac_optarg ;;
1015
1016 -infodir | --infodir | --infodi | --infod | --info | --inf)
1017 ac_prev=infodir ;;
1018 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1019 infodir=$ac_optarg ;;
1020
1021 -libdir | --libdir | --libdi | --libd)
1022 ac_prev=libdir ;;
1023 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1024 libdir=$ac_optarg ;;
1025
1026 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1027 | --libexe | --libex | --libe)
1028 ac_prev=libexecdir ;;
1029 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1030 | --libexe=* | --libex=* | --libe=*)
1031 libexecdir=$ac_optarg ;;
1032
1033 -localedir | --localedir | --localedi | --localed | --locale)
1034 ac_prev=localedir ;;
1035 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1036 localedir=$ac_optarg ;;
1037
1038 -localstatedir | --localstatedir | --localstatedi | --localstated \
1039 | --localstate | --localstat | --localsta | --localst | --locals)
1040 ac_prev=localstatedir ;;
1041 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1042 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1043 localstatedir=$ac_optarg ;;
1044
1045 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1046 ac_prev=mandir ;;
1047 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1048 mandir=$ac_optarg ;;
1049
1050 -nfp | --nfp | --nf)
1051 # Obsolete; use --without-fp.
1052 with_fp=no ;;
1053
1054 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1055 | --no-cr | --no-c | -n)
1056 no_create=yes ;;
1057
1058 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1059 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060 no_recursion=yes ;;
1061
1062 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1063 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1064 | --oldin | --oldi | --old | --ol | --o)
1065 ac_prev=oldincludedir ;;
1066 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1067 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1068 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1069 oldincludedir=$ac_optarg ;;
1070
1071 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1072 ac_prev=prefix ;;
1073 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1074 prefix=$ac_optarg ;;
1075
1076 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1077 | --program-pre | --program-pr | --program-p)
1078 ac_prev=program_prefix ;;
1079 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1080 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1081 program_prefix=$ac_optarg ;;
1082
1083 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1084 | --program-suf | --program-su | --program-s)
1085 ac_prev=program_suffix ;;
1086 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1087 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1088 program_suffix=$ac_optarg ;;
1089
1090 -program-transform-name | --program-transform-name \
1091 | --program-transform-nam | --program-transform-na \
1092 | --program-transform-n | --program-transform- \
1093 | --program-transform | --program-transfor \
1094 | --program-transfo | --program-transf \
1095 | --program-trans | --program-tran \
1096 | --progr-tra | --program-tr | --program-t)
1097 ac_prev=program_transform_name ;;
1098 -program-transform-name=* | --program-transform-name=* \
1099 | --program-transform-nam=* | --program-transform-na=* \
1100 | --program-transform-n=* | --program-transform-=* \
1101 | --program-transform=* | --program-transfor=* \
1102 | --program-transfo=* | --program-transf=* \
1103 | --program-trans=* | --program-tran=* \
1104 | --progr-tra=* | --program-tr=* | --program-t=*)
1105 program_transform_name=$ac_optarg ;;
1106
1107 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1108 ac_prev=pdfdir ;;
1109 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1110 pdfdir=$ac_optarg ;;
1111
1112 -psdir | --psdir | --psdi | --psd | --ps)
1113 ac_prev=psdir ;;
1114 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1115 psdir=$ac_optarg ;;
1116
1117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118 | -silent | --silent | --silen | --sile | --sil)
1119 silent=yes ;;
1120
1121 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1122 ac_prev=sbindir ;;
1123 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1124 | --sbi=* | --sb=*)
1125 sbindir=$ac_optarg ;;
1126
1127 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1128 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1129 | --sharedst | --shareds | --shared | --share | --shar \
1130 | --sha | --sh)
1131 ac_prev=sharedstatedir ;;
1132 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1133 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1134 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1135 | --sha=* | --sh=*)
1136 sharedstatedir=$ac_optarg ;;
1137
1138 -site | --site | --sit)
1139 ac_prev=site ;;
1140 -site=* | --site=* | --sit=*)
1141 site=$ac_optarg ;;
1142
1143 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1144 ac_prev=srcdir ;;
1145 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1146 srcdir=$ac_optarg ;;
1147
1148 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1149 | --syscon | --sysco | --sysc | --sys | --sy)
1150 ac_prev=sysconfdir ;;
1151 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1152 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1153 sysconfdir=$ac_optarg ;;
1154
1155 -target | --target | --targe | --targ | --tar | --ta | --t)
1156 ac_prev=target_alias ;;
1157 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1158 target_alias=$ac_optarg ;;
1159
1160 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161 verbose=yes ;;
1162
1163 -version | --version | --versio | --versi | --vers | -V)
1164 ac_init_version=: ;;
1165
1166 -with-* | --with-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error "invalid package name: $ac_useropt"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1174 *"
1175 "with_$ac_useropt"
1176 "*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval with_$ac_useropt=\$ac_optarg ;;
1181
1182 -without-* | --without-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error "invalid package name: $ac_useropt"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1190 *"
1191 "with_$ac_useropt"
1192 "*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=no ;;
1197
1198 --x)
1199 # Obsolete; use --with-x.
1200 with_x=yes ;;
1201
1202 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1203 | --x-incl | --x-inc | --x-in | --x-i)
1204 ac_prev=x_includes ;;
1205 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1206 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1207 x_includes=$ac_optarg ;;
1208
1209 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1210 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1211 ac_prev=x_libraries ;;
1212 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1213 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1214 x_libraries=$ac_optarg ;;
1215
1216 -*) as_fn_error "unrecognized option: \`$ac_option'
1217 Try \`$0 --help' for more information."
1218 ;;
1219
1220 *=*)
1221 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222 # Reject names that are not valid shell variable names.
1223 case $ac_envvar in #(
1224 '' | [0-9]* | *[!_$as_cr_alnum]* )
1225 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1226 esac
1227 eval $ac_envvar=\$ac_optarg
1228 export $ac_envvar ;;
1229
1230 *)
1231 # FIXME: should be removed in autoconf 3.0.
1232 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1233 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1235 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1236 ;;
1237
1238 esac
1239 done
1240
1241 if test -n "$ac_prev"; then
1242 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1243 as_fn_error "missing argument to $ac_option"
1244 fi
1245
1246 if test -n "$ac_unrecognized_opts"; then
1247 case $enable_option_checking in
1248 no) ;;
1249 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1250 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251 esac
1252 fi
1253
1254 # Check all directory arguments for consistency.
1255 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256 datadir sysconfdir sharedstatedir localstatedir includedir \
1257 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258 libdir localedir mandir
1259 do
1260 eval ac_val=\$$ac_var
1261 # Remove trailing slashes.
1262 case $ac_val in
1263 */ )
1264 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1265 eval $ac_var=\$ac_val;;
1266 esac
1267 # Be sure to have absolute directory names.
1268 case $ac_val in
1269 [\\/$]* | ?:[\\/]* ) continue;;
1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271 esac
1272 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1273 done
1274
1275 # There might be people who depend on the old broken behavior: `$host'
1276 # used to hold the argument of --host etc.
1277 # FIXME: To remove some day.
1278 build=$build_alias
1279 host=$host_alias
1280 target=$target_alias
1281
1282 # FIXME: To remove some day.
1283 if test "x$host_alias" != x; then
1284 if test "x$build_alias" = x; then
1285 cross_compiling=maybe
1286 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1287 If a cross compiler is detected then cross compile mode will be used." >&2
1288 elif test "x$build_alias" != "x$host_alias"; then
1289 cross_compiling=yes
1290 fi
1291 fi
1292
1293 ac_tool_prefix=
1294 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1295
1296 test "$silent" = yes && exec 6>/dev/null
1297
1298
1299 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1300 ac_ls_di=`ls -di .` &&
1301 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1302 as_fn_error "working directory cannot be determined"
1303 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1304 as_fn_error "pwd does not report name of working directory"
1305
1306
1307 # Find the source files, if location was not specified.
1308 if test -z "$srcdir"; then
1309 ac_srcdir_defaulted=yes
1310 # Try the directory containing this script, then the parent directory.
1311 ac_confdir=`$as_dirname -- "$as_myself" ||
1312 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1313 X"$as_myself" : 'X\(//\)[^/]' \| \
1314 X"$as_myself" : 'X\(//\)$' \| \
1315 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1316 $as_echo X"$as_myself" |
1317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1318 s//\1/
1319 q
1320 }
1321 /^X\(\/\/\)[^/].*/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\/\)$/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\).*/{
1330 s//\1/
1331 q
1332 }
1333 s/.*/./; q'`
1334 srcdir=$ac_confdir
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1336 srcdir=..
1337 fi
1338 else
1339 ac_srcdir_defaulted=no
1340 fi
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1343 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1344 fi
1345 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1346 ac_abs_confdir=`(
1347 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1348 pwd)`
1349 # When building in place, set srcdir=.
1350 if test "$ac_abs_confdir" = "$ac_pwd"; then
1351 srcdir=.
1352 fi
1353 # Remove unnecessary trailing slashes from srcdir.
1354 # Double slashes in file names in object file debugging info
1355 # mess up M-x gdb in Emacs.
1356 case $srcdir in
1357 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1358 esac
1359 for ac_var in $ac_precious_vars; do
1360 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_env_${ac_var}_value=\$${ac_var}
1362 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1364 done
1365
1366 #
1367 # Report the --help message.
1368 #
1369 if test "$ac_init_help" = "long"; then
1370 # Omit some internal or obsolete options to make the list less imposing.
1371 # This message is too long to be a string in the A/UX 3.1 sh.
1372 cat <<_ACEOF
1373 \`configure' configures Wine 1.1.30 to adapt to many kinds of systems.
1374
1375 Usage: $0 [OPTION]... [VAR=VALUE]...
1376
1377 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1378 VAR=VALUE. See below for descriptions of some of the useful variables.
1379
1380 Defaults for the options are specified in brackets.
1381
1382 Configuration:
1383 -h, --help display this help and exit
1384 --help=short display options specific to this package
1385 --help=recursive display the short help of all the included packages
1386 -V, --version display version information and exit
1387 -q, --quiet, --silent do not print \`checking...' messages
1388 --cache-file=FILE cache test results in FILE [disabled]
1389 -C, --config-cache alias for \`--cache-file=config.cache'
1390 -n, --no-create do not create output files
1391 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1392
1393 Installation directories:
1394 --prefix=PREFIX install architecture-independent files in PREFIX
1395 [$ac_default_prefix]
1396 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1397 [PREFIX]
1398
1399 By default, \`make install' will install all the files in
1400 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1401 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1402 for instance \`--prefix=\$HOME'.
1403
1404 For better control, use the options below.
1405
1406 Fine tuning of the installation directories:
1407 --bindir=DIR user executables [EPREFIX/bin]
1408 --sbindir=DIR system admin executables [EPREFIX/sbin]
1409 --libexecdir=DIR program executables [EPREFIX/libexec]
1410 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1411 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1412 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1413 --libdir=DIR object code libraries [EPREFIX/lib]
1414 --includedir=DIR C header files [PREFIX/include]
1415 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1416 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1417 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1418 --infodir=DIR info documentation [DATAROOTDIR/info]
1419 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1420 --mandir=DIR man documentation [DATAROOTDIR/man]
1421 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1422 --htmldir=DIR html documentation [DOCDIR]
1423 --dvidir=DIR dvi documentation [DOCDIR]
1424 --pdfdir=DIR pdf documentation [DOCDIR]
1425 --psdir=DIR ps documentation [DOCDIR]
1426 _ACEOF
1427
1428 cat <<\_ACEOF
1429
1430 X features:
1431 --x-includes=DIR X include files are in DIR
1432 --x-libraries=DIR X library files are in DIR
1433
1434 System types:
1435 --build=BUILD configure for building on BUILD [guessed]
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1437 _ACEOF
1438 fi
1439
1440 if test -n "$ac_init_help"; then
1441 case $ac_init_help in
1442 short | recursive ) echo "Configuration of Wine 1.1.30:";;
1443 esac
1444 cat <<\_ACEOF
1445
1446 Optional Features:
1447 --disable-option-checking ignore unrecognized --enable/--with options
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --disable-win16 do not include Win16 support
1451 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1452 binaries)
1453 --disable-tests do not build the regression tests
1454 --enable-maintainer-mode
1455 enable maintainer-specific build rules
1456 --disable-largefile omit support for large files
1457
1458 Optional Packages:
1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1461 --without-alsa do not use the Alsa sound support
1462 --without-audioio do not use the AudioIO sound support
1463 --without-capi do not use CAPI (ISDN support)
1464 --without-cms do not use CMS (color management support)
1465 --without-coreaudio do not use the CoreAudio sound support
1466 --without-cups do not use CUPS
1467 --without-curses do not use (n)curses
1468 --without-esd do not use the EsounD sound support
1469 --without-fontconfig do not use fontconfig
1470 --without-freetype do not use the FreeType library
1471 --without-gphoto do not use gphoto (Digital Camera support)
1472 --without-glu do not use the GLU library
1473 --without-gnutls do not use GnuTLS (schannel support)
1474 --without-gsm do not use libgsm (GSM 06.10 codec support)
1475 --without-hal do not use HAL (dynamic device support)
1476 --without-jack do not use the Jack sound support
1477 --without-jpeg do not use JPEG
1478 --without-ldap do not use LDAP
1479 --without-mpg123 do not use the mpg123 library
1480 --without-nas do not use the NAS sound support
1481 --without-openal do not use OpenAL
1482 --without-opengl do not use OpenGL
1483 --without-openssl do not use OpenSSL
1484 --without-oss do not use the OSS sound support
1485 --without-png do not use PNG
1486 --without-pthread do not use the pthread library
1487 --without-sane do not use SANE (scanner support)
1488 --without-xcomposite do not use the Xcomposite extension
1489 --without-xcursor do not use the Xcursor extension
1490 --without-xinerama do not use Xinerama (multi-monitor support)
1491 --without-xinput do not use the Xinput extension
1492 --without-xml do not use XML
1493 --without-xrandr do not use Xrandr (resolution changes)
1494 --without-xrender do not use the Xrender extension
1495 --without-xshape do not use the Xshape extension
1496 --without-xshm do not use XShm (shared memory extension)
1497 --without-xslt do not use XSLT
1498 --without-xxf86vm do not use XFree video mode extension
1499 --with-wine-tools=DIR use Wine tools from directory DIR
1500 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1501 --with-x use the X Window System
1502
1503 Some influential environment variables:
1504 CC C compiler command
1505 CFLAGS C compiler flags
1506 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1507 nonstandard directory <lib dir>
1508 LIBS libraries to pass to the linker, e.g. -l<library>
1509 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1510 you have headers in a nonstandard directory <include dir>
1511 CXX C++ compiler command
1512 CXXFLAGS C++ compiler flags
1513 CPP C preprocessor
1514 XMKMF Path to xmkmf, Makefile generator for X Window System
1515
1516 Use these variables to override the choices made by `configure' or to help
1517 it to find libraries and programs with nonstandard names/locations.
1518
1519 Report bugs to <wine-devel@winehq.org>.
1520 Wine home page: <http://www.winehq.org>.
1521 _ACEOF
1522 ac_status=$?
1523 fi
1524
1525 if test "$ac_init_help" = "recursive"; then
1526 # If there are subdirs, report their specific --help.
1527 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1528 test -d "$ac_dir" ||
1529 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1530 continue
1531 ac_builddir=.
1532
1533 case "$ac_dir" in
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *)
1536 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1537 # A ".." for each directory in $ac_dir_suffix.
1538 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1539 case $ac_top_builddir_sub in
1540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542 esac ;;
1543 esac
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1548
1549 case $srcdir in
1550 .) # We are building in place.
1551 ac_srcdir=.
1552 ac_top_srcdir=$ac_top_builddir_sub
1553 ac_abs_top_srcdir=$ac_pwd ;;
1554 [\\/]* | ?:[\\/]* ) # Absolute name.
1555 ac_srcdir=$srcdir$ac_dir_suffix;
1556 ac_top_srcdir=$srcdir
1557 ac_abs_top_srcdir=$srcdir ;;
1558 *) # Relative name.
1559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560 ac_top_srcdir=$ac_top_build_prefix$srcdir
1561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562 esac
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564
1565 cd "$ac_dir" || { ac_status=$?; continue; }
1566 # Check for guested configure.
1567 if test -f "$ac_srcdir/configure.gnu"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570 elif test -f "$ac_srcdir/configure"; then
1571 echo &&
1572 $SHELL "$ac_srcdir/configure" --help=recursive
1573 else
1574 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575 fi || ac_status=$?
1576 cd "$ac_pwd" || { ac_status=$?; break; }
1577 done
1578 fi
1579
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1582 cat <<\_ACEOF
1583 Wine configure 1.1.30
1584 generated by GNU Autoconf 2.64
1585
1586 Copyright (C) 2009 Free Software Foundation, Inc.
1587 This configure script is free software; the Free Software Foundation
1588 gives unlimited permission to copy, distribute and modify it.
1589 _ACEOF
1590 exit
1591 fi
1592
1593 ## ------------------------ ##
1594 ## Autoconf initialization. ##
1595 ## ------------------------ ##
1596
1597 # ac_fn_c_try_compile LINENO
1598 # --------------------------
1599 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1600 ac_fn_c_try_compile ()
1601 {
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 rm -f conftest.$ac_objext
1604 if { { ac_try="$ac_compile"
1605 case "(($ac_try" in
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607 *) ac_try_echo=$ac_try;;
1608 esac
1609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610 $as_echo "$ac_try_echo"; } >&5
1611 (eval "$ac_compile") 2>conftest.err
1612 ac_status=$?
1613 if test -s conftest.err; then
1614 grep -v '^ *+' conftest.err >conftest.er1
1615 cat conftest.er1 >&5
1616 mv -f conftest.er1 conftest.err
1617 fi
1618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619 test $ac_status = 0; } && {
1620 test -z "$ac_c_werror_flag" ||
1621 test ! -s conftest.err
1622 } && test -s conftest.$ac_objext; then :
1623 ac_retval=0
1624 else
1625 $as_echo "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1627
1628 ac_retval=1
1629 fi
1630 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1631 return $ac_retval
1632
1633 } # ac_fn_c_try_compile
1634
1635 # ac_fn_cxx_try_compile LINENO
1636 # ----------------------------
1637 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1638 ac_fn_cxx_try_compile ()
1639 {
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 rm -f conftest.$ac_objext
1642 if { { ac_try="$ac_compile"
1643 case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_compile") 2>conftest.err
1650 ac_status=$?
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1655 fi
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } && {
1658 test -z "$ac_cxx_werror_flag" ||
1659 test ! -s conftest.err
1660 } && test -s conftest.$ac_objext; then :
1661 ac_retval=0
1662 else
1663 $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1665
1666 ac_retval=1
1667 fi
1668 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669 return $ac_retval
1670
1671 } # ac_fn_cxx_try_compile
1672
1673 # ac_fn_c_try_link LINENO
1674 # -----------------------
1675 # Try to link conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_c_try_link ()
1677 {
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 rm -f conftest.$ac_objext conftest$ac_exeext
1680 if { { ac_try="$ac_link"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_link") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1693 fi
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && {
1696 test -z "$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 } && test -s conftest$ac_exeext && {
1699 test "$cross_compiling" = yes ||
1700 $as_test_x conftest$ac_exeext
1701 }; then :
1702 ac_retval=0
1703 else
1704 $as_echo "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1706
1707 ac_retval=1
1708 fi
1709 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1710 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1711 # interfere with the next link command; also delete a directory that is
1712 # left behind by Apple's compiler. We do this before executing the actions.
1713 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1714 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1715 return $ac_retval
1716
1717 } # ac_fn_c_try_link
1718
1719 # ac_fn_c_try_cpp LINENO
1720 # ----------------------
1721 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1722 ac_fn_c_try_cpp ()
1723 {
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if { { ac_try="$ac_cpp conftest.$ac_ext"
1726 case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1733 ac_status=$?
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1738 fi
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } >/dev/null && {
1741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1742 test ! -s conftest.err
1743 }; then :
1744 ac_retval=0
1745 else
1746 $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1748
1749 ac_retval=1
1750 fi
1751 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1752 return $ac_retval
1753
1754 } # ac_fn_c_try_cpp
1755
1756 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1757 # -------------------------------------------------------
1758 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1759 # the include files in INCLUDES and setting the cache variable VAR
1760 # accordingly.
1761 ac_fn_c_check_header_mongrel ()
1762 {
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766 $as_echo_n "checking for $2... " >&6; }
1767 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1768 $as_echo_n "(cached) " >&6
1769 fi
1770 eval ac_res=\$$3
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772 $as_echo "$ac_res" >&6; }
1773 else
1774 # Is the header compilable?
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1776 $as_echo_n "checking $2 usability... " >&6; }
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h. */
1779 $4
1780 #include <$2>
1781 _ACEOF
1782 if ac_fn_c_try_compile "$LINENO"; then :
1783 ac_header_compiler=yes
1784 else
1785 ac_header_compiler=no
1786 fi
1787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1789 $as_echo "$ac_header_compiler" >&6; }
1790
1791 # Is the header present?
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1793 $as_echo_n "checking $2 presence... " >&6; }
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1796 #include <$2>
1797 _ACEOF
1798 if ac_fn_c_try_cpp "$LINENO"; then :
1799 ac_header_preproc=yes
1800 else
1801 ac_header_preproc=no
1802 fi
1803 rm -f conftest.err conftest.$ac_ext
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1805 $as_echo "$ac_header_preproc" >&6; }
1806
1807 # So? What about this header?
1808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1809 yes:no: )
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1811 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1813 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1814 ;;
1815 no:yes:* )
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1817 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1819 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1821 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1823 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1825 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1826 ( cat <<\_ASBOX
1827 ## ------------------------------------ ##
1828 ## Report this to wine-devel@winehq.org ##
1829 ## ------------------------------------ ##
1830 _ASBOX
1831 ) | sed "s/^/$as_me: WARNING: /" >&2
1832 ;;
1833 esac
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1837 $as_echo_n "(cached) " >&6
1838 else
1839 eval "$3=\$ac_header_compiler"
1840 fi
1841 eval ac_res=\$$3
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 $as_echo "$ac_res" >&6; }
1844 fi
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846
1847 } # ac_fn_c_check_header_mongrel
1848
1849 # ac_fn_c_try_run LINENO
1850 # ----------------------
1851 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1852 # that executables *can* be run.
1853 ac_fn_c_try_run ()
1854 {
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 if { { ac_try="$ac_link"
1857 case "(($ac_try" in
1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1860 esac
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_link") 2>&5
1864 ac_status=$?
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1867 { { case "(($ac_try" in
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1870 esac
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_try") 2>&5
1874 ac_status=$?
1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; }; }; then :
1877 ac_retval=0
1878 else
1879 $as_echo "$as_me: program exited with status $ac_status" >&5
1880 $as_echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1882
1883 ac_retval=$ac_status
1884 fi
1885 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887 return $ac_retval
1888
1889 } # ac_fn_c_try_run
1890
1891 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1892 # -------------------------------------------------------
1893 # Tests whether HEADER exists and can be compiled using the include files in
1894 # INCLUDES, setting the cache variable VAR accordingly.
1895 ac_fn_c_check_header_compile ()
1896 {
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1901 $as_echo_n "(cached) " >&6
1902 else
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1905 $4
1906 #include <$2>
1907 _ACEOF
1908 if ac_fn_c_try_compile "$LINENO"; then :
1909 eval "$3=yes"
1910 else
1911 eval "$3=no"
1912 fi
1913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914 fi
1915 eval ac_res=\$$3
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 $as_echo "$ac_res" >&6; }
1918 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1919
1920 } # ac_fn_c_check_header_compile
1921
1922 # ac_fn_c_check_func LINENO FUNC VAR
1923 # ----------------------------------
1924 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1925 ac_fn_c_check_func ()
1926 {
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1931 $as_echo_n "(cached) " >&6
1932 else
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1935 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1937 #define $2 innocuous_$2
1938
1939 /* System header to define __stub macros and hopefully few prototypes,
1940 which can conflict with char $2 (); below.
1941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1942 <limits.h> exists even on freestanding compilers. */
1943
1944 #ifdef __STDC__
1945 # include <limits.h>
1946 #else
1947 # include <assert.h>
1948 #endif
1949
1950 #undef $2
1951
1952 /* Override any GCC internal prototype to avoid an error.
1953 Use char because int might match the return type of a GCC
1954 builtin and then its argument prototype would still apply. */
1955 #ifdef __cplusplus
1956 extern "C"
1957 #endif
1958 char $2 ();
1959 /* The GNU C library defines this for functions which it implements
1960 to always fail with ENOSYS. Some functions are actually named
1961 something starting with __ and the normal name is an alias. */
1962 #if defined __stub_$2 || defined __stub___$2
1963 choke me
1964 #endif
1965
1966 int
1967 main ()
1968 {
1969 return $2 ();
1970 ;
1971 return 0;
1972 }
1973 _ACEOF
1974 if ac_fn_c_try_link "$LINENO"; then :
1975 eval "$3=yes"
1976 else
1977 eval "$3=no"
1978 fi
1979 rm -f core conftest.err conftest.$ac_objext \
1980 conftest$ac_exeext conftest.$ac_ext
1981 fi
1982 eval ac_res=\$$3
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984 $as_echo "$ac_res" >&6; }
1985 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1986
1987 } # ac_fn_c_check_func
1988
1989 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1990 # ----------------------------------------------------
1991 # Tries to find if the field MEMBER exists in type AGGR, after including
1992 # INCLUDES, setting cache variable VAR accordingly.
1993 ac_fn_c_check_member ()
1994 {
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1997 $as_echo_n "checking for $2.$3... " >&6; }
1998 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1999 $as_echo_n "(cached) " >&6
2000 else
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2003 $5
2004 int
2005 main ()
2006 {
2007 static $2 ac_aggr;
2008 if (ac_aggr.$3)
2009 return 0;
2010 ;
2011 return 0;
2012 }
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015 eval "$4=yes"
2016 else
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2019 $5
2020 int
2021 main ()
2022 {
2023 static $2 ac_aggr;
2024 if (sizeof ac_aggr.$3)
2025 return 0;
2026 ;
2027 return 0;
2028 }
2029 _ACEOF
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031 eval "$4=yes"
2032 else
2033 eval "$4=no"
2034 fi
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 fi
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 fi
2039 eval ac_res=\$$4
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2043
2044 } # ac_fn_c_check_member
2045
2046 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2047 # -------------------------------------------
2048 # Tests whether TYPE exists after having included INCLUDES, setting cache
2049 # variable VAR accordingly.
2050 ac_fn_c_check_type ()
2051 {
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2054 $as_echo_n "checking for $2... " >&6; }
2055 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2056 $as_echo_n "(cached) " >&6
2057 else
2058 eval "$3=no"
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2061 $4
2062 int
2063 main ()
2064 {
2065 if (sizeof ($2))
2066 return 0;
2067 ;
2068 return 0;
2069 }
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2074 $4
2075 int
2076 main ()
2077 {
2078 if (sizeof (($2)))
2079 return 0;
2080 ;
2081 return 0;
2082 }
2083 _ACEOF
2084 if ac_fn_c_try_compile "$LINENO"; then :
2085
2086 else
2087 eval "$3=yes"
2088 fi
2089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090 fi
2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092 fi
2093 eval ac_res=\$$3
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2095 $as_echo "$ac_res" >&6; }
2096 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2097
2098 } # ac_fn_c_check_type
2099 cat >config.log <<_ACEOF
2100 This file contains any messages produced by compilers while
2101 running configure, to aid debugging if configure makes a mistake.
2102
2103 It was created by Wine $as_me 1.1.30, which was
2104 generated by GNU Autoconf 2.64. Invocation command line was
2105
2106 $ $0 $@
2107
2108 _ACEOF
2109 exec 5>>config.log
2110 {
2111 cat <<_ASUNAME
2112 ## --------- ##
2113 ## Platform. ##
2114 ## --------- ##
2115
2116 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2117 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2118 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2119 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2120 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2121
2122 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2123 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2124
2125 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2126 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2127 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2128 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2129 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2130 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2131 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2132
2133 _ASUNAME
2134
2135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136 for as_dir in $PATH
2137 do
2138 IFS=$as_save_IFS
2139 test -z "$as_dir" && as_dir=.
2140 $as_echo "PATH: $as_dir"
2141 done
2142 IFS=$as_save_IFS
2143
2144 } >&5
2145
2146 cat >&5 <<_ACEOF
2147
2148
2149 ## ----------- ##
2150 ## Core tests. ##
2151 ## ----------- ##
2152
2153 _ACEOF
2154
2155
2156 # Keep a trace of the command line.
2157 # Strip out --no-create and --no-recursion so they do not pile up.
2158 # Strip out --silent because we don't want to record it for future runs.
2159 # Also quote any args containing shell meta-characters.
2160 # Make two passes to allow for proper duplicate-argument suppression.
2161 ac_configure_args=
2162 ac_configure_args0=
2163 ac_configure_args1=
2164 ac_must_keep_next=false
2165 for ac_pass in 1 2
2166 do
2167 for ac_arg
2168 do
2169 case $ac_arg in
2170 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2172 | -silent | --silent | --silen | --sile | --sil)
2173 continue ;;
2174 *\'*)
2175 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2176 esac
2177 case $ac_pass in
2178 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2179 2)
2180 as_fn_append ac_configure_args1 " '$ac_arg'"
2181 if test $ac_must_keep_next = true; then
2182 ac_must_keep_next=false # Got value, back to normal.
2183 else
2184 case $ac_arg in
2185 *=* | --config-cache | -C | -disable-* | --disable-* \
2186 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2187 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2188 | -with-* | --with-* | -without-* | --without-* | --x)
2189 case "$ac_configure_args0 " in
2190 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2191 esac
2192 ;;
2193 -* ) ac_must_keep_next=true ;;
2194 esac
2195 fi
2196 as_fn_append ac_configure_args " '$ac_arg'"
2197 ;;
2198 esac
2199 done
2200 done
2201 { ac_configure_args0=; unset ac_configure_args0;}
2202 { ac_configure_args1=; unset ac_configure_args1;}
2203
2204 # When interrupted or exit'd, cleanup temporary files, and complete
2205 # config.log. We remove comments because anyway the quotes in there
2206 # would cause problems or look ugly.
2207 # WARNING: Use '\'' to represent an apostrophe within the trap.
2208 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2209 trap 'exit_status=$?
2210 # Save into config.log some information that might help in debugging.
2211 {
2212 echo
2213
2214 cat <<\_ASBOX
2215 ## ---------------- ##
2216 ## Cache variables. ##
2217 ## ---------------- ##
2218 _ASBOX
2219 echo
2220 # The following way of writing the cache mishandles newlines in values,
2221 (
2222 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2223 eval ac_val=\$$ac_var
2224 case $ac_val in #(
2225 *${as_nl}*)
2226 case $ac_var in #(
2227 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2228 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2229 esac
2230 case $ac_var in #(
2231 _ | IFS | as_nl) ;; #(
2232 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2233 *) { eval $ac_var=; unset $ac_var;} ;;
2234 esac ;;
2235 esac
2236 done
2237 (set) 2>&1 |
2238 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2239 *${as_nl}ac_space=\ *)
2240 sed -n \
2241 "s/'\''/'\''\\\\'\'''\''/g;
2242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2243 ;; #(
2244 *)
2245 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2246 ;;
2247 esac |
2248 sort
2249 )
2250 echo
2251
2252 cat <<\_ASBOX
2253 ## ----------------- ##
2254 ## Output variables. ##
2255 ## ----------------- ##
2256 _ASBOX
2257 echo
2258 for ac_var in $ac_subst_vars
2259 do
2260 eval ac_val=\$$ac_var
2261 case $ac_val in
2262 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2263 esac
2264 $as_echo "$ac_var='\''$ac_val'\''"
2265 done | sort
2266 echo
2267
2268 if test -n "$ac_subst_files"; then
2269 cat <<\_ASBOX
2270 ## ------------------- ##
2271 ## File substitutions. ##
2272 ## ------------------- ##
2273 _ASBOX
2274 echo
2275 for ac_var in $ac_subst_files
2276 do
2277 eval ac_val=\$$ac_var
2278 case $ac_val in
2279 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2280 esac
2281 $as_echo "$ac_var='\''$ac_val'\''"
2282 done | sort
2283 echo
2284 fi
2285
2286 if test -s confdefs.h; then
2287 cat <<\_ASBOX
2288 ## ----------- ##
2289 ## confdefs.h. ##
2290 ## ----------- ##
2291 _ASBOX
2292 echo
2293 cat confdefs.h
2294 echo
2295 fi
2296 test "$ac_signal" != 0 &&
2297 $as_echo "$as_me: caught signal $ac_signal"
2298 $as_echo "$as_me: exit $exit_status"
2299 } >&5
2300 rm -f core *.core core.conftest.* &&
2301 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2302 exit $exit_status
2303 ' 0
2304 for ac_signal in 1 2 13 15; do
2305 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2306 done
2307 ac_signal=0
2308
2309 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2310 rm -f -r conftest* confdefs.h
2311
2312 $as_echo "/* confdefs.h */" > confdefs.h
2313
2314 # Predefined preprocessor variables.
2315
2316 cat >>confdefs.h <<_ACEOF
2317 #define PACKAGE_NAME "$PACKAGE_NAME"
2318 _ACEOF
2319
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2322 _ACEOF
2323
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2326 _ACEOF
2327
2328 cat >>confdefs.h <<_ACEOF
2329 #define PACKAGE_STRING "$PACKAGE_STRING"
2330 _ACEOF
2331
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2334 _ACEOF
2335
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_URL "$PACKAGE_URL"
2338 _ACEOF
2339
2340
2341 # Let the site file select an alternate cache file if it wants to.
2342 # Prefer an explicitly selected file to automatically selected ones.
2343 ac_site_file1=NONE
2344 ac_site_file2=NONE
2345 if test -n "$CONFIG_SITE"; then
2346 ac_site_file1=$CONFIG_SITE
2347 elif test "x$prefix" != xNONE; then
2348 ac_site_file1=$prefix/share/config.site
2349 ac_site_file2=$prefix/etc/config.site
2350 else
2351 ac_site_file1=$ac_default_prefix/share/config.site
2352 ac_site_file2=$ac_default_prefix/etc/config.site
2353 fi
2354 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2355 do
2356 test "x$ac_site_file" = xNONE && continue
2357 if test -r "$ac_site_file"; then
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2359 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2360 sed 's/^/| /' "$ac_site_file" >&5
2361 . "$ac_site_file"
2362 fi
2363 done
2364
2365 if test -r "$cache_file"; then
2366 # Some versions of bash will fail to source /dev/null (special
2367 # files actually), so we avoid doing that.
2368 if test -f "$cache_file"; then
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2370 $as_echo "$as_me: loading cache $cache_file" >&6;}
2371 case $cache_file in
2372 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2373 *) . "./$cache_file";;
2374 esac
2375 fi
2376 else
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2378 $as_echo "$as_me: creating cache $cache_file" >&6;}
2379 >$cache_file
2380 fi
2381
2382 # Check that the precious variables saved in the cache have kept the same
2383 # value.
2384 ac_cache_corrupted=false
2385 for ac_var in $ac_precious_vars; do
2386 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2387 eval ac_new_set=\$ac_env_${ac_var}_set
2388 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2389 eval ac_new_val=\$ac_env_${ac_var}_value
2390 case $ac_old_set,$ac_new_set in
2391 set,)
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2393 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2394 ac_cache_corrupted=: ;;
2395 ,set)
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2397 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2398 ac_cache_corrupted=: ;;
2399 ,);;
2400 *)
2401 if test "x$ac_old_val" != "x$ac_new_val"; then
2402 # differences in whitespace do not lead to failure.
2403 ac_old_val_w=`echo x $ac_old_val`
2404 ac_new_val_w=`echo x $ac_new_val`
2405 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2407 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2408 ac_cache_corrupted=:
2409 else
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2411 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2412 eval $ac_var=\$ac_old_val
2413 fi
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2415 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2417 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2418 fi;;
2419 esac
2420 # Pass precious variables to config.status.
2421 if test "$ac_new_set" = set; then
2422 case $ac_new_val in
2423 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2424 *) ac_arg=$ac_var=$ac_new_val ;;
2425 esac
2426 case " $ac_configure_args " in
2427 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2428 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2429 esac
2430 fi
2431 done
2432 if $ac_cache_corrupted; then
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2436 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2437 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2438 fi
2439 ## -------------------- ##
2440 ## Main body of script. ##
2441 ## -------------------- ##
2442
2443 ac_ext=c
2444 ac_cpp='$CPP $CPPFLAGS'
2445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2448
2449
2450
2451 ac_config_headers="$ac_config_headers include/config.h"
2452
2453 ac_aux_dir=
2454 for ac_dir in tools "$srcdir"/tools; do
2455 for ac_t in install-sh install.sh shtool; do
2456 if test -f "$ac_dir/$ac_t"; then
2457 ac_aux_dir=$ac_dir
2458 ac_install_sh="$ac_aux_dir/$ac_t -c"
2459 break 2
2460 fi
2461 done
2462 done
2463 if test -z "$ac_aux_dir"; then
2464 as_fn_error "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2465 fi
2466
2467 # These three variables are undocumented and unsupported,
2468 # and are intended to be withdrawn in a future Autoconf release.
2469 # They can cause serious problems if a builder's source tree is in a directory
2470 # whose full name contains unusual characters.
2471 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2472 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2473 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2474
2475
2476
2477
2478 # Check whether --enable-win16 was given.
2479 if test "${enable_win16+set}" = set; then :
2480 enableval=$enable_win16;
2481 fi
2482
2483 # Check whether --enable-win64 was given.
2484 if test "${enable_win64+set}" = set; then :
2485 enableval=$enable_win64;
2486 fi
2487
2488 # Check whether --enable-tests was given.
2489 if test "${enable_tests+set}" = set; then :
2490 enableval=$enable_tests;
2491 fi
2492
2493 # Check whether --enable-maintainer-mode was given.
2494 if test "${enable_maintainer_mode+set}" = set; then :
2495 enableval=$enable_maintainer_mode;
2496 else
2497 MAINTAINER_MODE=\#
2498
2499 fi
2500
2501
2502
2503 # Check whether --with-alsa was given.
2504 if test "${with_alsa+set}" = set; then :
2505 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2506 fi
2507
2508
2509 # Check whether --with-audioio was given.
2510 if test "${with_audioio+set}" = set; then :
2511 withval=$with_audioio; if test "x$withval" = "xno"; then ac_cv_header_libaudioio_h=no; fi
2512 fi
2513
2514
2515 # Check whether --with-capi was given.
2516 if test "${with_capi+set}" = set; then :
2517 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2518 fi
2519
2520
2521 # Check whether --with-cms was given.
2522 if test "${with_cms+set}" = set; then :
2523 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2524 fi
2525
2526
2527 # Check whether --with-coreaudio was given.
2528 if test "${with_coreaudio+set}" = set; then :
2529 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2530 fi
2531
2532
2533 # Check whether --with-cups was given.
2534 if test "${with_cups+set}" = set; then :
2535 withval=$with_cups;
2536 fi
2537
2538
2539 # Check whether --with-curses was given.
2540 if test "${with_curses+set}" = set; then :
2541 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2542 fi
2543
2544
2545 # Check whether --with-esd was given.
2546 if test "${with_esd+set}" = set; then :
2547 withval=$with_esd;
2548 fi
2549
2550
2551 # Check whether --with-fontconfig was given.
2552 if test "${with_fontconfig+set}" = set; then :
2553 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2554 fi
2555
2556
2557 # Check whether --with-freetype was given.
2558 if test "${with_freetype+set}" = set; then :
2559 withval=$with_freetype;
2560 fi
2561
2562
2563 # Check whether --with-gphoto was given.
2564 if test "${with_gphoto+set}" = set; then :
2565 withval=$with_gphoto;
2566 fi
2567
2568
2569 # Check whether --with-glu was given.
2570 if test "${with_glu+set}" = set; then :
2571 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2572 fi
2573
2574
2575 # Check whether --with-gnutls was given.
2576 if test "${with_gnutls+set}" = set; then :
2577 withval=$with_gnutls;
2578 fi
2579
2580
2581 # Check whether --with-gsm was given.
2582 if test "${with_gsm+set}" = set; then :
2583 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2584 fi
2585
2586
2587 # Check whether --with-hal was given.
2588 if test "${with_hal+set}" = set; then :
2589 withval=$with_hal;
2590 fi
2591
2592
2593 # Check whether --with-jack was given.
2594 if test "${with_jack+set}" = set; then :
2595 withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2596 fi
2597
2598
2599 # Check whether --with-jpeg was given.
2600 if test "${with_jpeg+set}" = set; then :
2601 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2602 fi
2603
2604
2605 # Check whether --with-ldap was given.
2606 if test "${with_ldap+set}" = set; then :
2607 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2608 fi
2609
2610
2611 # Check whether --with-mpg123 was given.
2612 if test "${with_mpg123+set}" = set; then :
2613 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2614 fi
2615
2616
2617 # Check whether --with-nas was given.
2618 if test "${with_nas+set}" = set; then :
2619 withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2620 fi
2621
2622
2623 # Check whether --with-openal was given.
2624 if test "${with_openal+set}" = set; then :
2625 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2626 fi
2627
2628
2629 # Check whether --with-opengl was given.
2630 if test "${with_opengl+set}" = set; then :
2631 withval=$with_opengl;
2632 fi
2633
2634
2635 # Check whether --with-openssl was given.
2636 if test "${with_openssl+set}" = set; then :
2637 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2638 fi
2639
2640
2641 # Check whether --with-oss was given.
2642 if test "${with_oss+set}" = set; then :
2643 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
2644 fi
2645
2646
2647 # Check whether --with-png was given.
2648 if test "${with_png+set}" = set; then :
2649 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2650 fi
2651
2652
2653 # Check whether --with-pthread was given.
2654 if test "${with_pthread+set}" = set; then :
2655 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2656 fi
2657
2658
2659 # Check whether --with-sane was given.
2660 if test "${with_sane+set}" = set; then :
2661 withval=$with_sane;
2662 fi
2663
2664
2665 # Check whether --with-xcomposite was given.
2666 if test "${with_xcomposite+set}" = set; then :
2667 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2668 fi
2669
2670
2671 # Check whether --with-xcursor was given.
2672 if test "${with_xcursor+set}" = set; then :
2673 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2674 fi
2675
2676
2677 # Check whether --with-xinerama was given.
2678 if test "${with_xinerama+set}" = set; then :
2679 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2680 fi
2681
2682
2683 # Check whether --with-xinput was given.
2684 if test "${with_xinput+set}" = set; then :
2685 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2686 fi
2687
2688
2689 # Check whether --with-xml was given.
2690 if test "${with_xml+set}" = set; then :
2691 withval=$with_xml;
2692 fi
2693
2694
2695 # Check whether --with-xrandr was given.
2696 if test "${with_xrandr+set}" = set; then :
2697 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2698 fi
2699
2700
2701 # Check whether --with-xrender was given.
2702 if test "${with_xrender+set}" = set; then :
2703 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2704 fi
2705
2706
2707 # Check whether --with-xshape was given.
2708 if test "${with_xshape+set}" = set; then :
2709 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2710 fi
2711
2712
2713 # Check whether --with-xshm was given.
2714 if test "${with_xshm+set}" = set; then :
2715 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2716 fi
2717
2718
2719 # Check whether --with-xslt was given.
2720 if test "${with_xslt+set}" = set; then :
2721 withval=$with_xslt;
2722 fi
2723
2724
2725 # Check whether --with-xxf86vm was given.
2726 if test "${with_xxf86vm+set}" = set; then :
2727 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
2728 fi
2729
2730
2731
2732 # Check whether --with-wine-tools was given.
2733 if test "${with_wine_tools+set}" = set; then :
2734 withval=$with_wine_tools;
2735 fi
2736
2737
2738 # Check whether --with-wine64 was given.
2739 if test "${with_wine64+set}" = set; then :
2740 withval=$with_wine64;
2741 fi
2742
2743
2744 # Make sure we can run config.sub.
2745 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2746 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2747
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2749 $as_echo_n "checking build system type... " >&6; }
2750 if test "${ac_cv_build+set}" = set; then :
2751 $as_echo_n "(cached) " >&6
2752 else
2753 ac_build_alias=$build_alias
2754 test "x$ac_build_alias" = x &&
2755 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2756 test "x$ac_build_alias" = x &&
2757 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2758 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2759 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2760
2761 fi
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2763 $as_echo "$ac_cv_build" >&6; }
2764 case $ac_cv_build in
2765 *-*-*) ;;
2766 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2767 esac
2768 build=$ac_cv_build
2769 ac_save_IFS=$IFS; IFS='-'
2770 set x $ac_cv_build
2771 shift
2772 build_cpu=$1
2773 build_vendor=$2
2774 shift; shift
2775 # Remember, the first character of IFS is used to create $*,
2776 # except with old shells:
2777 build_os=$*
2778 IFS=$ac_save_IFS
2779 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2780
2781
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2783 $as_echo_n "checking host system type... " >&6; }
2784 if test "${ac_cv_host+set}" = set; then :
2785 $as_echo_n "(cached) " >&6
2786 else
2787 if test "x$host_alias" = x; then
2788 ac_cv_host=$ac_cv_build
2789 else
2790 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2791 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2792 fi
2793
2794 fi
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2796 $as_echo "$ac_cv_host" >&6; }
2797 case $ac_cv_host in
2798 *-*-*) ;;
2799 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2800 esac
2801 host=$ac_cv_host
2802 ac_save_IFS=$IFS; IFS='-'
2803 set x $ac_cv_host
2804 shift
2805 host_cpu=$1
2806 host_vendor=$2
2807 shift; shift
2808 # Remember, the first character of IFS is used to create $*,
2809 # except with old shells:
2810 host_os=$*
2811 IFS=$ac_save_IFS
2812 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2813
2814
2815
2816 case "$srcdir" in
2817 .) ;;
2818 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2819 as_fn_error "you are building out of the source tree, but the source tree contains object files.
2820 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2821 fi ;;
2822 esac
2823
2824
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2826 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2827 set x ${MAKE-make}
2828 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2829 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2830 $as_echo_n "(cached) " >&6
2831 else
2832 cat >conftest.make <<\_ACEOF
2833 SHELL = /bin/sh
2834 all:
2835 @echo '@@@%%%=$(MAKE)=@@@%%%'
2836 _ACEOF
2837 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2838 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2839 *@@@%%%=?*=@@@%%%*)
2840 eval ac_cv_prog_make_${ac_make}_set=yes;;
2841 *)
2842 eval ac_cv_prog_make_${ac_make}_set=no;;
2843 esac
2844 rm -f conftest.make
2845 fi
2846 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2848 $as_echo "yes" >&6; }
2849 SET_MAKE=
2850 else
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2852 $as_echo "no" >&6; }
2853 SET_MAKE="MAKE=${MAKE-make}"
2854 fi
2855
2856 ac_ext=c
2857 ac_cpp='$CPP $CPPFLAGS'
2858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2861 if test -n "$ac_tool_prefix"; then
2862 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2863 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if test "${ac_cv_prog_CC+set}" = set; then :
2867 $as_echo_n "(cached) " >&6
2868 else
2869 if test -n "$CC"; then
2870 ac_cv_prog_CC="$CC" # Let the user override the test.
2871 else
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2874 do
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2879 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 break 2
2882 fi
2883 done
2884 done
2885 IFS=$as_save_IFS
2886
2887 fi
2888 fi
2889 CC=$ac_cv_prog_CC
2890 if test -n "$CC"; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2892 $as_echo "$CC" >&6; }
2893 else
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2896 fi
2897
2898
2899 fi
2900 if test -z "$ac_cv_prog_CC"; then
2901 ac_ct_CC=$CC
2902 # Extract the first word of "gcc", so it can be a program name with args.
2903 set dummy gcc; ac_word=$2
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 $as_echo_n "checking for $ac_word... " >&6; }
2906 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2907 $as_echo_n "(cached) " >&6
2908 else
2909 if test -n "$ac_ct_CC"; then
2910 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2911 else
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH
2914 do
2915 IFS=$as_save_IFS
2916 test -z "$as_dir" && as_dir=.
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2919 ac_cv_prog_ac_ct_CC="gcc"
2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 break 2
2922 fi
2923 done
2924 done
2925 IFS=$as_save_IFS
2926
2927 fi
2928 fi
2929 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2930 if test -n "$ac_ct_CC"; then
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2932 $as_echo "$ac_ct_CC" >&6; }
2933 else
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2936 fi
2937
2938 if test "x$ac_ct_CC" = x; then
2939 CC=""
2940 else
2941 case $cross_compiling:$ac_tool_warned in
2942 yes:)
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2945 ac_tool_warned=yes ;;
2946 esac
2947 CC=$ac_ct_CC
2948 fi
2949 else
2950 CC="$ac_cv_prog_CC"
2951 fi
2952
2953 if test -z "$CC"; then
2954 if test -n "$ac_tool_prefix"; then
2955 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2956 set dummy ${ac_tool_prefix}cc; ac_word=$2
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if test "${ac_cv_prog_CC+set}" = set; then :
2960 $as_echo_n "(cached) " >&6
2961 else
2962 if test -n "$CC"; then
2963 ac_cv_prog_CC="$CC" # Let the user override the test.
2964 else
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2967 do
2968 IFS=$as_save_IFS
2969 test -z "$as_dir" && as_dir=.
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2972 ac_cv_prog_CC="${ac_tool_prefix}cc"
2973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2974 break 2
2975 fi
2976 done
2977 done
2978 IFS=$as_save_IFS
2979
2980 fi
2981 fi
2982 CC=$ac_cv_prog_CC
2983 if test -n "$CC"; then
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2985 $as_echo "$CC" >&6; }
2986 else
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2989 fi
2990
2991
2992 fi
2993 fi
2994 if test -z "$CC"; then
2995 # Extract the first word of "cc", so it can be a program name with args.
2996 set dummy cc; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if test "${ac_cv_prog_CC+set}" = set; then :
3000 $as_echo_n "(cached) " >&6
3001 else
3002 if test -n "$CC"; then
3003 ac_cv_prog_CC="$CC" # Let the user override the test.
3004 else
3005 ac_prog_rejected=no
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 for as_dir in $PATH
3008 do
3009 IFS=$as_save_IFS
3010 test -z "$as_dir" && as_dir=.
3011 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3013 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3014 ac_prog_rejected=yes
3015 continue
3016 fi
3017 ac_cv_prog_CC="cc"
3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 break 2
3020 fi
3021 done
3022 done
3023 IFS=$as_save_IFS
3024
3025 if test $ac_prog_rejected = yes; then
3026 # We found a bogon in the path, so make sure we never use it.
3027 set dummy $ac_cv_prog_CC
3028 shift
3029 if test $# != 0; then
3030 # We chose a different compiler from the bogus one.
3031 # However, it has the same basename, so the bogon will be chosen
3032 # first if we set CC to just the basename; use the full file name.
3033 shift
3034 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3035 fi
3036 fi
3037 fi
3038 fi
3039 CC=$ac_cv_prog_CC
3040 if test -n "$CC"; then
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3042 $as_echo "$CC" >&6; }
3043 else
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045 $as_echo "no" >&6; }
3046 fi
3047
3048
3049 fi
3050 if test -z "$CC"; then
3051 if test -n "$ac_tool_prefix"; then
3052 for ac_prog in cl.exe
3053 do
3054 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3055 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057 $as_echo_n "checking for $ac_word... " >&6; }
3058 if test "${ac_cv_prog_CC+set}" = set; then :
3059 $as_echo_n "(cached) " >&6
3060 else
3061 if test -n "$CC"; then
3062 ac_cv_prog_CC="$CC" # Let the user override the test.
3063 else
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 for as_dir in $PATH
3066 do
3067 IFS=$as_save_IFS
3068 test -z "$as_dir" && as_dir=.
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073 break 2
3074 fi
3075 done
3076 done
3077 IFS=$as_save_IFS
3078
3079 fi
3080 fi
3081 CC=$ac_cv_prog_CC
3082 if test -n "$CC"; then
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3084 $as_echo "$CC" >&6; }
3085 else
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087 $as_echo "no" >&6; }
3088 fi
3089
3090
3091 test -n "$CC" && break
3092 done
3093 fi
3094 if test -z "$CC"; then
3095 ac_ct_CC=$CC
3096 for ac_prog in cl.exe
3097 do
3098 # Extract the first word of "$ac_prog", so it can be a program name with args.
3099 set dummy $ac_prog; ac_word=$2
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101 $as_echo_n "checking for $ac_word... " >&6; }
3102 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3103 $as_echo_n "(cached) " >&6
3104 else
3105 if test -n "$ac_ct_CC"; then
3106 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3107 else
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH
3110 do
3111 IFS=$as_save_IFS
3112 test -z "$as_dir" && as_dir=.
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3115 ac_cv_prog_ac_ct_CC="$ac_prog"
3116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 break 2
3118 fi
3119 done
3120 done
3121 IFS=$as_save_IFS
3122
3123 fi
3124 fi
3125 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3126 if test -n "$ac_ct_CC"; then
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3128 $as_echo "$ac_ct_CC" >&6; }
3129 else
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131 $as_echo "no" >&6; }
3132 fi
3133
3134
3135 test -n "$ac_ct_CC" && break
3136 done
3137
3138 if test "x$ac_ct_CC" = x; then
3139 CC=""
3140 else
3141 case $cross_compiling:$ac_tool_warned in
3142 yes:)
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3145 ac_tool_warned=yes ;;
3146 esac
3147 CC=$ac_ct_CC
3148 fi
3149 fi
3150
3151 fi
3152
3153
3154 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3156 as_fn_error "no acceptable C compiler found in \$PATH
3157 See \`config.log' for more details." "$LINENO" 5; }
3158
3159 # Provide some information about the compiler.
3160 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3161 set X $ac_compile
3162 ac_compiler=$2
3163 for ac_option in --version -v -V -qversion; do
3164 { { ac_try="$ac_compiler $ac_option >&5"
3165 case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168 esac
3169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3170 $as_echo "$ac_try_echo"; } >&5
3171 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3172 ac_status=$?
3173 if test -s conftest.err; then
3174 sed '10a\
3175 ... rest of stderr output deleted ...
3176 10q' conftest.err >conftest.er1
3177 cat conftest.er1 >&5
3178 rm -f conftest.er1 conftest.err
3179 fi
3180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3181 test $ac_status = 0; }
3182 done
3183
3184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3185 /* end confdefs.h. */
3186 #include <stdio.h>
3187 int
3188 main ()
3189 {
3190 FILE *f = fopen ("conftest.out", "w");
3191 return ferror (f) || fclose (f) != 0;
3192
3193 ;
3194 return 0;
3195 }
3196 _ACEOF
3197 ac_clean_files_save=$ac_clean_files
3198 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3199 # Try to create an executable without -o first, disregard a.out.
3200 # It will help us diagnose broken compilers, and finding out an intuition
3201 # of exeext.
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3203 $as_echo_n "checking for C compiler default output file name... " >&6; }
3204 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3205
3206 # The possible output files:
3207 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3208
3209 ac_rmfiles=
3210 for ac_file in $ac_files
3211 do
3212 case $ac_file in
3213 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3214 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3215 esac
3216 done
3217 rm -f $ac_rmfiles
3218
3219 if { { ac_try="$ac_link_default"
3220 case "(($ac_try" in
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3223 esac
3224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3225 $as_echo "$ac_try_echo"; } >&5
3226 (eval "$ac_link_default") 2>&5
3227 ac_status=$?
3228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3229 test $ac_status = 0; }; then :
3230 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3231 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3232 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3233 # so that the user can short-circuit this test for compilers unknown to
3234 # Autoconf.
3235 for ac_file in $ac_files ''
3236 do
3237 test -f "$ac_file" || continue
3238 case $ac_file in
3239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3240 ;;
3241 [ab].out )
3242 # We found the default executable, but exeext='' is most
3243 # certainly right.
3244 break;;
3245 *.* )
3246 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3247 then :; else
3248 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3249 fi
3250 # We set ac_cv_exeext here because the later test for it is not
3251 # safe: cross compilers may not add the suffix if given an `-o'
3252 # argument, so we may need to know it at that point already.
3253 # Even if this section looks crufty: it has the advantage of
3254 # actually working.
3255 break;;
3256 * )
3257 break;;
3258 esac
3259 done
3260 test "$ac_cv_exeext" = no && ac_cv_exeext=
3261
3262 else
3263 ac_file=''
3264 fi
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3266 $as_echo "$ac_file" >&6; }
3267 if test -z "$ac_file"; then :
3268 $as_echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.$ac_ext >&5
3270
3271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3273 { as_fn_set_status 77
3274 as_fn_error "C compiler cannot create executables
3275 See \`config.log' for more details." "$LINENO" 5; }; }
3276 fi
3277 ac_exeext=$ac_cv_exeext
3278
3279 # Check that the compiler produces executables we can run. If not, either
3280 # the compiler is broken, or we cross compile.
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3282 $as_echo_n "checking whether the C compiler works... " >&6; }
3283 # If not cross compiling, check that we can run a simple program.
3284 if test "$cross_compiling" != yes; then
3285 if { ac_try='./$ac_file'
3286 { { case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3289 esac
3290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3291 $as_echo "$ac_try_echo"; } >&5
3292 (eval "$ac_try") 2>&5
3293 ac_status=$?
3294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3295 test $ac_status = 0; }; }; then
3296 cross_compiling=no
3297 else
3298 if test "$cross_compiling" = maybe; then
3299 cross_compiling=yes
3300 else
3301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3303 as_fn_error "cannot run C compiled programs.
3304 If you meant to cross compile, use \`--host'.
3305 See \`config.log' for more details." "$LINENO" 5; }
3306 fi
3307 fi
3308 fi
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3310 $as_echo "yes" >&6; }
3311
3312 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3313 ac_clean_files=$ac_clean_files_save
3314 # Check that the compiler produces executables we can run. If not, either
3315 # the compiler is broken, or we cross compile.
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3317 $as_echo_n "checking whether we are cross compiling... " >&6; }
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3319 $as_echo "$cross_compiling" >&6; }
3320
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3322 $as_echo_n "checking for suffix of executables... " >&6; }
3323 if { { ac_try="$ac_link"
3324 case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327 esac
3328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329 $as_echo "$ac_try_echo"; } >&5
3330 (eval "$ac_link") 2>&5
3331 ac_status=$?
3332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333 test $ac_status = 0; }; then :
3334 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3335 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3336 # work properly (i.e., refer to `conftest.exe'), while it won't with
3337 # `rm'.
3338 for ac_file in conftest.exe conftest conftest.*; do
3339 test -f "$ac_file" || continue
3340 case $ac_file in
3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3342 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3343 break;;
3344 * ) break;;
3345 esac
3346 done
3347 else
3348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3350 as_fn_error "cannot compute suffix of executables: cannot compile and link
3351 See \`config.log' for more details." "$LINENO" 5; }
3352 fi
3353 rm -f conftest$ac_cv_exeext
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3355 $as_echo "$ac_cv_exeext" >&6; }
3356
3357 rm -f conftest.$ac_ext
3358 EXEEXT=$ac_cv_exeext
3359 ac_exeext=$EXEEXT
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3361 $as_echo_n "checking for suffix of object files... " >&6; }
3362 if test "${ac_cv_objext+set}" = set; then :
3363 $as_echo_n "(cached) " >&6
3364 else
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3367
3368 int
3369 main ()
3370 {
3371
3372 ;
3373 return 0;
3374 }
3375 _ACEOF
3376 rm -f conftest.o conftest.obj
3377 if { { ac_try="$ac_compile"
3378 case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381 esac
3382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383 $as_echo "$ac_try_echo"; } >&5
3384 (eval "$ac_compile") 2>&5
3385 ac_status=$?
3386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3387 test $ac_status = 0; }; then :
3388 for ac_file in conftest.o conftest.obj conftest.*; do
3389 test -f "$ac_file" || continue;
3390 case $ac_file in
3391 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3392 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3393 break;;
3394 esac
3395 done
3396 else
3397 $as_echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3402 as_fn_error "cannot compute suffix of object files: cannot compile
3403 See \`config.log' for more details." "$LINENO" 5; }
3404 fi
3405 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3406 fi
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3408 $as_echo "$ac_cv_objext" >&6; }
3409 OBJEXT=$ac_cv_objext
3410 ac_objext=$OBJEXT
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3412 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3413 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3414 $as_echo_n "(cached) " >&6
3415 else
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3418
3419 int
3420 main ()
3421 {
3422 #ifndef __GNUC__
3423 choke me
3424 #endif
3425
3426 ;
3427 return 0;
3428 }
3429 _ACEOF
3430 if ac_fn_c_try_compile "$LINENO"; then :
3431 ac_compiler_gnu=yes
3432 else
3433 ac_compiler_gnu=no
3434 fi
3435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3436 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3437
3438 fi
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3440 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3441 if test $ac_compiler_gnu = yes; then
3442 GCC=yes
3443 else
3444 GCC=
3445 fi
3446 ac_test_CFLAGS=${CFLAGS+set}
3447 ac_save_CFLAGS=$CFLAGS
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3449 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3450 if test "${ac_cv_prog_cc_g+set}" = set; then :
3451 $as_echo_n "(cached) " >&6
3452 else
3453 ac_save_c_werror_flag=$ac_c_werror_flag
3454 ac_c_werror_flag=yes
3455 ac_cv_prog_cc_g=no
3456 CFLAGS="-g"
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h. */
3459
3460 int
3461 main ()
3462 {
3463
3464 ;
3465 return 0;
3466 }
3467 _ACEOF
3468 if ac_fn_c_try_compile "$LINENO"; then :
3469 ac_cv_prog_cc_g=yes
3470 else
3471 CFLAGS=""
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3474
3475 int
3476 main ()
3477 {
3478
3479 ;
3480 return 0;
3481 }
3482 _ACEOF
3483 if ac_fn_c_try_compile "$LINENO"; then :
3484
3485 else
3486 ac_c_werror_flag=$ac_save_c_werror_flag
3487 CFLAGS="-g"
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3490
3491 int
3492 main ()
3493 {
3494
3495 ;
3496 return 0;
3497 }
3498 _ACEOF
3499 if ac_fn_c_try_compile "$LINENO"; then :
3500 ac_cv_prog_cc_g=yes
3501 fi
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 fi
3504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505 fi
3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507 ac_c_werror_flag=$ac_save_c_werror_flag
3508 fi
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3510 $as_echo "$ac_cv_prog_cc_g" >&6; }
3511 if test "$ac_test_CFLAGS" = set; then
3512 CFLAGS=$ac_save_CFLAGS
3513 elif test $ac_cv_prog_cc_g = yes; then
3514 if test "$GCC" = yes; then
3515 CFLAGS="-g -O2"
3516 else
3517 CFLAGS="-g"
3518 fi
3519 else
3520 if test "$GCC" = yes; then
3521 CFLAGS="-O2"
3522 else
3523 CFLAGS=
3524 fi
3525 fi
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3527 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3528 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3529 $as_echo_n "(cached) " >&6
3530 else
3531 ac_cv_prog_cc_c89=no
3532 ac_save_CC=$CC
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3535 #include <stdarg.h>
3536 #include <stdio.h>
3537 #include <sys/types.h>
3538 #include <sys/stat.h>
3539 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3540 struct buf { int x; };
3541 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3542 static char *e (p, i)
3543 char **p;
3544 int i;
3545 {
3546 return p[i];
3547 }
3548 static char *f (char * (*g) (char **, int), char **p, ...)
3549 {
3550 char *s;
3551 va_list v;
3552 va_start (v,p);
3553 s = g (p, va_arg (v,int));
3554 va_end (v);
3555 return s;
3556 }
3557
3558 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3559 function prototypes and stuff, but not '\xHH' hex character constants.
3560 These don't provoke an error unfortunately, instead are silently treated
3561 as 'x'. The following induces an error, until -std is added to get
3562 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3563 array size at least. It's necessary to write '\x00'==0 to get something
3564 that's true only with -std. */
3565 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3566
3567 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3568 inside strings and character constants. */
3569 #define FOO(x) 'x'
3570 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3571
3572 int test (int i, double x);
3573 struct s1 {int (*f) (int a);};
3574 struct s2 {int (*f) (double a);};
3575 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3576 int argc;
3577 char **argv;
3578 int
3579 main ()
3580 {
3581 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3582 ;
3583 return 0;
3584 }
3585 _ACEOF
3586 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3587 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3588 do
3589 CC="$ac_save_CC $ac_arg"
3590 if ac_fn_c_try_compile "$LINENO"; then :
3591 ac_cv_prog_cc_c89=$ac_arg
3592 fi
3593 rm -f core conftest.err conftest.$ac_objext
3594 test "x$ac_cv_prog_cc_c89" != "xno" && break
3595 done
3596 rm -f conftest.$ac_ext
3597 CC=$ac_save_CC
3598
3599 fi
3600 # AC_CACHE_VAL
3601 case "x$ac_cv_prog_cc_c89" in
3602 x)
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3604 $as_echo "none needed" >&6; } ;;
3605 xno)
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3607 $as_echo "unsupported" >&6; } ;;
3608 *)
3609 CC="$CC $ac_cv_prog_cc_c89"
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3611 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3612 esac
3613 if test "x$ac_cv_prog_cc_c89" != xno; then :
3614
3615 fi
3616
3617 ac_ext=c
3618 ac_cpp='$CPP $CPPFLAGS'
3619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3622
3623 ac_ext=cpp
3624 ac_cpp='$CXXCPP $CPPFLAGS'
3625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3628 if test -z "$CXX"; then
3629 if test -n "$CCC"; then
3630 CXX=$CCC
3631 else
3632 if test -n "$ac_tool_prefix"; then
3633 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3634 do
3635 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3636 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3638 $as_echo_n "checking for $ac_word... " >&6; }
3639 if test "${ac_cv_prog_CXX+set}" = set; then :
3640 $as_echo_n "(cached) " >&6
3641 else
3642 if test -n "$CXX"; then
3643 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3644 else
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 for as_dir in $PATH
3647 do
3648 IFS=$as_save_IFS
3649 test -z "$as_dir" && as_dir=.
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3652 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3654 break 2
3655 fi
3656 done
3657 done
3658 IFS=$as_save_IFS
3659
3660 fi
3661 fi
3662 CXX=$ac_cv_prog_CXX
3663 if test -n "$CXX"; then
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3665 $as_echo "$CXX" >&6; }
3666 else
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668 $as_echo "no" >&6; }
3669 fi
3670
3671
3672 test -n "$CXX" && break
3673 done
3674 fi
3675 if test -z "$CXX"; then
3676 ac_ct_CXX=$CXX
3677 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3678 do
3679 # Extract the first word of "$ac_prog", so it can be a program name with args.
3680 set dummy $ac_prog; ac_word=$2
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3682 $as_echo_n "checking for $ac_word... " >&6; }
3683 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3684 $as_echo_n "(cached) " >&6
3685 else
3686 if test -n "$ac_ct_CXX"; then
3687 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3688 else
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 for as_dir in $PATH
3691 do
3692 IFS=$as_save_IFS
3693 test -z "$as_dir" && as_dir=.
3694 for ac_exec_ext in '' $ac_executable_extensions; do
3695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3696 ac_cv_prog_ac_ct_CXX="$ac_prog"
3697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3698 break 2
3699 fi
3700 done
3701 done
3702 IFS=$as_save_IFS
3703
3704 fi
3705 fi
3706 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3707 if test -n "$ac_ct_CXX"; then
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3709 $as_echo "$ac_ct_CXX" >&6; }
3710 else
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712 $as_echo "no" >&6; }
3713 fi
3714
3715
3716 test -n "$ac_ct_CXX" && break
3717 done
3718
3719 if test "x$ac_ct_CXX" = x; then
3720 CXX="g++"
3721 else
3722 case $cross_compiling:$ac_tool_warned in
3723 yes:)
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3726 ac_tool_warned=yes ;;
3727 esac
3728 CXX=$ac_ct_CXX
3729 fi
3730 fi
3731
3732 fi
3733 fi
3734 # Provide some information about the compiler.
3735 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3736 set X $ac_compile
3737 ac_compiler=$2
3738 for ac_option in --version -v -V -qversion; do
3739 { { ac_try="$ac_compiler $ac_option >&5"
3740 case "(($ac_try" in
3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3743 esac
3744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3745 $as_echo "$ac_try_echo"; } >&5
3746 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3747 ac_status=$?
3748 if test -s conftest.err; then
3749 sed '10a\
3750 ... rest of stderr output deleted ...
3751 10q' conftest.err >conftest.er1
3752 cat conftest.er1 >&5
3753 rm -f conftest.er1 conftest.err
3754 fi
3755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3756 test $ac_status = 0; }
3757 done
3758
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3760 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3761 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3762 $as_echo_n "(cached) " >&6
3763 else
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3766
3767 int
3768 main ()
3769 {
3770 #ifndef __GNUC__
3771 choke me
3772 #endif
3773
3774 ;
3775 return 0;
3776 }
3777 _ACEOF
3778 if ac_fn_cxx_try_compile "$LINENO"; then :
3779 ac_compiler_gnu=yes
3780 else
3781 ac_compiler_gnu=no
3782 fi
3783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3785
3786 fi
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3788 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3789 if test $ac_compiler_gnu = yes; then
3790 GXX=yes
3791 else
3792 GXX=
3793 fi
3794 ac_test_CXXFLAGS=${CXXFLAGS+set}
3795 ac_save_CXXFLAGS=$CXXFLAGS
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3797 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3798 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3799 $as_echo_n "(cached) " >&6
3800 else
3801 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3802 ac_cxx_werror_flag=yes
3803 ac_cv_prog_cxx_g=no
3804 CXXFLAGS="-g"
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h. */
3807
3808 int
3809 main ()
3810 {
3811
3812 ;
3813 return 0;
3814 }
3815 _ACEOF
3816 if ac_fn_cxx_try_compile "$LINENO"; then :
3817 ac_cv_prog_cxx_g=yes
3818 else
3819 CXXFLAGS=""
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3822
3823 int
3824 main ()
3825 {
3826
3827 ;
3828 return 0;
3829 }
3830 _ACEOF
3831 if ac_fn_cxx_try_compile "$LINENO"; then :
3832
3833 else
3834 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3835 CXXFLAGS="-g"
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3838
3839 int
3840 main ()
3841 {
3842
3843 ;
3844 return 0;
3845 }
3846 _ACEOF
3847 if ac_fn_cxx_try_compile "$LINENO"; then :
3848 ac_cv_prog_cxx_g=yes
3849 fi
3850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851 fi
3852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853 fi
3854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3855 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3856 fi
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3858 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3859 if test "$ac_test_CXXFLAGS" = set; then
3860 CXXFLAGS=$ac_save_CXXFLAGS
3861 elif test $ac_cv_prog_cxx_g = yes; then
3862 if test "$GXX" = yes; then
3863 CXXFLAGS="-g -O2"
3864 else
3865 CXXFLAGS="-g"
3866 fi
3867 else
3868 if test "$GXX" = yes; then
3869 CXXFLAGS="-O2"
3870 else
3871 CXXFLAGS=
3872 fi
3873 fi
3874 ac_ext=c
3875 ac_cpp='$CPP $CPPFLAGS'
3876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3879
3880 if test -n "$ac_tool_prefix"; then
3881 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3882 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3884 $as_echo_n "checking for $ac_word... " >&6; }
3885 if test "${ac_cv_prog_CPPBIN+set}" = set; then :
3886 $as_echo_n "(cached) " >&6
3887 else
3888 if test -n "$CPPBIN"; then
3889 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3890 else
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3893 do
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3898 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 break 2
3901 fi
3902 done
3903 done
3904 IFS=$as_save_IFS
3905
3906 fi
3907 fi
3908 CPPBIN=$ac_cv_prog_CPPBIN
3909 if test -n "$CPPBIN"; then
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3911 $as_echo "$CPPBIN" >&6; }
3912 else
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914 $as_echo "no" >&6; }
3915 fi
3916
3917
3918 fi
3919 if test -z "$ac_cv_prog_CPPBIN"; then
3920 ac_ct_CPPBIN=$CPPBIN
3921 # Extract the first word of "cpp", so it can be a program name with args.
3922 set dummy cpp; ac_word=$2
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3924 $as_echo_n "checking for $ac_word... " >&6; }
3925 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then :
3926 $as_echo_n "(cached) " >&6
3927 else
3928 if test -n "$ac_ct_CPPBIN"; then
3929 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3930 else
3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 for as_dir in $PATH
3933 do
3934 IFS=$as_save_IFS
3935 test -z "$as_dir" && as_dir=.
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3938 ac_cv_prog_ac_ct_CPPBIN="cpp"
3939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3940 break 2
3941 fi
3942 done
3943 done
3944 IFS=$as_save_IFS
3945
3946 fi
3947 fi
3948 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3949 if test -n "$ac_ct_CPPBIN"; then
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
3951 $as_echo "$ac_ct_CPPBIN" >&6; }
3952 else
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954 $as_echo "no" >&6; }
3955 fi
3956
3957 if test "x$ac_ct_CPPBIN" = x; then
3958 CPPBIN="cpp"
3959 else
3960 case $cross_compiling:$ac_tool_warned in
3961 yes:)
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3964 ac_tool_warned=yes ;;
3965 esac
3966 CPPBIN=$ac_ct_CPPBIN
3967 fi
3968 else
3969 CPPBIN="$ac_cv_prog_CPPBIN"
3970 fi
3971
3972
3973 cat >>confdefs.h <<_ACEOF
3974 #define EXEEXT "$ac_exeext"
3975 _ACEOF
3976
3977
3978 case $host in
3979 *-darwin*)
3980 if test "x$enable_win64" = "xyes"
3981 then
3982 CC="$CC -m64"
3983 CXX="$CXX -m64"
3984 LD="${LD:-ld} -arch x86_64"
3985 AS="${AS:-as} -arch x86_64"
3986 host_cpu="x86_64"
3987 notice_platform="64-bit "
3988 TARGETFLAGS="-m64"
3989
3990 else
3991 CC="$CC -m32"
3992 CXX="$CXX -m32"
3993 LD="${LD:-ld} -arch i386"
3994 AS="${AS:-as} -arch i386"
3995 host_cpu="i386"
3996 notice_platform="32-bit "
3997 TARGETFLAGS="-m32"
3998
3999 enable_win16=${enable_win16:-yes}
4000 fi
4001 ;;
4002 x86_64*)
4003 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4004 then
4005 CC="$CC -m32"
4006 CXX="$CXX -m32"
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4008 $as_echo_n "checking whether $CC works... " >&6; }
4009
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4012
4013 int
4014 main ()
4015 {
4016
4017 ;
4018 return 0;
4019 }
4020 _ACEOF
4021 if ac_fn_c_try_link "$LINENO"; then :
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4023 $as_echo "yes" >&6; }
4024 else
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4026 $as_echo "no" >&6; }
4027 as_fn_error "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4028 fi
4029 rm -f core conftest.err conftest.$ac_objext \
4030 conftest$ac_exeext conftest.$ac_ext
4031 LD="${LD:-ld} -m elf_i386"
4032 AS="${AS:-as} --32"
4033 host_cpu="i386"
4034 notice_platform="32-bit "
4035 TARGETFLAGS="-m32"
4036
4037 enable_win16=${enable_win16:-yes}
4038 else
4039 if test "x${GCC}" = "xyes"
4040 then
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4042 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4045 #include <stdarg.h>
4046 int
4047 main ()
4048 {
4049 void func(__builtin_ms_va_list *args);
4050 ;
4051 return 0;
4052 }
4053 _ACEOF
4054 if ac_fn_c_try_compile "$LINENO"; then :
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4056 $as_echo "yes" >&6; }
4057 else
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059 $as_echo "no" >&6; }
4060 as_fn_error "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4061 fi
4062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063 fi
4064 TARGETFLAGS="-m64"
4065
4066 fi
4067 ;;
4068 *-mingw32*|*-cygwin*)
4069 enable_win16=${enable_win16:-no}
4070 ;;
4071 i[3456789]86*)
4072 enable_win16=${enable_win16:-yes}
4073 ;;
4074 esac
4075
4076 enable_win16=${enable_win16:-no}
4077
4078 WIN16_FILES="\$(WIN16_FILES)"
4079
4080 WIN16_INSTALL="\$(WIN16_INSTALL)"
4081
4082 if test "x$enable_win16" != "xyes"
4083 then
4084 WIN16_FILES=""
4085 WIN16_INSTALL=""
4086 enable_w32skrnl=${enable_w32skrnl:-no}
4087 enable_winedos=${enable_winedos:-no}
4088 enable_winevdm=${enable_winevdm:-no}
4089 fi
4090
4091 if test -n "$with_wine64"
4092 then
4093 if test "x$enable_win64" = "xyes"
4094 then
4095 as_fn_error "--enable-win64 and --with-wine64 are mutually exclusive.
4096 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4097 fi
4098 WOW64_DISABLE=\#
4099
4100 enable_fonts=${enable_fonts:-no}
4101 enable_include=${enable_include:-no}
4102 enable_server=${enable_server:-no}
4103 enable_tools=${enable_tools:-no}
4104 enable_wineboot=${enable_wineboot:-no}
4105 enable_winedbg=${enable_winedbg:-no}
4106 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib32"
4107 fi
4108
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4110 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4111 if test "${wine_cv_toolsdir+set}" = set; then :
4112 $as_echo_n "(cached) " >&6
4113 else
4114 wine_cv_toolsdir="$with_wine_tools"
4115 if test -z "$with_wine_tools"; then
4116 if test "$cross_compiling" = "yes"; then
4117 as_fn_error "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4118 elif test -n "$with_wine64"; then
4119 wine_cv_toolsdir="$with_wine64"
4120 fi
4121 fi
4122 if test -z "$wine_cv_toolsdir"; then
4123 wine_cv_toolsdir="\$(TOPOBJDIR)"
4124 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4125 case "$wine_cv_toolsdir" in
4126 /*) ;;
4127 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$wine_cv_toolsdir" ;;
4128 esac
4129 else
4130 as_fn_error "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4131 fi
4132 fi
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4134 $as_echo "$wine_cv_toolsdir" >&6; }
4135 TOOLSDIR=$wine_cv_toolsdir
4136
4137 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4138 then
4139 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4140
4141 fi
4142
4143 for ac_prog in flex
4144 do
4145 # Extract the first word of "$ac_prog", so it can be a program name with args.
4146 set dummy $ac_prog; ac_word=$2
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4148 $as_echo_n "checking for $ac_word... " >&6; }
4149 if test "${ac_cv_prog_FLEX+set}" = set; then :
4150 $as_echo_n "(cached) " >&6
4151 else
4152 if test -n "$FLEX"; then
4153 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4154 else
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH
4157 do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4162 ac_cv_prog_FLEX="$ac_prog"
4163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4165 fi
4166 done
4167 done
4168 IFS=$as_save_IFS
4169
4170 fi
4171 fi
4172 FLEX=$ac_cv_prog_FLEX
4173 if test -n "$FLEX"; then
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4175 $as_echo "$FLEX" >&6; }
4176 else
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4178 $as_echo "no" >&6; }
4179 fi
4180
4181
4182 test -n "$FLEX" && break
4183 done
4184 test -n "$FLEX" || FLEX="none"
4185
4186 if test "$FLEX" = "none"
4187 then
4188 as_fn_error "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4189 fi
4190
4191 for ac_prog in bison
4192 do
4193 # Extract the first word of "$ac_prog", so it can be a program name with args.
4194 set dummy $ac_prog; ac_word=$2
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4196 $as_echo_n "checking for $ac_word... " >&6; }
4197 if test "${ac_cv_prog_BISON+set}" = set; then :
4198 $as_echo_n "(cached) " >&6
4199 else
4200 if test -n "$BISON"; then
4201 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4202 else
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 for as_dir in $PATH
4205 do
4206 IFS=$as_save_IFS
4207 test -z "$as_dir" && as_dir=.
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4210 ac_cv_prog_BISON="$ac_prog"
4211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4212 break 2
4213 fi
4214 done
4215 done
4216 IFS=$as_save_IFS
4217
4218 fi
4219 fi
4220 BISON=$ac_cv_prog_BISON
4221 if test -n "$BISON"; then
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4223 $as_echo "$BISON" >&6; }
4224 else
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4226 $as_echo "no" >&6; }
4227 fi
4228
4229
4230 test -n "$BISON" && break
4231 done
4232 test -n "$BISON" || BISON="none"
4233
4234 if test "$BISON" = "none"
4235 then
4236 as_fn_error "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4237 fi
4238
4239 if test -n "$ac_tool_prefix"; then
4240 for ac_prog in ar gar
4241 do
4242 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4243 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 $as_echo_n "checking for $ac_word... " >&6; }
4246 if test "${ac_cv_prog_AR+set}" = set; then :
4247 $as_echo_n "(cached) " >&6
4248 else
4249 if test -n "$AR"; then
4250 ac_cv_prog_AR="$AR" # Let the user override the test.
4251 else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4254 do
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4259 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 break 2
4262 fi
4263 done
4264 done
4265 IFS=$as_save_IFS
4266
4267 fi
4268 fi
4269 AR=$ac_cv_prog_AR
4270 if test -n "$AR"; then
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4272 $as_echo "$AR" >&6; }
4273 else
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4276 fi
4277
4278
4279 test -n "$AR" && break
4280 done
4281 fi
4282 if test -z "$AR"; then
4283 ac_ct_AR=$AR
4284 for ac_prog in ar gar
4285 do
4286 # Extract the first word of "$ac_prog", so it can be a program name with args.
4287 set dummy $ac_prog; ac_word=$2
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4289 $as_echo_n "checking for $ac_word... " >&6; }
4290 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4291 $as_echo_n "(cached) " >&6
4292 else
4293 if test -n "$ac_ct_AR"; then
4294 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4295 else
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 for as_dir in $PATH
4298 do
4299 IFS=$as_save_IFS
4300 test -z "$as_dir" && as_dir=.
4301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4303 ac_cv_prog_ac_ct_AR="$ac_prog"
4304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4305 break 2
4306 fi
4307 done
4308 done
4309 IFS=$as_save_IFS
4310
4311 fi
4312 fi
4313 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4314 if test -n "$ac_ct_AR"; then
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4316 $as_echo "$ac_ct_AR" >&6; }
4317 else
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319 $as_echo "no" >&6; }
4320 fi
4321
4322
4323 test -n "$ac_ct_AR" && break
4324 done
4325
4326 if test "x$ac_ct_AR" = x; then
4327 AR="ar"
4328 else
4329 case $cross_compiling:$ac_tool_warned in
4330 yes:)
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4333 ac_tool_warned=yes ;;
4334 esac
4335 AR=$ac_ct_AR
4336 fi
4337 fi
4338
4339 ARFLAGS=rc
4340
4341 if test -n "$ac_tool_prefix"; then
4342 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4343 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4345 $as_echo_n "checking for $ac_word... " >&6; }
4346 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4347 $as_echo_n "(cached) " >&6
4348 else
4349 if test -n "$RANLIB"; then
4350 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4351 else
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH
4354 do
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4359 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4361 break 2
4362 fi
4363 done
4364 done
4365 IFS=$as_save_IFS
4366
4367 fi
4368 fi
4369 RANLIB=$ac_cv_prog_RANLIB
4370 if test -n "$RANLIB"; then
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4372 $as_echo "$RANLIB" >&6; }
4373 else
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4375 $as_echo "no" >&6; }
4376 fi
4377
4378
4379 fi
4380 if test -z "$ac_cv_prog_RANLIB"; then
4381 ac_ct_RANLIB=$RANLIB
4382 # Extract the first word of "ranlib", so it can be a program name with args.
4383 set dummy ranlib; ac_word=$2
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4385 $as_echo_n "checking for $ac_word... " >&6; }
4386 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4387 $as_echo_n "(cached) " >&6
4388 else
4389 if test -n "$ac_ct_RANLIB"; then
4390 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4391 else
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH
4394 do
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4399 ac_cv_prog_ac_ct_RANLIB="ranlib"
4400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4401 break 2
4402 fi
4403 done
4404 done
4405 IFS=$as_save_IFS
4406
4407 fi
4408 fi
4409 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4410 if test -n "$ac_ct_RANLIB"; then
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4412 $as_echo "$ac_ct_RANLIB" >&6; }
4413 else
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415 $as_echo "no" >&6; }
4416 fi
4417
4418 if test "x$ac_ct_RANLIB" = x; then
4419 RANLIB=":"
4420 else
4421 case $cross_compiling:$ac_tool_warned in
4422 yes:)
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4425 ac_tool_warned=yes ;;
4426 esac
4427 RANLIB=$ac_ct_RANLIB
4428 fi
4429 else
4430 RANLIB="$ac_cv_prog_RANLIB"
4431 fi
4432
4433 if test -n "$ac_tool_prefix"; then
4434 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4435 set dummy ${ac_tool_prefix}strip; ac_word=$2
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4437 $as_echo_n "checking for $ac_word... " >&6; }
4438 if test "${ac_cv_prog_STRIP+set}" = set; then :
4439 $as_echo_n "(cached) " >&6
4440 else
4441 if test -n "$STRIP"; then
4442 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4443 else
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH
4446 do
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4451 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4453 break 2
4454 fi
4455 done
4456 done
4457 IFS=$as_save_IFS
4458
4459 fi
4460 fi
4461 STRIP=$ac_cv_prog_STRIP
4462 if test -n "$STRIP"; then
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4464 $as_echo "$STRIP" >&6; }
4465 else
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4467 $as_echo "no" >&6; }
4468 fi
4469
4470
4471 fi
4472 if test -z "$ac_cv_prog_STRIP"; then
4473 ac_ct_STRIP=$STRIP
4474 # Extract the first word of "strip", so it can be a program name with args.
4475 set dummy strip; ac_word=$2
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4477 $as_echo_n "checking for $ac_word... " >&6; }
4478 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4479 $as_echo_n "(cached) " >&6
4480 else
4481 if test -n "$ac_ct_STRIP"; then
4482 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4483 else
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH
4486 do
4487 IFS=$as_save_IFS
4488 test -z "$as_dir" && as_dir=.
4489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4491 ac_cv_prog_ac_ct_STRIP="strip"
4492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4493 break 2
4494 fi
4495 done
4496 done
4497 IFS=$as_save_IFS
4498
4499 fi
4500 fi
4501 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4502 if test -n "$ac_ct_STRIP"; then
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4504 $as_echo "$ac_ct_STRIP" >&6; }
4505 else
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4507 $as_echo "no" >&6; }
4508 fi
4509
4510 if test "x$ac_ct_STRIP" = x; then
4511 STRIP="strip"
4512 else
4513 case $cross_compiling:$ac_tool_warned in
4514 yes:)
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4517 ac_tool_warned=yes ;;
4518 esac
4519 STRIP=$ac_ct_STRIP
4520 fi
4521 else
4522 STRIP="$ac_cv_prog_STRIP"
4523 fi
4524
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4526 $as_echo_n "checking whether ln -s works... " >&6; }
4527 LN_S=$as_ln_s
4528 if test "$LN_S" = "ln -s"; then
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4530 $as_echo "yes" >&6; }
4531 else
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4533 $as_echo "no, using $LN_S" >&6; }
4534 fi
4535
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
4537 $as_echo_n "checking whether ln works... " >&6; }
4538 rm -f conf$$ conf$$.file
4539 echo >conf$$.file
4540 if ln conf$$.file conf$$ 2>/dev/null; then
4541 LN=ln
4542
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4544 $as_echo "yes" >&6; }
4545 else
4546 LN="cp -p"
4547
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
4549 $as_echo "no, using $LN" >&6; }
4550 fi
4551 rm -f conf$$ conf$$.file
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4553 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4554 if test "${ac_cv_path_GREP+set}" = set; then :
4555 $as_echo_n "(cached) " >&6
4556 else
4557 if test -z "$GREP"; then
4558 ac_path_GREP_found=false
4559 # Loop through the user's path and test for each of PROGNAME-LIST
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4562 do
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
4565 for ac_prog in grep ggrep; do
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4568 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4569 # Check for GNU ac_path_GREP and select it if it is found.
4570 # Check for GNU $ac_path_GREP
4571 case `"$ac_path_GREP" --version 2>&1` in
4572 *GNU*)
4573 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4574 *)
4575 ac_count=0
4576 $as_echo_n 0123456789 >"conftest.in"
4577 while :
4578 do
4579 cat "conftest.in" "conftest.in" >"conftest.tmp"
4580 mv "conftest.tmp" "conftest.in"
4581 cp "conftest.in" "conftest.nl"
4582 $as_echo 'GREP' >> "conftest.nl"
4583 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4584 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4585 as_fn_arith $ac_count + 1 && ac_count=$as_val
4586 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4587 # Best one so far, save it but keep looking for a better one
4588 ac_cv_path_GREP="$ac_path_GREP"
4589 ac_path_GREP_max=$ac_count
4590 fi
4591 # 10*(2^10) chars as input seems more than enough
4592 test $ac_count -gt 10 && break
4593 done
4594 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4595 esac
4596
4597 $ac_path_GREP_found && break 3
4598 done
4599 done
4600 done
4601 IFS=$as_save_IFS
4602 if test -z "$ac_cv_path_GREP"; then
4603 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4604 fi
4605 else
4606 ac_cv_path_GREP=$GREP
4607 fi
4608
4609 fi
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4611 $as_echo "$ac_cv_path_GREP" >&6; }
4612 GREP="$ac_cv_path_GREP"
4613
4614
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4616 $as_echo_n "checking for egrep... " >&6; }
4617 if test "${ac_cv_path_EGREP+set}" = set; then :
4618 $as_echo_n "(cached) " >&6
4619 else
4620 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4621 then ac_cv_path_EGREP="$GREP -E"
4622 else
4623 if test -z "$EGREP"; then
4624 ac_path_EGREP_found=false
4625 # Loop through the user's path and test for each of PROGNAME-LIST
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4628 do
4629 IFS=$as_save_IFS
4630 test -z "$as_dir" && as_dir=.
4631 for ac_prog in egrep; do
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4634 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4635 # Check for GNU ac_path_EGREP and select it if it is found.
4636 # Check for GNU $ac_path_EGREP
4637 case `"$ac_path_EGREP" --version 2>&1` in
4638 *GNU*)
4639 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4640 *)
4641 ac_count=0
4642 $as_echo_n 0123456789 >"conftest.in"
4643 while :
4644 do
4645 cat "conftest.in" "conftest.in" >"conftest.tmp"
4646 mv "conftest.tmp" "conftest.in"
4647 cp "conftest.in" "conftest.nl"
4648 $as_echo 'EGREP' >> "conftest.nl"
4649 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4650 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4651 as_fn_arith $ac_count + 1 && ac_count=$as_val
4652 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4653 # Best one so far, save it but keep looking for a better one
4654 ac_cv_path_EGREP="$ac_path_EGREP"
4655 ac_path_EGREP_max=$ac_count
4656 fi
4657 # 10*(2^10) chars as input seems more than enough
4658 test $ac_count -gt 10 && break
4659 done
4660 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4661 esac
4662
4663 $ac_path_EGREP_found && break 3
4664 done
4665 done
4666 done
4667 IFS=$as_save_IFS
4668 if test -z "$ac_cv_path_EGREP"; then
4669 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4670 fi
4671 else
4672 ac_cv_path_EGREP=$EGREP
4673 fi
4674
4675 fi
4676 fi
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4678 $as_echo "$ac_cv_path_EGREP" >&6; }
4679 EGREP="$ac_cv_path_EGREP"
4680
4681
4682 # Extract the first word of "ldconfig", so it can be a program name with args.
4683 set dummy ldconfig; ac_word=$2
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4685 $as_echo_n "checking for $ac_word... " >&6; }
4686 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
4687 $as_echo_n "(cached) " >&6
4688 else
4689 case $LDCONFIG in
4690 [\\/]* | ?:[\\/]*)
4691 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4692 ;;
4693 *)
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in /sbin /usr/sbin $PATH
4696 do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4701 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 break 2
4704 fi
4705 done
4706 done
4707 IFS=$as_save_IFS
4708
4709 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4710 ;;
4711 esac
4712 fi
4713 LDCONFIG=$ac_cv_path_LDCONFIG
4714 if test -n "$LDCONFIG"; then
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4716 $as_echo "$LDCONFIG" >&6; }
4717 else
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719 $as_echo "no" >&6; }
4720 fi
4721
4722
4723 # Find a good install program. We prefer a C program (faster),
4724 # so one script is as good as another. But avoid the broken or
4725 # incompatible versions:
4726 # SysV /etc/install, /usr/sbin/install
4727 # SunOS /usr/etc/install
4728 # IRIX /sbin/install
4729 # AIX /bin/install
4730 # AmigaOS /C/install, which installs bootblocks on floppy discs
4731 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4732 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4733 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4734 # OS/2's system install, which has a completely different semantic
4735 # ./install, which can be erroneously created by make from ./install.sh.
4736 # Reject install programs that cannot install multiple files.
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4738 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4739 if test -z "$INSTALL"; then
4740 if test "${ac_cv_path_install+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 for as_dir in $PATH
4745 do
4746 IFS=$as_save_IFS
4747 test -z "$as_dir" && as_dir=.
4748 # Account for people who put trailing slashes in PATH elements.
4749 case $as_dir/ in #((
4750 ./ | .// | /[cC]/* | \
4751 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4752 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4753 /usr/ucb/* ) ;;
4754 *)
4755 # OSF1 and SCO ODT 3.0 have their own names for install.
4756 # Don't use installbsd from OSF since it installs stuff as root
4757 # by default.
4758 for ac_prog in ginstall scoinst install; do
4759 for ac_exec_ext in '' $ac_executable_extensions; do
4760 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4761 if test $ac_prog = install &&
4762 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4763 # AIX install. It has an incompatible calling convention.
4764 :
4765 elif test $ac_prog = install &&
4766 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4767 # program-specific install script used by HP pwplus--don't use.
4768 :
4769 else
4770 rm -rf conftest.one conftest.two conftest.dir
4771 echo one > conftest.one
4772 echo two > conftest.two
4773 mkdir conftest.dir
4774 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4775 test -s conftest.one && test -s conftest.two &&
4776 test -s conftest.dir/conftest.one &&
4777 test -s conftest.dir/conftest.two
4778 then
4779 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4780 break 3
4781 fi
4782 fi
4783 fi
4784 done
4785 done
4786 ;;
4787 esac
4788
4789 done
4790 IFS=$as_save_IFS
4791
4792 rm -rf conftest.one conftest.two conftest.dir
4793
4794 fi
4795 if test "${ac_cv_path_install+set}" = set; then
4796 INSTALL=$ac_cv_path_install
4797 else
4798 # As a last resort, use the slow shell script. Don't cache a
4799 # value for INSTALL within a source directory, because that will
4800 # break other packages using the cache if that directory is
4801 # removed, or if the value is a relative name.
4802 INSTALL=$ac_install_sh
4803 fi
4804 fi
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4806 $as_echo "$INSTALL" >&6; }
4807
4808 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4809 # It thinks the first close brace ends the variable substitution.
4810 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4811
4812 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4813
4814 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4815
4816 case "$INSTALL" in
4817 [\\/$]* | ?:[\\/]* ) ;;
4818 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4819 esac
4820
4821 for ac_prog in lclint lint
4822 do
4823 # Extract the first word of "$ac_prog", so it can be a program name with args.
4824 set dummy $ac_prog; ac_word=$2
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4826 $as_echo_n "checking for $ac_word... " >&6; }
4827 if test "${ac_cv_prog_LINT+set}" = set; then :
4828 $as_echo_n "(cached) " >&6
4829 else
4830 if test -n "$LINT"; then
4831 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4832 else
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 for as_dir in $PATH
4835 do
4836 IFS=$as_save_IFS
4837 test -z "$as_dir" && as_dir=.
4838 for ac_exec_ext in '' $ac_executable_extensions; do
4839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4840 ac_cv_prog_LINT="$ac_prog"
4841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4842 break 2
4843 fi
4844 done
4845 done
4846 IFS=$as_save_IFS
4847
4848 fi
4849 fi
4850 LINT=$ac_cv_prog_LINT
4851 if test -n "$LINT"; then
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4853 $as_echo "$LINT" >&6; }
4854 else
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4856 $as_echo "no" >&6; }
4857 fi
4858
4859
4860 test -n "$LINT" && break
4861 done
4862
4863 if test "$LINT" = "lint"
4864 then
4865 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4866 fi
4867
4868
4869
4870 for ac_prog in fontforge
4871 do
4872 # Extract the first word of "$ac_prog", so it can be a program name with args.
4873 set dummy $ac_prog; ac_word=$2
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4875 $as_echo_n "checking for $ac_word... " >&6; }
4876 if test "${ac_cv_prog_FONTFORGE+set}" = set; then :
4877 $as_echo_n "(cached) " >&6
4878 else
4879 if test -n "$FONTFORGE"; then
4880 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4881 else
4882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883 for as_dir in $PATH
4884 do
4885 IFS=$as_save_IFS
4886 test -z "$as_dir" && as_dir=.
4887 for ac_exec_ext in '' $ac_executable_extensions; do
4888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4889 ac_cv_prog_FONTFORGE="$ac_prog"
4890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 break 2
4892 fi
4893 done
4894 done
4895 IFS=$as_save_IFS
4896
4897 fi
4898 fi
4899 FONTFORGE=$ac_cv_prog_FONTFORGE
4900 if test -n "$FONTFORGE"; then
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4902 $as_echo "$FONTFORGE" >&6; }
4903 else
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4905 $as_echo "no" >&6; }
4906 fi
4907
4908
4909 test -n "$FONTFORGE" && break
4910 done
4911 test -n "$FONTFORGE" || FONTFORGE="false"
4912
4913 for ac_prog in pkg-config
4914 do
4915 # Extract the first word of "$ac_prog", so it can be a program name with args.
4916 set dummy $ac_prog; ac_word=$2
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918 $as_echo_n "checking for $ac_word... " >&6; }
4919 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then :
4920 $as_echo_n "(cached) " >&6
4921 else
4922 if test -n "$PKG_CONFIG"; then
4923 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4924 else
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 for as_dir in $PATH
4927 do
4928 IFS=$as_save_IFS
4929 test -z "$as_dir" && as_dir=.
4930 for ac_exec_ext in '' $ac_executable_extensions; do
4931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4932 ac_cv_prog_PKG_CONFIG="$ac_prog"
4933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 break 2
4935 fi
4936 done
4937 done
4938 IFS=$as_save_IFS
4939
4940 fi
4941 fi
4942 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4943 if test -n "$PKG_CONFIG"; then
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4945 $as_echo "$PKG_CONFIG" >&6; }
4946 else
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948 $as_echo "no" >&6; }
4949 fi
4950
4951
4952 test -n "$PKG_CONFIG" && break
4953 done
4954 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4955
4956 for ac_prog in rsvg
4957 do
4958 # Extract the first word of "$ac_prog", so it can be a program name with args.
4959 set dummy $ac_prog; ac_word=$2
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4961 $as_echo_n "checking for $ac_word... " >&6; }
4962 if test "${ac_cv_prog_RSVG+set}" = set; then :
4963 $as_echo_n "(cached) " >&6
4964 else
4965 if test -n "$RSVG"; then
4966 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4967 else
4968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 for as_dir in $PATH
4970 do
4971 IFS=$as_save_IFS
4972 test -z "$as_dir" && as_dir=.
4973 for ac_exec_ext in '' $ac_executable_extensions; do
4974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4975 ac_cv_prog_RSVG="$ac_prog"
4976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4977 break 2
4978 fi
4979 done
4980 done
4981 IFS=$as_save_IFS
4982
4983 fi
4984 fi
4985 RSVG=$ac_cv_prog_RSVG
4986 if test -n "$RSVG"; then
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
4988 $as_echo "$RSVG" >&6; }
4989 else
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4991 $as_echo "no" >&6; }
4992 fi
4993
4994
4995 test -n "$RSVG" && break
4996 done
4997 test -n "$RSVG" || RSVG="false"
4998
4999 for ac_prog in icotool
5000 do
5001 # Extract the first word of "$ac_prog", so it can be a program name with args.
5002 set dummy $ac_prog; ac_word=$2
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004 $as_echo_n "checking for $ac_word... " >&6; }
5005 if test "${ac_cv_prog_ICOTOOL+set}" = set; then :
5006 $as_echo_n "(cached) " >&6
5007 else
5008 if test -n "$ICOTOOL"; then
5009 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5010 else
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH
5013 do
5014 IFS=$as_save_IFS
5015 test -z "$as_dir" && as_dir=.
5016 for ac_exec_ext in '' $ac_executable_extensions; do
5017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5018 ac_cv_prog_ICOTOOL="$ac_prog"
5019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5020 break 2
5021 fi
5022 done
5023 done
5024 IFS=$as_save_IFS
5025
5026 fi
5027 fi
5028 ICOTOOL=$ac_cv_prog_ICOTOOL
5029 if test -n "$ICOTOOL"; then
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5031 $as_echo "$ICOTOOL" >&6; }
5032 else
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034 $as_echo "no" >&6; }
5035 fi
5036
5037
5038 test -n "$ICOTOOL" && break
5039 done
5040 test -n "$ICOTOOL" || ICOTOOL="false"
5041
5042
5043 if test "${enable_maintainer_mode+set}" = set
5044 then
5045 if test "$FONTFORGE" = "false"; then wine_warnings="$wine_warnings|fontforge is missing, fonts can't be rebuilt."; fi
5046 if test "$RSVG" = "false"; then wine_warnings="$wine_warnings|rsvg is missing, icons can't be rebuilt."; fi
5047 if test "$ICOTOOL" = "false"; then wine_warnings="$wine_warnings|icotool is missing, icons can't be rebuilt."; fi
5048 fi
5049
5050 case $host_cpu in
5051 *i[3456789]86*)
5052 # Extract the first word of "prelink", so it can be a program name with args.
5053 set dummy prelink; ac_word=$2
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5055 $as_echo_n "checking for $ac_word... " >&6; }
5056 if test "${ac_cv_path_PRELINK+set}" = set; then :
5057 $as_echo_n "(cached) " >&6
5058 else
5059 case $PRELINK in
5060 [\\/]* | ?:[\\/]*)
5061 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
5062 ;;
5063 *)
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in /sbin /usr/sbin $PATH
5066 do
5067 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=.
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5071 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 break 2
5074 fi
5075 done
5076 done
5077 IFS=$as_save_IFS
5078
5079 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
5080 ;;
5081 esac
5082 fi
5083 PRELINK=$ac_cv_path_PRELINK
5084 if test -n "$PRELINK"; then
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
5086 $as_echo "$PRELINK" >&6; }
5087 else
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089 $as_echo "no" >&6; }
5090 fi
5091
5092
5093 ;;
5094 esac
5095
5096
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5098 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5099 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 ac_check_lib_save_LIBS=$LIBS
5103 LIBS="-li386 $LIBS"
5104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105 /* end confdefs.h. */
5106
5107 /* Override any GCC internal prototype to avoid an error.
5108 Use char because int might match the return type of a GCC
5109 builtin and then its argument prototype would still apply. */
5110 #ifdef __cplusplus
5111 extern "C"
5112 #endif
5113 char i386_set_ldt ();
5114 int
5115 main ()
5116 {
5117 return i386_set_ldt ();
5118 ;
5119 return 0;
5120 }
5121 _ACEOF
5122 if ac_fn_c_try_link "$LINENO"; then :
5123 ac_cv_lib_i386_i386_set_ldt=yes
5124 else
5125 ac_cv_lib_i386_i386_set_ldt=no
5126 fi
5127 rm -f core conftest.err conftest.$ac_objext \
5128 conftest$ac_exeext conftest.$ac_ext
5129 LIBS=$ac_check_lib_save_LIBS
5130 fi
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5132 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5133 if test "x$ac_cv_lib_i386_i386_set_ldt" = x""yes; then :
5134 cat >>confdefs.h <<_ACEOF
5135 #define HAVE_LIBI386 1
5136 _ACEOF
5137
5138 LIBS="-li386 $LIBS"
5139
5140 fi
5141
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5143 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5144 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5145 $as_echo_n "(cached) " >&6
5146 else
5147 ac_check_lib_save_LIBS=$LIBS
5148 LIBS="-lossaudio $LIBS"
5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h. */
5151
5152 /* Override any GCC internal prototype to avoid an error.
5153 Use char because int might match the return type of a GCC
5154 builtin and then its argument prototype would still apply. */
5155 #ifdef __cplusplus
5156 extern "C"
5157 #endif
5158 char _oss_ioctl ();
5159 int
5160 main ()
5161 {
5162 return _oss_ioctl ();
5163 ;
5164 return 0;
5165 }
5166 _ACEOF
5167 if ac_fn_c_try_link "$LINENO"; then :
5168 ac_cv_lib_ossaudio__oss_ioctl=yes
5169 else
5170 ac_cv_lib_ossaudio__oss_ioctl=no
5171 fi
5172 rm -f core conftest.err conftest.$ac_objext \
5173 conftest$ac_exeext conftest.$ac_ext
5174 LIBS=$ac_check_lib_save_LIBS
5175 fi
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5177 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5178 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5179 cat >>confdefs.h <<_ACEOF
5180 #define HAVE_LIBOSSAUDIO 1
5181 _ACEOF
5182
5183 LIBS="-lossaudio $LIBS"
5184
5185 fi
5186
5187
5188 XLIB=""
5189
5190 OPENGL_LIBS=""
5191
5192
5193
5194 # Check whether --enable-largefile was given.
5195 if test "${enable_largefile+set}" = set; then :
5196 enableval=$enable_largefile;
5197 fi
5198
5199 if test "$enable_largefile" != no; then
5200
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5202 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5203 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5204 $as_echo_n "(cached) " >&6
5205 else
5206 ac_cv_sys_largefile_CC=no
5207 if test "$GCC" != yes; then
5208 ac_save_CC=$CC
5209 while :; do
5210 # IRIX 6.2 and later do not support large files by default,
5211 # so use the C compiler's -n32 option if that helps.
5212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213 /* end confdefs.h. */
5214 #include <sys/types.h>
5215 /* Check that off_t can represent 2**63 - 1 correctly.
5216 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5217 since some C++ compilers masquerading as C compilers
5218 incorrectly reject 9223372036854775807. */
5219 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5220 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5221 && LARGE_OFF_T % 2147483647 == 1)
5222 ? 1 : -1];
5223 int
5224 main ()
5225 {
5226
5227 ;
5228 return 0;
5229 }
5230 _ACEOF
5231 if ac_fn_c_try_compile "$LINENO"; then :
5232 break
5233 fi
5234 rm -f core conftest.err conftest.$ac_objext
5235 CC="$CC -n32"
5236 if ac_fn_c_try_compile "$LINENO"; then :
5237 ac_cv_sys_largefile_CC=' -n32'; break
5238 fi
5239 rm -f core conftest.err conftest.$ac_objext
5240 break
5241 done
5242 CC=$ac_save_CC
5243 rm -f conftest.$ac_ext
5244 fi
5245 fi
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5247 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5248 if test "$ac_cv_sys_largefile_CC" != no; then
5249 CC=$CC$ac_cv_sys_largefile_CC
5250 fi
5251
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5253 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5254 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5255 $as_echo_n "(cached) " >&6
5256 else
5257 while :; do
5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h. */
5260 #include <sys/types.h>
5261 /* Check that off_t can represent 2**63 - 1 correctly.
5262 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5263 since some C++ compilers masquerading as C compilers
5264 incorrectly reject 9223372036854775807. */
5265 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5266 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5267 && LARGE_OFF_T % 2147483647 == 1)
5268 ? 1 : -1];
5269 int
5270 main ()
5271 {
5272
5273 ;
5274 return 0;
5275 }
5276 _ACEOF
5277 if ac_fn_c_try_compile "$LINENO"; then :
5278 ac_cv_sys_file_offset_bits=no; break
5279 fi
5280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282 /* end confdefs.h. */
5283 #define _FILE_OFFSET_BITS 64
5284 #include <sys/types.h>
5285 /* Check that off_t can represent 2**63 - 1 correctly.
5286 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5287 since some C++ compilers masquerading as C compilers
5288 incorrectly reject 9223372036854775807. */
5289 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5290 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5291 && LARGE_OFF_T % 2147483647 == 1)
5292 ? 1 : -1];
5293 int
5294 main ()
5295 {
5296
5297 ;
5298 return 0;
5299 }
5300 _ACEOF
5301 if ac_fn_c_try_compile "$LINENO"; then :
5302 ac_cv_sys_file_offset_bits=64; break
5303 fi
5304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5305 ac_cv_sys_file_offset_bits=unknown
5306 break
5307 done
5308 fi
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5310 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5311 case $ac_cv_sys_file_offset_bits in #(
5312 no | unknown) ;;
5313 *)
5314 cat >>confdefs.h <<_ACEOF
5315 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5316 _ACEOF
5317 ;;
5318 esac
5319 rm -rf conftest*
5320 if test $ac_cv_sys_file_offset_bits = unknown; then
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5322 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5323 if test "${ac_cv_sys_large_files+set}" = set; then :
5324 $as_echo_n "(cached) " >&6
5325 else
5326 while :; do
5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h. */
5329 #include <sys/types.h>
5330 /* Check that off_t can represent 2**63 - 1 correctly.
5331 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5332 since some C++ compilers masquerading as C compilers
5333 incorrectly reject 9223372036854775807. */
5334 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5335 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5336 && LARGE_OFF_T % 2147483647 == 1)
5337 ? 1 : -1];
5338 int
5339 main ()
5340 {
5341
5342 ;
5343 return 0;
5344 }
5345 _ACEOF
5346 if ac_fn_c_try_compile "$LINENO"; then :
5347 ac_cv_sys_large_files=no; break
5348 fi
5349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h. */
5352 #define _LARGE_FILES 1
5353 #include <sys/types.h>
5354 /* Check that off_t can represent 2**63 - 1 correctly.
5355 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5356 since some C++ compilers masquerading as C compilers
5357 incorrectly reject 9223372036854775807. */
5358 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5359 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5360 && LARGE_OFF_T % 2147483647 == 1)
5361 ? 1 : -1];
5362 int
5363 main ()
5364 {
5365
5366 ;
5367 return 0;
5368 }
5369 _ACEOF
5370 if ac_fn_c_try_compile "$LINENO"; then :
5371 ac_cv_sys_large_files=1; break
5372 fi
5373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5374 ac_cv_sys_large_files=unknown
5375 break
5376 done
5377 fi
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5379 $as_echo "$ac_cv_sys_large_files" >&6; }
5380 case $ac_cv_sys_large_files in #(
5381 no | unknown) ;;
5382 *)
5383 cat >>confdefs.h <<_ACEOF
5384 #define _LARGE_FILES $ac_cv_sys_large_files
5385 _ACEOF
5386 ;;
5387 esac
5388 rm -rf conftest*
5389 fi
5390 fi
5391
5392
5393 ac_ext=c
5394 ac_cpp='$CPP $CPPFLAGS'
5395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5399 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5400 # On Suns, sometimes $CPP names a directory.
5401 if test -n "$CPP" && test -d "$CPP"; then
5402 CPP=
5403 fi
5404 if test -z "$CPP"; then
5405 if test "${ac_cv_prog_CPP+set}" = set; then :
5406 $as_echo_n "(cached) " >&6
5407 else
5408 # Double quotes because CPP needs to be expanded
5409 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5410 do
5411 ac_preproc_ok=false
5412 for ac_c_preproc_warn_flag in '' yes
5413 do
5414 # Use a header file that comes with gcc, so configuring glibc
5415 # with a fresh cross-compiler works.
5416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5417 # <limits.h> exists even on freestanding compilers.
5418 # On the NeXT, cc -E runs the code through the compiler's parser,
5419 # not just through cpp. "Syntax error" is here to catch this case.
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5422 #ifdef __STDC__
5423 # include <limits.h>
5424 #else
5425 # include <assert.h>
5426 #endif
5427 Syntax error
5428 _ACEOF
5429 if ac_fn_c_try_cpp "$LINENO"; then :
5430
5431 else
5432 # Broken: fails on valid input.
5433 continue
5434 fi
5435 rm -f conftest.err conftest.$ac_ext
5436
5437 # OK, works on sane cases. Now check whether nonexistent headers
5438 # can be detected and how.
5439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440 /* end confdefs.h. */
5441 #include <ac_nonexistent.h>
5442 _ACEOF
5443 if ac_fn_c_try_cpp "$LINENO"; then :
5444 # Broken: success on invalid input.
5445 continue
5446 else
5447 # Passes both tests.
5448 ac_preproc_ok=:
5449 break
5450 fi
5451 rm -f conftest.err conftest.$ac_ext
5452
5453 done
5454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5455 rm -f conftest.err conftest.$ac_ext
5456 if $ac_preproc_ok; then :
5457 break
5458 fi
5459
5460 done
5461 ac_cv_prog_CPP=$CPP
5462
5463 fi
5464 CPP=$ac_cv_prog_CPP
5465 else
5466 ac_cv_prog_CPP=$CPP
5467 fi
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5469 $as_echo "$CPP" >&6; }
5470 ac_preproc_ok=false
5471 for ac_c_preproc_warn_flag in '' yes
5472 do
5473 # Use a header file that comes with gcc, so configuring glibc
5474 # with a fresh cross-compiler works.
5475 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5476 # <limits.h> exists even on freestanding compilers.
5477 # On the NeXT, cc -E runs the code through the compiler's parser,
5478 # not just through cpp. "Syntax error" is here to catch this case.
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h. */
5481 #ifdef __STDC__
5482 # include <limits.h>
5483 #else
5484 # include <assert.h>
5485 #endif
5486 Syntax error
5487 _ACEOF
5488 if ac_fn_c_try_cpp "$LINENO"; then :
5489
5490 else
5491 # Broken: fails on valid input.
5492 continue
5493 fi
5494 rm -f conftest.err conftest.$ac_ext
5495
5496 # OK, works on sane cases. Now check whether nonexistent headers
5497 # can be detected and how.
5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499 /* end confdefs.h. */
5500 #include <ac_nonexistent.h>
5501 _ACEOF
5502 if ac_fn_c_try_cpp "$LINENO"; then :
5503 # Broken: success on invalid input.
5504 continue
5505 else
5506 # Passes both tests.
5507 ac_preproc_ok=:
5508 break
5509 fi
5510 rm -f conftest.err conftest.$ac_ext
5511
5512 done
5513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5514 rm -f conftest.err conftest.$ac_ext
5515 if $ac_preproc_ok; then :
5516
5517 else
5518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5520 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5521 See \`config.log' for more details." "$LINENO" 5; }
5522 fi
5523
5524 ac_ext=c
5525 ac_cpp='$CPP $CPPFLAGS'
5526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5529
5530
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5532 $as_echo_n "checking for ANSI C header files... " >&6; }
5533 if test "${ac_cv_header_stdc+set}" = set; then :
5534 $as_echo_n "(cached) " >&6
5535 else
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5538 #include <stdlib.h>
5539 #include <stdarg.h>
5540 #include <string.h>
5541 #include <float.h>
5542
5543 int
5544 main ()
5545 {
5546
5547 ;
5548 return 0;
5549 }
5550 _ACEOF
5551 if ac_fn_c_try_compile "$LINENO"; then :
5552 ac_cv_header_stdc=yes
5553 else
5554 ac_cv_header_stdc=no
5555 fi
5556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557
5558 if test $ac_cv_header_stdc = yes; then
5559 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5562 #include <string.h>
5563
5564 _ACEOF
5565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5566 $EGREP "memchr" >/dev/null 2>&1; then :
5567
5568 else
5569 ac_cv_header_stdc=no
5570 fi
5571 rm -f conftest*
5572
5573 fi
5574
5575 if test $ac_cv_header_stdc = yes; then
5576 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h. */
5579 #include <stdlib.h>
5580
5581 _ACEOF
5582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5583 $EGREP "free" >/dev/null 2>&1; then :
5584
5585 else
5586 ac_cv_header_stdc=no
5587 fi
5588 rm -f conftest*
5589
5590 fi
5591
5592 if test $ac_cv_header_stdc = yes; then
5593 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5594 if test "$cross_compiling" = yes; then :
5595 :
5596 else
5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h. */
5599 #include <ctype.h>
5600 #include <stdlib.h>
5601 #if ((' ' & 0x0FF) == 0x020)
5602 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5603 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5604 #else
5605 # define ISLOWER(c) \
5606 (('a' <= (c) && (c) <= 'i') \
5607 || ('j' <= (c) && (c) <= 'r') \
5608 || ('s' <= (c) && (c) <= 'z'))
5609 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5610 #endif
5611
5612 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5613 int
5614 main ()
5615 {
5616 int i;
5617 for (i = 0; i < 256; i++)
5618 if (XOR (islower (i), ISLOWER (i))
5619 || toupper (i) != TOUPPER (i))
5620 return 2;
5621 return 0;
5622 }
5623 _ACEOF
5624 if ac_fn_c_try_run "$LINENO"; then :
5625
5626 else
5627 ac_cv_header_stdc=no
5628 fi
5629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5630 conftest.$ac_objext conftest.beam conftest.$ac_ext
5631 fi
5632
5633 fi
5634 fi
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5636 $as_echo "$ac_cv_header_stdc" >&6; }
5637 if test $ac_cv_header_stdc = yes; then
5638
5639 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5640
5641 fi
5642
5643 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5644 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5645 inttypes.h stdint.h unistd.h
5646 do :
5647 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5648 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5649 "
5650 eval as_val=\$$as_ac_Header
5651 if test "x$as_val" = x""yes; then :
5652 cat >>confdefs.h <<_ACEOF
5653 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5654 _ACEOF
5655
5656 fi
5657
5658 done
5659
5660
5661 for ac_header in \
5662 AL/al.h \
5663 AudioUnit/AudioUnit.h \
5664 Carbon/Carbon.h \
5665 CoreAudio/CoreAudio.h \
5666 DiskArbitration/DiskArbitration.h \
5667 IOKit/IOKitLib.h \
5668 IOKit/hid/IOHIDLib.h \
5669 OpenAL/al.h \
5670 alias.h \
5671 alsa/asoundlib.h \
5672 arpa/inet.h \
5673 arpa/nameser.h \
5674 asm/types.h \
5675 capi20.h \
5676 curses.h \
5677 direct.h \
5678 dirent.h \
5679 dlfcn.h \
5680 elf.h \
5681 float.h \
5682 fnmatch.h \
5683 fontconfig/fontconfig.h \
5684 getopt.h \
5685 grp.h \
5686 gsm.h \
5687 gsm/gsm.h \
5688 ieeefp.h \
5689 inet/mib2.h \
5690 io.h \
5691 jack/jack.h \
5692 jpeglib.h \
5693 kstat.h \
5694 lber.h \
5695 lcms.h \
5696 lcms/lcms.h \
5697 ldap.h \
5698 libaudioio.h \
5699 link.h \
5700 linux/cdrom.h \
5701 linux/compiler.h \
5702 linux/hdreg.h \
5703 linux/input.h \
5704 linux/ioctl.h \
5705 linux/joystick.h \
5706 linux/major.h \
5707 linux/param.h \
5708 linux/serial.h \
5709 linux/types.h \
5710 linux/ucdrom.h \
5711 mach-o/nlist.h \
5712 mach/mach.h \
5713 mach/machine.h \
5714 machine/cpu.h \
5715 machine/limits.h \
5716 machine/soundcard.h \
5717 mntent.h \
5718 mpg123.h \
5719 ncurses.h \
5720 netdb.h \
5721 netinet/in.h \
5722 netinet/in_systm.h \
5723 netinet/tcp.h \
5724 netinet/tcp_fsm.h \
5725 openssl/err.h \
5726 openssl/ssl.h \
5727 png.h \
5728 poll.h \
5729 process.h \
5730 pthread.h \
5731 pwd.h \
5732 regex.h \
5733 sched.h \
5734 scsi/scsi.h \
5735 scsi/scsi_ioctl.h \
5736 scsi/sg.h \
5737 soundcard.h \
5738 stdbool.h \
5739 stdint.h \
5740 strings.h \
5741 stropts.h \
5742 sys/asoundlib.h \
5743 sys/cdio.h \
5744 sys/elf32.h \
5745 sys/epoll.h \
5746 sys/errno.h \
5747 sys/event.h \
5748 sys/exec_elf.h \
5749 sys/filio.h \
5750 sys/inotify.h \
5751 sys/ioctl.h \
5752 sys/ipc.h \
5753 sys/limits.h \
5754 sys/link.h \
5755 sys/mman.h \
5756 sys/modem.h \
5757 sys/msg.h \
5758 sys/mtio.h \
5759 sys/param.h \
5760 sys/poll.h \
5761 sys/prctl.h \
5762 sys/protosw.h \
5763 sys/ptrace.h \
5764 sys/resource.h \
5765 sys/scsiio.h \
5766 sys/shm.h \
5767 sys/signal.h \
5768 sys/socket.h \
5769 sys/socketvar.h \
5770 sys/sockio.h \
5771 sys/soundcard.h \
5772 sys/statvfs.h \
5773 sys/strtio.h \
5774 sys/syscall.h \
5775 sys/tihdr.h \
5776 sys/time.h \
5777 sys/timeout.h \
5778 sys/times.h \
5779 sys/uio.h \
5780 sys/un.h \
5781 sys/utsname.h \
5782 sys/vm86.h \
5783 sys/wait.h \
5784 syscall.h \
5785 termios.h \
5786 unistd.h \
5787 utime.h \
5788 valgrind/memcheck.h \
5789 valgrind/valgrind.h \
5790 zlib.h
5791
5792 do :
5793 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5794 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5795 eval as_val=\$$as_ac_Header
5796 if test "x$as_val" = x""yes; then :
5797 cat >>confdefs.h <<_ACEOF
5798 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5799 _ACEOF
5800
5801 fi
5802
5803 done
5804
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5806 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5807 if test "${ac_cv_header_stat_broken+set}" = set; then :
5808 $as_echo_n "(cached) " >&6
5809 else
5810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811 /* end confdefs.h. */
5812 #include <sys/types.h>
5813 #include <sys/stat.h>
5814
5815 #if defined S_ISBLK && defined S_IFDIR
5816 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5817 #endif
5818
5819 #if defined S_ISBLK && defined S_IFCHR
5820 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5821 #endif
5822
5823 #if defined S_ISLNK && defined S_IFREG
5824 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5825 #endif
5826
5827 #if defined S_ISSOCK && defined S_IFREG
5828 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5829 #endif
5830
5831 _ACEOF
5832 if ac_fn_c_try_compile "$LINENO"; then :
5833 ac_cv_header_stat_broken=no
5834 else
5835 ac_cv_header_stat_broken=yes
5836 fi
5837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5838 fi
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5840 $as_echo "$ac_cv_header_stat_broken" >&6; }
5841 if test $ac_cv_header_stat_broken = yes; then
5842
5843 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5844
5845 fi
5846
5847
5848
5849 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5850 do :
5851 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5852 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5853 #ifdef HAVE_SYS_PARAM_H
5854 # include <sys/param.h>
5855 #endif
5856 "
5857 eval as_val=\$$as_ac_Header
5858 if test "x$as_val" = x""yes; then :
5859 cat >>confdefs.h <<_ACEOF
5860 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5861 _ACEOF
5862
5863 fi
5864
5865 done
5866
5867
5868 for ac_header in \
5869 netinet/ip.h \
5870 net/if.h \
5871 net/if_arp.h \
5872 net/if_dl.h \
5873 net/if_types.h \
5874 net/route.h \
5875 netinet/if_ether.h \
5876 netinet/if_inarp.h \
5877 netinet/in_pcb.h \
5878 netinet/ip_icmp.h \
5879 netinet/ip_var.h \
5880 netinet/udp.h \
5881 netipx/ipx.h \
5882
5883 do :
5884 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5885 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5886 #ifdef HAVE_SYS_SOCKET_H
5887 # include <sys/socket.h>
5888 #endif
5889 #ifdef HAVE_SYS_SOCKETVAR_H
5890 # include <sys/socketvar.h>
5891 #endif
5892 #ifdef HAVE_NET_ROUTE_H
5893 # include <net/route.h>
5894 #endif
5895 #ifdef HAVE_NETINET_IN_H
5896 # include <netinet/in.h>
5897 #endif
5898 #ifdef HAVE_NETINET_IN_SYSTM_H
5899 # include <netinet/in_systm.h>
5900 #endif
5901 #ifdef HAVE_NET_IF_H
5902 # include <net/if.h>
5903 #endif
5904 #ifdef HAVE_NETINET_IP_H
5905 # include <netinet/ip.h>
5906 #endif
5907 "
5908 eval as_val=\$$as_ac_Header
5909 if test "x$as_val" = x""yes; then :
5910 cat >>confdefs.h <<_ACEOF
5911 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5912 _ACEOF
5913
5914 fi
5915
5916 done
5917
5918
5919 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
5920 do :
5921 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5922 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5923 #ifdef HAVE_ALIAS_H
5924 # include <alias.h>
5925 #endif
5926 #ifdef HAVE_SYS_SOCKET_H
5927 # include <sys/socket.h>
5928 #endif
5929 #ifdef HAVE_SYS_SOCKETVAR_H
5930 # include <sys/socketvar.h>
5931 #endif
5932 #ifdef HAVE_SYS_TIMEOUT_H
5933 # include <sys/timeout.h>
5934 #endif
5935 #ifdef HAVE_NETINET_IN_H
5936 # include <netinet/in.h>
5937 #endif
5938 #ifdef HAVE_NETINET_IN_SYSTM_H
5939 # include <netinet/in_systm.h>
5940 #endif
5941 #ifdef HAVE_NETINET_IP_H
5942 # include <netinet/ip.h>
5943 #endif
5944 #ifdef HAVE_NETINET_IP_VAR_H
5945 # include <netinet/ip_var.h>
5946 #endif
5947 #ifdef HAVE_NETINET_IP_ICMP_H
5948 # include <netinet/ip_icmp.h>
5949 #endif
5950 #ifdef HAVE_NETINET_UDP_H
5951 # include <netinet/udp.h>
5952 #endif
5953 #ifdef HAVE_NETINET_TCP_H
5954 # include <netinet/tcp.h>
5955 #endif
5956 #ifdef HAVE_NETINET_TCP_TIMER_H
5957 #include <netinet/tcp_timer.h>
5958 #endif
5959 "
5960 eval as_val=\$$as_ac_Header
5961 if test "x$as_val" = x""yes; then :
5962 cat >>confdefs.h <<_ACEOF
5963 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5964 _ACEOF
5965
5966 fi
5967
5968 done
5969
5970
5971 for ac_header in linux/ipx.h linux/irda.h
5972 do :
5973 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5974 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5975 #ifdef HAVE_ASM_TYPES_H
5976 # include <asm/types.h>
5977 #endif
5978 #ifdef HAVE_SYS_SOCKET_H
5979 # include <sys/socket.h>
5980 #endif
5981 #ifdef HAVE_LINUX_TYPES_H
5982 # include <linux/types.h>
5983 #endif
5984 "
5985 eval as_val=\$$as_ac_Header
5986 if test "x$as_val" = x""yes; then :
5987 cat >>confdefs.h <<_ACEOF
5988 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5989 _ACEOF
5990
5991 fi
5992
5993 done
5994
5995
5996 for ac_header in mach-o/dyld_images.h
5997 do :
5998 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
5999 # include <stdbool.h>
6000 #endif
6001 #ifdef HAVE_STDINT_H
6002 # include <stdint.h>
6003 #endif
6004 "
6005 if test "x$ac_cv_header_mach_o_dyld_images_h" = x""yes; then :
6006 cat >>confdefs.h <<_ACEOF
6007 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6008 _ACEOF
6009
6010 fi
6011
6012 done
6013
6014
6015 for ac_header in resolv.h
6016 do :
6017 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6018 #ifdef HAVE_SYS_SOCKET_H
6019 # include <sys/socket.h>
6020 #endif
6021 #ifdef HAVE_NETINET_IN_H
6022 # include <netinet/in.h>
6023 #endif
6024 #ifdef HAVE_ARPA_NAMESER_H
6025 # include <arpa/nameser.h>
6026 #endif
6027 "
6028 if test "x$ac_cv_header_resolv_h" = x""yes; then :
6029 cat >>confdefs.h <<_ACEOF
6030 #define HAVE_RESOLV_H 1
6031 _ACEOF
6032
6033 fi
6034
6035 done
6036
6037
6038 for ac_header in ucontext.h
6039 do :
6040 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6041 "
6042 if test "x$ac_cv_header_ucontext_h" = x""yes; then :
6043 cat >>confdefs.h <<_ACEOF
6044 #define HAVE_UCONTEXT_H 1
6045 _ACEOF
6046
6047 fi
6048
6049 done
6050
6051
6052 for ac_header in sys/thr.h
6053 do :
6054 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6055 #ifdef HAVE_UCONTEXT_H
6056 #include <ucontext.h>
6057 #endif
6058 "
6059 if test "x$ac_cv_header_sys_thr_h" = x""yes; then :
6060 cat >>confdefs.h <<_ACEOF
6061 #define HAVE_SYS_THR_H 1
6062 _ACEOF
6063
6064 fi
6065
6066 done
6067
6068
6069 for ac_header in pthread_np.h
6070 do :
6071 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6072 #include <pthread.h>
6073 #endif
6074 "
6075 if test "x$ac_cv_header_pthread_np_h" = x""yes; then :
6076 cat >>confdefs.h <<_ACEOF
6077 #define HAVE_PTHREAD_NP_H 1
6078 _ACEOF
6079
6080 fi
6081
6082 done
6083
6084
6085 for ac_header in linux/videodev.h
6086 do :
6087 ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "#ifdef HAVE_SYS_TIME_H
6088 #include <sys/time.h>
6089 #endif
6090 #include <sys/types.h>
6091 #ifdef HAVE_ASM_TYPES_H
6092 #include <asm/types.h>
6093 #endif
6094 "
6095 if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
6096 cat >>confdefs.h <<_ACEOF
6097 #define HAVE_LINUX_VIDEODEV_H 1
6098 _ACEOF
6099
6100 fi
6101
6102 done
6103
6104
6105 for ac_header in linux/capi.h
6106 do :
6107 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6108 "
6109 if test "x$ac_cv_header_linux_capi_h" = x""yes; then :
6110 cat >>confdefs.h <<_ACEOF
6111 #define HAVE_LINUX_CAPI_H 1
6112 _ACEOF
6113
6114 fi
6115
6116 done
6117
6118
6119
6120 DLLEXT=""
6121
6122 DLLFLAGS="-D_REENTRANT"
6123
6124 LDSHARED=""
6125
6126 LDDLLFLAGS=""
6127
6128 LIBEXT="so"
6129
6130 IMPLIBEXT="def"
6131
6132 LDRPATH_INSTALL=""
6133
6134 LDRPATH_LOCAL=""
6135
6136 # Extract the first word of "ldd", so it can be a program name with args.
6137 set dummy ldd; ac_word=$2
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6139 $as_echo_n "checking for $ac_word... " >&6; }
6140 if test "${ac_cv_path_LDD+set}" = set; then :
6141 $as_echo_n "(cached) " >&6
6142 else
6143 case $LDD in
6144 [\\/]* | ?:[\\/]*)
6145 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6146 ;;
6147 *)
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 as_dummy="/sbin:/usr/sbin:$PATH"
6150 for as_dir in $as_dummy
6151 do
6152 IFS=$as_save_IFS
6153 test -z "$as_dir" && as_dir=.
6154 for ac_exec_ext in '' $ac_executable_extensions; do
6155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6156 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6158 break 2
6159 fi
6160 done
6161 done
6162 IFS=$as_save_IFS
6163
6164 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6165 ;;
6166 esac
6167 fi
6168 LDD=$ac_cv_path_LDD
6169 if test -n "$LDD"; then
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6171 $as_echo "$LDD" >&6; }
6172 else
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 $as_echo "no" >&6; }
6175 fi
6176
6177
6178
6179 case $host_os in
6180 cygwin*|mingw32*)
6181 if test -n "$ac_tool_prefix"; then
6182 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6183 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185 $as_echo_n "checking for $ac_word... " >&6; }
6186 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6187 $as_echo_n "(cached) " >&6
6188 else
6189 if test -n "$DLLTOOL"; then
6190 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6191 else
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 for as_dir in $PATH
6194 do
6195 IFS=$as_save_IFS
6196 test -z "$as_dir" && as_dir=.
6197 for ac_exec_ext in '' $ac_executable_extensions; do
6198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6199 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6201 break 2
6202 fi
6203 done
6204 done
6205 IFS=$as_save_IFS
6206
6207 fi
6208 fi
6209 DLLTOOL=$ac_cv_prog_DLLTOOL
6210 if test -n "$DLLTOOL"; then
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6212 $as_echo "$DLLTOOL" >&6; }
6213 else
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215 $as_echo "no" >&6; }
6216 fi
6217
6218
6219 fi
6220 if test -z "$ac_cv_prog_DLLTOOL"; then
6221 ac_ct_DLLTOOL=$DLLTOOL
6222 # Extract the first word of "dlltool", so it can be a program name with args.
6223 set dummy dlltool; ac_word=$2
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6225 $as_echo_n "checking for $ac_word... " >&6; }
6226 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6227 $as_echo_n "(cached) " >&6
6228 else
6229 if test -n "$ac_ct_DLLTOOL"; then
6230 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6231 else
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 for as_dir in $PATH
6234 do
6235 IFS=$as_save_IFS
6236 test -z "$as_dir" && as_dir=.
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6239 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6241 break 2
6242 fi
6243 done
6244 done
6245 IFS=$as_save_IFS
6246
6247 fi
6248 fi
6249 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6250 if test -n "$ac_ct_DLLTOOL"; then
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6252 $as_echo "$ac_ct_DLLTOOL" >&6; }
6253 else
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255 $as_echo "no" >&6; }
6256 fi
6257
6258 if test "x$ac_ct_DLLTOOL" = x; then
6259 DLLTOOL="false"
6260 else
6261 case $cross_compiling:$ac_tool_warned in
6262 yes:)
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6265 ac_tool_warned=yes ;;
6266 esac
6267 DLLTOOL=$ac_ct_DLLTOOL
6268 fi
6269 else
6270 DLLTOOL="$ac_cv_prog_DLLTOOL"
6271 fi
6272
6273 if test -n "$ac_tool_prefix"; then
6274 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6275 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277 $as_echo_n "checking for $ac_word... " >&6; }
6278 if test "${ac_cv_prog_DLLWRAP+set}" = set; then :
6279 $as_echo_n "(cached) " >&6
6280 else
6281 if test -n "$DLLWRAP"; then
6282 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6283 else
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 for as_dir in $PATH
6286 do
6287 IFS=$as_save_IFS
6288 test -z "$as_dir" && as_dir=.
6289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6291 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6293 break 2
6294 fi
6295 done
6296 done
6297 IFS=$as_save_IFS
6298
6299 fi
6300 fi
6301 DLLWRAP=$ac_cv_prog_DLLWRAP
6302 if test -n "$DLLWRAP"; then
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6304 $as_echo "$DLLWRAP" >&6; }
6305 else
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307 $as_echo "no" >&6; }
6308 fi
6309
6310
6311 fi
6312 if test -z "$ac_cv_prog_DLLWRAP"; then
6313 ac_ct_DLLWRAP=$DLLWRAP
6314 # Extract the first word of "dllwrap", so it can be a program name with args.
6315 set dummy dllwrap; ac_word=$2
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317 $as_echo_n "checking for $ac_word... " >&6; }
6318 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then :
6319 $as_echo_n "(cached) " >&6
6320 else
6321 if test -n "$ac_ct_DLLWRAP"; then
6322 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6323 else
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 for as_dir in $PATH
6326 do
6327 IFS=$as_save_IFS
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6331 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6333 break 2
6334 fi
6335 done
6336 done
6337 IFS=$as_save_IFS
6338
6339 fi
6340 fi
6341 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6342 if test -n "$ac_ct_DLLWRAP"; then
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6344 $as_echo "$ac_ct_DLLWRAP" >&6; }
6345 else
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 $as_echo "no" >&6; }
6348 fi
6349
6350 if test "x$ac_ct_DLLWRAP" = x; then
6351 DLLWRAP="false"
6352 else
6353 case $cross_compiling:$ac_tool_warned in
6354 yes:)
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6357 ac_tool_warned=yes ;;
6358 esac
6359 DLLWRAP=$ac_ct_DLLWRAP
6360 fi
6361 else
6362 DLLWRAP="$ac_cv_prog_DLLWRAP"
6363 fi
6364
6365 if test -n "$ac_tool_prefix"; then
6366 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6367 set dummy ${ac_tool_prefix}ar; ac_word=$2
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6369 $as_echo_n "checking for $ac_word... " >&6; }
6370 if test "${ac_cv_prog_MINGWAR+set}" = set; then :
6371 $as_echo_n "(cached) " >&6
6372 else
6373 if test -n "$MINGWAR"; then
6374 ac_cv_prog_MINGWAR="$MINGWAR" # Let the user override the test.
6375 else
6376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377 for as_dir in $PATH
6378 do
6379 IFS=$as_save_IFS
6380 test -z "$as_dir" && as_dir=.
6381 for ac_exec_ext in '' $ac_executable_extensions; do
6382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6383 ac_cv_prog_MINGWAR="${ac_tool_prefix}ar"
6384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6385 break 2
6386 fi
6387 done
6388 done
6389 IFS=$as_save_IFS
6390
6391 fi
6392 fi
6393 MINGWAR=$ac_cv_prog_MINGWAR
6394 if test -n "$MINGWAR"; then
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MINGWAR" >&5
6396 $as_echo "$MINGWAR" >&6; }
6397 else
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399 $as_echo "no" >&6; }
6400 fi
6401
6402
6403 fi
6404 if test -z "$ac_cv_prog_MINGWAR"; then
6405 ac_ct_MINGWAR=$MINGWAR
6406 # Extract the first word of "ar", so it can be a program name with args.
6407 set dummy ar; ac_word=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if test "${ac_cv_prog_ac_ct_MINGWAR+set}" = set; then :
6411 $as_echo_n "(cached) " >&6
6412 else
6413 if test -n "$ac_ct_MINGWAR"; then
6414 ac_cv_prog_ac_ct_MINGWAR="$ac_ct_MINGWAR" # Let the user override the test.
6415 else
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 for as_dir in $PATH
6418 do
6419 IFS=$as_save_IFS
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6423 ac_cv_prog_ac_ct_MINGWAR="ar"
6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425 break 2
6426 fi
6427 done
6428 done
6429 IFS=$as_save_IFS
6430
6431 fi
6432 fi
6433 ac_ct_MINGWAR=$ac_cv_prog_ac_ct_MINGWAR
6434 if test -n "$ac_ct_MINGWAR"; then
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MINGWAR" >&5
6436 $as_echo "$ac_ct_MINGWAR" >&6; }
6437 else
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6440 fi
6441
6442 if test "x$ac_ct_MINGWAR" = x; then
6443 MINGWAR="false"
6444 else
6445 case $cross_compiling:$ac_tool_warned in
6446 yes:)
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6449 ac_tool_warned=yes ;;
6450 esac
6451 MINGWAR=$ac_ct_MINGWAR
6452 fi
6453 else
6454 MINGWAR="$ac_cv_prog_MINGWAR"
6455 fi
6456
6457 if test "$DLLWRAP" = "false"; then
6458 LIBEXT="a"
6459 else
6460 LIBEXT="dll"
6461 fi
6462 IMPLIBEXT="a"
6463 enable_iphlpapi=${enable_iphlpapi:-no}
6464 enable_kernel32=${enable_kernel32:-no}
6465 enable_msvcrt=${enable_msvcrt:-no}
6466 enable_ntdll=${enable_ntdll:-no}
6467 enable_ws2_32=${enable_ws2_32:-no}
6468 enable_loader=${enable_loader:-no}
6469 enable_server=${enable_server:-no}
6470 with_x=${with_x:-no}
6471 with_pthread=${with_pthread:-no}
6472 ;;
6473 darwin*|macosx*)
6474 DLLEXT=".so"
6475 LIBEXT="dylib"
6476 DLLFLAGS="$DLLFLAGS -fPIC"
6477 LDDLLFLAGS="-bundle -multiply_defined suppress"
6478 LIBWINE_LDFLAGS="-multiply_defined suppress"
6479 LDSHARED="\$(CC) -dynamiclib"
6480 STRIP="$STRIP -x"
6481 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(TOPOBJDIR)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6482 SECURITYLIB="-framework Security -framework CoreFoundation"
6483
6484 COREFOUNDATIONLIB="-framework CoreFoundation"
6485
6486 IOKITLIB="-framework IOKit -framework CoreFoundation"
6487
6488 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6489
6490 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6491 then
6492 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6493
6494 fi
6495 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6496 then
6497 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6498
6499 fi
6500 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6501 then
6502 LIBOPENAL="-framework OpenAL"
6503
6504 ac_cv_lib_openal_alGetSource3i=yes
6505 fi
6506 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6507 then
6508 ac_save_LIBS="$LIBS"
6509 LIBS="$LIBS $IOKITLIB"
6510 for ac_func in IOHIDManagerCreate
6511 do :
6512 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6513 if test "x$ac_cv_func_IOHIDManagerCreate" = x""yes; then :
6514 cat >>confdefs.h <<_ACEOF
6515 #define HAVE_IOHIDMANAGERCREATE 1
6516 _ACEOF
6517
6518 fi
6519 done
6520
6521 LIBS="$ac_save_LIBS"
6522 fi
6523 case $host_cpu in
6524 *powerpc*)
6525 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6526 esac
6527 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6528 then
6529 CARBONLIB="-framework Carbon"
6530
6531 enable_winequartz_drv=${enable_winequartz_drv:-yes}
6532 fi
6533 if test "x$enable_win16" = "xyes"
6534 then
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6536 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6537 if test "$cross_compiling" = yes; then :
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6539 $as_echo "cross-compiling, assuming yes" >&6; }
6540 else
6541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6542 /* end confdefs.h. */
6543 asm(".text\n"
6544 "bad:\tnop;nop\n"
6545 "good:\tnop;nop\n\t"
6546 ".globl _testfunc\n"
6547 "_testfunc:\tcallw good");
6548 extern void testfunc();
6549 int
6550 main ()
6551 {
6552 unsigned short *p = (unsigned short *)testfunc;
6553 return p[0] != 0xe866 || p[1] != 0xfffa
6554 ;
6555 return 0;
6556 }
6557 _ACEOF
6558 if ac_fn_c_try_run "$LINENO"; then :
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6560 $as_echo "yes" >&6; }
6561 else
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563 $as_echo "no" >&6; }
6564 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
6565 fi
6566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6567 conftest.$ac_objext conftest.beam conftest.$ac_ext
6568 fi
6569
6570 fi
6571 ;;
6572 *)
6573 DLLFLAGS="$DLLFLAGS -fPIC"
6574 DLLEXT=".so"
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6576 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6577 if test "${ac_cv_c_dll_gnuelf+set}" = set; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580 ac_wine_try_cflags_saved=$CFLAGS
6581 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h. */
6584 void myfunc() {}
6585 _ACEOF
6586 if ac_fn_c_try_link "$LINENO"; then :
6587 ac_cv_c_dll_gnuelf="yes"
6588 else
6589 ac_cv_c_dll_gnuelf="no"
6590 fi
6591 rm -f core conftest.err conftest.$ac_objext \
6592 conftest$ac_exeext conftest.$ac_ext
6593 CFLAGS=$ac_wine_try_cflags_saved
6594 fi
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6596 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6597 if test "$ac_cv_c_dll_gnuelf" = "yes"
6598 then
6599 LDSHARED="\$(CC) -shared"
6600 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6602 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6603 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then :
6604 $as_echo_n "(cached) " >&6
6605 else
6606 ac_wine_try_cflags_saved=$CFLAGS
6607 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609 /* end confdefs.h. */
6610
6611 int
6612 main ()
6613 {
6614
6615 ;
6616 return 0;
6617 }
6618 _ACEOF
6619 if ac_fn_c_try_link "$LINENO"; then :
6620 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6621 else
6622 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6623 fi
6624 rm -f core conftest.err conftest.$ac_objext \
6625 conftest$ac_exeext conftest.$ac_ext
6626 CFLAGS=$ac_wine_try_cflags_saved
6627 fi
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6629 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6630 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6631 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6632 else
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6634 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6635 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then :
6636 $as_echo_n "(cached) " >&6
6637 else
6638 ac_wine_try_cflags_saved=$CFLAGS
6639 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641 /* end confdefs.h. */
6642
6643 int
6644 main ()
6645 {
6646
6647 ;
6648 return 0;
6649 }
6650 _ACEOF
6651 if ac_fn_c_try_link "$LINENO"; then :
6652 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6653 else
6654 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6655 fi
6656 rm -f core conftest.err conftest.$ac_objext \
6657 conftest$ac_exeext conftest.$ac_ext
6658 CFLAGS=$ac_wine_try_cflags_saved
6659 fi
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6661 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6662 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6663 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6664 fi
6665 fi
6666
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6668 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6669 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then :
6670 $as_echo_n "(cached) " >&6
6671 else
6672 ac_wine_try_cflags_saved=$CFLAGS
6673 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6675 /* end confdefs.h. */
6676
6677 int
6678 main ()
6679 {
6680
6681 ;
6682 return 0;
6683 }
6684 _ACEOF
6685 if ac_fn_c_try_link "$LINENO"; then :
6686 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6687 else
6688 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6689 fi
6690 rm -f core conftest.err conftest.$ac_objext \
6691 conftest$ac_exeext conftest.$ac_ext
6692 CFLAGS=$ac_wine_try_cflags_saved
6693 fi
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6695 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6696 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6697 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6698 fi
6699
6700 { $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
6701 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6702 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then :
6703 $as_echo_n "(cached) " >&6
6704 else
6705 ac_wine_try_cflags_saved=$CFLAGS
6706 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6708 /* end confdefs.h. */
6709
6710 int
6711 main ()
6712 {
6713
6714 ;
6715 return 0;
6716 }
6717 _ACEOF
6718 if ac_fn_c_try_link "$LINENO"; then :
6719 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6720 else
6721 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6722 fi
6723 rm -f core conftest.err conftest.$ac_objext \
6724 conftest$ac_exeext conftest.$ac_ext
6725 CFLAGS=$ac_wine_try_cflags_saved
6726 fi
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6728 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6729 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6730 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6731 fi
6732
6733 echo '{ global: *; };' >conftest.map
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6735 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6736 if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then :
6737 $as_echo_n "(cached) " >&6
6738 else
6739 ac_wine_try_cflags_saved=$CFLAGS
6740 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h. */
6743
6744 int
6745 main ()
6746 {
6747
6748 ;
6749 return 0;
6750 }
6751 _ACEOF
6752 if ac_fn_c_try_link "$LINENO"; then :
6753 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
6754 else
6755 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
6756 fi
6757 rm -f core conftest.err conftest.$ac_objext \
6758 conftest$ac_exeext conftest.$ac_ext
6759 CFLAGS=$ac_wine_try_cflags_saved
6760 fi
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
6762 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
6763 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
6764 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6765 fi
6766 rm -f conftest.map
6767
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6769 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6770 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then :
6771 $as_echo_n "(cached) " >&6
6772 else
6773 ac_wine_try_cflags_saved=$CFLAGS
6774 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6777
6778 int
6779 main ()
6780 {
6781
6782 ;
6783 return 0;
6784 }
6785 _ACEOF
6786 if ac_fn_c_try_link "$LINENO"; then :
6787 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6788 else
6789 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6790 fi
6791 rm -f core conftest.err conftest.$ac_objext \
6792 conftest$ac_exeext conftest.$ac_ext
6793 CFLAGS=$ac_wine_try_cflags_saved
6794 fi
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6796 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6797 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6798 LDEXECFLAGS="-Wl,--export-dynamic"
6799
6800 fi
6801
6802 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6804 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6805 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then :
6806 $as_echo_n "(cached) " >&6
6807 else
6808 ac_wine_try_cflags_saved=$CFLAGS
6809 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h. */
6812
6813 int
6814 main ()
6815 {
6816
6817 ;
6818 return 0;
6819 }
6820 _ACEOF
6821 if ac_fn_c_try_link "$LINENO"; then :
6822 eval "$as_ac_var=yes"
6823 else
6824 eval "$as_ac_var=no"
6825 fi
6826 rm -f core conftest.err conftest.$ac_objext \
6827 conftest$ac_exeext conftest.$ac_ext
6828 CFLAGS=$ac_wine_try_cflags_saved
6829 fi
6830 eval ac_res=\$$as_ac_var
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6832 $as_echo "$ac_res" >&6; }
6833 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6834 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6835 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
6836 else
6837 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6839 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6840 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then :
6841 $as_echo_n "(cached) " >&6
6842 else
6843 ac_wine_try_cflags_saved=$CFLAGS
6844 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846 /* end confdefs.h. */
6847
6848 int
6849 main ()
6850 {
6851
6852 ;
6853 return 0;
6854 }
6855 _ACEOF
6856 if ac_fn_c_try_link "$LINENO"; then :
6857 eval "$as_ac_var=yes"
6858 else
6859 eval "$as_ac_var=no"
6860 fi
6861 rm -f core conftest.err conftest.$ac_objext \
6862 conftest$ac_exeext conftest.$ac_ext
6863 CFLAGS=$ac_wine_try_cflags_saved
6864 fi
6865 eval ac_res=\$$as_ac_var
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6867 $as_echo "$ac_res" >&6; }
6868 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6869 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6870 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
6871 fi
6872 fi
6873
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6875 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6876 if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then :
6877 $as_echo_n "(cached) " >&6
6878 else
6879 ac_wine_try_cflags_saved=$CFLAGS
6880 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882 /* end confdefs.h. */
6883
6884 int
6885 main ()
6886 {
6887
6888 ;
6889 return 0;
6890 }
6891 _ACEOF
6892 if ac_fn_c_try_link "$LINENO"; then :
6893 ac_cv_cflags__Wl___enable_new_dtags=yes
6894 else
6895 ac_cv_cflags__Wl___enable_new_dtags=no
6896 fi
6897 rm -f core conftest.err conftest.$ac_objext \
6898 conftest$ac_exeext conftest.$ac_ext
6899 CFLAGS=$ac_wine_try_cflags_saved
6900 fi
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6902 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6903 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6904 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6905 fi
6906
6907 case $host_cpu in
6908 *i[3456789]86* | x86_64)
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6910 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6911 if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then :
6912 $as_echo_n "(cached) " >&6
6913 else
6914 ac_wine_try_cflags_saved=$CFLAGS
6915 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6917 /* end confdefs.h. */
6918
6919 int
6920 main ()
6921 {
6922
6923 ;
6924 return 0;
6925 }
6926 _ACEOF
6927 if ac_fn_c_try_link "$LINENO"; then :
6928 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
6929 else
6930 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
6931 fi
6932 rm -f core conftest.err conftest.$ac_objext \
6933 conftest$ac_exeext conftest.$ac_ext
6934 CFLAGS=$ac_wine_try_cflags_saved
6935 fi
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
6937 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
6938 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
6939 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
6940 fi
6941 ;;
6942 esac
6943
6944 else
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
6946 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
6947 if test "${ac_cv_c_dll_unixware+set}" = set; then :
6948 $as_echo_n "(cached) " >&6
6949 else
6950 ac_wine_try_cflags_saved=$CFLAGS
6951 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
6952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953 /* end confdefs.h. */
6954 void myfunc() {}
6955 _ACEOF
6956 if ac_fn_c_try_link "$LINENO"; then :
6957 ac_cv_c_dll_unixware="yes"
6958 else
6959 ac_cv_c_dll_unixware="no"
6960 fi
6961 rm -f core conftest.err conftest.$ac_objext \
6962 conftest$ac_exeext conftest.$ac_ext
6963 CFLAGS=$ac_wine_try_cflags_saved
6964 fi
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
6966 $as_echo "$ac_cv_c_dll_unixware" >&6; }
6967 if test "$ac_cv_c_dll_unixware" = "yes"
6968 then
6969 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
6970 LDDLLFLAGS="-Wl,-G,-B,symbolic"
6971
6972 else
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
6974 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
6975 if test "${ac_cv_c_dll_hpux+set}" = set; then :
6976 $as_echo_n "(cached) " >&6
6977 else
6978 ac_wine_try_cflags_saved=$CFLAGS
6979 CFLAGS="$CFLAGS -shared"
6980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6981 /* end confdefs.h. */
6982 void myfunc() {}
6983 _ACEOF
6984 if ac_fn_c_try_link "$LINENO"; then :
6985 ac_cv_c_dll_hpux="yes"
6986 else
6987 ac_cv_c_dll_hpux="no"
6988 fi
6989 rm -f core conftest.err conftest.$ac_objext \
6990 conftest$ac_exeext conftest.$ac_ext
6991 CFLAGS=$ac_wine_try_cflags_saved
6992 fi
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
6994 $as_echo "$ac_cv_c_dll_hpux" >&6; }
6995 if test "$ac_cv_c_dll_hpux" = "yes"
6996 then
6997 LIBEXT="sl"
6998 DLLEXT=".sl"
6999 LDDLLFLAGS="-shared -fPIC"
7000 LDSHARED="\$(CC) -shared"
7001 fi
7002 fi
7003 fi
7004 ;;
7005 esac
7006
7007 enable_winequartz_drv=${enable_winequartz_drv:-no}
7008
7009 if test "$LIBEXT" = "a"; then
7010 as_fn_error "could not find a way to build shared libraries.
7011 It is currently not possible to build Wine without shared library
7012 (.so) support to allow transparent switch between .so and .dll files.
7013 If you are using Linux, you will need a newer binutils.
7014 " "$LINENO" 5
7015 fi
7016
7017 if test "$cross_compiling" = "no" -a "$LIBEXT" != "dll"
7018 then
7019 for ac_prog in $host_cpu-pc-mingw32-gcc i586-mingw32msvc-gcc i386-mingw32msvc-gcc i686-mingw32-gcc i586-mingw32-gcc i486-mingw32-gcc i386-mingw32-gcc i686-pc-mingw32-gcc
7020 do
7021 # Extract the first word of "$ac_prog", so it can be a program name with args.
7022 set dummy $ac_prog; ac_word=$2
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7024 $as_echo_n "checking for $ac_word... " >&6; }
7025 if test "${ac_cv_prog_CROSSCC+set}" = set; then :
7026 $as_echo_n "(cached) " >&6
7027 else
7028 if test -n "$CROSSCC"; then
7029 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7030 else
7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032 for as_dir in $PATH
7033 do
7034 IFS=$as_save_IFS
7035 test -z "$as_dir" && as_dir=.
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7038 ac_cv_prog_CROSSCC="$ac_prog"
7039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7040 break 2
7041 fi
7042 done
7043 done
7044 IFS=$as_save_IFS
7045
7046 fi
7047 fi
7048 CROSSCC=$ac_cv_prog_CROSSCC
7049 if test -n "$CROSSCC"; then
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7051 $as_echo "$CROSSCC" >&6; }
7052 else
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7054 $as_echo "no" >&6; }
7055 fi
7056
7057
7058 test -n "$CROSSCC" && break
7059 done
7060 test -n "$CROSSCC" || CROSSCC="false"
7061
7062 for ac_prog in $host_cpu-pc-mingw32-dlltool i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i686-mingw32-dlltool i586-mingw32-dlltool i486-mingw32-dlltool i386-mingw32-dlltool i686-pc-mingw32-dlltool
7063 do
7064 # Extract the first word of "$ac_prog", so it can be a program name with args.
7065 set dummy $ac_prog; ac_word=$2
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067 $as_echo_n "checking for $ac_word... " >&6; }
7068 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7069 $as_echo_n "(cached) " >&6
7070 else
7071 if test -n "$DLLTOOL"; then
7072 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7073 else
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 for as_dir in $PATH
7076 do
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7081 ac_cv_prog_DLLTOOL="$ac_prog"
7082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 break 2
7084 fi
7085 done
7086 done
7087 IFS=$as_save_IFS
7088
7089 fi
7090 fi
7091 DLLTOOL=$ac_cv_prog_DLLTOOL
7092 if test -n "$DLLTOOL"; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7094 $as_echo "$DLLTOOL" >&6; }
7095 else
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097 $as_echo "no" >&6; }
7098 fi
7099
7100
7101 test -n "$DLLTOOL" && break
7102 done
7103 test -n "$DLLTOOL" || DLLTOOL="false"
7104
7105 for ac_prog in $host_cpu-pc-mingw32-ar i586-mingw32msvc-ar i386-mingw32msvc-ar i686-mingw32-ar i586-mingw32-ar i486-mingw32-ar i386-mingw32-ar i686-pc-mingw32-ar
7106 do
7107 # Extract the first word of "$ac_prog", so it can be a program name with args.
7108 set dummy $ac_prog; ac_word=$2
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7110 $as_echo_n "checking for $ac_word... " >&6; }
7111 if test "${ac_cv_prog_MINGWAR+set}" = set; then :
7112 $as_echo_n "(cached) " >&6
7113 else
7114 if test -n "$MINGWAR"; then
7115 ac_cv_prog_MINGWAR="$MINGWAR" # Let the user override the test.
7116 else
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH
7119 do
7120 IFS=$as_save_IFS
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7124 ac_cv_prog_MINGWAR="$ac_prog"
7125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 break 2
7127 fi
7128 done
7129 done
7130 IFS=$as_save_IFS
7131
7132 fi
7133 fi
7134 MINGWAR=$ac_cv_prog_MINGWAR
7135 if test -n "$MINGWAR"; then
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MINGWAR" >&5
7137 $as_echo "$MINGWAR" >&6; }
7138 else
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7140 $as_echo "no" >&6; }
7141 fi
7142
7143
7144 test -n "$MINGWAR" && break
7145 done
7146 test -n "$MINGWAR" || MINGWAR="false"
7147
7148 if test "$CROSSCC" != "false"
7149 then
7150 CROSSTEST="\$(CROSSTEST)"
7151
7152 set x $CROSSCC
7153 shift
7154 target=""
7155 while test $# -ge 1
7156 do
7157 case "$1" in
7158 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7159 esac
7160 shift
7161 done
7162 if test -n "$target"
7163 then
7164 CROSSTARGETFLAGS="-b $target"
7165
7166 fi
7167 fi
7168 fi
7169
7170
7171 if test "$ac_cv_header_pthread_h" = "yes"
7172 then
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7174 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7175 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
7176 $as_echo_n "(cached) " >&6
7177 else
7178 ac_check_lib_save_LIBS=$LIBS
7179 LIBS="-lpthread $LIBS"
7180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181 /* end confdefs.h. */
7182
7183 /* Override any GCC internal prototype to avoid an error.
7184 Use char because int might match the return type of a GCC
7185 builtin and then its argument prototype would still apply. */
7186 #ifdef __cplusplus
7187 extern "C"
7188 #endif
7189 char pthread_create ();
7190 int
7191 main ()
7192 {
7193 return pthread_create ();
7194 ;
7195 return 0;
7196 }
7197 _ACEOF
7198 if ac_fn_c_try_link "$LINENO"; then :
7199 ac_cv_lib_pthread_pthread_create=yes
7200 else
7201 ac_cv_lib_pthread_pthread_create=no
7202 fi
7203 rm -f core conftest.err conftest.$ac_objext \
7204 conftest$ac_exeext conftest.$ac_ext
7205 LIBS=$ac_check_lib_save_LIBS
7206 fi
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7208 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7209 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
7210 LIBPTHREAD="-lpthread"
7211
7212 fi
7213
7214 fi
7215 if test "x$LIBPTHREAD" = "x"; then :
7216 case "x$with_pthread" in
7217 xno) ;;
7218 *) as_fn_error "pthread ${notice_platform}development files not found.
7219 Wine cannot support threads without libpthread.
7220 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7221 esac
7222 fi
7223
7224
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7226 $as_echo_n "checking for X... " >&6; }
7227
7228
7229 # Check whether --with-x was given.
7230 if test "${with_x+set}" = set; then :
7231 withval=$with_x;
7232 fi
7233
7234 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7235 if test "x$with_x" = xno; then
7236 # The user explicitly disabled X.
7237 have_x=disabled
7238 else
7239 case $x_includes,$x_libraries in #(
7240 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
7241 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7242 $as_echo_n "(cached) " >&6
7243 else
7244 # One or both of the vars are not set, and there is no cached value.
7245 ac_x_includes=no ac_x_libraries=no
7246 rm -f -r conftest.dir
7247 if mkdir conftest.dir; then
7248 cd conftest.dir
7249 cat >Imakefile <<'_ACEOF'
7250 incroot:
7251 @echo incroot='${INCROOT}'
7252 usrlibdir:
7253 @echo usrlibdir='${USRLIBDIR}'
7254 libdir:
7255 @echo libdir='${LIBDIR}'
7256 _ACEOF
7257 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7258 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7259 for ac_var in incroot usrlibdir libdir; do
7260 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7261 done
7262 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7263 for ac_extension in a so sl dylib la dll; do
7264 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7265 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7266 ac_im_usrlibdir=$ac_im_libdir; break
7267 fi
7268 done
7269 # Screen out bogus values from the imake configuration. They are
7270 # bogus both because they are the default anyway, and because
7271 # using them would break gcc on systems where it needs fixed includes.
7272 case $ac_im_incroot in
7273 /usr/include) ac_x_includes= ;;
7274 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7275 esac
7276 case $ac_im_usrlibdir in
7277 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7278 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7279 esac
7280 fi
7281 cd ..
7282 rm -f -r conftest.dir
7283 fi
7284
7285 # Standard set of common directories for X headers.
7286 # Check X11 before X11Rn because it is often a symlink to the current release.
7287 ac_x_header_dirs='
7288 /usr/X11/include
7289 /usr/X11R7/include
7290 /usr/X11R6/include
7291 /usr/X11R5/include
7292 /usr/X11R4/include
7293
7294 /usr/include/X11
7295 /usr/include/X11R7
7296 /usr/include/X11R6
7297 /usr/include/X11R5
7298 /usr/include/X11R4
7299
7300 /usr/local/X11/include
7301 /usr/local/X11R7/include
7302 /usr/local/X11R6/include
7303 /usr/local/X11R5/include
7304 /usr/local/X11R4/include
7305
7306 /usr/local/include/X11
7307 /usr/local/include/X11R7
7308 /usr/local/include/X11R6
7309 /usr/local/include/X11R5
7310 /usr/local/include/X11R4
7311
7312 /usr/X386/include
7313 /usr/x386/include
7314 /usr/XFree86/include/X11
7315
7316 /usr/include
7317 /usr/local/include
7318 /usr/unsupported/include
7319 /usr/athena/include
7320 /usr/local/x11r5/include
7321 /usr/lpp/Xamples/include
7322
7323 /usr/openwin/include
7324 /usr/openwin/share/include'
7325
7326 if test "$ac_x_includes" = no; then
7327 # Guess where to find include files, by looking for Xlib.h.
7328 # First, try using that file with no special directory specified.
7329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7330 /* end confdefs.h. */
7331 #include <X11/Xlib.h>
7332 _ACEOF
7333 if ac_fn_c_try_cpp "$LINENO"; then :
7334 # We can compile using X headers with no special include directory.
7335 ac_x_includes=
7336 else
7337 for ac_dir in $ac_x_header_dirs; do
7338 if test -r "$ac_dir/X11/Xlib.h"; then
7339 ac_x_includes=$ac_dir
7340 break
7341 fi
7342 done
7343 fi
7344 rm -f conftest.err conftest.$ac_ext
7345 fi # $ac_x_includes = no
7346
7347 if test "$ac_x_libraries" = no; then
7348 # Check for the libraries.
7349 # See if we find them without any special options.
7350 # Don't add to $LIBS permanently.
7351 ac_save_LIBS=$LIBS
7352 LIBS="-lX11 $LIBS"
7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h. */
7355 #include <X11/Xlib.h>
7356 int
7357 main ()
7358 {
7359 XrmInitialize ()
7360 ;
7361 return 0;
7362 }
7363 _ACEOF
7364 if ac_fn_c_try_link "$LINENO"; then :
7365 LIBS=$ac_save_LIBS
7366 # We can link X programs with no special library path.
7367 ac_x_libraries=
7368 else
7369 LIBS=$ac_save_LIBS
7370 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7371 do
7372 # Don't even attempt the hair of trying to link an X program!
7373 for ac_extension in a so sl dylib la dll; do
7374 if test -r "$ac_dir/libX11.$ac_extension"; then
7375 ac_x_libraries=$ac_dir
7376 break 2
7377 fi
7378 done
7379 done
7380 fi
7381 rm -f core conftest.err conftest.$ac_objext \
7382 conftest$ac_exeext conftest.$ac_ext
7383 fi # $ac_x_libraries = no
7384
7385 case $ac_x_includes,$ac_x_libraries in #(
7386 no,* | *,no | *\'*)
7387 # Didn't find X, or a directory has "'" in its name.
7388 ac_cv_have_x="have_x=no";; #(
7389 *)
7390 # Record where we found X for the cache.
7391 ac_cv_have_x="have_x=yes\
7392 ac_x_includes='$ac_x_includes'\
7393 ac_x_libraries='$ac_x_libraries'"
7394 esac
7395 fi
7396 ;; #(
7397 *) have_x=yes;;
7398 esac
7399 eval "$ac_cv_have_x"
7400 fi # $with_x != no
7401
7402 if test "$have_x" != yes; then
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7404 $as_echo "$have_x" >&6; }
7405 no_x=yes
7406 else
7407 # If each of the values was on the command line, it overrides each guess.
7408 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7409 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7410 # Update the cache value to reflect the command line values.
7411 ac_cv_have_x="have_x=yes\
7412 ac_x_includes='$x_includes'\
7413 ac_x_libraries='$x_libraries'"
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7415 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7416 fi
7417
7418 if test "$no_x" = yes; then
7419 # Not all programs may use this symbol, but it does not hurt to define it.
7420
7421 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7422
7423 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7424 else
7425 if test -n "$x_includes"; then
7426 X_CFLAGS="$X_CFLAGS -I$x_includes"
7427 fi
7428
7429 # It would also be nice to do this for all -L options, not just this one.
7430 if test -n "$x_libraries"; then
7431 X_LIBS="$X_LIBS -L$x_libraries"
7432 # For Solaris; some versions of Sun CC require a space after -R and
7433 # others require no space. Words are not sufficient . . . .
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7435 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7436 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7437 ac_xsave_c_werror_flag=$ac_c_werror_flag
7438 ac_c_werror_flag=yes
7439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7440 /* end confdefs.h. */
7441
7442 int
7443 main ()
7444 {
7445
7446 ;
7447 return 0;
7448 }
7449 _ACEOF
7450 if ac_fn_c_try_link "$LINENO"; then :
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452 $as_echo "no" >&6; }
7453 X_LIBS="$X_LIBS -R$x_libraries"
7454 else
7455 LIBS="$ac_xsave_LIBS -R $x_libraries"
7456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7457 /* end confdefs.h. */
7458
7459 int
7460 main ()
7461 {
7462
7463 ;
7464 return 0;
7465 }
7466 _ACEOF
7467 if ac_fn_c_try_link "$LINENO"; then :
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7469 $as_echo "yes" >&6; }
7470 X_LIBS="$X_LIBS -R $x_libraries"
7471 else
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7473 $as_echo "neither works" >&6; }
7474 fi
7475 rm -f core conftest.err conftest.$ac_objext \
7476 conftest$ac_exeext conftest.$ac_ext
7477 fi
7478 rm -f core conftest.err conftest.$ac_objext \
7479 conftest$ac_exeext conftest.$ac_ext
7480 ac_c_werror_flag=$ac_xsave_c_werror_flag
7481 LIBS=$ac_xsave_LIBS
7482 fi
7483
7484 # Check for system-dependent libraries X programs must link with.
7485 # Do this before checking for the system-independent R6 libraries
7486 # (-lICE), since we may need -lsocket or whatever for X linking.
7487
7488 if test "$ISC" = yes; then
7489 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7490 else
7491 # Martyn Johnson says this is needed for Ultrix, if the X
7492 # libraries were built with DECnet support. And Karl Berry says
7493 # the Alpha needs dnet_stub (dnet does not exist).
7494 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h. */
7497
7498 /* Override any GCC internal prototype to avoid an error.
7499 Use char because int might match the return type of a GCC
7500 builtin and then its argument prototype would still apply. */
7501 #ifdef __cplusplus
7502 extern "C"
7503 #endif
7504 char XOpenDisplay ();
7505 int
7506 main ()
7507 {
7508 return XOpenDisplay ();
7509 ;
7510 return 0;
7511 }
7512 _ACEOF
7513 if ac_fn_c_try_link "$LINENO"; then :
7514
7515 else
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7517 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7518 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7519 $as_echo_n "(cached) " >&6
7520 else
7521 ac_check_lib_save_LIBS=$LIBS
7522 LIBS="-ldnet $LIBS"
7523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524 /* end confdefs.h. */
7525
7526 /* Override any GCC internal prototype to avoid an error.
7527 Use char because int might match the return type of a GCC
7528 builtin and then its argument prototype would still apply. */
7529 #ifdef __cplusplus
7530 extern "C"
7531 #endif
7532 char dnet_ntoa ();
7533 int
7534 main ()
7535 {
7536 return dnet_ntoa ();
7537 ;
7538 return 0;
7539 }
7540 _ACEOF
7541 if ac_fn_c_try_link "$LINENO"; then :
7542 ac_cv_lib_dnet_dnet_ntoa=yes
7543 else
7544 ac_cv_lib_dnet_dnet_ntoa=no
7545 fi
7546 rm -f core conftest.err conftest.$ac_objext \
7547 conftest$ac_exeext conftest.$ac_ext
7548 LIBS=$ac_check_lib_save_LIBS
7549 fi
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7551 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7552 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7553 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7554 fi
7555
7556 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7558 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7559 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
7560 $as_echo_n "(cached) " >&6
7561 else
7562 ac_check_lib_save_LIBS=$LIBS
7563 LIBS="-ldnet_stub $LIBS"
7564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565 /* end confdefs.h. */
7566
7567 /* Override any GCC internal prototype to avoid an error.
7568 Use char because int might match the return type of a GCC
7569 builtin and then its argument prototype would still apply. */
7570 #ifdef __cplusplus
7571 extern "C"
7572 #endif
7573 char dnet_ntoa ();
7574 int
7575 main ()
7576 {
7577 return dnet_ntoa ();
7578 ;
7579 return 0;
7580 }
7581 _ACEOF
7582 if ac_fn_c_try_link "$LINENO"; then :
7583 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7584 else
7585 ac_cv_lib_dnet_stub_dnet_ntoa=no
7586 fi
7587 rm -f core conftest.err conftest.$ac_objext \
7588 conftest$ac_exeext conftest.$ac_ext
7589 LIBS=$ac_check_lib_save_LIBS
7590 fi
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7592 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7593 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
7594 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7595 fi
7596
7597 fi
7598 fi
7599 rm -f core conftest.err conftest.$ac_objext \
7600 conftest$ac_exeext conftest.$ac_ext
7601 LIBS="$ac_xsave_LIBS"
7602
7603 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7604 # to get the SysV transport functions.
7605 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7606 # needs -lnsl.
7607 # The nsl library prevents programs from opening the X display
7608 # on Irix 5.2, according to T.E. Dickey.
7609 # The functions gethostbyname, getservbyname, and inet_addr are
7610 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7611 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7612 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
7613
7614 fi
7615
7616 if test $ac_cv_func_gethostbyname = no; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7618 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7619 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
7620 $as_echo_n "(cached) " >&6
7621 else
7622 ac_check_lib_save_LIBS=$LIBS
7623 LIBS="-lnsl $LIBS"
7624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7625 /* end confdefs.h. */
7626
7627 /* Override any GCC internal prototype to avoid an error.
7628 Use char because int might match the return type of a GCC
7629 builtin and then its argument prototype would still apply. */
7630 #ifdef __cplusplus
7631 extern "C"
7632 #endif
7633 char gethostbyname ();
7634 int
7635 main ()
7636 {
7637 return gethostbyname ();
7638 ;
7639 return 0;
7640 }
7641 _ACEOF
7642 if ac_fn_c_try_link "$LINENO"; then :
7643 ac_cv_lib_nsl_gethostbyname=yes
7644 else
7645 ac_cv_lib_nsl_gethostbyname=no
7646 fi
7647 rm -f core conftest.err conftest.$ac_objext \
7648 conftest$ac_exeext conftest.$ac_ext
7649 LIBS=$ac_check_lib_save_LIBS
7650 fi
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7652 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7653 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
7654 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7655 fi
7656
7657 if test $ac_cv_lib_nsl_gethostbyname = no; then
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7659 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7660 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
7661 $as_echo_n "(cached) " >&6
7662 else
7663 ac_check_lib_save_LIBS=$LIBS
7664 LIBS="-lbsd $LIBS"
7665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666 /* end confdefs.h. */
7667
7668 /* Override any GCC internal prototype to avoid an error.
7669 Use char because int might match the return type of a GCC
7670 builtin and then its argument prototype would still apply. */
7671 #ifdef __cplusplus
7672 extern "C"
7673 #endif
7674 char gethostbyname ();
7675 int
7676 main ()
7677 {
7678 return gethostbyname ();
7679 ;
7680 return 0;
7681 }
7682 _ACEOF
7683 if ac_fn_c_try_link "$LINENO"; then :
7684 ac_cv_lib_bsd_gethostbyname=yes
7685 else
7686 ac_cv_lib_bsd_gethostbyname=no
7687 fi
7688 rm -f core conftest.err conftest.$ac_objext \
7689 conftest$ac_exeext conftest.$ac_ext
7690 LIBS=$ac_check_lib_save_LIBS
7691 fi
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7693 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7694 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
7695 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7696 fi
7697
7698 fi
7699 fi
7700
7701 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7702 # socket/setsockopt and other routines are undefined under SCO ODT
7703 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7704 # on later versions), says Simon Leinen: it contains gethostby*
7705 # variants that don't use the name server (or something). -lsocket
7706 # must be given before -lnsl if both are needed. We assume that
7707 # if connect needs -lnsl, so does gethostbyname.
7708 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7709 if test "x$ac_cv_func_connect" = x""yes; then :
7710
7711 fi
7712
7713 if test $ac_cv_func_connect = no; then
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7715 $as_echo_n "checking for connect in -lsocket... " >&6; }
7716 if test "${ac_cv_lib_socket_connect+set}" = set; then :
7717 $as_echo_n "(cached) " >&6
7718 else
7719 ac_check_lib_save_LIBS=$LIBS
7720 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7722 /* end confdefs.h. */
7723
7724 /* Override any GCC internal prototype to avoid an error.
7725 Use char because int might match the return type of a GCC
7726 builtin and then its argument prototype would still apply. */
7727 #ifdef __cplusplus
7728 extern "C"
7729 #endif
7730 char connect ();
7731 int
7732 main ()
7733 {
7734 return connect ();
7735 ;
7736 return 0;
7737 }
7738 _ACEOF
7739 if ac_fn_c_try_link "$LINENO"; then :
7740 ac_cv_lib_socket_connect=yes
7741 else
7742 ac_cv_lib_socket_connect=no
7743 fi
7744 rm -f core conftest.err conftest.$ac_objext \
7745 conftest$ac_exeext conftest.$ac_ext
7746 LIBS=$ac_check_lib_save_LIBS
7747 fi
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7749 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7750 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7751 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7752 fi
7753
7754 fi
7755
7756 # Guillermo Gomez says -lposix is necessary on A/UX.
7757 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7758 if test "x$ac_cv_func_remove" = x""yes; then :
7759
7760 fi
7761
7762 if test $ac_cv_func_remove = no; then
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7764 $as_echo_n "checking for remove in -lposix... " >&6; }
7765 if test "${ac_cv_lib_posix_remove+set}" = set; then :
7766 $as_echo_n "(cached) " >&6
7767 else
7768 ac_check_lib_save_LIBS=$LIBS
7769 LIBS="-lposix $LIBS"
7770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7771 /* end confdefs.h. */
7772
7773 /* Override any GCC internal prototype to avoid an error.
7774 Use char because int might match the return type of a GCC
7775 builtin and then its argument prototype would still apply. */
7776 #ifdef __cplusplus
7777 extern "C"
7778 #endif
7779 char remove ();
7780 int
7781 main ()
7782 {
7783 return remove ();
7784 ;
7785 return 0;
7786 }
7787 _ACEOF
7788 if ac_fn_c_try_link "$LINENO"; then :
7789 ac_cv_lib_posix_remove=yes
7790 else
7791 ac_cv_lib_posix_remove=no
7792 fi
7793 rm -f core conftest.err conftest.$ac_objext \
7794 conftest$ac_exeext conftest.$ac_ext
7795 LIBS=$ac_check_lib_save_LIBS
7796 fi
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7798 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7799 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7800 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7801 fi
7802
7803 fi
7804
7805 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7806 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7807 if test "x$ac_cv_func_shmat" = x""yes; then :
7808
7809 fi
7810
7811 if test $ac_cv_func_shmat = no; then
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7813 $as_echo_n "checking for shmat in -lipc... " >&6; }
7814 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7815 $as_echo_n "(cached) " >&6
7816 else
7817 ac_check_lib_save_LIBS=$LIBS
7818 LIBS="-lipc $LIBS"
7819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7820 /* end confdefs.h. */
7821
7822 /* Override any GCC internal prototype to avoid an error.
7823 Use char because int might match the return type of a GCC
7824 builtin and then its argument prototype would still apply. */
7825 #ifdef __cplusplus
7826 extern "C"
7827 #endif
7828 char shmat ();
7829 int
7830 main ()
7831 {
7832 return shmat ();
7833 ;
7834 return 0;
7835 }
7836 _ACEOF
7837 if ac_fn_c_try_link "$LINENO"; then :
7838 ac_cv_lib_ipc_shmat=yes
7839 else
7840 ac_cv_lib_ipc_shmat=no
7841 fi
7842 rm -f core conftest.err conftest.$ac_objext \
7843 conftest$ac_exeext conftest.$ac_ext
7844 LIBS=$ac_check_lib_save_LIBS
7845 fi
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7847 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7848 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7849 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7850 fi
7851
7852 fi
7853 fi
7854
7855 # Check for libraries that X11R6 Xt/Xaw programs need.
7856 ac_save_LDFLAGS=$LDFLAGS
7857 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7858 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7859 # check for ICE first), but we must link in the order -lSM -lICE or
7860 # we get undefined symbols. So assume we have SM if we have ICE.
7861 # These have to be linked with before -lX11, unlike the other
7862 # libraries we check for below, so use a different variable.
7863 # John Interrante, Karl Berry
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7865 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7866 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7867 $as_echo_n "(cached) " >&6
7868 else
7869 ac_check_lib_save_LIBS=$LIBS
7870 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872 /* end confdefs.h. */
7873
7874 /* Override any GCC internal prototype to avoid an error.
7875 Use char because int might match the return type of a GCC
7876 builtin and then its argument prototype would still apply. */
7877 #ifdef __cplusplus
7878 extern "C"
7879 #endif
7880 char IceConnectionNumber ();
7881 int
7882 main ()
7883 {
7884 return IceConnectionNumber ();
7885 ;
7886 return 0;
7887 }
7888 _ACEOF
7889 if ac_fn_c_try_link "$LINENO"; then :
7890 ac_cv_lib_ICE_IceConnectionNumber=yes
7891 else
7892 ac_cv_lib_ICE_IceConnectionNumber=no
7893 fi
7894 rm -f core conftest.err conftest.$ac_objext \
7895 conftest$ac_exeext conftest.$ac_ext
7896 LIBS=$ac_check_lib_save_LIBS
7897 fi
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7899 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7900 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7901 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7902 fi
7903
7904 LDFLAGS=$ac_save_LDFLAGS
7905
7906 fi
7907
7908
7909 if test "$have_x" = "yes"
7910 then
7911 XLIB="-lX11"
7912 ac_save_CPPFLAGS="$CPPFLAGS"
7913 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7914
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7916 $as_echo_n "checking for -lX11... " >&6; }
7917 if test "${ac_cv_lib_soname_X11+set}" = set; then :
7918 $as_echo_n "(cached) " >&6
7919 else
7920 ac_check_soname_save_LIBS=$LIBS
7921 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923 /* end confdefs.h. */
7924
7925 /* Override any GCC internal prototype to avoid an error.
7926 Use char because int might match the return type of a GCC
7927 builtin and then its argument prototype would still apply. */
7928 #ifdef __cplusplus
7929 extern "C"
7930 #endif
7931 char XCreateWindow ();
7932 int
7933 main ()
7934 {
7935 return XCreateWindow ();
7936 ;
7937 return 0;
7938 }
7939 _ACEOF
7940 if ac_fn_c_try_link "$LINENO"; then :
7941 case "$LIBEXT" in
7942 dll) ;;
7943 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'` ;;
7944 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7945 esac
7946 fi
7947 rm -f core conftest.err conftest.$ac_objext \
7948 conftest$ac_exeext conftest.$ac_ext
7949 LIBS=$ac_check_soname_save_LIBS
7950 fi
7951 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7953 $as_echo "not found" >&6; }
7954
7955 else
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7957 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7958
7959 cat >>confdefs.h <<_ACEOF
7960 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7961 _ACEOF
7962
7963
7964 fi
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7966 $as_echo_n "checking for -lXext... " >&6; }
7967 if test "${ac_cv_lib_soname_Xext+set}" = set; then :
7968 $as_echo_n "(cached) " >&6
7969 else
7970 ac_check_soname_save_LIBS=$LIBS
7971 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973 /* end confdefs.h. */
7974
7975 /* Override any GCC internal prototype to avoid an error.
7976 Use char because int might match the return type of a GCC
7977 builtin and then its argument prototype would still apply. */
7978 #ifdef __cplusplus
7979 extern "C"
7980 #endif
7981 char XextCreateExtension ();
7982 int
7983 main ()
7984 {
7985 return XextCreateExtension ();
7986 ;
7987 return 0;
7988 }
7989 _ACEOF
7990 if ac_fn_c_try_link "$LINENO"; then :
7991 case "$LIBEXT" in
7992 dll) ;;
7993 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'` ;;
7994 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7995 esac
7996 fi
7997 rm -f core conftest.err conftest.$ac_objext \
7998 conftest$ac_exeext conftest.$ac_ext
7999 LIBS=$ac_check_soname_save_LIBS
8000 fi
8001 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8003 $as_echo "not found" >&6; }
8004
8005 else
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8007 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8008
8009 cat >>confdefs.h <<_ACEOF
8010 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8011 _ACEOF
8012
8013 XLIB="-lXext $XLIB"
8014 fi
8015
8016 for ac_header in X11/Xlib.h \
8017 X11/XKBlib.h \
8018 X11/Xutil.h \
8019 X11/Xcursor/Xcursor.h \
8020 X11/extensions/shape.h \
8021 X11/extensions/XInput.h \
8022 X11/extensions/XShm.h \
8023 X11/extensions/Xcomposite.h \
8024 X11/extensions/Xinerama.h \
8025 X11/extensions/Xrandr.h \
8026 X11/extensions/Xrender.h \
8027 X11/extensions/xf86vmode.h \
8028 X11/extensions/xf86vmproto.h
8029 do :
8030 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8031 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8032 # include <X11/Xlib.h>
8033 #endif
8034 #ifdef HAVE_X11_XUTIL_H
8035 # include <X11/Xutil.h>
8036 #endif
8037 "
8038 eval as_val=\$$as_ac_Header
8039 if test "x$as_val" = x""yes; then :
8040 cat >>confdefs.h <<_ACEOF
8041 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8042 _ACEOF
8043
8044 fi
8045
8046 done
8047
8048
8049 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8050 then
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8052 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8053 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then :
8054 $as_echo_n "(cached) " >&6
8055 else
8056 ac_check_lib_save_LIBS=$LIBS
8057 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8059 /* end confdefs.h. */
8060
8061 /* Override any GCC internal prototype to avoid an error.
8062 Use char because int might match the return type of a GCC
8063 builtin and then its argument prototype would still apply. */
8064 #ifdef __cplusplus
8065 extern "C"
8066 #endif
8067 char XkbQueryExtension ();
8068 int
8069 main ()
8070 {
8071 return XkbQueryExtension ();
8072 ;
8073 return 0;
8074 }
8075 _ACEOF
8076 if ac_fn_c_try_link "$LINENO"; then :
8077 ac_cv_lib_X11_XkbQueryExtension=yes
8078 else
8079 ac_cv_lib_X11_XkbQueryExtension=no
8080 fi
8081 rm -f core conftest.err conftest.$ac_objext \
8082 conftest$ac_exeext conftest.$ac_ext
8083 LIBS=$ac_check_lib_save_LIBS
8084 fi
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8086 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8087 if test "x$ac_cv_lib_X11_XkbQueryExtension" = x""yes; then :
8088
8089 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8090
8091 fi
8092
8093 fi
8094
8095 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8096 then
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8098 $as_echo_n "checking for -lXcursor... " >&6; }
8099 if test "${ac_cv_lib_soname_Xcursor+set}" = set; then :
8100 $as_echo_n "(cached) " >&6
8101 else
8102 ac_check_soname_save_LIBS=$LIBS
8103 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8105 /* end confdefs.h. */
8106
8107 /* Override any GCC internal prototype to avoid an error.
8108 Use char because int might match the return type of a GCC
8109 builtin and then its argument prototype would still apply. */
8110 #ifdef __cplusplus
8111 extern "C"
8112 #endif
8113 char XcursorImageLoadCursor ();
8114 int
8115 main ()
8116 {
8117 return XcursorImageLoadCursor ();
8118 ;
8119 return 0;
8120 }
8121 _ACEOF
8122 if ac_fn_c_try_link "$LINENO"; then :
8123 case "$LIBEXT" in
8124 dll) ;;
8125 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'` ;;
8126 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8127 esac
8128 fi
8129 rm -f core conftest.err conftest.$ac_objext \
8130 conftest$ac_exeext conftest.$ac_ext
8131 LIBS=$ac_check_soname_save_LIBS
8132 fi
8133 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8135 $as_echo "not found" >&6; }
8136
8137 else
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8139 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8140
8141 cat >>confdefs.h <<_ACEOF
8142 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8143 _ACEOF
8144
8145
8146 fi
8147 fi
8148 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8149 case "x$with_xcursor" in
8150 x) wine_notices="$wine_notices|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8151 xno) ;;
8152 *) as_fn_error "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8153 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8154 esac
8155 fi
8156
8157 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8158 then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8160 $as_echo_n "checking for -lXi... " >&6; }
8161 if test "${ac_cv_lib_soname_Xi+set}" = set; then :
8162 $as_echo_n "(cached) " >&6
8163 else
8164 ac_check_soname_save_LIBS=$LIBS
8165 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h. */
8168
8169 /* Override any GCC internal prototype to avoid an error.
8170 Use char because int might match the return type of a GCC
8171 builtin and then its argument prototype would still apply. */
8172 #ifdef __cplusplus
8173 extern "C"
8174 #endif
8175 char XOpenDevice ();
8176 int
8177 main ()
8178 {
8179 return XOpenDevice ();
8180 ;
8181 return 0;
8182 }
8183 _ACEOF
8184 if ac_fn_c_try_link "$LINENO"; then :
8185 case "$LIBEXT" in
8186 dll) ;;
8187 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'` ;;
8188 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8189 esac
8190 fi
8191 rm -f core conftest.err conftest.$ac_objext \
8192 conftest$ac_exeext conftest.$ac_ext
8193 LIBS=$ac_check_soname_save_LIBS
8194 fi
8195 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8197 $as_echo "not found" >&6; }
8198
8199 else
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8201 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8202
8203 cat >>confdefs.h <<_ACEOF
8204 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8205 _ACEOF
8206
8207
8208 fi
8209 fi
8210 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8211 case "x$with_xinput" in
8212 x) wine_notices="$wine_notices|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8213 xno) ;;
8214 *) as_fn_error "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8215 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8216 esac
8217 fi
8218
8219 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8220 then
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8222 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8223 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
8224 $as_echo_n "(cached) " >&6
8225 else
8226 ac_check_lib_save_LIBS=$LIBS
8227 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h. */
8230
8231 /* Override any GCC internal prototype to avoid an error.
8232 Use char because int might match the return type of a GCC
8233 builtin and then its argument prototype would still apply. */
8234 #ifdef __cplusplus
8235 extern "C"
8236 #endif
8237 char XShmQueryExtension ();
8238 int
8239 main ()
8240 {
8241 return XShmQueryExtension ();
8242 ;
8243 return 0;
8244 }
8245 _ACEOF
8246 if ac_fn_c_try_link "$LINENO"; then :
8247 ac_cv_lib_Xext_XShmQueryExtension=yes
8248 else
8249 ac_cv_lib_Xext_XShmQueryExtension=no
8250 fi
8251 rm -f core conftest.err conftest.$ac_objext \
8252 conftest$ac_exeext conftest.$ac_ext
8253 LIBS=$ac_check_lib_save_LIBS
8254 fi
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8256 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8257 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
8258
8259 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8260
8261 fi
8262
8263 fi
8264 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8265 case "x$with_xshm" in
8266 x) wine_notices="$wine_notices|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8267 xno) ;;
8268 *) as_fn_error "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8269 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8270 esac
8271 fi
8272
8273 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8274 then
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8276 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8277 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8278 $as_echo_n "(cached) " >&6
8279 else
8280 ac_check_lib_save_LIBS=$LIBS
8281 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8283 /* end confdefs.h. */
8284
8285 /* Override any GCC internal prototype to avoid an error.
8286 Use char because int might match the return type of a GCC
8287 builtin and then its argument prototype would still apply. */
8288 #ifdef __cplusplus
8289 extern "C"
8290 #endif
8291 char XShapeQueryExtension ();
8292 int
8293 main ()
8294 {
8295 return XShapeQueryExtension ();
8296 ;
8297 return 0;
8298 }
8299 _ACEOF
8300 if ac_fn_c_try_link "$LINENO"; then :
8301 ac_cv_lib_Xext_XShapeQueryExtension=yes
8302 else
8303 ac_cv_lib_Xext_XShapeQueryExtension=no
8304 fi
8305 rm -f core conftest.err conftest.$ac_objext \
8306 conftest$ac_exeext conftest.$ac_ext
8307 LIBS=$ac_check_lib_save_LIBS
8308 fi
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8310 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8311 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
8312
8313 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8314
8315 fi
8316
8317 fi
8318 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8319 case "x$with_xshape" in
8320 x) wine_notices="$wine_notices|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8321 xno) ;;
8322 *) as_fn_error "XShape ${notice_platform}development files not found, XShape won't be supported.
8323 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8324 esac
8325 fi
8326
8327 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8328 then
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8330 $as_echo_n "checking for -lXxf86vm... " >&6; }
8331 if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then :
8332 $as_echo_n "(cached) " >&6
8333 else
8334 ac_check_soname_save_LIBS=$LIBS
8335 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h. */
8338
8339 /* Override any GCC internal prototype to avoid an error.
8340 Use char because int might match the return type of a GCC
8341 builtin and then its argument prototype would still apply. */
8342 #ifdef __cplusplus
8343 extern "C"
8344 #endif
8345 char XF86VidModeQueryExtension ();
8346 int
8347 main ()
8348 {
8349 return XF86VidModeQueryExtension ();
8350 ;
8351 return 0;
8352 }
8353 _ACEOF
8354 if ac_fn_c_try_link "$LINENO"; then :
8355 case "$LIBEXT" in
8356 dll) ;;
8357 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'` ;;
8358 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8359 esac
8360 fi
8361 rm -f core conftest.err conftest.$ac_objext \
8362 conftest$ac_exeext conftest.$ac_ext
8363 LIBS=$ac_check_soname_save_LIBS
8364 fi
8365 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8367 $as_echo "not found" >&6; }
8368
8369 else
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8371 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8372
8373 cat >>confdefs.h <<_ACEOF
8374 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8375 _ACEOF
8376
8377
8378 fi
8379 fi
8380 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8381 case "x$with_xxf86vm" in
8382 x) wine_notices="$wine_notices|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8383 xno) ;;
8384 *) as_fn_error "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8385 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8386 esac
8387 fi
8388
8389 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"
8390 then
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8392 $as_echo_n "checking for -lXrender... " >&6; }
8393 if test "${ac_cv_lib_soname_Xrender+set}" = set; then :
8394 $as_echo_n "(cached) " >&6
8395 else
8396 ac_check_soname_save_LIBS=$LIBS
8397 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8399 /* end confdefs.h. */
8400
8401 /* Override any GCC internal prototype to avoid an error.
8402 Use char because int might match the return type of a GCC
8403 builtin and then its argument prototype would still apply. */
8404 #ifdef __cplusplus
8405 extern "C"
8406 #endif
8407 char XRenderQueryExtension ();
8408 int
8409 main ()
8410 {
8411 return XRenderQueryExtension ();
8412 ;
8413 return 0;
8414 }
8415 _ACEOF
8416 if ac_fn_c_try_link "$LINENO"; then :
8417 case "$LIBEXT" in
8418 dll) ;;
8419 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'` ;;
8420 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8421 esac
8422 fi
8423 rm -f core conftest.err conftest.$ac_objext \
8424 conftest$ac_exeext conftest.$ac_ext
8425 LIBS=$ac_check_soname_save_LIBS
8426 fi
8427 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8429 $as_echo "not found" >&6; }
8430
8431 else
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8433 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8434
8435 cat >>confdefs.h <<_ACEOF
8436 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8437 _ACEOF
8438
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8440 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8441 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then :
8442 $as_echo_n "(cached) " >&6
8443 else
8444 ac_check_lib_save_LIBS=$LIBS
8445 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447 /* end confdefs.h. */
8448
8449 /* Override any GCC internal prototype to avoid an error.
8450 Use char because int might match the return type of a GCC
8451 builtin and then its argument prototype would still apply. */
8452 #ifdef __cplusplus
8453 extern "C"
8454 #endif
8455 char XRenderSetPictureTransform ();
8456 int
8457 main ()
8458 {
8459 return XRenderSetPictureTransform ();
8460 ;
8461 return 0;
8462 }
8463 _ACEOF
8464 if ac_fn_c_try_link "$LINENO"; then :
8465 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8466 else
8467 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8468 fi
8469 rm -f core conftest.err conftest.$ac_objext \
8470 conftest$ac_exeext conftest.$ac_ext
8471 LIBS=$ac_check_lib_save_LIBS
8472 fi
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8474 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8475 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = x""yes; then :
8476
8477 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8478
8479 fi
8480
8481 fi
8482
8483 fi
8484 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8485 case "x$with_xrender" in
8486 x) wine_warnings="$wine_warnings|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8487 xno) ;;
8488 *) as_fn_error "libxrender ${notice_platform}development files not found, XRender won't be supported.
8489 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8490 esac
8491 fi
8492
8493 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8494 then
8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h. */
8497 #include <X11/Xlib.h>
8498 #include <X11/extensions/Xrandr.h>
8499 int
8500 main ()
8501 {
8502 static typeof(XRRSetScreenConfigAndRate) * func;
8503 ;
8504 return 0;
8505 }
8506 _ACEOF
8507 if ac_fn_c_try_compile "$LINENO"; then :
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8509 $as_echo_n "checking for -lXrandr... " >&6; }
8510 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then :
8511 $as_echo_n "(cached) " >&6
8512 else
8513 ac_check_soname_save_LIBS=$LIBS
8514 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8516 /* end confdefs.h. */
8517
8518 /* Override any GCC internal prototype to avoid an error.
8519 Use char because int might match the return type of a GCC
8520 builtin and then its argument prototype would still apply. */
8521 #ifdef __cplusplus
8522 extern "C"
8523 #endif
8524 char XRRQueryExtension ();
8525 int
8526 main ()
8527 {
8528 return XRRQueryExtension ();
8529 ;
8530 return 0;
8531 }
8532 _ACEOF
8533 if ac_fn_c_try_link "$LINENO"; then :
8534 case "$LIBEXT" in
8535 dll) ;;
8536 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'` ;;
8537 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8538 esac
8539 fi
8540 rm -f core conftest.err conftest.$ac_objext \
8541 conftest$ac_exeext conftest.$ac_ext
8542 LIBS=$ac_check_soname_save_LIBS
8543 fi
8544 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8546 $as_echo "not found" >&6; }
8547
8548 else
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8550 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8551
8552 cat >>confdefs.h <<_ACEOF
8553 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8554 _ACEOF
8555
8556
8557 fi
8558 fi
8559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8560 fi
8561 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8562 case "x$with_xrandr" in
8563 x) wine_notices="$wine_notices|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8564 xno) ;;
8565 *) as_fn_error "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8566 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8567 esac
8568 fi
8569
8570 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8571 then
8572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8573 /* end confdefs.h. */
8574 #include <X11/Xlib.h>
8575 #include <X11/extensions/Xinerama.h>
8576 int
8577 main ()
8578 {
8579 static typeof(XineramaQueryScreens) * func;
8580 ;
8581 return 0;
8582 }
8583 _ACEOF
8584 if ac_fn_c_try_compile "$LINENO"; then :
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8586 $as_echo_n "checking for -lXinerama... " >&6; }
8587 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then :
8588 $as_echo_n "(cached) " >&6
8589 else
8590 ac_check_soname_save_LIBS=$LIBS
8591 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8593 /* end confdefs.h. */
8594
8595 /* Override any GCC internal prototype to avoid an error.
8596 Use char because int might match the return type of a GCC
8597 builtin and then its argument prototype would still apply. */
8598 #ifdef __cplusplus
8599 extern "C"
8600 #endif
8601 char XineramaQueryScreens ();
8602 int
8603 main ()
8604 {
8605 return XineramaQueryScreens ();
8606 ;
8607 return 0;
8608 }
8609 _ACEOF
8610 if ac_fn_c_try_link "$LINENO"; then :
8611 case "$LIBEXT" in
8612 dll) ;;
8613 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'` ;;
8614 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8615 esac
8616 fi
8617 rm -f core conftest.err conftest.$ac_objext \
8618 conftest$ac_exeext conftest.$ac_ext
8619 LIBS=$ac_check_soname_save_LIBS
8620 fi
8621 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8623 $as_echo "not found" >&6; }
8624
8625 else
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8627 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8628
8629 cat >>confdefs.h <<_ACEOF
8630 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8631 _ACEOF
8632
8633
8634 fi
8635 fi
8636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8637 fi
8638 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8639 case "x$with_xinerama" in
8640 x) wine_notices="$wine_notices|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8641 xno) ;;
8642 *) as_fn_error "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8643 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8644 esac
8645 fi
8646
8647 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8648 then
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8650 $as_echo_n "checking for -lXcomposite... " >&6; }
8651 if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then :
8652 $as_echo_n "(cached) " >&6
8653 else
8654 ac_check_soname_save_LIBS=$LIBS
8655 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8657 /* end confdefs.h. */
8658
8659 /* Override any GCC internal prototype to avoid an error.
8660 Use char because int might match the return type of a GCC
8661 builtin and then its argument prototype would still apply. */
8662 #ifdef __cplusplus
8663 extern "C"
8664 #endif
8665 char XCompositeRedirectWindow ();
8666 int
8667 main ()
8668 {
8669 return XCompositeRedirectWindow ();
8670 ;
8671 return 0;
8672 }
8673 _ACEOF
8674 if ac_fn_c_try_link "$LINENO"; then :
8675 case "$LIBEXT" in
8676 dll) ;;
8677 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'` ;;
8678 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8679 esac
8680 fi
8681 rm -f core conftest.err conftest.$ac_objext \
8682 conftest$ac_exeext conftest.$ac_ext
8683 LIBS=$ac_check_soname_save_LIBS
8684 fi
8685 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8687 $as_echo "not found" >&6; }
8688
8689 else
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8691 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8692
8693 cat >>confdefs.h <<_ACEOF
8694 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8695 _ACEOF
8696
8697
8698 fi
8699 fi
8700 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8701 case "x$with_xcomposite" in
8702 x) wine_notices="$wine_notices|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8703 xno) ;;
8704 *) as_fn_error "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8705 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8706 esac
8707 fi
8708
8709 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8710 #include <X11/Xlib.h>
8711 #endif
8712 "
8713 if test "x$ac_cv_member_XICCallback_callback" = x""yes; then :
8714
8715 cat >>confdefs.h <<_ACEOF
8716 #define HAVE_XICCALLBACK_CALLBACK 1
8717 _ACEOF
8718
8719
8720 fi
8721
8722
8723
8724 opengl_msg=""
8725 if test "x$with_opengl" != "xno"
8726 then
8727 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8728 do :
8729 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8730 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8731 # include <GL/glx.h>
8732 #endif
8733 "
8734 eval as_val=\$$as_ac_Header
8735 if test "x$as_val" = x""yes; then :
8736 cat >>confdefs.h <<_ACEOF
8737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8738 _ACEOF
8739
8740 fi
8741
8742 done
8743
8744 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8745 then
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8747 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8748 if test "${wine_cv_opengl_header_version_OK+set}" = set; then :
8749 $as_echo_n "(cached) " >&6
8750 else
8751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8752 /* end confdefs.h. */
8753 #include <GL/gl.h>
8754 int
8755 main ()
8756 {
8757 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8758 ;
8759 return 0;
8760 }
8761 _ACEOF
8762 if ac_fn_c_try_compile "$LINENO"; then :
8763 wine_cv_opengl_header_version_OK="yes"
8764 else
8765 wine_cv_opengl_header_version_OK="no"
8766 fi
8767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8768 fi
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8770 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8771
8772 if test "$wine_cv_opengl_header_version_OK" = "yes"
8773 then
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8775 $as_echo_n "checking for -lGL... " >&6; }
8776 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8777 $as_echo_n "(cached) " >&6
8778 else
8779 ac_check_soname_save_LIBS=$LIBS
8780 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8782 /* end confdefs.h. */
8783
8784 /* Override any GCC internal prototype to avoid an error.
8785 Use char because int might match the return type of a GCC
8786 builtin and then its argument prototype would still apply. */
8787 #ifdef __cplusplus
8788 extern "C"
8789 #endif
8790 char glXCreateContext ();
8791 int
8792 main ()
8793 {
8794 return glXCreateContext ();
8795 ;
8796 return 0;
8797 }
8798 _ACEOF
8799 if ac_fn_c_try_link "$LINENO"; then :
8800 case "$LIBEXT" in
8801 dll) ;;
8802 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'` ;;
8803 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8804 esac
8805 fi
8806 rm -f core conftest.err conftest.$ac_objext \
8807 conftest$ac_exeext conftest.$ac_ext
8808 LIBS=$ac_check_soname_save_LIBS
8809 fi
8810 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8812 $as_echo "not found" >&6; }
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8814 $as_echo_n "checking for -lGL... " >&6; }
8815 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8816 $as_echo_n "(cached) " >&6
8817 else
8818 ac_check_soname_save_LIBS=$LIBS
8819 LIBS="-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"
8820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8821 /* end confdefs.h. */
8822
8823 /* Override any GCC internal prototype to avoid an error.
8824 Use char because int might match the return type of a GCC
8825 builtin and then its argument prototype would still apply. */
8826 #ifdef __cplusplus
8827 extern "C"
8828 #endif
8829 char glXCreateContext ();
8830 int
8831 main ()
8832 {
8833 return glXCreateContext ();
8834 ;
8835 return 0;
8836 }
8837 _ACEOF
8838 if ac_fn_c_try_link "$LINENO"; then :
8839 case "$LIBEXT" in
8840 dll) ;;
8841 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'` ;;
8842 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8843 esac
8844 fi
8845 rm -f core conftest.err conftest.$ac_objext \
8846 conftest$ac_exeext conftest.$ac_ext
8847 LIBS=$ac_check_soname_save_LIBS
8848 fi
8849 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8851 $as_echo "not found" >&6; }
8852 if test -f /usr/X11R6/lib/libGL.a
8853 then
8854 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8855 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8856 else
8857 opengl_msg="No OpenGL library found on this system."
8858 fi
8859 else
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8861 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8862
8863 cat >>confdefs.h <<_ACEOF
8864 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8865 _ACEOF
8866
8867 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"
8868
8869 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8870
8871 fi
8872 else
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8874 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8875
8876 cat >>confdefs.h <<_ACEOF
8877 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8878 _ACEOF
8879
8880 OPENGL_LIBS="-lGL"
8881
8882 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8883
8884 fi
8885 if test "$ac_cv_header_GL_glu_h" = "yes"
8886 then
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8888 $as_echo_n "checking for -lGLU... " >&6; }
8889 if test "${ac_cv_lib_soname_GLU+set}" = set; then :
8890 $as_echo_n "(cached) " >&6
8891 else
8892 ac_check_soname_save_LIBS=$LIBS
8893 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8895 /* end confdefs.h. */
8896
8897 /* Override any GCC internal prototype to avoid an error.
8898 Use char because int might match the return type of a GCC
8899 builtin and then its argument prototype would still apply. */
8900 #ifdef __cplusplus
8901 extern "C"
8902 #endif
8903 char gluLookAt ();
8904 int
8905 main ()
8906 {
8907 return gluLookAt ();
8908 ;
8909 return 0;
8910 }
8911 _ACEOF
8912 if ac_fn_c_try_link "$LINENO"; then :
8913 case "$LIBEXT" in
8914 dll) ;;
8915 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'` ;;
8916 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8917 esac
8918 fi
8919 rm -f core conftest.err conftest.$ac_objext \
8920 conftest$ac_exeext conftest.$ac_ext
8921 LIBS=$ac_check_soname_save_LIBS
8922 fi
8923 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8925 $as_echo "not found" >&6; }
8926
8927 else
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8929 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8930
8931 cat >>confdefs.h <<_ACEOF
8932 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8933 _ACEOF
8934
8935
8936 fi
8937 fi
8938 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8939 case "x$with_glu" in
8940 x) wine_notices="$wine_notices|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8941 xno) ;;
8942 *) as_fn_error "libGLU ${notice_platform}development files not found, GLU won't be supported.
8943 This is an error since --with-glu was requested." "$LINENO" 5 ;;
8944 esac
8945 fi
8946 else
8947 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
8948 fi
8949 else
8950 opengl_msg="OpenGL development headers not found."
8951 fi
8952 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8953 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8954 else
8955 enable_opengl32=${enable_opengl32:-no}
8956 enable_glu32=${enable_glu32:-no}
8957 fi
8958 if test -n "$opengl_msg"; then :
8959 case "x$with_opengl" in
8960 x) wine_warnings="$wine_warnings|$opengl_msg
8961 OpenGL and Direct3D won't be supported." ;;
8962 xno) ;;
8963 *) as_fn_error "$opengl_msg
8964 OpenGL and Direct3D won't be supported.
8965 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
8966 esac
8967 fi
8968
8969 NASLIBS=""
8970
8971 for ac_header in audio/audiolib.h
8972 do :
8973 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
8974 if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then :
8975 cat >>confdefs.h <<_ACEOF
8976 #define HAVE_AUDIO_AUDIOLIB_H 1
8977 _ACEOF
8978 for ac_header in audio/soundlib.h
8979 do :
8980 ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
8981 "
8982 if test "x$ac_cv_header_audio_soundlib_h" = x""yes; then :
8983 cat >>confdefs.h <<_ACEOF
8984 #define HAVE_AUDIO_SOUNDLIB_H 1
8985 _ACEOF
8986
8987 fi
8988
8989 done
8990
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
8992 $as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
8993 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then :
8994 $as_echo_n "(cached) " >&6
8995 else
8996 ac_check_lib_save_LIBS=$LIBS
8997 LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999 /* end confdefs.h. */
9000
9001 /* Override any GCC internal prototype to avoid an error.
9002 Use char because int might match the return type of a GCC
9003 builtin and then its argument prototype would still apply. */
9004 #ifdef __cplusplus
9005 extern "C"
9006 #endif
9007 char AuCreateFlow ();
9008 int
9009 main ()
9010 {
9011 return AuCreateFlow ();
9012 ;
9013 return 0;
9014 }
9015 _ACEOF
9016 if ac_fn_c_try_link "$LINENO"; then :
9017 ac_cv_lib_audio_AuCreateFlow=yes
9018 else
9019 ac_cv_lib_audio_AuCreateFlow=no
9020 fi
9021 rm -f core conftest.err conftest.$ac_objext \
9022 conftest$ac_exeext conftest.$ac_ext
9023 LIBS=$ac_check_lib_save_LIBS
9024 fi
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9026 $as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
9027 if test "x$ac_cv_lib_audio_AuCreateFlow" = x""yes; then :
9028
9029 $as_echo "#define HAVE_NAS 1" >>confdefs.h
9030
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
9032 $as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
9033 if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then :
9034 $as_echo_n "(cached) " >&6
9035 else
9036 ac_check_lib_save_LIBS=$LIBS
9037 LIBS="-lXau $X_LIBS $LIBS"
9038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039 /* end confdefs.h. */
9040
9041 /* Override any GCC internal prototype to avoid an error.
9042 Use char because int might match the return type of a GCC
9043 builtin and then its argument prototype would still apply. */
9044 #ifdef __cplusplus
9045 extern "C"
9046 #endif
9047 char XauGetBestAuthByAddr ();
9048 int
9049 main ()
9050 {
9051 return XauGetBestAuthByAddr ();
9052 ;
9053 return 0;
9054 }
9055 _ACEOF
9056 if ac_fn_c_try_link "$LINENO"; then :
9057 ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
9058 else
9059 ac_cv_lib_Xau_XauGetBestAuthByAddr=no
9060 fi
9061 rm -f core conftest.err conftest.$ac_objext \
9062 conftest$ac_exeext conftest.$ac_ext
9063 LIBS=$ac_check_lib_save_LIBS
9064 fi
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
9066 $as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
9067 if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = x""yes; then :
9068 NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9069 else
9070 NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9071 fi
9072
9073
9074 fi
9075
9076 fi
9077
9078 done
9079
9080
9081 CPPFLAGS="$ac_save_CPPFLAGS"
9082 else
9083 XLIB=""
9084 X_CFLAGS=""
9085 X_LIBS=""
9086 enable_winex11_drv=${enable_winex11_drv:-no}
9087 enable_opengl32=${enable_opengl32:-no}
9088 enable_glu32=${enable_glu32:-no}
9089 fi
9090 if test "x$XLIB" = "x"; then :
9091 case "x$with_x" in
9092 xno) ;;
9093 *) as_fn_error "X ${notice_platform}development files not found. Wine will be built
9094 without X support, which probably isn't what you want. You will need to install
9095 ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9096 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9097 esac
9098 fi
9099
9100
9101 XML2LIBS=""
9102
9103 XML2INCL=""
9104
9105 XSLTINCL=""
9106
9107 if test "x$with_xml" != "xno"
9108 then
9109 ac_save_CPPFLAGS="$CPPFLAGS"
9110 if test "$PKG_CONFIG" != "false"
9111 then
9112 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9113 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9114 else
9115 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9116 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
9117 fi
9118 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9119 for ac_header in libxml/parser.h
9120 do :
9121 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
9122 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
9123 cat >>confdefs.h <<_ACEOF
9124 #define HAVE_LIBXML_PARSER_H 1
9125 _ACEOF
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9127 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9128 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then :
9129 $as_echo_n "(cached) " >&6
9130 else
9131 ac_check_lib_save_LIBS=$LIBS
9132 LIBS="-lxml2 $ac_xml_libs $LIBS"
9133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9134 /* end confdefs.h. */
9135
9136 /* Override any GCC internal prototype to avoid an error.
9137 Use char because int might match the return type of a GCC
9138 builtin and then its argument prototype would still apply. */
9139 #ifdef __cplusplus
9140 extern "C"
9141 #endif
9142 char xmlParseMemory ();
9143 int
9144 main ()
9145 {
9146 return xmlParseMemory ();
9147 ;
9148 return 0;
9149 }
9150 _ACEOF
9151 if ac_fn_c_try_link "$LINENO"; then :
9152 ac_cv_lib_xml2_xmlParseMemory=yes
9153 else
9154 ac_cv_lib_xml2_xmlParseMemory=no
9155 fi
9156 rm -f core conftest.err conftest.$ac_objext \
9157 conftest$ac_exeext conftest.$ac_ext
9158 LIBS=$ac_check_lib_save_LIBS
9159 fi
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9161 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9162 if test "x$ac_cv_lib_xml2_xmlParseMemory" = x""yes; then :
9163
9164 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9165
9166 XML2LIBS="$ac_xml_libs"
9167 XML2INCL="$ac_xml_cflags"
9168 fi
9169
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9171 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9172 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then :
9173 $as_echo_n "(cached) " >&6
9174 else
9175 ac_check_lib_save_LIBS=$LIBS
9176 LIBS="-lxml2 $ac_xml_libs $LIBS"
9177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9178 /* end confdefs.h. */
9179
9180 /* Override any GCC internal prototype to avoid an error.
9181 Use char because int might match the return type of a GCC
9182 builtin and then its argument prototype would still apply. */
9183 #ifdef __cplusplus
9184 extern "C"
9185 #endif
9186 char xmlReadMemory ();
9187 int
9188 main ()
9189 {
9190 return xmlReadMemory ();
9191 ;
9192 return 0;
9193 }
9194 _ACEOF
9195 if ac_fn_c_try_link "$LINENO"; then :
9196 ac_cv_lib_xml2_xmlReadMemory=yes
9197 else
9198 ac_cv_lib_xml2_xmlReadMemory=no
9199 fi
9200 rm -f core conftest.err conftest.$ac_objext \
9201 conftest$ac_exeext conftest.$ac_ext
9202 LIBS=$ac_check_lib_save_LIBS
9203 fi
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9205 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9206 if test "x$ac_cv_lib_xml2_xmlReadMemory" = x""yes; then :
9207
9208 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9209
9210 fi
9211
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9213 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9214 if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then :
9215 $as_echo_n "(cached) " >&6
9216 else
9217 ac_check_lib_save_LIBS=$LIBS
9218 LIBS="-lxml2 $ac_xml_libs $LIBS"
9219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h. */
9221
9222 /* Override any GCC internal prototype to avoid an error.
9223 Use char because int might match the return type of a GCC
9224 builtin and then its argument prototype would still apply. */
9225 #ifdef __cplusplus
9226 extern "C"
9227 #endif
9228 char xmlNewDocPI ();
9229 int
9230 main ()
9231 {
9232 return xmlNewDocPI ();
9233 ;
9234 return 0;
9235 }
9236 _ACEOF
9237 if ac_fn_c_try_link "$LINENO"; then :
9238 ac_cv_lib_xml2_xmlNewDocPI=yes
9239 else
9240 ac_cv_lib_xml2_xmlNewDocPI=no
9241 fi
9242 rm -f core conftest.err conftest.$ac_objext \
9243 conftest$ac_exeext conftest.$ac_ext
9244 LIBS=$ac_check_lib_save_LIBS
9245 fi
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9247 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9248 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = x""yes; then :
9249
9250 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9251
9252 fi
9253
9254
9255 fi
9256
9257 done
9258
9259 CPPFLAGS="$ac_save_CPPFLAGS"
9260 fi
9261 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9262 case "x$with_xml" in
9263 x) wine_warnings="$wine_warnings|libxml2 ${notice_platform}development files not found, XML won't be supported." ;;
9264 xno) ;;
9265 *) as_fn_error "libxml2 ${notice_platform}development files not found, XML won't be supported.
9266 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9267 esac
9268 fi
9269
9270 if test "x$with_xslt" != "xno"
9271 then
9272 if test "$PKG_CONFIG" != "false"
9273 then
9274 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9275 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9276 else
9277 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9278 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9279 fi
9280 ac_save_CPPFLAGS="$CPPFLAGS"
9281 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9282 for ac_header in libxslt/pattern.h libxslt/transform.h
9283 do :
9284 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9285 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9286 # include <libxslt/pattern.h>
9287 #endif
9288 "
9289 eval as_val=\$$as_ac_Header
9290 if test "x$as_val" = x""yes; then :
9291 cat >>confdefs.h <<_ACEOF
9292 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9293 _ACEOF
9294
9295 fi
9296
9297 done
9298
9299 CPPFLAGS="$ac_save_CPPFLAGS"
9300 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9301 then
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9303 $as_echo_n "checking for -lxslt... " >&6; }
9304 if test "${ac_cv_lib_soname_xslt+set}" = set; then :
9305 $as_echo_n "(cached) " >&6
9306 else
9307 ac_check_soname_save_LIBS=$LIBS
9308 LIBS="-lxslt $ac_xslt_libs $LIBS"
9309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9310 /* end confdefs.h. */
9311
9312 /* Override any GCC internal prototype to avoid an error.
9313 Use char because int might match the return type of a GCC
9314 builtin and then its argument prototype would still apply. */
9315 #ifdef __cplusplus
9316 extern "C"
9317 #endif
9318 char xsltCompilePattern ();
9319 int
9320 main ()
9321 {
9322 return xsltCompilePattern ();
9323 ;
9324 return 0;
9325 }
9326 _ACEOF
9327 if ac_fn_c_try_link "$LINENO"; then :
9328 case "$LIBEXT" in
9329 dll) ;;
9330 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'` ;;
9331 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9332 esac
9333 fi
9334 rm -f core conftest.err conftest.$ac_objext \
9335 conftest$ac_exeext conftest.$ac_ext
9336 LIBS=$ac_check_soname_save_LIBS
9337 fi
9338 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9340 $as_echo "not found" >&6; }
9341
9342 else
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9344 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9345
9346 cat >>confdefs.h <<_ACEOF
9347 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9348 _ACEOF
9349
9350 XSLTINCL="$ac_xslt_cflags"
9351 fi
9352 fi
9353 fi
9354 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9355 case "x$with_xslt" in
9356 x) wine_warnings="$wine_warnings|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9357 xno) ;;
9358 *) as_fn_error "libxslt ${notice_platform}development files not found, xslt won't be supported.
9359 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9360 esac
9361 fi
9362
9363 HALINCL=""
9364
9365 if test "x$with_hal" != "xno"
9366 then
9367 ac_save_CPPFLAGS="$CPPFLAGS"
9368 if test "$PKG_CONFIG" != "false"
9369 then
9370 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9371 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9372 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9373 fi
9374 for ac_header in dbus/dbus.h hal/libhal.h
9375 do :
9376 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9377 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9378 eval as_val=\$$as_ac_Header
9379 if test "x$as_val" = x""yes; then :
9380 cat >>confdefs.h <<_ACEOF
9381 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9382 _ACEOF
9383
9384 fi
9385
9386 done
9387
9388 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9389 then
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
9391 $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
9392 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then :
9393 $as_echo_n "(cached) " >&6
9394 else
9395 ac_check_lib_save_LIBS=$LIBS
9396 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h. */
9399
9400 /* Override any GCC internal prototype to avoid an error.
9401 Use char because int might match the return type of a GCC
9402 builtin and then its argument prototype would still apply. */
9403 #ifdef __cplusplus
9404 extern "C"
9405 #endif
9406 char dbus_connection_close ();
9407 int
9408 main ()
9409 {
9410 return dbus_connection_close ();
9411 ;
9412 return 0;
9413 }
9414 _ACEOF
9415 if ac_fn_c_try_link "$LINENO"; then :
9416 ac_cv_lib_dbus_1_dbus_connection_close=yes
9417 else
9418 ac_cv_lib_dbus_1_dbus_connection_close=no
9419 fi
9420 rm -f core conftest.err conftest.$ac_objext \
9421 conftest$ac_exeext conftest.$ac_ext
9422 LIBS=$ac_check_lib_save_LIBS
9423 fi
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9425 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9426 if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = x""yes; then :
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9428 $as_echo_n "checking for -lhal... " >&6; }
9429 if test "${ac_cv_lib_soname_hal+set}" = set; then :
9430 $as_echo_n "(cached) " >&6
9431 else
9432 ac_check_soname_save_LIBS=$LIBS
9433 LIBS="-lhal $ac_hal_libs $LIBS"
9434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9435 /* end confdefs.h. */
9436
9437 /* Override any GCC internal prototype to avoid an error.
9438 Use char because int might match the return type of a GCC
9439 builtin and then its argument prototype would still apply. */
9440 #ifdef __cplusplus
9441 extern "C"
9442 #endif
9443 char libhal_ctx_new ();
9444 int
9445 main ()
9446 {
9447 return libhal_ctx_new ();
9448 ;
9449 return 0;
9450 }
9451 _ACEOF
9452 if ac_fn_c_try_link "$LINENO"; then :
9453 case "$LIBEXT" in
9454 dll) ;;
9455 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'` ;;
9456 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9457 esac
9458 fi
9459 rm -f core conftest.err conftest.$ac_objext \
9460 conftest$ac_exeext conftest.$ac_ext
9461 LIBS=$ac_check_soname_save_LIBS
9462 fi
9463 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9465 $as_echo "not found" >&6; }
9466
9467 else
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9469 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9470
9471 cat >>confdefs.h <<_ACEOF
9472 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9473 _ACEOF
9474
9475 HALINCL="$ac_hal_cflags"
9476 fi
9477 fi
9478
9479 fi
9480 CPPFLAGS="$ac_save_CPPFLAGS"
9481 fi
9482 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9483 case "x$with_hal" in
9484 x) wine_notices="$wine_notices|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9485 xno) ;;
9486 *) as_fn_error "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9487 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9488 esac
9489 fi
9490
9491 if test "x$with_gnutls" != "xno"
9492 then
9493 ac_save_CPPFLAGS="$CPPFLAGS"
9494 if test "$PKG_CONFIG" != "false"
9495 then
9496 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9497 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9498 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9499 fi
9500 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9501 if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
9502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503 /* end confdefs.h. */
9504 #include <gnutls/gnutls.h>
9505 int
9506 main ()
9507 {
9508 typeof(gnutls_mac_get_key_size) *pfunc;
9509 ;
9510 return 0;
9511 }
9512 _ACEOF
9513 if ac_fn_c_try_compile "$LINENO"; then :
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9515 $as_echo_n "checking for -lgnutls... " >&6; }
9516 if test "${ac_cv_lib_soname_gnutls+set}" = set; then :
9517 $as_echo_n "(cached) " >&6
9518 else
9519 ac_check_soname_save_LIBS=$LIBS
9520 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h. */
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
9528 extern "C"
9529 #endif
9530 char gnutls_global_init ();
9531 int
9532 main ()
9533 {
9534 return gnutls_global_init ();
9535 ;
9536 return 0;
9537 }
9538 _ACEOF
9539 if ac_fn_c_try_link "$LINENO"; then :
9540 case "$LIBEXT" in
9541 dll) ;;
9542 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'` ;;
9543 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9544 esac
9545 fi
9546 rm -f core conftest.err conftest.$ac_objext \
9547 conftest$ac_exeext conftest.$ac_ext
9548 LIBS=$ac_check_soname_save_LIBS
9549 fi
9550 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9552 $as_echo "not found" >&6; }
9553
9554 else
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9556 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9557
9558 cat >>confdefs.h <<_ACEOF
9559 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9560 _ACEOF
9561
9562 GNUTLSINCL="$ac_gnutls_cflags"
9563
9564 fi
9565 fi
9566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9567 fi
9568
9569
9570 CPPFLAGS="$ac_save_CPPFLAGS"
9571 fi
9572 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9573 case "x$with_gnutls" in
9574 x) wine_notices="$wine_notices|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9575 xno) ;;
9576 *) as_fn_error "libgnutls ${notice_platform}development files not found, no schannel support.
9577 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9578 esac
9579 fi
9580
9581 CURSESLIBS=""
9582 if test "$ac_cv_header_ncurses_h" = "yes"
9583 then
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9585 $as_echo_n "checking for -lncurses... " >&6; }
9586 if test "${ac_cv_lib_soname_ncurses+set}" = set; then :
9587 $as_echo_n "(cached) " >&6
9588 else
9589 ac_check_soname_save_LIBS=$LIBS
9590 LIBS="-lncurses $LIBS"
9591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9592 /* end confdefs.h. */
9593
9594 /* Override any GCC internal prototype to avoid an error.
9595 Use char because int might match the return type of a GCC
9596 builtin and then its argument prototype would still apply. */
9597 #ifdef __cplusplus
9598 extern "C"
9599 #endif
9600 char waddch ();
9601 int
9602 main ()
9603 {
9604 return waddch ();
9605 ;
9606 return 0;
9607 }
9608 _ACEOF
9609 if ac_fn_c_try_link "$LINENO"; then :
9610 case "$LIBEXT" in
9611 dll) ;;
9612 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'` ;;
9613 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9614 esac
9615 fi
9616 rm -f core conftest.err conftest.$ac_objext \
9617 conftest$ac_exeext conftest.$ac_ext
9618 LIBS=$ac_check_soname_save_LIBS
9619 fi
9620 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9622 $as_echo "not found" >&6; }
9623
9624 else
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9626 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9627
9628 cat >>confdefs.h <<_ACEOF
9629 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9630 _ACEOF
9631
9632 CURSESLIBS="-lncurses"
9633 fi
9634 elif test "$ac_cv_header_curses_h" = "yes"
9635 then
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9637 $as_echo_n "checking for -lcurses... " >&6; }
9638 if test "${ac_cv_lib_soname_curses+set}" = set; then :
9639 $as_echo_n "(cached) " >&6
9640 else
9641 ac_check_soname_save_LIBS=$LIBS
9642 LIBS="-lcurses $LIBS"
9643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9644 /* end confdefs.h. */
9645
9646 /* Override any GCC internal prototype to avoid an error.
9647 Use char because int might match the return type of a GCC
9648 builtin and then its argument prototype would still apply. */
9649 #ifdef __cplusplus
9650 extern "C"
9651 #endif
9652 char waddch ();
9653 int
9654 main ()
9655 {
9656 return waddch ();
9657 ;
9658 return 0;
9659 }
9660 _ACEOF
9661 if ac_fn_c_try_link "$LINENO"; then :
9662 case "$LIBEXT" in
9663 dll) ;;
9664 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'` ;;
9665 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9666 esac
9667 fi
9668 rm -f core conftest.err conftest.$ac_objext \
9669 conftest$ac_exeext conftest.$ac_ext
9670 LIBS=$ac_check_soname_save_LIBS
9671 fi
9672 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9674 $as_echo "not found" >&6; }
9675
9676 else
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9678 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9679
9680 cat >>confdefs.h <<_ACEOF
9681 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9682 _ACEOF
9683
9684 CURSESLIBS="-lcurses"
9685 fi
9686 fi
9687 ac_save_LIBS="$LIBS"
9688 LIBS="$LIBS $CURSESLIBS"
9689 for ac_func in mousemask
9690 do :
9691 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9692 if test "x$ac_cv_func_mousemask" = x""yes; then :
9693 cat >>confdefs.h <<_ACEOF
9694 #define HAVE_MOUSEMASK 1
9695 _ACEOF
9696
9697 fi
9698 done
9699
9700 LIBS="$ac_save_LIBS"
9701 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9702 case "x$with_curses" in
9703 x) wine_notices="$wine_notices|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9704 xno) ;;
9705 *) as_fn_error "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9706 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9707 esac
9708 fi
9709
9710 if test "x$with_sane" != "xno"
9711 then
9712 ac_save_CPPFLAGS="$CPPFLAGS"
9713 # Extract the first word of "sane-config", so it can be a program name with args.
9714 set dummy sane-config; ac_word=$2
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9716 $as_echo_n "checking for $ac_word... " >&6; }
9717 if test "${ac_cv_prog_sane_devel+set}" = set; then :
9718 $as_echo_n "(cached) " >&6
9719 else
9720 if test -n "$sane_devel"; then
9721 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9722 else
9723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9724 for as_dir in $PATH
9725 do
9726 IFS=$as_save_IFS
9727 test -z "$as_dir" && as_dir=.
9728 for ac_exec_ext in '' $ac_executable_extensions; do
9729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9730 ac_cv_prog_sane_devel="sane-config"
9731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9732 break 2
9733 fi
9734 done
9735 done
9736 IFS=$as_save_IFS
9737
9738 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9739 fi
9740 fi
9741 sane_devel=$ac_cv_prog_sane_devel
9742 if test -n "$sane_devel"; then
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9744 $as_echo "$sane_devel" >&6; }
9745 else
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9747 $as_echo "no" >&6; }
9748 fi
9749
9750
9751 if test "$sane_devel" != "no"
9752 then
9753 ac_sane_incl="`$sane_devel --cflags`"
9754 ac_sane_libs="`$sane_devel --ldflags`"
9755 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9756 fi
9757 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9758 if test "x$ac_cv_header_sane_sane_h" = x""yes; then :
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9760 $as_echo_n "checking for -lsane... " >&6; }
9761 if test "${ac_cv_lib_soname_sane+set}" = set; then :
9762 $as_echo_n "(cached) " >&6
9763 else
9764 ac_check_soname_save_LIBS=$LIBS
9765 LIBS="-lsane $ac_sane_libs $LIBS"
9766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9767 /* end confdefs.h. */
9768
9769 /* Override any GCC internal prototype to avoid an error.
9770 Use char because int might match the return type of a GCC
9771 builtin and then its argument prototype would still apply. */
9772 #ifdef __cplusplus
9773 extern "C"
9774 #endif
9775 char sane_init ();
9776 int
9777 main ()
9778 {
9779 return sane_init ();
9780 ;
9781 return 0;
9782 }
9783 _ACEOF
9784 if ac_fn_c_try_link "$LINENO"; then :
9785 case "$LIBEXT" in
9786 dll) ;;
9787 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'` ;;
9788 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9789 esac
9790 fi
9791 rm -f core conftest.err conftest.$ac_objext \
9792 conftest$ac_exeext conftest.$ac_ext
9793 LIBS=$ac_check_soname_save_LIBS
9794 fi
9795 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9797 $as_echo "not found" >&6; }
9798
9799 else
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9801 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9802
9803 cat >>confdefs.h <<_ACEOF
9804 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9805 _ACEOF
9806
9807 SANEINCL="$ac_sane_incl"
9808
9809 fi
9810 fi
9811
9812
9813 CPPFLAGS="$ac_save_CPPFLAGS"
9814 fi
9815 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9816 case "x$with_sane" in
9817 x) wine_notices="$wine_notices|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9818 xno) ;;
9819 *) as_fn_error "libsane ${notice_platform}development files not found, scanners won't be supported.
9820 This is an error since --with-sane was requested." "$LINENO" 5 ;;
9821 esac
9822 fi
9823
9824 if test "x$with_gphoto" != "xno"
9825 then
9826 ac_save_CPPFLAGS="$CPPFLAGS"
9827 # Extract the first word of "gphoto2-config", so it can be a program name with args.
9828 set dummy gphoto2-config; ac_word=$2
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9830 $as_echo_n "checking for $ac_word... " >&6; }
9831 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then :
9832 $as_echo_n "(cached) " >&6
9833 else
9834 if test -n "$gphoto2_devel"; then
9835 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
9836 else
9837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9838 for as_dir in $PATH
9839 do
9840 IFS=$as_save_IFS
9841 test -z "$as_dir" && as_dir=.
9842 for ac_exec_ext in '' $ac_executable_extensions; do
9843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9844 ac_cv_prog_gphoto2_devel="gphoto2-config"
9845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9846 break 2
9847 fi
9848 done
9849 done
9850 IFS=$as_save_IFS
9851
9852 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
9853 fi
9854 fi
9855 gphoto2_devel=$ac_cv_prog_gphoto2_devel
9856 if test -n "$gphoto2_devel"; then
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
9858 $as_echo "$gphoto2_devel" >&6; }
9859 else
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9861 $as_echo "no" >&6; }
9862 fi
9863
9864
9865 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
9866 set dummy gphoto2-port-config; ac_word=$2
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9868 $as_echo_n "checking for $ac_word... " >&6; }
9869 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then :
9870 $as_echo_n "(cached) " >&6
9871 else
9872 if test -n "$gphoto2port_devel"; then
9873 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
9874 else
9875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9876 for as_dir in $PATH
9877 do
9878 IFS=$as_save_IFS
9879 test -z "$as_dir" && as_dir=.
9880 for ac_exec_ext in '' $ac_executable_extensions; do
9881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9882 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
9883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9884 break 2
9885 fi
9886 done
9887 done
9888 IFS=$as_save_IFS
9889
9890 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
9891 fi
9892 fi
9893 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
9894 if test -n "$gphoto2port_devel"; then
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
9896 $as_echo "$gphoto2port_devel" >&6; }
9897 else
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9899 $as_echo "no" >&6; }
9900 fi
9901
9902
9903 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
9904 then
9905 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
9906 ac_gphoto2_libs=""
9907 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
9908 do
9909 case "$i" in
9910 -L/usr/lib|-L/usr/lib64) ;;
9911 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
9912 esac
9913 done
9914 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
9915 fi
9916 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
9917 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
9918 if test "x$ac_cv_header_gphoto2_camera_h" = x""yes; then :
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
9920 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
9921 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then :
9922 $as_echo_n "(cached) " >&6
9923 else
9924 ac_check_lib_save_LIBS=$LIBS
9925 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
9926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927 /* end confdefs.h. */
9928
9929 /* Override any GCC internal prototype to avoid an error.
9930 Use char because int might match the return type of a GCC
9931 builtin and then its argument prototype would still apply. */
9932 #ifdef __cplusplus
9933 extern "C"
9934 #endif
9935 char gp_camera_new ();
9936 int
9937 main ()
9938 {
9939 return gp_camera_new ();
9940 ;
9941 return 0;
9942 }
9943 _ACEOF
9944 if ac_fn_c_try_link "$LINENO"; then :
9945 ac_cv_lib_gphoto2_gp_camera_new=yes
9946 else
9947 ac_cv_lib_gphoto2_gp_camera_new=no
9948 fi
9949 rm -f core conftest.err conftest.$ac_objext \
9950 conftest$ac_exeext conftest.$ac_ext
9951 LIBS=$ac_check_lib_save_LIBS
9952 fi
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
9954 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
9955 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = x""yes; then :
9956
9957 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
9958
9959 GPHOTO2LIBS="$ac_gphoto2_libs"
9960
9961 GPHOTO2INCL="$ac_gphoto2_incl"
9962
9963 fi
9964
9965 fi
9966
9967
9968 CPPFLAGS="$ac_save_CPPFLAGS"
9969 fi
9970 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
9971 case "x$with_gphoto" in
9972 x) wine_notices="$wine_notices|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
9973 xno) ;;
9974 *) as_fn_error "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
9975 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
9976 esac
9977 fi
9978
9979
9980 RESOLVLIBS=""
9981
9982 if test "$ac_cv_header_resolv_h" = "yes"
9983 then
9984 ac_save_LIBS="$LIBS"
9985 LIBS="$LIBS -lresolv"
9986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987 /* end confdefs.h. */
9988 #ifdef HAVE_NETINET_IN_H
9989 #include <netinet/in.h>
9990 #endif
9991 #include <resolv.h>
9992 int
9993 main ()
9994 {
9995 res_init();
9996 ;
9997 return 0;
9998 }
9999 _ACEOF
10000 if ac_fn_c_try_link "$LINENO"; then :
10001
10002 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10003
10004 RESOLVLIBS="-lresolv"
10005 fi
10006 rm -f core conftest.err conftest.$ac_objext \
10007 conftest$ac_exeext conftest.$ac_ext
10008 LIBS="$ac_save_LIBS"
10009 fi
10010
10011 LCMSLIBS=""
10012
10013 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10014 then
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10016 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10017 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
10018 $as_echo_n "(cached) " >&6
10019 else
10020 ac_check_lib_save_LIBS=$LIBS
10021 LIBS="-llcms $LIBS"
10022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10023 /* end confdefs.h. */
10024
10025 /* Override any GCC internal prototype to avoid an error.
10026 Use char because int might match the return type of a GCC
10027 builtin and then its argument prototype would still apply. */
10028 #ifdef __cplusplus
10029 extern "C"
10030 #endif
10031 char cmsOpenProfileFromFile ();
10032 int
10033 main ()
10034 {
10035 return cmsOpenProfileFromFile ();
10036 ;
10037 return 0;
10038 }
10039 _ACEOF
10040 if ac_fn_c_try_link "$LINENO"; then :
10041 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10042 else
10043 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10044 fi
10045 rm -f core conftest.err conftest.$ac_objext \
10046 conftest$ac_exeext conftest.$ac_ext
10047 LIBS=$ac_check_lib_save_LIBS
10048 fi
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10050 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10051 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
10052
10053 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10054
10055 LCMSLIBS="-llcms"
10056 fi
10057
10058 fi
10059 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10060 case "x$with_cms" in
10061 x) wine_notices="$wine_notices|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10062 xno) ;;
10063 *) as_fn_error "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10064 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10065 esac
10066 fi
10067
10068 if test "x$with_freetype" != "xno"
10069 then
10070 for ac_prog in freetype-config freetype2-config
10071 do
10072 # Extract the first word of "$ac_prog", so it can be a program name with args.
10073 set dummy $ac_prog; ac_word=$2
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10075 $as_echo_n "checking for $ac_word... " >&6; }
10076 if test "${ac_cv_prog_ft_devel+set}" = set; then :
10077 $as_echo_n "(cached) " >&6
10078 else
10079 if test -n "$ft_devel"; then
10080 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10081 else
10082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10083 for as_dir in $PATH
10084 do
10085 IFS=$as_save_IFS
10086 test -z "$as_dir" && as_dir=.
10087 for ac_exec_ext in '' $ac_executable_extensions; do
10088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10089 ac_cv_prog_ft_devel="$ac_prog"
10090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10091 break 2
10092 fi
10093 done
10094 done
10095 IFS=$as_save_IFS
10096
10097 fi
10098 fi
10099 ft_devel=$ac_cv_prog_ft_devel
10100 if test -n "$ft_devel"; then
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10102 $as_echo "$ft_devel" >&6; }
10103 else
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10105 $as_echo "no" >&6; }
10106 fi
10107
10108
10109 test -n "$ft_devel" && break
10110 done
10111 test -n "$ft_devel" || ft_devel="no"
10112
10113 if test "$ft_devel" != "no"
10114 then
10115 ac_freetype_incl=`$ft_devel --cflags`
10116 ac_freetype_libs=`$ft_devel --libs`
10117 fi
10118 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10120 $as_echo_n "checking for -lfreetype... " >&6; }
10121 if test "${ac_cv_lib_soname_freetype+set}" = set; then :
10122 $as_echo_n "(cached) " >&6
10123 else
10124 ac_check_soname_save_LIBS=$LIBS
10125 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10128
10129 /* Override any GCC internal prototype to avoid an error.
10130 Use char because int might match the return type of a GCC
10131 builtin and then its argument prototype would still apply. */
10132 #ifdef __cplusplus
10133 extern "C"
10134 #endif
10135 char FT_Init_FreeType ();
10136 int
10137 main ()
10138 {
10139 return FT_Init_FreeType ();
10140 ;
10141 return 0;
10142 }
10143 _ACEOF
10144 if ac_fn_c_try_link "$LINENO"; then :
10145 case "$LIBEXT" in
10146 dll) ;;
10147 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'` ;;
10148 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10149 esac
10150 fi
10151 rm -f core conftest.err conftest.$ac_objext \
10152 conftest$ac_exeext conftest.$ac_ext
10153 LIBS=$ac_check_soname_save_LIBS
10154 fi
10155 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10157 $as_echo "not found" >&6; }
10158 ft_lib=no
10159 else
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10161 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10162
10163 cat >>confdefs.h <<_ACEOF
10164 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10165 _ACEOF
10166
10167 ft_lib=yes
10168 fi
10169 if test "$ft_lib" = "yes"
10170 then
10171 ac_save_CPPFLAGS="$CPPFLAGS"
10172 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10173 for ac_header in ft2build.h \
10174 freetype/freetype.h \
10175 freetype/ftglyph.h \
10176 freetype/fttypes.h \
10177 freetype/tttables.h \
10178 freetype/ftsnames.h \
10179 freetype/ttnameid.h \
10180 freetype/ftoutln.h \
10181 freetype/ftwinfnt.h \
10182 freetype/ftmodapi.h \
10183 freetype/ftlcdfil.h \
10184 freetype/internal/sfnt.h
10185 do :
10186 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10187 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10188 # include <ft2build.h>
10189 #endif
10190 "
10191 eval as_val=\$$as_ac_Header
10192 if test "x$as_val" = x""yes; then :
10193 cat >>confdefs.h <<_ACEOF
10194 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10195 _ACEOF
10196
10197 fi
10198
10199 done
10200
10201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10202 /* end confdefs.h. */
10203 #include <ft2build.h>
10204 #include <freetype/fttrigon.h>
10205 _ACEOF
10206 if ac_fn_c_try_cpp "$LINENO"; then :
10207
10208 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10209
10210 wine_cv_fttrigon=yes
10211 else
10212 wine_cv_fttrigon=no
10213 fi
10214 rm -f conftest.err conftest.$ac_ext
10215 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10216 "
10217 if test "x$ac_cv_type_FT_TrueTypeEngineType" = x""yes; then :
10218
10219 cat >>confdefs.h <<_ACEOF
10220 #define HAVE_FT_TRUETYPEENGINETYPE 1
10221 _ACEOF
10222
10223
10224 fi
10225
10226 ac_save_CFLAGS="$CFLAGS"
10227 CFLAGS="$CFLAGS $ac_freetype_libs"
10228 for ac_func in FT_Load_Sfnt_Table
10229 do :
10230 ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10231 if test "x$ac_cv_func_FT_Load_Sfnt_Table" = x""yes; then :
10232 cat >>confdefs.h <<_ACEOF
10233 #define HAVE_FT_LOAD_SFNT_TABLE 1
10234 _ACEOF
10235
10236 fi
10237 done
10238
10239 CFLAGS="$ac_save_CFLAGS"
10240 CPPFLAGS="$ac_save_CPPFLAGS"
10241 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10242 then
10243
10244 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10245
10246 FREETYPELIBS="$ac_freetype_libs"
10247
10248 FREETYPEINCL="$ac_freetype_incl"
10249
10250 fi
10251 fi
10252 fi
10253 if test "x$FREETYPELIBS" = "x"; then :
10254 case "x$with_freetype" in
10255 xno) ;;
10256 *) as_fn_error "FreeType ${notice_platform}development files not found. Fonts will not be built.
10257 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10258 esac
10259 fi
10260 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10261
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10263 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10264 if test "${ac_cv_c_ppdev+set}" = set; then :
10265 $as_echo_n "(cached) " >&6
10266 else
10267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10268 /* end confdefs.h. */
10269 #include <linux/ppdev.h>
10270 int
10271 main ()
10272 {
10273 ioctl (1,PPCLAIM,0)
10274 ;
10275 return 0;
10276 }
10277 _ACEOF
10278 if ac_fn_c_try_compile "$LINENO"; then :
10279 ac_cv_c_ppdev="yes"
10280 else
10281 ac_cv_c_ppdev="no"
10282 fi
10283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10284 fi
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10286 $as_echo "$ac_cv_c_ppdev" >&6; }
10287 if test "$ac_cv_c_ppdev" = "yes"
10288 then
10289
10290 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10291
10292 fi
10293
10294 ac_wine_check_funcs_save_LIBS="$LIBS"
10295 LIBS="$LIBS $LIBPTHREAD"
10296 for ac_func in \
10297 pthread_attr_get_np \
10298 pthread_getattr_np \
10299 pthread_get_stackaddr_np \
10300 pthread_get_stacksize_np
10301 do :
10302 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10303 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10304 eval as_val=\$$as_ac_var
10305 if test "x$as_val" = x""yes; then :
10306 cat >>confdefs.h <<_ACEOF
10307 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10308 _ACEOF
10309
10310 fi
10311 done
10312
10313 LIBS="$ac_wine_check_funcs_save_LIBS"
10314
10315 if test "$ac_cv_header_zlib_h" = "yes"
10316 then
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10318 $as_echo_n "checking for inflate in -lz... " >&6; }
10319 if test "${ac_cv_lib_z_inflate+set}" = set; then :
10320 $as_echo_n "(cached) " >&6
10321 else
10322 ac_check_lib_save_LIBS=$LIBS
10323 LIBS="-lz $LIBS"
10324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10325 /* end confdefs.h. */
10326
10327 /* Override any GCC internal prototype to avoid an error.
10328 Use char because int might match the return type of a GCC
10329 builtin and then its argument prototype would still apply. */
10330 #ifdef __cplusplus
10331 extern "C"
10332 #endif
10333 char inflate ();
10334 int
10335 main ()
10336 {
10337 return inflate ();
10338 ;
10339 return 0;
10340 }
10341 _ACEOF
10342 if ac_fn_c_try_link "$LINENO"; then :
10343 ac_cv_lib_z_inflate=yes
10344 else
10345 ac_cv_lib_z_inflate=no
10346 fi
10347 rm -f core conftest.err conftest.$ac_objext \
10348 conftest$ac_exeext conftest.$ac_ext
10349 LIBS=$ac_check_lib_save_LIBS
10350 fi
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10352 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10353 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
10354
10355 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10356
10357 ZLIB="-lz"
10358
10359 fi
10360
10361 fi
10362
10363 if test "x$with_esd" != xno
10364 then
10365 save_CFLAGS="$CFLAGS"
10366 # Extract the first word of "esd-config", so it can be a program name with args.
10367 set dummy esd-config; ac_word=$2
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10369 $as_echo_n "checking for $ac_word... " >&6; }
10370 if test "${ac_cv_path_ESDCONFIG+set}" = set; then :
10371 $as_echo_n "(cached) " >&6
10372 else
10373 case $ESDCONFIG in
10374 [\\/]* | ?:[\\/]*)
10375 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10376 ;;
10377 *)
10378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10379 for as_dir in $PATH
10380 do
10381 IFS=$as_save_IFS
10382 test -z "$as_dir" && as_dir=.
10383 for ac_exec_ext in '' $ac_executable_extensions; do
10384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10385 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10387 break 2
10388 fi
10389 done
10390 done
10391 IFS=$as_save_IFS
10392
10393 test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
10394 ;;
10395 esac
10396 fi
10397 ESDCONFIG=$ac_cv_path_ESDCONFIG
10398 if test -n "$ESDCONFIG"; then
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
10400 $as_echo "$ESDCONFIG" >&6; }
10401 else
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10403 $as_echo "no" >&6; }
10404 fi
10405
10406
10407 if test "x$ESDCONFIG" != "xno"
10408 then
10409 ac_esd_incl=""
10410 for i in `$ESDCONFIG --cflags`
10411 do
10412 case "$i" in
10413 -I*) ac_esd_incl="$ac_esd_incl $i";;
10414 esac
10415 done
10416 ac_esd_libs=`$ESDCONFIG --libs`
10417 CFLAGS="$CFLAGS $ac_esd_incl"
10418 fi
10419 ac_esd_libs=${ac_esd_libs:-"-lesd"}
10420 ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10421 if test "x$ac_cv_header_esd_h" = x""yes; then :
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
10423 $as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
10424 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then :
10425 $as_echo_n "(cached) " >&6
10426 else
10427 ac_check_lib_save_LIBS=$LIBS
10428 LIBS="-lesd $ac_esd_libs $LIBS"
10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h. */
10431
10432 /* Override any GCC internal prototype to avoid an error.
10433 Use char because int might match the return type of a GCC
10434 builtin and then its argument prototype would still apply. */
10435 #ifdef __cplusplus
10436 extern "C"
10437 #endif
10438 char esd_open_sound ();
10439 int
10440 main ()
10441 {
10442 return esd_open_sound ();
10443 ;
10444 return 0;
10445 }
10446 _ACEOF
10447 if ac_fn_c_try_link "$LINENO"; then :
10448 ac_cv_lib_esd_esd_open_sound=yes
10449 else
10450 ac_cv_lib_esd_esd_open_sound=no
10451 fi
10452 rm -f core conftest.err conftest.$ac_objext \
10453 conftest$ac_exeext conftest.$ac_ext
10454 LIBS=$ac_check_lib_save_LIBS
10455 fi
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
10457 $as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
10458 if test "x$ac_cv_lib_esd_esd_open_sound" = x""yes; then :
10459 ESDINCL="$ac_esd_incl"
10460
10461 ESDLIBS="$ac_esd_libs"
10462
10463
10464 $as_echo "#define HAVE_ESD 1" >>confdefs.h
10465
10466 fi
10467
10468 fi
10469
10470
10471 CFLAGS="$save_CFLAGS"
10472 fi
10473
10474 ALSALIBS=""
10475
10476 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10477 then
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access in -lasound" >&5
10479 $as_echo_n "checking for snd_pcm_hw_params_get_access in -lasound... " >&6; }
10480 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then :
10481 $as_echo_n "(cached) " >&6
10482 else
10483 ac_check_lib_save_LIBS=$LIBS
10484 LIBS="-lasound $LIBS"
10485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10486 /* end confdefs.h. */
10487
10488 /* Override any GCC internal prototype to avoid an error.
10489 Use char because int might match the return type of a GCC
10490 builtin and then its argument prototype would still apply. */
10491 #ifdef __cplusplus
10492 extern "C"
10493 #endif
10494 char snd_pcm_hw_params_get_access ();
10495 int
10496 main ()
10497 {
10498 return snd_pcm_hw_params_get_access ();
10499 ;
10500 return 0;
10501 }
10502 _ACEOF
10503 if ac_fn_c_try_link "$LINENO"; then :
10504 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
10505 else
10506 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
10507 fi
10508 rm -f core conftest.err conftest.$ac_objext \
10509 conftest$ac_exeext conftest.$ac_ext
10510 LIBS=$ac_check_lib_save_LIBS
10511 fi
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
10513 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
10514 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access" = x""yes; then :
10515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10516 /* end confdefs.h. */
10517 #ifdef HAVE_ALSA_ASOUNDLIB_H
10518 #include <alsa/asoundlib.h>
10519 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10520 #include <sys/asoundlib.h>
10521 #endif
10522 int
10523 main ()
10524 {
10525 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
10526 ;
10527 return 0;
10528 }
10529 _ACEOF
10530 if ac_fn_c_try_compile "$LINENO"; then :
10531
10532 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
10533
10534 ALSALIBS="-lasound"
10535 fi
10536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10537 fi
10538
10539 fi
10540
10541 AUDIOIOLIBS=""
10542
10543 if test "$ac_cv_header_libaudioio_h" = "yes"
10544 then
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AudioIOGetVersion in -laudioio" >&5
10546 $as_echo_n "checking for AudioIOGetVersion in -laudioio... " >&6; }
10547 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then :
10548 $as_echo_n "(cached) " >&6
10549 else
10550 ac_check_lib_save_LIBS=$LIBS
10551 LIBS="-laudioio $LIBS"
10552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10553 /* end confdefs.h. */
10554
10555 /* Override any GCC internal prototype to avoid an error.
10556 Use char because int might match the return type of a GCC
10557 builtin and then its argument prototype would still apply. */
10558 #ifdef __cplusplus
10559 extern "C"
10560 #endif
10561 char AudioIOGetVersion ();
10562 int
10563 main ()
10564 {
10565 return AudioIOGetVersion ();
10566 ;
10567 return 0;
10568 }
10569 _ACEOF
10570 if ac_fn_c_try_link "$LINENO"; then :
10571 ac_cv_lib_audioio_AudioIOGetVersion=yes
10572 else
10573 ac_cv_lib_audioio_AudioIOGetVersion=no
10574 fi
10575 rm -f core conftest.err conftest.$ac_objext \
10576 conftest$ac_exeext conftest.$ac_ext
10577 LIBS=$ac_check_lib_save_LIBS
10578 fi
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10580 $as_echo "$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
10581 if test "x$ac_cv_lib_audioio_AudioIOGetVersion" = x""yes; then :
10582 AUDIOIOLIBS="-laudioio"
10583
10584 $as_echo "#define HAVE_LIBAUDIOIO 1" >>confdefs.h
10585
10586 fi
10587
10588 fi
10589
10590
10591 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10592 then
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10594 $as_echo_n "checking for -lcapi20... " >&6; }
10595 if test "${ac_cv_lib_soname_capi20+set}" = set; then :
10596 $as_echo_n "(cached) " >&6
10597 else
10598 ac_check_soname_save_LIBS=$LIBS
10599 LIBS="-lcapi20 $LIBS"
10600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10601 /* end confdefs.h. */
10602
10603 /* Override any GCC internal prototype to avoid an error.
10604 Use char because int might match the return type of a GCC
10605 builtin and then its argument prototype would still apply. */
10606 #ifdef __cplusplus
10607 extern "C"
10608 #endif
10609 char capi20_register ();
10610 int
10611 main ()
10612 {
10613 return capi20_register ();
10614 ;
10615 return 0;
10616 }
10617 _ACEOF
10618 if ac_fn_c_try_link "$LINENO"; then :
10619 case "$LIBEXT" in
10620 dll) ;;
10621 dylib) ac_cv_lib_soname_capi20=`otool -L conftest$ac_exeext | grep "libcapi20\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libcapi20