blob: d4b4325ed75c0429cff71367b313e58b18b9433f [file] [log] [blame]
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001#! /bin/sh
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002# Guess values for system-dependent variables and create Makefiles.
Alexandre Julliardf85d8da2002-05-10 03:14:24 +00003# Generated by GNU Autoconf 2.53 for Wine 20020509.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004#
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006# Free Software Foundation, Inc.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010if expr a : '\(a\)' >/dev/null 2>&1; then
11 as_expr=expr
12else
13 as_expr=false
14fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017## --------------------- ##
18## M4sh Initialization. ##
19## --------------------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh
24 NULLCMD=:
25elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 set -o posix
27fi
28
Alexandre Julliarddaa28862002-04-11 21:54:01 +000029# NLS nuisances.
30# Support unset when possible.
31if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 as_unset=unset
33else
34 as_unset=false
35fi
36
37(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
61
62
Alexandre Julliardf5818d22002-02-14 19:47:29 +000063# Name of the executable.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000064as_me=`(basename "$0") 2>/dev/null ||
65$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
69echo X/"$0" |
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
73 s/.*/./; q'`
74
75# PATH needs CR, and LINENO needs CR and PATH.
76# Avoid depending upon Character Ranges.
77as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80as_cr_digits='0123456789'
81as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83# The user is always right.
84if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
92 fi
93 rm -f conftest.sh
94fi
95
96
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107for as_dir in $PATH
108do
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112done
113
114 ;;
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
120 fi
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
124 fi
125 case $CONFIG_SHELL in
126 '')
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129do
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
134 /*)
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
142 export CONFIG_SHELL
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144 fi;;
145 esac
146 done
147done
148;;
149 esac
150
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
160 sed '
161 N
162 s,$,-,
163 : loop
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165 t loop
166 s,-$,,
167 s,^['$as_cr_digits']*\n,,
168 ' >$as_me.lineno &&
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
172
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
176 . ./$as_me.lineno
177 # Exit status is that of the last command.
178 exit
179}
180
181
182case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
184' ECHO_T=' ' ;;
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
187esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000188
189if expr a : '\(a\)' >/dev/null 2>&1; then
190 as_expr=expr
191else
192 as_expr=false
193fi
194
195rm -f conf$$ conf$$.exe conf$$.file
196echo >conf$$.file
197if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
202 as_ln_s='cp -p'
203 else
204 as_ln_s='ln -s'
205 fi
206elif ln conf$$.file conf$$ 2>/dev/null; then
207 as_ln_s=ln
208else
209 as_ln_s='cp -p'
210fi
211rm -f conf$$ conf$$.exe conf$$.file
212
213as_executable_p="test -f"
214
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000215# Sed expression to map a string onto a valid CPP name.
216as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000217
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000218# Sed expression to map a string onto a valid variable name.
219as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000221
222# IFS
223# We need space, tab and new line, in precisely that order.
224as_nl='
225'
226IFS=" $as_nl"
227
228# CDPATH.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000229$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000231
232# Name of the host.
233# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234# so uname gets run too.
235ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237exec 6>&1
238
239#
240# Initializations.
241#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000242ac_default_prefix=/usr/local
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000243cross_compiling=no
244subdirs=
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000245MFLAGS=
246MAKEFLAGS=
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000247SHELL=${CONFIG_SHELL-/bin/sh}
248
249# Maximum number of lines to put in a shell here document.
250# This variable seems obsolete. It should probably be removed, and
251# only ac_max_sed_lines should be used.
252: ${ac_max_here_lines=38}
253
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000254# Identity of this package.
255PACKAGE_NAME='Wine'
256PACKAGE_TARNAME='wine'
Alexandre Julliardf85d8da2002-05-10 03:14:24 +0000257PACKAGE_VERSION='20020509'
258PACKAGE_STRING='Wine 20020509'
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000259PACKAGE_BUGREPORT=''
260
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000261ac_unique_file="server/atom.c"
262# Factoring default headers for most tests.
263ac_includes_default="\
264#include <stdio.h>
265#if HAVE_SYS_TYPES_H
266# include <sys/types.h>
267#endif
268#if HAVE_SYS_STAT_H
269# include <sys/stat.h>
270#endif
271#if STDC_HEADERS
272# include <stdlib.h>
273# include <stddef.h>
274#else
275# if HAVE_STDLIB_H
276# include <stdlib.h>
277# endif
278#endif
279#if HAVE_STRING_H
280# if !STDC_HEADERS && HAVE_MEMORY_H
281# include <memory.h>
282# endif
283# include <string.h>
284#endif
285#if HAVE_STRINGS_H
286# include <strings.h>
287#endif
288#if HAVE_INTTYPES_H
289# include <inttypes.h>
290#else
291# if HAVE_STDINT_H
292# include <stdint.h>
293# endif
294#endif
295#if HAVE_UNISTD_H
296# include <unistd.h>
297#endif"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000298
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000299
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000300# Initialize some variables set by options.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000301ac_init_help=
302ac_init_version=false
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000303# The variables have the same names as the options, with
304# dashes changed to underlines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000305cache_file=/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000306exec_prefix=NONE
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000307no_create=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000308no_recursion=
309prefix=NONE
310program_prefix=NONE
311program_suffix=NONE
312program_transform_name=s,x,x,
313silent=
314site=
315srcdir=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000316verbose=
317x_includes=NONE
318x_libraries=NONE
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000319
320# Installation directory options.
321# These are left unexpanded so users can "make install exec_prefix=/foo"
322# and all the variables that are supposed to be based on exec_prefix
323# by default will actually change.
324# Use braces instead of parens because sh, perl, etc. also accept them.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000325bindir='${exec_prefix}/bin'
326sbindir='${exec_prefix}/sbin'
327libexecdir='${exec_prefix}/libexec'
328datadir='${prefix}/share'
329sysconfdir='${prefix}/etc'
330sharedstatedir='${prefix}/com'
331localstatedir='${prefix}/var'
332libdir='${exec_prefix}/lib'
333includedir='${prefix}/include'
334oldincludedir='/usr/include'
335infodir='${prefix}/info'
336mandir='${prefix}/man'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000337
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000338ac_prev=
339for ac_option
340do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
344 ac_prev=
345 continue
346 fi
347
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000349
350 # Accept the important Cygnus configure options, so we can diagnose typos.
351
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000352 case $ac_option in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000353
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
355 ac_prev=bindir ;;
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000357 bindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000358
359 -build | --build | --buil | --bui | --bu)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000360 ac_prev=build_alias ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000362 build_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000363
364 -cache-file | --cache-file | --cache-fil | --cache-fi \
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366 ac_prev=cache_file ;;
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000369 cache_file=$ac_optarg ;;
370
371 --config-cache | -C)
372 cache_file=config.cache ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000373
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375 ac_prev=datadir ;;
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377 | --da=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000378 datadir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000379
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000380 -disable-* | --disable-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000382 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000388
389 -enable-* | --enable-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000391 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396 case $ac_option in
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000398 *) ac_optarg=yes ;;
399 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000400 eval "enable_$ac_feature='$ac_optarg'" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000401
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404 | --exec | --exe | --ex)
405 ac_prev=exec_prefix ;;
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408 | --exec=* | --exe=* | --ex=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000409 exec_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000410
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
413 with_gas=yes ;;
414
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000415 -help | --help | --hel | --he | -h)
416 ac_init_help=long ;;
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418 ac_init_help=recursive ;;
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420 ac_init_help=short ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000421
422 -host | --host | --hos | --ho)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000423 ac_prev=host_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000424 -host=* | --host=* | --hos=* | --ho=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000425 host_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000426
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000427 -includedir | --includedir | --includedi | --included | --include \
428 | --includ | --inclu | --incl | --inc)
429 ac_prev=includedir ;;
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431 | --includ=* | --inclu=* | --incl=* | --inc=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000432 includedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000433
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
435 ac_prev=infodir ;;
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000437 infodir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000438
439 -libdir | --libdir | --libdi | --libd)
440 ac_prev=libdir ;;
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000442 libdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000443
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000449 libexecdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000450
451 -localstatedir | --localstatedir | --localstatedi | --localstated \
452 | --localstate | --localstat | --localsta | --localst \
453 | --locals | --local | --loca | --loc | --lo)
454 ac_prev=localstatedir ;;
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000458 localstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000459
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461 ac_prev=mandir ;;
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000463 mandir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000464
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000465 -nfp | --nfp | --nf)
466 # Obsolete; use --without-fp.
467 with_fp=no ;;
468
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000470 | --no-cr | --no-c | -n)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000471 no_create=yes ;;
472
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475 no_recursion=yes ;;
476
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479 | --oldin | --oldi | --old | --ol | --o)
480 ac_prev=oldincludedir ;;
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000484 oldincludedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000485
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487 ac_prev=prefix ;;
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000489 prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000490
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
492 | --program-pre | --program-pr | --program-p)
493 ac_prev=program_prefix ;;
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000496 program_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000497
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
499 | --program-suf | --program-su | --program-s)
500 ac_prev=program_suffix ;;
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000503 program_suffix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000504
505 -program-transform-name | --program-transform-name \
506 | --program-transform-nam | --program-transform-na \
507 | --program-transform-n | --program-transform- \
508 | --program-transform | --program-transfor \
509 | --program-transfo | --program-transf \
510 | --program-trans | --program-tran \
511 | --progr-tra | --program-tr | --program-t)
512 ac_prev=program_transform_name ;;
513 -program-transform-name=* | --program-transform-name=* \
514 | --program-transform-nam=* | --program-transform-na=* \
515 | --program-transform-n=* | --program-transform-=* \
516 | --program-transform=* | --program-transfor=* \
517 | --program-transfo=* | --program-transf=* \
518 | --program-trans=* | --program-tran=* \
519 | --progr-tra=* | --program-tr=* | --program-t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000520 program_transform_name=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000521
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
524 silent=yes ;;
525
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527 ac_prev=sbindir ;;
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529 | --sbi=* | --sb=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000530 sbindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000531
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
535 | --sha | --sh)
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540 | --sha=* | --sh=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000541 sharedstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000542
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000543 -site | --site | --sit)
544 ac_prev=site ;;
545 -site=* | --site=* | --sit=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000546 site=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000547
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549 ac_prev=srcdir ;;
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000551 srcdir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000552
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554 | --syscon | --sysco | --sysc | --sys | --sy)
555 ac_prev=sysconfdir ;;
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000558 sysconfdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000559
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000560 -target | --target | --targe | --targ | --tar | --ta | --t)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000561 ac_prev=target_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000563 target_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000564
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
566 verbose=yes ;;
567
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000568 -version | --version | --versio | --versi | --vers | -V)
569 ac_init_version=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000570
571 -with-* | --with-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000573 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000577 ac_package=`echo $ac_package| sed 's/-/_/g'`
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000580 *) ac_optarg=yes ;;
581 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000582 eval "with_$ac_package='$ac_optarg'" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000583
584 -without-* | --without-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000586 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000592
593 --x)
594 # Obsolete; use --with-x.
595 with_x=yes ;;
596
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598 | --x-incl | --x-inc | --x-in | --x-i)
599 ac_prev=x_includes ;;
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000602 x_includes=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000603
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606 ac_prev=x_libraries ;;
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000609 x_libraries=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000610
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000614 ;;
615
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000616 *=*)
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
624 export $ac_envvar ;;
625
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000626 *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000632 ;;
633
634 esac
635done
636
637if test -n "$ac_prev"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000641fi
642
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000643# Be sure to have absolute paths.
644for ac_var in exec_prefix prefix
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000645do
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000646 eval ac_val=$`echo $ac_var`
647 case $ac_val in
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000650 { (exit 1); exit 1; }; };;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000651 esac
652done
653
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000654# Be sure to have absolute paths.
655for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
657do
658 eval ac_val=$`echo $ac_var`
659 case $ac_val in
660 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000662 { (exit 1); exit 1; }; };;
663 esac
664done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000665
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000666# There might be people who depend on the old broken behavior: `$host'
667# used to hold the argument of --host etc.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000668# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000669build=$build_alias
670host=$host_alias
671target=$target_alias
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000672
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000673# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000674if test "x$host_alias" != x; then
675 if test "x$build_alias" = x; then
676 cross_compiling=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
680 cross_compiling=yes
681 fi
682fi
683
684ac_tool_prefix=
685test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687test "$silent" = yes && exec 6>/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000688
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000689
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000690# Find the source files, if location was not specified.
691if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000694 ac_confdir=`(dirname "$0") 2>/dev/null ||
695$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
700echo X"$0" |
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
705 s/.*/./; q'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000706 srcdir=$ac_confdir
707 if test ! -r $srcdir/$ac_unique_file; then
708 srcdir=..
709 fi
710else
711 ac_srcdir_defaulted=no
712fi
713if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000716 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000717 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000719 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000720 fi
721fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000722srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723ac_env_build_alias_set=${build_alias+set}
724ac_env_build_alias_value=$build_alias
725ac_cv_env_build_alias_set=${build_alias+set}
726ac_cv_env_build_alias_value=$build_alias
727ac_env_host_alias_set=${host_alias+set}
728ac_env_host_alias_value=$host_alias
729ac_cv_env_host_alias_set=${host_alias+set}
730ac_cv_env_host_alias_value=$host_alias
731ac_env_target_alias_set=${target_alias+set}
732ac_env_target_alias_value=$target_alias
733ac_cv_env_target_alias_set=${target_alias+set}
734ac_cv_env_target_alias_value=$target_alias
735ac_env_CC_set=${CC+set}
736ac_env_CC_value=$CC
737ac_cv_env_CC_set=${CC+set}
738ac_cv_env_CC_value=$CC
739ac_env_CFLAGS_set=${CFLAGS+set}
740ac_env_CFLAGS_value=$CFLAGS
741ac_cv_env_CFLAGS_set=${CFLAGS+set}
742ac_cv_env_CFLAGS_value=$CFLAGS
743ac_env_LDFLAGS_set=${LDFLAGS+set}
744ac_env_LDFLAGS_value=$LDFLAGS
745ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746ac_cv_env_LDFLAGS_value=$LDFLAGS
747ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748ac_env_CPPFLAGS_value=$CPPFLAGS
749ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751ac_env_CPP_set=${CPP+set}
752ac_env_CPP_value=$CPP
753ac_cv_env_CPP_set=${CPP+set}
754ac_cv_env_CPP_value=$CPP
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000755
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000756#
757# Report the --help message.
758#
759if test "$ac_init_help" = "long"; then
760 # Omit some internal or obsolete options to make the list less imposing.
761 # This message is too long to be a string in the A/UX 3.1 sh.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000762 cat <<_ACEOF
Alexandre Julliardf85d8da2002-05-10 03:14:24 +0000763\`configure' configures Wine 20020509 to adapt to many kinds of systems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000764
765Usage: $0 [OPTION]... [VAR=VALUE]...
766
767To assign environment variables (e.g., CC, CFLAGS...), specify them as
768VAR=VALUE. See below for descriptions of some of the useful variables.
769
770Defaults for the options are specified in brackets.
771
772Configuration:
773 -h, --help display this help and exit
774 --help=short display options specific to this package
775 --help=recursive display the short help of all the included packages
776 -V, --version display version information and exit
777 -q, --quiet, --silent do not print \`checking...' messages
778 --cache-file=FILE cache test results in FILE [disabled]
779 -C, --config-cache alias for \`--cache-file=config.cache'
780 -n, --no-create do not create output files
781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
782
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000783_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000784
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000785 cat <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000786Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
788 [$ac_default_prefix]
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
790 [PREFIX]
791
792By default, \`make install' will install all the files in
793\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795for instance \`--prefix=\$HOME'.
796
797For better control, use the options below.
798
799Fine tuning of the installation directories:
800 --bindir=DIR user executables [EPREFIX/bin]
801 --sbindir=DIR system admin executables [EPREFIX/sbin]
802 --libexecdir=DIR program executables [EPREFIX/libexec]
803 --datadir=DIR read-only architecture-independent data [PREFIX/share]
804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
806 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
807 --libdir=DIR object code libraries [EPREFIX/lib]
808 --includedir=DIR C header files [PREFIX/include]
809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
810 --infodir=DIR info documentation [PREFIX/info]
811 --mandir=DIR man documentation [PREFIX/man]
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000812_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000813
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000814 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000815
816X features:
817 --x-includes=DIR X include files are in DIR
818 --x-libraries=DIR X library files are in DIR
819
820System types:
821 --build=BUILD configure for building on BUILD [guessed]
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000822 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000823_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000824fi
825
826if test -n "$ac_init_help"; then
827 case $ac_init_help in
Alexandre Julliardf85d8da2002-05-10 03:14:24 +0000828 short | recursive ) echo "Configuration of Wine 20020509:";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000829 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000830 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000831
832Optional Features:
833 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
834 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
835 --disable-debug compile out all debugging messages
836 --disable-trace compile out TRACE messages
837 --enable-opengl force usage of OpenGL even if the latter is
838 thread-safe via pthread
839
840Optional Packages:
841 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
842 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
843 --without-curses do not use curses
Alexandre Julliardfc01b722002-05-12 03:16:39 +0000844 --with-wine-tools=<dir> use Wine tools from directory <dir>
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000845 --with-x use the X Window System
846
847Some influential environment variables:
848 CC C compiler command
849 CFLAGS C compiler flags
850 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
851 nonstandard directory <lib dir>
852 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
853 headers in a nonstandard directory <include dir>
854 CPP C preprocessor
855
856Use these variables to override the choices made by `configure' or to help
857it to find libraries and programs with nonstandard names/locations.
858
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000859_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000860fi
861
862if test "$ac_init_help" = "recursive"; then
863 # If there are subdirs, report their specific --help.
864 ac_popdir=`pwd`
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000865 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
866 test -d $ac_dir || continue
867 ac_builddir=.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000868
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000869if test "$ac_dir" != .; then
870 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
871 # A "../" for each directory in $ac_dir_suffix.
872 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
873else
874 ac_dir_suffix= ac_top_builddir=
875fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000876
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000877case $srcdir in
878 .) # No --srcdir option. We are building in place.
879 ac_srcdir=.
880 if test -z "$ac_top_builddir"; then
881 ac_top_srcdir=.
882 else
883 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
884 fi ;;
885 [\\/]* | ?:[\\/]* ) # Absolute path.
886 ac_srcdir=$srcdir$ac_dir_suffix;
887 ac_top_srcdir=$srcdir ;;
888 *) # Relative path.
889 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
890 ac_top_srcdir=$ac_top_builddir$srcdir ;;
891esac
892# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
893# absolute.
894ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
895ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
896ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
897ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
898
899 cd $ac_dir
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000900 # Check for guested configure; otherwise get Cygnus style configure.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000901 if test -f $ac_srcdir/configure.gnu; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000902 echo
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000903 $SHELL $ac_srcdir/configure.gnu --help=recursive
904 elif test -f $ac_srcdir/configure; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000905 echo
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000906 $SHELL $ac_srcdir/configure --help=recursive
907 elif test -f $ac_srcdir/configure.ac ||
908 test -f $ac_srcdir/configure.in; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000909 echo
910 $ac_configure --help
911 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000912 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000913 fi
914 cd $ac_popdir
915 done
916fi
917
918test -n "$ac_init_help" && exit 0
919if $ac_init_version; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000920 cat <<\_ACEOF
Alexandre Julliardf85d8da2002-05-10 03:14:24 +0000921Wine configure 20020509
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000922generated by GNU Autoconf 2.53
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000923
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000924Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000925Free Software Foundation, Inc.
926This configure script is free software; the Free Software Foundation
927gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000928_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000929 exit 0
930fi
931exec 5>config.log
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000932cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000933This file contains any messages produced by compilers while
934running configure, to aid debugging if configure makes a mistake.
935
Alexandre Julliardf85d8da2002-05-10 03:14:24 +0000936It was created by Wine $as_me 20020509, which was
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000937generated by GNU Autoconf 2.53. Invocation command line was
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000938
939 $ $0 $@
940
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000941_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000942{
943cat <<_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000944## --------- ##
945## Platform. ##
946## --------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000947
948hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
949uname -m = `(uname -m) 2>/dev/null || echo unknown`
950uname -r = `(uname -r) 2>/dev/null || echo unknown`
951uname -s = `(uname -s) 2>/dev/null || echo unknown`
952uname -v = `(uname -v) 2>/dev/null || echo unknown`
953
954/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
955/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
956
957/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
958/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
959/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
960hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
961/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
962/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
963/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
964
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000965_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000966
967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
968for as_dir in $PATH
969do
970 IFS=$as_save_IFS
971 test -z "$as_dir" && as_dir=.
972 echo "PATH: $as_dir"
973done
974
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000975} >&5
976
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000977cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000978
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000979
980## ----------- ##
981## Core tests. ##
982## ----------- ##
983
984_ACEOF
985
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000986
987# Keep a trace of the command line.
988# Strip out --no-create and --no-recursion so they do not pile up.
989# Also quote any args containing shell meta-characters.
990ac_configure_args=
991ac_sep=
992for ac_arg
993do
994 case $ac_arg in
995 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000996 | --no-cr | --no-c | -n ) continue ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999 continue ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001000 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001001 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1002 esac
1003 case " $ac_configure_args " in
1004 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1005 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1006 ac_sep=" " ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001007 esac
1008 # Get rid of the leading space.
1009done
1010
1011# When interrupted or exit'd, cleanup temporary files, and complete
1012# config.log. We remove comments because anyway the quotes in there
1013# would cause problems or look ugly.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001014# WARNING: Be sure not to use single quotes in there, as some shells,
1015# such as our DU 5.0 friend, will then `close' the trap.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001016trap 'exit_status=$?
1017 # Save into config.log some information that might help in debugging.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001018 {
1019 echo
1020 cat <<\_ASBOX
1021## ---------------- ##
1022## Cache variables. ##
1023## ---------------- ##
1024_ASBOX
1025 echo
1026 # The following way of writing the cache mishandles newlines in values,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001027{
1028 (set) 2>&1 |
1029 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1030 *ac_space=\ *)
1031 sed -n \
1032 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1034 ;;
1035 *)
1036 sed -n \
1037 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1038 ;;
1039 esac;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001040}
1041 echo
1042 if test -s confdefs.h; then
1043 cat <<\_ASBOX
1044## ----------- ##
1045## confdefs.h. ##
1046## ----------- ##
1047_ASBOX
1048 echo
1049 sed "/^$/d" confdefs.h
1050 echo
1051 fi
1052 test "$ac_signal" != 0 &&
1053 echo "$as_me: caught signal $ac_signal"
1054 echo "$as_me: exit $exit_status"
1055 } >&5
1056 rm -f core core.* *.core &&
1057 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001058 exit $exit_status
1059 ' 0
1060for ac_signal in 1 2 13 15; do
1061 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1062done
1063ac_signal=0
1064
1065# confdefs.h avoids OS command line length limits that DEFS can exceed.
1066rm -rf conftest* confdefs.h
1067# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1068echo >confdefs.h
1069
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001070# Predefined preprocessor variables.
1071
1072cat >>confdefs.h <<_ACEOF
1073#define PACKAGE_NAME "$PACKAGE_NAME"
1074_ACEOF
1075
1076
1077cat >>confdefs.h <<_ACEOF
1078#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1079_ACEOF
1080
1081
1082cat >>confdefs.h <<_ACEOF
1083#define PACKAGE_VERSION "$PACKAGE_VERSION"
1084_ACEOF
1085
1086
1087cat >>confdefs.h <<_ACEOF
1088#define PACKAGE_STRING "$PACKAGE_STRING"
1089_ACEOF
1090
1091
1092cat >>confdefs.h <<_ACEOF
1093#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1094_ACEOF
1095
1096
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001097# Let the site file select an alternate cache file if it wants to.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001098# Prefer explicitly selected file to automatically selected ones.
1099if test -z "$CONFIG_SITE"; then
1100 if test "x$prefix" != xNONE; then
1101 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1102 else
1103 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1104 fi
1105fi
1106for ac_site_file in $CONFIG_SITE; do
1107 if test -r "$ac_site_file"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001108 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001109echo "$as_me: loading site script $ac_site_file" >&6;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001110 sed 's/^/| /' "$ac_site_file" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001111 . "$ac_site_file"
1112 fi
1113done
1114
1115if test -r "$cache_file"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001116 # Some versions of bash will fail to source /dev/null (special
1117 # files actually), so we avoid doing that.
1118 if test -f "$cache_file"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001119 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001120echo "$as_me: loading cache $cache_file" >&6;}
1121 case $cache_file in
1122 [\\/]* | ?:[\\/]* ) . $cache_file;;
1123 *) . ./$cache_file;;
1124 esac
1125 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001126else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001127 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001128echo "$as_me: creating cache $cache_file" >&6;}
1129 >$cache_file
1130fi
1131
1132# Check that the precious variables saved in the cache have kept the same
1133# value.
1134ac_cache_corrupted=false
1135for ac_var in `(set) 2>&1 |
1136 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1137 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1138 eval ac_new_set=\$ac_env_${ac_var}_set
1139 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1140 eval ac_new_val="\$ac_env_${ac_var}_value"
1141 case $ac_old_set,$ac_new_set in
1142 set,)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001143 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001144echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1145 ac_cache_corrupted=: ;;
1146 ,set)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001147 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001148echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1149 ac_cache_corrupted=: ;;
1150 ,);;
1151 *)
1152 if test "x$ac_old_val" != "x$ac_new_val"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001153 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001154echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001155 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001156echo "$as_me: former value: $ac_old_val" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001157 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001158echo "$as_me: current value: $ac_new_val" >&2;}
1159 ac_cache_corrupted=:
1160 fi;;
1161 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001162 # Pass precious variables to config.status.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001163 if test "$ac_new_set" = set; then
1164 case $ac_new_val in
1165 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001166 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1167 *) ac_arg=$ac_var=$ac_new_val ;;
1168 esac
1169 case " $ac_configure_args " in
1170 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1171 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001172 esac
1173 fi
1174done
1175if $ac_cache_corrupted; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001176 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001177echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001178 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001179echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1180 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001181fi
1182
1183ac_ext=c
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001184ac_cpp='$CPP $CPPFLAGS'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1187ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001188
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001214
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001215ac_config_headers="$ac_config_headers include/config.h"
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001216
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001217ac_aux_dir=
1218for ac_dir in tools $srcdir/tools; do
1219 if test -f $ac_dir/install-sh; then
1220 ac_aux_dir=$ac_dir
1221 ac_install_sh="$ac_aux_dir/install-sh -c"
1222 break
1223 elif test -f $ac_dir/install.sh; then
1224 ac_aux_dir=$ac_dir
1225 ac_install_sh="$ac_aux_dir/install.sh -c"
1226 break
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001227 elif test -f $ac_dir/shtool; then
1228 ac_aux_dir=$ac_dir
1229 ac_install_sh="$ac_aux_dir/shtool install -c"
1230 break
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001231 fi
1232done
1233if test -z "$ac_aux_dir"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001234 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001235echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1236 { (exit 1); exit 1; }; }
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001237fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001238ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1239ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1240ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
Howard Abrams13277481999-07-10 13:16:29 +00001241
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001242
1243
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00001244LIBEXT=so # library type .so or .a
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00001245
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001246# Check whether --enable-debug or --disable-debug was given.
1247if test "${enable_debug+set}" = set; then
1248 enableval="$enable_debug"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001249
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001250fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001251# Check whether --enable-trace or --disable-trace was given.
1252if test "${enable_trace+set}" = set; then
1253 enableval="$enable_trace"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001254
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001255fi;
1256# Check whether --enable-opengl or --disable-opengl was given.
1257if test "${enable_opengl+set}" = set; then
1258 enableval="$enable_opengl"
1259
1260fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001261
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001262# Check whether --with-curses or --without-curses was given.
1263if test "${with_curses+set}" = set; then
1264 withval="$with_curses"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001265
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001266fi;
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001267
Alexandre Julliardfc01b722002-05-12 03:16:39 +00001268# Check whether --with-wine-tools or --without-wine-tools was given.
1269if test "${with_wine_tools+set}" = set; then
1270 withval="$with_wine_tools"
1271
1272fi;
1273
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001274
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001275if test "x$enable_debug" = "xno"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001276then
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001277
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001278cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001279#define NO_DEBUG_MSGS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001280_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001281
1282fi
1283if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001284then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001285
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001286cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001287#define NO_TRACE_MSGS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001288_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001289
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001290fi
1291
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001292
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001293# Make sure we can run config.sub.
1294$ac_config_sub sun4 >/dev/null 2>&1 ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001295 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001296echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1297 { (exit 1); exit 1; }; }
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00001298
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001299echo "$as_me:$LINENO: checking build system type" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001300echo $ECHO_N "checking build system type... $ECHO_C" >&6
1301if test "${ac_cv_build+set}" = set; then
1302 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001303else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001304 ac_cv_build_alias=$build_alias
1305test -z "$ac_cv_build_alias" &&
1306 ac_cv_build_alias=`$ac_config_guess`
1307test -z "$ac_cv_build_alias" &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001308 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001309echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1310 { (exit 1); exit 1; }; }
1311ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001312 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1313echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001314 { (exit 1); exit 1; }; }
1315
1316fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001317echo "$as_me:$LINENO: result: $ac_cv_build" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001318echo "${ECHO_T}$ac_cv_build" >&6
1319build=$ac_cv_build
1320build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1321build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1322build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1323
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001324
1325echo "$as_me:$LINENO: checking host system type" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001326echo $ECHO_N "checking host system type... $ECHO_C" >&6
1327if test "${ac_cv_host+set}" = set; then
1328 echo $ECHO_N "(cached) $ECHO_C" >&6
1329else
1330 ac_cv_host_alias=$host_alias
1331test -z "$ac_cv_host_alias" &&
1332 ac_cv_host_alias=$ac_cv_build_alias
1333ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001334 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001335echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1336 { (exit 1); exit 1; }; }
1337
1338fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001339echo "$as_me:$LINENO: result: $ac_cv_host" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001340echo "${ECHO_T}$ac_cv_host" >&6
1341host=$ac_cv_host
1342host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1343host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1344host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1345
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001346
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001347echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001348echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1349set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1350if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1351 echo $ECHO_N "(cached) $ECHO_C" >&6
1352else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001353 cat >conftest.make <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001354all:
1355 @echo 'ac_maketemp="${MAKE}"'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001356_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001357# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001358eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001359if test -n "$ac_maketemp"; then
1360 eval ac_cv_prog_make_${ac_make}_set=yes
1361else
1362 eval ac_cv_prog_make_${ac_make}_set=no
1363fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001364rm -f conftest.make
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001365fi
1366if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001367 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001368echo "${ECHO_T}yes" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001369 SET_MAKE=
1370else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001371 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001372echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001373 SET_MAKE="MAKE=${MAKE-make}"
1374fi
1375
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001376ac_ext=c
1377ac_cpp='$CPP $CPPFLAGS'
1378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1380ac_compiler_gnu=$ac_cv_c_compiler_gnu
1381if test -n "$ac_tool_prefix"; then
1382 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1383set dummy ${ac_tool_prefix}gcc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001384echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1386if test "${ac_cv_prog_CC+set}" = set; then
1387 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001388else
1389 if test -n "$CC"; then
1390 ac_cv_prog_CC="$CC" # Let the user override the test.
1391else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1393for as_dir in $PATH
1394do
1395 IFS=$as_save_IFS
1396 test -z "$as_dir" && as_dir=.
1397 for ac_exec_ext in '' $ac_executable_extensions; do
1398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1399 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1401 break 2
1402 fi
1403done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001404done
1405
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001406fi
1407fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001408CC=$ac_cv_prog_CC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001409if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001410 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001411echo "${ECHO_T}$CC" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001412else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001413 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001414echo "${ECHO_T}no" >&6
1415fi
1416
1417fi
1418if test -z "$ac_cv_prog_CC"; then
1419 ac_ct_CC=$CC
1420 # Extract the first word of "gcc", so it can be a program name with args.
1421set dummy gcc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001422echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1424if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1425 echo $ECHO_N "(cached) $ECHO_C" >&6
1426else
1427 if test -n "$ac_ct_CC"; then
1428 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1429else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1431for as_dir in $PATH
1432do
1433 IFS=$as_save_IFS
1434 test -z "$as_dir" && as_dir=.
1435 for ac_exec_ext in '' $ac_executable_extensions; do
1436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1437 ac_cv_prog_ac_ct_CC="gcc"
1438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1439 break 2
1440 fi
1441done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001442done
1443
1444fi
1445fi
1446ac_ct_CC=$ac_cv_prog_ac_ct_CC
1447if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001448 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001449echo "${ECHO_T}$ac_ct_CC" >&6
1450else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001451 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001452echo "${ECHO_T}no" >&6
1453fi
1454
1455 CC=$ac_ct_CC
1456else
1457 CC="$ac_cv_prog_CC"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001458fi
1459
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001460if test -z "$CC"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001461 if test -n "$ac_tool_prefix"; then
1462 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1463set dummy ${ac_tool_prefix}cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001464echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1466if test "${ac_cv_prog_CC+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001468else
1469 if test -n "$CC"; then
1470 ac_cv_prog_CC="$CC" # Let the user override the test.
1471else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473for as_dir in $PATH
1474do
1475 IFS=$as_save_IFS
1476 test -z "$as_dir" && as_dir=.
1477 for ac_exec_ext in '' $ac_executable_extensions; do
1478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1479 ac_cv_prog_CC="${ac_tool_prefix}cc"
1480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1481 break 2
1482 fi
1483done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001484done
1485
1486fi
1487fi
1488CC=$ac_cv_prog_CC
1489if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001490 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001491echo "${ECHO_T}$CC" >&6
1492else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001493 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001494echo "${ECHO_T}no" >&6
1495fi
1496
1497fi
1498if test -z "$ac_cv_prog_CC"; then
1499 ac_ct_CC=$CC
1500 # Extract the first word of "cc", so it can be a program name with args.
1501set dummy cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001502echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1504if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1505 echo $ECHO_N "(cached) $ECHO_C" >&6
1506else
1507 if test -n "$ac_ct_CC"; then
1508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1509else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511for as_dir in $PATH
1512do
1513 IFS=$as_save_IFS
1514 test -z "$as_dir" && as_dir=.
1515 for ac_exec_ext in '' $ac_executable_extensions; do
1516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1517 ac_cv_prog_ac_ct_CC="cc"
1518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1519 break 2
1520 fi
1521done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001522done
1523
1524fi
1525fi
1526ac_ct_CC=$ac_cv_prog_ac_ct_CC
1527if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001528 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001529echo "${ECHO_T}$ac_ct_CC" >&6
1530else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001531 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001532echo "${ECHO_T}no" >&6
1533fi
1534
1535 CC=$ac_ct_CC
1536else
1537 CC="$ac_cv_prog_CC"
1538fi
1539
1540fi
1541if test -z "$CC"; then
1542 # Extract the first word of "cc", so it can be a program name with args.
1543set dummy cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001544echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546if test "${ac_cv_prog_CC+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1548else
1549 if test -n "$CC"; then
1550 ac_cv_prog_CC="$CC" # Let the user override the test.
1551else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001552 ac_prog_rejected=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554for as_dir in $PATH
1555do
1556 IFS=$as_save_IFS
1557 test -z "$as_dir" && as_dir=.
1558 for ac_exec_ext in '' $ac_executable_extensions; do
1559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1560 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1561 ac_prog_rejected=yes
1562 continue
1563 fi
1564 ac_cv_prog_CC="cc"
1565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1566 break 2
1567 fi
1568done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001569done
1570
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001571if test $ac_prog_rejected = yes; then
1572 # We found a bogon in the path, so make sure we never use it.
1573 set dummy $ac_cv_prog_CC
1574 shift
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001575 if test $# != 0; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001576 # We chose a different compiler from the bogus one.
1577 # However, it has the same basename, so the bogon will be chosen
1578 # first if we set CC to just the basename; use the full file name.
1579 shift
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001580 set dummy "$as_dir/$ac_word" ${1+"$@"}
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001581 shift
1582 ac_cv_prog_CC="$@"
1583 fi
1584fi
1585fi
1586fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001587CC=$ac_cv_prog_CC
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001588if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001589 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001590echo "${ECHO_T}$CC" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001591else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001592 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001593echo "${ECHO_T}no" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001594fi
1595
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001596fi
1597if test -z "$CC"; then
1598 if test -n "$ac_tool_prefix"; then
1599 for ac_prog in cl
1600 do
1601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1602set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001603echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1605if test "${ac_cv_prog_CC+set}" = set; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00001607else
1608 if test -n "$CC"; then
1609 ac_cv_prog_CC="$CC" # Let the user override the test.
1610else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612for as_dir in $PATH
1613do
1614 IFS=$as_save_IFS
1615 test -z "$as_dir" && as_dir=.
1616 for ac_exec_ext in '' $ac_executable_extensions; do
1617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1618 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620 break 2
1621 fi
1622done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001623done
1624
Eric Pouech18ad24a2000-01-16 22:16:33 +00001625fi
1626fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001627CC=$ac_cv_prog_CC
Eric Pouech18ad24a2000-01-16 22:16:33 +00001628if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001629 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001630echo "${ECHO_T}$CC" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00001631else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001632 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001633echo "${ECHO_T}no" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001634fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001635
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001636 test -n "$CC" && break
1637 done
1638fi
1639if test -z "$CC"; then
1640 ac_ct_CC=$CC
1641 for ac_prog in cl
1642do
1643 # Extract the first word of "$ac_prog", so it can be a program name with args.
1644set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001645echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1649else
1650 if test -n "$ac_ct_CC"; then
1651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1652else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654for as_dir in $PATH
1655do
1656 IFS=$as_save_IFS
1657 test -z "$as_dir" && as_dir=.
1658 for ac_exec_ext in '' $ac_executable_extensions; do
1659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660 ac_cv_prog_ac_ct_CC="$ac_prog"
1661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662 break 2
1663 fi
1664done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001665done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001666
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001667fi
1668fi
1669ac_ct_CC=$ac_cv_prog_ac_ct_CC
1670if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001671 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001672echo "${ECHO_T}$ac_ct_CC" >&6
1673else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001674 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001675echo "${ECHO_T}no" >&6
1676fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001677
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001678 test -n "$ac_ct_CC" && break
1679done
Eric Pouech18ad24a2000-01-16 22:16:33 +00001680
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001681 CC=$ac_ct_CC
1682fi
1683
1684fi
1685
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001686
1687test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1688echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001689 { (exit 1); exit 1; }; }
1690
1691# Provide some information about the compiler.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001692echo "$as_me:$LINENO:" \
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001693 "checking for C compiler version" >&5
1694ac_compiler=`set X $ac_compile; echo $2`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001695{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001696 (eval $ac_compiler --version </dev/null >&5) 2>&5
1697 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001699 (exit $ac_status); }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001700{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001701 (eval $ac_compiler -v </dev/null >&5) 2>&5
1702 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001704 (exit $ac_status); }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001705{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001706 (eval $ac_compiler -V </dev/null >&5) 2>&5
1707 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001709 (exit $ac_status); }
1710
1711cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001712#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001713#include "confdefs.h"
Eric Pouech18ad24a2000-01-16 22:16:33 +00001714
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001715#ifdef F77_DUMMY_MAIN
1716# ifdef __cplusplus
1717 extern "C"
1718# endif
1719 int F77_DUMMY_MAIN() { return 1; }
1720#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001721int
1722main ()
1723{
1724
1725 ;
1726 return 0;
1727}
1728_ACEOF
1729ac_clean_files_save=$ac_clean_files
1730ac_clean_files="$ac_clean_files a.out a.exe"
1731# Try to create an executable without -o first, disregard a.out.
1732# It will help us diagnose broken compilers, and finding out an intuition
1733# of exeext.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001734echo "$as_me:$LINENO: checking for C compiler default output" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001735echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1736ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001737if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001738 (eval $ac_link_default) 2>&5
1739 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001741 (exit $ac_status); }; then
1742 # Find the output, starting from the most likely. This scheme is
1743# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1744# resort.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001745
1746# Be careful to initialize this variable, since it used to be cached.
1747# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1748ac_cv_exeext=
1749for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001750 ls a.out conftest 2>/dev/null;
1751 ls a.* conftest.* 2>/dev/null`; do
1752 case $ac_file in
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001753 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001754 a.out ) # We found the default executable, but exeext='' is most
1755 # certainly right.
1756 break;;
1757 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1758 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1759 export ac_cv_exeext
1760 break;;
1761 * ) break;;
1762 esac
1763done
1764else
1765 echo "$as_me: failed program was:" >&5
1766cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001767{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001768echo "$as_me: error: C compiler cannot create executables" >&2;}
1769 { (exit 77); exit 77; }; }
1770fi
1771
1772ac_exeext=$ac_cv_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001773echo "$as_me:$LINENO: result: $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001774echo "${ECHO_T}$ac_file" >&6
1775
1776# Check the compiler produces executables we can run. If not, either
1777# the compiler is broken, or we cross compile.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001778echo "$as_me:$LINENO: checking whether the C compiler works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001779echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1780# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1781# If not cross compiling, check that we can run a simple program.
1782if test "$cross_compiling" != yes; then
1783 if { ac_try='./$ac_file'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001785 (eval $ac_try) 2>&5
1786 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001788 (exit $ac_status); }; }; then
1789 cross_compiling=no
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001790 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001791 if test "$cross_compiling" = maybe; then
1792 cross_compiling=yes
1793 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001794 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001795If you meant to cross compile, use \`--host'." >&5
1796echo "$as_me: error: cannot run C compiled programs.
1797If you meant to cross compile, use \`--host'." >&2;}
1798 { (exit 1); exit 1; }; }
1799 fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001800 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001801fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001802echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001803echo "${ECHO_T}yes" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001804
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001805rm -f a.out a.exe conftest$ac_cv_exeext
1806ac_clean_files=$ac_clean_files_save
1807# Check the compiler produces executables we can run. If not, either
1808# the compiler is broken, or we cross compile.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001809echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001810echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001811echo "$as_me:$LINENO: result: $cross_compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001812echo "${ECHO_T}$cross_compiling" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001813
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001814echo "$as_me:$LINENO: checking for suffix of executables" >&5
1815echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001817 (eval $ac_link) 2>&5
1818 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001820 (exit $ac_status); }; then
1821 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1822# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1823# work properly (i.e., refer to `conftest.exe'), while it won't with
1824# `rm'.
1825for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1826 case $ac_file in
1827 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1828 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1829 export ac_cv_exeext
1830 break;;
1831 * ) break;;
1832 esac
1833done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001834else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001835 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1836echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001837 { (exit 1); exit 1; }; }
1838fi
1839
1840rm -f conftest$ac_cv_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001841echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001842echo "${ECHO_T}$ac_cv_exeext" >&6
1843
1844rm -f conftest.$ac_ext
1845EXEEXT=$ac_cv_exeext
1846ac_exeext=$EXEEXT
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001847echo "$as_me:$LINENO: checking for suffix of object files" >&5
1848echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001849if test "${ac_cv_objext+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1851else
1852 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001853#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001854#include "confdefs.h"
1855
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001856#ifdef F77_DUMMY_MAIN
1857# ifdef __cplusplus
1858 extern "C"
1859# endif
1860 int F77_DUMMY_MAIN() { return 1; }
1861#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001862int
1863main ()
1864{
1865
1866 ;
1867 return 0;
1868}
1869_ACEOF
1870rm -f conftest.o conftest.obj
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001872 (eval $ac_compile) 2>&5
1873 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001875 (exit $ac_status); }; then
1876 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1877 case $ac_file in
1878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1879 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1880 break;;
1881 esac
1882done
1883else
1884 echo "$as_me: failed program was:" >&5
1885cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001886{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1887echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001888 { (exit 1); exit 1; }; }
1889fi
1890
1891rm -f conftest.$ac_cv_objext conftest.$ac_ext
1892fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001893echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001894echo "${ECHO_T}$ac_cv_objext" >&6
1895OBJEXT=$ac_cv_objext
1896ac_objext=$OBJEXT
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001897echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001898echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1899if test "${ac_cv_c_compiler_gnu+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1901else
1902 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001903#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001904#include "confdefs.h"
1905
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001906#ifdef F77_DUMMY_MAIN
1907# ifdef __cplusplus
1908 extern "C"
1909# endif
1910 int F77_DUMMY_MAIN() { return 1; }
1911#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001912int
1913main ()
1914{
1915#ifndef __GNUC__
1916 choke me
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001917#endif
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001918
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001919 ;
1920 return 0;
1921}
1922_ACEOF
1923rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001925 (eval $ac_compile) 2>&5
1926 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001928 (exit $ac_status); } &&
1929 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001931 (eval $ac_try) 2>&5
1932 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001934 (exit $ac_status); }; }; then
1935 ac_compiler_gnu=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +00001936else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001937 echo "$as_me: failed program was:" >&5
1938cat conftest.$ac_ext >&5
1939ac_compiler_gnu=no
Eric Pouech18ad24a2000-01-16 22:16:33 +00001940fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001941rm -f conftest.$ac_objext conftest.$ac_ext
1942ac_cv_c_compiler_gnu=$ac_compiler_gnu
Eric Pouech18ad24a2000-01-16 22:16:33 +00001943
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001944fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001945echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001946echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1947GCC=`test $ac_compiler_gnu = yes && echo yes`
1948ac_test_CFLAGS=${CFLAGS+set}
1949ac_save_CFLAGS=$CFLAGS
1950CFLAGS="-g"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001951echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001952echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1953if test "${ac_cv_prog_cc_g+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001955else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001956 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001957#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001958#include "confdefs.h"
1959
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001960#ifdef F77_DUMMY_MAIN
1961# ifdef __cplusplus
1962 extern "C"
1963# endif
1964 int F77_DUMMY_MAIN() { return 1; }
1965#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001966int
1967main ()
1968{
1969
1970 ;
1971 return 0;
1972}
1973_ACEOF
1974rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001976 (eval $ac_compile) 2>&5
1977 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001979 (exit $ac_status); } &&
1980 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001982 (eval $ac_try) 2>&5
1983 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001985 (exit $ac_status); }; }; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001986 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001987else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001988 echo "$as_me: failed program was:" >&5
1989cat conftest.$ac_ext >&5
1990ac_cv_prog_cc_g=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001991fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001992rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001993fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001994echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001995echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00001996if test "$ac_test_CFLAGS" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001997 CFLAGS=$ac_save_CFLAGS
Eric Pouech18ad24a2000-01-16 22:16:33 +00001998elif test $ac_cv_prog_cc_g = yes; then
1999 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002000 CFLAGS="-g -O2"
2001 else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002002 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002003 fi
2004else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002005 if test "$GCC" = yes; then
2006 CFLAGS="-O2"
2007 else
2008 CFLAGS=
2009 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002010fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002011# Some people use a C++ compiler to compile C. Since we use `exit',
2012# in C++ we need to declare it. In case someone uses the same compiler
2013# for both compiling C and C++ we need to have the C++ compiler decide
2014# the declaration of exit, since it's the most demanding environment.
2015cat >conftest.$ac_ext <<_ACEOF
2016#ifndef __cplusplus
2017 choke me
2018#endif
2019_ACEOF
2020rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002022 (eval $ac_compile) 2>&5
2023 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002025 (exit $ac_status); } &&
2026 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002028 (eval $ac_try) 2>&5
2029 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002031 (exit $ac_status); }; }; then
2032 for ac_declaration in \
2033 ''\
2034 '#include <stdlib.h>' \
2035 'extern "C" void std::exit (int) throw (); using std::exit;' \
2036 'extern "C" void std::exit (int); using std::exit;' \
2037 'extern "C" void exit (int) throw ();' \
2038 'extern "C" void exit (int);' \
2039 'void exit (int);'
2040do
2041 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002042#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002043#include "confdefs.h"
2044#include <stdlib.h>
2045$ac_declaration
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002046#ifdef F77_DUMMY_MAIN
2047# ifdef __cplusplus
2048 extern "C"
2049# endif
2050 int F77_DUMMY_MAIN() { return 1; }
2051#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002052int
2053main ()
2054{
2055exit (42);
2056 ;
2057 return 0;
2058}
2059_ACEOF
2060rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002062 (eval $ac_compile) 2>&5
2063 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002065 (exit $ac_status); } &&
2066 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002068 (eval $ac_try) 2>&5
2069 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002071 (exit $ac_status); }; }; then
2072 :
2073else
2074 echo "$as_me: failed program was:" >&5
2075cat conftest.$ac_ext >&5
2076continue
2077fi
2078rm -f conftest.$ac_objext conftest.$ac_ext
2079 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002080#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002081#include "confdefs.h"
2082$ac_declaration
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002083#ifdef F77_DUMMY_MAIN
2084# ifdef __cplusplus
2085 extern "C"
2086# endif
2087 int F77_DUMMY_MAIN() { return 1; }
2088#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002089int
2090main ()
2091{
2092exit (42);
2093 ;
2094 return 0;
2095}
2096_ACEOF
2097rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002099 (eval $ac_compile) 2>&5
2100 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002102 (exit $ac_status); } &&
2103 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002105 (eval $ac_try) 2>&5
2106 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002108 (exit $ac_status); }; }; then
2109 break
2110else
2111 echo "$as_me: failed program was:" >&5
2112cat conftest.$ac_ext >&5
2113fi
2114rm -f conftest.$ac_objext conftest.$ac_ext
2115done
2116rm -f conftest*
2117if test -n "$ac_declaration"; then
2118 echo '#ifdef __cplusplus' >>confdefs.h
2119 echo $ac_declaration >>confdefs.h
2120 echo '#endif' >>confdefs.h
2121fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002122
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002123else
2124 echo "$as_me: failed program was:" >&5
2125cat conftest.$ac_ext >&5
2126fi
2127rm -f conftest.$ac_objext conftest.$ac_ext
2128ac_ext=c
2129ac_cpp='$CPP $CPPFLAGS'
2130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2132ac_compiler_gnu=$ac_cv_c_compiler_gnu
2133
2134ac_ext=c
2135ac_cpp='$CPP $CPPFLAGS'
2136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2138ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002139echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002140echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002141# On Suns, sometimes $CPP names a directory.
2142if test -n "$CPP" && test -d "$CPP"; then
2143 CPP=
2144fi
2145if test -z "$CPP"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002146 if test "${ac_cv_prog_CPP+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002148else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002149 # Double quotes because CPP needs to be expanded
2150 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2151 do
2152 ac_preproc_ok=false
2153for ac_c_preproc_warn_flag in '' yes
2154do
2155 # Use a header file that comes with gcc, so configuring glibc
2156 # with a fresh cross-compiler works.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002157 # On the NeXT, cc -E runs the code through the compiler's parser,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002158 # not just through cpp. "Syntax error" is here to catch this case.
2159 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002160#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002161#include "confdefs.h"
2162#include <assert.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002163 Syntax error
2164_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002165if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2167 ac_status=$?
2168 egrep -v '^ *\+' conftest.er1 >conftest.err
2169 rm -f conftest.er1
2170 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002172 (exit $ac_status); } >/dev/null; then
2173 if test -s conftest.err; then
2174 ac_cpp_err=$ac_c_preproc_warn_flag
2175 else
2176 ac_cpp_err=
2177 fi
2178else
2179 ac_cpp_err=yes
2180fi
2181if test -z "$ac_cpp_err"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002182 :
2183else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002184 echo "$as_me: failed program was:" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002185 cat conftest.$ac_ext >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002186 # Broken: fails on valid input.
2187continue
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002188fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002189rm -f conftest.err conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002190
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002191 # OK, works on sane cases. Now check whether non-existent headers
2192 # can be detected and how.
2193 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002194#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002195#include "confdefs.h"
2196#include <ac_nonexistent.h>
2197_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002198if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2200 ac_status=$?
2201 egrep -v '^ *\+' conftest.er1 >conftest.err
2202 rm -f conftest.er1
2203 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002205 (exit $ac_status); } >/dev/null; then
2206 if test -s conftest.err; then
2207 ac_cpp_err=$ac_c_preproc_warn_flag
2208 else
2209 ac_cpp_err=
2210 fi
2211else
2212 ac_cpp_err=yes
2213fi
2214if test -z "$ac_cpp_err"; then
2215 # Broken: success on invalid input.
2216continue
2217else
2218 echo "$as_me: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2220 # Passes both tests.
2221ac_preproc_ok=:
2222break
2223fi
2224rm -f conftest.err conftest.$ac_ext
2225
2226done
2227# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2228rm -f conftest.err conftest.$ac_ext
2229if $ac_preproc_ok; then
2230 break
2231fi
2232
2233 done
2234 ac_cv_prog_CPP=$CPP
2235
2236fi
2237 CPP=$ac_cv_prog_CPP
2238else
2239 ac_cv_prog_CPP=$CPP
2240fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002241echo "$as_me:$LINENO: result: $CPP" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002242echo "${ECHO_T}$CPP" >&6
2243ac_preproc_ok=false
2244for ac_c_preproc_warn_flag in '' yes
2245do
2246 # Use a header file that comes with gcc, so configuring glibc
2247 # with a fresh cross-compiler works.
2248 # On the NeXT, cc -E runs the code through the compiler's parser,
2249 # not just through cpp. "Syntax error" is here to catch this case.
2250 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002251#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002252#include "confdefs.h"
2253#include <assert.h>
2254 Syntax error
2255_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002256if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2258 ac_status=$?
2259 egrep -v '^ *\+' conftest.er1 >conftest.err
2260 rm -f conftest.er1
2261 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002263 (exit $ac_status); } >/dev/null; then
2264 if test -s conftest.err; then
2265 ac_cpp_err=$ac_c_preproc_warn_flag
2266 else
2267 ac_cpp_err=
2268 fi
2269else
2270 ac_cpp_err=yes
2271fi
2272if test -z "$ac_cpp_err"; then
2273 :
2274else
2275 echo "$as_me: failed program was:" >&5
2276 cat conftest.$ac_ext >&5
2277 # Broken: fails on valid input.
2278continue
2279fi
2280rm -f conftest.err conftest.$ac_ext
2281
2282 # OK, works on sane cases. Now check whether non-existent headers
2283 # can be detected and how.
2284 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002285#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002286#include "confdefs.h"
2287#include <ac_nonexistent.h>
2288_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002289if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2291 ac_status=$?
2292 egrep -v '^ *\+' conftest.er1 >conftest.err
2293 rm -f conftest.er1
2294 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002296 (exit $ac_status); } >/dev/null; then
2297 if test -s conftest.err; then
2298 ac_cpp_err=$ac_c_preproc_warn_flag
2299 else
2300 ac_cpp_err=
2301 fi
2302else
2303 ac_cpp_err=yes
2304fi
2305if test -z "$ac_cpp_err"; then
2306 # Broken: success on invalid input.
2307continue
2308else
2309 echo "$as_me: failed program was:" >&5
2310 cat conftest.$ac_ext >&5
2311 # Passes both tests.
2312ac_preproc_ok=:
2313break
2314fi
2315rm -f conftest.err conftest.$ac_ext
2316
2317done
2318# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2319rm -f conftest.err conftest.$ac_ext
2320if $ac_preproc_ok; then
2321 :
2322else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002323 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002324echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2325 { (exit 1); exit 1; }; }
2326fi
2327
2328ac_ext=c
2329ac_cpp='$CPP $CPPFLAGS'
2330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332ac_compiler_gnu=$ac_cv_c_compiler_gnu
2333
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002334
Alexandre Julliardfc01b722002-05-12 03:16:39 +00002335echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2336echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2337if test "${wine_cv_toolsdir+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2339else
2340 if test -z "$with_wine_tools"; then
2341 if test "$cross_compiling" = "yes"; then
2342 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2343echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2344 { (exit 1); exit 1; }; }
2345 else
2346 wine_cv_toolsdir="\$(TOPOBJDIR)"
2347 fi
2348 elif test -d "$with_wine_tools/tools/winebuild"; then
2349 case $with_wine_tools in
2350 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2351 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2352 esac
2353 else
2354 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2355echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2356 { (exit 1); exit 1; }; }
2357 fi
2358fi
2359echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2360echo "${ECHO_T}$wine_cv_toolsdir" >&6
2361TOOLSDIR=$wine_cv_toolsdir
2362
2363
2364
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002365
2366echo "$as_me:$LINENO: checking for X" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002367echo $ECHO_N "checking for X... $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002368
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002369
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002370# Check whether --with-x or --without-x was given.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002371if test "${with_x+set}" = set; then
2372 withval="$with_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002373
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002374fi;
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002375# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002376if test "x$with_x" = xno; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002377 # The user explicitly disabled X.
2378 have_x=disabled
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002379else
2380 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002381 # Both variables are already set.
2382 have_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002383 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002384 if test "${ac_cv_have_x+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002386else
2387 # One or both of the vars are not set, and there is no cached value.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002388ac_x_includes=no ac_x_libraries=no
2389rm -fr conftest.dir
2390if mkdir conftest.dir; then
2391 cd conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002392 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002393 cat >Imakefile <<'_ACEOF'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002394acfindx:
2395 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002396_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002397 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002398 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002399 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002400 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2401 for ac_extension in a so sl; do
2402 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002403 test -f $ac_im_libdir/libX11.$ac_extension; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002404 ac_im_usrlibdir=$ac_im_libdir; break
2405 fi
2406 done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002407 # Screen out bogus values from the imake configuration. They are
2408 # bogus both because they are the default anyway, and because
2409 # using them would break gcc on systems where it needs fixed includes.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002410 case $ac_im_incroot in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002411 /usr/include) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002412 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002413 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002414 case $ac_im_usrlibdir in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002415 /usr/lib | /lib) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002416 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002417 esac
2418 fi
2419 cd ..
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002420 rm -fr conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002421fi
2422
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002423# Standard set of common directories for X headers.
2424# Check X11 before X11Rn because it is often a symlink to the current release.
2425ac_x_header_dirs='
2426/usr/X11/include
2427/usr/X11R6/include
2428/usr/X11R5/include
2429/usr/X11R4/include
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002430
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002431/usr/include/X11
2432/usr/include/X11R6
2433/usr/include/X11R5
2434/usr/include/X11R4
2435
2436/usr/local/X11/include
2437/usr/local/X11R6/include
2438/usr/local/X11R5/include
2439/usr/local/X11R4/include
2440
2441/usr/local/include/X11
2442/usr/local/include/X11R6
2443/usr/local/include/X11R5
2444/usr/local/include/X11R4
2445
2446/usr/X386/include
2447/usr/x386/include
2448/usr/XFree86/include/X11
2449
2450/usr/include
2451/usr/local/include
2452/usr/unsupported/include
2453/usr/athena/include
2454/usr/local/x11r5/include
2455/usr/lpp/Xamples/include
2456
2457/usr/openwin/include
2458/usr/openwin/share/include'
2459
2460if test "$ac_x_includes" = no; then
2461 # Guess where to find include files, by looking for Intrinsic.h.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002462 # First, try using that file with no special directory specified.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002463 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002464#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002465#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002466#include <X11/Intrinsic.h>
2467_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002468if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2470 ac_status=$?
2471 egrep -v '^ *\+' conftest.er1 >conftest.err
2472 rm -f conftest.er1
2473 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002475 (exit $ac_status); } >/dev/null; then
2476 if test -s conftest.err; then
2477 ac_cpp_err=$ac_c_preproc_warn_flag
2478 else
2479 ac_cpp_err=
2480 fi
2481else
2482 ac_cpp_err=yes
2483fi
2484if test -z "$ac_cpp_err"; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002485 # We can compile using X headers with no special include directory.
2486ac_x_includes=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002487else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002488 echo "$as_me: failed program was:" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002489 cat conftest.$ac_ext >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002490 for ac_dir in $ac_x_header_dirs; do
2491 if test -r "$ac_dir/X11/Intrinsic.h"; then
2492 ac_x_includes=$ac_dir
2493 break
2494 fi
2495done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002496fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002497rm -f conftest.err conftest.$ac_ext
2498fi # $ac_x_includes = no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002499
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002500if test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002501 # Check for the libraries.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002502 # See if we find them without any special options.
2503 # Don't add to $LIBS permanently.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002504 ac_save_LIBS=$LIBS
2505 LIBS="-lXt $LIBS"
2506 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002507#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002508#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002509#include <X11/Intrinsic.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002510#ifdef F77_DUMMY_MAIN
2511# ifdef __cplusplus
2512 extern "C"
2513# endif
2514 int F77_DUMMY_MAIN() { return 1; }
2515#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002516int
2517main ()
2518{
2519XtMalloc (0)
2520 ;
2521 return 0;
2522}
2523_ACEOF
2524rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002526 (eval $ac_link) 2>&5
2527 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002529 (exit $ac_status); } &&
2530 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002532 (eval $ac_try) 2>&5
2533 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002535 (exit $ac_status); }; }; then
2536 LIBS=$ac_save_LIBS
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002537# We can link X programs with no special library path.
2538ac_x_libraries=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002539else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002540 echo "$as_me: failed program was:" >&5
2541cat conftest.$ac_ext >&5
2542LIBS=$ac_save_LIBS
2543for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002544do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002545 # Don't even attempt the hair of trying to link an X program!
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002546 for ac_extension in a so sl; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002547 if test -r $ac_dir/libXt.$ac_extension; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002548 ac_x_libraries=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002549 break 2
2550 fi
2551 done
2552done
2553fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002554rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2555fi # $ac_x_libraries = no
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002556
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002557if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002558 # Didn't find X anywhere. Cache the known absence of X.
2559 ac_cv_have_x="have_x=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002560else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002561 # Record where we found X for the cache.
2562 ac_cv_have_x="have_x=yes \
2563 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002564fi
2565fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002566
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002567 fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002568 eval "$ac_cv_have_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002569fi # $with_x != no
2570
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002571if test "$have_x" != yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002572 echo "$as_me:$LINENO: result: $have_x" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002573echo "${ECHO_T}$have_x" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002574 no_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002575else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002576 # If each of the values was on the command line, it overrides each guess.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002577 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2578 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002579 # Update the cache value to reflect the command line values.
2580 ac_cv_have_x="have_x=yes \
2581 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002582 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002583echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002584fi
2585
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002586if test "$no_x" = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002587 # Not all programs may use this symbol, but it does not hurt to define it.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002588
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002589cat >>confdefs.h <<\_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002590#define X_DISPLAY_MISSING 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002591_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002592
2593 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002594else
2595 if test -n "$x_includes"; then
2596 X_CFLAGS="$X_CFLAGS -I$x_includes"
2597 fi
2598
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002599 # It would also be nice to do this for all -L options, not just this one.
2600 if test -n "$x_libraries"; then
2601 X_LIBS="$X_LIBS -L$x_libraries"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002602 # For Solaris; some versions of Sun CC require a space after -R and
2603 # others require no space. Words are not sufficient . . . .
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002604 case `(uname -sr) 2>/dev/null` in
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002605 "SunOS 5"*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002606 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002607echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2608 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2609 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002610#line $LINENO "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002611#include "confdefs.h"
2612
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002613#ifdef F77_DUMMY_MAIN
2614# ifdef __cplusplus
2615 extern "C"
2616# endif
2617 int F77_DUMMY_MAIN() { return 1; }
2618#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002619int
2620main ()
2621{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002622
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002623 ;
2624 return 0;
2625}
2626_ACEOF
2627rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002629 (eval $ac_link) 2>&5
2630 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002632 (exit $ac_status); } &&
2633 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002635 (eval $ac_try) 2>&5
2636 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002638 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002639 ac_R_nospace=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002640else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002641 echo "$as_me: failed program was:" >&5
2642cat conftest.$ac_ext >&5
2643ac_R_nospace=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002644fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002645rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002646 if test $ac_R_nospace = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002647 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002648echo "${ECHO_T}no" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002649 X_LIBS="$X_LIBS -R$x_libraries"
2650 else
2651 LIBS="$ac_xsave_LIBS -R $x_libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002652 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002653#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002654#include "confdefs.h"
2655
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002656#ifdef F77_DUMMY_MAIN
2657# ifdef __cplusplus
2658 extern "C"
2659# endif
2660 int F77_DUMMY_MAIN() { return 1; }
2661#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002662int
2663main ()
2664{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002665
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002666 ;
2667 return 0;
2668}
2669_ACEOF
2670rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002672 (eval $ac_link) 2>&5
2673 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002675 (exit $ac_status); } &&
2676 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002678 (eval $ac_try) 2>&5
2679 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002681 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002682 ac_R_space=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002683else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002684 echo "$as_me: failed program was:" >&5
2685cat conftest.$ac_ext >&5
2686ac_R_space=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002687fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002688rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002689 if test $ac_R_space = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002690 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002691echo "${ECHO_T}yes" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002692 X_LIBS="$X_LIBS -R $x_libraries"
2693 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002694 echo "$as_me:$LINENO: result: neither works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002695echo "${ECHO_T}neither works" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002696 fi
2697 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002698 LIBS=$ac_xsave_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002699 esac
2700 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002701
2702 # Check for system-dependent libraries X programs must link with.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002703 # Do this before checking for the system-independent R6 libraries
2704 # (-lICE), since we may need -lsocket or whatever for X linking.
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002705
2706 if test "$ISC" = yes; then
2707 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2708 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002709 # Martyn Johnson says this is needed for Ultrix, if the X
2710 # libraries were built with DECnet support. And Karl Berry says
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002711 # the Alpha needs dnet_stub (dnet does not exist).
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002712 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2713 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002714#line $LINENO "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002715#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002716
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002717/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002718#ifdef __cplusplus
2719extern "C"
2720#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002721/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002722 builtin and then its argument prototype would still apply. */
2723char XOpenDisplay ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002724#ifdef F77_DUMMY_MAIN
2725# ifdef __cplusplus
2726 extern "C"
2727# endif
2728 int F77_DUMMY_MAIN() { return 1; }
2729#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002730int
2731main ()
2732{
2733XOpenDisplay ();
2734 ;
2735 return 0;
2736}
2737_ACEOF
2738rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002740 (eval $ac_link) 2>&5
2741 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002743 (exit $ac_status); } &&
2744 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002746 (eval $ac_try) 2>&5
2747 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002749 (exit $ac_status); }; }; then
2750 :
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002751else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002752 echo "$as_me: failed program was:" >&5
2753cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002754echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002755echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2756if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2758else
2759 ac_check_lib_save_LIBS=$LIBS
2760LIBS="-ldnet $LIBS"
2761cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002762#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002763#include "confdefs.h"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002764
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002765/* Override any gcc2 internal prototype to avoid an error. */
2766#ifdef __cplusplus
2767extern "C"
2768#endif
2769/* We use char because int might match the return type of a gcc2
2770 builtin and then its argument prototype would still apply. */
2771char dnet_ntoa ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002772#ifdef F77_DUMMY_MAIN
2773# ifdef __cplusplus
2774 extern "C"
2775# endif
2776 int F77_DUMMY_MAIN() { return 1; }
2777#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002778int
2779main ()
2780{
2781dnet_ntoa ();
2782 ;
2783 return 0;
2784}
2785_ACEOF
2786rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002788 (eval $ac_link) 2>&5
2789 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002791 (exit $ac_status); } &&
2792 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002794 (eval $ac_try) 2>&5
2795 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002797 (exit $ac_status); }; }; then
2798 ac_cv_lib_dnet_dnet_ntoa=yes
2799else
2800 echo "$as_me: failed program was:" >&5
2801cat conftest.$ac_ext >&5
2802ac_cv_lib_dnet_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002803fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002804rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2805LIBS=$ac_check_lib_save_LIBS
2806fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002807echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002808echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2809if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002810 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002811fi
2812
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002813 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002814 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002815echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2816if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002818else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002819 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002820LIBS="-ldnet_stub $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002821cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002822#line $LINENO "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002823#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002824
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002825/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002826#ifdef __cplusplus
2827extern "C"
2828#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002829/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002830 builtin and then its argument prototype would still apply. */
2831char dnet_ntoa ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002832#ifdef F77_DUMMY_MAIN
2833# ifdef __cplusplus
2834 extern "C"
2835# endif
2836 int F77_DUMMY_MAIN() { return 1; }
2837#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002838int
2839main ()
2840{
2841dnet_ntoa ();
2842 ;
2843 return 0;
2844}
2845_ACEOF
2846rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002848 (eval $ac_link) 2>&5
2849 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002851 (exit $ac_status); } &&
2852 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002854 (eval $ac_try) 2>&5
2855 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002857 (exit $ac_status); }; }; then
2858 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002859else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002860 echo "$as_me: failed program was:" >&5
2861cat conftest.$ac_ext >&5
2862ac_cv_lib_dnet_stub_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002863fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002864rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2865LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002866fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002867echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002868echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
2869if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002870 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002871fi
2872
2873 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002874fi
2875rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2876 LIBS="$ac_xsave_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002877
2878 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2879 # to get the SysV transport functions.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002880 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002881 # needs -lnsl.
2882 # The nsl library prevents programs from opening the X display
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002883 # on Irix 5.2, according to T.E. Dickey.
2884 # The functions gethostbyname, getservbyname, and inet_addr are
2885 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002886 echo "$as_me:$LINENO: checking for gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002887echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2888if test "${ac_cv_func_gethostbyname+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002890else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002891 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002892#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002893#include "confdefs.h"
2894/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002895 which can conflict with char gethostbyname (); below. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002896#include <assert.h>
2897/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002898#ifdef __cplusplus
2899extern "C"
2900#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002901/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002902 builtin and then its argument prototype would still apply. */
2903char gethostbyname ();
2904char (*f) ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002905
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002906#ifdef F77_DUMMY_MAIN
2907# ifdef __cplusplus
2908 extern "C"
2909# endif
2910 int F77_DUMMY_MAIN() { return 1; }
2911#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002912int
2913main ()
2914{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002915/* The GNU C library defines this for functions which it implements
2916 to always fail with ENOSYS. Some functions are actually named
2917 something starting with __ and the normal name is an alias. */
2918#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2919choke me
2920#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002921f = gethostbyname;
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002922#endif
2923
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002924 ;
2925 return 0;
2926}
2927_ACEOF
2928rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002930 (eval $ac_link) 2>&5
2931 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002933 (exit $ac_status); } &&
2934 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002936 (eval $ac_try) 2>&5
2937 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002939 (exit $ac_status); }; }; then
2940 ac_cv_func_gethostbyname=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002941else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002942 echo "$as_me: failed program was:" >&5
2943cat conftest.$ac_ext >&5
2944ac_cv_func_gethostbyname=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002945fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002946rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002947fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002948echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002949echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002950
2951 if test $ac_cv_func_gethostbyname = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002952 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002953echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2954if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002956else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002957 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002958LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002959cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002960#line $LINENO "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002961#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002962
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002963/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002964#ifdef __cplusplus
2965extern "C"
2966#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002967/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002968 builtin and then its argument prototype would still apply. */
2969char gethostbyname ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002970#ifdef F77_DUMMY_MAIN
2971# ifdef __cplusplus
2972 extern "C"
2973# endif
2974 int F77_DUMMY_MAIN() { return 1; }
2975#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002976int
2977main ()
2978{
2979gethostbyname ();
2980 ;
2981 return 0;
2982}
2983_ACEOF
2984rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002986 (eval $ac_link) 2>&5
2987 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002989 (exit $ac_status); } &&
2990 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002992 (eval $ac_try) 2>&5
2993 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002995 (exit $ac_status); }; }; then
2996 ac_cv_lib_nsl_gethostbyname=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002997else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002998 echo "$as_me: failed program was:" >&5
2999cat conftest.$ac_ext >&5
3000ac_cv_lib_nsl_gethostbyname=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003001fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003002rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3003LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003004fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003005echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003006echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3007if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003008 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003009fi
3010
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003011 if test $ac_cv_lib_nsl_gethostbyname = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003012 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003013echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3014if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3016else
3017 ac_check_lib_save_LIBS=$LIBS
3018LIBS="-lbsd $LIBS"
3019cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003020#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003021#include "confdefs.h"
3022
3023/* Override any gcc2 internal prototype to avoid an error. */
3024#ifdef __cplusplus
3025extern "C"
3026#endif
3027/* We use char because int might match the return type of a gcc2
3028 builtin and then its argument prototype would still apply. */
3029char gethostbyname ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003030#ifdef F77_DUMMY_MAIN
3031# ifdef __cplusplus
3032 extern "C"
3033# endif
3034 int F77_DUMMY_MAIN() { return 1; }
3035#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003036int
3037main ()
3038{
3039gethostbyname ();
3040 ;
3041 return 0;
3042}
3043_ACEOF
3044rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003046 (eval $ac_link) 2>&5
3047 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003049 (exit $ac_status); } &&
3050 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003052 (eval $ac_try) 2>&5
3053 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003055 (exit $ac_status); }; }; then
3056 ac_cv_lib_bsd_gethostbyname=yes
3057else
3058 echo "$as_me: failed program was:" >&5
3059cat conftest.$ac_ext >&5
3060ac_cv_lib_bsd_gethostbyname=no
3061fi
3062rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3063LIBS=$ac_check_lib_save_LIBS
3064fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003065echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003066echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3067if test $ac_cv_lib_bsd_gethostbyname = yes; then
3068 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3069fi
3070
3071 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003072 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003073
3074 # lieder@skyler.mavd.honeywell.com says without -lsocket,
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003075 # socket/setsockopt and other routines are undefined under SCO ODT
3076 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003077 # on later versions), says Simon Leinen: it contains gethostby*
3078 # variants that don't use the nameserver (or something). -lsocket
3079 # must be given before -lnsl if both are needed. We assume that
3080 # if connect needs -lnsl, so does gethostbyname.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003081 echo "$as_me:$LINENO: checking for connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003082echo $ECHO_N "checking for connect... $ECHO_C" >&6
3083if test "${ac_cv_func_connect+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003085else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003086 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003087#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003088#include "confdefs.h"
3089/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003090 which can conflict with char connect (); below. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003091#include <assert.h>
3092/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003093#ifdef __cplusplus
3094extern "C"
3095#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003096/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003097 builtin and then its argument prototype would still apply. */
3098char connect ();
3099char (*f) ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003100
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003101#ifdef F77_DUMMY_MAIN
3102# ifdef __cplusplus
3103 extern "C"
3104# endif
3105 int F77_DUMMY_MAIN() { return 1; }
3106#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003107int
3108main ()
3109{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003110/* The GNU C library defines this for functions which it implements
3111 to always fail with ENOSYS. Some functions are actually named
3112 something starting with __ and the normal name is an alias. */
3113#if defined (__stub_connect) || defined (__stub___connect)
3114choke me
3115#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003116f = connect;
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003117#endif
3118
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003119 ;
3120 return 0;
3121}
3122_ACEOF
3123rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003125 (eval $ac_link) 2>&5
3126 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003128 (exit $ac_status); } &&
3129 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003131 (eval $ac_try) 2>&5
3132 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003134 (exit $ac_status); }; }; then
3135 ac_cv_func_connect=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003136else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003137 echo "$as_me: failed program was:" >&5
3138cat conftest.$ac_ext >&5
3139ac_cv_func_connect=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003140fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003141rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003142fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003143echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003144echo "${ECHO_T}$ac_cv_func_connect" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003145
3146 if test $ac_cv_func_connect = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003147 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003148echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3149if test "${ac_cv_lib_socket_connect+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003151else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003152 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003153LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003154cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003155#line $LINENO "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003156#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003157
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003158/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003159#ifdef __cplusplus
3160extern "C"
3161#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003162/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003163 builtin and then its argument prototype would still apply. */
3164char connect ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003165#ifdef F77_DUMMY_MAIN
3166# ifdef __cplusplus
3167 extern "C"
3168# endif
3169 int F77_DUMMY_MAIN() { return 1; }
3170#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003171int
3172main ()
3173{
3174connect ();
3175 ;
3176 return 0;
3177}
3178_ACEOF
3179rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003181 (eval $ac_link) 2>&5
3182 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003184 (exit $ac_status); } &&
3185 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003187 (eval $ac_try) 2>&5
3188 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003190 (exit $ac_status); }; }; then
3191 ac_cv_lib_socket_connect=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003192else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003193 echo "$as_me: failed program was:" >&5
3194cat conftest.$ac_ext >&5
3195ac_cv_lib_socket_connect=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003196fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003197rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3198LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003199fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003200echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003201echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3202if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003203 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003204fi
3205
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003206 fi
3207
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003208 # Guillermo Gomez says -lposix is necessary on A/UX.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003209 echo "$as_me:$LINENO: checking for remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003210echo $ECHO_N "checking for remove... $ECHO_C" >&6
3211if test "${ac_cv_func_remove+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003213else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003214 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003215#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003216#include "confdefs.h"
3217/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003218 which can conflict with char remove (); below. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003219#include <assert.h>
3220/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003221#ifdef __cplusplus
3222extern "C"
3223#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003224/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003225 builtin and then its argument prototype would still apply. */
3226char remove ();
3227char (*f) ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003228
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003229#ifdef F77_DUMMY_MAIN
3230# ifdef __cplusplus
3231 extern "C"
3232# endif
3233 int F77_DUMMY_MAIN() { return 1; }
3234#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003235int
3236main ()
3237{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003238/* The GNU C library defines this for functions which it implements
3239 to always fail with ENOSYS. Some functions are actually named
3240 something starting with __ and the normal name is an alias. */
3241#if defined (__stub_remove) || defined (__stub___remove)
3242choke me
3243#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003244f = remove;
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003245#endif
3246
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003247 ;
3248 return 0;
3249}
3250_ACEOF
3251rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003253 (eval $ac_link) 2>&5
3254 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003256 (exit $ac_status); } &&
3257 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003259 (eval $ac_try) 2>&5
3260 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003262 (exit $ac_status); }; }; then
3263 ac_cv_func_remove=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003264else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003265 echo "$as_me: failed program was:" >&5
3266cat conftest.$ac_ext >&5
3267ac_cv_func_remove=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003268fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003269rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003270fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003271echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003272echo "${ECHO_T}$ac_cv_func_remove" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003273
3274 if test $ac_cv_func_remove = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003275 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003276echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3277if test "${ac_cv_lib_posix_remove+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003279else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003280 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003281LIBS="-lposix $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003282cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003283#line $LINENO "configure"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003284#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003285
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003286/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003287#ifdef __cplusplus
3288extern "C"
3289#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003290/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003291 builtin and then its argument prototype would still apply. */
3292char remove ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003293#ifdef F77_DUMMY_MAIN
3294# ifdef __cplusplus
3295 extern "C"
3296# endif
3297 int F77_DUMMY_MAIN() { return 1; }
3298#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003299int
3300main ()
3301{
3302remove ();
3303 ;
3304 return 0;
3305}
3306_ACEOF
3307rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003309 (eval $ac_link) 2>&5
3310 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003312 (exit $ac_status); } &&
3313 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003315 (eval $ac_try) 2>&5
3316 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003318 (exit $ac_status); }; }; then
3319 ac_cv_lib_posix_remove=yes
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003320else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003321 echo "$as_me: failed program was:" >&5
3322cat conftest.$ac_ext >&5
3323ac_cv_lib_posix_remove=no
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003324fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003325rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3326LIBS=$ac_check_lib_save_LIBS
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003327fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003328echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003329echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3330if test $ac_cv_lib_posix_remove = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003331 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003332fi
3333
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003334 fi
3335
3336 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003337 echo "$as_me:$LINENO: checking for shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003338echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3339if test "${ac_cv_func_shmat+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003341else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003342 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003343#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003344#include "confdefs.h"
3345/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003346 which can conflict with char shmat (); below. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003347#include <assert.h>
3348/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003349#ifdef __cplusplus
3350extern "C"
3351#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003352/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003353 builtin and then its argument prototype would still apply. */
3354char shmat ();
3355char (*f) ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003356
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003357#ifdef F77_DUMMY_MAIN
3358# ifdef __cplusplus
3359 extern "C"
3360# endif
3361 int F77_DUMMY_MAIN() { return 1; }
3362#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003363int
3364main ()
3365{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003366/* The GNU C library defines this for functions which it implements
3367 to always fail with ENOSYS. Some functions are actually named
3368 something starting with __ and the normal name is an alias. */
3369#if defined (__stub_shmat) || defined (__stub___shmat)
3370choke me
3371#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003372f = shmat;
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003373#endif
3374
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003375 ;
3376 return 0;
3377}
3378_ACEOF
3379rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003381 (eval $ac_link) 2>&5
3382 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003384 (exit $ac_status); } &&
3385 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003387 (eval $ac_try) 2>&5
3388 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003390 (exit $ac_status); }; }; then
3391 ac_cv_func_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003392else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003393 echo "$as_me: failed program was:" >&5
3394cat conftest.$ac_ext >&5
3395ac_cv_func_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003396fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003397rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003398fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003399echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003400echo "${ECHO_T}$ac_cv_func_shmat" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003401
3402 if test $ac_cv_func_shmat = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003403 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003404echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3405if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003407else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003408 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003409LIBS="-lipc $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003410cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003411#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003412#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003413
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003414/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003415#ifdef __cplusplus
3416extern "C"
3417#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003418/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003419 builtin and then its argument prototype would still apply. */
3420char shmat ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003421#ifdef F77_DUMMY_MAIN
3422# ifdef __cplusplus
3423 extern "C"
3424# endif
3425 int F77_DUMMY_MAIN() { return 1; }
3426#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003427int
3428main ()
3429{
3430shmat ();
3431 ;
3432 return 0;
3433}
3434_ACEOF
3435rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003437 (eval $ac_link) 2>&5
3438 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003440 (exit $ac_status); } &&
3441 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003443 (eval $ac_try) 2>&5
3444 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003446 (exit $ac_status); }; }; then
3447 ac_cv_lib_ipc_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003448else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003449 echo "$as_me: failed program was:" >&5
3450cat conftest.$ac_ext >&5
3451ac_cv_lib_ipc_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003452fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003453rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3454LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003455fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003456echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003457echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3458if test $ac_cv_lib_ipc_shmat = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003459 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003460fi
3461
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003462 fi
3463 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003464
3465 # Check for libraries that X11R6 Xt/Xaw programs need.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003466 ac_save_LDFLAGS=$LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003467 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3468 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3469 # check for ICE first), but we must link in the order -lSM -lICE or
3470 # we get undefined symbols. So assume we have SM if we have ICE.
3471 # These have to be linked with before -lX11, unlike the other
3472 # libraries we check for below, so use a different variable.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003473 # John Interrante, Karl Berry
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003474 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003475echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3476if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003478else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003479 ac_check_lib_save_LIBS=$LIBS
Eric Pouech18ad24a2000-01-16 22:16:33 +00003480LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003481cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003482#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003483#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003484
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003485/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003486#ifdef __cplusplus
3487extern "C"
3488#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003489/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003490 builtin and then its argument prototype would still apply. */
3491char IceConnectionNumber ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003492#ifdef F77_DUMMY_MAIN
3493# ifdef __cplusplus
3494 extern "C"
3495# endif
3496 int F77_DUMMY_MAIN() { return 1; }
3497#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003498int
3499main ()
3500{
3501IceConnectionNumber ();
3502 ;
3503 return 0;
3504}
3505_ACEOF
3506rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003508 (eval $ac_link) 2>&5
3509 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003511 (exit $ac_status); } &&
3512 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003514 (eval $ac_try) 2>&5
3515 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003517 (exit $ac_status); }; }; then
3518 ac_cv_lib_ICE_IceConnectionNumber=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003519else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003520 echo "$as_me: failed program was:" >&5
3521cat conftest.$ac_ext >&5
3522ac_cv_lib_ICE_IceConnectionNumber=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003523fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003524rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3525LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003526fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003527echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003528echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3529if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003530 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003531fi
3532
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003533 LDFLAGS=$ac_save_LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003534
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003535fi
3536
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003537for ac_prog in 'bison -y' byacc
3538do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003539 # Extract the first word of "$ac_prog", so it can be a program name with args.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003540set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003541echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3543if test "${ac_cv_prog_YACC+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003545else
3546 if test -n "$YACC"; then
3547 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3548else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550for as_dir in $PATH
3551do
3552 IFS=$as_save_IFS
3553 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556 ac_cv_prog_YACC="$ac_prog"
3557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3558 break 2
3559 fi
3560done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003561done
3562
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003563fi
3564fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003565YACC=$ac_cv_prog_YACC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003566if test -n "$YACC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003567 echo "$as_me:$LINENO: result: $YACC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003568echo "${ECHO_T}$YACC" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003569else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003570 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003571echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003572fi
3573
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003574 test -n "$YACC" && break
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003575done
3576test -n "$YACC" || YACC="yacc"
3577
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003578for ac_prog in flex lex
3579do
3580 # Extract the first word of "$ac_prog", so it can be a program name with args.
3581set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003582echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3584if test "${ac_cv_prog_LEX+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003586else
3587 if test -n "$LEX"; then
3588 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3589else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591for as_dir in $PATH
3592do
3593 IFS=$as_save_IFS
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597 ac_cv_prog_LEX="$ac_prog"
3598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599 break 2
3600 fi
3601done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003602done
3603
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003604fi
3605fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003606LEX=$ac_cv_prog_LEX
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003607if test -n "$LEX"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003608 echo "$as_me:$LINENO: result: $LEX" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003609echo "${ECHO_T}$LEX" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003610else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003611 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003612echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003613fi
3614
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003615 test -n "$LEX" && break
3616done
3617test -n "$LEX" || LEX=":"
3618
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003619if test -z "$LEXLIB"
3620then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003621 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003622echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3623if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003625else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003626 ac_check_lib_save_LIBS=$LIBS
3627LIBS="-lfl $LIBS"
3628cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003629#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003630#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003631
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003632/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003633#ifdef __cplusplus
3634extern "C"
3635#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003636/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003637 builtin and then its argument prototype would still apply. */
3638char yywrap ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003639#ifdef F77_DUMMY_MAIN
3640# ifdef __cplusplus
3641 extern "C"
3642# endif
3643 int F77_DUMMY_MAIN() { return 1; }
3644#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003645int
3646main ()
3647{
3648yywrap ();
3649 ;
3650 return 0;
3651}
3652_ACEOF
3653rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003655 (eval $ac_link) 2>&5
3656 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003658 (exit $ac_status); } &&
3659 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003661 (eval $ac_try) 2>&5
3662 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003664 (exit $ac_status); }; }; then
3665 ac_cv_lib_fl_yywrap=yes
3666else
3667 echo "$as_me: failed program was:" >&5
3668cat conftest.$ac_ext >&5
3669ac_cv_lib_fl_yywrap=no
3670fi
3671rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3672LIBS=$ac_check_lib_save_LIBS
3673fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003674echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003675echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3676if test $ac_cv_lib_fl_yywrap = yes; then
3677 LEXLIB="-lfl"
3678else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003679 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003680echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3681if test "${ac_cv_lib_l_yywrap+set}" = set; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
3683else
3684 ac_check_lib_save_LIBS=$LIBS
3685LIBS="-ll $LIBS"
3686cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003687#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003688#include "confdefs.h"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003689
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003690/* Override any gcc2 internal prototype to avoid an error. */
3691#ifdef __cplusplus
3692extern "C"
3693#endif
3694/* We use char because int might match the return type of a gcc2
3695 builtin and then its argument prototype would still apply. */
3696char yywrap ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003697#ifdef F77_DUMMY_MAIN
3698# ifdef __cplusplus
3699 extern "C"
3700# endif
3701 int F77_DUMMY_MAIN() { return 1; }
3702#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003703int
3704main ()
3705{
3706yywrap ();
3707 ;
3708 return 0;
3709}
3710_ACEOF
3711rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003713 (eval $ac_link) 2>&5
3714 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003716 (exit $ac_status); } &&
3717 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003719 (eval $ac_try) 2>&5
3720 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003722 (exit $ac_status); }; }; then
3723 ac_cv_lib_l_yywrap=yes
3724else
3725 echo "$as_me: failed program was:" >&5
3726cat conftest.$ac_ext >&5
3727ac_cv_lib_l_yywrap=no
3728fi
3729rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3730LIBS=$ac_check_lib_save_LIBS
3731fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003732echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003733echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3734if test $ac_cv_lib_l_yywrap = yes; then
3735 LEXLIB="-ll"
3736fi
3737
3738fi
3739
3740fi
3741
3742if test "x$LEX" != "x:"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003743 echo "$as_me:$LINENO: checking lex output file root" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003744echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3745if test "${ac_cv_prog_lex_root+set}" = set; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3747else
3748 # The minimal lex program is just a single line: %%. But some broken lexes
3749# (Solaris, I think it was) want two %% lines, so accommodate them.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003750cat >conftest.l <<_ACEOF
3751%%
3752%%
3753_ACEOF
3754{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3755 (eval $LEX conftest.l) 2>&5
3756 ac_status=$?
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003759if test -f lex.yy.c; then
3760 ac_cv_prog_lex_root=lex.yy
3761elif test -f lexyy.c; then
3762 ac_cv_prog_lex_root=lexyy
3763else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003764 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003765echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3766 { (exit 1); exit 1; }; }
3767fi
3768fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003769echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003770echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003771rm -f conftest.l
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003772LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3773
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003774echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003775echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3776if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778else
3779 # POSIX says lex can declare yytext either as a pointer or an array; the
3780# default is implementation-dependent. Figure out which it is, since
3781# not all implementations provide the %pointer and %array declarations.
3782ac_cv_prog_lex_yytext_pointer=no
3783echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3784ac_save_LIBS=$LIBS
3785LIBS="$LIBS $LEXLIB"
3786cat >conftest.$ac_ext <<_ACEOF
3787`cat $LEX_OUTPUT_ROOT.c`
3788_ACEOF
3789rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003791 (eval $ac_link) 2>&5
3792 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003794 (exit $ac_status); } &&
3795 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003797 (eval $ac_try) 2>&5
3798 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003800 (exit $ac_status); }; }; then
3801 ac_cv_prog_lex_yytext_pointer=yes
3802else
3803 echo "$as_me: failed program was:" >&5
3804cat conftest.$ac_ext >&5
3805fi
3806rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3807LIBS=$ac_save_LIBS
3808rm -f "${LEX_OUTPUT_ROOT}.c"
3809
3810fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003811echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003812echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3813if test $ac_cv_prog_lex_yytext_pointer = yes; then
3814
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003815cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003816#define YYTEXT_POINTER 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003817_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003818
3819fi
3820
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003821fi
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003822
3823for ac_prog in $YACC bison yacc
3824do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003825 # Extract the first word of "$ac_prog", so it can be a program name with args.
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003826set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003827echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3829if test "${ac_cv_prog_XYACC+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003831else
3832 if test -n "$XYACC"; then
3833 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
3834else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836for as_dir in $PATH
3837do
3838 IFS=$as_save_IFS
3839 test -z "$as_dir" && as_dir=.
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3842 ac_cv_prog_XYACC="$ac_prog"
3843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3844 break 2
3845 fi
3846done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003847done
3848
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003849fi
3850fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003851XYACC=$ac_cv_prog_XYACC
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003852if test -n "$XYACC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003853 echo "$as_me:$LINENO: result: $XYACC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003854echo "${ECHO_T}$XYACC" >&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003855else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003856 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003857echo "${ECHO_T}no" >&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003858fi
3859
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003860 test -n "$XYACC" && break
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003861done
3862test -n "$XYACC" || XYACC="none"
3863
3864if test "$XYACC" = "none"
3865then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003866 { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003867echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
3868 { (exit 1); exit 1; }; }
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003869fi
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003870for ac_prog in $LEX flex lex
3871do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003872 # Extract the first word of "$ac_prog", so it can be a program name with args.
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003873set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003874echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3876if test "${ac_cv_prog_XLEX+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003878else
3879 if test -n "$XLEX"; then
3880 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
3881else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883for as_dir in $PATH
3884do
3885 IFS=$as_save_IFS
3886 test -z "$as_dir" && as_dir=.
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3889 ac_cv_prog_XLEX="$ac_prog"
3890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3891 break 2
3892 fi
3893done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003894done
3895
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003896fi
3897fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003898XLEX=$ac_cv_prog_XLEX
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003899if test -n "$XLEX"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003900 echo "$as_me:$LINENO: result: $XLEX" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003901echo "${ECHO_T}$XLEX" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003902else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003903 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003904echo "${ECHO_T}no" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003905fi
3906
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003907 test -n "$XLEX" && break
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003908done
3909test -n "$XLEX" || XLEX="none"
3910
3911if test "$XLEX" = "none"
3912then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003913 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003914echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
3915 { (exit 1); exit 1; }; }
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003916fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00003917
3918if test -n "$ac_tool_prefix"; then
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00003919 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3920set dummy ${ac_tool_prefix}ld; ac_word=$2
3921echo "$as_me:$LINENO: checking for $ac_word" >&5
3922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3923if test "${ac_cv_prog_LD+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3925else
3926 if test -n "$LD"; then
3927 ac_cv_prog_LD="$LD" # Let the user override the test.
3928else
3929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930for as_dir in $PATH
3931do
3932 IFS=$as_save_IFS
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936 ac_cv_prog_LD="${ac_tool_prefix}ld"
3937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 break 2
3939 fi
3940done
3941done
3942
3943fi
3944fi
3945LD=$ac_cv_prog_LD
3946if test -n "$LD"; then
3947 echo "$as_me:$LINENO: result: $LD" >&5
3948echo "${ECHO_T}$LD" >&6
3949else
3950 echo "$as_me:$LINENO: result: no" >&5
3951echo "${ECHO_T}no" >&6
3952fi
3953
3954fi
3955if test -z "$ac_cv_prog_LD"; then
3956 ac_ct_LD=$LD
3957 # Extract the first word of "ld", so it can be a program name with args.
3958set dummy ld; ac_word=$2
3959echo "$as_me:$LINENO: checking for $ac_word" >&5
3960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3963else
3964 if test -n "$ac_ct_LD"; then
3965 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3966else
3967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968for as_dir in $PATH
3969do
3970 IFS=$as_save_IFS
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_ac_ct_LD="ld"
3975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3976 break 2
3977 fi
3978done
3979done
3980
3981 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3982fi
3983fi
3984ac_ct_LD=$ac_cv_prog_ac_ct_LD
3985if test -n "$ac_ct_LD"; then
3986 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3987echo "${ECHO_T}$ac_ct_LD" >&6
3988else
3989 echo "$as_me:$LINENO: result: no" >&5
3990echo "${ECHO_T}no" >&6
3991fi
3992
3993 LD=$ac_ct_LD
3994else
3995 LD="$ac_cv_prog_LD"
3996fi
3997
3998if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00003999 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4000set dummy ${ac_tool_prefix}ar; ac_word=$2
4001echo "$as_me:$LINENO: checking for $ac_word" >&5
4002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4003if test "${ac_cv_prog_AR+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4005else
4006 if test -n "$AR"; then
4007 ac_cv_prog_AR="$AR" # Let the user override the test.
4008else
4009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010for as_dir in $PATH
4011do
4012 IFS=$as_save_IFS
4013 test -z "$as_dir" && as_dir=.
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4016 ac_cv_prog_AR="${ac_tool_prefix}ar"
4017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4018 break 2
4019 fi
4020done
4021done
4022
4023fi
4024fi
4025AR=$ac_cv_prog_AR
4026if test -n "$AR"; then
4027 echo "$as_me:$LINENO: result: $AR" >&5
4028echo "${ECHO_T}$AR" >&6
4029else
4030 echo "$as_me:$LINENO: result: no" >&5
4031echo "${ECHO_T}no" >&6
4032fi
4033
4034fi
4035if test -z "$ac_cv_prog_AR"; then
4036 ac_ct_AR=$AR
4037 # Extract the first word of "ar", so it can be a program name with args.
4038set dummy ar; ac_word=$2
4039echo "$as_me:$LINENO: checking for $ac_word" >&5
4040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4041if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4043else
4044 if test -n "$ac_ct_AR"; then
4045 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4046else
4047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048for as_dir in $PATH
4049do
4050 IFS=$as_save_IFS
4051 test -z "$as_dir" && as_dir=.
4052 for ac_exec_ext in '' $ac_executable_extensions; do
4053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4054 ac_cv_prog_ac_ct_AR="ar"
4055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4056 break 2
4057 fi
4058done
4059done
4060
4061 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4062fi
4063fi
4064ac_ct_AR=$ac_cv_prog_ac_ct_AR
4065if test -n "$ac_ct_AR"; then
4066 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4067echo "${ECHO_T}$ac_ct_AR" >&6
4068else
4069 echo "$as_me:$LINENO: result: no" >&5
4070echo "${ECHO_T}no" >&6
4071fi
4072
4073 AR=$ac_ct_AR
4074else
4075 AR="$ac_cv_prog_AR"
4076fi
4077
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004078if test -n "$ac_tool_prefix"; then
4079 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4080set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004081echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4083if test "${ac_cv_prog_RANLIB+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004085else
4086 if test -n "$RANLIB"; then
4087 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4088else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090for as_dir in $PATH
4091do
4092 IFS=$as_save_IFS
4093 test -z "$as_dir" && as_dir=.
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4096 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4098 break 2
4099 fi
4100done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004101done
4102
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004103fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004104fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004105RANLIB=$ac_cv_prog_RANLIB
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004106if test -n "$RANLIB"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004107 echo "$as_me:$LINENO: result: $RANLIB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004108echo "${ECHO_T}$RANLIB" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004109else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004110 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004111echo "${ECHO_T}no" >&6
4112fi
4113
4114fi
4115if test -z "$ac_cv_prog_RANLIB"; then
4116 ac_ct_RANLIB=$RANLIB
4117 # Extract the first word of "ranlib", so it can be a program name with args.
4118set dummy ranlib; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004119echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4121if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4123else
4124 if test -n "$ac_ct_RANLIB"; then
4125 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4126else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128for as_dir in $PATH
4129do
4130 IFS=$as_save_IFS
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134 ac_cv_prog_ac_ct_RANLIB="ranlib"
4135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4136 break 2
4137 fi
4138done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004139done
4140
4141 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4142fi
4143fi
4144ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4145if test -n "$ac_ct_RANLIB"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004146 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004147echo "${ECHO_T}$ac_ct_RANLIB" >&6
4148else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004149 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004150echo "${ECHO_T}no" >&6
4151fi
4152
4153 RANLIB=$ac_ct_RANLIB
4154else
4155 RANLIB="$ac_cv_prog_RANLIB"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004156fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004157
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004158if test -n "$ac_tool_prefix"; then
4159 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4160set dummy ${ac_tool_prefix}strip; ac_word=$2
4161echo "$as_me:$LINENO: checking for $ac_word" >&5
4162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4163if test "${ac_cv_prog_STRIP+set}" = set; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
4165else
4166 if test -n "$STRIP"; then
4167 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4168else
4169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170for as_dir in $PATH
4171do
4172 IFS=$as_save_IFS
4173 test -z "$as_dir" && as_dir=.
4174 for ac_exec_ext in '' $ac_executable_extensions; do
4175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4176 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4178 break 2
4179 fi
4180done
4181done
4182
4183fi
4184fi
4185STRIP=$ac_cv_prog_STRIP
4186if test -n "$STRIP"; then
4187 echo "$as_me:$LINENO: result: $STRIP" >&5
4188echo "${ECHO_T}$STRIP" >&6
4189else
4190 echo "$as_me:$LINENO: result: no" >&5
4191echo "${ECHO_T}no" >&6
4192fi
4193
4194fi
4195if test -z "$ac_cv_prog_STRIP"; then
4196 ac_ct_STRIP=$STRIP
4197 # Extract the first word of "strip", so it can be a program name with args.
4198set dummy strip; ac_word=$2
4199echo "$as_me:$LINENO: checking for $ac_word" >&5
4200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4201if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4203else
4204 if test -n "$ac_ct_STRIP"; then
4205 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4206else
4207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208for as_dir in $PATH
4209do
4210 IFS=$as_save_IFS
4211 test -z "$as_dir" && as_dir=.
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4214 ac_cv_prog_ac_ct_STRIP="strip"
4215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 break 2
4217 fi
4218done
4219done
4220
4221 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4222fi
4223fi
4224ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4225if test -n "$ac_ct_STRIP"; then
4226 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4227echo "${ECHO_T}$ac_ct_STRIP" >&6
4228else
4229 echo "$as_me:$LINENO: result: no" >&5
4230echo "${ECHO_T}no" >&6
4231fi
4232
4233 STRIP=$ac_ct_STRIP
4234else
4235 STRIP="$ac_cv_prog_STRIP"
4236fi
4237
4238if test -n "$ac_tool_prefix"; then
4239 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4240set dummy ${ac_tool_prefix}windres; ac_word=$2
4241echo "$as_me:$LINENO: checking for $ac_word" >&5
4242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4243if test "${ac_cv_prog_WINDRES+set}" = set; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4245else
4246 if test -n "$WINDRES"; then
4247 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4248else
4249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250for as_dir in $PATH
4251do
4252 IFS=$as_save_IFS
4253 test -z "$as_dir" && as_dir=.
4254 for ac_exec_ext in '' $ac_executable_extensions; do
4255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4256 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4258 break 2
4259 fi
4260done
4261done
4262
4263fi
4264fi
4265WINDRES=$ac_cv_prog_WINDRES
4266if test -n "$WINDRES"; then
4267 echo "$as_me:$LINENO: result: $WINDRES" >&5
4268echo "${ECHO_T}$WINDRES" >&6
4269else
4270 echo "$as_me:$LINENO: result: no" >&5
4271echo "${ECHO_T}no" >&6
4272fi
4273
4274fi
4275if test -z "$ac_cv_prog_WINDRES"; then
4276 ac_ct_WINDRES=$WINDRES
4277 # Extract the first word of "windres", so it can be a program name with args.
4278set dummy windres; ac_word=$2
4279echo "$as_me:$LINENO: checking for $ac_word" >&5
4280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4281if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4283else
4284 if test -n "$ac_ct_WINDRES"; then
4285 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4286else
4287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288for as_dir in $PATH
4289do
4290 IFS=$as_save_IFS
4291 test -z "$as_dir" && as_dir=.
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294 ac_cv_prog_ac_ct_WINDRES="windres"
4295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 break 2
4297 fi
4298done
4299done
4300
4301 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4302fi
4303fi
4304ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4305if test -n "$ac_ct_WINDRES"; then
4306 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4307echo "${ECHO_T}$ac_ct_WINDRES" >&6
4308else
4309 echo "$as_me:$LINENO: result: no" >&5
4310echo "${ECHO_T}no" >&6
4311fi
4312
4313 WINDRES=$ac_ct_WINDRES
4314else
4315 WINDRES="$ac_cv_prog_WINDRES"
4316fi
4317
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004318# Find a good install program. We prefer a C program (faster),
4319# so one script is as good as another. But avoid the broken or
4320# incompatible versions:
4321# SysV /etc/install, /usr/sbin/install
4322# SunOS /usr/etc/install
4323# IRIX /sbin/install
4324# AIX /bin/install
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004325# AmigaOS /C/install, which installs bootblocks on floppy discs
Eric Pouech18ad24a2000-01-16 22:16:33 +00004326# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004327# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4328# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4329# ./install, which can be erroneously created by make from ./install.sh.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004330echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4331echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004332if test -z "$INSTALL"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004333if test "${ac_cv_path_install+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004335else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337for as_dir in $PATH
4338do
4339 IFS=$as_save_IFS
4340 test -z "$as_dir" && as_dir=.
4341 # Account for people who put trailing slashes in PATH elements.
4342case $as_dir/ in
4343 ./ | .// | /cC/* | \
4344 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4345 /usr/ucb/* ) ;;
4346 *)
4347 # OSF1 and SCO ODT 3.0 have their own names for install.
4348 # Don't use installbsd from OSF since it installs stuff as root
4349 # by default.
4350 for ac_prog in ginstall scoinst install; do
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4353 if test $ac_prog = install &&
4354 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4355 # AIX install. It has an incompatible calling convention.
4356 :
4357 elif test $ac_prog = install &&
4358 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4359 # program-specific install script used by HP pwplus--don't use.
4360 :
4361 else
4362 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4363 break 3
4364 fi
4365 fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004366 done
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004367 done
4368 ;;
4369esac
4370done
4371
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004372
4373fi
4374 if test "${ac_cv_path_install+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004375 INSTALL=$ac_cv_path_install
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004376 else
4377 # As a last resort, use the slow shell script. We don't cache a
4378 # path for INSTALL within a source directory, because that will
4379 # break other packages using the cache if that directory is
4380 # removed, or if the path is relative.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004381 INSTALL=$ac_install_sh
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004382 fi
4383fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004384echo "$as_me:$LINENO: result: $INSTALL" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004385echo "${ECHO_T}$INSTALL" >&6
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004386
4387# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4388# It thinks the first close brace ends the variable substitution.
4389test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4390
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004391test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Eric Pouech18ad24a2000-01-16 22:16:33 +00004392
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004393test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4394
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004395echo "$as_me:$LINENO: checking whether ln -s works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004396echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4397LN_S=$as_ln_s
4398if test "$LN_S" = "ln -s"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004399 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004400echo "${ECHO_T}yes" >&6
Alexandre Julliard641ee761997-08-04 16:34:36 +00004401else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004402 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004403echo "${ECHO_T}no, using $LN_S" >&6
Alexandre Julliard641ee761997-08-04 16:34:36 +00004404fi
4405
Alexandre Julliarddf234a92002-05-22 02:10:39 +00004406echo "$as_me:$LINENO: checking whether ln works" >&5
4407echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4408rm -f conf$$ conf$$.file
4409echo >conf$$.file
4410if ln conf$$.file conf$$ 2>/dev/null; then
4411 LN=ln
4412
4413 echo "$as_me:$LINENO: result: yes" >&5
4414echo "${ECHO_T}yes" >&6
4415else
4416 LN="cp -p"
4417
4418 echo "$as_me:$LINENO: result: no, using $LN" >&5
4419echo "${ECHO_T}no, using $LN" >&6
4420fi
4421rm -f conf$$ conf$$.file
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004422# Extract the first word of "c2man", so it can be a program name with args.
4423set dummy c2man; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004424echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4426if test "${ac_cv_prog_C2MAN+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004428else
4429 if test -n "$C2MAN"; then
4430 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4431else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433for as_dir in $PATH
4434do
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4439 ac_cv_prog_C2MAN="c2man"
4440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4441 break 2
4442 fi
4443done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004444done
4445
Mike McCormacke0df32f2000-08-11 21:15:21 +00004446 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004447fi
4448fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004449C2MAN=$ac_cv_prog_C2MAN
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004450if test -n "$C2MAN"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004451 echo "$as_me:$LINENO: result: $C2MAN" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004452echo "${ECHO_T}$C2MAN" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004453else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004454 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004455echo "${ECHO_T}no" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004456fi
4457
James Juranffe6b761999-06-12 08:21:57 +00004458# Extract the first word of "ldconfig", so it can be a program name with args.
4459set dummy ldconfig; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004460echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4462if test "${ac_cv_path_LDCONFIG+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
James Juranffe6b761999-06-12 08:21:57 +00004464else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004465 case $LDCONFIG in
4466 [\\/]* | ?:[\\/]*)
James Juranffe6b761999-06-12 08:21:57 +00004467 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4468 ;;
4469 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Medland91372b32002-04-20 21:00:42 +00004471for as_dir in /sbin /usr/sbin $PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004472do
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4477 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 break 2
4480 fi
4481done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004482done
4483
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004484 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00004485 ;;
4486esac
4487fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004488LDCONFIG=$ac_cv_path_LDCONFIG
4489
James Juranffe6b761999-06-12 08:21:57 +00004490if test -n "$LDCONFIG"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004491 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004492echo "${ECHO_T}$LDCONFIG" >&6
James Juranffe6b761999-06-12 08:21:57 +00004493else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004494 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004495echo "${ECHO_T}no" >&6
James Juranffe6b761999-06-12 08:21:57 +00004496fi
4497
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004498
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004499for ac_prog in lclint lint
4500do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004501 # Extract the first word of "$ac_prog", so it can be a program name with args.
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004502set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004503echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4505if test "${ac_cv_prog_LINT+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004507else
4508 if test -n "$LINT"; then
4509 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4510else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512for as_dir in $PATH
4513do
4514 IFS=$as_save_IFS
4515 test -z "$as_dir" && as_dir=.
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4518 ac_cv_prog_LINT="$ac_prog"
4519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4520 break 2
4521 fi
4522done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004523done
4524
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004525fi
4526fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004527LINT=$ac_cv_prog_LINT
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004528if test -n "$LINT"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004529 echo "$as_me:$LINENO: result: $LINT" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004530echo "${ECHO_T}$LINT" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004531else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004532 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004533echo "${ECHO_T}no" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004534fi
4535
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004536 test -n "$LINT" && break
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004537done
4538
4539if test "$LINT" = "lint"
4540then
4541 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4542 fi
4543
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004544
4545
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004546
4547
4548echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004549echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4550if test "${ac_cv_lib_m_sqrt+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +00004552else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004553 ac_check_lib_save_LIBS=$LIBS
Howard Abrams13277481999-07-10 13:16:29 +00004554LIBS="-lm $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004555cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004556#line $LINENO "configure"
Howard Abrams13277481999-07-10 13:16:29 +00004557#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004558
Howard Abrams13277481999-07-10 13:16:29 +00004559/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004560#ifdef __cplusplus
4561extern "C"
4562#endif
Howard Abrams13277481999-07-10 13:16:29 +00004563/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004564 builtin and then its argument prototype would still apply. */
4565char sqrt ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004566#ifdef F77_DUMMY_MAIN
4567# ifdef __cplusplus
4568 extern "C"
4569# endif
4570 int F77_DUMMY_MAIN() { return 1; }
4571#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004572int
4573main ()
4574{
4575sqrt ();
4576 ;
4577 return 0;
4578}
4579_ACEOF
4580rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004582 (eval $ac_link) 2>&5
4583 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004585 (exit $ac_status); } &&
4586 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004588 (eval $ac_try) 2>&5
4589 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004591 (exit $ac_status); }; }; then
4592 ac_cv_lib_m_sqrt=yes
Howard Abrams13277481999-07-10 13:16:29 +00004593else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004594 echo "$as_me: failed program was:" >&5
4595cat conftest.$ac_ext >&5
4596ac_cv_lib_m_sqrt=no
Howard Abrams13277481999-07-10 13:16:29 +00004597fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004598rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4599LIBS=$ac_check_lib_save_LIBS
Howard Abrams13277481999-07-10 13:16:29 +00004600fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004601echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004602echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4603if test $ac_cv_lib_m_sqrt = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004604 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004605#define HAVE_LIBM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004606_ACEOF
Howard Abrams13277481999-07-10 13:16:29 +00004607
4608 LIBS="-lm $LIBS"
4609
Howard Abrams13277481999-07-10 13:16:29 +00004610fi
4611
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004612
4613echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004614echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
4615if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard902da691995-11-05 14:39:02 +00004617else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004618 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00004619LIBS="-li386 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004620cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004621#line $LINENO "configure"
Alexandre Julliard902da691995-11-05 14:39:02 +00004622#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004623
Alexandre Julliard59730ae1996-03-24 16:20:51 +00004624/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004625#ifdef __cplusplus
4626extern "C"
4627#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004628/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004629 builtin and then its argument prototype would still apply. */
4630char i386_set_ldt ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004631#ifdef F77_DUMMY_MAIN
4632# ifdef __cplusplus
4633 extern "C"
4634# endif
4635 int F77_DUMMY_MAIN() { return 1; }
4636#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004637int
4638main ()
4639{
4640i386_set_ldt ();
4641 ;
4642 return 0;
4643}
4644_ACEOF
4645rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004647 (eval $ac_link) 2>&5
4648 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004650 (exit $ac_status); } &&
4651 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004653 (eval $ac_try) 2>&5
4654 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004656 (exit $ac_status); }; }; then
4657 ac_cv_lib_i386_i386_set_ldt=yes
Alexandre Julliard902da691995-11-05 14:39:02 +00004658else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004659 echo "$as_me: failed program was:" >&5
4660cat conftest.$ac_ext >&5
4661ac_cv_lib_i386_i386_set_ldt=no
Alexandre Julliard902da691995-11-05 14:39:02 +00004662fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004663rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4664LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00004665fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004666echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004667echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
4668if test $ac_cv_lib_i386_i386_set_ldt = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004669 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004670#define HAVE_LIBI386 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004671_ACEOF
Alexandre Julliard02e90081998-01-04 17:49:09 +00004672
4673 LIBS="-li386 $LIBS"
4674
Alexandre Julliard02e90081998-01-04 17:49:09 +00004675fi
4676
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004677
4678echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004679echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4680if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierlingecc76691998-12-15 17:49:02 +00004682else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004683 ac_check_lib_save_LIBS=$LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00004684LIBS="-lossaudio $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004685cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004686#line $LINENO "configure"
Todd Vierlingecc76691998-12-15 17:49:02 +00004687#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004688
Todd Vierlingecc76691998-12-15 17:49:02 +00004689/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004690#ifdef __cplusplus
4691extern "C"
4692#endif
Todd Vierlingecc76691998-12-15 17:49:02 +00004693/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004694 builtin and then its argument prototype would still apply. */
4695char _oss_ioctl ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004696#ifdef F77_DUMMY_MAIN
4697# ifdef __cplusplus
4698 extern "C"
4699# endif
4700 int F77_DUMMY_MAIN() { return 1; }
4701#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004702int
4703main ()
4704{
4705_oss_ioctl ();
4706 ;
4707 return 0;
4708}
4709_ACEOF
4710rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004712 (eval $ac_link) 2>&5
4713 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004715 (exit $ac_status); } &&
4716 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004718 (eval $ac_try) 2>&5
4719 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004721 (exit $ac_status); }; }; then
4722 ac_cv_lib_ossaudio__oss_ioctl=yes
Todd Vierlingecc76691998-12-15 17:49:02 +00004723else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004724 echo "$as_me: failed program was:" >&5
4725cat conftest.$ac_ext >&5
4726ac_cv_lib_ossaudio__oss_ioctl=no
Todd Vierlingecc76691998-12-15 17:49:02 +00004727fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004728rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4729LIBS=$ac_check_lib_save_LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00004730fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004731echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004732echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4733if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004734 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004735#define HAVE_LIBOSSAUDIO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004736_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00004737
4738 LIBS="-lossaudio $LIBS"
4739
Todd Vierlingecc76691998-12-15 17:49:02 +00004740fi
4741
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004742
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004743for ac_func in iswalnum
Patrik Stridvallea584721998-11-01 16:22:07 +00004744do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004745as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004746echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004747echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4748if eval "test \"\${$as_ac_var+set}\" = set"; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00004750else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004751 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004752#line $LINENO "configure"
Patrik Stridvallea584721998-11-01 16:22:07 +00004753#include "confdefs.h"
4754/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004755 which can conflict with char $ac_func (); below. */
Patrik Stridvallea584721998-11-01 16:22:07 +00004756#include <assert.h>
4757/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004758#ifdef __cplusplus
4759extern "C"
4760#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00004761/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004762 builtin and then its argument prototype would still apply. */
4763char $ac_func ();
4764char (*f) ();
Patrik Stridvallea584721998-11-01 16:22:07 +00004765
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004766#ifdef F77_DUMMY_MAIN
4767# ifdef __cplusplus
4768 extern "C"
4769# endif
4770 int F77_DUMMY_MAIN() { return 1; }
4771#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004772int
4773main ()
4774{
Patrik Stridvallea584721998-11-01 16:22:07 +00004775/* The GNU C library defines this for functions which it implements
4776 to always fail with ENOSYS. Some functions are actually named
4777 something starting with __ and the normal name is an alias. */
4778#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4779choke me
4780#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004781f = $ac_func;
Patrik Stridvallea584721998-11-01 16:22:07 +00004782#endif
4783
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004784 ;
4785 return 0;
4786}
4787_ACEOF
4788rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004790 (eval $ac_link) 2>&5
4791 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004793 (exit $ac_status); } &&
4794 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004796 (eval $ac_try) 2>&5
4797 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004799 (exit $ac_status); }; }; then
4800 eval "$as_ac_var=yes"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004801else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004802 echo "$as_me: failed program was:" >&5
4803cat conftest.$ac_ext >&5
4804eval "$as_ac_var=no"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004805fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004806rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004807fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004808echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004809echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4810if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004811 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004812#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004813_ACEOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004814
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004815else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004816
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004817echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004818echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
4819if test "${ac_cv_lib_w_iswalnum+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004821else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004822 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004823LIBS="-lw $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004824cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004825#line $LINENO "configure"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004826#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004827
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004828/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004829#ifdef __cplusplus
4830extern "C"
4831#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004832/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004833 builtin and then its argument prototype would still apply. */
4834char iswalnum ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004835#ifdef F77_DUMMY_MAIN
4836# ifdef __cplusplus
4837 extern "C"
4838# endif
4839 int F77_DUMMY_MAIN() { return 1; }
4840#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004841int
4842main ()
4843{
4844iswalnum ();
4845 ;
4846 return 0;
4847}
4848_ACEOF
4849rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004851 (eval $ac_link) 2>&5
4852 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004854 (exit $ac_status); } &&
4855 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004857 (eval $ac_try) 2>&5
4858 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004860 (exit $ac_status); }; }; then
4861 ac_cv_lib_w_iswalnum=yes
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004862else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004863 echo "$as_me: failed program was:" >&5
4864cat conftest.$ac_ext >&5
4865ac_cv_lib_w_iswalnum=no
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004866fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004867rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4868LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004869fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004870echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004871echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
4872if test $ac_cv_lib_w_iswalnum = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004873 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004874#define HAVE_LIBW 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004875_ACEOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004876
4877 LIBS="-lw $LIBS"
4878
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004879fi
4880
4881fi
4882done
4883
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004884
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004885for ac_func in gethostbyname
4886do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004887as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004888echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004889echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4890if eval "test \"\${$as_ac_var+set}\" = set"; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004892else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004893 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004894#line $LINENO "configure"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004895#include "confdefs.h"
4896/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004897 which can conflict with char $ac_func (); below. */
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004898#include <assert.h>
4899/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004900#ifdef __cplusplus
4901extern "C"
4902#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004903/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004904 builtin and then its argument prototype would still apply. */
4905char $ac_func ();
4906char (*f) ();
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004907
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004908#ifdef F77_DUMMY_MAIN
4909# ifdef __cplusplus
4910 extern "C"
4911# endif
4912 int F77_DUMMY_MAIN() { return 1; }
4913#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004914int
4915main ()
4916{
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004917/* The GNU C library defines this for functions which it implements
4918 to always fail with ENOSYS. Some functions are actually named
4919 something starting with __ and the normal name is an alias. */
4920#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4921choke me
4922#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004923f = $ac_func;
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004924#endif
4925
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004926 ;
4927 return 0;
4928}
4929_ACEOF
4930rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004932 (eval $ac_link) 2>&5
4933 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004935 (exit $ac_status); } &&
4936 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004938 (eval $ac_try) 2>&5
4939 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004941 (exit $ac_status); }; }; then
4942 eval "$as_ac_var=yes"
Patrik Stridvallea584721998-11-01 16:22:07 +00004943else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004944 echo "$as_me: failed program was:" >&5
4945cat conftest.$ac_ext >&5
4946eval "$as_ac_var=no"
Patrik Stridvallea584721998-11-01 16:22:07 +00004947fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004948rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvallea584721998-11-01 16:22:07 +00004949fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004950echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004951echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4952if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004953 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004954#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004955_ACEOF
Patrik Stridvallea584721998-11-01 16:22:07 +00004956
Patrik Stridvallea584721998-11-01 16:22:07 +00004957else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004958
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004959echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004960echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4961if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00004963else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004964 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004965LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004966cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004967#line $LINENO "configure"
Patrik Stridvallea584721998-11-01 16:22:07 +00004968#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004969
Patrik Stridvallea584721998-11-01 16:22:07 +00004970/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004971#ifdef __cplusplus
4972extern "C"
4973#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00004974/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004975 builtin and then its argument prototype would still apply. */
4976char gethostbyname ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004977#ifdef F77_DUMMY_MAIN
4978# ifdef __cplusplus
4979 extern "C"
4980# endif
4981 int F77_DUMMY_MAIN() { return 1; }
4982#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004983int
4984main ()
4985{
4986gethostbyname ();
4987 ;
4988 return 0;
4989}
4990_ACEOF
4991rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004993 (eval $ac_link) 2>&5
4994 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004996 (exit $ac_status); } &&
4997 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004999 (eval $ac_try) 2>&5
5000 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005002 (exit $ac_status); }; }; then
5003 ac_cv_lib_nsl_gethostbyname=yes
Patrik Stridvallea584721998-11-01 16:22:07 +00005004else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005005 echo "$as_me: failed program was:" >&5
5006cat conftest.$ac_ext >&5
5007ac_cv_lib_nsl_gethostbyname=no
Patrik Stridvallea584721998-11-01 16:22:07 +00005008fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005009rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5010LIBS=$ac_check_lib_save_LIBS
Patrik Stridvallea584721998-11-01 16:22:07 +00005011fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005012echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005013echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5014if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005015 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005016#define HAVE_LIBNSL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005017_ACEOF
Ron Recorde977d6c1999-09-05 12:32:05 +00005018
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005019 LIBS="-lnsl $LIBS"
5020
Ron Recorde977d6c1999-09-05 12:32:05 +00005021fi
5022
Patrik Stridvallea584721998-11-01 16:22:07 +00005023fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00005024done
5025
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005026
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005027for ac_func in connect
5028do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005029as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005030echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005031echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5032if eval "test \"\${$as_ac_var+set}\" = set"; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005034else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005035 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005036#line $LINENO "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005037#include "confdefs.h"
5038/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005039 which can conflict with char $ac_func (); below. */
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005040#include <assert.h>
5041/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005042#ifdef __cplusplus
5043extern "C"
5044#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005045/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005046 builtin and then its argument prototype would still apply. */
5047char $ac_func ();
5048char (*f) ();
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005049
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005050#ifdef F77_DUMMY_MAIN
5051# ifdef __cplusplus
5052 extern "C"
5053# endif
5054 int F77_DUMMY_MAIN() { return 1; }
5055#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005056int
5057main ()
5058{
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005059/* The GNU C library defines this for functions which it implements
5060 to always fail with ENOSYS. Some functions are actually named
5061 something starting with __ and the normal name is an alias. */
5062#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5063choke me
5064#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005065f = $ac_func;
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005066#endif
5067
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005068 ;
5069 return 0;
5070}
5071_ACEOF
5072rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005074 (eval $ac_link) 2>&5
5075 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005077 (exit $ac_status); } &&
5078 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005080 (eval $ac_try) 2>&5
5081 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005083 (exit $ac_status); }; }; then
5084 eval "$as_ac_var=yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005085else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005086 echo "$as_me: failed program was:" >&5
5087cat conftest.$ac_ext >&5
5088eval "$as_ac_var=no"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005089fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005090rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005091fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005092echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005093echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5094if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005095 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005096#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005097_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005098
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005099else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005100
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005101echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005102echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5103if test "${ac_cv_lib_socket_connect+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005105else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005106 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005107LIBS="-lsocket $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005108cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005109#line $LINENO "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005110#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005111
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005112/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005113#ifdef __cplusplus
5114extern "C"
5115#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005116/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005117 builtin and then its argument prototype would still apply. */
5118char connect ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005119#ifdef F77_DUMMY_MAIN
5120# ifdef __cplusplus
5121 extern "C"
5122# endif
5123 int F77_DUMMY_MAIN() { return 1; }
5124#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005125int
5126main ()
5127{
5128connect ();
5129 ;
5130 return 0;
5131}
5132_ACEOF
5133rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005135 (eval $ac_link) 2>&5
5136 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005138 (exit $ac_status); } &&
5139 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005141 (eval $ac_try) 2>&5
5142 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005144 (exit $ac_status); }; }; then
5145 ac_cv_lib_socket_connect=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005146else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005147 echo "$as_me: failed program was:" >&5
5148cat conftest.$ac_ext >&5
5149ac_cv_lib_socket_connect=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005150fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005151rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5152LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005153fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005154echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005155echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5156if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005157 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005158#define HAVE_LIBSOCKET 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005159_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005160
5161 LIBS="-lsocket $LIBS"
5162
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005163fi
5164
5165fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00005166done
5167
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005168
Alexandre Julliardc5552742002-04-03 20:24:44 +00005169for ac_func in inet_aton
5170do
5171as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005172echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005173echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5174if eval "test \"\${$as_ac_var+set}\" = set"; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5176else
5177 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005178#line $LINENO "configure"
Alexandre Julliardc5552742002-04-03 20:24:44 +00005179#include "confdefs.h"
5180/* System header to define __stub macros and hopefully few prototypes,
5181 which can conflict with char $ac_func (); below. */
5182#include <assert.h>
5183/* Override any gcc2 internal prototype to avoid an error. */
5184#ifdef __cplusplus
5185extern "C"
5186#endif
5187/* We use char because int might match the return type of a gcc2
5188 builtin and then its argument prototype would still apply. */
5189char $ac_func ();
5190char (*f) ();
5191
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005192#ifdef F77_DUMMY_MAIN
5193# ifdef __cplusplus
5194 extern "C"
5195# endif
5196 int F77_DUMMY_MAIN() { return 1; }
5197#endif
Alexandre Julliardc5552742002-04-03 20:24:44 +00005198int
5199main ()
5200{
5201/* The GNU C library defines this for functions which it implements
5202 to always fail with ENOSYS. Some functions are actually named
5203 something starting with __ and the normal name is an alias. */
5204#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5205choke me
5206#else
5207f = $ac_func;
5208#endif
5209
5210 ;
5211 return 0;
5212}
5213_ACEOF
5214rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005216 (eval $ac_link) 2>&5
5217 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005219 (exit $ac_status); } &&
5220 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005222 (eval $ac_try) 2>&5
5223 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005225 (exit $ac_status); }; }; then
5226 eval "$as_ac_var=yes"
5227else
5228 echo "$as_me: failed program was:" >&5
5229cat conftest.$ac_ext >&5
5230eval "$as_ac_var=no"
5231fi
5232rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5233fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005234echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005235echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5236if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005237 cat >>confdefs.h <<_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00005238#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005239_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00005240
5241else
5242
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005243echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005244echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5245if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5247else
5248 ac_check_lib_save_LIBS=$LIBS
5249LIBS="-lresolv $LIBS"
5250cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005251#line $LINENO "configure"
Francois Gouget3b943bc2002-04-01 21:05:15 +00005252#include "confdefs.h"
5253
5254/* Override any gcc2 internal prototype to avoid an error. */
5255#ifdef __cplusplus
5256extern "C"
5257#endif
5258/* We use char because int might match the return type of a gcc2
5259 builtin and then its argument prototype would still apply. */
5260char inet_aton ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005261#ifdef F77_DUMMY_MAIN
5262# ifdef __cplusplus
5263 extern "C"
5264# endif
5265 int F77_DUMMY_MAIN() { return 1; }
5266#endif
Francois Gouget3b943bc2002-04-01 21:05:15 +00005267int
5268main ()
5269{
5270inet_aton ();
5271 ;
5272 return 0;
5273}
5274_ACEOF
5275rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005277 (eval $ac_link) 2>&5
5278 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005280 (exit $ac_status); } &&
5281 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005283 (eval $ac_try) 2>&5
5284 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005286 (exit $ac_status); }; }; then
5287 ac_cv_lib_resolv_inet_aton=yes
5288else
5289 echo "$as_me: failed program was:" >&5
5290cat conftest.$ac_ext >&5
5291ac_cv_lib_resolv_inet_aton=no
5292fi
5293rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5294LIBS=$ac_check_lib_save_LIBS
5295fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005296echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005297echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5298if test $ac_cv_lib_resolv_inet_aton = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005299 cat >>confdefs.h <<_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00005300#define HAVE_LIBRESOLV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005301_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00005302
5303 LIBS="-lresolv $LIBS"
5304
5305fi
5306
Alexandre Julliardc5552742002-04-03 20:24:44 +00005307fi
5308done
5309
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005310
5311echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005312echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5313if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005315else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005316 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005317LIBS="-lxpg4 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005318cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005319#line $LINENO "configure"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005320#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005321
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005322/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005323#ifdef __cplusplus
5324extern "C"
5325#endif
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005326/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005327 builtin and then its argument prototype would still apply. */
5328char _xpg4_setrunelocale ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005329#ifdef F77_DUMMY_MAIN
5330# ifdef __cplusplus
5331 extern "C"
5332# endif
5333 int F77_DUMMY_MAIN() { return 1; }
5334#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005335int
5336main ()
5337{
5338_xpg4_setrunelocale ();
5339 ;
5340 return 0;
5341}
5342_ACEOF
5343rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005345 (eval $ac_link) 2>&5
5346 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005348 (exit $ac_status); } &&
5349 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005351 (eval $ac_try) 2>&5
5352 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005354 (exit $ac_status); }; }; then
5355 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005356else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005357 echo "$as_me: failed program was:" >&5
5358cat conftest.$ac_ext >&5
5359ac_cv_lib_xpg4__xpg4_setrunelocale=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005360fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005361rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5362LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005363fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005364echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005365echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5366if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005367 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005368#define HAVE_LIBXPG4 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005369_ACEOF
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005370
5371 LIBS="-lxpg4 $LIBS"
5372
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005373fi
5374
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005375
5376echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005377echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5378if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005380else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005381 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005382LIBS="-lmmap $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005383cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005384#line $LINENO "configure"
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005385#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005386
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005387/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005388#ifdef __cplusplus
5389extern "C"
5390#endif
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005391/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005392 builtin and then its argument prototype would still apply. */
5393char mmap ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005394#ifdef F77_DUMMY_MAIN
5395# ifdef __cplusplus
5396 extern "C"
5397# endif
5398 int F77_DUMMY_MAIN() { return 1; }
5399#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005400int
5401main ()
5402{
5403mmap ();
5404 ;
5405 return 0;
5406}
5407_ACEOF
5408rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005410 (eval $ac_link) 2>&5
5411 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005413 (exit $ac_status); } &&
5414 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005416 (eval $ac_try) 2>&5
5417 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005419 (exit $ac_status); }; }; then
5420 ac_cv_lib_mmap_mmap=yes
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005421else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005422 echo "$as_me: failed program was:" >&5
5423cat conftest.$ac_ext >&5
5424ac_cv_lib_mmap_mmap=no
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005425fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005426rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5427LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005428fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005429echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005430echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5431if test $ac_cv_lib_mmap_mmap = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005432 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005433#define HAVE_LIBMMAP 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005434_ACEOF
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005435
5436 LIBS="-lmmap $LIBS"
5437
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005438fi
5439
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005440
Alexandre Julliardfa3a5362002-05-09 01:49:54 +00005441JPEGLIB=""
Alexandre Julliard562089b2001-12-31 22:28:35 +00005442
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005443echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5444echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5445if test "${ac_cv_header_stdc+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005446 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00005447else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005448 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005449#line $LINENO "configure"
Marcus Meissner2d7be871999-12-05 23:06:40 +00005450#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005451#include <stdlib.h>
5452#include <stdarg.h>
5453#include <string.h>
5454#include <float.h>
5455
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005456_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005457if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5459 ac_status=$?
5460 egrep -v '^ *\+' conftest.er1 >conftest.err
5461 rm -f conftest.er1
5462 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005464 (exit $ac_status); } >/dev/null; then
5465 if test -s conftest.err; then
5466 ac_cpp_err=$ac_c_preproc_warn_flag
5467 else
5468 ac_cpp_err=
5469 fi
Marcus Meissner2d7be871999-12-05 23:06:40 +00005470else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005471 ac_cpp_err=yes
5472fi
5473if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005474 ac_cv_header_stdc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005475else
5476 echo "$as_me: failed program was:" >&5
Marcus Meissner2d7be871999-12-05 23:06:40 +00005477 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005478 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005479fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005480rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005481
5482if test $ac_cv_header_stdc = yes; then
5483 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5484 cat >conftest.$ac_ext <<_ACEOF
5485#line $LINENO "configure"
5486#include "confdefs.h"
5487#include <string.h>
5488
5489_ACEOF
5490if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5491 egrep "memchr" >/dev/null 2>&1; then
5492 :
5493else
5494 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005495fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005496rm -f conftest*
5497
5498fi
5499
5500if test $ac_cv_header_stdc = yes; then
5501 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5502 cat >conftest.$ac_ext <<_ACEOF
5503#line $LINENO "configure"
5504#include "confdefs.h"
5505#include <stdlib.h>
5506
5507_ACEOF
5508if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5509 egrep "free" >/dev/null 2>&1; then
5510 :
5511else
5512 ac_cv_header_stdc=no
5513fi
5514rm -f conftest*
5515
5516fi
5517
5518if test $ac_cv_header_stdc = yes; then
5519 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5520 if test "$cross_compiling" = yes; then
5521 :
5522else
5523 cat >conftest.$ac_ext <<_ACEOF
5524#line $LINENO "configure"
5525#include "confdefs.h"
5526#include <ctype.h>
5527#if ((' ' & 0x0FF) == 0x020)
5528# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5529# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5530#else
5531# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5532 || ('j' <= (c) && (c) <= 'r') \
5533 || ('s' <= (c) && (c) <= 'z'))
5534# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5535#endif
5536
5537#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5538int
5539main ()
5540{
5541 int i;
5542 for (i = 0; i < 256; i++)
5543 if (XOR (islower (i), ISLOWER (i))
5544 || toupper (i) != TOUPPER (i))
5545 exit(2);
5546 exit (0);
5547}
5548_ACEOF
5549rm -f conftest$ac_exeext
5550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5551 (eval $ac_link) 2>&5
5552 ac_status=$?
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556 (eval $ac_try) 2>&5
5557 ac_status=$?
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); }; }; then
5560 :
5561else
5562 echo "$as_me: program exited with status $ac_status" >&5
5563echo "$as_me: failed program was:" >&5
5564cat conftest.$ac_ext >&5
5565( exit $ac_status )
5566ac_cv_header_stdc=no
5567fi
5568rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5569fi
5570fi
5571fi
5572echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5573echo "${ECHO_T}$ac_cv_header_stdc" >&6
5574if test $ac_cv_header_stdc = yes; then
5575
5576cat >>confdefs.h <<\_ACEOF
5577#define STDC_HEADERS 1
5578_ACEOF
5579
5580fi
5581
5582# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5593 inttypes.h stdint.h unistd.h
5594do
5595as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5596echo "$as_me:$LINENO: checking for $ac_header" >&5
5597echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5598if eval "test \"\${$as_ac_Header+set}\" = set"; then
5599 echo $ECHO_N "(cached) $ECHO_C" >&6
5600else
5601 cat >conftest.$ac_ext <<_ACEOF
5602#line $LINENO "configure"
5603#include "confdefs.h"
5604$ac_includes_default
5605
5606#include <$ac_header>
5607_ACEOF
5608rm -f conftest.$ac_objext
5609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5610 (eval $ac_compile) 2>&5
5611 ac_status=$?
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); } &&
5614 { ac_try='test -s conftest.$ac_objext'
5615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5616 (eval $ac_try) 2>&5
5617 ac_status=$?
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); }; }; then
5620 eval "$as_ac_Header=yes"
5621else
5622 echo "$as_me: failed program was:" >&5
5623cat conftest.$ac_ext >&5
5624eval "$as_ac_Header=no"
5625fi
5626rm -f conftest.$ac_objext conftest.$ac_ext
5627fi
5628echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005629echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5630if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005631 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005632#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005633_ACEOF
5634
5635fi
5636
5637done
5638
5639
5640
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005641for ac_header in jpeglib.h
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005642do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005643as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005644if eval "test \"\${$as_ac_Header+set}\" = set"; then
5645 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5647if eval "test \"\${$as_ac_Header+set}\" = set"; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005649fi
5650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5651echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005652else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005653 # Is the header compilable?
5654echo "$as_me:$LINENO: checking $ac_header usability" >&5
5655echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5656cat >conftest.$ac_ext <<_ACEOF
5657#line $LINENO "configure"
5658#include "confdefs.h"
5659$ac_includes_default
5660#include <$ac_header>
5661_ACEOF
5662rm -f conftest.$ac_objext
5663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5664 (eval $ac_compile) 2>&5
5665 ac_status=$?
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } &&
5668 { ac_try='test -s conftest.$ac_objext'
5669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670 (eval $ac_try) 2>&5
5671 ac_status=$?
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; }; then
5674 ac_header_compiler=yes
5675else
5676 echo "$as_me: failed program was:" >&5
5677cat conftest.$ac_ext >&5
5678ac_header_compiler=no
5679fi
5680rm -f conftest.$ac_objext conftest.$ac_ext
5681echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5682echo "${ECHO_T}$ac_header_compiler" >&6
5683
5684# Is the header present?
5685echo "$as_me:$LINENO: checking $ac_header presence" >&5
5686echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5687cat >conftest.$ac_ext <<_ACEOF
5688#line $LINENO "configure"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005689#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005690#include <$ac_header>
5691_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005692if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5694 ac_status=$?
5695 egrep -v '^ *\+' conftest.er1 >conftest.err
5696 rm -f conftest.er1
5697 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005699 (exit $ac_status); } >/dev/null; then
5700 if test -s conftest.err; then
5701 ac_cpp_err=$ac_c_preproc_warn_flag
5702 else
5703 ac_cpp_err=
5704 fi
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005705else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005706 ac_cpp_err=yes
5707fi
5708if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005709 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005710else
5711 echo "$as_me: failed program was:" >&5
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005712 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005713 ac_header_preproc=no
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005714fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005715rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005716echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5717echo "${ECHO_T}$ac_header_preproc" >&6
5718
5719# So? What about this header?
5720case $ac_header_compiler:$ac_header_preproc in
5721 yes:no )
5722 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5723echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5725echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5726 no:yes )
5727 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5728echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5729 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5730echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5732echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5733esac
5734echo "$as_me:$LINENO: checking for $ac_header" >&5
5735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5736if eval "test \"\${$as_ac_Header+set}\" = set"; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5738else
5739 eval "$as_ac_Header=$ac_header_preproc"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005740fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005742echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005743
5744fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005745if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005746 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005747#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005748_ACEOF
5749 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005750echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
5751if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005753else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005754 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005755LIBS="-ljpeg $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005756cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005757#line $LINENO "configure"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005758#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005759
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005760/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005761#ifdef __cplusplus
5762extern "C"
5763#endif
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005764/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005765 builtin and then its argument prototype would still apply. */
5766char jpeg_start_decompress ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005767#ifdef F77_DUMMY_MAIN
5768# ifdef __cplusplus
5769 extern "C"
5770# endif
5771 int F77_DUMMY_MAIN() { return 1; }
5772#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005773int
5774main ()
5775{
5776jpeg_start_decompress ();
5777 ;
5778 return 0;
5779}
5780_ACEOF
5781rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005783 (eval $ac_link) 2>&5
5784 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005786 (exit $ac_status); } &&
5787 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005789 (eval $ac_try) 2>&5
5790 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005792 (exit $ac_status); }; }; then
5793 ac_cv_lib_jpeg_jpeg_start_decompress=yes
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005794else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005795 echo "$as_me: failed program was:" >&5
5796cat conftest.$ac_ext >&5
5797ac_cv_lib_jpeg_jpeg_start_decompress=no
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005798fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005799rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5800LIBS=$ac_check_lib_save_LIBS
5801fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005802echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005803echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
5804if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005805
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005806cat >>confdefs.h <<\_ACEOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005807#define HAVE_LIBJPEG 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005808_ACEOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005809
5810 JPEGLIB="-ljpeg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005811
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005812fi
5813
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005814
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005815fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005816
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005817done
5818
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005819
5820
5821
5822
Patrik Stridvall2941a212000-04-25 20:34:22 +00005823XFILES=""
Marcus Meissner10ad97c2000-04-09 14:30:50 +00005824
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00005825OPENGLFILES=""
5826
Marcus Meissnerb63ab442001-06-08 19:02:57 +00005827GLU32FILES=""
Patrik Stridvallea584721998-11-01 16:22:07 +00005828if test "$have_x" = "yes"
5829then
Patrik Stridvall24110281999-02-04 10:09:54 +00005830 XLIB="-lXext -lX11"
Ove Kaaven1eb593c1999-02-14 09:34:46 +00005831 ac_save_CPPFLAGS="$CPPFLAGS"
5832 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Patrik Stridvallea584721998-11-01 16:22:07 +00005833
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005834
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005835for ac_header in X11/Xlib.h
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005836do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005837as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005838if eval "test \"\${$as_ac_Header+set}\" = set"; then
5839 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005840echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5841if eval "test \"\${$as_ac_Header+set}\" = set"; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005843fi
5844echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5845echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005846else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005847 # Is the header compilable?
5848echo "$as_me:$LINENO: checking $ac_header usability" >&5
5849echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5850cat >conftest.$ac_ext <<_ACEOF
5851#line $LINENO "configure"
5852#include "confdefs.h"
5853$ac_includes_default
5854#include <$ac_header>
5855_ACEOF
5856rm -f conftest.$ac_objext
5857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5858 (eval $ac_compile) 2>&5
5859 ac_status=$?
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try='test -s conftest.$ac_objext'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864 (eval $ac_try) 2>&5
5865 ac_status=$?
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; }; then
5868 ac_header_compiler=yes
5869else
5870 echo "$as_me: failed program was:" >&5
5871cat conftest.$ac_ext >&5
5872ac_header_compiler=no
5873fi
5874rm -f conftest.$ac_objext conftest.$ac_ext
5875echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5876echo "${ECHO_T}$ac_header_compiler" >&6
5877
5878# Is the header present?
5879echo "$as_me:$LINENO: checking $ac_header presence" >&5
5880echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5881cat >conftest.$ac_ext <<_ACEOF
5882#line $LINENO "configure"
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005883#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005884#include <$ac_header>
5885_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005886if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5888 ac_status=$?
5889 egrep -v '^ *\+' conftest.er1 >conftest.err
5890 rm -f conftest.er1
5891 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005893 (exit $ac_status); } >/dev/null; then
5894 if test -s conftest.err; then
5895 ac_cpp_err=$ac_c_preproc_warn_flag
5896 else
5897 ac_cpp_err=
5898 fi
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005899else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005900 ac_cpp_err=yes
5901fi
5902if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005903 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005904else
5905 echo "$as_me: failed program was:" >&5
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005906 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005907 ac_header_preproc=no
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005908fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005909rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005910echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5911echo "${ECHO_T}$ac_header_preproc" >&6
5912
5913# So? What about this header?
5914case $ac_header_compiler:$ac_header_preproc in
5915 yes:no )
5916 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5917echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5919echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5920 no:yes )
5921 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5922echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5923 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5924echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5926echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5927esac
5928echo "$as_me:$LINENO: checking for $ac_header" >&5
5929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5930if eval "test \"\${$as_ac_Header+set}\" = set"; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5932else
5933 eval "$as_ac_Header=$ac_header_preproc"
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005934fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005936echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005937
5938fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005939if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005940 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005941#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005942_ACEOF
5943
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005944
5945for ac_header in X11/XKBlib.h
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00005946do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005947as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005948if eval "test \"\${$as_ac_Header+set}\" = set"; then
5949 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005950echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5951if eval "test \"\${$as_ac_Header+set}\" = set"; then
5952 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005953fi
5954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5955echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00005956else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005957 # Is the header compilable?
5958echo "$as_me:$LINENO: checking $ac_header usability" >&5
5959echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5960cat >conftest.$ac_ext <<_ACEOF
5961#line $LINENO "configure"
5962#include "confdefs.h"
5963$ac_includes_default
5964#include <$ac_header>
5965_ACEOF
5966rm -f conftest.$ac_objext
5967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5968 (eval $ac_compile) 2>&5
5969 ac_status=$?
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } &&
5972 { ac_try='test -s conftest.$ac_objext'
5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974 (eval $ac_try) 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; }; then
5978 ac_header_compiler=yes
5979else
5980 echo "$as_me: failed program was:" >&5
5981cat conftest.$ac_ext >&5
5982ac_header_compiler=no
5983fi
5984rm -f conftest.$ac_objext conftest.$ac_ext
5985echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5986echo "${ECHO_T}$ac_header_compiler" >&6
5987
5988# Is the header present?
5989echo "$as_me:$LINENO: checking $ac_header presence" >&5
5990echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5991cat >conftest.$ac_ext <<_ACEOF
5992#line $LINENO "configure"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00005993#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005994#include <$ac_header>
5995_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005996if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5998 ac_status=$?
5999 egrep -v '^ *\+' conftest.er1 >conftest.err
6000 rm -f conftest.er1
6001 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006003 (exit $ac_status); } >/dev/null; then
6004 if test -s conftest.err; then
6005 ac_cpp_err=$ac_c_preproc_warn_flag
6006 else
6007 ac_cpp_err=
6008 fi
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006009else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006010 ac_cpp_err=yes
6011fi
6012if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006013 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006014else
6015 echo "$as_me: failed program was:" >&5
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006016 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006017 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00006018fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006019rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006020echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6021echo "${ECHO_T}$ac_header_preproc" >&6
6022
6023# So? What about this header?
6024case $ac_header_compiler:$ac_header_preproc in
6025 yes:no )
6026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6027echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6029echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6030 no:yes )
6031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6032echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6034echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6036echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6037esac
6038echo "$as_me:$LINENO: checking for $ac_header" >&5
6039echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6040if eval "test \"\${$as_ac_Header+set}\" = set"; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6042else
6043 eval "$as_ac_Header=$ac_header_preproc"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006044fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006046echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006047
6048fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006049if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006050 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006051#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006052_ACEOF
6053 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006054echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6055if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006057else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006058 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00006059LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006060cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006061#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00006062#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006063
Patrik Stridvall24110281999-02-04 10:09:54 +00006064/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006065#ifdef __cplusplus
6066extern "C"
6067#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00006068/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006069 builtin and then its argument prototype would still apply. */
6070char XkbQueryExtension ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006071#ifdef F77_DUMMY_MAIN
6072# ifdef __cplusplus
6073 extern "C"
6074# endif
6075 int F77_DUMMY_MAIN() { return 1; }
6076#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006077int
6078main ()
6079{
6080XkbQueryExtension ();
6081 ;
6082 return 0;
6083}
6084_ACEOF
6085rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006087 (eval $ac_link) 2>&5
6088 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006090 (exit $ac_status); } &&
6091 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006093 (eval $ac_try) 2>&5
6094 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006096 (exit $ac_status); }; }; then
6097 ac_cv_lib_X11_XkbQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00006098else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006099 echo "$as_me: failed program was:" >&5
6100cat conftest.$ac_ext >&5
6101ac_cv_lib_X11_XkbQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00006102fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006103rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6104LIBS=$ac_check_lib_save_LIBS
6105fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006106echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006107echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6108if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00006109
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006110cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00006111#define HAVE_XKB 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006112_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00006113
Patrik Stridvall24110281999-02-04 10:09:54 +00006114fi
6115
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006116
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006117else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006118 { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006119echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
6120
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006121fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006122
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006123done
6124
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006125
6126
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006127for ac_header in X11/extensions/XShm.h
Patrik Stridvall24110281999-02-04 10:09:54 +00006128do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006129as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006130echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006131echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6132if eval "test \"\${$as_ac_Header+set}\" = set"; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006134else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006135 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006136#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00006137#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006138#include <X11/Xlib.h>
6139
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006140#include <$ac_header>
6141_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006142rm -f conftest.$ac_objext
6143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6144 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006145 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } &&
6148 { ac_try='test -s conftest.$ac_objext'
6149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 (eval $ac_try) 2>&5
6151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006154 eval "$as_ac_Header=yes"
6155else
6156 echo "$as_me: failed program was:" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006157cat conftest.$ac_ext >&5
6158eval "$as_ac_Header=no"
Patrik Stridvall24110281999-02-04 10:09:54 +00006159fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006160rm -f conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall24110281999-02-04 10:09:54 +00006161fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006162echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006163echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6164if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006165 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006166#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006167_ACEOF
6168 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006169echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6170if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00006172else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006173 ac_check_lib_save_LIBS=$LIBS
Francois Jacques5b6879c2000-07-28 23:04:54 +00006174LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006175cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006176#line $LINENO "configure"
Francois Jacques5b6879c2000-07-28 23:04:54 +00006177#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006178
Francois Jacques5b6879c2000-07-28 23:04:54 +00006179/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006180#ifdef __cplusplus
6181extern "C"
6182#endif
Francois Jacques5b6879c2000-07-28 23:04:54 +00006183/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006184 builtin and then its argument prototype would still apply. */
6185char XShmQueryExtension ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006186#ifdef F77_DUMMY_MAIN
6187# ifdef __cplusplus
6188 extern "C"
6189# endif
6190 int F77_DUMMY_MAIN() { return 1; }
6191#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006192int
6193main ()
6194{
6195XShmQueryExtension ();
6196 ;
6197 return 0;
6198}
6199_ACEOF
6200rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006202 (eval $ac_link) 2>&5
6203 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006205 (exit $ac_status); } &&
6206 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006208 (eval $ac_try) 2>&5
6209 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006211 (exit $ac_status); }; }; then
6212 ac_cv_lib_Xext_XShmQueryExtension=yes
Francois Jacques5b6879c2000-07-28 23:04:54 +00006213else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006214 echo "$as_me: failed program was:" >&5
6215cat conftest.$ac_ext >&5
6216ac_cv_lib_Xext_XShmQueryExtension=no
Francois Jacques5b6879c2000-07-28 23:04:54 +00006217fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006218rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6219LIBS=$ac_check_lib_save_LIBS
6220fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006221echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006222echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
6223if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
Francois Jacques5b6879c2000-07-28 23:04:54 +00006224
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006225cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00006226#define HAVE_LIBXXSHM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006227_ACEOF
Francois Jacques5b6879c2000-07-28 23:04:54 +00006228
Francois Jacques5b6879c2000-07-28 23:04:54 +00006229fi
6230
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006231
Francois Jacques5b6879c2000-07-28 23:04:54 +00006232else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006233 { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006234echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
Francois Jacques5b6879c2000-07-28 23:04:54 +00006235fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006236
Francois Jacques5b6879c2000-07-28 23:04:54 +00006237done
6238
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006239
6240
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006241for ac_header in X11/extensions/shape.h
Francois Jacques5b6879c2000-07-28 23:04:54 +00006242do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006243as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006244echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006245echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6246if eval "test \"\${$as_ac_Header+set}\" = set"; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00006248else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006249 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006250#line $LINENO "configure"
Francois Jacques5b6879c2000-07-28 23:04:54 +00006251#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006252#include <X11/Xlib.h>
6253
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006254#include <$ac_header>
6255_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006256rm -f conftest.$ac_objext
6257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6258 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006259 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); } &&
6262 { ac_try='test -s conftest.$ac_objext'
6263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6264 (eval $ac_try) 2>&5
6265 ac_status=$?
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006268 eval "$as_ac_Header=yes"
6269else
6270 echo "$as_me: failed program was:" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006271cat conftest.$ac_ext >&5
6272eval "$as_ac_Header=no"
Francois Jacques5b6879c2000-07-28 23:04:54 +00006273fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006274rm -f conftest.$ac_objext conftest.$ac_ext
Francois Jacques5b6879c2000-07-28 23:04:54 +00006275fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006276echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006277echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6278if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006279 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006280#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006281_ACEOF
6282 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006283echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6284if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00006286else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006287 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00006288LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006289cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006290#line $LINENO "configure"
Ove Kaavenc90fb252001-01-02 22:39:14 +00006291#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006292
Ove Kaavenc90fb252001-01-02 22:39:14 +00006293/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006294#ifdef __cplusplus
6295extern "C"
6296#endif
Ove Kaavenc90fb252001-01-02 22:39:14 +00006297/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006298 builtin and then its argument prototype would still apply. */
6299char XShapeQueryExtension ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006300#ifdef F77_DUMMY_MAIN
6301# ifdef __cplusplus
6302 extern "C"
6303# endif
6304 int F77_DUMMY_MAIN() { return 1; }
6305#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006306int
6307main ()
6308{
6309XShapeQueryExtension ();
6310 ;
6311 return 0;
6312}
6313_ACEOF
6314rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006316 (eval $ac_link) 2>&5
6317 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006319 (exit $ac_status); } &&
6320 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006322 (eval $ac_try) 2>&5
6323 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006325 (exit $ac_status); }; }; then
6326 ac_cv_lib_Xext_XShapeQueryExtension=yes
Ove Kaavenc90fb252001-01-02 22:39:14 +00006327else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006328 echo "$as_me: failed program was:" >&5
6329cat conftest.$ac_ext >&5
6330ac_cv_lib_Xext_XShapeQueryExtension=no
Ove Kaavenc90fb252001-01-02 22:39:14 +00006331fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006332rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6333LIBS=$ac_check_lib_save_LIBS
6334fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006335echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006336echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6337if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Ove Kaavenc90fb252001-01-02 22:39:14 +00006338
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006339cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00006340#define HAVE_LIBXSHAPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006341_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00006342
Ove Kaavenc90fb252001-01-02 22:39:14 +00006343fi
6344
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006345
Ove Kaavenc90fb252001-01-02 22:39:14 +00006346else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006347 { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006348echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
Ove Kaavenc90fb252001-01-02 22:39:14 +00006349fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006350
Ove Kaavenc90fb252001-01-02 22:39:14 +00006351done
6352
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006353
6354
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006355for ac_header in X11/extensions/xf86dga.h
Ove Kaavenc90fb252001-01-02 22:39:14 +00006356do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006357as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006358echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006359echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6360if eval "test \"\${$as_ac_Header+set}\" = set"; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00006362else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006363 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006364#line $LINENO "configure"
Ove Kaavenc90fb252001-01-02 22:39:14 +00006365#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006366#include <X11/Xlib.h>
6367
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006368#include <$ac_header>
6369_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006370rm -f conftest.$ac_objext
6371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6372 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006373 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); } &&
6376 { ac_try='test -s conftest.$ac_objext'
6377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378 (eval $ac_try) 2>&5
6379 ac_status=$?
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006382 eval "$as_ac_Header=yes"
6383else
6384 echo "$as_me: failed program was:" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006385cat conftest.$ac_ext >&5
6386eval "$as_ac_Header=no"
Ove Kaavenc90fb252001-01-02 22:39:14 +00006387fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006388rm -f conftest.$ac_objext conftest.$ac_ext
Ove Kaavenc90fb252001-01-02 22:39:14 +00006389fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006390echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006391echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6392if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006393 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006394#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006395_ACEOF
6396 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006397echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6398if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006400else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006401 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner10ad97c2000-04-09 14:30:50 +00006402LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006403 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006404cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006405#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00006406#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006407
Patrik Stridvall24110281999-02-04 10:09:54 +00006408/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006409#ifdef __cplusplus
6410extern "C"
6411#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00006412/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006413 builtin and then its argument prototype would still apply. */
6414char XDGAQueryExtension ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006415#ifdef F77_DUMMY_MAIN
6416# ifdef __cplusplus
6417 extern "C"
6418# endif
6419 int F77_DUMMY_MAIN() { return 1; }
6420#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006421int
6422main ()
6423{
6424XDGAQueryExtension ();
6425 ;
6426 return 0;
6427}
6428_ACEOF
6429rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006431 (eval $ac_link) 2>&5
6432 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006434 (exit $ac_status); } &&
6435 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006437 (eval $ac_try) 2>&5
6438 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006440 (exit $ac_status); }; }; then
6441 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006442else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006443 echo "$as_me: failed program was:" >&5
6444cat conftest.$ac_ext >&5
6445ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006446fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006447rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6448LIBS=$ac_check_lib_save_LIBS
6449fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006450echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006451echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
6452if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006453
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006454cat >>confdefs.h <<\_ACEOF
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006455#define HAVE_LIBXXF86DGA2 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006456_ACEOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00006457
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006458 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006459
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006460else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006461 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006462echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6463if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006465else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006466 ac_check_lib_save_LIBS=$LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006467LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6468 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006469cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006470#line $LINENO "configure"
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006471#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006472
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006473/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006474#ifdef __cplusplus
6475extern "C"
6476#endif
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006477/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006478 builtin and then its argument prototype would still apply. */
6479char XF86DGAQueryExtension ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006480#ifdef F77_DUMMY_MAIN
6481# ifdef __cplusplus
6482 extern "C"
6483# endif
6484 int F77_DUMMY_MAIN() { return 1; }
6485#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006486int
6487main ()
6488{
6489XF86DGAQueryExtension ();
6490 ;
6491 return 0;
6492}
6493_ACEOF
6494rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006496 (eval $ac_link) 2>&5
6497 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006499 (exit $ac_status); } &&
6500 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006502 (eval $ac_try) 2>&5
6503 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006505 (exit $ac_status); }; }; then
6506 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00006507else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006508 echo "$as_me: failed program was:" >&5
6509cat conftest.$ac_ext >&5
6510ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00006511fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006512rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6513LIBS=$ac_check_lib_save_LIBS
6514fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006515echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006516echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
6517if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00006518
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006519cat >>confdefs.h <<\_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00006520#define HAVE_LIBXXF86DGA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006521_ACEOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00006522
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006523 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006524
Patrik Stridvall24110281999-02-04 10:09:54 +00006525fi
6526
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006527
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006528fi
Patrik Stridvall24110281999-02-04 10:09:54 +00006529
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006530
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006531else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006532 { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006533echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006534fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006535
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006536done
6537
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006538
6539
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006540for ac_header in X11/extensions/xf86vmode.h
Patrik Stridvall24110281999-02-04 10:09:54 +00006541do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006542as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006543echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006544echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6545if eval "test \"\${$as_ac_Header+set}\" = set"; then
6546 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006547else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006548 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006549#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00006550#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006551#include <X11/Xlib.h>
6552
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006553#include <$ac_header>
6554_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006555rm -f conftest.$ac_objext
6556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6557 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006558 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } &&
6561 { ac_try='test -s conftest.$ac_objext'
6562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563 (eval $ac_try) 2>&5
6564 ac_status=$?
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006567 eval "$as_ac_Header=yes"
6568else
6569 echo "$as_me: failed program was:" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006570cat conftest.$ac_ext >&5
6571eval "$as_ac_Header=no"
Patrik Stridvall24110281999-02-04 10:09:54 +00006572fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006573rm -f conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall24110281999-02-04 10:09:54 +00006574fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006575echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006576echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6577if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006578 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006579#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006580_ACEOF
6581 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006582echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
6583if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006585else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006586 ac_check_lib_save_LIBS=$LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006587LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6588 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006589cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006590#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00006591#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006592
Patrik Stridvall24110281999-02-04 10:09:54 +00006593/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006594#ifdef __cplusplus
6595extern "C"
6596#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00006597/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006598 builtin and then its argument prototype would still apply. */
6599char XF86VidModeQueryExtension ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006600#ifdef F77_DUMMY_MAIN
6601# ifdef __cplusplus
6602 extern "C"
6603# endif
6604 int F77_DUMMY_MAIN() { return 1; }
6605#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006606int
6607main ()
6608{
6609XF86VidModeQueryExtension ();
6610 ;
6611 return 0;
6612}
6613_ACEOF
6614rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006616 (eval $ac_link) 2>&5
6617 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006619 (exit $ac_status); } &&
6620 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006622 (eval $ac_try) 2>&5
6623 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006625 (exit $ac_status); }; }; then
6626 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00006627else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006628 echo "$as_me: failed program was:" >&5
6629cat conftest.$ac_ext >&5
6630ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00006631fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006632rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6633LIBS=$ac_check_lib_save_LIBS
6634fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006635echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006636echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
6637if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00006638
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006639cat >>confdefs.h <<\_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00006640#define HAVE_LIBXXF86VM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006641_ACEOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006642
6643 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006644
Patrik Stridvall24110281999-02-04 10:09:54 +00006645fi
6646
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006647
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006648else
6649 { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
6650echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006651fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006652
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006653done
Lionel Ulmer5c085701999-02-28 19:48:53 +00006654
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006655
6656
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006657for ac_header in X11/extensions/Xvlib.h
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006658do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006659as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006660echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006661echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6662if eval "test \"\${$as_ac_Header+set}\" = set"; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006664else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006665 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006666#line $LINENO "configure"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006667#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006668#include <X11/Xlib.h>
6669
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006670#include <$ac_header>
6671_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006672rm -f conftest.$ac_objext
6673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6674 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006675 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); } &&
6678 { ac_try='test -s conftest.$ac_objext'
6679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6680 (eval $ac_try) 2>&5
6681 ac_status=$?
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006684 eval "$as_ac_Header=yes"
6685else
6686 echo "$as_me: failed program was:" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006687cat conftest.$ac_ext >&5
6688eval "$as_ac_Header=no"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006689fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006690rm -f conftest.$ac_objext conftest.$ac_ext
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006691fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006692echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006693echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6694if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006695 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006696#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006697_ACEOF
6698 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006699echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
6700if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006702else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006703 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006704LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6705 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006706cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006707#line $LINENO "configure"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006708#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006709
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006710/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006711#ifdef __cplusplus
6712extern "C"
6713#endif
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006714/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006715 builtin and then its argument prototype would still apply. */
6716char XvShmCreateImage ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006717#ifdef F77_DUMMY_MAIN
6718# ifdef __cplusplus
6719 extern "C"
6720# endif
6721 int F77_DUMMY_MAIN() { return 1; }
6722#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006723int
6724main ()
6725{
6726XvShmCreateImage ();
6727 ;
6728 return 0;
6729}
6730_ACEOF
6731rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006733 (eval $ac_link) 2>&5
6734 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006736 (exit $ac_status); } &&
6737 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006739 (eval $ac_try) 2>&5
6740 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006742 (exit $ac_status); }; }; then
6743 ac_cv_lib_Xv_XvShmCreateImage=yes
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006744else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006745 echo "$as_me: failed program was:" >&5
6746cat conftest.$ac_ext >&5
6747ac_cv_lib_Xv_XvShmCreateImage=no
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006748fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006749rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6750LIBS=$ac_check_lib_save_LIBS
6751fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006752echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006753echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
6754if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006755
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006756cat >>confdefs.h <<\_ACEOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006757#define HAVE_XVIDEO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006758_ACEOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006759
6760 X_PRE_LIBS="$X_PRE_LIBS -lXv"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006761
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006762fi
6763
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006764
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006765else
6766 { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
6767echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006768fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006769
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006770done
6771
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006772
6773
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006774for ac_header in X11/extensions/Xrender.h
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006775do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006776as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006777echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006778echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6779if eval "test \"\${$as_ac_Header+set}\" = set"; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006781else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006782 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006783#line $LINENO "configure"
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006784#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006785#include <X11/Xlib.h>
6786
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006787#include <$ac_header>
6788_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006789rm -f conftest.$ac_objext
6790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6791 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006792 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } &&
6795 { ac_try='test -s conftest.$ac_objext'
6796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6797 (eval $ac_try) 2>&5
6798 ac_status=$?
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006801 eval "$as_ac_Header=yes"
6802else
6803 echo "$as_me: failed program was:" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006804cat conftest.$ac_ext >&5
6805eval "$as_ac_Header=no"
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006806fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006807rm -f conftest.$ac_objext conftest.$ac_ext
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006808fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006809echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006810echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6811if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006812 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006813#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006814_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006815
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006816fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006817
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006818done
6819
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006820
6821
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006822fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006823
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006824done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006825
6826 if test "x$enable_opengl" != "xno"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00006827 then
Francois Gouget42dcd972002-01-29 17:52:28 +00006828 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00006829 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006830 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006831This prevents linking to OpenGL. Delete the file and restart configure." >&5
6832echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
6833This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
6834 { (exit 1); exit 1; }; }
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00006835 fi
6836
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006837
6838
6839for ac_header in GL/gl.h GL/glx.h
Patrik Stridvall24110281999-02-04 10:09:54 +00006840do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006841as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006842if eval "test \"\${$as_ac_Header+set}\" = set"; then
6843 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006844echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6845if eval "test \"\${$as_ac_Header+set}\" = set"; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006847fi
6848echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6849echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006850else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006851 # Is the header compilable?
6852echo "$as_me:$LINENO: checking $ac_header usability" >&5
6853echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6854cat >conftest.$ac_ext <<_ACEOF
6855#line $LINENO "configure"
6856#include "confdefs.h"
6857$ac_includes_default
6858#include <$ac_header>
6859_ACEOF
6860rm -f conftest.$ac_objext
6861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6862 (eval $ac_compile) 2>&5
6863 ac_status=$?
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); } &&
6866 { ac_try='test -s conftest.$ac_objext'
6867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6868 (eval $ac_try) 2>&5
6869 ac_status=$?
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); }; }; then
6872 ac_header_compiler=yes
6873else
6874 echo "$as_me: failed program was:" >&5
6875cat conftest.$ac_ext >&5
6876ac_header_compiler=no
6877fi
6878rm -f conftest.$ac_objext conftest.$ac_ext
6879echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6880echo "${ECHO_T}$ac_header_compiler" >&6
6881
6882# Is the header present?
6883echo "$as_me:$LINENO: checking $ac_header presence" >&5
6884echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6885cat >conftest.$ac_ext <<_ACEOF
6886#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00006887#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006888#include <$ac_header>
6889_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006890if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6892 ac_status=$?
6893 egrep -v '^ *\+' conftest.er1 >conftest.err
6894 rm -f conftest.er1
6895 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006897 (exit $ac_status); } >/dev/null; then
6898 if test -s conftest.err; then
6899 ac_cpp_err=$ac_c_preproc_warn_flag
6900 else
6901 ac_cpp_err=
6902 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00006903else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006904 ac_cpp_err=yes
6905fi
6906if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006907 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006908else
6909 echo "$as_me: failed program was:" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00006910 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006911 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00006912fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006913rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006914echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6915echo "${ECHO_T}$ac_header_preproc" >&6
6916
6917# So? What about this header?
6918case $ac_header_compiler:$ac_header_preproc in
6919 yes:no )
6920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6921echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6923echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6924 no:yes )
6925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6926echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6928echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6930echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6931esac
6932echo "$as_me:$LINENO: checking for $ac_header" >&5
6933echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6934if eval "test \"\${$as_ac_Header+set}\" = set"; then
6935 echo $ECHO_N "(cached) $ECHO_C" >&6
6936else
6937 eval "$as_ac_Header=$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00006938fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006939echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006940echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006941
Patrik Stridvall24110281999-02-04 10:09:54 +00006942fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006943if test `eval echo '${'$as_ac_Header'}'` = yes; then
6944 cat >>confdefs.h <<_ACEOF
6945#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6946_ACEOF
6947
6948fi
6949
Patrik Stridvall24110281999-02-04 10:09:54 +00006950done
6951
Marcus Meissner22a969b2000-08-08 20:46:50 +00006952 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00006953 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006954
6955for ac_header in GL/glext.h
6956do
6957as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6958echo "$as_me:$LINENO: checking for $ac_header" >&5
6959echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6960if eval "test \"\${$as_ac_Header+set}\" = set"; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6962else
6963 cat >conftest.$ac_ext <<_ACEOF
6964#line $LINENO "configure"
6965#include "confdefs.h"
6966#include <GL/glx.h>
6967
6968#include <$ac_header>
6969_ACEOF
6970rm -f conftest.$ac_objext
6971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6972 (eval $ac_compile) 2>&5
6973 ac_status=$?
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } &&
6976 { ac_try='test -s conftest.$ac_objext'
6977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978 (eval $ac_try) 2>&5
6979 ac_status=$?
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); }; }; then
6982 eval "$as_ac_Header=yes"
6983else
6984 echo "$as_me: failed program was:" >&5
6985cat conftest.$ac_ext >&5
6986eval "$as_ac_Header=no"
6987fi
6988rm -f conftest.$ac_objext conftest.$ac_ext
6989fi
6990echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6991echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6992if test `eval echo '${'$as_ac_Header'}'` = yes; then
6993 cat >>confdefs.h <<_ACEOF
6994#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6995_ACEOF
6996
6997fi
6998
6999done
7000
7001 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007002echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7003if test "${wine_cv_opengl_version_OK+set}" = set; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00007005else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007006 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007007#line $LINENO "configure"
Lionel Ulmer5c085701999-02-28 19:48:53 +00007008#include "confdefs.h"
7009#include <GL/gl.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007010#ifdef F77_DUMMY_MAIN
7011# ifdef __cplusplus
7012 extern "C"
7013# endif
7014 int F77_DUMMY_MAIN() { return 1; }
7015#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007016int
7017main ()
7018{
Lionel Ulmer5c085701999-02-28 19:48:53 +00007019GLenum test = GL_UNSIGNED_SHORT_5_6_5;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007020 ;
7021 return 0;
7022}
7023_ACEOF
7024rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007026 (eval $ac_compile) 2>&5
7027 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007029 (exit $ac_status); } &&
7030 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007032 (eval $ac_try) 2>&5
7033 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007035 (exit $ac_status); }; }; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007036 wine_cv_opengl_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00007037else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007038 echo "$as_me: failed program was:" >&5
7039cat conftest.$ac_ext >&5
7040wine_cv_opengl_version_OK="no"
Lionel Ulmer5c085701999-02-28 19:48:53 +00007041
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007042fi
7043rm -f conftest.$ac_objext conftest.$ac_ext
Lionel Ulmer5c085701999-02-28 19:48:53 +00007044
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007045fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007046echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007047echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7048
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007049 echo "$as_me:$LINENO: checking for thread-safe OpenGL version" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007050echo $ECHO_N "checking for thread-safe OpenGL version... $ECHO_C" >&6
7051if test "${wine_cv_opengl_version_threadsafe+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00007053else
7054 saved_libs=$LIBS
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007055 LIBS="$X_LIBS -lGL"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007056 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007057#line $LINENO "configure"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00007058#include "confdefs.h"
7059
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007060#ifdef F77_DUMMY_MAIN
7061# ifdef __cplusplus
7062 extern "C"
7063# endif
7064 int F77_DUMMY_MAIN() { return 1; }
7065#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007066int
7067main ()
7068{
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00007069pthread_getspecific();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007070 ;
7071 return 0;
7072}
7073_ACEOF
7074rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007076 (eval $ac_link) 2>&5
7077 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007079 (exit $ac_status); } &&
7080 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007082 (eval $ac_try) 2>&5
7083 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007085 (exit $ac_status); }; }; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007086 wine_cv_opengl_version_threadsafe="yes"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00007087else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007088 echo "$as_me: failed program was:" >&5
7089cat conftest.$ac_ext >&5
7090wine_cv_opengl_version_threadsafe="no"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00007091fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007092rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007093 LIBS=$saved_libs
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007094
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00007095fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007096echo "$as_me:$LINENO: result: $wine_cv_opengl_version_threadsafe" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007097echo "${ECHO_T}$wine_cv_opengl_version_threadsafe" >&6
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00007098
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007099 if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o "x$enable_opengl" = "xyes" \)
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007100 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007101 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007102echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7103if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007105else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007106 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner376ec882000-01-05 03:24:52 +00007107LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007108cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007109#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00007110#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007111
Patrik Stridvall24110281999-02-04 10:09:54 +00007112/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007113#ifdef __cplusplus
7114extern "C"
7115#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00007116/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007117 builtin and then its argument prototype would still apply. */
7118char glXCreateContext ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007119#ifdef F77_DUMMY_MAIN
7120# ifdef __cplusplus
7121 extern "C"
7122# endif
7123 int F77_DUMMY_MAIN() { return 1; }
7124#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007125int
7126main ()
7127{
7128glXCreateContext ();
7129 ;
7130 return 0;
7131}
7132_ACEOF
7133rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007135 (eval $ac_link) 2>&5
7136 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007138 (exit $ac_status); } &&
7139 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007141 (eval $ac_try) 2>&5
7142 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007144 (exit $ac_status); }; }; then
7145 ac_cv_lib_GL_glXCreateContext=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00007146else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007147 echo "$as_me: failed program was:" >&5
7148cat conftest.$ac_ext >&5
7149ac_cv_lib_GL_glXCreateContext=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007150fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007151rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7152LIBS=$ac_check_lib_save_LIBS
Patrik Stridvall24110281999-02-04 10:09:54 +00007153fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007154echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007155echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7156if test $ac_cv_lib_GL_glXCreateContext = yes; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007157 X_PRE_LIBS="$X_PRE_LIBS -lGL"
Patrik Stridvall24110281999-02-04 10:09:54 +00007158
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007159fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007160
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007161
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00007162 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00007163 then
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00007164 OPENGLFILES='$(OPENGLFILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007165
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007166cat >>confdefs.h <<\_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00007167#define HAVE_OPENGL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007168_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00007169
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007170
7171 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007172echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7173if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7174 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007175else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007176 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007177LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007178cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007179#line $LINENO "configure"
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007180#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007181
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007182/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007183#ifdef __cplusplus
7184extern "C"
7185#endif
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007186/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007187 builtin and then its argument prototype would still apply. */
7188char glXGetProcAddressARB ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007189#ifdef F77_DUMMY_MAIN
7190# ifdef __cplusplus
7191 extern "C"
7192# endif
7193 int F77_DUMMY_MAIN() { return 1; }
7194#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007195int
7196main ()
7197{
7198glXGetProcAddressARB ();
7199 ;
7200 return 0;
7201}
7202_ACEOF
7203rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007205 (eval $ac_link) 2>&5
7206 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007208 (exit $ac_status); } &&
7209 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007211 (eval $ac_try) 2>&5
7212 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007214 (exit $ac_status); }; }; then
7215 ac_cv_lib_GL_glXGetProcAddressARB=yes
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007216else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007217 echo "$as_me: failed program was:" >&5
7218cat conftest.$ac_ext >&5
7219ac_cv_lib_GL_glXGetProcAddressARB=no
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007220fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007221rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7222LIBS=$ac_check_lib_save_LIBS
7223fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007224echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007225echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7226if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007227
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007228cat >>confdefs.h <<\_ACEOF
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007229#define HAVE_GLX_GETPROCADDRESS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007230_ACEOF
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007231
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007232fi
7233
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007234
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00007235 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007236 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007237 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007238echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7239if test "${wine_cv_extension_prototypes+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer1434d872000-07-23 14:23:31 +00007241else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007242 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007243#line $LINENO "configure"
Lionel Ulmer1434d872000-07-23 14:23:31 +00007244#include "confdefs.h"
7245#include <GL/gl.h>
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00007246 #ifdef HAVE_GL_GLEXT_H
7247 # include <GL/glext.h>
7248 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007249
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007250#ifdef F77_DUMMY_MAIN
7251# ifdef __cplusplus
7252 extern "C"
7253# endif
7254 int F77_DUMMY_MAIN() { return 1; }
7255#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007256int
7257main ()
7258{
Lionel Ulmer1434d872000-07-23 14:23:31 +00007259PFNGLCOLORTABLEEXTPROC test_proc;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007260 ;
7261 return 0;
7262}
7263_ACEOF
7264rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007266 (eval $ac_compile) 2>&5
7267 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007269 (exit $ac_status); } &&
7270 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007272 (eval $ac_try) 2>&5
7273 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007275 (exit $ac_status); }; }; then
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00007276 wine_cv_extension_prototypes="yes"
Lionel Ulmer1434d872000-07-23 14:23:31 +00007277else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007278 echo "$as_me: failed program was:" >&5
7279cat conftest.$ac_ext >&5
7280wine_cv_extension_prototypes="no"
Lionel Ulmer1434d872000-07-23 14:23:31 +00007281
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007282fi
7283rm -f conftest.$ac_objext conftest.$ac_ext
7284
7285fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007286echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007287echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00007288 if test "$wine_cv_extension_prototypes" = "yes"
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00007289 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007290
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007291cat >>confdefs.h <<\_ACEOF
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00007292#define HAVE_GLEXT_PROTOTYPES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007293_ACEOF
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00007294
7295 fi
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007296 fi
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00007297
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007298 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007299 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007300echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7301if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007303else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007304 ac_check_lib_save_LIBS=$LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007305LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
7306 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007307cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007308#line $LINENO "configure"
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007309#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007310
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007311/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007312#ifdef __cplusplus
7313extern "C"
7314#endif
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007315/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007316 builtin and then its argument prototype would still apply. */
7317char gluLookAt ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007318#ifdef F77_DUMMY_MAIN
7319# ifdef __cplusplus
7320 extern "C"
7321# endif
7322 int F77_DUMMY_MAIN() { return 1; }
7323#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007324int
7325main ()
7326{
7327gluLookAt ();
7328 ;
7329 return 0;
7330}
7331_ACEOF
7332rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007334 (eval $ac_link) 2>&5
7335 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007337 (exit $ac_status); } &&
7338 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007340 (eval $ac_try) 2>&5
7341 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007343 (exit $ac_status); }; }; then
7344 ac_cv_lib_GLU_gluLookAt=yes
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007345else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007346 echo "$as_me: failed program was:" >&5
7347cat conftest.$ac_ext >&5
7348ac_cv_lib_GLU_gluLookAt=no
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007349fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007350rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7351LIBS=$ac_check_lib_save_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007352fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007353echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007354echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7355if test $ac_cv_lib_GLU_gluLookAt = yes; then
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007356 X_PRE_LIBS="$X_PRE_LIBS -lGLU"
7357 GLU32FILES='$(GLU32FILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007358
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007359fi
7360
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007361 fi
7362 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00007363 fi
Ove Kaaven1eb593c1999-02-14 09:34:46 +00007364
7365 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvall2941a212000-04-25 20:34:22 +00007366 XFILES='$(XFILES)'
Patrik Stridvallea584721998-11-01 16:22:07 +00007367else
7368 XLIB=""
7369 X_CFLAGS=""
7370 X_LIBS=""
7371fi
Alexandre Julliard902da691995-11-05 14:39:02 +00007372
Alexandre Julliard48957682001-12-26 23:08:31 +00007373CURSESLIBS=""
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007374if test "x$with_curses" != "xno"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00007375then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007376
7377for ac_header in ncurses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00007378do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007379as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007380if eval "test \"\${$as_ac_Header+set}\" = set"; then
7381 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7383if eval "test \"\${$as_ac_Header+set}\" = set"; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007385fi
7386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7387echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007388else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007389 # Is the header compilable?
7390echo "$as_me:$LINENO: checking $ac_header usability" >&5
7391echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7392cat >conftest.$ac_ext <<_ACEOF
7393#line $LINENO "configure"
7394#include "confdefs.h"
7395$ac_includes_default
7396#include <$ac_header>
7397_ACEOF
7398rm -f conftest.$ac_objext
7399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7400 (eval $ac_compile) 2>&5
7401 ac_status=$?
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); } &&
7404 { ac_try='test -s conftest.$ac_objext'
7405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7406 (eval $ac_try) 2>&5
7407 ac_status=$?
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); }; }; then
7410 ac_header_compiler=yes
7411else
7412 echo "$as_me: failed program was:" >&5
7413cat conftest.$ac_ext >&5
7414ac_header_compiler=no
7415fi
7416rm -f conftest.$ac_objext conftest.$ac_ext
7417echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7418echo "${ECHO_T}$ac_header_compiler" >&6
7419
7420# Is the header present?
7421echo "$as_me:$LINENO: checking $ac_header presence" >&5
7422echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7423cat >conftest.$ac_ext <<_ACEOF
7424#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00007425#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007426#include <$ac_header>
7427_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007428if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7430 ac_status=$?
7431 egrep -v '^ *\+' conftest.er1 >conftest.err
7432 rm -f conftest.er1
7433 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007435 (exit $ac_status); } >/dev/null; then
7436 if test -s conftest.err; then
7437 ac_cpp_err=$ac_c_preproc_warn_flag
7438 else
7439 ac_cpp_err=
7440 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00007441else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007442 ac_cpp_err=yes
7443fi
7444if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007445 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007446else
7447 echo "$as_me: failed program was:" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00007448 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007449 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007450fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007451rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007452echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7453echo "${ECHO_T}$ac_header_preproc" >&6
7454
7455# So? What about this header?
7456case $ac_header_compiler:$ac_header_preproc in
7457 yes:no )
7458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7459echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7461echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7462 no:yes )
7463 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7464echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7465 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7466echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7468echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7469esac
7470echo "$as_me:$LINENO: checking for $ac_header" >&5
7471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7472if eval "test \"\${$as_ac_Header+set}\" = set"; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7474else
7475 eval "$as_ac_Header=$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00007476fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007477echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007478echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007479
7480fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007481if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007482 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007483#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007484_ACEOF
7485 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007486echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
7487if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007489else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007490 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007491LIBS="-lncurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007492cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007493#line $LINENO "configure"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007494#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007495
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007496/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007497#ifdef __cplusplus
7498extern "C"
7499#endif
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007500/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007501 builtin and then its argument prototype would still apply. */
7502char waddch ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007503#ifdef F77_DUMMY_MAIN
7504# ifdef __cplusplus
7505 extern "C"
7506# endif
7507 int F77_DUMMY_MAIN() { return 1; }
7508#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007509int
7510main ()
7511{
7512waddch ();
7513 ;
7514 return 0;
7515}
7516_ACEOF
7517rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007519 (eval $ac_link) 2>&5
7520 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007522 (exit $ac_status); } &&
7523 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007525 (eval $ac_try) 2>&5
7526 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007528 (exit $ac_status); }; }; then
7529 ac_cv_lib_ncurses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007530else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007531 echo "$as_me: failed program was:" >&5
7532cat conftest.$ac_ext >&5
7533ac_cv_lib_ncurses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007534fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007535rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7536LIBS=$ac_check_lib_save_LIBS
7537fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007538echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007539echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
7540if test $ac_cv_lib_ncurses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007541
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007542cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +00007543#define HAVE_LIBNCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007544_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007545
Alexandre Julliard48957682001-12-26 23:08:31 +00007546 CURSESLIBS="-lncurses"
Alexandre Julliard638f1691999-01-17 16:32:32 +00007547else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007548
7549for ac_header in curses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00007550do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007551as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007552if eval "test \"\${$as_ac_Header+set}\" = set"; then
7553 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7555if eval "test \"\${$as_ac_Header+set}\" = set"; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007557fi
7558echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7559echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007560else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007561 # Is the header compilable?
7562echo "$as_me:$LINENO: checking $ac_header usability" >&5
7563echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7564cat >conftest.$ac_ext <<_ACEOF
7565#line $LINENO "configure"
7566#include "confdefs.h"
7567$ac_includes_default
7568#include <$ac_header>
7569_ACEOF
7570rm -f conftest.$ac_objext
7571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7572 (eval $ac_compile) 2>&5
7573 ac_status=$?
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); } &&
7576 { ac_try='test -s conftest.$ac_objext'
7577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7578 (eval $ac_try) 2>&5
7579 ac_status=$?
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }; }; then
7582 ac_header_compiler=yes
7583else
7584 echo "$as_me: failed program was:" >&5
7585cat conftest.$ac_ext >&5
7586ac_header_compiler=no
7587fi
7588rm -f conftest.$ac_objext conftest.$ac_ext
7589echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7590echo "${ECHO_T}$ac_header_compiler" >&6
7591
7592# Is the header present?
7593echo "$as_me:$LINENO: checking $ac_header presence" >&5
7594echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7595cat >conftest.$ac_ext <<_ACEOF
7596#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00007597#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007598#include <$ac_header>
7599_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007600if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7602 ac_status=$?
7603 egrep -v '^ *\+' conftest.er1 >conftest.err
7604 rm -f conftest.er1
7605 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007607 (exit $ac_status); } >/dev/null; then
7608 if test -s conftest.err; then
7609 ac_cpp_err=$ac_c_preproc_warn_flag
7610 else
7611 ac_cpp_err=
7612 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00007613else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007614 ac_cpp_err=yes
7615fi
7616if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007617 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007618else
7619 echo "$as_me: failed program was:" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00007620 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007621 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007622fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007623rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007624echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7625echo "${ECHO_T}$ac_header_preproc" >&6
7626
7627# So? What about this header?
7628case $ac_header_compiler:$ac_header_preproc in
7629 yes:no )
7630 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7631echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7633echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7634 no:yes )
7635 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7636echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7637 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7638echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7640echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7641esac
7642echo "$as_me:$LINENO: checking for $ac_header" >&5
7643echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7644if eval "test \"\${$as_ac_Header+set}\" = set"; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7646else
7647 eval "$as_ac_Header=$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00007648fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007649echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007650echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007651
7652fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007653if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007654 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007655#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007656_ACEOF
7657 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007658echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
7659if test "${ac_cv_lib_curses_waddch+set}" = set; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007661else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007662 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007663LIBS="-lcurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007664cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007665#line $LINENO "configure"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007666#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007667
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007668/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007669#ifdef __cplusplus
7670extern "C"
7671#endif
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007672/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007673 builtin and then its argument prototype would still apply. */
7674char waddch ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007675#ifdef F77_DUMMY_MAIN
7676# ifdef __cplusplus
7677 extern "C"
7678# endif
7679 int F77_DUMMY_MAIN() { return 1; }
7680#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007681int
7682main ()
7683{
7684waddch ();
7685 ;
7686 return 0;
7687}
7688_ACEOF
7689rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007691 (eval $ac_link) 2>&5
7692 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007694 (exit $ac_status); } &&
7695 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007697 (eval $ac_try) 2>&5
7698 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007700 (exit $ac_status); }; }; then
7701 ac_cv_lib_curses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007702else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007703 echo "$as_me: failed program was:" >&5
7704cat conftest.$ac_ext >&5
7705ac_cv_lib_curses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007706fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007707rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7708LIBS=$ac_check_lib_save_LIBS
7709fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007710echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007711echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
7712if test $ac_cv_lib_curses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007713
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007714cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +00007715#define HAVE_LIBCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007716_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007717
Alexandre Julliard48957682001-12-26 23:08:31 +00007718 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007719fi
7720
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007721fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007722
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007723done
7724
7725fi
Alexandre Julliard48957682001-12-26 23:08:31 +00007726
Alexandre Julliard48957682001-12-26 23:08:31 +00007727fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007728
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007729done
7730
Alexandre Julliard48957682001-12-26 23:08:31 +00007731 saved_libs="$LIBS"
7732 LIBS="$CURSESLIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007733
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007734
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007735for ac_func in getbkgd resizeterm
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007736do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007737as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007738echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007739echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7740if eval "test \"\${$as_ac_var+set}\" = set"; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard638f1691999-01-17 16:32:32 +00007742else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007743 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007744#line $LINENO "configure"
Alexandre Julliard638f1691999-01-17 16:32:32 +00007745#include "confdefs.h"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007746/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007747 which can conflict with char $ac_func (); below. */
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007748#include <assert.h>
Alexandre Julliard638f1691999-01-17 16:32:32 +00007749/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007750#ifdef __cplusplus
7751extern "C"
7752#endif
Alexandre Julliard638f1691999-01-17 16:32:32 +00007753/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007754 builtin and then its argument prototype would still apply. */
7755char $ac_func ();
7756char (*f) ();
Alexandre Julliard638f1691999-01-17 16:32:32 +00007757
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007758#ifdef F77_DUMMY_MAIN
7759# ifdef __cplusplus
7760 extern "C"
7761# endif
7762 int F77_DUMMY_MAIN() { return 1; }
7763#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007764int
7765main ()
7766{
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007767/* The GNU C library defines this for functions which it implements
7768 to always fail with ENOSYS. Some functions are actually named
7769 something starting with __ and the normal name is an alias. */
7770#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7771choke me
7772#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007773f = $ac_func;
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007774#endif
7775
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007776 ;
7777 return 0;
7778}
7779_ACEOF
7780rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007782 (eval $ac_link) 2>&5
7783 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007785 (exit $ac_status); } &&
7786 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007788 (eval $ac_try) 2>&5
7789 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007791 (exit $ac_status); }; }; then
7792 eval "$as_ac_var=yes"
Alexandre Julliard638f1691999-01-17 16:32:32 +00007793else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007794 echo "$as_me: failed program was:" >&5
7795cat conftest.$ac_ext >&5
7796eval "$as_ac_var=no"
Alexandre Julliard638f1691999-01-17 16:32:32 +00007797fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007798rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard638f1691999-01-17 16:32:32 +00007799fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007800echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007801echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7802if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007803 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007804#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007805_ACEOF
Alexandre Julliard638f1691999-01-17 16:32:32 +00007806
Alexandre Julliard638f1691999-01-17 16:32:32 +00007807fi
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007808done
Alexandre Julliard638f1691999-01-17 16:32:32 +00007809
Alexandre Julliard48957682001-12-26 23:08:31 +00007810 LIBS="$saved_libs"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007811fi
7812
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007813
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007814CUPSLIBS=""
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00007815wine_cv_warn_cups_h=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007816echo "$as_me:$LINENO: checking for cupsGetPPD in -lcups" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007817echo $ECHO_N "checking for cupsGetPPD in -lcups... $ECHO_C" >&6
7818if test "${ac_cv_lib_cups_cupsGetPPD+set}" = set; then
7819 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007820else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007821 ac_check_lib_save_LIBS=$LIBS
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007822LIBS="-lcups $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007823cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007824#line $LINENO "configure"
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007825#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007826
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007827/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007828#ifdef __cplusplus
7829extern "C"
7830#endif
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007831/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007832 builtin and then its argument prototype would still apply. */
7833char cupsGetPPD ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007834#ifdef F77_DUMMY_MAIN
7835# ifdef __cplusplus
7836 extern "C"
7837# endif
7838 int F77_DUMMY_MAIN() { return 1; }
7839#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007840int
7841main ()
7842{
7843cupsGetPPD ();
7844 ;
7845 return 0;
7846}
7847_ACEOF
7848rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007850 (eval $ac_link) 2>&5
7851 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007853 (exit $ac_status); } &&
7854 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007856 (eval $ac_try) 2>&5
7857 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007859 (exit $ac_status); }; }; then
7860 ac_cv_lib_cups_cupsGetPPD=yes
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007861else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007862 echo "$as_me: failed program was:" >&5
7863cat conftest.$ac_ext >&5
7864ac_cv_lib_cups_cupsGetPPD=no
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007865fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007866rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7867LIBS=$ac_check_lib_save_LIBS
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007868fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007869echo "$as_me:$LINENO: result: $ac_cv_lib_cups_cupsGetPPD" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007870echo "${ECHO_T}$ac_cv_lib_cups_cupsGetPPD" >&6
7871if test $ac_cv_lib_cups_cupsGetPPD = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007872 if test "${ac_cv_header_cups_cups_h+set}" = set; then
7873 echo "$as_me:$LINENO: checking for cups/cups.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007874echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
7875if test "${ac_cv_header_cups_cups_h+set}" = set; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007877fi
7878echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
7879echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00007880else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007881 # Is the header compilable?
7882echo "$as_me:$LINENO: checking cups/cups.h usability" >&5
7883echo $ECHO_N "checking cups/cups.h usability... $ECHO_C" >&6
7884cat >conftest.$ac_ext <<_ACEOF
7885#line $LINENO "configure"
7886#include "confdefs.h"
7887$ac_includes_default
7888#include <cups/cups.h>
7889_ACEOF
7890rm -f conftest.$ac_objext
7891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7892 (eval $ac_compile) 2>&5
7893 ac_status=$?
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); } &&
7896 { ac_try='test -s conftest.$ac_objext'
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898 (eval $ac_try) 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; }; then
7902 ac_header_compiler=yes
7903else
7904 echo "$as_me: failed program was:" >&5
7905cat conftest.$ac_ext >&5
7906ac_header_compiler=no
7907fi
7908rm -f conftest.$ac_objext conftest.$ac_ext
7909echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7910echo "${ECHO_T}$ac_header_compiler" >&6
7911
7912# Is the header present?
7913echo "$as_me:$LINENO: checking cups/cups.h presence" >&5
7914echo $ECHO_N "checking cups/cups.h presence... $ECHO_C" >&6
7915cat >conftest.$ac_ext <<_ACEOF
7916#line $LINENO "configure"
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00007917#include "confdefs.h"
7918#include <cups/cups.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007919_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007920if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7922 ac_status=$?
7923 egrep -v '^ *\+' conftest.er1 >conftest.err
7924 rm -f conftest.er1
7925 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007927 (exit $ac_status); } >/dev/null; then
7928 if test -s conftest.err; then
7929 ac_cpp_err=$ac_c_preproc_warn_flag
7930 else
7931 ac_cpp_err=
7932 fi
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00007933else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007934 ac_cpp_err=yes
7935fi
7936if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007937 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007938else
7939 echo "$as_me: failed program was:" >&5
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00007940 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007941 ac_header_preproc=no
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00007942fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007943rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007944echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7945echo "${ECHO_T}$ac_header_preproc" >&6
7946
7947# So? What about this header?
7948case $ac_header_compiler:$ac_header_preproc in
7949 yes:no )
7950 { echo "$as_me:$LINENO: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&5
7951echo "$as_me: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7952 { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
7953echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};;
7954 no:yes )
7955 { echo "$as_me:$LINENO: WARNING: cups/cups.h: present but cannot be compiled" >&5
7956echo "$as_me: WARNING: cups/cups.h: present but cannot be compiled" >&2;}
7957 { echo "$as_me:$LINENO: WARNING: cups/cups.h: check for missing prerequisite headers?" >&5
7958echo "$as_me: WARNING: cups/cups.h: check for missing prerequisite headers?" >&2;}
7959 { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
7960echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};;
7961esac
7962echo "$as_me:$LINENO: checking for cups/cups.h" >&5
7963echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
7964if test "${ac_cv_header_cups_cups_h+set}" = set; then
7965 echo $ECHO_N "(cached) $ECHO_C" >&6
7966else
7967 ac_cv_header_cups_cups_h=$ac_header_preproc
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00007968fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007969echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007970echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007971
7972fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007973if test $ac_cv_header_cups_cups_h = yes; then
7974
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007975cat >>confdefs.h <<\_ACEOF
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007976#define HAVE_CUPS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007977_ACEOF
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007978
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00007979 CUPSLIBS="-lcups"
7980else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007981 wine_cv_warn_cups_h=yes
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00007982fi
7983
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007984
7985
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007986fi
7987
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007988
7989
Shi Quan He6b0720f2002-03-21 02:58:39 +00007990# Extract the first word of "sane-config", so it can be a program name with args.
7991set dummy sane-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007992echo "$as_me:$LINENO: checking for $ac_word" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00007993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7994if test "${ac_cv_prog_sane_devel+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7996else
7997 if test -n "$sane_devel"; then
7998 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
7999else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8001for as_dir in $PATH
8002do
8003 IFS=$as_save_IFS
8004 test -z "$as_dir" && as_dir=.
8005 for ac_exec_ext in '' $ac_executable_extensions; do
8006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8007 ac_cv_prog_sane_devel="sane-config"
8008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8009 break 2
8010 fi
8011done
Shi Quan He6b0720f2002-03-21 02:58:39 +00008012done
8013
8014 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
8015fi
8016fi
8017sane_devel=$ac_cv_prog_sane_devel
8018if test -n "$sane_devel"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008019 echo "$as_me:$LINENO: result: $sane_devel" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008020echo "${ECHO_T}$sane_devel" >&6
8021else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008022 echo "$as_me:$LINENO: result: no" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008023echo "${ECHO_T}no" >&6
8024fi
8025
8026if test "$sane_devel" = "no"
8027then
8028 SANELIBS=""
8029 SANEINCL=""
8030else
8031 SANELIBS="`$sane_devel --libs`"
8032 SANEINCL="`$sane_devel --cflags`"
8033 ac_save_CPPFLAGS="$CPPFLAGS"
8034 ac_save_LIBS="$LIBS"
8035 CPPFLAGS="$CPPFLAGS $SANEINCL"
8036 LIBS="$LIBS $SANELIBS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008037 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8038 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008039echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8040if test "${ac_cv_header_sane_sane_h+set}" = set; then
8041 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008042fi
8043echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8044echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
Shi Quan He6b0720f2002-03-21 02:58:39 +00008045else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008046 # Is the header compilable?
8047echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
8048echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
8049cat >conftest.$ac_ext <<_ACEOF
8050#line $LINENO "configure"
8051#include "confdefs.h"
8052$ac_includes_default
8053#include <sane/sane.h>
8054_ACEOF
8055rm -f conftest.$ac_objext
8056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8057 (eval $ac_compile) 2>&5
8058 ac_status=$?
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } &&
8061 { ac_try='test -s conftest.$ac_objext'
8062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8063 (eval $ac_try) 2>&5
8064 ac_status=$?
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); }; }; then
8067 ac_header_compiler=yes
8068else
8069 echo "$as_me: failed program was:" >&5
8070cat conftest.$ac_ext >&5
8071ac_header_compiler=no
8072fi
8073rm -f conftest.$ac_objext conftest.$ac_ext
8074echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8075echo "${ECHO_T}$ac_header_compiler" >&6
8076
8077# Is the header present?
8078echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
8079echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
8080cat >conftest.$ac_ext <<_ACEOF
8081#line $LINENO "configure"
Shi Quan He6b0720f2002-03-21 02:58:39 +00008082#include "confdefs.h"
8083#include <sane/sane.h>
8084_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8087 ac_status=$?
8088 egrep -v '^ *\+' conftest.er1 >conftest.err
8089 rm -f conftest.er1
8090 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008092 (exit $ac_status); } >/dev/null; then
8093 if test -s conftest.err; then
8094 ac_cpp_err=$ac_c_preproc_warn_flag
8095 else
8096 ac_cpp_err=
8097 fi
8098else
8099 ac_cpp_err=yes
8100fi
8101if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008102 ac_header_preproc=yes
Shi Quan He6b0720f2002-03-21 02:58:39 +00008103else
8104 echo "$as_me: failed program was:" >&5
8105 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008106 ac_header_preproc=no
Shi Quan He6b0720f2002-03-21 02:58:39 +00008107fi
8108rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008109echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8110echo "${ECHO_T}$ac_header_preproc" >&6
8111
8112# So? What about this header?
8113case $ac_header_compiler:$ac_header_preproc in
8114 yes:no )
8115 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
8116echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8117 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8118echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8119 no:yes )
8120 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
8121echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
8122 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
8123echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
8124 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8125echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8126esac
8127echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8128echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8129if test "${ac_cv_header_sane_sane_h+set}" = set; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
8131else
8132 ac_cv_header_sane_sane_h=$ac_header_preproc
Shi Quan He6b0720f2002-03-21 02:58:39 +00008133fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008134echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008135echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008136
8137fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00008138if test $ac_cv_header_sane_sane_h = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008139 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008140echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
8141if test "${ac_cv_lib_sane_sane_open+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8143else
8144 ac_check_lib_save_LIBS=$LIBS
8145LIBS="-lsane $LIBS"
8146cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008147#line $LINENO "configure"
Shi Quan He6b0720f2002-03-21 02:58:39 +00008148#include "confdefs.h"
8149
8150/* Override any gcc2 internal prototype to avoid an error. */
8151#ifdef __cplusplus
8152extern "C"
8153#endif
8154/* We use char because int might match the return type of a gcc2
8155 builtin and then its argument prototype would still apply. */
8156char sane_open ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008157#ifdef F77_DUMMY_MAIN
8158# ifdef __cplusplus
8159 extern "C"
8160# endif
8161 int F77_DUMMY_MAIN() { return 1; }
8162#endif
Shi Quan He6b0720f2002-03-21 02:58:39 +00008163int
8164main ()
8165{
8166sane_open ();
8167 ;
8168 return 0;
8169}
8170_ACEOF
8171rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008173 (eval $ac_link) 2>&5
8174 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008176 (exit $ac_status); } &&
8177 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008179 (eval $ac_try) 2>&5
8180 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008182 (exit $ac_status); }; }; then
8183 ac_cv_lib_sane_sane_open=yes
8184else
8185 echo "$as_me: failed program was:" >&5
8186cat conftest.$ac_ext >&5
8187ac_cv_lib_sane_sane_open=no
8188fi
8189rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8190LIBS=$ac_check_lib_save_LIBS
8191fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008192echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008193echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
8194if test $ac_cv_lib_sane_sane_open = yes; then
8195
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008196cat >>confdefs.h <<\_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00008197#define HAVE_SANE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008198_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00008199
8200else
8201 SANELIBS=""
Alexandre Julliard96328b32002-03-31 19:23:41 +00008202 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +00008203fi
8204
Alexandre Julliard96328b32002-03-31 19:23:41 +00008205else
8206 SANELIBS=""
8207 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +00008208fi
8209
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008210
Shi Quan He6b0720f2002-03-21 02:58:39 +00008211 LIBS="$ac_save_LIBS"
8212 CPPFLAGS="$ac_save_CPPFLAGS"
8213fi
8214
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008215
8216
8217echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008218echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8219if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8220 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00008221else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008222 ac_check_lib_save_LIBS=$LIBS
Dmitry Timoshkov8871a112001-11-06 22:26:53 +00008223LIBS="-lfreetype $X_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008224cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008225#line $LINENO "configure"
Ian Pilcher563598d2001-05-16 20:56:05 +00008226#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008227
Ian Pilcher563598d2001-05-16 20:56:05 +00008228/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008229#ifdef __cplusplus
8230extern "C"
8231#endif
Ian Pilcher563598d2001-05-16 20:56:05 +00008232/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008233 builtin and then its argument prototype would still apply. */
8234char FT_Init_FreeType ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008235#ifdef F77_DUMMY_MAIN
8236# ifdef __cplusplus
8237 extern "C"
8238# endif
8239 int F77_DUMMY_MAIN() { return 1; }
8240#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008241int
8242main ()
8243{
8244FT_Init_FreeType ();
8245 ;
8246 return 0;
8247}
8248_ACEOF
8249rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008251 (eval $ac_link) 2>&5
8252 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008254 (exit $ac_status); } &&
8255 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008257 (eval $ac_try) 2>&5
8258 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008260 (exit $ac_status); }; }; then
8261 ac_cv_lib_freetype_FT_Init_FreeType=yes
Ian Pilcher563598d2001-05-16 20:56:05 +00008262else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008263 echo "$as_me: failed program was:" >&5
8264cat conftest.$ac_ext >&5
8265ac_cv_lib_freetype_FT_Init_FreeType=no
Ian Pilcher563598d2001-05-16 20:56:05 +00008266fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008267rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8268LIBS=$ac_check_lib_save_LIBS
Ian Pilcher563598d2001-05-16 20:56:05 +00008269fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008270echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008271echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8272if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
Ian Pilcher563598d2001-05-16 20:56:05 +00008273 ft_lib=yes
8274else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008275 ft_lib=no
Ian Pilcher563598d2001-05-16 20:56:05 +00008276fi
8277
8278if test "$ft_lib" = "no"
8279then
Ian Pilcher563598d2001-05-16 20:56:05 +00008280 FREETYPEINCL=""
8281 wine_cv_msg_freetype=no
8282else
8283 # Extract the first word of "freetype-config", so it can be a program name with args.
8284set dummy freetype-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008285echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8287if test "${ac_cv_prog_ft_devel+set}" = set; then
8288 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00008289else
8290 if test -n "$ft_devel"; then
8291 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
8292else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8294for as_dir in $PATH
8295do
8296 IFS=$as_save_IFS
8297 test -z "$as_dir" && as_dir=.
8298 for ac_exec_ext in '' $ac_executable_extensions; do
8299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8300 ac_cv_prog_ft_devel="freetype-config"
8301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8302 break 2
8303 fi
8304done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008305done
8306
Ian Pilcher563598d2001-05-16 20:56:05 +00008307 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
8308fi
8309fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008310ft_devel=$ac_cv_prog_ft_devel
Ian Pilcher563598d2001-05-16 20:56:05 +00008311if test -n "$ft_devel"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008312 echo "$as_me:$LINENO: result: $ft_devel" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008313echo "${ECHO_T}$ft_devel" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00008314else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008315 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008316echo "${ECHO_T}no" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00008317fi
8318
8319 if test "$ft_devel" = "no"
8320 then
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008321 # Extract the first word of "freetype2-config", so it can be a program name with args.
8322set dummy freetype2-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008323echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8325if test "${ac_cv_prog_ft_devel2+set}" = set; then
8326 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008327else
8328 if test -n "$ft_devel2"; then
8329 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
8330else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8332for as_dir in $PATH
8333do
8334 IFS=$as_save_IFS
8335 test -z "$as_dir" && as_dir=.
8336 for ac_exec_ext in '' $ac_executable_extensions; do
8337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8338 ac_cv_prog_ft_devel2="freetype2-config"
8339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8340 break 2
8341 fi
8342done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008343done
8344
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008345 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
8346fi
8347fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008348ft_devel2=$ac_cv_prog_ft_devel2
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008349if test -n "$ft_devel2"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008350 echo "$as_me:$LINENO: result: $ft_devel2" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008351echo "${ECHO_T}$ft_devel2" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008352else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008353 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008354echo "${ECHO_T}no" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008355fi
8356
8357 if test "$ft_devel2" = "freetype2-config"
8358 then
8359 ft_devel=$ft_devel2
8360 fi
8361 fi
8362 if test "$ft_devel" = "no"
8363 then
Ian Pilcher563598d2001-05-16 20:56:05 +00008364 FREETYPEINCL=""
8365 wine_cv_msg_freetype=yes
8366 else
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008367 FREETYPEINCL=`$ft_devel --cflags`
Ian Pilcher40432fe2001-06-06 21:05:23 +00008368 ac_save_CPPFLAGS="$CPPFLAGS"
8369 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008370
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008371
8372
8373
8374
8375
8376
8377
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008378for ac_header in freetype/freetype.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +00008379 freetype/ftglyph.h \
8380 freetype/tttables.h \
8381 freetype/ftnames.h \
8382 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +00008383 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +00008384 freetype/ftoutln.h \
8385 freetype/internal/sfnt.h
Ian Pilcher40432fe2001-06-06 21:05:23 +00008386do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008387as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008388if eval "test \"\${$as_ac_Header+set}\" = set"; then
8389 echo "$as_me:$LINENO: checking for $ac_header" >&5
8390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8391if eval "test \"\${$as_ac_Header+set}\" = set"; then
8392 echo $ECHO_N "(cached) $ECHO_C" >&6
8393fi
8394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8395echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8396else
8397 # Is the header compilable?
8398echo "$as_me:$LINENO: checking $ac_header usability" >&5
8399echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8400cat >conftest.$ac_ext <<_ACEOF
8401#line $LINENO "configure"
8402#include "confdefs.h"
8403$ac_includes_default
8404#include <$ac_header>
8405_ACEOF
8406rm -f conftest.$ac_objext
8407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8408 (eval $ac_compile) 2>&5
8409 ac_status=$?
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); } &&
8412 { ac_try='test -s conftest.$ac_objext'
8413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414 (eval $ac_try) 2>&5
8415 ac_status=$?
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); }; }; then
8418 ac_header_compiler=yes
8419else
8420 echo "$as_me: failed program was:" >&5
8421cat conftest.$ac_ext >&5
8422ac_header_compiler=no
8423fi
8424rm -f conftest.$ac_objext conftest.$ac_ext
8425echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8426echo "${ECHO_T}$ac_header_compiler" >&6
8427
8428# Is the header present?
8429echo "$as_me:$LINENO: checking $ac_header presence" >&5
8430echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8431cat >conftest.$ac_ext <<_ACEOF
8432#line $LINENO "configure"
8433#include "confdefs.h"
8434#include <$ac_header>
8435_ACEOF
8436if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8438 ac_status=$?
8439 egrep -v '^ *\+' conftest.er1 >conftest.err
8440 rm -f conftest.er1
8441 cat conftest.err >&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); } >/dev/null; then
8444 if test -s conftest.err; then
8445 ac_cpp_err=$ac_c_preproc_warn_flag
8446 else
8447 ac_cpp_err=
8448 fi
8449else
8450 ac_cpp_err=yes
8451fi
8452if test -z "$ac_cpp_err"; then
8453 ac_header_preproc=yes
8454else
8455 echo "$as_me: failed program was:" >&5
8456 cat conftest.$ac_ext >&5
8457 ac_header_preproc=no
8458fi
8459rm -f conftest.err conftest.$ac_ext
8460echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8461echo "${ECHO_T}$ac_header_preproc" >&6
8462
8463# So? What about this header?
8464case $ac_header_compiler:$ac_header_preproc in
8465 yes:no )
8466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8467echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8469echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8470 no:yes )
8471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8472echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8474echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8476echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8477esac
8478echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8480if eval "test \"\${$as_ac_Header+set}\" = set"; then
8481 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher40432fe2001-06-06 21:05:23 +00008482else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008483 eval "$as_ac_Header=$ac_header_preproc"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008484fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008485echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008486echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008487
Ian Pilcher40432fe2001-06-06 21:05:23 +00008488fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008489if test `eval echo '${'$as_ac_Header'}'` = yes; then
8490 cat >>confdefs.h <<_ACEOF
8491#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8492_ACEOF
8493
8494fi
8495
Ian Pilcher40432fe2001-06-06 21:05:23 +00008496done
8497
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008498 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008499#line $LINENO "configure"
Alexandre Julliard18d75732002-01-29 03:02:50 +00008500#include "confdefs.h"
8501#include <ft2build.h>
8502 #include <freetype/fttrigon.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008503_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008504if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8506 ac_status=$?
8507 egrep -v '^ *\+' conftest.er1 >conftest.err
8508 rm -f conftest.er1
8509 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008511 (exit $ac_status); } >/dev/null; then
8512 if test -s conftest.err; then
8513 ac_cpp_err=$ac_c_preproc_warn_flag
8514 else
8515 ac_cpp_err=
8516 fi
8517else
8518 ac_cpp_err=yes
8519fi
8520if test -z "$ac_cpp_err"; then
8521
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008522cat >>confdefs.h <<\_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00008523#define HAVE_FREETYPE_FTTRIGON_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008524_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00008525
Huw D M Daviesc1d38132002-02-08 17:09:50 +00008526 wine_cv_fttrigon=yes
Alexandre Julliard18d75732002-01-29 03:02:50 +00008527else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008528 echo "$as_me: failed program was:" >&5
Alexandre Julliard18d75732002-01-29 03:02:50 +00008529 cat conftest.$ac_ext >&5
Huw D M Daviesc1d38132002-02-08 17:09:50 +00008530 wine_cv_fttrigon=no
Alexandre Julliard18d75732002-01-29 03:02:50 +00008531fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008532rm -f conftest.err conftest.$ac_ext
Ian Pilcher40432fe2001-06-06 21:05:23 +00008533 CPPFLAGS="$ac_save_CPPFLAGS"
Huw D M Daviesc1d38132002-02-08 17:09:50 +00008534 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
Huw D M Davies9b1d3722002-01-29 17:09:28 +00008535 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008536
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008537cat >>confdefs.h <<\_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +00008538#define HAVE_FREETYPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008539_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +00008540
8541 wine_cv_msg_freetype=no
8542 else
Huw D M Davies9b1d3722002-01-29 17:09:28 +00008543 FREETYPEINCL=""
8544 wine_cv_msg_freetype=yes
8545 fi
Ian Pilcher563598d2001-05-16 20:56:05 +00008546 fi
8547fi
8548
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008549
8550echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008551echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
8552if test "${ac_cv_c_ppdev+set}" = set; then
8553 echo $ECHO_N "(cached) $ECHO_C" >&6
Pavel Roskin94d99641998-12-26 11:52:51 +00008554else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008555 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008556#line $LINENO "configure"
Pavel Roskin94d99641998-12-26 11:52:51 +00008557#include "confdefs.h"
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008558#include <linux/ppdev.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008559#ifdef F77_DUMMY_MAIN
8560# ifdef __cplusplus
8561 extern "C"
8562# endif
8563 int F77_DUMMY_MAIN() { return 1; }
8564#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008565int
8566main ()
8567{
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008568ioctl (1,PPCLAIM,0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008569 ;
8570 return 0;
8571}
8572_ACEOF
8573rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008575 (eval $ac_compile) 2>&5
8576 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008578 (exit $ac_status); } &&
8579 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008581 (eval $ac_try) 2>&5
8582 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008584 (exit $ac_status); }; }; then
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008585 ac_cv_c_ppdev="yes"
8586else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008587 echo "$as_me: failed program was:" >&5
8588cat conftest.$ac_ext >&5
8589ac_cv_c_ppdev="no"
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008590fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008591rm -f conftest.$ac_objext conftest.$ac_ext
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008592
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008593fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008594echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008595echo "${ECHO_T}$ac_cv_c_ppdev" >&6
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008596if test "$ac_cv_c_ppdev" = "yes"
8597then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008598
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008599cat >>confdefs.h <<\_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008600#define HAVE_PPDEV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008601_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008602
8603fi
8604
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008605echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008606echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
8607if test "${ac_cv_c_ipx_gnu+set}" = set; then
8608 echo $ECHO_N "(cached) $ECHO_C" >&6
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008609else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008610 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008611#line $LINENO "configure"
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008612#include "confdefs.h"
Pavel Roskin94d99641998-12-26 11:52:51 +00008613#include <sys/socket.h>
8614 #include <netipx/ipx.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008615#ifdef F77_DUMMY_MAIN
8616# ifdef __cplusplus
8617 extern "C"
8618# endif
8619 int F77_DUMMY_MAIN() { return 1; }
8620#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008621int
8622main ()
8623{
Pavel Roskin94d99641998-12-26 11:52:51 +00008624((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008625 ;
8626 return 0;
8627}
8628_ACEOF
8629rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008631 (eval $ac_compile) 2>&5
8632 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008634 (exit $ac_status); } &&
8635 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008637 (eval $ac_try) 2>&5
8638 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008640 (exit $ac_status); }; }; then
Aaron Hopec23872d2000-01-15 23:43:21 +00008641 ac_cv_c_ipx_gnu="yes"
Pavel Roskin94d99641998-12-26 11:52:51 +00008642else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008643 echo "$as_me: failed program was:" >&5
8644cat conftest.$ac_ext >&5
8645ac_cv_c_ipx_gnu="no"
Pavel Roskin94d99641998-12-26 11:52:51 +00008646fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008647rm -f conftest.$ac_objext conftest.$ac_ext
Pavel Roskin94d99641998-12-26 11:52:51 +00008648
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008649fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008650echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008651echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
Aaron Hopec23872d2000-01-15 23:43:21 +00008652if test "$ac_cv_c_ipx_gnu" = "yes"
8653then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008654
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008655cat >>confdefs.h <<\_ACEOF
Aaron Hopec23872d2000-01-15 23:43:21 +00008656#define HAVE_IPX_GNU 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008657_ACEOF
Aaron Hopec23872d2000-01-15 23:43:21 +00008658
8659fi
Pavel Roskin94d99641998-12-26 11:52:51 +00008660
8661if test "$ac_cv_c_ipx_gnu" = "no"
8662then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008663 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008664echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
8665if test "${ac_cv_c_ipx_linux+set}" = set; then
8666 echo $ECHO_N "(cached) $ECHO_C" >&6
Pavel Roskin94d99641998-12-26 11:52:51 +00008667else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008668 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008669#line $LINENO "configure"
Pavel Roskin94d99641998-12-26 11:52:51 +00008670#include "confdefs.h"
8671#include <sys/socket.h>
8672 #include <asm/types.h>
8673 #include <linux/ipx.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008674#ifdef F77_DUMMY_MAIN
8675# ifdef __cplusplus
8676 extern "C"
8677# endif
8678 int F77_DUMMY_MAIN() { return 1; }
8679#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008680int
8681main ()
8682{
Pavel Roskin94d99641998-12-26 11:52:51 +00008683((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008684 ;
8685 return 0;
8686}
8687_ACEOF
8688rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008690 (eval $ac_compile) 2>&5
8691 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008693 (exit $ac_status); } &&
8694 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008696 (eval $ac_try) 2>&5
8697 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008699 (exit $ac_status); }; }; then
Aaron Hopec23872d2000-01-15 23:43:21 +00008700 ac_cv_c_ipx_linux="yes"
Pavel Roskin94d99641998-12-26 11:52:51 +00008701else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008702 echo "$as_me: failed program was:" >&5
8703cat conftest.$ac_ext >&5
8704ac_cv_c_ipx_linux="no"
Pavel Roskin94d99641998-12-26 11:52:51 +00008705fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008706rm -f conftest.$ac_objext conftest.$ac_ext
Pavel Roskin94d99641998-12-26 11:52:51 +00008707
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008708fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008709echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008710echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
Aaron Hopec23872d2000-01-15 23:43:21 +00008711 if test "$ac_cv_c_ipx_linux" = "yes"
8712 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008713
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008714cat >>confdefs.h <<\_ACEOF
Aaron Hopec23872d2000-01-15 23:43:21 +00008715#define HAVE_IPX_LINUX 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008716_ACEOF
Aaron Hopec23872d2000-01-15 23:43:21 +00008717
8718 fi
Pavel Roskin94d99641998-12-26 11:52:51 +00008719fi
8720
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008721
8722
8723
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008724for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008725do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008726as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008727if eval "test \"\${$as_ac_Header+set}\" = set"; then
8728 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008729echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8730if eval "test \"\${$as_ac_Header+set}\" = set"; then
8731 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008732fi
8733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8734echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008735else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008736 # Is the header compilable?
8737echo "$as_me:$LINENO: checking $ac_header usability" >&5
8738echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8739cat >conftest.$ac_ext <<_ACEOF
8740#line $LINENO "configure"
8741#include "confdefs.h"
8742$ac_includes_default
8743#include <$ac_header>
8744_ACEOF
8745rm -f conftest.$ac_objext
8746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8747 (eval $ac_compile) 2>&5
8748 ac_status=$?
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); } &&
8751 { ac_try='test -s conftest.$ac_objext'
8752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753 (eval $ac_try) 2>&5
8754 ac_status=$?
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); }; }; then
8757 ac_header_compiler=yes
8758else
8759 echo "$as_me: failed program was:" >&5
8760cat conftest.$ac_ext >&5
8761ac_header_compiler=no
8762fi
8763rm -f conftest.$ac_objext conftest.$ac_ext
8764echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8765echo "${ECHO_T}$ac_header_compiler" >&6
8766
8767# Is the header present?
8768echo "$as_me:$LINENO: checking $ac_header presence" >&5
8769echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8770cat >conftest.$ac_ext <<_ACEOF
8771#line $LINENO "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008772#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008773#include <$ac_header>
8774_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008775if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8777 ac_status=$?
8778 egrep -v '^ *\+' conftest.er1 >conftest.err
8779 rm -f conftest.er1
8780 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008782 (exit $ac_status); } >/dev/null; then
8783 if test -s conftest.err; then
8784 ac_cpp_err=$ac_c_preproc_warn_flag
8785 else
8786 ac_cpp_err=
8787 fi
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008788else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008789 ac_cpp_err=yes
8790fi
8791if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008792 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008793else
8794 echo "$as_me: failed program was:" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008795 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008796 ac_header_preproc=no
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008797fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008798rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008799echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8800echo "${ECHO_T}$ac_header_preproc" >&6
8801
8802# So? What about this header?
8803case $ac_header_compiler:$ac_header_preproc in
8804 yes:no )
8805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8806echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8808echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8809 no:yes )
8810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8811echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8813echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8815echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8816esac
8817echo "$as_me:$LINENO: checking for $ac_header" >&5
8818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8819if eval "test \"\${$as_ac_Header+set}\" = set"; then
8820 echo $ECHO_N "(cached) $ECHO_C" >&6
8821else
8822 eval "$as_ac_Header=$ac_header_preproc"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008823fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008824echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008825echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008826
8827fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008828if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008829 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008830#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008831_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00008832 break
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008833fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008834
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008835done
8836
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008837
8838echo "$as_me:$LINENO: checking for Open Sound System" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008839echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
8840if test "${ac_cv_c_opensoundsystem+set}" = set; then
8841 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008842else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008843 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008844#line $LINENO "configure"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008845#include "confdefs.h"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008846
Todd Vierlingecc76691998-12-15 17:49:02 +00008847 #if defined(HAVE_SYS_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008848 #include <sys/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00008849 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008850 #include <machine/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00008851 #elif defined(HAVE_SOUNDCARD_H)
8852 #include <soundcard.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008853 #endif
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008854
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008855#ifdef F77_DUMMY_MAIN
8856# ifdef __cplusplus
8857 extern "C"
8858# endif
8859 int F77_DUMMY_MAIN() { return 1; }
8860#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008861int
8862main ()
8863{
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008864
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008865
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00008866/* check for one of the Open Sound System specific SNDCTL_ defines */
8867#if !defined(SNDCTL_DSP_STEREO)
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008868#error No open sound system
8869#endif
8870
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008871 ;
8872 return 0;
8873}
8874_ACEOF
8875rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008877 (eval $ac_compile) 2>&5
8878 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008880 (exit $ac_status); } &&
8881 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008883 (eval $ac_try) 2>&5
8884 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008886 (exit $ac_status); }; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008887 ac_cv_c_opensoundsystem="yes"
8888else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008889 echo "$as_me: failed program was:" >&5
8890cat conftest.$ac_ext >&5
8891ac_cv_c_opensoundsystem="no"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008892fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008893rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008894fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008895echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008896echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008897
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00008898if test "$ac_cv_c_opensoundsystem" = "yes"
8899then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008900
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008901cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00008902#define HAVE_OSS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008903_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00008904
8905fi
8906
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008907echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008908echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
8909if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
8910 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +00008911else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008912 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008913#line $LINENO "configure"
Eric Pouech338d3b21999-05-22 18:52:21 +00008914#include "confdefs.h"
8915
8916 #if defined(HAVE_SYS_SOUNDCARD_H)
8917 #include <sys/soundcard.h>
8918 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
8919 #include <machine/soundcard.h>
8920 #elif defined(HAVE_SOUNDCARD_H)
8921 #include <soundcard.h>
8922 #endif
Eric Pouech338d3b21999-05-22 18:52:21 +00008923
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008924#ifdef F77_DUMMY_MAIN
8925# ifdef __cplusplus
8926 extern "C"
8927# endif
8928 int F77_DUMMY_MAIN() { return 1; }
8929#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008930int
8931main ()
8932{
Eric Pouech338d3b21999-05-22 18:52:21 +00008933
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008934
Eric Pouech338d3b21999-05-22 18:52:21 +00008935/* check for one of the Open Sound System specific SNDCTL_SEQ defines */
8936#if !defined(SNDCTL_SEQ_SYNC)
8937#error No open sound system MIDI interface
8938#endif
8939
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008940 ;
8941 return 0;
8942}
8943_ACEOF
8944rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008946 (eval $ac_compile) 2>&5
8947 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008949 (exit $ac_status); } &&
8950 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008952 (eval $ac_try) 2>&5
8953 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008955 (exit $ac_status); }; }; then
Eric Pouech338d3b21999-05-22 18:52:21 +00008956 ac_cv_c_opensoundsystem_midi="yes"
8957else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008958 echo "$as_me: failed program was:" >&5
8959cat conftest.$ac_ext >&5
8960ac_cv_c_opensoundsystem_midi="no"
Eric Pouech338d3b21999-05-22 18:52:21 +00008961fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008962rm -f conftest.$ac_objext conftest.$ac_ext
Eric Pouech338d3b21999-05-22 18:52:21 +00008963fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008964echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008965echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +00008966
8967if test "$ac_cv_c_opensoundsystem_midi" = "yes"
8968then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008969
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008970cat >>confdefs.h <<\_ACEOF
Eric Pouech338d3b21999-05-22 18:52:21 +00008971#define HAVE_OSS_MIDI 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008972_ACEOF
Eric Pouech338d3b21999-05-22 18:52:21 +00008973
8974fi
8975
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00008976# Extract the first word of "artsc-config", so it can be a program name with args.
8977set dummy artsc-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008978echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00008979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8980if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8982else
8983 case $ARTSCCONFIG in
8984 [\\/]* | ?:[\\/]*)
8985 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
8986 ;;
8987 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8989for as_dir in $PATH
8990do
8991 IFS=$as_save_IFS
8992 test -z "$as_dir" && as_dir=.
8993 for ac_exec_ext in '' $ac_executable_extensions; do
8994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8995 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
8996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8997 break 2
8998 fi
8999done
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009000done
9001
9002 ;;
9003esac
9004fi
9005ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
9006
9007if test -n "$ARTSCCONFIG"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009008 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009009echo "${ECHO_T}$ARTSCCONFIG" >&6
9010else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009011 echo "$as_me:$LINENO: result: no" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009012echo "${ECHO_T}no" >&6
9013fi
9014
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009015echo "$as_me:$LINENO: checking for aRts Sound server" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009016echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
9017if test "${ac_cv_c_artsserver+set}" = set; then
9018 echo $ECHO_N "(cached) $ECHO_C" >&6
9019else
9020 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
9021 then
9022 ac_cv_c_artsserver=no
9023 else
9024 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
9025 ARTSC_LIBS=`$ARTSCCONFIG --libs`
9026 ac_cv_c_artsserver=no
9027 save_CFLAGS="$CFLAGS"
9028 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
9029 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009030#line $LINENO "configure"
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009031#include "confdefs.h"
9032
9033 #include <artsc.h>
9034
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009035#ifdef F77_DUMMY_MAIN
9036# ifdef __cplusplus
9037 extern "C"
9038# endif
9039 int F77_DUMMY_MAIN() { return 1; }
9040#endif
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009041int
9042main ()
9043{
9044
9045 arts_stream_t stream;
9046
9047 ;
9048 return 0;
9049}
9050_ACEOF
9051rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009053 (eval $ac_compile) 2>&5
9054 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009056 (exit $ac_status); } &&
9057 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009059 (eval $ac_try) 2>&5
9060 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009062 (exit $ac_status); }; }; then
9063
9064 ac_cv_c_artsserver=yes
9065
9066else
9067 echo "$as_me: failed program was:" >&5
9068cat conftest.$ac_ext >&5
9069fi
9070rm -f conftest.$ac_objext conftest.$ac_ext
9071 CFLAGS="$save_CFLAGS"
9072 fi
9073fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009074echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009075echo "${ECHO_T}$ac_cv_c_artsserver" >&6
9076
9077if test "$ac_cv_c_artsserver" = "yes"
9078then
9079 ARTSLIBS=$ARTSC_LIBS
9080
9081 ARTSINCL=$ARTSC_CFLAGS
9082
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009083
9084
9085cat >>confdefs.h <<\_ACEOF
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009086#define HAVE_ARTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009087_ACEOF
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009088
9089fi
9090
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009091
9092echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009093echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
9094if test "${ac_cv_mmap64_works+set}" = set; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009096else
9097 if test "$cross_compiling" = yes; then
9098 ac_cv_mmap64_works="no"
9099else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009100 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009101#line $LINENO "configure"
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009102#include "confdefs.h"
9103
9104 #define _FILE_OFFSET_BITS 64
9105 #include <stdio.h>
9106 #include <unistd.h>
9107 #include <fcntl.h>
9108 #include <sys/mman.h>
9109 #include <errno.h>
9110
9111 int main(int argc,char **argv) {
9112 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
9113 if (fd == -1) exit(1);
9114
9115 unlink("conftest.map");
9116
9117 write(fd,"test",4);
9118
9119 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
9120 (errno == EINVAL)
9121 ) {
9122 exit(1);
9123 }
9124 close(fd);
9125 fprintf(stderr,"success!\n");
9126 exit(0);
9127 }
9128
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009129
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009130_ACEOF
9131rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009133 (eval $ac_link) 2>&5
9134 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009138 (eval $ac_try) 2>&5
9139 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009141 (exit $ac_status); }; }; then
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009142 ac_cv_mmap64_works="yes"
9143else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009144 echo "$as_me: program exited with status $ac_status" >&5
9145echo "$as_me: failed program was:" >&5
9146cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009147( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009148ac_cv_mmap64_works="no"
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009149fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009150rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009151fi
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009152fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009153echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009154echo "${ECHO_T}$ac_cv_mmap64_works" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009155
9156if test "$ac_cv_mmap64_works" = "yes"
9157then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009158
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009159cat >>confdefs.h <<\_ACEOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009160#define _FILE_OFFSET_BITS 64
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009161_ACEOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009162
9163fi
9164
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009165
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009166if test "x${GCC}" = "xyes"
9167then
9168 CFLAGS="$CFLAGS -Wall"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009169 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009170echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
9171if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009173else
9174 if test "$cross_compiling" = yes; then
9175 ac_cv_c_gcc_strength_bug="yes"
9176else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009177 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009178#line $LINENO "configure"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009179#include "confdefs.h"
9180
Eric Pouech5aee80f2000-11-11 00:31:39 +00009181int L[4] = {0,1,2,3};
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009182int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +00009183 static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009184 unsigned int B = 3;
9185 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +00009186 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +00009187 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
9188 L[i] = 4;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009189
Eric Pouech5aee80f2000-11-11 00:31:39 +00009190 exit( Array[1] != -2 || L[2] != 3);
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009191}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009192_ACEOF
9193rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009195 (eval $ac_link) 2>&5
9196 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009200 (eval $ac_try) 2>&5
9201 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009203 (exit $ac_status); }; }; then
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009204 ac_cv_c_gcc_strength_bug="no"
9205else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009206 echo "$as_me: program exited with status $ac_status" >&5
9207echo "$as_me: failed program was:" >&5
9208cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009209( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009210ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009211fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009212rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009213fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009214fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009215echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009216echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009217 if test "$ac_cv_c_gcc_strength_bug" = "yes"
9218 then
9219 CFLAGS="$CFLAGS -fno-strength-reduce"
9220 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009221
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009222 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009223echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
9224if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
9225 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009226else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009227 ac_wine_try_cflags_saved=$CFLAGS
9228CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9229cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009230#line $LINENO "configure"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009231#include "confdefs.h"
9232
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009233#ifdef F77_DUMMY_MAIN
9234# ifdef __cplusplus
9235 extern "C"
9236# endif
9237 int F77_DUMMY_MAIN() { return 1; }
9238#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009239int
9240main ()
9241{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009242
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009243 ;
9244 return 0;
9245}
9246_ACEOF
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009247rm -f conftest.$ac_objext conftest$ac_exeext
9248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9249 (eval $ac_link) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009250 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009252 (exit $ac_status); } &&
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009253 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009255 (eval $ac_try) 2>&5
9256 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009258 (exit $ac_status); }; }; then
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009259 ac_cv_c_gcc_stack_boundary="yes"
9260else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009261 echo "$as_me: failed program was:" >&5
9262cat conftest.$ac_ext >&5
9263ac_cv_c_gcc_stack_boundary="no"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009264fi
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009265rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9266CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009267fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009268echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009269echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009270 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
9271 then
9272 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9273 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009274fi
9275
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009276
9277echo "$as_me:$LINENO: checking whether .type must sit inside a .def directive" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009278echo $ECHO_N "checking whether .type must sit inside a .def directive... $ECHO_C" >&6
9279if test "${ac_cv_c_type_in_def+set}" = set; then
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009281else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009282 ac_try_asm_link_saved_libs=$LIBS
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009283LIBS="conftest_asm.s $LIBS"
9284cat > conftest_asm.s <<EOF
9285 .globl _ac_test
9286 .def _ac_test; .scl 2; .type 32; .endef
9287_ac_test:
9288 .long 0
9289EOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009290cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009291#line $LINENO "configure"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009292#include "confdefs.h"
9293
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009294#ifdef F77_DUMMY_MAIN
9295# ifdef __cplusplus
9296 extern "C"
9297# endif
9298 int F77_DUMMY_MAIN() { return 1; }
9299#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009300int
9301main ()
9302{
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009303
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009304 ;
9305 return 0;
9306}
9307_ACEOF
9308rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009310 (eval $ac_link) 2>&5
9311 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009313 (exit $ac_status); } &&
9314 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009316 (eval $ac_try) 2>&5
9317 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009319 (exit $ac_status); }; }; then
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009320 ac_cv_c_type_in_def="yes"
9321else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009322 echo "$as_me: failed program was:" >&5
9323cat conftest.$ac_ext >&5
9324ac_cv_c_type_in_def="no"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009325fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009326rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009327rm -f conftest_asm.s
9328LIBS=$ac_try_asm_link_saved_libs
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009329fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009330echo "$as_me:$LINENO: result: $ac_cv_c_type_in_def" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009331echo "${ECHO_T}$ac_cv_c_type_in_def" >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009332if test "$ac_cv_c_type_in_def" = "yes"
9333then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009334
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009335cat >>confdefs.h <<\_ACEOF
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009336#define NEED_TYPE_IN_DEF 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009337_ACEOF
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009338
9339fi
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009340
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009341
9342echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009343echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
9344if test "${ac_cv_c_extern_prefix+set}" = set; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009346else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009347 ac_try_asm_link_saved_libs=$LIBS
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009348LIBS="conftest_asm.s $LIBS"
9349cat > conftest_asm.s <<EOF
9350 .globl _ac_test
9351_ac_test:
9352 .long 0
9353EOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009354cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009355#line $LINENO "configure"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009356#include "confdefs.h"
9357extern int ac_test;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009358#ifdef F77_DUMMY_MAIN
9359# ifdef __cplusplus
9360 extern "C"
9361# endif
9362 int F77_DUMMY_MAIN() { return 1; }
9363#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009364int
9365main ()
9366{
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009367if (ac_test) return 1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009368 ;
9369 return 0;
9370}
9371_ACEOF
9372rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009374 (eval $ac_link) 2>&5
9375 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009377 (exit $ac_status); } &&
9378 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009380 (eval $ac_try) 2>&5
9381 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009383 (exit $ac_status); }; }; then
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009384 ac_cv_c_extern_prefix="yes"
9385else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009386 echo "$as_me: failed program was:" >&5
9387cat conftest.$ac_ext >&5
9388ac_cv_c_extern_prefix="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009389fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009390rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009391rm -f conftest_asm.s
9392LIBS=$ac_try_asm_link_saved_libs
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009393fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009394echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009395echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009396if test "$ac_cv_c_extern_prefix" = "yes"
9397then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009398
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009399cat >>confdefs.h <<\_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009400#define NEED_UNDERSCORE_PREFIX 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009401_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009402
9403fi
9404
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009405
9406echo "$as_me:$LINENO: checking whether stdcall symbols need to be decorated" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009407echo $ECHO_N "checking whether stdcall symbols need to be decorated... $ECHO_C" >&6
9408if test "${ac_cv_c_stdcall_decoration+set}" = set; then
9409 echo $ECHO_N "(cached) $ECHO_C" >&6
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009410else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009411 ac_try_asm_link_saved_libs=$LIBS
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009412LIBS="conftest_asm.s $LIBS"
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009413cat > conftest_asm.s <<EOF
9414 .globl _ac_test@0
9415_ac_test@0:
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009416 .globl ac_test@0
9417ac_test@0:
9418EOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009419cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009420#line $LINENO "configure"
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009421#include "confdefs.h"
9422extern void __attribute__((__stdcall__)) ac_test(void);
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009423#ifdef F77_DUMMY_MAIN
9424# ifdef __cplusplus
9425 extern "C"
9426# endif
9427 int F77_DUMMY_MAIN() { return 1; }
9428#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009429int
9430main ()
9431{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009432ac_test()
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009433 ;
9434 return 0;
9435}
9436_ACEOF
9437rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009439 (eval $ac_link) 2>&5
9440 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009442 (exit $ac_status); } &&
9443 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009445 (eval $ac_try) 2>&5
9446 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009448 (exit $ac_status); }; }; then
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009449 ac_cv_c_stdcall_decoration="yes"
9450else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009451 echo "$as_me: failed program was:" >&5
9452cat conftest.$ac_ext >&5
9453ac_cv_c_stdcall_decoration="no"
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009454fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009455rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009456rm -f conftest_asm.s
9457LIBS=$ac_try_asm_link_saved_libs
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009458fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009459echo "$as_me:$LINENO: result: $ac_cv_c_stdcall_decoration" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009460echo "${ECHO_T}$ac_cv_c_stdcall_decoration" >&6
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009461if test "$ac_cv_c_stdcall_decoration" = "yes"
9462then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009463
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009464cat >>confdefs.h <<\_ACEOF
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009465#define NEED_STDCALL_DECORATION 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009466_ACEOF
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009467
9468fi
9469
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009470
9471echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009472echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
9473if test "${ac_cv_c_asm_string+set}" = set; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009475else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009476 ac_try_asm_link_saved_libs=$LIBS
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009477LIBS="conftest_asm.s $LIBS"
9478cat > conftest_asm.s <<EOF
9479 .string "test"
9480EOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009481cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009482#line $LINENO "configure"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009483#include "confdefs.h"
9484
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009485#ifdef F77_DUMMY_MAIN
9486# ifdef __cplusplus
9487 extern "C"
9488# endif
9489 int F77_DUMMY_MAIN() { return 1; }
9490#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009491int
9492main ()
9493{
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009494
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009495 ;
9496 return 0;
9497}
9498_ACEOF
9499rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009501 (eval $ac_link) 2>&5
9502 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009504 (exit $ac_status); } &&
9505 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009507 (eval $ac_try) 2>&5
9508 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009510 (exit $ac_status); }; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009511 ac_cv_c_asm_string="yes"
9512else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009513 echo "$as_me: failed program was:" >&5
9514cat conftest.$ac_ext >&5
9515ac_cv_c_asm_string="no"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009516fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009517rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009518rm -f conftest_asm.s
9519LIBS=$ac_try_asm_link_saved_libs
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009520fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009521echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009522echo "${ECHO_T}$ac_cv_c_asm_string" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009523if test "$ac_cv_c_asm_string" = "yes"
9524then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009525
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009526cat >>confdefs.h <<\_ACEOF
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009527#define HAVE_ASM_STRING 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009528_ACEOF
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009529
9530fi
9531
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009532
Todd Vierling4b992b01998-12-15 15:26:27 +00009533LDSHARED=""
Alexandre Julliard4354cda2000-11-09 20:27:45 +00009534LDDLLFLAGS=""
Alexandre Julliardfa3a5362002-05-09 01:49:54 +00009535DLLIBS=""
9536
Alexandre Julliardfc01b722002-05-12 03:16:39 +00009537case $host_os in
9538 cygwin*|mingw32*)
9539 if test -n "$ac_tool_prefix"; then
9540 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
9541set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
Alexandre Julliard466ae142002-05-07 18:33:47 +00009542echo "$as_me:$LINENO: checking for $ac_word" >&5
9543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9544if test "${ac_cv_prog_DLLWRAP+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9546else
9547 if test -n "$DLLWRAP"; then
9548 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
9549else
9550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9551for as_dir in $PATH
9552do
9553 IFS=$as_save_IFS
9554 test -z "$as_dir" && as_dir=.
9555 for ac_exec_ext in '' $ac_executable_extensions; do
9556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00009557 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
Alexandre Julliard466ae142002-05-07 18:33:47 +00009558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9559 break 2
9560 fi
9561done
9562done
9563
Alexandre Julliard466ae142002-05-07 18:33:47 +00009564fi
9565fi
9566DLLWRAP=$ac_cv_prog_DLLWRAP
9567if test -n "$DLLWRAP"; then
9568 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
9569echo "${ECHO_T}$DLLWRAP" >&6
9570else
9571 echo "$as_me:$LINENO: result: no" >&5
9572echo "${ECHO_T}no" >&6
9573fi
9574
Alexandre Julliardfc01b722002-05-12 03:16:39 +00009575fi
9576if test -z "$ac_cv_prog_DLLWRAP"; then
9577 ac_ct_DLLWRAP=$DLLWRAP
9578 # Extract the first word of "dllwrap", so it can be a program name with args.
9579set dummy dllwrap; ac_word=$2
9580echo "$as_me:$LINENO: checking for $ac_word" >&5
9581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9582if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
9583 echo $ECHO_N "(cached) $ECHO_C" >&6
9584else
9585 if test -n "$ac_ct_DLLWRAP"; then
9586 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
9587else
9588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589for as_dir in $PATH
9590do
9591 IFS=$as_save_IFS
9592 test -z "$as_dir" && as_dir=.
9593 for ac_exec_ext in '' $ac_executable_extensions; do
9594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9595 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
9596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9597 break 2
9598 fi
9599done
9600done
9601
9602 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
9603fi
9604fi
9605ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
9606if test -n "$ac_ct_DLLWRAP"; then
9607 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
9608echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
9609else
9610 echo "$as_me:$LINENO: result: no" >&5
9611echo "${ECHO_T}no" >&6
9612fi
9613
9614 DLLWRAP=$ac_ct_DLLWRAP
9615else
9616 DLLWRAP="$ac_cv_prog_DLLWRAP"
9617fi
9618
9619 if test "$DLLWRAP" = "false"; then
Alexandre Julliardfa3a5362002-05-09 01:49:54 +00009620 LIBEXT="a"
Alexandre Julliardfc01b722002-05-12 03:16:39 +00009621 else
9622 LIBEXT="dll"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +00009623 fi
9624 ;;
9625 *)
9626
9627for ac_header in dlfcn.h
9628do
9629as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9630if eval "test \"\${$as_ac_Header+set}\" = set"; then
9631 echo "$as_me:$LINENO: checking for $ac_header" >&5
9632echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9633if eval "test \"\${$as_ac_Header+set}\" = set"; then
9634 echo $ECHO_N "(cached) $ECHO_C" >&6
9635fi
9636echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9637echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9638else
9639 # Is the header compilable?
9640echo "$as_me:$LINENO: checking $ac_header usability" >&5
9641echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9642cat >conftest.$ac_ext <<_ACEOF
9643#line $LINENO "configure"
9644#include "confdefs.h"
9645$ac_includes_default
9646#include <$ac_header>
9647_ACEOF
9648rm -f conftest.$ac_objext
9649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9650 (eval $ac_compile) 2>&5
9651 ac_status=$?
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); } &&
9654 { ac_try='test -s conftest.$ac_objext'
9655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9656 (eval $ac_try) 2>&5
9657 ac_status=$?
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); }; }; then
9660 ac_header_compiler=yes
9661else
9662 echo "$as_me: failed program was:" >&5
9663cat conftest.$ac_ext >&5
9664ac_header_compiler=no
9665fi
9666rm -f conftest.$ac_objext conftest.$ac_ext
9667echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9668echo "${ECHO_T}$ac_header_compiler" >&6
9669
9670# Is the header present?
9671echo "$as_me:$LINENO: checking $ac_header presence" >&5
9672echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9673cat >conftest.$ac_ext <<_ACEOF
9674#line $LINENO "configure"
9675#include "confdefs.h"
9676#include <$ac_header>
9677_ACEOF
9678if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9680 ac_status=$?
9681 egrep -v '^ *\+' conftest.er1 >conftest.err
9682 rm -f conftest.er1
9683 cat conftest.err >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); } >/dev/null; then
9686 if test -s conftest.err; then
9687 ac_cpp_err=$ac_c_preproc_warn_flag
9688 else
9689 ac_cpp_err=
9690 fi
9691else
9692 ac_cpp_err=yes
9693fi
9694if test -z "$ac_cpp_err"; then
9695 ac_header_preproc=yes
9696else
9697 echo "$as_me: failed program was:" >&5
9698 cat conftest.$ac_ext >&5
9699 ac_header_preproc=no
9700fi
9701rm -f conftest.err conftest.$ac_ext
9702echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9703echo "${ECHO_T}$ac_header_preproc" >&6
9704
9705# So? What about this header?
9706case $ac_header_compiler:$ac_header_preproc in
9707 yes:no )
9708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9709echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9711echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9712 no:yes )
9713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9714echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9716echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9718echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9719esac
9720echo "$as_me:$LINENO: checking for $ac_header" >&5
9721echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9722if eval "test \"\${$as_ac_Header+set}\" = set"; then
9723 echo $ECHO_N "(cached) $ECHO_C" >&6
9724else
9725 eval "$as_ac_Header=$ac_header_preproc"
9726fi
9727echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9728echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9729
9730fi
9731if test `eval echo '${'$as_ac_Header'}'` = yes; then
9732 cat >>confdefs.h <<_ACEOF
9733#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9734_ACEOF
9735
9736for ac_func in dlopen
9737do
9738as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9739echo "$as_me:$LINENO: checking for $ac_func" >&5
9740echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9741if eval "test \"\${$as_ac_var+set}\" = set"; then
9742 echo $ECHO_N "(cached) $ECHO_C" >&6
9743else
9744 cat >conftest.$ac_ext <<_ACEOF
9745#line $LINENO "configure"
9746#include "confdefs.h"
9747/* System header to define __stub macros and hopefully few prototypes,
9748 which can conflict with char $ac_func (); below. */
9749#include <assert.h>
9750/* Override any gcc2 internal prototype to avoid an error. */
9751#ifdef __cplusplus
9752extern "C"
9753#endif
9754/* We use char because int might match the return type of a gcc2
9755 builtin and then its argument prototype would still apply. */
9756char $ac_func ();
9757char (*f) ();
9758
9759#ifdef F77_DUMMY_MAIN
9760# ifdef __cplusplus
9761 extern "C"
9762# endif
9763 int F77_DUMMY_MAIN() { return 1; }
9764#endif
9765int
9766main ()
9767{
9768/* The GNU C library defines this for functions which it implements
9769 to always fail with ENOSYS. Some functions are actually named
9770 something starting with __ and the normal name is an alias. */
9771#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9772choke me
9773#else
9774f = $ac_func;
9775#endif
9776
9777 ;
9778 return 0;
9779}
9780_ACEOF
9781rm -f conftest.$ac_objext conftest$ac_exeext
9782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9783 (eval $ac_link) 2>&5
9784 ac_status=$?
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); } &&
9787 { ac_try='test -s conftest$ac_exeext'
9788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789 (eval $ac_try) 2>&5
9790 ac_status=$?
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; }; then
9793 eval "$as_ac_var=yes"
9794else
9795 echo "$as_me: failed program was:" >&5
9796cat conftest.$ac_ext >&5
9797eval "$as_ac_var=no"
9798fi
9799rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9800fi
9801echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9802echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9803if test `eval echo '${'$as_ac_var'}'` = yes; then
9804 cat >>confdefs.h <<_ACEOF
9805#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9806_ACEOF
9807
9808else
9809 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9810echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9811if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9813else
9814 ac_check_lib_save_LIBS=$LIBS
9815LIBS="-ldl $LIBS"
9816cat >conftest.$ac_ext <<_ACEOF
9817#line $LINENO "configure"
9818#include "confdefs.h"
9819
9820/* Override any gcc2 internal prototype to avoid an error. */
9821#ifdef __cplusplus
9822extern "C"
9823#endif
9824/* We use char because int might match the return type of a gcc2
9825 builtin and then its argument prototype would still apply. */
9826char dlopen ();
9827#ifdef F77_DUMMY_MAIN
9828# ifdef __cplusplus
9829 extern "C"
9830# endif
9831 int F77_DUMMY_MAIN() { return 1; }
9832#endif
9833int
9834main ()
9835{
9836dlopen ();
9837 ;
9838 return 0;
9839}
9840_ACEOF
9841rm -f conftest.$ac_objext conftest$ac_exeext
9842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9843 (eval $ac_link) 2>&5
9844 ac_status=$?
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); } &&
9847 { ac_try='test -s conftest$ac_exeext'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 (eval $ac_try) 2>&5
9850 ac_status=$?
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; }; then
9853 ac_cv_lib_dl_dlopen=yes
9854else
9855 echo "$as_me: failed program was:" >&5
9856cat conftest.$ac_ext >&5
9857ac_cv_lib_dl_dlopen=no
9858fi
9859rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9860LIBS=$ac_check_lib_save_LIBS
9861fi
9862echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9863echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9864if test $ac_cv_lib_dl_dlopen = yes; then
9865
9866cat >>confdefs.h <<\_ACEOF
9867#define HAVE_DLOPEN 1
9868_ACEOF
9869
9870 DLLIBS="-ldl"
9871else
9872 LIBEXT="a"
9873fi
9874
9875fi
9876done
9877
9878else
9879 LIBEXT="a"
9880fi
9881
9882done
9883
9884
9885 if test "$LIBEXT" = "so"
9886 then
Alexandre Julliard466ae142002-05-07 18:33:47 +00009887 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009888echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
9889if test "${ac_cv_c_dll_gnuelf+set}" = set; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00009891else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009892 ac_wine_try_cflags_saved=$CFLAGS
9893CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
9894cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009895#line $LINENO "configure"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00009896#include "confdefs.h"
9897
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009898#ifdef F77_DUMMY_MAIN
9899# ifdef __cplusplus
9900 extern "C"
9901# endif
9902 int F77_DUMMY_MAIN() { return 1; }
9903#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009904int
9905main ()
9906{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009907
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009908 ;
9909 return 0;
9910}
9911_ACEOF
9912rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009914 (eval $ac_link) 2>&5
9915 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009917 (exit $ac_status); } &&
9918 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009920 (eval $ac_try) 2>&5
9921 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009923 (exit $ac_status); }; }; then
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +00009924 ac_cv_c_dll_gnuelf="yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00009925else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009926 echo "$as_me: failed program was:" >&5
9927cat conftest.$ac_ext >&5
9928ac_cv_c_dll_gnuelf="no"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00009929fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009930rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009931CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009932fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009933echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009934echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
Alexandre Julliard466ae142002-05-07 18:33:47 +00009935 if test "$ac_cv_c_dll_gnuelf" = "yes"
9936 then
9937 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
9938 LDDLLFLAGS="-Wl,-Bsymbolic"
9939 else
9940 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009941echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
9942if test "${ac_cv_c_dll_unixware+set}" = set; then
9943 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierling4b992b01998-12-15 15:26:27 +00009944else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009945 ac_wine_try_cflags_saved=$CFLAGS
9946CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
9947cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009948#line $LINENO "configure"
Todd Vierling4b992b01998-12-15 15:26:27 +00009949#include "confdefs.h"
9950
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009951#ifdef F77_DUMMY_MAIN
9952# ifdef __cplusplus
9953 extern "C"
9954# endif
9955 int F77_DUMMY_MAIN() { return 1; }
9956#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009957int
9958main ()
9959{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009960
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009961 ;
9962 return 0;
9963}
9964_ACEOF
9965rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009967 (eval $ac_link) 2>&5
9968 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009970 (exit $ac_status); } &&
9971 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009973 (eval $ac_try) 2>&5
9974 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009976 (exit $ac_status); }; }; then
Ron Recorde977d6c1999-09-05 12:32:05 +00009977 ac_cv_c_dll_unixware="yes"
9978else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009979 echo "$as_me: failed program was:" >&5
9980cat conftest.$ac_ext >&5
9981ac_cv_c_dll_unixware="no"
Ron Recorde977d6c1999-09-05 12:32:05 +00009982fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009983rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009984CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009985fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009986echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009987echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
Alexandre Julliard466ae142002-05-07 18:33:47 +00009988 if test "$ac_cv_c_dll_unixware" = "yes"
9989 then
9990 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
9991 LDDLLFLAGS="-Wl,-B,symbolic"
9992 fi
9993 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +00009994 fi
9995 ;;
9996esac
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00009997
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00009998if test "$LIBEXT" = "a"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009999 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010000It is currently not possible to build Wine without shared library
10001(.so) support to allow transparent switch between .so and .dll files.
10002If you are using Linux, you will need a newer binutils.
10003" >&5
10004echo "$as_me: error: could not find a way to build shared libraries.
10005It is currently not possible to build Wine without shared library
10006(.so) support to allow transparent switch between .so and .dll files.
10007If you are using Linux, you will need a newer binutils.
10008" >&2;}
10009 { (exit 1); exit 1; }; }
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000010010fi
10011
Alexandre Julliard0adad952000-01-26 01:45:58 +000010012DLLFLAGS=""
Alexandre Julliard0adad952000-01-26 01:45:58 +000010013
Alexandre Julliard318f4ce2000-01-31 05:02:49 +000010014if test "$LIBEXT" = "so"; then
Alexandre Julliard318f4ce2000-01-31 05:02:49 +000010015 DLLFLAGS="-fPIC"
Alexandre Julliardc1bfca02002-03-20 22:19:06 +000010016 DLLEXT=".so"
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000010017elif test "$LIBEXT" = "dll"; then
10018 #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME
Alexandre Julliardc1bfca02002-03-20 22:19:06 +000010019 DLLEXT=""
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +000010020fi
Alexandre Julliard0adad952000-01-26 01:45:58 +000010021
Alexandre Julliardfc01b722002-05-12 03:16:39 +000010022case $build_os in
10023 cygwin*|mingw32*)
10024 LDPATH="PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$PATH\"" ;;
10025 *)
10026 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$LD_LIBRARY_PATH\"" ;;
10027esac
10028
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010029
10030
10031
10032
10033
10034
10035
10036
10037
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010038if test "$LIBEXT" = "so"
10039then
10040 # Extract the first word of "ldd", so it can be a program name with args.
10041set dummy ldd; ac_word=$2
10042echo "$as_me:$LINENO: checking for $ac_word" >&5
10043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10044if test "${ac_cv_path_LDD+set}" = set; then
10045 echo $ECHO_N "(cached) $ECHO_C" >&6
10046else
10047 case $LDD in
10048 [\\/]* | ?:[\\/]*)
10049 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
10050 ;;
10051 *)
10052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10053for as_dir in /sbin:/usr/sbin:$PATH
10054do
10055 IFS=$as_save_IFS
10056 test -z "$as_dir" && as_dir=.
10057 for ac_exec_ext in '' $ac_executable_extensions; do
10058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10059 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
10060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10061 break 2
10062 fi
10063done
10064done
10065
10066 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
10067 ;;
10068esac
10069fi
10070LDD=$ac_cv_path_LDD
10071
10072if test -n "$LDD"; then
10073 echo "$as_me:$LINENO: result: $LDD" >&5
10074echo "${ECHO_T}$LDD" >&6
10075else
10076 echo "$as_me:$LINENO: result: no" >&5
10077echo "${ECHO_T}no" >&6
10078fi
10079
10080
10081echo "$as_me:$LINENO: checking for -lX11 soname" >&5
10082echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
10083if test "${ac_cv_lib_soname_X11+set}" = set; then
10084 echo $ECHO_N "(cached) $ECHO_C" >&6
10085else
10086 ac_get_soname_save_LIBS=$LIBS
10087LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
10088 cat >conftest.$ac_ext <<_ACEOF
10089#line $LINENO "configure"
10090#include "confdefs.h"
10091
10092/* Override any gcc2 internal prototype to avoid an error. */
10093#ifdef __cplusplus
10094extern "C"
10095#endif
10096/* We use char because int might match the return type of a gcc2
10097 builtin and then its argument prototype would still apply. */
10098char XCreateWindow ();
10099#ifdef F77_DUMMY_MAIN
10100# ifdef __cplusplus
10101 extern "C"
10102# endif
10103 int F77_DUMMY_MAIN() { return 1; }
10104#endif
10105int
10106main ()
10107{
10108XCreateWindow ();
10109 ;
10110 return 0;
10111}
10112_ACEOF
10113rm -f conftest.$ac_objext conftest$ac_exeext
10114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10115 (eval $ac_link) 2>&5
10116 ac_status=$?
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); } &&
10119 { ac_try='test -s conftest$ac_exeext'
10120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10121 (eval $ac_try) 2>&5
10122 ac_status=$?
10123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124 (exit $ac_status); }; }; then
10125 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10126 if test "x$ac_cv_lib_soname_X11" = "x"
10127 then
10128 ac_cv_lib_soname_X11="libX11.so"
10129 fi
10130else
10131 echo "$as_me: failed program was:" >&5
10132cat conftest.$ac_ext >&5
10133ac_cv_lib_soname_X11="libX11.so"
10134fi
10135rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10136 LIBS=$ac_get_soname_save_LIBS
10137fi
10138echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
10139echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
10140if test "x$ac_cv_lib_soname_X11" != xNONE
10141then
10142cat >>confdefs.h <<_ACEOF
10143#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
10144_ACEOF
10145fi
10146
10147echo "$as_me:$LINENO: checking for -lXext soname" >&5
10148echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
10149if test "${ac_cv_lib_soname_Xext+set}" = set; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10151else
10152 ac_get_soname_save_LIBS=$LIBS
10153LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10154 cat >conftest.$ac_ext <<_ACEOF
10155#line $LINENO "configure"
10156#include "confdefs.h"
10157
10158/* Override any gcc2 internal prototype to avoid an error. */
10159#ifdef __cplusplus
10160extern "C"
10161#endif
10162/* We use char because int might match the return type of a gcc2
10163 builtin and then its argument prototype would still apply. */
10164char XextCreateExtension ();
10165#ifdef F77_DUMMY_MAIN
10166# ifdef __cplusplus
10167 extern "C"
10168# endif
10169 int F77_DUMMY_MAIN() { return 1; }
10170#endif
10171int
10172main ()
10173{
10174XextCreateExtension ();
10175 ;
10176 return 0;
10177}
10178_ACEOF
10179rm -f conftest.$ac_objext conftest$ac_exeext
10180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10181 (eval $ac_link) 2>&5
10182 ac_status=$?
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } &&
10185 { ac_try='test -s conftest$ac_exeext'
10186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187 (eval $ac_try) 2>&5
10188 ac_status=$?
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); }; }; then
10191 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10192 if test "x$ac_cv_lib_soname_Xext" = "x"
10193 then
10194 ac_cv_lib_soname_Xext="libXext.so"
10195 fi
10196else
10197 echo "$as_me: failed program was:" >&5
10198cat conftest.$ac_ext >&5
10199ac_cv_lib_soname_Xext="libXext.so"
10200fi
10201rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10202 LIBS=$ac_get_soname_save_LIBS
10203fi
10204echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
10205echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
10206if test "x$ac_cv_lib_soname_Xext" != xNONE
10207then
10208cat >>confdefs.h <<_ACEOF
10209#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
10210_ACEOF
10211fi
10212
10213echo "$as_me:$LINENO: checking for -lXrender soname" >&5
10214echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
10215if test "${ac_cv_lib_soname_Xrender+set}" = set; then
10216 echo $ECHO_N "(cached) $ECHO_C" >&6
10217else
10218 ac_get_soname_save_LIBS=$LIBS
10219LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10220 cat >conftest.$ac_ext <<_ACEOF
10221#line $LINENO "configure"
10222#include "confdefs.h"
10223
10224/* Override any gcc2 internal prototype to avoid an error. */
10225#ifdef __cplusplus
10226extern "C"
10227#endif
10228/* We use char because int might match the return type of a gcc2
10229 builtin and then its argument prototype would still apply. */
10230char XRenderQueryExtension ();
10231#ifdef F77_DUMMY_MAIN
10232# ifdef __cplusplus
10233 extern "C"
10234# endif
10235 int F77_DUMMY_MAIN() { return 1; }
10236#endif
10237int
10238main ()
10239{
10240XRenderQueryExtension ();
10241 ;
10242 return 0;
10243}
10244_ACEOF
10245rm -f conftest.$ac_objext conftest$ac_exeext
10246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10247 (eval $ac_link) 2>&5
10248 ac_status=$?
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); } &&
10251 { ac_try='test -s conftest$ac_exeext'
10252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10253 (eval $ac_try) 2>&5
10254 ac_status=$?
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); }; }; then
10257 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10258 if test "x$ac_cv_lib_soname_Xrender" = "x"
10259 then
10260 ac_cv_lib_soname_Xrender="libXrender.so"
10261 fi
10262else
10263 echo "$as_me: failed program was:" >&5
10264cat conftest.$ac_ext >&5
10265ac_cv_lib_soname_Xrender="libXrender.so"
10266fi
10267rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10268 LIBS=$ac_get_soname_save_LIBS
10269fi
10270echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
10271echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
10272if test "x$ac_cv_lib_soname_Xrender" != xNONE
10273then
10274cat >>confdefs.h <<_ACEOF
10275#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
10276_ACEOF
10277fi
10278
10279echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
10280echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
10281if test "${ac_cv_lib_soname_freetype+set}" = set; then
10282 echo $ECHO_N "(cached) $ECHO_C" >&6
10283else
10284 ac_get_soname_save_LIBS=$LIBS
10285LIBS="-lfreetype $X_LIBS $LIBS"
10286 cat >conftest.$ac_ext <<_ACEOF
10287#line $LINENO "configure"
10288#include "confdefs.h"
10289
10290/* Override any gcc2 internal prototype to avoid an error. */
10291#ifdef __cplusplus
10292extern "C"
10293#endif
10294/* We use char because int might match the return type of a gcc2
10295 builtin and then its argument prototype would still apply. */
10296char FT_Init_FreeType ();
10297#ifdef F77_DUMMY_MAIN
10298# ifdef __cplusplus
10299 extern "C"
10300# endif
10301 int F77_DUMMY_MAIN() { return 1; }
10302#endif
10303int
10304main ()
10305{
10306FT_Init_FreeType ();
10307 ;
10308 return 0;
10309}
10310_ACEOF
10311rm -f conftest.$ac_objext conftest$ac_exeext
10312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10313 (eval $ac_link) 2>&5
10314 ac_status=$?
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); } &&
10317 { ac_try='test -s conftest$ac_exeext'
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10320 ac_status=$?
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; }; then
10323 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10324 if test "x$ac_cv_lib_soname_freetype" = "x"
10325 then
10326 ac_cv_lib_soname_freetype="libfreetype.so"
10327 fi
10328else
10329 echo "$as_me: failed program was:" >&5
10330cat conftest.$ac_ext >&5
10331ac_cv_lib_soname_freetype="libfreetype.so"
10332fi
10333rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10334 LIBS=$ac_get_soname_save_LIBS
10335fi
10336echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
10337echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
10338if test "x$ac_cv_lib_soname_freetype" != xNONE
10339then
10340cat >>confdefs.h <<_ACEOF
10341#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10342_ACEOF
10343fi
10344fi
10345
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010346
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010347
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010348wine_cv_libc_reentrant=no
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010349echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010350echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
10351if test "${wine_cv_libc_r___errno_location+set}" = set; then
10352 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010353else
10354 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010355 wine_cv_libc_r___errno_location=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010356else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010357 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010358#line $LINENO "configure"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010359#include "confdefs.h"
10360int myerrno = 0;
10361char buf[256];
10362int *__errno_location(){return &myerrno;}
10363main(){connect(0,buf,255); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010364_ACEOF
10365rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010367 (eval $ac_link) 2>&5
10368 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010372 (eval $ac_try) 2>&5
10373 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010375 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +000010376 wine_cv_libc_r___errno_location=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010377else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010378 echo "$as_me: program exited with status $ac_status" >&5
10379echo "$as_me: failed program was:" >&5
10380cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010381( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010382wine_cv_libc_r___errno_location=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010383fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010384rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010385fi
Ulrich Weigand715a55e1999-04-18 13:19:56 +000010386fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010387echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010388echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010389if test "$wine_cv_libc_r___errno_location" = "yes"; then
10390 wine_cv_libc_reentrant=__errno_location
10391else
10392 echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010393echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
10394if test "${wine_cv_libc_r___error+set}" = set; then
10395 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +000010396else
10397 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010398 wine_cv_libc_r___error=yes
Marcus Meissnerc2606381999-04-11 15:20:29 +000010399else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010400 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010401#line $LINENO "configure"
Marcus Meissnerc2606381999-04-11 15:20:29 +000010402#include "confdefs.h"
10403int myerrno = 0;
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010404char buf256;
Marcus Meissnerc2606381999-04-11 15:20:29 +000010405int *__error(){return &myerrno;}
10406main(){connect(0,buf,255); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010407_ACEOF
10408rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010410 (eval $ac_link) 2>&5
10411 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010415 (eval $ac_try) 2>&5
10416 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010418 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +000010419 wine_cv_libc_r___error=yes
Marcus Meissnerc2606381999-04-11 15:20:29 +000010420else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010421 echo "$as_me: program exited with status $ac_status" >&5
10422echo "$as_me: failed program was:" >&5
10423cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010424( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010425wine_cv_libc_r___error=no
Marcus Meissnerc2606381999-04-11 15:20:29 +000010426fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010427rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Marcus Meissnerc2606381999-04-11 15:20:29 +000010428fi
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010429fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010430echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010431echo "${ECHO_T}$wine_cv_libc_r___error" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010432if test "$wine_cv_libc_r___error" = "yes"; then
10433 wine_cv_libc_reentrant=__error
10434else
10435 echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010436echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
10437if test "${wine_cv_libc_r____errno+set}" = set; then
10438 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +000010439else
10440 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010441 wine_cv_libc_r____errno=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +000010442else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010443 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010444#line $LINENO "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +000010445#include "confdefs.h"
10446int myerrno = 0;
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010447char buf256;
Ulrich Weigand715a55e1999-04-18 13:19:56 +000010448int *___errno(){return &myerrno;}
10449main(){connect(0,buf,255); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010450_ACEOF
10451rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010453 (eval $ac_link) 2>&5
10454 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010458 (eval $ac_try) 2>&5
10459 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010461 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +000010462 wine_cv_libc_r____errno=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +000010463else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010464 echo "$as_me: program exited with status $ac_status" >&5
10465echo "$as_me: failed program was:" >&5
10466cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010467( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010468wine_cv_libc_r____errno=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +000010469fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010470rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Ulrich Weigand715a55e1999-04-18 13:19:56 +000010471fi
Ulrich Weigand715a55e1999-04-18 13:19:56 +000010472fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010473echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010474echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010475if test "$wine_cv_libc_r____errno" = "yes"; then
10476 wine_cv_libc_reentrant=___errno
10477else
10478 echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010479echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
10480if test "${wine_cv_libc_r___thr_errno+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
Ron Recorde977d6c1999-09-05 12:32:05 +000010482else
10483 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010484 wine_cv_libc_r___thr_errno=yes
Ron Recorde977d6c1999-09-05 12:32:05 +000010485else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010486 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010487#line $LINENO "configure"
Ron Recorde977d6c1999-09-05 12:32:05 +000010488#include "confdefs.h"
10489int myerrno = 0;
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010490char buf256;
Ron Recorde977d6c1999-09-05 12:32:05 +000010491int *__thr_errno(){return &myerrno;}
10492main(){connect(0,buf,255); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010493_ACEOF
10494rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010496 (eval $ac_link) 2>&5
10497 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010501 (eval $ac_try) 2>&5
10502 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010504 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +000010505 wine_cv_libc_r___thr_errno=yes
Ron Recorde977d6c1999-09-05 12:32:05 +000010506else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010507 echo "$as_me: program exited with status $ac_status" >&5
10508echo "$as_me: failed program was:" >&5
10509cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010510( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010511wine_cv_libc_r___thr_errno=no
Ron Recorde977d6c1999-09-05 12:32:05 +000010512fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010513rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Ron Recorde977d6c1999-09-05 12:32:05 +000010514fi
Ron Recorde977d6c1999-09-05 12:32:05 +000010515fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010516echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010517echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010518if test "$wine_cv_libc_r___thr_errno" = "yes"; then
10519 wine_cv_libc_reentrant=__thr_errno
10520else
10521 echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010522echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
10523if test "${wine_cv_libc_r___errno+set}" = set; then
10524 echo $ECHO_N "(cached) $ECHO_C" >&6
Bang Jun-Young33dff342001-05-07 18:21:10 +000010525else
10526 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010527 wine_cv_libc_r___errno=yes
Bang Jun-Young33dff342001-05-07 18:21:10 +000010528else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010529 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010530#line $LINENO "configure"
Bang Jun-Young33dff342001-05-07 18:21:10 +000010531#include "confdefs.h"
10532int myerrno = 0;
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010533char buf256;
Bang Jun-Young33dff342001-05-07 18:21:10 +000010534int *__errno(){return &myerrno;}
10535main(){connect(0,buf,255); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010536_ACEOF
10537rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010539 (eval $ac_link) 2>&5
10540 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010544 (eval $ac_try) 2>&5
10545 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010547 (exit $ac_status); }; }; then
Bang Jun-Young33dff342001-05-07 18:21:10 +000010548 wine_cv_libc_r___errno=yes
10549else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010550 echo "$as_me: program exited with status $ac_status" >&5
10551echo "$as_me: failed program was:" >&5
10552cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010553( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010554wine_cv_libc_r___errno=no
Bang Jun-Young33dff342001-05-07 18:21:10 +000010555fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010556rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bang Jun-Young33dff342001-05-07 18:21:10 +000010557fi
Bang Jun-Young33dff342001-05-07 18:21:10 +000010558fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010559echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010560echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010561if test "$wine_cv_libc_r___errno" = "yes"; then
10562 wine_cv_libc_reentrant=__errno
10563fi
10564
10565
10566fi
10567
10568fi
10569
10570fi
10571
Bang Jun-Young33dff342001-05-07 18:21:10 +000010572fi
10573
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010574
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010575if test "$wine_cv_libc_reentrant" != "no"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010576then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010577
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010578cat >>confdefs.h <<_ACEOF
Alexandre Julliard598412e2001-01-17 20:22:22 +000010579#define ERRNO_LOCATION $wine_cv_libc_reentrant
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010580_ACEOF
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010581
10582fi
10583
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010584
Alexandre Julliard867fb9d2002-04-24 22:24:43 +000010585if test "$have_x" = "yes"
Patrik Stridvall24110281999-02-04 10:09:54 +000010586then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010587echo "$as_me:$LINENO: checking for reentrant X libraries" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010588echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
10589if test "${wine_cv_x_reentrant+set}" = set; then
10590 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000010591else
Alexandre Julliard867fb9d2002-04-24 22:24:43 +000010592 libX11_check=none
10593 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
10594 if test -r $dir/libX11.so; then
10595 libX11_check="-D $dir/libX11.so"
10596 break
10597 fi
10598 if test -r $dir/libX11.a; then
10599 libX11_check="$dir/libX11.a"
10600 break
10601 fi
10602 done
10603 if test "$libX11_check" != "none"; then
10604 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
10605 then
10606 wine_cv_x_reentrant=yes
10607 else
10608 wine_cv_x_reentrant=no
10609 fi
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000010610 else
Alexandre Julliard867fb9d2002-04-24 22:24:43 +000010611 wine_cv_x_reentrant=unknown
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010612 fi
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000010613fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010614echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010615echo "${ECHO_T}$wine_cv_x_reentrant" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +000010616fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010617
10618
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010619# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10620# for constant arguments. Useless!
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010621echo "$as_me:$LINENO: checking for working alloca.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010622echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10623if test "${ac_cv_working_alloca_h+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010625else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010626 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010627#line $LINENO "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010628#include "confdefs.h"
10629#include <alloca.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010630#ifdef F77_DUMMY_MAIN
10631# ifdef __cplusplus
10632 extern "C"
10633# endif
10634 int F77_DUMMY_MAIN() { return 1; }
10635#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010636int
10637main ()
10638{
10639char *p = (char *) alloca (2 * sizeof (int));
10640 ;
10641 return 0;
10642}
10643_ACEOF
10644rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010646 (eval $ac_link) 2>&5
10647 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010649 (exit $ac_status); } &&
10650 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010652 (eval $ac_try) 2>&5
10653 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010655 (exit $ac_status); }; }; then
10656 ac_cv_working_alloca_h=yes
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010657else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010658 echo "$as_me: failed program was:" >&5
10659cat conftest.$ac_ext >&5
10660ac_cv_working_alloca_h=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010661fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010662rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010663fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010664echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010665echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10666if test $ac_cv_working_alloca_h = yes; then
Alexandre Julliard2487cce1999-04-18 14:43:16 +000010667
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010668cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010669#define HAVE_ALLOCA_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010670_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010671
10672fi
10673
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010674echo "$as_me:$LINENO: checking for alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010675echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10676if test "${ac_cv_func_alloca_works+set}" = set; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010678else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010679 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010680#line $LINENO "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010681#include "confdefs.h"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010682#ifdef __GNUC__
10683# define alloca __builtin_alloca
10684#else
Eric Pouech18ad24a2000-01-16 22:16:33 +000010685# ifdef _MSC_VER
10686# include <malloc.h>
10687# define alloca _alloca
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010688# else
Eric Pouech18ad24a2000-01-16 22:16:33 +000010689# if HAVE_ALLOCA_H
10690# include <alloca.h>
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010691# else
Eric Pouech18ad24a2000-01-16 22:16:33 +000010692# ifdef _AIX
10693 #pragma alloca
10694# else
10695# ifndef alloca /* predefined by HP cc +Olibcalls */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010696char *alloca ();
Eric Pouech18ad24a2000-01-16 22:16:33 +000010697# endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010698# endif
10699# endif
10700# endif
10701#endif
10702
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010703#ifdef F77_DUMMY_MAIN
10704# ifdef __cplusplus
10705 extern "C"
10706# endif
10707 int F77_DUMMY_MAIN() { return 1; }
10708#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010709int
10710main ()
10711{
10712char *p = (char *) alloca (1);
10713 ;
10714 return 0;
10715}
10716_ACEOF
10717rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010719 (eval $ac_link) 2>&5
10720 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010722 (exit $ac_status); } &&
10723 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010725 (eval $ac_try) 2>&5
10726 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010728 (exit $ac_status); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010729 ac_cv_func_alloca_works=yes
10730else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010731 echo "$as_me: failed program was:" >&5
10732cat conftest.$ac_ext >&5
10733ac_cv_func_alloca_works=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010734fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010735rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010736fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010737echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010738echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010739
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010740if test $ac_cv_func_alloca_works = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010741
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010742cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010743#define HAVE_ALLOCA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010744_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010745
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010746else
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010747 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010748# that cause trouble. Some versions do not even contain alloca or
10749# contain a buggy version. If you still want to use their alloca,
10750# use ar to extract alloca.o from them instead of compiling alloca.c.
10751
10752ALLOCA=alloca.$ac_objext
10753
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010754cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010755#define C_ALLOCA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010756_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010757
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010758
10759echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010760echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10761if test "${ac_cv_os_cray+set}" = set; then
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010763else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010764 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010765#line $LINENO "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010766#include "confdefs.h"
10767#if defined(CRAY) && ! defined(CRAY2)
10768webecray
10769#else
10770wenotbecray
10771#endif
10772
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010773_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010774if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10775 egrep "webecray" >/dev/null 2>&1; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010776 ac_cv_os_cray=yes
10777else
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010778 ac_cv_os_cray=no
10779fi
10780rm -f conftest*
10781
10782fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010783echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010784echo "${ECHO_T}$ac_cv_os_cray" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010785if test $ac_cv_os_cray = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010786 for ac_func in _getb67 GETB67 getb67; do
10787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010788echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010789echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10790if eval "test \"\${$as_ac_var+set}\" = set"; then
10791 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010792else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010793 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010794#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010795#include "confdefs.h"
10796/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010797 which can conflict with char $ac_func (); below. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010798#include <assert.h>
10799/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010800#ifdef __cplusplus
10801extern "C"
10802#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +000010803/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010804 builtin and then its argument prototype would still apply. */
10805char $ac_func ();
10806char (*f) ();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010807
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010808#ifdef F77_DUMMY_MAIN
10809# ifdef __cplusplus
10810 extern "C"
10811# endif
10812 int F77_DUMMY_MAIN() { return 1; }
10813#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010814int
10815main ()
10816{
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010817/* The GNU C library defines this for functions which it implements
10818 to always fail with ENOSYS. Some functions are actually named
10819 something starting with __ and the normal name is an alias. */
10820#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10821choke me
10822#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010823f = $ac_func;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010824#endif
10825
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010826 ;
10827 return 0;
10828}
10829_ACEOF
10830rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010832 (eval $ac_link) 2>&5
10833 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010835 (exit $ac_status); } &&
10836 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010838 (eval $ac_try) 2>&5
10839 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010841 (exit $ac_status); }; }; then
10842 eval "$as_ac_var=yes"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010843else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010844 echo "$as_me: failed program was:" >&5
10845cat conftest.$ac_ext >&5
10846eval "$as_ac_var=no"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010847fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010848rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010849fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010850echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010851echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10852if test `eval echo '${'$as_ac_var'}'` = yes; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010853
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010854cat >>confdefs.h <<_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010855#define CRAY_STACKSEG_END $ac_func
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010856_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010857
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010858 break
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010859fi
10860
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010861 done
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010862fi
10863
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010864echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010865echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10866if test "${ac_cv_c_stack_direction+set}" = set; then
10867 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010868else
10869 if test "$cross_compiling" = yes; then
10870 ac_cv_c_stack_direction=0
10871else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010872 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010873#line $LINENO "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010874#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010875int
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010876find_stack_direction ()
10877{
10878 static char *addr = 0;
10879 auto char dummy;
10880 if (addr == 0)
10881 {
10882 addr = &dummy;
10883 return find_stack_direction ();
10884 }
10885 else
10886 return (&dummy > addr) ? 1 : -1;
10887}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010888
10889int
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010890main ()
10891{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010892 exit (find_stack_direction () < 0);
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010893}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010894_ACEOF
10895rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010897 (eval $ac_link) 2>&5
10898 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010902 (eval $ac_try) 2>&5
10903 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010905 (exit $ac_status); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010906 ac_cv_c_stack_direction=1
10907else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010908 echo "$as_me: program exited with status $ac_status" >&5
10909echo "$as_me: failed program was:" >&5
10910cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010911( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010912ac_cv_c_stack_direction=-1
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010913fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010914rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010915fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010916fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010917echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010918echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010919
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010920cat >>confdefs.h <<_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010921#define STACK_DIRECTION $ac_cv_c_stack_direction
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010922_ACEOF
10923
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010924
10925fi
10926
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
Steven Edwardsb9627c12002-05-05 21:03:44 +000010969
10970
Steven Edwards0a8e15a2002-05-10 01:33:40 +000010971
10972
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010973for ac_func in \
Eric Pouechf61d7e02000-04-29 16:44:19 +000010974 __libc_fork \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010975 _lwp_create \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000010976 _pclose \
10977 _popen \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000010978 _snprintf \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000010979 _stricmp \
10980 _strnicmp \
Steven Edwardsb9627c12002-05-05 21:03:44 +000010981 chsize \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010982 clone \
Andreas Mohra7ca2ba2001-01-12 23:07:11 +000010983 ecvt \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000010984 finite \
10985 fpclass \
Steven Edwardsb9627c12002-05-05 21:03:44 +000010986 ftruncate \
Marcus Meissner3f1ed522001-05-14 20:09:37 +000010987 ftruncate64 \
Patrik Stridvallb9010211999-11-13 22:23:35 +000010988 getnetbyaddr \
10989 getnetbyname \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010990 getpagesize \
Patrik Stridvallb9010211999-11-13 22:23:35 +000010991 getprotobyname \
10992 getprotobynumber \
10993 getservbyport \
10994 getsockopt \
10995 inet_network \
Marcus Meissner3f1ed522001-05-14 20:09:37 +000010996 lseek64 \
Alexandre Julliard27bb3112000-11-29 17:48:06 +000010997 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010998 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +000010999 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011000 pclose \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011001 popen \
Steven Edwardsb9627c12002-05-05 21:03:44 +000011002 pread \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +000011003 pwrite \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011004 rfork \
Patrik Stridvallb9010211999-11-13 22:23:35 +000011005 select \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011006 sendmsg \
Patrik Stridvallb9010211999-11-13 22:23:35 +000011007 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011008 sigaltstack \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000011009 snprintf \
Patrik Stridvallb9010211999-11-13 22:23:35 +000011010 statfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000011011 strcasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011012 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000011013 strncasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011014 tcgetattr \
11015 timegm \
11016 usleep \
11017 vfscanf \
11018 wait4 \
11019 waitpid \
11020
11021do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011022as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011023echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011024echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11025if eval "test \"\${$as_ac_var+set}\" = set"; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011027else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011028 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011029#line $LINENO "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011030#include "confdefs.h"
11031/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011032 which can conflict with char $ac_func (); below. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011033#include <assert.h>
11034/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011035#ifdef __cplusplus
11036extern "C"
11037#endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011038/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011039 builtin and then its argument prototype would still apply. */
11040char $ac_func ();
11041char (*f) ();
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011042
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011043#ifdef F77_DUMMY_MAIN
11044# ifdef __cplusplus
11045 extern "C"
11046# endif
11047 int F77_DUMMY_MAIN() { return 1; }
11048#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011049int
11050main ()
11051{
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011052/* The GNU C library defines this for functions which it implements
11053 to always fail with ENOSYS. Some functions are actually named
11054 something starting with __ and the normal name is an alias. */
11055#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11056choke me
11057#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011058f = $ac_func;
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011059#endif
11060
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011061 ;
11062 return 0;
11063}
11064_ACEOF
11065rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011067 (eval $ac_link) 2>&5
11068 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011070 (exit $ac_status); } &&
11071 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011073 (eval $ac_try) 2>&5
11074 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011076 (exit $ac_status); }; }; then
11077 eval "$as_ac_var=yes"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011078else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011079 echo "$as_me: failed program was:" >&5
11080cat conftest.$ac_ext >&5
11081eval "$as_ac_var=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011082fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011083rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011084fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011085echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011086echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11087if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011088 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011089#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011090_ACEOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000011091
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011092fi
11093done
11094
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
Laurent Pinchart0314a652002-05-01 22:01:30 +000011156
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000011157
11158
11159
Alexandre Julliard127ec922002-05-07 01:51:30 +000011160
Alexandre Julliardc3e06df2002-05-14 23:18:23 +000011161
11162
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011163for ac_header in \
Patrik Stridvall96336321999-10-24 22:13:47 +000011164 arpa/inet.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011165 arpa/nameser.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011166 direct.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011167 elf.h \
11168 float.h \
Ulrich Weigand2e8e2332000-12-27 18:49:08 +000011169 ieeefp.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011170 io.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011171 libio.h \
Hidenori Takeshima01f78aa2000-07-09 12:19:09 +000011172 libutil.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011173 link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011174 linux/cdrom.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000011175 linux/hdreg.h \
Marcus Meissnerc9b3b2e2000-12-12 00:38:58 +000011176 linux/input.h \
Marcus Meissner028e9a11999-08-04 15:07:56 +000011177 linux/joystick.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000011178 linux/major.h \
Laurent Pinchart0314a652002-05-01 22:01:30 +000011179 linux/param.h \
Lawson Whitney533e7ee2002-02-19 18:41:56 +000011180 linux/serial.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011181 linux/ucdrom.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011182 net/if.h \
Hidenori Takeshima5d1a6382000-11-26 04:00:53 +000011183 netdb.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011184 netinet/in.h \
Patrik Stridvall7a4e5992000-12-01 23:53:46 +000011185 netinet/in_systm.h \
11186 netinet/ip.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011187 netinet/tcp.h \
Marcus Meissner2d7be871999-12-05 23:06:40 +000011188 pty.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011189 resolv.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011190 sched.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000011191 scsi/sg.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011192 socket.h \
Bang Jun-Youngeda758e2001-12-14 22:47:19 +000011193 stdint.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011194 strings.h \
11195 sys/cdio.h \
Howard Abrams13277481999-07-10 13:16:29 +000011196 sys/errno.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011197 sys/file.h \
11198 sys/filio.h \
Michal Pasternak60983992002-03-29 18:04:43 +000011199 sys/inttypes.h \
Alexandre Julliardc3e06df2002-05-14 23:18:23 +000011200 sys/ioctl.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011201 sys/ipc.h \
Eric Pouech624cbd72001-08-10 22:29:21 +000011202 sys/link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011203 sys/lwp.h \
Howard Abrams13277481999-07-10 13:16:29 +000011204 sys/mman.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011205 sys/modem.h \
11206 sys/mount.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011207 sys/msg.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011208 sys/param.h \
Dimitrie O. Paun2af03e42000-11-29 20:04:09 +000011209 sys/ptrace.h \
Ulrich Weigand8a1bdb32000-01-30 22:22:22 +000011210 sys/reg.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011211 sys/shm.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000011212 sys/signal.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011213 sys/socket.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011214 sys/sockio.h \
11215 sys/statfs.h \
11216 sys/strtio.h \
11217 sys/syscall.h \
Alexandre Julliard127ec922002-05-07 01:51:30 +000011218 sys/sysctl.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011219 sys/time.h \
Dimitrie O. Paun2af03e42000-11-29 20:04:09 +000011220 sys/user.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011221 sys/v86.h \
11222 sys/v86intr.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011223 sys/vfs.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011224 sys/vm86.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000011225 sys/wait.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011226 syscall.h \
Alexandre Julliardc3e06df2002-05-14 23:18:23 +000011227 termios.h \
Patrik Stridvall7a4e5992000-12-01 23:53:46 +000011228 ucontext.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011229 unistd.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011230
Alexandre Julliard02e90081998-01-04 17:49:09 +000011231do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011232as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011233if eval "test \"\${$as_ac_Header+set}\" = set"; then
11234 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011235echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11236if eval "test \"\${$as_ac_Header+set}\" = set"; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011238fi
11239echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11240echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliard02e90081998-01-04 17:49:09 +000011241else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011242 # Is the header compilable?
11243echo "$as_me:$LINENO: checking $ac_header usability" >&5
11244echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11245cat >conftest.$ac_ext <<_ACEOF
11246#line $LINENO "configure"
11247#include "confdefs.h"
11248$ac_includes_default
11249#include <$ac_header>
11250_ACEOF
11251rm -f conftest.$ac_objext
11252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11253 (eval $ac_compile) 2>&5
11254 ac_status=$?
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); } &&
11257 { ac_try='test -s conftest.$ac_objext'
11258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11259 (eval $ac_try) 2>&5
11260 ac_status=$?
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); }; }; then
11263 ac_header_compiler=yes
11264else
11265 echo "$as_me: failed program was:" >&5
11266cat conftest.$ac_ext >&5
11267ac_header_compiler=no
11268fi
11269rm -f conftest.$ac_objext conftest.$ac_ext
11270echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11271echo "${ECHO_T}$ac_header_compiler" >&6
11272
11273# Is the header present?
11274echo "$as_me:$LINENO: checking $ac_header presence" >&5
11275echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11276cat >conftest.$ac_ext <<_ACEOF
11277#line $LINENO "configure"
Alexandre Julliard02e90081998-01-04 17:49:09 +000011278#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011279#include <$ac_header>
11280_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011281if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11283 ac_status=$?
11284 egrep -v '^ *\+' conftest.er1 >conftest.err
11285 rm -f conftest.er1
11286 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011288 (exit $ac_status); } >/dev/null; then
11289 if test -s conftest.err; then
11290 ac_cpp_err=$ac_c_preproc_warn_flag
11291 else
11292 ac_cpp_err=
11293 fi
Alexandre Julliard02e90081998-01-04 17:49:09 +000011294else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011295 ac_cpp_err=yes
11296fi
11297if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011298 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011299else
11300 echo "$as_me: failed program was:" >&5
Alexandre Julliard02e90081998-01-04 17:49:09 +000011301 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011302 ac_header_preproc=no
Alexandre Julliard02e90081998-01-04 17:49:09 +000011303fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011304rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011305echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11306echo "${ECHO_T}$ac_header_preproc" >&6
11307
11308# So? What about this header?
11309case $ac_header_compiler:$ac_header_preproc in
11310 yes:no )
11311 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11312echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11314echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11315 no:yes )
11316 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11317echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11318 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11319echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11321echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11322esac
11323echo "$as_me:$LINENO: checking for $ac_header" >&5
11324echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11325if eval "test \"\${$as_ac_Header+set}\" = set"; then
11326 echo $ECHO_N "(cached) $ECHO_C" >&6
11327else
11328 eval "$as_ac_Header=$ac_header_preproc"
Alexandre Julliard02e90081998-01-04 17:49:09 +000011329fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011330echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011331echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011332
Alexandre Julliard02e90081998-01-04 17:49:09 +000011333fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011334if test `eval echo '${'$as_ac_Header'}'` = yes; then
11335 cat >>confdefs.h <<_ACEOF
11336#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11337_ACEOF
11338
11339fi
11340
Alexandre Julliard02e90081998-01-04 17:49:09 +000011341done
11342
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011343echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011344echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11345if test "${ac_cv_header_stat_broken+set}" = set; then
11346 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011347else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011348 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011349#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011350#include "confdefs.h"
11351#include <sys/types.h>
11352#include <sys/stat.h>
11353
11354#if defined(S_ISBLK) && defined(S_IFDIR)
11355# if S_ISBLK (S_IFDIR)
11356You lose.
11357# endif
11358#endif
11359
11360#if defined(S_ISBLK) && defined(S_IFCHR)
11361# if S_ISBLK (S_IFCHR)
11362You lose.
11363# endif
11364#endif
11365
11366#if defined(S_ISLNK) && defined(S_IFREG)
11367# if S_ISLNK (S_IFREG)
11368You lose.
11369# endif
11370#endif
11371
11372#if defined(S_ISSOCK) && defined(S_IFREG)
11373# if S_ISSOCK (S_IFREG)
11374You lose.
11375# endif
11376#endif
11377
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011378_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011379if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11380 egrep "You lose" >/dev/null 2>&1; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011381 ac_cv_header_stat_broken=yes
11382else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011383 ac_cv_header_stat_broken=no
11384fi
11385rm -f conftest*
11386
11387fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011388echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011389echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011390if test $ac_cv_header_stat_broken = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011391
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011392cat >>confdefs.h <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011393#define STAT_MACROS_BROKEN 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011394_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011395
11396fi
11397
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011398
11399
11400echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011401echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11402if test "${ac_cv_prog_cc_stdc+set}" = set; then
11403 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011404else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011405 ac_cv_prog_cc_stdc=no
11406ac_save_CC=$CC
11407cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011408#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011409#include "confdefs.h"
11410#include <stdarg.h>
11411#include <stdio.h>
11412#include <sys/types.h>
11413#include <sys/stat.h>
11414/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11415struct buf { int x; };
11416FILE * (*rcsopen) (struct buf *, struct stat *, int);
11417static char *e (p, i)
11418 char **p;
11419 int i;
11420{
11421 return p[i];
11422}
11423static char *f (char * (*g) (char **, int), char **p, ...)
11424{
11425 char *s;
11426 va_list v;
11427 va_start (v,p);
11428 s = g (p, va_arg (v,int));
11429 va_end (v);
11430 return s;
11431}
11432int test (int i, double x);
11433struct s1 {int (*f) (int a);};
11434struct s2 {int (*f) (double a);};
11435int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11436int argc;
11437char **argv;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011438#ifdef F77_DUMMY_MAIN
11439# ifdef __cplusplus
11440 extern "C"
11441# endif
11442 int F77_DUMMY_MAIN() { return 1; }
11443#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011444int
11445main ()
11446{
11447return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11448 ;
11449 return 0;
11450}
11451_ACEOF
11452# Don't try gcc -ansi; that turns off useful extensions and
11453# breaks some systems' header files.
11454# AIX -qlanglvl=ansi
11455# Ultrix and OSF/1 -std1
11456# HP-UX 10.20 and later -Ae
11457# HP-UX older versions -Aa -D_HPUX_SOURCE
11458# SVR4 -Xc -D__EXTENSIONS__
11459for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11460do
11461 CC="$ac_save_CC $ac_arg"
11462 rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011464 (eval $ac_compile) 2>&5
11465 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011467 (exit $ac_status); } &&
11468 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011470 (eval $ac_try) 2>&5
11471 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011473 (exit $ac_status); }; }; then
11474 ac_cv_prog_cc_stdc=$ac_arg
11475break
11476else
11477 echo "$as_me: failed program was:" >&5
11478cat conftest.$ac_ext >&5
11479fi
11480rm -f conftest.$ac_objext
11481done
11482rm -f conftest.$ac_ext conftest.$ac_objext
11483CC=$ac_save_CC
11484
11485fi
11486
11487case "x$ac_cv_prog_cc_stdc" in
11488 x|xno)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011489 echo "$as_me:$LINENO: result: none needed" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011490echo "${ECHO_T}none needed" >&6 ;;
11491 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011492 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011493echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11494 CC="$CC $ac_cv_prog_cc_stdc" ;;
11495esac
11496
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011497echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011498echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11499if test "${ac_cv_c_const+set}" = set; then
11500 echo $ECHO_N "(cached) $ECHO_C" >&6
11501else
11502 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011503#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011504#include "confdefs.h"
11505
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011506#ifdef F77_DUMMY_MAIN
11507# ifdef __cplusplus
11508 extern "C"
11509# endif
11510 int F77_DUMMY_MAIN() { return 1; }
11511#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011512int
11513main ()
11514{
11515/* FIXME: Include the comments suggested by Paul. */
11516#ifndef __cplusplus
11517 /* Ultrix mips cc rejects this. */
11518 typedef int charset[2];
11519 const charset x;
11520 /* SunOS 4.1.1 cc rejects this. */
11521 char const *const *ccp;
11522 char **p;
11523 /* NEC SVR4.0.2 mips cc rejects this. */
11524 struct point {int x, y;};
11525 static struct point const zero = {0,0};
11526 /* AIX XL C 1.02.0.0 rejects this.
11527 It does not let you subtract one const X* pointer from another in
11528 an arm of an if-expression whose if-part is not a constant
11529 expression */
11530 const char *g = "string";
11531 ccp = &g + (g ? g-g : 0);
11532 /* HPUX 7.0 cc rejects these. */
11533 ++ccp;
11534 p = (char**) ccp;
11535 ccp = (char const *const *) p;
11536 { /* SCO 3.2v4 cc rejects this. */
11537 char *t;
11538 char const *s = 0 ? (char *) 0 : (char const *) 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011539
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011540 *t++ = 0;
11541 }
11542 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11543 int x[] = {25, 17};
11544 const int *foo = &x[0];
11545 ++foo;
11546 }
11547 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11548 typedef const int *iptr;
11549 iptr p = 0;
11550 ++p;
11551 }
11552 { /* AIX XL C 1.02.0.0 rejects this saying
11553 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11554 struct s { int j; const int *ap[3]; };
11555 struct s *b; b->j = 5;
11556 }
11557 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11558 const int foo = 10;
11559 }
11560#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011561
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011562 ;
11563 return 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011564}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011565_ACEOF
11566rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011568 (eval $ac_compile) 2>&5
11569 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011571 (exit $ac_status); } &&
11572 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011574 (eval $ac_try) 2>&5
11575 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011577 (exit $ac_status); }; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011578 ac_cv_c_const=yes
11579else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011580 echo "$as_me: failed program was:" >&5
11581cat conftest.$ac_ext >&5
11582ac_cv_c_const=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011583fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011584rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011585fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011586echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011587echo "${ECHO_T}$ac_cv_c_const" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011588if test $ac_cv_c_const = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011589
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011590cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011591#define const
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011592_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011593
11594fi
11595
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011596echo "$as_me:$LINENO: checking for inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011597echo $ECHO_N "checking for inline... $ECHO_C" >&6
11598if test "${ac_cv_c_inline+set}" = set; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000011600else
11601 ac_cv_c_inline=no
11602for ac_kw in inline __inline__ __inline; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011603 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011604#line $LINENO "configure"
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000011605#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011606#ifndef __cplusplus
11607static $ac_kw int static_foo () {return 0; }
11608$ac_kw int foo () {return 0; }
11609#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000011610
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011611_ACEOF
11612rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011614 (eval $ac_compile) 2>&5
11615 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011617 (exit $ac_status); } &&
11618 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011620 (eval $ac_try) 2>&5
11621 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011623 (exit $ac_status); }; }; then
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000011624 ac_cv_c_inline=$ac_kw; break
11625else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011626 echo "$as_me: failed program was:" >&5
11627cat conftest.$ac_ext >&5
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000011628fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011629rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000011630done
11631
11632fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011633echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011634echo "${ECHO_T}$ac_cv_c_inline" >&6
11635case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000011636 inline | yes) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011637 no)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011638cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011639#define inline
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011640_ACEOF
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000011641 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011642 *) cat >>confdefs.h <<_ACEOF
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000011643#define inline $ac_cv_c_inline
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011644_ACEOF
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000011645 ;;
11646esac
11647
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011648echo "$as_me:$LINENO: checking for mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011649echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11650if test "${ac_cv_type_mode_t+set}" = set; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
11652else
11653 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011654#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011655#include "confdefs.h"
11656$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011657#ifdef F77_DUMMY_MAIN
11658# ifdef __cplusplus
11659 extern "C"
11660# endif
11661 int F77_DUMMY_MAIN() { return 1; }
11662#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011663int
11664main ()
11665{
11666if ((mode_t *) 0)
11667 return 0;
11668if (sizeof (mode_t))
11669 return 0;
11670 ;
11671 return 0;
11672}
11673_ACEOF
11674rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011676 (eval $ac_compile) 2>&5
11677 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011679 (exit $ac_status); } &&
11680 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011682 (eval $ac_try) 2>&5
11683 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011685 (exit $ac_status); }; }; then
11686 ac_cv_type_mode_t=yes
11687else
11688 echo "$as_me: failed program was:" >&5
11689cat conftest.$ac_ext >&5
11690ac_cv_type_mode_t=no
11691fi
11692rm -f conftest.$ac_objext conftest.$ac_ext
11693fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011694echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011695echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11696if test $ac_cv_type_mode_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011697
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011698cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000011699#define HAVE_MODE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011700_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011701
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011702
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000011703fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011704echo "$as_me:$LINENO: checking for off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011705echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11706if test "${ac_cv_type_off_t+set}" = set; then
11707 echo $ECHO_N "(cached) $ECHO_C" >&6
11708else
11709 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011710#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011711#include "confdefs.h"
11712$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011713#ifdef F77_DUMMY_MAIN
11714# ifdef __cplusplus
11715 extern "C"
11716# endif
11717 int F77_DUMMY_MAIN() { return 1; }
11718#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011719int
11720main ()
11721{
11722if ((off_t *) 0)
11723 return 0;
11724if (sizeof (off_t))
11725 return 0;
11726 ;
11727 return 0;
11728}
11729_ACEOF
11730rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011732 (eval $ac_compile) 2>&5
11733 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011735 (exit $ac_status); } &&
11736 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011738 (eval $ac_try) 2>&5
11739 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011741 (exit $ac_status); }; }; then
11742 ac_cv_type_off_t=yes
11743else
11744 echo "$as_me: failed program was:" >&5
11745cat conftest.$ac_ext >&5
11746ac_cv_type_off_t=no
11747fi
11748rm -f conftest.$ac_objext conftest.$ac_ext
11749fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011750echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011751echo "${ECHO_T}$ac_cv_type_off_t" >&6
11752if test $ac_cv_type_off_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011753
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011754cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000011755#define HAVE_OFF_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011756_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011757
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011758
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000011759fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011760echo "$as_me:$LINENO: checking for pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011761echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11762if test "${ac_cv_type_pid_t+set}" = set; then
11763 echo $ECHO_N "(cached) $ECHO_C" >&6
11764else
11765 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011766#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011767#include "confdefs.h"
11768$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011769#ifdef F77_DUMMY_MAIN
11770# ifdef __cplusplus
11771 extern "C"
11772# endif
11773 int F77_DUMMY_MAIN() { return 1; }
11774#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011775int
11776main ()
11777{
11778if ((pid_t *) 0)
11779 return 0;
11780if (sizeof (pid_t))
11781 return 0;
11782 ;
11783 return 0;
11784}
11785_ACEOF
11786rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011788 (eval $ac_compile) 2>&5
11789 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011791 (exit $ac_status); } &&
11792 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011794 (eval $ac_try) 2>&5
11795 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011797 (exit $ac_status); }; }; then
11798 ac_cv_type_pid_t=yes
11799else
11800 echo "$as_me: failed program was:" >&5
11801cat conftest.$ac_ext >&5
11802ac_cv_type_pid_t=no
11803fi
11804rm -f conftest.$ac_objext conftest.$ac_ext
11805fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011806echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011807echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11808if test $ac_cv_type_pid_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011809
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011810cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000011811#define HAVE_PID_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011812_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011813
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011814
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000011815fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011816echo "$as_me:$LINENO: checking for size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011817echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11818if test "${ac_cv_type_size_t+set}" = set; then
11819 echo $ECHO_N "(cached) $ECHO_C" >&6
11820else
11821 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011822#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011823#include "confdefs.h"
11824$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011825#ifdef F77_DUMMY_MAIN
11826# ifdef __cplusplus
11827 extern "C"
11828# endif
11829 int F77_DUMMY_MAIN() { return 1; }
11830#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011831int
11832main ()
11833{
11834if ((size_t *) 0)
11835 return 0;
11836if (sizeof (size_t))
11837 return 0;
11838 ;
11839 return 0;
11840}
11841_ACEOF
11842rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011844 (eval $ac_compile) 2>&5
11845 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011847 (exit $ac_status); } &&
11848 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011850 (eval $ac_try) 2>&5
11851 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011853 (exit $ac_status); }; }; then
11854 ac_cv_type_size_t=yes
11855else
11856 echo "$as_me: failed program was:" >&5
11857cat conftest.$ac_ext >&5
11858ac_cv_type_size_t=no
11859fi
11860rm -f conftest.$ac_objext conftest.$ac_ext
11861fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011862echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011863echo "${ECHO_T}$ac_cv_type_size_t" >&6
11864if test $ac_cv_type_size_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011865
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011866cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000011867#define HAVE_SIZE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011868_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011869
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000011870
11871fi
11872echo "$as_me:$LINENO: checking for ssize_t" >&5
11873echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11874if test "${ac_cv_type_ssize_t+set}" = set; then
11875 echo $ECHO_N "(cached) $ECHO_C" >&6
11876else
11877 cat >conftest.$ac_ext <<_ACEOF
11878#line $LINENO "configure"
11879#include "confdefs.h"
11880$ac_includes_default
11881#ifdef F77_DUMMY_MAIN
11882# ifdef __cplusplus
11883 extern "C"
11884# endif
11885 int F77_DUMMY_MAIN() { return 1; }
11886#endif
11887int
11888main ()
11889{
11890if ((ssize_t *) 0)
11891 return 0;
11892if (sizeof (ssize_t))
11893 return 0;
11894 ;
11895 return 0;
11896}
11897_ACEOF
11898rm -f conftest.$ac_objext
11899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11900 (eval $ac_compile) 2>&5
11901 ac_status=$?
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); } &&
11904 { ac_try='test -s conftest.$ac_objext'
11905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11907 ac_status=$?
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; }; then
11910 ac_cv_type_ssize_t=yes
11911else
11912 echo "$as_me: failed program was:" >&5
11913cat conftest.$ac_ext >&5
11914ac_cv_type_ssize_t=no
11915fi
11916rm -f conftest.$ac_objext conftest.$ac_ext
11917fi
11918echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11919echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11920if test $ac_cv_type_ssize_t = yes; then
11921
11922cat >>confdefs.h <<_ACEOF
11923#define HAVE_SSIZE_T 1
11924_ACEOF
11925
11926
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011927fi
11928
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011929echo "$as_me:$LINENO: checking for long long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011930echo $ECHO_N "checking for long long... $ECHO_C" >&6
11931if test "${ac_cv_type_long_long+set}" = set; then
11932 echo $ECHO_N "(cached) $ECHO_C" >&6
11933else
11934 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011935#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011936#include "confdefs.h"
11937$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011938#ifdef F77_DUMMY_MAIN
11939# ifdef __cplusplus
11940 extern "C"
11941# endif
11942 int F77_DUMMY_MAIN() { return 1; }
11943#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011944int
11945main ()
11946{
11947if ((long long *) 0)
11948 return 0;
11949if (sizeof (long long))
11950 return 0;
11951 ;
11952 return 0;
11953}
11954_ACEOF
11955rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011957 (eval $ac_compile) 2>&5
11958 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011960 (exit $ac_status); } &&
11961 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011963 (eval $ac_try) 2>&5
11964 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011966 (exit $ac_status); }; }; then
11967 ac_cv_type_long_long=yes
11968else
11969 echo "$as_me: failed program was:" >&5
11970cat conftest.$ac_ext >&5
11971ac_cv_type_long_long=no
11972fi
11973rm -f conftest.$ac_objext conftest.$ac_ext
11974fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011975echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011976echo "${ECHO_T}$ac_cv_type_long_long" >&6
11977
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011978echo "$as_me:$LINENO: checking size of long long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011979echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11980if test "${ac_cv_sizeof_long_long+set}" = set; then
11981 echo $ECHO_N "(cached) $ECHO_C" >&6
11982else
11983 if test "$ac_cv_type_long_long" = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011984 # The cast to unsigned long works around a bug in the HP C Compiler
11985 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11986 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11987 # This bug is HP SR number 8606223364.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011988 if test "$cross_compiling" = yes; then
11989 # Depending upon the size, compute the lo and hi bounds.
11990cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011991#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011992#include "confdefs.h"
11993$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011994#ifdef F77_DUMMY_MAIN
11995# ifdef __cplusplus
11996 extern "C"
11997# endif
11998 int F77_DUMMY_MAIN() { return 1; }
11999#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012000int
12001main ()
12002{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012003static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12004test_array [0] = 0
12005
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012006 ;
12007 return 0;
12008}
12009_ACEOF
12010rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012012 (eval $ac_compile) 2>&5
12013 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012015 (exit $ac_status); } &&
12016 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012018 (eval $ac_try) 2>&5
12019 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012021 (exit $ac_status); }; }; then
12022 ac_lo=0 ac_mid=0
12023 while :; do
12024 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012025#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012026#include "confdefs.h"
12027$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012028#ifdef F77_DUMMY_MAIN
12029# ifdef __cplusplus
12030 extern "C"
12031# endif
12032 int F77_DUMMY_MAIN() { return 1; }
12033#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012034int
12035main ()
12036{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012037static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12038test_array [0] = 0
12039
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012040 ;
12041 return 0;
12042}
12043_ACEOF
12044rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012046 (eval $ac_compile) 2>&5
12047 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012049 (exit $ac_status); } &&
12050 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012052 (eval $ac_try) 2>&5
12053 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012055 (exit $ac_status); }; }; then
12056 ac_hi=$ac_mid; break
12057else
12058 echo "$as_me: failed program was:" >&5
12059cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012060ac_lo=`expr $ac_mid + 1`
12061 if test $ac_lo -le $ac_mid; then
12062 ac_lo= ac_hi=
12063 break
12064 fi
12065 ac_mid=`expr 2 '*' $ac_mid + 1`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012066fi
12067rm -f conftest.$ac_objext conftest.$ac_ext
12068 done
12069else
12070 echo "$as_me: failed program was:" >&5
12071cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012072cat >conftest.$ac_ext <<_ACEOF
12073#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012074#include "confdefs.h"
12075$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012076#ifdef F77_DUMMY_MAIN
12077# ifdef __cplusplus
12078 extern "C"
12079# endif
12080 int F77_DUMMY_MAIN() { return 1; }
12081#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012082int
12083main ()
12084{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012085static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12086test_array [0] = 0
12087
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012088 ;
12089 return 0;
12090}
12091_ACEOF
12092rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012094 (eval $ac_compile) 2>&5
12095 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012097 (exit $ac_status); } &&
12098 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012100 (eval $ac_try) 2>&5
12101 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; }; then
12104 ac_hi=-1 ac_mid=-1
12105 while :; do
12106 cat >conftest.$ac_ext <<_ACEOF
12107#line $LINENO "configure"
12108#include "confdefs.h"
12109$ac_includes_default
12110#ifdef F77_DUMMY_MAIN
12111# ifdef __cplusplus
12112 extern "C"
12113# endif
12114 int F77_DUMMY_MAIN() { return 1; }
12115#endif
12116int
12117main ()
12118{
12119static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12120test_array [0] = 0
12121
12122 ;
12123 return 0;
12124}
12125_ACEOF
12126rm -f conftest.$ac_objext
12127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12128 (eval $ac_compile) 2>&5
12129 ac_status=$?
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } &&
12132 { ac_try='test -s conftest.$ac_objext'
12133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12134 (eval $ac_try) 2>&5
12135 ac_status=$?
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012137 (exit $ac_status); }; }; then
12138 ac_lo=$ac_mid; break
12139else
12140 echo "$as_me: failed program was:" >&5
12141cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012142ac_hi=`expr '(' $ac_mid ')' - 1`
12143 if test $ac_mid -le $ac_hi; then
12144 ac_lo= ac_hi=
12145 break
12146 fi
12147 ac_mid=`expr 2 '*' $ac_mid`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012148fi
12149rm -f conftest.$ac_objext conftest.$ac_ext
12150 done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012151else
12152 echo "$as_me: failed program was:" >&5
12153cat conftest.$ac_ext >&5
12154ac_lo= ac_hi=
12155fi
12156rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012157fi
12158rm -f conftest.$ac_objext conftest.$ac_ext
12159# Binary search between lo and hi bounds.
12160while test "x$ac_lo" != "x$ac_hi"; do
12161 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12162 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012163#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012164#include "confdefs.h"
12165$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012166#ifdef F77_DUMMY_MAIN
12167# ifdef __cplusplus
12168 extern "C"
12169# endif
12170 int F77_DUMMY_MAIN() { return 1; }
12171#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012172int
12173main ()
12174{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012175static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12176test_array [0] = 0
12177
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012178 ;
12179 return 0;
12180}
12181_ACEOF
12182rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012184 (eval $ac_compile) 2>&5
12185 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012187 (exit $ac_status); } &&
12188 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012190 (eval $ac_try) 2>&5
12191 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012193 (exit $ac_status); }; }; then
12194 ac_hi=$ac_mid
12195else
12196 echo "$as_me: failed program was:" >&5
12197cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012198ac_lo=`expr '(' $ac_mid ')' + 1`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012199fi
12200rm -f conftest.$ac_objext conftest.$ac_ext
12201done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012202case $ac_lo in
12203?*) ac_cv_sizeof_long_long=$ac_lo;;
12204'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
12205echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
12206 { (exit 1); exit 1; }; } ;;
12207esac
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012208else
12209 if test "$cross_compiling" = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012210 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012211echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12212 { (exit 1); exit 1; }; }
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012213else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012214 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012215#line $LINENO "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012216#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012217$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012218long longval () { return (long) (sizeof (long long)); }
12219unsigned long ulongval () { return (long) (sizeof (long long)); }
12220#include <stdio.h>
12221#include <stdlib.h>
12222#ifdef F77_DUMMY_MAIN
12223# ifdef __cplusplus
12224 extern "C"
12225# endif
12226 int F77_DUMMY_MAIN() { return 1; }
12227#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012228int
12229main ()
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012230{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012231
12232 FILE *f = fopen ("conftest.val", "w");
12233 if (! f)
12234 exit (1);
12235 if (((long) (sizeof (long long))) < 0)
12236 {
12237 long i = longval ();
12238 if (i != ((long) (sizeof (long long))))
12239 exit (1);
12240 fprintf (f, "%ld\n", i);
12241 }
12242 else
12243 {
12244 unsigned long i = ulongval ();
12245 if (i != ((long) (sizeof (long long))))
12246 exit (1);
12247 fprintf (f, "%lu\n", i);
12248 }
12249 exit (ferror (f) || fclose (f) != 0);
12250
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012251 ;
12252 return 0;
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012253}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012254_ACEOF
12255rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012257 (eval $ac_link) 2>&5
12258 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012262 (eval $ac_try) 2>&5
12263 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012265 (exit $ac_status); }; }; then
12266 ac_cv_sizeof_long_long=`cat conftest.val`
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012267else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012268 echo "$as_me: program exited with status $ac_status" >&5
12269echo "$as_me: failed program was:" >&5
12270cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012271( exit $ac_status )
12272{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
12273echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
12274 { (exit 1); exit 1; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012275fi
12276rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12277fi
12278fi
12279rm -f conftest.val
12280else
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012281 ac_cv_sizeof_long_long=0
12282fi
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012283fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012284echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012285echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012286cat >>confdefs.h <<_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012287#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012288_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012289
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012290
12291
12292echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012293echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
12294if test "${wine_cv_linux_input_h+set}" = set; then
12295 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012296else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012297 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012298#line $LINENO "configure"
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012299#include "confdefs.h"
12300
12301 #include <linux/input.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012302
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012303#ifdef F77_DUMMY_MAIN
12304# ifdef __cplusplus
12305 extern "C"
12306# endif
12307 int F77_DUMMY_MAIN() { return 1; }
12308#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012309int
12310main ()
12311{
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012312
12313 int foo = EVIOCGBIT(EV_ABS,42);
12314 int bar = BTN_PINKIE;
12315 int fortytwo = 42;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012316
12317 ;
12318 return 0;
12319}
12320_ACEOF
12321rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012323 (eval $ac_compile) 2>&5
12324 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012326 (exit $ac_status); } &&
12327 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012329 (eval $ac_try) 2>&5
12330 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012332 (exit $ac_status); }; }; then
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012333 wine_cv_linux_input_h=yes
12334else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012335 echo "$as_me: failed program was:" >&5
12336cat conftest.$ac_ext >&5
12337wine_cv_linux_input_h=no
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012338fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012339rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012340
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012341fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012342echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012343echo "${ECHO_T}$wine_cv_linux_input_h" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012344 if test "$wine_cv_linux_input_h" = "yes"
12345 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012346
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012347cat >>confdefs.h <<\_ACEOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012348#define HAVE_CORRECT_LINUXINPUT_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012349_ACEOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012350
12351 fi
12352
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012353
12354echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012355echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
12356if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
12357 echo $ECHO_N "(cached) $ECHO_C" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000012358else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012359 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012360#line $LINENO "configure"
Rein Klazesff7a61f2000-09-24 19:41:57 +000012361#include "confdefs.h"
12362
12363#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012364
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012365#ifdef F77_DUMMY_MAIN
12366# ifdef __cplusplus
12367 extern "C"
12368# endif
12369 int F77_DUMMY_MAIN() { return 1; }
12370#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012371int
12372main ()
12373{
Rein Klazesff7a61f2000-09-24 19:41:57 +000012374
12375 char *name=NULL;
12376 struct hostent he;
12377 struct hostent *result;
12378 char *buf=NULL;
12379 int bufsize=0;
12380 int res,errnr;
12381 char *addr=NULL;
12382 int addrlen=0;
12383 int addrtype=0;
12384 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
12385 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012386
12387 ;
12388 return 0;
12389}
12390_ACEOF
12391rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012393 (eval $ac_compile) 2>&5
12394 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012396 (exit $ac_status); } &&
12397 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012399 (eval $ac_try) 2>&5
12400 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012402 (exit $ac_status); }; }; then
Rein Klazesff7a61f2000-09-24 19:41:57 +000012403 wine_cv_linux_gethostbyname_r_6=yes
12404else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012405 echo "$as_me: failed program was:" >&5
12406cat conftest.$ac_ext >&5
12407wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +000012408
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012409fi
12410rm -f conftest.$ac_objext conftest.$ac_ext
12411
12412fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012413echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012414echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000012415 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
12416 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012417
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012418cat >>confdefs.h <<\_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000012419#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012420_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000012421
12422 fi
12423
Marcus Meissner028e9a11999-08-04 15:07:56 +000012424if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012425then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012426 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012427echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
12428if test "${wine_cv_linux_joystick_22_api+set}" = set; then
12429 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012430else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012431 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012432#line $LINENO "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012433#include "confdefs.h"
12434
Marcus Meissner028e9a11999-08-04 15:07:56 +000012435 #include <sys/ioctl.h>
12436 #include <linux/joystick.h>
12437
12438 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +000012439 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
12440 #error "no 2.2 header"
12441 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012442
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012443#ifdef F77_DUMMY_MAIN
12444# ifdef __cplusplus
12445 extern "C"
12446# endif
12447 int F77_DUMMY_MAIN() { return 1; }
12448#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012449int
12450main ()
12451{
Marcus Meissner028e9a11999-08-04 15:07:56 +000012452/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012453 ;
12454 return 0;
12455}
12456_ACEOF
12457rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012459 (eval $ac_compile) 2>&5
12460 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012462 (exit $ac_status); } &&
12463 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012465 (eval $ac_try) 2>&5
12466 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012468 (exit $ac_status); }; }; then
Marcus Meissner028e9a11999-08-04 15:07:56 +000012469 wine_cv_linux_joystick_22_api=yes
12470else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012471 echo "$as_me: failed program was:" >&5
12472cat conftest.$ac_ext >&5
12473wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +000012474fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012475rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +000012476
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012477fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012478echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012479echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
Rein Klazes87d224a2000-04-24 17:33:49 +000012480 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +000012481 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012482
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012483cat >>confdefs.h <<\_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000012484#define HAVE_LINUX_22_JOYSTICK_API 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012485_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000012486
12487 fi
12488fi
12489
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012490
Marcus Meissner028e9a11999-08-04 15:07:56 +000012491if test "$ac_cv_header_sys_vfs_h" = "yes"
12492then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012493 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012494echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
12495if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
12496 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner028e9a11999-08-04 15:07:56 +000012497else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012498 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012499#line $LINENO "configure"
Marcus Meissner028e9a11999-08-04 15:07:56 +000012500#include "confdefs.h"
12501
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012502 #include <sys/types.h>
12503 #ifdef HAVE_SYS_PARAM_H
12504 # include <sys/param.h>
12505 #endif
12506 #include <sys/vfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012507
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012508#ifdef F77_DUMMY_MAIN
12509# ifdef __cplusplus
12510 extern "C"
12511# endif
12512 int F77_DUMMY_MAIN() { return 1; }
12513#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012514int
12515main ()
12516{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012517
12518 struct statfs stfs;
12519
12520 memset(&stfs,0,sizeof(stfs));
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012521
12522 ;
12523 return 0;
12524}
12525_ACEOF
12526rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012528 (eval $ac_compile) 2>&5
12529 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012531 (exit $ac_status); } &&
12532 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012534 (eval $ac_try) 2>&5
12535 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012537 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012538 wine_cv_sys_vfs_has_statfs=yes
12539else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012540 echo "$as_me: failed program was:" >&5
12541cat conftest.$ac_ext >&5
12542wine_cv_sys_vfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012543
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012544fi
12545rm -f conftest.$ac_objext conftest.$ac_ext
12546
12547fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012548echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012549echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012550 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
12551 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012552
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012553cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012554#define STATFS_DEFINED_BY_SYS_VFS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012555_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012556
12557 fi
12558fi
12559
12560if test "$ac_cv_header_sys_statfs_h" = "yes"
12561then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012562 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012563echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
12564if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
12565 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012566else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012567 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012568#line $LINENO "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012569#include "confdefs.h"
12570
12571 #include <sys/types.h>
12572 #ifdef HAVE_SYS_PARAM_H
12573 # include <sys/param.h>
12574 #endif
12575 #include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012576
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012577#ifdef F77_DUMMY_MAIN
12578# ifdef __cplusplus
12579 extern "C"
12580# endif
12581 int F77_DUMMY_MAIN() { return 1; }
12582#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012583int
12584main ()
12585{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012586
12587 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012588
12589 ;
12590 return 0;
12591}
12592_ACEOF
12593rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012595 (eval $ac_compile) 2>&5
12596 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012598 (exit $ac_status); } &&
12599 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012601 (eval $ac_try) 2>&5
12602 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012604 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012605 wine_cv_sys_statfs_has_statfs=yes
12606else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012607 echo "$as_me: failed program was:" >&5
12608cat conftest.$ac_ext >&5
12609wine_cv_sys_statfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012610
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012611fi
12612rm -f conftest.$ac_objext conftest.$ac_ext
12613
12614fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012615echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012616echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012617 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
12618 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012619
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012620cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012621#define STATFS_DEFINED_BY_SYS_STATFS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012622_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012623
12624 fi
12625fi
12626
12627if test "$ac_cv_header_sys_mount_h" = "yes"
12628then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012629 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012630echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
12631if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
12632 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012633else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012634 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012635#line $LINENO "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012636#include "confdefs.h"
12637
12638 #include <sys/types.h>
12639 #ifdef HAVE_SYS_PARAM_H
12640 # include <sys/param.h>
12641 #endif
12642 #include <sys/mount.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012643
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012644#ifdef F77_DUMMY_MAIN
12645# ifdef __cplusplus
12646 extern "C"
12647# endif
12648 int F77_DUMMY_MAIN() { return 1; }
12649#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012650int
12651main ()
12652{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012653
12654 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012655
12656 ;
12657 return 0;
12658}
12659_ACEOF
12660rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012662 (eval $ac_compile) 2>&5
12663 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012665 (exit $ac_status); } &&
12666 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012668 (eval $ac_try) 2>&5
12669 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012671 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012672 wine_cv_sys_mount_has_statfs=yes
12673else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012674 echo "$as_me: failed program was:" >&5
12675cat conftest.$ac_ext >&5
12676wine_cv_sys_mount_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012677
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012678fi
12679rm -f conftest.$ac_objext conftest.$ac_ext
12680
12681fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012682echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012683echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012684 if test "$wine_cv_sys_mount_has_statfs" = "yes"
12685 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012686
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012687cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012688#define STATFS_DEFINED_BY_SYS_MOUNT 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012689_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012690
12691 fi
12692fi
12693
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012694
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012695echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012696echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
12697if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012699else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012700 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012701#line $LINENO "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012702#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012703#include <sys/types.h>
12704#ifdef HAVE_SYS_PARAM_H
12705# include <sys/param.h>
12706#endif
12707#ifdef STATFS_DEFINED_BY_SYS_MOUNT
12708# include <sys/mount.h>
12709#else
12710# ifdef STATFS_DEFINED_BY_SYS_VFS
12711# include <sys/vfs.h>
12712# else
12713# ifdef STATFS_DEFINED_BY_SYS_STATFS
12714# include <sys/statfs.h>
12715# endif
12716# endif
12717#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012718#ifdef F77_DUMMY_MAIN
12719# ifdef __cplusplus
12720 extern "C"
12721# endif
12722 int F77_DUMMY_MAIN() { return 1; }
12723#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012724int
12725main ()
12726{
12727struct statfs s; s.f_bfree = 0
12728 ;
12729 return 0;
12730}
12731_ACEOF
12732rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012734 (eval $ac_compile) 2>&5
12735 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012737 (exit $ac_status); } &&
12738 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012740 (eval $ac_try) 2>&5
12741 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012743 (exit $ac_status); }; }; then
12744 ac_cv_c_statfs_f_bfree="yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012745else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012746 echo "$as_me: failed program was:" >&5
12747cat conftest.$ac_ext >&5
12748ac_cv_c_statfs_f_bfree="no"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012749fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012750rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012751fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012752echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012753echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
12754if test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012755
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012756cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012757#define STATFS_HAS_BFREE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012758_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012759
12760fi
12761
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012762
12763
12764echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012765echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
12766if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
12767 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012768else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012769 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012770#line $LINENO "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012771#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012772#include <sys/types.h>
12773#ifdef HAVE_SYS_PARAM_H
12774# include <sys/param.h>
12775#endif
12776#ifdef STATFS_DEFINED_BY_SYS_MOUNT
12777# include <sys/mount.h>
12778#else
12779# ifdef STATFS_DEFINED_BY_SYS_VFS
12780# include <sys/vfs.h>
12781# else
12782# ifdef STATFS_DEFINED_BY_SYS_STATFS
12783# include <sys/statfs.h>
12784# endif
12785# endif
12786#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012787#ifdef F77_DUMMY_MAIN
12788# ifdef __cplusplus
12789 extern "C"
12790# endif
12791 int F77_DUMMY_MAIN() { return 1; }
12792#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012793int
12794main ()
12795{
12796struct statfs s; s.f_bavail = 0
12797 ;
12798 return 0;
12799}
12800_ACEOF
12801rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012803 (eval $ac_compile) 2>&5
12804 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012806 (exit $ac_status); } &&
12807 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012809 (eval $ac_try) 2>&5
12810 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012812 (exit $ac_status); }; }; then
12813 ac_cv_c_statfs_f_bavail="yes"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012814else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012815 echo "$as_me: failed program was:" >&5
12816cat conftest.$ac_ext >&5
12817ac_cv_c_statfs_f_bavail="no"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012818fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012819rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012820fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012821echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012822echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
12823if test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012824
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012825cat >>confdefs.h <<\_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012826#define STATFS_HAS_BAVAIL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012827_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012828
12829fi
12830
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012831
12832
12833echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012834echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
12835if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard829fe321998-07-26 14:27:39 +000012837else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012838 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012839#line $LINENO "configure"
Alexandre Julliard829fe321998-07-26 14:27:39 +000012840#include "confdefs.h"
12841#include <sys/types.h>
12842#include <sys/socket.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012843#ifdef F77_DUMMY_MAIN
12844# ifdef __cplusplus
12845 extern "C"
12846# endif
12847 int F77_DUMMY_MAIN() { return 1; }
12848#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012849int
12850main ()
12851{
12852struct msghdr s; s.msg_accrights = 0
12853 ;
12854 return 0;
12855}
12856_ACEOF
12857rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012859 (eval $ac_compile) 2>&5
12860 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012862 (exit $ac_status); } &&
12863 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012865 (eval $ac_try) 2>&5
12866 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012868 (exit $ac_status); }; }; then
12869 ac_cv_c_msghdr_msg_accrights="yes"
Alexandre Julliard829fe321998-07-26 14:27:39 +000012870else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012871 echo "$as_me: failed program was:" >&5
12872cat conftest.$ac_ext >&5
12873ac_cv_c_msghdr_msg_accrights="no"
Alexandre Julliard829fe321998-07-26 14:27:39 +000012874fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012875rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard829fe321998-07-26 14:27:39 +000012876fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012877echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012878echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
12879if test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
Alexandre Julliard829fe321998-07-26 14:27:39 +000012880
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012881cat >>confdefs.h <<\_ACEOF
Alexandre Julliard829fe321998-07-26 14:27:39 +000012882#define HAVE_MSGHDR_ACCRIGHTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012883_ACEOF
Alexandre Julliard829fe321998-07-26 14:27:39 +000012884
12885fi
12886
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012887
12888
12889echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012890echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
12891if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
12892 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000012893else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012894 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012895#line $LINENO "configure"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000012896#include "confdefs.h"
Juergen Lock2d33ab92000-02-13 16:03:29 +000012897#include <sys/types.h>
12898#include <sys/socket.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012899#ifdef F77_DUMMY_MAIN
12900# ifdef __cplusplus
12901 extern "C"
12902# endif
12903 int F77_DUMMY_MAIN() { return 1; }
12904#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012905int
12906main ()
12907{
12908struct sockaddr s; s.sa_len = 0
12909 ;
12910 return 0;
12911}
12912_ACEOF
12913rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012915 (eval $ac_compile) 2>&5
12916 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012918 (exit $ac_status); } &&
12919 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012921 (eval $ac_try) 2>&5
12922 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012924 (exit $ac_status); }; }; then
Patrik Stridvall09da9662001-07-08 22:30:50 +000012925 ac_cv_c_sockaddr_sa_len="yes"
12926else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012927 echo "$as_me: failed program was:" >&5
12928cat conftest.$ac_ext >&5
12929ac_cv_c_sockaddr_sa_len="no"
Patrik Stridvall09da9662001-07-08 22:30:50 +000012930fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012931rm -f conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall09da9662001-07-08 22:30:50 +000012932fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012933echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012934echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
12935if test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
Patrik Stridvall09da9662001-07-08 22:30:50 +000012936
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012937cat >>confdefs.h <<\_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000012938#define HAVE_SOCKADDR_SA_LEN 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012939_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000012940
12941fi
12942
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012943
12944
12945echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012946echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
12947if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
12948 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall09da9662001-07-08 22:30:50 +000012949else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012950 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012951#line $LINENO "configure"
Patrik Stridvall09da9662001-07-08 22:30:50 +000012952#include "confdefs.h"
12953#include <sys/types.h>
12954#include <sys/socket.h>
Juergen Lock2d33ab92000-02-13 16:03:29 +000012955#include <sys/un.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012956#ifdef F77_DUMMY_MAIN
12957# ifdef __cplusplus
12958 extern "C"
12959# endif
12960 int F77_DUMMY_MAIN() { return 1; }
12961#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012962int
12963main ()
12964{
12965struct sockaddr_un s; s.sun_len = 0
12966 ;
12967 return 0;
12968}
12969_ACEOF
12970rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012972 (eval $ac_compile) 2>&5
12973 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012975 (exit $ac_status); } &&
12976 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012978 (eval $ac_try) 2>&5
12979 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012981 (exit $ac_status); }; }; then
12982 ac_cv_c_sockaddr_un_sun_len="yes"
Juergen Lock2d33ab92000-02-13 16:03:29 +000012983else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012984 echo "$as_me: failed program was:" >&5
12985cat conftest.$ac_ext >&5
12986ac_cv_c_sockaddr_un_sun_len="no"
Juergen Lock2d33ab92000-02-13 16:03:29 +000012987fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012988rm -f conftest.$ac_objext conftest.$ac_ext
Juergen Lock2d33ab92000-02-13 16:03:29 +000012989fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012990echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012991echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
12992if test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
Juergen Lock2d33ab92000-02-13 16:03:29 +000012993
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012994cat >>confdefs.h <<\_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000012995#define HAVE_SOCKADDR_SUN_LEN 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012996_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000012997
12998fi
12999
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013000
13001
13002
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013003case $host_cpu in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013004 *i345678986* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013005 echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013006echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
13007if test "${ac_cv_cpp_def_i386+set}" = set; then
13008 echo $ECHO_N "(cached) $ECHO_C" >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000013009else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013010 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013011#line $LINENO "configure"
Juergen Lock2d33ab92000-02-13 16:03:29 +000013012#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013013#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013014yes
13015#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013016_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013017if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13018 egrep "yes" >/dev/null 2>&1; then
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013019 ac_cv_cpp_def_i386="yes"
13020else
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013021 ac_cv_cpp_def_i386="no"
13022fi
13023rm -f conftest*
13024
13025fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013026echo "$as_me:$LINENO: result: $ac_cv_cpp_def_i386" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013027echo "${ECHO_T}$ac_cv_cpp_def_i386" >&6
13028 ;;
13029esac
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013030if test "$ac_cv_cpp_def_i386" = "yes"
13031then
13032 CFLAGS="$CFLAGS -D__i386__"
Patrik Stridvalla9be64e1999-07-31 17:39:44 +000013033 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013034fi
13035
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013036
13037
13038
13039
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013040ac_config_commands="$ac_config_commands controls"
13041
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013042ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
Marcus Meissnera7f5cb51999-04-16 08:47:41 +000013043
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013044ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
Marcus Meissnera7f5cb51999-04-16 08:47:41 +000013045
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013046ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
Alexandre Julliard829fe321998-07-26 14:27:39 +000013047
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013048ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
François Gouget14259412001-11-06 20:57:11 +000013049
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013050ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
François Gouget14259412001-11-06 20:57:11 +000013051
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013052ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000013053
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013054ac_config_commands="$ac_config_commands dlls/dinput/joystick"
13055
13056ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
13057
13058ac_config_commands="$ac_config_commands dlls/dinput/mouse"
13059
Alexandre Julliard89118562002-03-27 21:13:40 +000013060ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
13061
13062ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
13063
13064ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
13065
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013066ac_config_commands="$ac_config_commands dlls/kernel/messages"
13067
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000013068ac_config_commands="$ac_config_commands dlls/kernel/tests"
13069
Marcus Meissnere8d97702002-03-26 01:54:25 +000013070ac_config_commands="$ac_config_commands dlls/oleaut32/tests"
13071
Juergen Schmiedc74a7912002-05-09 19:48:07 +000013072ac_config_commands="$ac_config_commands dlls/shlwapi/tests"
13073
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013074ac_config_commands="$ac_config_commands dlls/user/dde"
13075
13076ac_config_commands="$ac_config_commands dlls/user/resources"
13077
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000013078ac_config_commands="$ac_config_commands dlls/user/tests"
13079
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013080ac_config_commands="$ac_config_commands dlls/wineps/data"
13081
Alexandre Julliard9a68b7b2002-04-27 21:19:22 +000013082ac_config_commands="$ac_config_commands dlls/winsock/tests"
13083
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013084ac_config_commands="$ac_config_commands files"
13085
13086ac_config_commands="$ac_config_commands graphics"
13087
13088ac_config_commands="$ac_config_commands graphics/x11drv"
13089
13090ac_config_commands="$ac_config_commands if1632"
13091
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013092ac_config_commands="$ac_config_commands include/wine"
13093
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013094ac_config_commands="$ac_config_commands loader"
13095
13096ac_config_commands="$ac_config_commands loader/ne"
13097
13098ac_config_commands="$ac_config_commands memory"
13099
13100ac_config_commands="$ac_config_commands misc"
13101
13102ac_config_commands="$ac_config_commands msdos"
13103
13104ac_config_commands="$ac_config_commands objects"
13105
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000013106ac_config_commands="$ac_config_commands programs/regapi/tests"
13107
13108ac_config_commands="$ac_config_commands programs/winetest/tests"
13109
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013110ac_config_commands="$ac_config_commands relay32"
13111
13112ac_config_commands="$ac_config_commands scheduler"
13113
13114ac_config_commands="$ac_config_commands win32"
13115
13116ac_config_commands="$ac_config_commands windows"
13117
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000013118
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000013119MAKE_RULES=Make.rules
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013120
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013121
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +000013122MAKE_DLL_RULES=dlls/Makedll.rules
13123
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013124
Alexandre Julliard626f4252000-11-10 23:35:20 +000013125MAKE_PROG_RULES=programs/Makeprog.rules
13126
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013127
Eric Pouechbed67fc2002-05-22 02:00:05 +000013128ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules programs/Makeprog.rules Makefile debugger/Makefile dlls/Makefile dlls/advapi32/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dsound/Makefile dlls/gdi/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/kernel/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msdmo/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt20/Makefile dlls/msvideo/Makefile dlls/netapi32/Makefile dlls/ntdll/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/user/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winspool/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile library/Makefile miscemu/Makefile ole/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/regtest/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineconsole/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wrc/Makefile tsx11/Makefile unicode/Makefile"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013129
Alexandre Julliard626f4252000-11-10 23:35:20 +000013130
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013131cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013132# This file is a shell script that caches the results of configure
13133# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013134# scripts and configure runs, see configure's option --config-cache.
13135# It is not useful on other systems. If it contains results you don't
13136# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013137#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013138# config.status only pays attention to the cache file if you give it
13139# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013140#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013141# `ac_cv_env_foo' variables (set or unset) will be overriden when
13142# loading this file, other *unset* `ac_cv_foo' will be assigned the
13143# following values.
13144
13145_ACEOF
13146
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000013147# The following way of writing the cache mishandles newlines in values,
13148# but we know of no workaround that is simple, portable, and efficient.
13149# So, don't put newlines in cache variables' values.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013150# Ultrix sh set writes to stderr and can't be redirected directly,
13151# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013152{
13153 (set) 2>&1 |
13154 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13155 *ac_space=\ *)
13156 # `set' does not quote correctly, so add quotes (double-quote
13157 # substitution turns \\\\ into \\, and sed turns \\ into \).
13158 sed -n \
13159 "s/'/'\\\\''/g;
13160 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13161 ;;
13162 *)
13163 # `set' quotes correctly as required by POSIX, so do not add quotes.
13164 sed -n \
13165 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13166 ;;
13167 esac;
13168} |
13169 sed '
13170 t clear
13171 : clear
13172 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13173 t end
13174 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13175 : end' >>confcache
13176if cmp -s $cache_file confcache; then :; else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013177 if test -w $cache_file; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013178 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13179 cat confcache >$cache_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013180 else
13181 echo "not updating unwritable cache $cache_file"
13182 fi
13183fi
13184rm -f confcache
13185
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013186test "x$prefix" = xNONE && prefix=$ac_default_prefix
13187# Let make expand exec_prefix.
13188test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13189
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013190# VPATH may cause trouble with some makes, so we remove $(srcdir),
13191# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13192# trailing colons and then remove the whole line if VPATH becomes empty
13193# (actually we leave an empty line to preserve line numbers).
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013194if test "x$srcdir" = x.; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013195 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13196s/:*\$(srcdir):*/:/;
13197s/:*\${srcdir}:*/:/;
13198s/:*@srcdir@:*/:/;
13199s/^\([^=]*=[ ]*\):*/\1/;
13200s/:*$//;
13201s/^[^=]*=[ ]*$//;
13202}'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013203fi
13204
Alexandre Julliard18f92e71996-07-17 20:02:21 +000013205DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013206
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013207
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013208: ${CONFIG_STATUS=./config.status}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013209ac_clean_files_save=$ac_clean_files
13210ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013211{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013212echo "$as_me: creating $CONFIG_STATUS" >&6;}
13213cat >$CONFIG_STATUS <<_ACEOF
13214#! $SHELL
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013215# Generated by $as_me.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013216# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013217# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013218# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013219
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013220debug=false
13221SHELL=\${CONFIG_SHELL-$SHELL}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013222_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013223
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013224cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013225
13226## --------------------- ##
13227## M4sh Initialization. ##
13228## --------------------- ##
13229
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013230# Be Bourne compatible
13231if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13232 emulate sh
13233 NULLCMD=:
13234elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13235 set -o posix
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000013236fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013237
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013238# NLS nuisances.
13239# Support unset when possible.
13240if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
13241 as_unset=unset
13242else
13243 as_unset=false
13244fi
13245
13246(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
13247 { $as_unset LANG || test "${LANG+set}" != set; } ||
13248 { LANG=C; export LANG; }
13249(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
13250 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
13251 { LC_ALL=C; export LC_ALL; }
13252(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
13253 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
13254 { LC_TIME=C; export LC_TIME; }
13255(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
13256 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
13257 { LC_CTYPE=C; export LC_CTYPE; }
13258(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
13259 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
13260 { LANGUAGE=C; export LANGUAGE; }
13261(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
13262 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
13263 { LC_COLLATE=C; export LC_COLLATE; }
13264(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
13265 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
13266 { LC_NUMERIC=C; export LC_NUMERIC; }
13267(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
13268 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
13269 { LC_MESSAGES=C; export LC_MESSAGES; }
13270
13271
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013272# Name of the executable.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013273as_me=`(basename "$0") 2>/dev/null ||
13274$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13275 X"$0" : 'X\(//\)$' \| \
13276 X"$0" : 'X\(/\)$' \| \
13277 . : '\(.\)' 2>/dev/null ||
13278echo X/"$0" |
13279 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13280 /^X\/\(\/\/\)$/{ s//\1/; q; }
13281 /^X\/\(\/\).*/{ s//\1/; q; }
13282 s/.*/./; q'`
13283
13284# PATH needs CR, and LINENO needs CR and PATH.
13285# Avoid depending upon Character Ranges.
13286as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13287as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13288as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13289as_cr_digits='0123456789'
13290as_cr_alnum=$as_cr_Letters$as_cr_digits
13291
13292# The user is always right.
13293if test "${PATH_SEPARATOR+set}" != set; then
13294 echo "#! /bin/sh" >conftest.sh
13295 echo "exit 0" >>conftest.sh
13296 chmod +x conftest.sh
13297 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
13298 PATH_SEPARATOR=';'
13299 else
13300 PATH_SEPARATOR=:
13301 fi
13302 rm -f conftest.sh
13303fi
13304
13305
13306 as_lineno_1=$LINENO
13307 as_lineno_2=$LINENO
13308 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13309 test "x$as_lineno_1" != "x$as_lineno_2" &&
13310 test "x$as_lineno_3" = "x$as_lineno_2" || {
13311 # Find who we are. Look in the path if we contain no path at all
13312 # relative or not.
13313 case $0 in
13314 *[\\/]* ) as_myself=$0 ;;
13315 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13316for as_dir in $PATH
13317do
13318 IFS=$as_save_IFS
13319 test -z "$as_dir" && as_dir=.
13320 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13321done
13322
13323 ;;
13324 esac
13325 # We did not find ourselves, most probably we were run as `sh COMMAND'
13326 # in which case we are not to be found in the path.
13327 if test "x$as_myself" = x; then
13328 as_myself=$0
13329 fi
13330 if test ! -f "$as_myself"; then
13331 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13332echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13333 { (exit 1); exit 1; }; }
13334 fi
13335 case $CONFIG_SHELL in
13336 '')
13337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13338for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13339do
13340 IFS=$as_save_IFS
13341 test -z "$as_dir" && as_dir=.
13342 for as_base in sh bash ksh sh5; do
13343 case $as_dir in
13344 /*)
13345 if ("$as_dir/$as_base" -c '
13346 as_lineno_1=$LINENO
13347 as_lineno_2=$LINENO
13348 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13349 test "x$as_lineno_1" != "x$as_lineno_2" &&
13350 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13351 CONFIG_SHELL=$as_dir/$as_base
13352 export CONFIG_SHELL
13353 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13354 fi;;
13355 esac
13356 done
13357done
13358;;
13359 esac
13360
13361 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13362 # uniformly replaced by the line number. The first 'sed' inserts a
13363 # line-number line before each line; the second 'sed' does the real
13364 # work. The second script uses 'N' to pair each line-number line
13365 # with the numbered line, and appends trailing '-' during
13366 # substitution so that $LINENO is not a special case at line end.
13367 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13368 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13369 sed '=' <$as_myself |
13370 sed '
13371 N
13372 s,$,-,
13373 : loop
13374 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13375 t loop
13376 s,-$,,
13377 s,^['$as_cr_digits']*\n,,
13378 ' >$as_me.lineno &&
13379 chmod +x $as_me.lineno ||
13380 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13381echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13382 { (exit 1); exit 1; }; }
13383
13384 # Don't try to exec as it changes $[0], causing all sort of problems
13385 # (the dirname of $[0] is not the place where we might find the
13386 # original and so on. Autoconf is especially sensible to this).
13387 . ./$as_me.lineno
13388 # Exit status is that of the last command.
13389 exit
13390}
13391
13392
13393case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13394 *c*,-n*) ECHO_N= ECHO_C='
13395' ECHO_T=' ' ;;
13396 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13397 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13398esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013399
13400if expr a : '\(a\)' >/dev/null 2>&1; then
13401 as_expr=expr
13402else
13403 as_expr=false
13404fi
13405
13406rm -f conf$$ conf$$.exe conf$$.file
13407echo >conf$$.file
13408if ln -s conf$$.file conf$$ 2>/dev/null; then
13409 # We could just check for DJGPP; but this test a) works b) is more generic
13410 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13411 if test -f conf$$.exe; then
13412 # Don't use ln at all; we don't have any links
13413 as_ln_s='cp -p'
13414 else
13415 as_ln_s='ln -s'
13416 fi
13417elif ln conf$$.file conf$$ 2>/dev/null; then
13418 as_ln_s=ln
13419else
13420 as_ln_s='cp -p'
13421fi
13422rm -f conf$$ conf$$.exe conf$$.file
13423
13424as_executable_p="test -f"
13425
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013426# Sed expression to map a string onto a valid CPP name.
13427as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013428
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013429# Sed expression to map a string onto a valid variable name.
13430as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
13431
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013432
13433# IFS
13434# We need space, tab and new line, in precisely that order.
13435as_nl='
13436'
13437IFS=" $as_nl"
13438
13439# CDPATH.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013440$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013441
13442exec 6>&1
13443
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013444# Open the log real soon, to keep \$[0] and so on meaningful, and to
13445# report actual input values of CONFIG_FILES etc. instead of their
13446# values after options handling. Logging --version etc. is OK.
13447exec 5>>config.log
13448{
13449 echo
13450 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13451## Running $as_me. ##
13452_ASBOX
13453} >&5
13454cat >&5 <<_CSEOF
13455
Alexandre Julliardf85d8da2002-05-10 03:14:24 +000013456This file was extended by Wine $as_me 20020509, which was
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013457generated by GNU Autoconf 2.53. Invocation command line was
13458
13459 CONFIG_FILES = $CONFIG_FILES
13460 CONFIG_HEADERS = $CONFIG_HEADERS
13461 CONFIG_LINKS = $CONFIG_LINKS
13462 CONFIG_COMMANDS = $CONFIG_COMMANDS
13463 $ $0 $@
13464
13465_CSEOF
13466echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13467echo >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013468_ACEOF
13469
13470# Files that config.status was made for.
13471if test -n "$ac_config_files"; then
13472 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13473fi
13474
13475if test -n "$ac_config_headers"; then
13476 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13477fi
13478
13479if test -n "$ac_config_links"; then
13480 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13481fi
13482
13483if test -n "$ac_config_commands"; then
13484 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13485fi
13486
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013487cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013488
13489ac_cs_usage="\
13490\`$as_me' instantiates files from templates according to the
13491current configuration.
13492
13493Usage: $0 [OPTIONS] [FILE]...
13494
13495 -h, --help print this help, then exit
13496 -V, --version print version number, then exit
13497 -d, --debug don't remove temporary files
13498 --recheck update $as_me by reconfiguring in the same conditions
13499 --file=FILE[:TEMPLATE]
13500 instantiate the configuration file FILE
13501 --header=FILE[:TEMPLATE]
13502 instantiate the configuration header FILE
13503
13504Configuration files:
13505$config_files
13506
13507Configuration headers:
13508$config_headers
13509
13510Configuration commands:
13511$config_commands
13512
13513Report bugs to <bug-autoconf@gnu.org>."
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013514_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000013515
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013516cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013517ac_cs_version="\\
Alexandre Julliardf85d8da2002-05-10 03:14:24 +000013518Wine config.status 20020509
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013519configured by $0, generated by GNU Autoconf 2.53,
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013520 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013521
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013522Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
13523Free Software Foundation, Inc.
13524This config.status script is free software; the Free Software Foundation
13525gives unlimited permission to copy, distribute and modify it."
13526srcdir=$srcdir
13527INSTALL="$INSTALL"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013528_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013529
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013530cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013531# If no file are specified by the user, then we need to provide default
13532# value. By we need to know if files were specified by the user.
13533ac_need_defaults=:
13534while test $# != 0
13535do
13536 case $1 in
13537 --*=*)
13538 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13539 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13540 shift
13541 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
13542 shift
13543 ;;
13544 -*);;
13545 *) # This is not an option, so the user has probably given explicit
13546 # arguments.
13547 ac_need_defaults=false;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013548 esac
13549
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013550 case $1 in
13551 # Handling of the options.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013552_ACEOF
13553cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013554 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13555 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
13556 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013557_ACEOF
13558cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013559 --version | --vers* | -V )
13560 echo "$ac_cs_version"; exit 0 ;;
13561 --he | --h)
13562 # Conflict between --help and --header
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013563 { { echo "$as_me:$LINENO: error: ambiguous option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013564Try \`$0 --help' for more information." >&5
13565echo "$as_me: error: ambiguous option: $1
13566Try \`$0 --help' for more information." >&2;}
13567 { (exit 1); exit 1; }; };;
13568 --help | --hel | -h )
13569 echo "$ac_cs_usage"; exit 0 ;;
13570 --debug | --d* | -d )
13571 debug=: ;;
13572 --file | --fil | --fi | --f )
13573 shift
13574 CONFIG_FILES="$CONFIG_FILES $1"
13575 ac_need_defaults=false;;
13576 --header | --heade | --head | --hea )
13577 shift
13578 CONFIG_HEADERS="$CONFIG_HEADERS $1"
13579 ac_need_defaults=false;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013580
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013581 # This is an error.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013582 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013583Try \`$0 --help' for more information." >&5
13584echo "$as_me: error: unrecognized option: $1
13585Try \`$0 --help' for more information." >&2;}
13586 { (exit 1); exit 1; }; } ;;
13587
13588 *) ac_config_targets="$ac_config_targets $1" ;;
13589
13590 esac
13591 shift
13592done
13593
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013594_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013595
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013596
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013597
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013598
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013599
13600cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013601for ac_config_target in $ac_config_targets
13602do
13603 case "$ac_config_target" in
13604 # Handling of arguments.
13605 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
13606 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
13607 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
13608 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013609 "debugger/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/Makefile" ;;
13610 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
13611 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
13612 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
13613 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
John K. Hohm34909c22002-05-14 21:50:56 +000013614 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013615 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
13616 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
13617 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
13618 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
13619 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
13620 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
13621 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
13622 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
13623 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
13624 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
13625 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
13626 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
13627 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
13628 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
13629 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
13630 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
13631 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
13632 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
13633 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
13634 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
13635 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
Hidenori Takeshima0307f6d2002-03-23 20:18:11 +000013636 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
Eric Pouechbed67fc2002-05-22 02:00:05 +000013637 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
Hidenori Takeshimabcb9c462002-03-22 19:16:10 +000013638 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013639 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
13640 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
Mike McCormackf6be0442002-04-08 23:56:14 +000013641 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013642 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
13643 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
13644 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
13645 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
13646 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
13647 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
13648 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
13649 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
13650 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
13651 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
13652 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
13653 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
13654 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
13655 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
13656 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
13657 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
13658 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
13659 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
13660 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
13661 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
13662 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
13663 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
13664 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
13665 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
13666 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
13667 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
13668 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
Patrik Stridvall4c692b92002-04-29 18:43:35 +000013669 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013670 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
13671 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
13672 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000013673 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013674 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
13675 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
13676 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
13677 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
13678 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
13679 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
13680 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
13681 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
13682 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
13683 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
13684 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
13685 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
13686 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
13687 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
13688 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
13689 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
13690 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
13691 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000013692 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013693 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
13694 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
13695 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
13696 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
13697 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
13698 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
13699 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
13700 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
13701 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013702 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13703 "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013704 "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013705 "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
13706 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
13707 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
13708 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
13709 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
13710 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
Alexandre Julliardacfda142002-05-20 19:18:16 +000013711 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013712 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
13713 "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
13714 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
13715 "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
Andriy Palamarchuk4e2e1762002-04-11 23:58:40 +000013716 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
Andriy Palamarchuk2f0d85c2002-04-29 23:47:39 +000013717 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013718 "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
13719 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
13720 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
13721 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
13722 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
13723 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
Mike Wetherell0d8a9fa2002-05-05 20:31:54 +000013724 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013725 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
13726 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
13727 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013728 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
13729 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
13730 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
13731 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
13732 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
13733 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
13734 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
13735 "tsx11/Makefile" ) CONFIG_FILES="$CONFIG_FILES tsx11/Makefile" ;;
13736 "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013737 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013738 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
13739 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
13740 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
13741 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
13742 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
13743 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
13744 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
13745 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
13746 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
Alexandre Julliard89118562002-03-27 21:13:40 +000013747 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
13748 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
13749 "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013750 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000013751 "dlls/kernel/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/tests" ;;
Marcus Meissnere8d97702002-03-26 01:54:25 +000013752 "dlls/oleaut32/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/oleaut32/tests" ;;
Juergen Schmiedc74a7912002-05-09 19:48:07 +000013753 "dlls/shlwapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/shlwapi/tests" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013754 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
13755 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000013756 "dlls/user/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/tests" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013757 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
Alexandre Julliard9a68b7b2002-04-27 21:19:22 +000013758 "dlls/winsock/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/winsock/tests" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013759 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
13760 "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
13761 "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
13762 "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013763 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013764 "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
13765 "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
13766 "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
13767 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
13768 "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
13769 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000013770 "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
13771 "programs/winetest/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/winetest/tests" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013772 "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
13773 "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
13774 "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
13775 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013776 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013777 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013778echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13779 { (exit 1); exit 1; }; };;
13780 esac
13781done
13782
13783# If the user did not use the arguments to specify the items to instantiate,
13784# then the envvar interface is used. Set only those that are not.
13785# We use the long form for the default assignment because of an extremely
13786# bizarre bug on SunOS 4.1.3.
13787if $ac_need_defaults; then
13788 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13789 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13790 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13791fi
13792
13793# Create a temporary directory, and hook for its removal unless debugging.
13794$debug ||
13795{
13796 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13797 trap '{ (exit 1); exit 1; }' 1 2 13 15
13798}
13799
13800# Create a (secure) tmp directory for tmp files.
13801: ${TMPDIR=/tmp}
13802{
13803 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
13804 test -n "$tmp" && test -d "$tmp"
13805} ||
13806{
13807 tmp=$TMPDIR/cs$$-$RANDOM
13808 (umask 077 && mkdir $tmp)
13809} ||
13810{
13811 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
13812 { (exit 1); exit 1; }
13813}
13814
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013815_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013816
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013817cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013818
13819#
13820# CONFIG_FILES section.
13821#
13822
13823# No need to generate the scripts if there are no CONFIG_FILES.
13824# This happens for instance when ./config.status config.h
13825if test -n "\$CONFIG_FILES"; then
13826 # Protect against being on the right side of a sed subst in config.status.
13827 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13828 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13829s,@SHELL@,$SHELL,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013830s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13831s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13832s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13833s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13834s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13835s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013836s,@exec_prefix@,$exec_prefix,;t t
13837s,@prefix@,$prefix,;t t
13838s,@program_transform_name@,$program_transform_name,;t t
13839s,@bindir@,$bindir,;t t
13840s,@sbindir@,$sbindir,;t t
13841s,@libexecdir@,$libexecdir,;t t
13842s,@datadir@,$datadir,;t t
13843s,@sysconfdir@,$sysconfdir,;t t
13844s,@sharedstatedir@,$sharedstatedir,;t t
13845s,@localstatedir@,$localstatedir,;t t
13846s,@libdir@,$libdir,;t t
13847s,@includedir@,$includedir,;t t
13848s,@oldincludedir@,$oldincludedir,;t t
13849s,@infodir@,$infodir,;t t
13850s,@mandir@,$mandir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013851s,@build_alias@,$build_alias,;t t
13852s,@host_alias@,$host_alias,;t t
13853s,@target_alias@,$target_alias,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013854s,@DEFS@,$DEFS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013855s,@ECHO_C@,$ECHO_C,;t t
13856s,@ECHO_N@,$ECHO_N,;t t
13857s,@ECHO_T@,$ECHO_T,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013858s,@LIBS@,$LIBS,;t t
13859s,@OPTIONS@,$OPTIONS,;t t
13860s,@build@,$build,;t t
13861s,@build_cpu@,$build_cpu,;t t
13862s,@build_vendor@,$build_vendor,;t t
13863s,@build_os@,$build_os,;t t
13864s,@host@,$host,;t t
13865s,@host_cpu@,$host_cpu,;t t
13866s,@host_vendor@,$host_vendor,;t t
13867s,@host_os@,$host_os,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013868s,@SET_MAKE@,$SET_MAKE,;t t
13869s,@CC@,$CC,;t t
13870s,@CFLAGS@,$CFLAGS,;t t
13871s,@LDFLAGS@,$LDFLAGS,;t t
13872s,@CPPFLAGS@,$CPPFLAGS,;t t
13873s,@ac_ct_CC@,$ac_ct_CC,;t t
13874s,@EXEEXT@,$EXEEXT,;t t
13875s,@OBJEXT@,$OBJEXT,;t t
13876s,@CPP@,$CPP,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013877s,@TOOLSDIR@,$TOOLSDIR,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013878s,@X_CFLAGS@,$X_CFLAGS,;t t
13879s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
13880s,@X_LIBS@,$X_LIBS,;t t
13881s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13882s,@YACC@,$YACC,;t t
13883s,@LEX@,$LEX,;t t
13884s,@LEXLIB@,$LEXLIB,;t t
13885s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
13886s,@XYACC@,$XYACC,;t t
13887s,@XLEX@,$XLEX,;t t
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +000013888s,@LD@,$LD,;t t
13889s,@ac_ct_LD@,$ac_ct_LD,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013890s,@AR@,$AR,;t t
13891s,@ac_ct_AR@,$ac_ct_AR,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013892s,@RANLIB@,$RANLIB,;t t
13893s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013894s,@STRIP@,$STRIP,;t t
13895s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13896s,@WINDRES@,$WINDRES,;t t
13897s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013898s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13899s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13900s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13901s,@LN_S@,$LN_S,;t t
Alexandre Julliarddf234a92002-05-22 02:10:39 +000013902s,@LN@,$LN,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013903s,@C2MAN@,$C2MAN,;t t
13904s,@LDCONFIG@,$LDCONFIG,;t t
13905s,@LINT@,$LINT,;t t
13906s,@LINTFLAGS@,$LINTFLAGS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013907s,@JPEGLIB@,$JPEGLIB,;t t
13908s,@XLIB@,$XLIB,;t t
13909s,@XFILES@,$XFILES,;t t
13910s,@OPENGLFILES@,$OPENGLFILES,;t t
13911s,@GLU32FILES@,$GLU32FILES,;t t
13912s,@CURSESLIBS@,$CURSESLIBS,;t t
13913s,@CUPSLIBS@,$CUPSLIBS,;t t
Shi Quan He6b0720f2002-03-21 02:58:39 +000013914s,@sane_devel@,$sane_devel,;t t
13915s,@SANELIBS@,$SANELIBS,;t t
13916s,@SANEINCL@,$SANEINCL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013917s,@ft_devel@,$ft_devel,;t t
13918s,@ft_devel2@,$ft_devel2,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013919s,@FREETYPEINCL@,$FREETYPEINCL,;t t
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000013920s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
13921s,@ARTSLIBS@,$ARTSLIBS,;t t
13922s,@ARTSINCL@,$ARTSINCL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013923s,@DLLWRAP@,$DLLWRAP,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013924s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013925s,@DLLIBS@,$DLLIBS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013926s,@DLLFLAGS@,$DLLFLAGS,;t t
Alexandre Julliardc1bfca02002-03-20 22:19:06 +000013927s,@DLLEXT@,$DLLEXT,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013928s,@LDSHARED@,$LDSHARED,;t t
13929s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
13930s,@LIBEXT@,$LIBEXT,;t t
13931s,@LDPATH@,$LDPATH,;t t
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000013932s,@LDD@,$LDD,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013933s,@ALLOCA@,$ALLOCA,;t t
13934/@MAKE_RULES@/r $MAKE_RULES
13935s,@MAKE_RULES@,,;t t
13936/@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
13937s,@MAKE_DLL_RULES@,,;t t
13938/@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
13939s,@MAKE_PROG_RULES@,,;t t
13940CEOF
13941
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013942_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013943
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013944 cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013945 # Split the substitutions into bite-sized pieces for seds with
13946 # small command number limits, like on Digital OSF/1 and HP-UX.
13947 ac_max_sed_lines=48
13948 ac_sed_frag=1 # Number of current file.
13949 ac_beg=1 # First line for current file.
13950 ac_end=$ac_max_sed_lines # Line after last line for current file.
13951 ac_more_lines=:
13952 ac_sed_cmds=
13953 while $ac_more_lines; do
13954 if test $ac_beg -gt 1; then
13955 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13956 else
13957 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13958 fi
13959 if test ! -s $tmp/subs.frag; then
13960 ac_more_lines=false
13961 else
13962 # The purpose of the label and of the branching condition is to
13963 # speed up the sed processing (if there are no `@' at all, there
13964 # is no need to browse any of the substitutions).
13965 # These are the two extra sed commands mentioned above.
13966 (echo ':t
13967 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13968 if test -z "$ac_sed_cmds"; then
13969 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13970 else
13971 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13972 fi
13973 ac_sed_frag=`expr $ac_sed_frag + 1`
13974 ac_beg=$ac_end
13975 ac_end=`expr $ac_end + $ac_max_sed_lines`
13976 fi
13977 done
13978 if test -z "$ac_sed_cmds"; then
13979 ac_sed_cmds=cat
13980 fi
13981fi # test -n "$CONFIG_FILES"
13982
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013983_ACEOF
13984cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013985for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13986 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13987 case $ac_file in
13988 - | *:- | *:-:* ) # input from stdin
13989 cat >$tmp/stdin
13990 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13991 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13992 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13993 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13994 * ) ac_file_in=$ac_file.in ;;
13995 esac
13996
13997 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013998 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13999$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014000 X"$ac_file" : 'X\(//\)[^/]' \| \
14001 X"$ac_file" : 'X\(//\)$' \| \
14002 X"$ac_file" : 'X\(/\)' \| \
14003 . : '\(.\)' 2>/dev/null ||
14004echo X"$ac_file" |
14005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14006 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14007 /^X\(\/\/\)$/{ s//\1/; q; }
14008 /^X\(\/\).*/{ s//\1/; q; }
14009 s/.*/./; q'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014010 { case "$ac_dir" in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014011 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
14012 *) as_incr_dir=.;;
14013esac
14014as_dummy="$ac_dir"
14015for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
14016 case $as_mkdir_dir in
14017 # Skip DOS drivespec
14018 ?:) as_incr_dir=$as_mkdir_dir ;;
14019 *)
14020 as_incr_dir=$as_incr_dir/$as_mkdir_dir
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014021 test -d "$as_incr_dir" ||
14022 mkdir "$as_incr_dir" ||
14023 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
14024echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
14025 { (exit 1); exit 1; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014026 ;;
14027 esac
14028done; }
14029
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014030 ac_builddir=.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014031
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014032if test "$ac_dir" != .; then
14033 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14034 # A "../" for each directory in $ac_dir_suffix.
14035 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14036else
14037 ac_dir_suffix= ac_top_builddir=
14038fi
14039
14040case $srcdir in
14041 .) # No --srcdir option. We are building in place.
14042 ac_srcdir=.
14043 if test -z "$ac_top_builddir"; then
14044 ac_top_srcdir=.
14045 else
14046 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14047 fi ;;
14048 [\\/]* | ?:[\\/]* ) # Absolute path.
14049 ac_srcdir=$srcdir$ac_dir_suffix;
14050 ac_top_srcdir=$srcdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014051 *) # Relative path.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014052 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14053 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14054esac
14055# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14056# absolute.
14057ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
14058ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
14059ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14060ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14061
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014062
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014063 case $INSTALL in
14064 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014065 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000014066 esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000014067
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014068 if test x"$ac_file" != x-; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014069 { echo "$as_me:$LINENO: creating $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014070echo "$as_me: creating $ac_file" >&6;}
14071 rm -f "$ac_file"
14072 fi
14073 # Let's still pretend it is `configure' which instantiates (i.e., don't
14074 # use $as_me), people would be surprised to read:
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014075 # /* config.h. Generated by config.status. */
14076 if test x"$ac_file" = x-; then
14077 configure_input=
14078 else
14079 configure_input="$ac_file. "
14080 fi
14081 configure_input=$configure_input"Generated from `echo $ac_file_in |
14082 sed 's,.*/,,'` by configure."
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000014083
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014084 # First look for the input files in the build tree, otherwise in the
14085 # src tree.
14086 ac_file_inputs=`IFS=:
14087 for f in $ac_file_in; do
14088 case $f in
14089 -) echo $tmp/stdin ;;
14090 [\\/$]*)
14091 # Absolute (can't be DOS-style, as IFS=:)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014092 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014093echo "$as_me: error: cannot find input file: $f" >&2;}
14094 { (exit 1); exit 1; }; }
14095 echo $f;;
14096 *) # Relative
14097 if test -f "$f"; then
14098 # Build tree
14099 echo $f
14100 elif test -f "$srcdir/$f"; then
14101 # Source tree
14102 echo $srcdir/$f
14103 else
14104 # /dev/null tree
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014105 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014106echo "$as_me: error: cannot find input file: $f" >&2;}
14107 { (exit 1); exit 1; }; }
14108 fi;;
14109 esac
14110 done` || { (exit 1); exit 1; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014111_ACEOF
14112cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014113 sed "$ac_vpsub
14114$extrasub
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014115_ACEOF
14116cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014117:t
14118/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14119s,@configure_input@,$configure_input,;t t
14120s,@srcdir@,$ac_srcdir,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014121s,@abs_srcdir@,$ac_abs_srcdir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014122s,@top_srcdir@,$ac_top_srcdir,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014123s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14124s,@builddir@,$ac_builddir,;t t
14125s,@abs_builddir@,$ac_abs_builddir,;t t
14126s,@top_builddir@,$ac_top_builddir,;t t
14127s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014128s,@INSTALL@,$ac_INSTALL,;t t
14129" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14130 rm -f $tmp/stdin
14131 if test x"$ac_file" != x-; then
14132 mv $tmp/out $ac_file
14133 else
14134 cat $tmp/out
14135 rm -f $tmp/out
14136 fi
14137
14138done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014139_ACEOF
14140cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014141
14142#
14143# CONFIG_HEADER section.
14144#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014145
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014146# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14147# NAME is the cpp macro being defined and VALUE is the value it is being given.
14148#
14149# ac_d sets the value in "#define NAME VALUE" lines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014150ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14151ac_dB='[ ].*$,\1#\2'
14152ac_dC=' '
14153ac_dD=',;t'
14154# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14155ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14156ac_uB='$,\1#\2define\3'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014157ac_uC=' '
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014158ac_uD=',;t'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014159
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014160for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000014161 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014162 case $ac_file in
14163 - | *:- | *:-:* ) # input from stdin
14164 cat >$tmp/stdin
14165 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14166 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14167 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14168 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14169 * ) ac_file_in=$ac_file.in ;;
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014170 esac
14171
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014172 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014173echo "$as_me: creating $ac_file" >&6;}
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014174
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014175 # First look for the input files in the build tree, otherwise in the
14176 # src tree.
14177 ac_file_inputs=`IFS=:
14178 for f in $ac_file_in; do
14179 case $f in
14180 -) echo $tmp/stdin ;;
14181 [\\/$]*)
14182 # Absolute (can't be DOS-style, as IFS=:)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014183 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014184echo "$as_me: error: cannot find input file: $f" >&2;}
14185 { (exit 1); exit 1; }; }
14186 echo $f;;
14187 *) # Relative
14188 if test -f "$f"; then
14189 # Build tree
14190 echo $f
14191 elif test -f "$srcdir/$f"; then
14192 # Source tree
14193 echo $srcdir/$f
14194 else
14195 # /dev/null tree
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014196 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014197echo "$as_me: error: cannot find input file: $f" >&2;}
14198 { (exit 1); exit 1; }; }
14199 fi;;
14200 esac
14201 done` || { (exit 1); exit 1; }
14202 # Remove the trailing spaces.
14203 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014204
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014205_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014206
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014207# Transform confdefs.h into two sed scripts, `conftest.defines' and
14208# `conftest.undefs', that substitutes the proper values into
14209# config.h.in to produce config.h. The first handles `#define'
14210# templates, and the second `#undef' templates.
14211# And first: Protect against being on the right side of a sed subst in
14212# config.status. Protect against being in an unquoted here document
14213# in config.status.
14214rm -f conftest.defines conftest.undefs
14215# Using a here document instead of a string reduces the quoting nightmare.
14216# Putting comments in sed scripts is not portable.
14217#
14218# `end' is used to avoid that the second main sed command (meant for
14219# 0-ary CPP macros) applies to n-ary macro definitions.
14220# See the Autoconf documentation for `clear'.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014221cat >confdef2sed.sed <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014222s/[\\&,]/\\&/g
14223s,[\\$`],\\&,g
14224t clear
14225: clear
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014226s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014227t end
14228s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14229: end
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014230_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014231# If some macros were called several times there might be several times
14232# the same #defines, which is useless. Nevertheless, we may not want to
14233# sort them, since we want the *last* AC-DEFINE to be honored.
14234uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14235sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14236rm -f confdef2sed.sed
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014237
14238# This sed command replaces #undef with comments. This is necessary, for
14239# example, in the case of _POSIX_SOURCE, which is predefined and required
14240# on some systems where configure will not decide to define it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014241cat >>conftest.undefs <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014242s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014243_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014244
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014245# Break up conftest.defines because some shells have a limit on the size
14246# of here documents, and old seds have small limits too (100 cmds).
14247echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14248echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14249echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14250echo ' :' >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014251rm -f conftest.tail
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014252while grep . conftest.defines >/dev/null
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014253do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014254 # Write a limited-size here document to $tmp/defines.sed.
14255 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14256 # Speed up: don't consider the non `#define' lines.
14257 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14258 # Work around the forget-to-reset-the-flag bug.
14259 echo 't clr' >>$CONFIG_STATUS
14260 echo ': clr' >>$CONFIG_STATUS
14261 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014262 echo 'CEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014263 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14264 rm -f $tmp/in
14265 mv $tmp/out $tmp/in
14266' >>$CONFIG_STATUS
14267 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14268 rm -f conftest.defines
14269 mv conftest.tail conftest.defines
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014270done
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014271rm -f conftest.defines
14272echo ' fi # egrep' >>$CONFIG_STATUS
14273echo >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014274
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014275# Break up conftest.undefs because some shells have a limit on the size
14276# of here documents, and old seds have small limits too (100 cmds).
14277echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14278rm -f conftest.tail
14279while grep . conftest.undefs >/dev/null
14280do
14281 # Write a limited-size here document to $tmp/undefs.sed.
14282 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14283 # Speed up: don't consider the non `#undef'
14284 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14285 # Work around the forget-to-reset-the-flag bug.
14286 echo 't clr' >>$CONFIG_STATUS
14287 echo ': clr' >>$CONFIG_STATUS
14288 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14289 echo 'CEOF
14290 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14291 rm -f $tmp/in
14292 mv $tmp/out $tmp/in
14293' >>$CONFIG_STATUS
14294 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14295 rm -f conftest.undefs
14296 mv conftest.tail conftest.undefs
14297done
14298rm -f conftest.undefs
14299
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014300cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014301 # Let's still pretend it is `configure' which instantiates (i.e., don't
14302 # use $as_me), people would be surprised to read:
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014303 # /* config.h. Generated by config.status. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014304 if test x"$ac_file" = x-; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014305 echo "/* Generated by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014306 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014307 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014308 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014309 cat $tmp/in >>$tmp/config.h
14310 rm -f $tmp/in
14311 if test x"$ac_file" != x-; then
14312 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014313 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014314echo "$as_me: $ac_file is unchanged" >&6;}
14315 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014316 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14317$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014318 X"$ac_file" : 'X\(//\)[^/]' \| \
14319 X"$ac_file" : 'X\(//\)$' \| \
14320 X"$ac_file" : 'X\(/\)' \| \
14321 . : '\(.\)' 2>/dev/null ||
14322echo X"$ac_file" |
14323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14324 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14325 /^X\(\/\/\)$/{ s//\1/; q; }
14326 /^X\(\/\).*/{ s//\1/; q; }
14327 s/.*/./; q'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014328 { case "$ac_dir" in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014329 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
14330 *) as_incr_dir=.;;
14331esac
14332as_dummy="$ac_dir"
14333for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
14334 case $as_mkdir_dir in
14335 # Skip DOS drivespec
14336 ?:) as_incr_dir=$as_mkdir_dir ;;
14337 *)
14338 as_incr_dir=$as_incr_dir/$as_mkdir_dir
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014339 test -d "$as_incr_dir" ||
14340 mkdir "$as_incr_dir" ||
14341 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
14342echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
14343 { (exit 1); exit 1; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014344 ;;
14345 esac
14346done; }
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014347
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014348 rm -f $ac_file
14349 mv $tmp/config.h $ac_file
14350 fi
14351 else
14352 cat $tmp/config.h
14353 rm -f $tmp/config.h
14354 fi
14355done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014356_ACEOF
14357cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014358
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014359#
14360# CONFIG_COMMANDS section.
14361#
14362for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14363 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14364 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014365 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14366$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14367 X"$ac_dest" : 'X\(//\)[^/]' \| \
14368 X"$ac_dest" : 'X\(//\)$' \| \
14369 X"$ac_dest" : 'X\(/\)' \| \
14370 . : '\(.\)' 2>/dev/null ||
14371echo X"$ac_dest" |
14372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14373 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14374 /^X\(\/\/\)$/{ s//\1/; q; }
14375 /^X\(\/\).*/{ s//\1/; q; }
14376 s/.*/./; q'`
14377 ac_builddir=.
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000014378
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014379if test "$ac_dir" != .; then
14380 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14381 # A "../" for each directory in $ac_dir_suffix.
14382 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014383else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014384 ac_dir_suffix= ac_top_builddir=
14385fi
14386
14387case $srcdir in
14388 .) # No --srcdir option. We are building in place.
14389 ac_srcdir=.
14390 if test -z "$ac_top_builddir"; then
14391 ac_top_srcdir=.
14392 else
14393 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14394 fi ;;
14395 [\\/]* | ?:[\\/]* ) # Absolute path.
14396 ac_srcdir=$srcdir$ac_dir_suffix;
14397 ac_top_srcdir=$srcdir ;;
14398 *) # Relative path.
14399 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14400 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14401esac
14402# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14403# absolute.
14404ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
14405ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
14406ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14407ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14408
14409
14410 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14411echo "$as_me: executing $ac_dest commands" >&6;}
14412 case $ac_dest in
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000014413 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
14414echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014415 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
14416echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
14417 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
14418echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
14419 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
14420echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
14421 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
14422echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
14423 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
14424echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
14425 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
14426echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
14427 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
14428echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
14429 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
14430echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
14431 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
14432echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
14433 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
14434echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
14435 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
14436echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
14437 dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5
14438echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
14439 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
14440echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
14441 dlls/kernel/tests ) test -d "dlls/kernel/tests" || ({ echo "$as_me:$LINENO: creating dlls/kernel/tests" >&5
14442echo "$as_me: creating dlls/kernel/tests" >&6;} && mkdir "dlls/kernel/tests") ;;
14443 dlls/oleaut32/tests ) test -d "dlls/oleaut32/tests" || ({ echo "$as_me:$LINENO: creating dlls/oleaut32/tests" >&5
14444echo "$as_me: creating dlls/oleaut32/tests" >&6;} && mkdir "dlls/oleaut32/tests") ;;
Juergen Schmiedc74a7912002-05-09 19:48:07 +000014445 dlls/shlwapi/tests ) test -d "dlls/shlwapi/tests" || ({ echo "$as_me:$LINENO: creating dlls/shlwapi/tests" >&5
14446echo "$as_me: creating dlls/shlwapi/tests" >&6;} && mkdir "dlls/shlwapi/tests") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014447 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
14448echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
14449 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
14450echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
14451 dlls/user/tests ) test -d "dlls/user/tests" || ({ echo "$as_me:$LINENO: creating dlls/user/tests" >&5
14452echo "$as_me: creating dlls/user/tests" >&6;} && mkdir "dlls/user/tests") ;;
14453 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
14454echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
Alexandre Julliard9a68b7b2002-04-27 21:19:22 +000014455 dlls/winsock/tests ) test -d "dlls/winsock/tests" || ({ echo "$as_me:$LINENO: creating dlls/winsock/tests" >&5
14456echo "$as_me: creating dlls/winsock/tests" >&6;} && mkdir "dlls/winsock/tests") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000014457 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
14458echo "$as_me: creating files" >&6;} && mkdir "files") ;;
14459 graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
14460echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
14461 graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
14462echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
14463 if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
14464echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014465 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
14466echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000014467 loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
14468echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
14469 loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
14470echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
14471 memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
14472echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
14473 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
14474echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
14475 msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
14476echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
14477 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
14478echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014479 programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
14480echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
14481 programs/winetest/tests ) test -d "programs/winetest/tests" || ({ echo "$as_me:$LINENO: creating programs/winetest/tests" >&5
14482echo "$as_me: creating programs/winetest/tests" >&6;} && mkdir "programs/winetest/tests") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000014483 relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
14484echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
14485 scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
14486echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
14487 win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
14488echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
14489 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
14490echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014491 esac
14492done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014493_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014494
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014495cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000014496
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014497{ (exit 0); exit 0; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014498_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014499chmod +x $CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014500ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014501
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014502
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014503# configure is writing to config.log, and then calls config.status.
14504# config.status does its own redirection, appending to config.log.
14505# Unfortunately, on DOS this fails, as config.log is still kept open
14506# by configure, so config.status won't be able to write to it; its
14507# output is simply discarded. So we exec the FD to /dev/null,
14508# effectively closing config.log, so it can be properly (re)opened and
14509# appended to by config.status. When coming back to configure, we
14510# need to make the FD available again.
14511if test "$no_create" != yes; then
14512 ac_cs_success=:
14513 exec 5>/dev/null
14514 $SHELL $CONFIG_STATUS || ac_cs_success=false
14515 exec 5>>config.log
14516 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14517 # would make configure fail if this is the last instruction.
14518 $ac_cs_success || { (exit 1); exit 1; }
14519fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014520
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014521
Ove Kaaven8b4431f1999-01-23 13:59:11 +000014522if test "$have_x" = "no"
14523then
14524 echo
14525 echo "*** Warning: X development files not found. Wine will be built without"
14526 echo "*** X support, which currently does not work, and would probably not be"
14527 echo "*** what you want anyway. You will need to install devel packages of"
Alexandre Julliard18e4b5e2002-01-04 18:52:40 +000014528 echo "*** Xlib/Xfree86 at the very least."
Ove Kaaven8b4431f1999-01-23 13:59:11 +000014529fi
14530
Alexandre Julliard638f1691999-01-17 16:32:32 +000014531if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
14532then
14533 echo
14534 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
14535 echo "*** terminal resize support. Consider upgrading ncurses."
Alexandre Julliard638f1691999-01-17 16:32:32 +000014536fi
14537
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014538if test "$wine_cv_libc_reentrant" = "no"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000014539then
14540 echo
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014541 echo "*** Warning: non-reentrant libc detected. Wine will be built without"
14542 echo "*** threading support. Consider upgrading libc to a more recent"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000014543 echo "*** reentrant version of libc."
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000014544fi
14545
Alexandre Julliard867fb9d2002-04-24 22:24:43 +000014546if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes"
14547then
14548 echo
14549 echo "*** Warning: non-reentrant X11 library detected. Multi-threaded"
14550 echo "*** applications won't work properly. You should upgrade your X11 library."
14551fi
14552
Lionel Ulmerbedf40b2000-05-12 20:18:14 +000014553if test "$wine_cv_opengl_version_OK" = "no"
Lionel Ulmer5c085701999-02-28 19:48:53 +000014554then
14555 echo
14556 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +000014557 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
14558fi
14559
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014560if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "x"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +000014561then
14562 echo
14563 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000014564 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
Andreas Mohr18a9d742001-01-17 21:52:42 +000014565 echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine,"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000014566 echo "*** start configure with '--enable-opengl' to force OpenGL support."
Lionel Ulmer5c085701999-02-28 19:48:53 +000014567fi
14568
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014569if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "xyes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000014570then
14571 echo
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +000014572 echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000014573 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
14574 echo "*** support before reporting bugs."
14575fi
14576
Marcus Meissner3ee02ba2001-04-30 18:18:50 +000014577if test "$wine_cv_warn_cups_h" = "yes"
14578then
14579 echo
14580 echo "*** Note: You have cups runtime libraries, but no development"
14581 echo "*** libraries. Install the cups-devel package or whichever package"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014582 echo "*** contains cups.h to enable CUPS support in Wine."
Marcus Meissner3ee02ba2001-04-30 18:18:50 +000014583fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000014584
Ian Pilcher563598d2001-05-16 20:56:05 +000014585if test "$wine_cv_msg_freetype" = "yes"
14586then
14587 echo
14588 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014589 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
14590 echo "*** freetype-devel package (or its equivalent on your distribution) to"
14591 echo "*** enable Wine to use TrueType fonts."
Ian Pilcher563598d2001-05-16 20:56:05 +000014592fi
14593
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014594echo
Steffen Moeller1511bae1999-02-17 15:27:03 +000014595echo "Configure finished. Do 'make depend && make' to compile Wine."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014596echo
14597