blob: 1f20bf3ca06707d6150dc560fd65989caf279e95 [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 Julliardc6adc362002-03-10 20:14:37 +00003# Generated by Autoconf 2.52 for Wine 20020310.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004#
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6# 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 Julliardf5818d22002-02-14 19:47:29 +000010# Avoid depending upon Character Ranges.
11as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14as_cr_digits='0123456789'
15as_cr_alnum=$as_cr_Letters$as_cr_digits
16
17# Sed expression to map a string onto a valid variable name.
18as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19
20# Sed expression to map a string onto a valid CPP name.
21as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22
23# Be Bourne compatible
24if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 emulate sh
26 NULLCMD=:
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 set -o posix
29fi
30
31# Name of the executable.
32as_me=`echo "$0" |sed 's,.*[\\/],,'`
33
34if expr a : '\(a\)' >/dev/null 2>&1; then
35 as_expr=expr
36else
37 as_expr=false
38fi
39
40rm -f conf$$ conf$$.exe conf$$.file
41echo >conf$$.file
42if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
47 as_ln_s='cp -p'
48 else
49 as_ln_s='ln -s'
50 fi
51elif ln conf$$.file conf$$ 2>/dev/null; then
52 as_ln_s=ln
53else
54 as_ln_s='cp -p'
55fi
56rm -f conf$$ conf$$.exe conf$$.file
57
58as_executable_p="test -f"
59
60# Support unset when possible.
61if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62 as_unset=unset
63else
64 as_unset=false
65fi
66
67# NLS nuisances.
68$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
76
77# IFS
78# We need space, tab and new line, in precisely that order.
79as_nl='
80'
81IFS=" $as_nl"
82
83# CDPATH.
84$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
85
86# Name of the host.
87# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88# so uname gets run too.
89ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
90
91exec 6>&1
92
93#
94# Initializations.
95#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000096ac_default_prefix=/usr/local
Alexandre Julliardf5818d22002-02-14 19:47:29 +000097cross_compiling=no
98subdirs=
99MFLAGS= MAKEFLAGS=
100SHELL=${CONFIG_SHELL-/bin/sh}
101
102# Maximum number of lines to put in a shell here document.
103# This variable seems obsolete. It should probably be removed, and
104# only ac_max_sed_lines should be used.
105: ${ac_max_here_lines=38}
106
107ac_unique_file="server/atom.c"
108# Factoring default headers for most tests.
109ac_includes_default="\
110#include <stdio.h>
111#if HAVE_SYS_TYPES_H
112# include <sys/types.h>
113#endif
114#if HAVE_SYS_STAT_H
115# include <sys/stat.h>
116#endif
117#if STDC_HEADERS
118# include <stdlib.h>
119# include <stddef.h>
120#else
121# if HAVE_STDLIB_H
122# include <stdlib.h>
123# endif
124#endif
125#if HAVE_STRING_H
126# if !STDC_HEADERS && HAVE_MEMORY_H
127# include <memory.h>
128# endif
129# include <string.h>
130#endif
131#if HAVE_STRINGS_H
132# include <strings.h>
133#endif
134#if HAVE_INTTYPES_H
135# include <inttypes.h>
136#else
137# if HAVE_STDINT_H
138# include <stdint.h>
139# endif
140#endif
141#if HAVE_UNISTD_H
142# include <unistd.h>
143#endif"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000144
145# Initialize some variables set by options.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000146ac_init_help=
147ac_init_version=false
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000148# The variables have the same names as the options, with
149# dashes changed to underlines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000150cache_file=/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000151exec_prefix=NONE
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000152no_create=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000153no_recursion=
154prefix=NONE
155program_prefix=NONE
156program_suffix=NONE
157program_transform_name=s,x,x,
158silent=
159site=
160srcdir=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000161verbose=
162x_includes=NONE
163x_libraries=NONE
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000164
165# Installation directory options.
166# These are left unexpanded so users can "make install exec_prefix=/foo"
167# and all the variables that are supposed to be based on exec_prefix
168# by default will actually change.
169# Use braces instead of parens because sh, perl, etc. also accept them.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000170bindir='${exec_prefix}/bin'
171sbindir='${exec_prefix}/sbin'
172libexecdir='${exec_prefix}/libexec'
173datadir='${prefix}/share'
174sysconfdir='${prefix}/etc'
175sharedstatedir='${prefix}/com'
176localstatedir='${prefix}/var'
177libdir='${exec_prefix}/lib'
178includedir='${prefix}/include'
179oldincludedir='/usr/include'
180infodir='${prefix}/info'
181mandir='${prefix}/man'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000182
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000183# Identity of this package.
184PACKAGE_NAME='Wine'
185PACKAGE_TARNAME='wine'
Alexandre Julliardc6adc362002-03-10 20:14:37 +0000186PACKAGE_VERSION='20020310'
187PACKAGE_STRING='Wine 20020310'
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000188PACKAGE_BUGREPORT=''
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000189
190ac_prev=
191for ac_option
192do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000193 # If the previous option needs an argument, assign it.
194 if test -n "$ac_prev"; then
195 eval "$ac_prev=\$ac_option"
196 ac_prev=
197 continue
198 fi
199
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000201
202 # Accept the important Cygnus configure options, so we can diagnose typos.
203
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000204 case $ac_option in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000205
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000206 -bindir | --bindir | --bindi | --bind | --bin | --bi)
207 ac_prev=bindir ;;
208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000209 bindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000210
211 -build | --build | --buil | --bui | --bu)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000212 ac_prev=build_alias ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000213 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000214 build_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000215
216 -cache-file | --cache-file | --cache-fil | --cache-fi \
217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
218 ac_prev=cache_file ;;
219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000221 cache_file=$ac_optarg ;;
222
223 --config-cache | -C)
224 cache_file=config.cache ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000225
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
227 ac_prev=datadir ;;
228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
229 | --da=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000230 datadir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000231
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000232 -disable-* | --disable-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000233 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000234 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237 { (exit 1); exit 1; }; }
238 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
239 eval "enable_$ac_feature=no" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000240
241 -enable-* | --enable-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000242 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000243 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248 case $ac_option in
249 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000250 *) ac_optarg=yes ;;
251 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000252 eval "enable_$ac_feature='$ac_optarg'" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000253
254 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
255 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
256 | --exec | --exe | --ex)
257 ac_prev=exec_prefix ;;
258 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
259 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
260 | --exec=* | --exe=* | --ex=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000261 exec_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000262
263 -gas | --gas | --ga | --g)
264 # Obsolete; use --with-gas.
265 with_gas=yes ;;
266
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000267 -help | --help | --hel | --he | -h)
268 ac_init_help=long ;;
269 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
270 ac_init_help=recursive ;;
271 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
272 ac_init_help=short ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000273
274 -host | --host | --hos | --ho)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000275 ac_prev=host_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000276 -host=* | --host=* | --hos=* | --ho=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000277 host_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000278
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000279 -includedir | --includedir | --includedi | --included | --include \
280 | --includ | --inclu | --incl | --inc)
281 ac_prev=includedir ;;
282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283 | --includ=* | --inclu=* | --incl=* | --inc=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000284 includedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000285
286 -infodir | --infodir | --infodi | --infod | --info | --inf)
287 ac_prev=infodir ;;
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000289 infodir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000290
291 -libdir | --libdir | --libdi | --libd)
292 ac_prev=libdir ;;
293 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000294 libdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000295
296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297 | --libexe | --libex | --libe)
298 ac_prev=libexecdir ;;
299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300 | --libexe=* | --libex=* | --libe=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000301 libexecdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000302
303 -localstatedir | --localstatedir | --localstatedi | --localstated \
304 | --localstate | --localstat | --localsta | --localst \
305 | --locals | --local | --loca | --loc | --lo)
306 ac_prev=localstatedir ;;
307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000310 localstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000311
312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
313 ac_prev=mandir ;;
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000315 mandir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000316
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000317 -nfp | --nfp | --nf)
318 # Obsolete; use --without-fp.
319 with_fp=no ;;
320
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
322 | --no-cr | --no-c)
323 no_create=yes ;;
324
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
327 no_recursion=yes ;;
328
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331 | --oldin | --oldi | --old | --ol | --o)
332 ac_prev=oldincludedir ;;
333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000336 oldincludedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000337
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
339 ac_prev=prefix ;;
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000341 prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000342
343 -program-prefix | --program-prefix | --program-prefi | --program-pref \
344 | --program-pre | --program-pr | --program-p)
345 ac_prev=program_prefix ;;
346 -program-prefix=* | --program-prefix=* | --program-prefi=* \
347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000348 program_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000349
350 -program-suffix | --program-suffix | --program-suffi | --program-suff \
351 | --program-suf | --program-su | --program-s)
352 ac_prev=program_suffix ;;
353 -program-suffix=* | --program-suffix=* | --program-suffi=* \
354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000355 program_suffix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000356
357 -program-transform-name | --program-transform-name \
358 | --program-transform-nam | --program-transform-na \
359 | --program-transform-n | --program-transform- \
360 | --program-transform | --program-transfor \
361 | --program-transfo | --program-transf \
362 | --program-trans | --program-tran \
363 | --progr-tra | --program-tr | --program-t)
364 ac_prev=program_transform_name ;;
365 -program-transform-name=* | --program-transform-name=* \
366 | --program-transform-nam=* | --program-transform-na=* \
367 | --program-transform-n=* | --program-transform-=* \
368 | --program-transform=* | --program-transfor=* \
369 | --program-transfo=* | --program-transf=* \
370 | --program-trans=* | --program-tran=* \
371 | --progr-tra=* | --program-tr=* | --program-t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000372 program_transform_name=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000373
374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375 | -silent | --silent | --silen | --sile | --sil)
376 silent=yes ;;
377
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
379 ac_prev=sbindir ;;
380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
381 | --sbi=* | --sb=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000382 sbindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000383
384 -sharedstatedir | --sharedstatedir | --sharedstatedi \
385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386 | --sharedst | --shareds | --shared | --share | --shar \
387 | --sha | --sh)
388 ac_prev=sharedstatedir ;;
389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
392 | --sha=* | --sh=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000393 sharedstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000394
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000395 -site | --site | --sit)
396 ac_prev=site ;;
397 -site=* | --site=* | --sit=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000398 site=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000399
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
401 ac_prev=srcdir ;;
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000403 srcdir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000404
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406 | --syscon | --sysco | --sysc | --sys | --sy)
407 ac_prev=sysconfdir ;;
408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000410 sysconfdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000411
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000412 -target | --target | --targe | --targ | --tar | --ta | --t)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000413 ac_prev=target_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000415 target_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000416
417 -v | -verbose | --verbose | --verbos | --verbo | --verb)
418 verbose=yes ;;
419
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000420 -version | --version | --versio | --versi | --vers | -V)
421 ac_init_version=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000422
423 -with-* | --with-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000424 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000425 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
427 { echo "$as_me: error: invalid package name: $ac_package" >&2
428 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000429 ac_package=`echo $ac_package| sed 's/-/_/g'`
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000430 case $ac_option in
431 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000432 *) ac_optarg=yes ;;
433 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000434 eval "with_$ac_package='$ac_optarg'" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000435
436 -without-* | --without-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000437 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000438 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
440 { echo "$as_me: error: invalid package name: $ac_package" >&2
441 { (exit 1); exit 1; }; }
442 ac_package=`echo $ac_package | sed 's/-/_/g'`
443 eval "with_$ac_package=no" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000444
445 --x)
446 # Obsolete; use --with-x.
447 with_x=yes ;;
448
449 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
450 | --x-incl | --x-inc | --x-in | --x-i)
451 ac_prev=x_includes ;;
452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000454 x_includes=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000455
456 -x-libraries | --x-libraries | --x-librarie | --x-librari \
457 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
458 ac_prev=x_libraries ;;
459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000461 x_libraries=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000462
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000463 -*) { echo "$as_me: error: unrecognized option: $ac_option
464Try \`$0 --help' for more information." >&2
465 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000466 ;;
467
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000468 *=*)
469 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
470 # Reject names that are not valid shell variable names.
471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473 { (exit 1); exit 1; }; }
474 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475 eval "$ac_envvar='$ac_optarg'"
476 export $ac_envvar ;;
477
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000478 *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000479 # FIXME: should be removed in autoconf 3.0.
480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000484 ;;
485
486 esac
487done
488
489if test -n "$ac_prev"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000490 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
491 { echo "$as_me: error: missing argument to $ac_option" >&2
492 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000493fi
494
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000495# Be sure to have absolute paths.
496for ac_var in exec_prefix prefix
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000497do
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000498 eval ac_val=$`echo $ac_var`
499 case $ac_val in
500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502 { (exit 1); exit 1; }; };;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000503 esac
504done
505
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000506# Be sure to have absolute paths.
507for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508 localstatedir libdir includedir oldincludedir infodir mandir
509do
510 eval ac_val=$`echo $ac_var`
511 case $ac_val in
512 [\\/$]* | ?:[\\/]* ) ;;
513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514 { (exit 1); exit 1; }; };;
515 esac
516done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000517
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000518# There might be people who depend on the old broken behavior: `$host'
519# used to hold the argument of --host etc.
520build=$build_alias
521host=$host_alias
522target=$target_alias
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000523
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000524# FIXME: should be removed in autoconf 3.0.
525if test "x$host_alias" != x; then
526 if test "x$build_alias" = x; then
527 cross_compiling=maybe
528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529 If a cross compiler is detected then cross compile mode will be used." >&2
530 elif test "x$build_alias" != "x$host_alias"; then
531 cross_compiling=yes
532 fi
533fi
534
535ac_tool_prefix=
536test -n "$host_alias" && ac_tool_prefix=$host_alias-
537
538test "$silent" = yes && exec 6>/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000539
540# Find the source files, if location was not specified.
541if test -z "$srcdir"; then
542 ac_srcdir_defaulted=yes
543 # Try the directory containing this script, then its parent.
544 ac_prog=$0
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
547 srcdir=$ac_confdir
548 if test ! -r $srcdir/$ac_unique_file; then
549 srcdir=..
550 fi
551else
552 ac_srcdir_defaulted=no
553fi
554if test ! -r $srcdir/$ac_unique_file; then
555 if test "$ac_srcdir_defaulted" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000558 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000559 { echo "$as_me: error: cannot find sources in $srcdir" >&2
560 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000561 fi
562fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000563srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564ac_env_build_alias_set=${build_alias+set}
565ac_env_build_alias_value=$build_alias
566ac_cv_env_build_alias_set=${build_alias+set}
567ac_cv_env_build_alias_value=$build_alias
568ac_env_host_alias_set=${host_alias+set}
569ac_env_host_alias_value=$host_alias
570ac_cv_env_host_alias_set=${host_alias+set}
571ac_cv_env_host_alias_value=$host_alias
572ac_env_target_alias_set=${target_alias+set}
573ac_env_target_alias_value=$target_alias
574ac_cv_env_target_alias_set=${target_alias+set}
575ac_cv_env_target_alias_value=$target_alias
576ac_env_CC_set=${CC+set}
577ac_env_CC_value=$CC
578ac_cv_env_CC_set=${CC+set}
579ac_cv_env_CC_value=$CC
580ac_env_CFLAGS_set=${CFLAGS+set}
581ac_env_CFLAGS_value=$CFLAGS
582ac_cv_env_CFLAGS_set=${CFLAGS+set}
583ac_cv_env_CFLAGS_value=$CFLAGS
584ac_env_LDFLAGS_set=${LDFLAGS+set}
585ac_env_LDFLAGS_value=$LDFLAGS
586ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
587ac_cv_env_LDFLAGS_value=$LDFLAGS
588ac_env_CPPFLAGS_set=${CPPFLAGS+set}
589ac_env_CPPFLAGS_value=$CPPFLAGS
590ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
591ac_cv_env_CPPFLAGS_value=$CPPFLAGS
592ac_env_CPP_set=${CPP+set}
593ac_env_CPP_value=$CPP
594ac_cv_env_CPP_set=${CPP+set}
595ac_cv_env_CPP_value=$CPP
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000596
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000597#
598# Report the --help message.
599#
600if test "$ac_init_help" = "long"; then
601 # Omit some internal or obsolete options to make the list less imposing.
602 # This message is too long to be a string in the A/UX 3.1 sh.
603 cat <<EOF
Alexandre Julliardc6adc362002-03-10 20:14:37 +0000604\`configure' configures Wine 20020310 to adapt to many kinds of systems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000605
606Usage: $0 [OPTION]... [VAR=VALUE]...
607
608To assign environment variables (e.g., CC, CFLAGS...), specify them as
609VAR=VALUE. See below for descriptions of some of the useful variables.
610
611Defaults for the options are specified in brackets.
612
613Configuration:
614 -h, --help display this help and exit
615 --help=short display options specific to this package
616 --help=recursive display the short help of all the included packages
617 -V, --version display version information and exit
618 -q, --quiet, --silent do not print \`checking...' messages
619 --cache-file=FILE cache test results in FILE [disabled]
620 -C, --config-cache alias for \`--cache-file=config.cache'
621 -n, --no-create do not create output files
622 --srcdir=DIR find the sources in DIR [configure dir or \`..']
623
624EOF
625
626 cat <<EOF
627Installation directories:
628 --prefix=PREFIX install architecture-independent files in PREFIX
629 [$ac_default_prefix]
630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
631 [PREFIX]
632
633By default, \`make install' will install all the files in
634\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
635an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636for instance \`--prefix=\$HOME'.
637
638For better control, use the options below.
639
640Fine tuning of the installation directories:
641 --bindir=DIR user executables [EPREFIX/bin]
642 --sbindir=DIR system admin executables [EPREFIX/sbin]
643 --libexecdir=DIR program executables [EPREFIX/libexec]
644 --datadir=DIR read-only architecture-independent data [PREFIX/share]
645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
647 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
648 --libdir=DIR object code libraries [EPREFIX/lib]
649 --includedir=DIR C header files [PREFIX/include]
650 --oldincludedir=DIR C header files for non-gcc [/usr/include]
651 --infodir=DIR info documentation [PREFIX/info]
652 --mandir=DIR man documentation [PREFIX/man]
653EOF
654
655 cat <<\EOF
656
657X features:
658 --x-includes=DIR X include files are in DIR
659 --x-libraries=DIR X library files are in DIR
660
661System types:
662 --build=BUILD configure for building on BUILD [guessed]
663 --host=HOST build programs to run on HOST [BUILD]
664 --target=TARGET configure for building compilers for TARGET [HOST]
665EOF
666fi
667
668if test -n "$ac_init_help"; then
669 case $ac_init_help in
Alexandre Julliardc6adc362002-03-10 20:14:37 +0000670 short | recursive ) echo "Configuration of Wine 20020310:";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000671 esac
672 cat <<\EOF
673
674Optional Features:
675 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
676 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
677 --disable-debug compile out all debugging messages
678 --disable-trace compile out TRACE messages
679 --enable-opengl force usage of OpenGL even if the latter is
680 thread-safe via pthread
681
682Optional Packages:
683 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
684 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
685 --without-curses do not use curses
686 --without-reentrant-x compile for use with non-reentrant X libraries
687 --with-x use the X Window System
688
689Some influential environment variables:
690 CC C compiler command
691 CFLAGS C compiler flags
692 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
693 nonstandard directory <lib dir>
694 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
695 headers in a nonstandard directory <include dir>
696 CPP C preprocessor
697
698Use these variables to override the choices made by `configure' or to help
699it to find libraries and programs with nonstandard names/locations.
700
701EOF
702fi
703
704if test "$ac_init_help" = "recursive"; then
705 # If there are subdirs, report their specific --help.
706 ac_popdir=`pwd`
707 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
708 cd $ac_subdir
709 # A "../" for each directory in /$ac_subdir.
710 ac_dots=`echo $ac_subdir |
711 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
712
713 case $srcdir in
714 .) # No --srcdir option. We are building in place.
715 ac_sub_srcdir=$srcdir ;;
716 [\\/]* | ?:[\\/]* ) # Absolute path.
717 ac_sub_srcdir=$srcdir/$ac_subdir ;;
718 *) # Relative path.
719 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
720 esac
721
722 # Check for guested configure; otherwise get Cygnus style configure.
723 if test -f $ac_sub_srcdir/configure.gnu; then
724 echo
725 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
726 elif test -f $ac_sub_srcdir/configure; then
727 echo
728 $SHELL $ac_sub_srcdir/configure --help=recursive
729 elif test -f $ac_sub_srcdir/configure.ac ||
730 test -f $ac_sub_srcdir/configure.in; then
731 echo
732 $ac_configure --help
733 else
734 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
735 fi
736 cd $ac_popdir
737 done
738fi
739
740test -n "$ac_init_help" && exit 0
741if $ac_init_version; then
742 cat <<\EOF
Alexandre Julliardc6adc362002-03-10 20:14:37 +0000743Wine configure 20020310
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000744generated by GNU Autoconf 2.52
745
746Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
747Free Software Foundation, Inc.
748This configure script is free software; the Free Software Foundation
749gives unlimited permission to copy, distribute and modify it.
750EOF
751 exit 0
752fi
753exec 5>config.log
754cat >&5 <<EOF
755This file contains any messages produced by compilers while
756running configure, to aid debugging if configure makes a mistake.
757
Alexandre Julliardc6adc362002-03-10 20:14:37 +0000758It was created by Wine $as_me 20020310, which was
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000759generated by GNU Autoconf 2.52. Invocation command line was
760
761 $ $0 $@
762
763EOF
764{
765cat <<_ASUNAME
766## ---------- ##
767## Platform. ##
768## ---------- ##
769
770hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
771uname -m = `(uname -m) 2>/dev/null || echo unknown`
772uname -r = `(uname -r) 2>/dev/null || echo unknown`
773uname -s = `(uname -s) 2>/dev/null || echo unknown`
774uname -v = `(uname -v) 2>/dev/null || echo unknown`
775
776/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
777/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
778
779/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
780/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
781/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
782hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
783/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
784/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
785/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
786
787PATH = $PATH
788
789_ASUNAME
790} >&5
791
792cat >&5 <<EOF
793## ------------ ##
794## Core tests. ##
795## ------------ ##
796
797EOF
798
799# Keep a trace of the command line.
800# Strip out --no-create and --no-recursion so they do not pile up.
801# Also quote any args containing shell meta-characters.
802ac_configure_args=
803ac_sep=
804for ac_arg
805do
806 case $ac_arg in
807 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
808 | --no-cr | --no-c) ;;
809 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
810 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
811 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
812 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
813 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
814 ac_sep=" " ;;
815 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
816 ac_sep=" " ;;
817 esac
818 # Get rid of the leading space.
819done
820
821# When interrupted or exit'd, cleanup temporary files, and complete
822# config.log. We remove comments because anyway the quotes in there
823# would cause problems or look ugly.
824trap 'exit_status=$?
825 # Save into config.log some information that might help in debugging.
826 echo >&5
827 echo "## ----------------- ##" >&5
828 echo "## Cache variables. ##" >&5
829 echo "## ----------------- ##" >&5
830 echo >&5
831 # The following way of writing the cache mishandles newlines in values,
832{
833 (set) 2>&1 |
834 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
835 *ac_space=\ *)
836 sed -n \
837 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
838 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
839 ;;
840 *)
841 sed -n \
842 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
843 ;;
844 esac;
845} >&5
846 sed "/^$/d" confdefs.h >conftest.log
847 if test -s conftest.log; then
848 echo >&5
849 echo "## ------------ ##" >&5
850 echo "## confdefs.h. ##" >&5
851 echo "## ------------ ##" >&5
852 echo >&5
853 cat conftest.log >&5
854 fi
855 (echo; echo) >&5
856 test "$ac_signal" != 0 &&
857 echo "$as_me: caught signal $ac_signal" >&5
858 echo "$as_me: exit $exit_status" >&5
859 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
860 exit $exit_status
861 ' 0
862for ac_signal in 1 2 13 15; do
863 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
864done
865ac_signal=0
866
867# confdefs.h avoids OS command line length limits that DEFS can exceed.
868rm -rf conftest* confdefs.h
869# AIX cpp loses on an empty file, so make sure it contains at least a newline.
870echo >confdefs.h
871
872# Let the site file select an alternate cache file if it wants to.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000873# Prefer explicitly selected file to automatically selected ones.
874if test -z "$CONFIG_SITE"; then
875 if test "x$prefix" != xNONE; then
876 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
877 else
878 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
879 fi
880fi
881for ac_site_file in $CONFIG_SITE; do
882 if test -r "$ac_site_file"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000883 { echo "$as_me:883: loading site script $ac_site_file" >&5
884echo "$as_me: loading site script $ac_site_file" >&6;}
885 cat "$ac_site_file" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000886 . "$ac_site_file"
887 fi
888done
889
890if test -r "$cache_file"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000891 # Some versions of bash will fail to source /dev/null (special
892 # files actually), so we avoid doing that.
893 if test -f "$cache_file"; then
894 { echo "$as_me:894: loading cache $cache_file" >&5
895echo "$as_me: loading cache $cache_file" >&6;}
896 case $cache_file in
897 [\\/]* | ?:[\\/]* ) . $cache_file;;
898 *) . ./$cache_file;;
899 esac
900 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000901else
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000902 { echo "$as_me:902: creating cache $cache_file" >&5
903echo "$as_me: creating cache $cache_file" >&6;}
904 >$cache_file
905fi
906
907# Check that the precious variables saved in the cache have kept the same
908# value.
909ac_cache_corrupted=false
910for ac_var in `(set) 2>&1 |
911 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
912 eval ac_old_set=\$ac_cv_env_${ac_var}_set
913 eval ac_new_set=\$ac_env_${ac_var}_set
914 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
915 eval ac_new_val="\$ac_env_${ac_var}_value"
916 case $ac_old_set,$ac_new_set in
917 set,)
918 { echo "$as_me:918: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
919echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
920 ac_cache_corrupted=: ;;
921 ,set)
922 { echo "$as_me:922: error: \`$ac_var' was not set in the previous run" >&5
923echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
924 ac_cache_corrupted=: ;;
925 ,);;
926 *)
927 if test "x$ac_old_val" != "x$ac_new_val"; then
928 { echo "$as_me:928: error: \`$ac_var' has changed since the previous run:" >&5
929echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
930 { echo "$as_me:930: former value: $ac_old_val" >&5
931echo "$as_me: former value: $ac_old_val" >&2;}
932 { echo "$as_me:932: current value: $ac_new_val" >&5
933echo "$as_me: current value: $ac_new_val" >&2;}
934 ac_cache_corrupted=:
935 fi;;
936 esac
937 # Pass precious variables to config.status. It doesn't matter if
938 # we pass some twice (in addition to the command line arguments).
939 if test "$ac_new_set" = set; then
940 case $ac_new_val in
941 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
942 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
943 ac_configure_args="$ac_configure_args '$ac_arg'"
944 ;;
945 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
946 ;;
947 esac
948 fi
949done
950if $ac_cache_corrupted; then
951 { echo "$as_me:951: error: changes in the environment can compromise the build" >&5
952echo "$as_me: error: changes in the environment can compromise the build" >&2;}
953 { { echo "$as_me:953: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
954echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
955 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000956fi
957
958ac_ext=c
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000959ac_cpp='$CPP $CPPFLAGS'
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
962ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000963
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000964case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
965 *c*,-n*) ECHO_N= ECHO_C='
966' ECHO_T=' ' ;;
967 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
968 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
969esac
970echo "#! $SHELL" >conftest.sh
971echo "exit 0" >>conftest.sh
972chmod +x conftest.sh
973if { (echo "$as_me:973: PATH=\".;.\"; conftest.sh") >&5
974 (PATH=".;."; conftest.sh) 2>&5
975 ac_status=$?
976 echo "$as_me:976: \$? = $ac_status" >&5
977 (exit $ac_status); }; then
978 ac_path_separator=';'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000979else
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000980 ac_path_separator=:
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000981fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000982PATH_SEPARATOR="$ac_path_separator"
983rm -f conftest.sh
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000984
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000985ac_config_headers="$ac_config_headers include/config.h"
Alexandre Julliard18f92e71996-07-17 20:02:21 +0000986
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000987ac_aux_dir=
988for ac_dir in tools $srcdir/tools; do
989 if test -f $ac_dir/install-sh; then
990 ac_aux_dir=$ac_dir
991 ac_install_sh="$ac_aux_dir/install-sh -c"
992 break
993 elif test -f $ac_dir/install.sh; then
994 ac_aux_dir=$ac_dir
995 ac_install_sh="$ac_aux_dir/install.sh -c"
996 break
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000997 elif test -f $ac_dir/shtool; then
998 ac_aux_dir=$ac_dir
999 ac_install_sh="$ac_aux_dir/shtool install -c"
1000 break
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001001 fi
1002done
1003if test -z "$ac_aux_dir"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001004 { { echo "$as_me:1004: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1005echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1006 { (exit 1); exit 1; }; }
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001007fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001008ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1009ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1010ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
Howard Abrams13277481999-07-10 13:16:29 +00001011
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00001012LIBEXT=so # library type .so or .a
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00001013
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001014# Check whether --enable-debug or --disable-debug was given.
1015if test "${enable_debug+set}" = set; then
1016 enableval="$enable_debug"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001017
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001018fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001019# Check whether --enable-trace or --disable-trace was given.
1020if test "${enable_trace+set}" = set; then
1021 enableval="$enable_trace"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001022
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001023fi;
1024# Check whether --enable-opengl or --disable-opengl was given.
1025if test "${enable_opengl+set}" = set; then
1026 enableval="$enable_opengl"
1027
1028fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001029
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001030# Check whether --with-curses or --without-curses was given.
1031if test "${with_curses+set}" = set; then
1032 withval="$with_curses"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001033
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001034fi;
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001035
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00001036# Check whether --with-reentrant-x or --without-reentrant-x was given.
1037if test "${with_reentrant_x+set}" = set; then
1038 withval="$with_reentrant_x"
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00001039
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001040fi;
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00001041
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001042if test "x$enable_debug" = "xno"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001043then
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001044
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001045cat >>confdefs.h <<\EOF
1046#define NO_DEBUG_MSGS 1
1047EOF
1048
1049fi
1050if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001051then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001052
1053cat >>confdefs.h <<\EOF
1054#define NO_TRACE_MSGS 1
1055EOF
1056
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001057fi
1058
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001059# Make sure we can run config.sub.
1060$ac_config_sub sun4 >/dev/null 2>&1 ||
1061 { { echo "$as_me:1061: error: cannot run $ac_config_sub" >&5
1062echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1063 { (exit 1); exit 1; }; }
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00001064
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001065echo "$as_me:1065: checking build system type" >&5
1066echo $ECHO_N "checking build system type... $ECHO_C" >&6
1067if test "${ac_cv_build+set}" = set; then
1068 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001069else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001070 ac_cv_build_alias=$build_alias
1071test -z "$ac_cv_build_alias" &&
1072 ac_cv_build_alias=`$ac_config_guess`
1073test -z "$ac_cv_build_alias" &&
1074 { { echo "$as_me:1074: error: cannot guess build type; you must specify one" >&5
1075echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1076 { (exit 1); exit 1; }; }
1077ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1078 { { echo "$as_me:1078: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1079echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1080 { (exit 1); exit 1; }; }
1081
1082fi
1083echo "$as_me:1083: result: $ac_cv_build" >&5
1084echo "${ECHO_T}$ac_cv_build" >&6
1085build=$ac_cv_build
1086build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1087build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1088build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1089
1090echo "$as_me:1090: checking host system type" >&5
1091echo $ECHO_N "checking host system type... $ECHO_C" >&6
1092if test "${ac_cv_host+set}" = set; then
1093 echo $ECHO_N "(cached) $ECHO_C" >&6
1094else
1095 ac_cv_host_alias=$host_alias
1096test -z "$ac_cv_host_alias" &&
1097 ac_cv_host_alias=$ac_cv_build_alias
1098ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1099 { { echo "$as_me:1099: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1100echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1101 { (exit 1); exit 1; }; }
1102
1103fi
1104echo "$as_me:1104: result: $ac_cv_host" >&5
1105echo "${ECHO_T}$ac_cv_host" >&6
1106host=$ac_cv_host
1107host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1108host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1109host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1110
1111echo "$as_me:1111: checking target system type" >&5
1112echo $ECHO_N "checking target system type... $ECHO_C" >&6
1113if test "${ac_cv_target+set}" = set; then
1114 echo $ECHO_N "(cached) $ECHO_C" >&6
1115else
1116 ac_cv_target_alias=$target_alias
1117test "x$ac_cv_target_alias" = "x" &&
1118 ac_cv_target_alias=$ac_cv_host_alias
1119ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1120 { { echo "$as_me:1120: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1121echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1122 { (exit 1); exit 1; }; }
1123
1124fi
1125echo "$as_me:1125: result: $ac_cv_target" >&5
1126echo "${ECHO_T}$ac_cv_target" >&6
1127target=$ac_cv_target
1128target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1129target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1130target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1131
1132# The aliases save the names the user supplied, while $host etc.
1133# will get canonicalized.
1134test -n "$target_alias" &&
1135 test "$program_prefix$program_suffix$program_transform_name" = \
1136 NONENONEs,x,x, &&
1137 program_prefix=${target_alias}-
1138echo "$as_me:1138: checking whether ${MAKE-make} sets \${MAKE}" >&5
1139echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1140set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1141if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1142 echo $ECHO_N "(cached) $ECHO_C" >&6
1143else
1144 cat >conftest.make <<\EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001145all:
1146 @echo 'ac_maketemp="${MAKE}"'
1147EOF
1148# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001149eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001150if test -n "$ac_maketemp"; then
1151 eval ac_cv_prog_make_${ac_make}_set=yes
1152else
1153 eval ac_cv_prog_make_${ac_make}_set=no
1154fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001155rm -f conftest.make
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001156fi
1157if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001158 echo "$as_me:1158: result: yes" >&5
1159echo "${ECHO_T}yes" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001160 SET_MAKE=
1161else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001162 echo "$as_me:1162: result: no" >&5
1163echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001164 SET_MAKE="MAKE=${MAKE-make}"
1165fi
1166
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001167ac_ext=c
1168ac_cpp='$CPP $CPPFLAGS'
1169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1171ac_compiler_gnu=$ac_cv_c_compiler_gnu
1172if test -n "$ac_tool_prefix"; then
1173 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1174set dummy ${ac_tool_prefix}gcc; ac_word=$2
1175echo "$as_me:1175: checking for $ac_word" >&5
1176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1177if test "${ac_cv_prog_CC+set}" = set; then
1178 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001179else
1180 if test -n "$CC"; then
1181 ac_cv_prog_CC="$CC" # Let the user override the test.
1182else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001183 ac_save_IFS=$IFS; IFS=$ac_path_separator
1184ac_dummy="$PATH"
1185for ac_dir in $ac_dummy; do
1186 IFS=$ac_save_IFS
1187 test -z "$ac_dir" && ac_dir=.
1188 $as_executable_p "$ac_dir/$ac_word" || continue
1189ac_cv_prog_CC="${ac_tool_prefix}gcc"
1190echo "$as_me:1190: found $ac_dir/$ac_word" >&5
1191break
1192done
1193
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001194fi
1195fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001196CC=$ac_cv_prog_CC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001197if test -n "$CC"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001198 echo "$as_me:1198: result: $CC" >&5
1199echo "${ECHO_T}$CC" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001200else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001201 echo "$as_me:1201: result: no" >&5
1202echo "${ECHO_T}no" >&6
1203fi
1204
1205fi
1206if test -z "$ac_cv_prog_CC"; then
1207 ac_ct_CC=$CC
1208 # Extract the first word of "gcc", so it can be a program name with args.
1209set dummy gcc; ac_word=$2
1210echo "$as_me:1210: checking for $ac_word" >&5
1211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1212if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1213 echo $ECHO_N "(cached) $ECHO_C" >&6
1214else
1215 if test -n "$ac_ct_CC"; then
1216 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1217else
1218 ac_save_IFS=$IFS; IFS=$ac_path_separator
1219ac_dummy="$PATH"
1220for ac_dir in $ac_dummy; do
1221 IFS=$ac_save_IFS
1222 test -z "$ac_dir" && ac_dir=.
1223 $as_executable_p "$ac_dir/$ac_word" || continue
1224ac_cv_prog_ac_ct_CC="gcc"
1225echo "$as_me:1225: found $ac_dir/$ac_word" >&5
1226break
1227done
1228
1229fi
1230fi
1231ac_ct_CC=$ac_cv_prog_ac_ct_CC
1232if test -n "$ac_ct_CC"; then
1233 echo "$as_me:1233: result: $ac_ct_CC" >&5
1234echo "${ECHO_T}$ac_ct_CC" >&6
1235else
1236 echo "$as_me:1236: result: no" >&5
1237echo "${ECHO_T}no" >&6
1238fi
1239
1240 CC=$ac_ct_CC
1241else
1242 CC="$ac_cv_prog_CC"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001243fi
1244
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001245if test -z "$CC"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001246 if test -n "$ac_tool_prefix"; then
1247 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1248set dummy ${ac_tool_prefix}cc; ac_word=$2
1249echo "$as_me:1249: checking for $ac_word" >&5
1250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1251if test "${ac_cv_prog_CC+set}" = set; then
1252 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001253else
1254 if test -n "$CC"; then
1255 ac_cv_prog_CC="$CC" # Let the user override the test.
1256else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001257 ac_save_IFS=$IFS; IFS=$ac_path_separator
1258ac_dummy="$PATH"
1259for ac_dir in $ac_dummy; do
1260 IFS=$ac_save_IFS
1261 test -z "$ac_dir" && ac_dir=.
1262 $as_executable_p "$ac_dir/$ac_word" || continue
1263ac_cv_prog_CC="${ac_tool_prefix}cc"
1264echo "$as_me:1264: found $ac_dir/$ac_word" >&5
1265break
1266done
1267
1268fi
1269fi
1270CC=$ac_cv_prog_CC
1271if test -n "$CC"; then
1272 echo "$as_me:1272: result: $CC" >&5
1273echo "${ECHO_T}$CC" >&6
1274else
1275 echo "$as_me:1275: result: no" >&5
1276echo "${ECHO_T}no" >&6
1277fi
1278
1279fi
1280if test -z "$ac_cv_prog_CC"; then
1281 ac_ct_CC=$CC
1282 # Extract the first word of "cc", so it can be a program name with args.
1283set dummy cc; ac_word=$2
1284echo "$as_me:1284: checking for $ac_word" >&5
1285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1286if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1287 echo $ECHO_N "(cached) $ECHO_C" >&6
1288else
1289 if test -n "$ac_ct_CC"; then
1290 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1291else
1292 ac_save_IFS=$IFS; IFS=$ac_path_separator
1293ac_dummy="$PATH"
1294for ac_dir in $ac_dummy; do
1295 IFS=$ac_save_IFS
1296 test -z "$ac_dir" && ac_dir=.
1297 $as_executable_p "$ac_dir/$ac_word" || continue
1298ac_cv_prog_ac_ct_CC="cc"
1299echo "$as_me:1299: found $ac_dir/$ac_word" >&5
1300break
1301done
1302
1303fi
1304fi
1305ac_ct_CC=$ac_cv_prog_ac_ct_CC
1306if test -n "$ac_ct_CC"; then
1307 echo "$as_me:1307: result: $ac_ct_CC" >&5
1308echo "${ECHO_T}$ac_ct_CC" >&6
1309else
1310 echo "$as_me:1310: result: no" >&5
1311echo "${ECHO_T}no" >&6
1312fi
1313
1314 CC=$ac_ct_CC
1315else
1316 CC="$ac_cv_prog_CC"
1317fi
1318
1319fi
1320if test -z "$CC"; then
1321 # Extract the first word of "cc", so it can be a program name with args.
1322set dummy cc; ac_word=$2
1323echo "$as_me:1323: checking for $ac_word" >&5
1324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1325if test "${ac_cv_prog_CC+set}" = set; then
1326 echo $ECHO_N "(cached) $ECHO_C" >&6
1327else
1328 if test -n "$CC"; then
1329 ac_cv_prog_CC="$CC" # Let the user override the test.
1330else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001331 ac_prog_rejected=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001332 ac_save_IFS=$IFS; IFS=$ac_path_separator
1333ac_dummy="$PATH"
1334for ac_dir in $ac_dummy; do
1335 IFS=$ac_save_IFS
1336 test -z "$ac_dir" && ac_dir=.
1337 $as_executable_p "$ac_dir/$ac_word" || continue
1338if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1339 ac_prog_rejected=yes
1340 continue
1341fi
1342ac_cv_prog_CC="cc"
1343echo "$as_me:1343: found $ac_dir/$ac_word" >&5
1344break
1345done
1346
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001347if test $ac_prog_rejected = yes; then
1348 # We found a bogon in the path, so make sure we never use it.
1349 set dummy $ac_cv_prog_CC
1350 shift
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001351 if test $# != 0; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001352 # We chose a different compiler from the bogus one.
1353 # However, it has the same basename, so the bogon will be chosen
1354 # first if we set CC to just the basename; use the full file name.
1355 shift
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001356 set dummy "$ac_dir/$ac_word" ${1+"$@"}
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001357 shift
1358 ac_cv_prog_CC="$@"
1359 fi
1360fi
1361fi
1362fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001363CC=$ac_cv_prog_CC
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001364if test -n "$CC"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001365 echo "$as_me:1365: result: $CC" >&5
1366echo "${ECHO_T}$CC" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001367else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001368 echo "$as_me:1368: result: no" >&5
1369echo "${ECHO_T}no" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001370fi
1371
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001372fi
1373if test -z "$CC"; then
1374 if test -n "$ac_tool_prefix"; then
1375 for ac_prog in cl
1376 do
1377 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1378set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1379echo "$as_me:1379: checking for $ac_word" >&5
1380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1381if test "${ac_cv_prog_CC+set}" = set; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00001383else
1384 if test -n "$CC"; then
1385 ac_cv_prog_CC="$CC" # Let the user override the test.
1386else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001387 ac_save_IFS=$IFS; IFS=$ac_path_separator
1388ac_dummy="$PATH"
1389for ac_dir in $ac_dummy; do
1390 IFS=$ac_save_IFS
1391 test -z "$ac_dir" && ac_dir=.
1392 $as_executable_p "$ac_dir/$ac_word" || continue
1393ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1394echo "$as_me:1394: found $ac_dir/$ac_word" >&5
1395break
1396done
1397
Eric Pouech18ad24a2000-01-16 22:16:33 +00001398fi
1399fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001400CC=$ac_cv_prog_CC
Eric Pouech18ad24a2000-01-16 22:16:33 +00001401if test -n "$CC"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001402 echo "$as_me:1402: result: $CC" >&5
1403echo "${ECHO_T}$CC" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00001404else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001405 echo "$as_me:1405: result: no" >&5
1406echo "${ECHO_T}no" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001407fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001408
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001409 test -n "$CC" && break
1410 done
1411fi
1412if test -z "$CC"; then
1413 ac_ct_CC=$CC
1414 for ac_prog in cl
1415do
1416 # Extract the first word of "$ac_prog", so it can be a program name with args.
1417set dummy $ac_prog; ac_word=$2
1418echo "$as_me:1418: checking for $ac_word" >&5
1419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1420if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1421 echo $ECHO_N "(cached) $ECHO_C" >&6
1422else
1423 if test -n "$ac_ct_CC"; then
1424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1425else
1426 ac_save_IFS=$IFS; IFS=$ac_path_separator
1427ac_dummy="$PATH"
1428for ac_dir in $ac_dummy; do
1429 IFS=$ac_save_IFS
1430 test -z "$ac_dir" && ac_dir=.
1431 $as_executable_p "$ac_dir/$ac_word" || continue
1432ac_cv_prog_ac_ct_CC="$ac_prog"
1433echo "$as_me:1433: found $ac_dir/$ac_word" >&5
1434break
1435done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001436
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001437fi
1438fi
1439ac_ct_CC=$ac_cv_prog_ac_ct_CC
1440if test -n "$ac_ct_CC"; then
1441 echo "$as_me:1441: result: $ac_ct_CC" >&5
1442echo "${ECHO_T}$ac_ct_CC" >&6
1443else
1444 echo "$as_me:1444: result: no" >&5
1445echo "${ECHO_T}no" >&6
1446fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001447
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001448 test -n "$ac_ct_CC" && break
1449done
Eric Pouech18ad24a2000-01-16 22:16:33 +00001450
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001451 CC=$ac_ct_CC
1452fi
1453
1454fi
1455
1456test -z "$CC" && { { echo "$as_me:1456: error: no acceptable cc found in \$PATH" >&5
1457echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1458 { (exit 1); exit 1; }; }
1459
1460# Provide some information about the compiler.
1461echo "$as_me:1461:" \
1462 "checking for C compiler version" >&5
1463ac_compiler=`set X $ac_compile; echo $2`
1464{ (eval echo "$as_me:1464: \"$ac_compiler --version </dev/null >&5\"") >&5
1465 (eval $ac_compiler --version </dev/null >&5) 2>&5
1466 ac_status=$?
1467 echo "$as_me:1467: \$? = $ac_status" >&5
1468 (exit $ac_status); }
1469{ (eval echo "$as_me:1469: \"$ac_compiler -v </dev/null >&5\"") >&5
1470 (eval $ac_compiler -v </dev/null >&5) 2>&5
1471 ac_status=$?
1472 echo "$as_me:1472: \$? = $ac_status" >&5
1473 (exit $ac_status); }
1474{ (eval echo "$as_me:1474: \"$ac_compiler -V </dev/null >&5\"") >&5
1475 (eval $ac_compiler -V </dev/null >&5) 2>&5
1476 ac_status=$?
1477 echo "$as_me:1477: \$? = $ac_status" >&5
1478 (exit $ac_status); }
1479
1480cat >conftest.$ac_ext <<_ACEOF
1481#line 1481 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001482#include "confdefs.h"
Eric Pouech18ad24a2000-01-16 22:16:33 +00001483
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001484int
1485main ()
1486{
1487
1488 ;
1489 return 0;
1490}
1491_ACEOF
1492ac_clean_files_save=$ac_clean_files
1493ac_clean_files="$ac_clean_files a.out a.exe"
1494# Try to create an executable without -o first, disregard a.out.
1495# It will help us diagnose broken compilers, and finding out an intuition
1496# of exeext.
1497echo "$as_me:1497: checking for C compiler default output" >&5
1498echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1499ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1500if { (eval echo "$as_me:1500: \"$ac_link_default\"") >&5
1501 (eval $ac_link_default) 2>&5
1502 ac_status=$?
1503 echo "$as_me:1503: \$? = $ac_status" >&5
1504 (exit $ac_status); }; then
1505 # Find the output, starting from the most likely. This scheme is
1506# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1507# resort.
1508for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1509 ls a.out conftest 2>/dev/null;
1510 ls a.* conftest.* 2>/dev/null`; do
1511 case $ac_file in
1512 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1513 a.out ) # We found the default executable, but exeext='' is most
1514 # certainly right.
1515 break;;
1516 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1517 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1518 export ac_cv_exeext
1519 break;;
1520 * ) break;;
1521 esac
1522done
1523else
1524 echo "$as_me: failed program was:" >&5
1525cat conftest.$ac_ext >&5
1526{ { echo "$as_me:1526: error: C compiler cannot create executables" >&5
1527echo "$as_me: error: C compiler cannot create executables" >&2;}
1528 { (exit 77); exit 77; }; }
1529fi
1530
1531ac_exeext=$ac_cv_exeext
1532echo "$as_me:1532: result: $ac_file" >&5
1533echo "${ECHO_T}$ac_file" >&6
1534
1535# Check the compiler produces executables we can run. If not, either
1536# the compiler is broken, or we cross compile.
1537echo "$as_me:1537: checking whether the C compiler works" >&5
1538echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1539# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1540# If not cross compiling, check that we can run a simple program.
1541if test "$cross_compiling" != yes; then
1542 if { ac_try='./$ac_file'
1543 { (eval echo "$as_me:1543: \"$ac_try\"") >&5
1544 (eval $ac_try) 2>&5
1545 ac_status=$?
1546 echo "$as_me:1546: \$? = $ac_status" >&5
1547 (exit $ac_status); }; }; then
1548 cross_compiling=no
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001549 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001550 if test "$cross_compiling" = maybe; then
1551 cross_compiling=yes
1552 else
1553 { { echo "$as_me:1553: error: cannot run C compiled programs.
1554If you meant to cross compile, use \`--host'." >&5
1555echo "$as_me: error: cannot run C compiled programs.
1556If you meant to cross compile, use \`--host'." >&2;}
1557 { (exit 1); exit 1; }; }
1558 fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001559 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001560fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001561echo "$as_me:1561: result: yes" >&5
1562echo "${ECHO_T}yes" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001563
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001564rm -f a.out a.exe conftest$ac_cv_exeext
1565ac_clean_files=$ac_clean_files_save
1566# Check the compiler produces executables we can run. If not, either
1567# the compiler is broken, or we cross compile.
1568echo "$as_me:1568: checking whether we are cross compiling" >&5
1569echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1570echo "$as_me:1570: result: $cross_compiling" >&5
1571echo "${ECHO_T}$cross_compiling" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001572
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001573echo "$as_me:1573: checking for executable suffix" >&5
1574echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1575if { (eval echo "$as_me:1575: \"$ac_link\"") >&5
1576 (eval $ac_link) 2>&5
1577 ac_status=$?
1578 echo "$as_me:1578: \$? = $ac_status" >&5
1579 (exit $ac_status); }; then
1580 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1581# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1582# work properly (i.e., refer to `conftest.exe'), while it won't with
1583# `rm'.
1584for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1585 case $ac_file in
1586 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1587 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1588 export ac_cv_exeext
1589 break;;
1590 * ) break;;
1591 esac
1592done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001593else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001594 { { echo "$as_me:1594: error: cannot compute EXEEXT: cannot compile and link" >&5
1595echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1596 { (exit 1); exit 1; }; }
1597fi
1598
1599rm -f conftest$ac_cv_exeext
1600echo "$as_me:1600: result: $ac_cv_exeext" >&5
1601echo "${ECHO_T}$ac_cv_exeext" >&6
1602
1603rm -f conftest.$ac_ext
1604EXEEXT=$ac_cv_exeext
1605ac_exeext=$EXEEXT
1606echo "$as_me:1606: checking for object suffix" >&5
1607echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1608if test "${ac_cv_objext+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1610else
1611 cat >conftest.$ac_ext <<_ACEOF
1612#line 1612 "configure"
1613#include "confdefs.h"
1614
1615int
1616main ()
1617{
1618
1619 ;
1620 return 0;
1621}
1622_ACEOF
1623rm -f conftest.o conftest.obj
1624if { (eval echo "$as_me:1624: \"$ac_compile\"") >&5
1625 (eval $ac_compile) 2>&5
1626 ac_status=$?
1627 echo "$as_me:1627: \$? = $ac_status" >&5
1628 (exit $ac_status); }; then
1629 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1630 case $ac_file in
1631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1632 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1633 break;;
1634 esac
1635done
1636else
1637 echo "$as_me: failed program was:" >&5
1638cat conftest.$ac_ext >&5
1639{ { echo "$as_me:1639: error: cannot compute OBJEXT: cannot compile" >&5
1640echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1641 { (exit 1); exit 1; }; }
1642fi
1643
1644rm -f conftest.$ac_cv_objext conftest.$ac_ext
1645fi
1646echo "$as_me:1646: result: $ac_cv_objext" >&5
1647echo "${ECHO_T}$ac_cv_objext" >&6
1648OBJEXT=$ac_cv_objext
1649ac_objext=$OBJEXT
1650echo "$as_me:1650: checking whether we are using the GNU C compiler" >&5
1651echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1652if test "${ac_cv_c_compiler_gnu+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1654else
1655 cat >conftest.$ac_ext <<_ACEOF
1656#line 1656 "configure"
1657#include "confdefs.h"
1658
1659int
1660main ()
1661{
1662#ifndef __GNUC__
1663 choke me
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001664#endif
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001665
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001666 ;
1667 return 0;
1668}
1669_ACEOF
1670rm -f conftest.$ac_objext
1671if { (eval echo "$as_me:1671: \"$ac_compile\"") >&5
1672 (eval $ac_compile) 2>&5
1673 ac_status=$?
1674 echo "$as_me:1674: \$? = $ac_status" >&5
1675 (exit $ac_status); } &&
1676 { ac_try='test -s conftest.$ac_objext'
1677 { (eval echo "$as_me:1677: \"$ac_try\"") >&5
1678 (eval $ac_try) 2>&5
1679 ac_status=$?
1680 echo "$as_me:1680: \$? = $ac_status" >&5
1681 (exit $ac_status); }; }; then
1682 ac_compiler_gnu=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +00001683else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001684 echo "$as_me: failed program was:" >&5
1685cat conftest.$ac_ext >&5
1686ac_compiler_gnu=no
Eric Pouech18ad24a2000-01-16 22:16:33 +00001687fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001688rm -f conftest.$ac_objext conftest.$ac_ext
1689ac_cv_c_compiler_gnu=$ac_compiler_gnu
Eric Pouech18ad24a2000-01-16 22:16:33 +00001690
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001691fi
1692echo "$as_me:1692: result: $ac_cv_c_compiler_gnu" >&5
1693echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1694GCC=`test $ac_compiler_gnu = yes && echo yes`
1695ac_test_CFLAGS=${CFLAGS+set}
1696ac_save_CFLAGS=$CFLAGS
1697CFLAGS="-g"
1698echo "$as_me:1698: checking whether $CC accepts -g" >&5
1699echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1700if test "${ac_cv_prog_cc_g+set}" = set; then
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001702else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001703 cat >conftest.$ac_ext <<_ACEOF
1704#line 1704 "configure"
1705#include "confdefs.h"
1706
1707int
1708main ()
1709{
1710
1711 ;
1712 return 0;
1713}
1714_ACEOF
1715rm -f conftest.$ac_objext
1716if { (eval echo "$as_me:1716: \"$ac_compile\"") >&5
1717 (eval $ac_compile) 2>&5
1718 ac_status=$?
1719 echo "$as_me:1719: \$? = $ac_status" >&5
1720 (exit $ac_status); } &&
1721 { ac_try='test -s conftest.$ac_objext'
1722 { (eval echo "$as_me:1722: \"$ac_try\"") >&5
1723 (eval $ac_try) 2>&5
1724 ac_status=$?
1725 echo "$as_me:1725: \$? = $ac_status" >&5
1726 (exit $ac_status); }; }; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001727 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001728else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001729 echo "$as_me: failed program was:" >&5
1730cat conftest.$ac_ext >&5
1731ac_cv_prog_cc_g=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001732fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001733rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001734fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001735echo "$as_me:1735: result: $ac_cv_prog_cc_g" >&5
1736echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00001737if test "$ac_test_CFLAGS" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001738 CFLAGS=$ac_save_CFLAGS
Eric Pouech18ad24a2000-01-16 22:16:33 +00001739elif test $ac_cv_prog_cc_g = yes; then
1740 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001741 CFLAGS="-g -O2"
1742 else
Eric Pouech18ad24a2000-01-16 22:16:33 +00001743 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001744 fi
1745else
Eric Pouech18ad24a2000-01-16 22:16:33 +00001746 if test "$GCC" = yes; then
1747 CFLAGS="-O2"
1748 else
1749 CFLAGS=
1750 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001751fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001752# Some people use a C++ compiler to compile C. Since we use `exit',
1753# in C++ we need to declare it. In case someone uses the same compiler
1754# for both compiling C and C++ we need to have the C++ compiler decide
1755# the declaration of exit, since it's the most demanding environment.
1756cat >conftest.$ac_ext <<_ACEOF
1757#ifndef __cplusplus
1758 choke me
1759#endif
1760_ACEOF
1761rm -f conftest.$ac_objext
1762if { (eval echo "$as_me:1762: \"$ac_compile\"") >&5
1763 (eval $ac_compile) 2>&5
1764 ac_status=$?
1765 echo "$as_me:1765: \$? = $ac_status" >&5
1766 (exit $ac_status); } &&
1767 { ac_try='test -s conftest.$ac_objext'
1768 { (eval echo "$as_me:1768: \"$ac_try\"") >&5
1769 (eval $ac_try) 2>&5
1770 ac_status=$?
1771 echo "$as_me:1771: \$? = $ac_status" >&5
1772 (exit $ac_status); }; }; then
1773 for ac_declaration in \
1774 ''\
1775 '#include <stdlib.h>' \
1776 'extern "C" void std::exit (int) throw (); using std::exit;' \
1777 'extern "C" void std::exit (int); using std::exit;' \
1778 'extern "C" void exit (int) throw ();' \
1779 'extern "C" void exit (int);' \
1780 'void exit (int);'
1781do
1782 cat >conftest.$ac_ext <<_ACEOF
1783#line 1783 "configure"
1784#include "confdefs.h"
1785#include <stdlib.h>
1786$ac_declaration
1787int
1788main ()
1789{
1790exit (42);
1791 ;
1792 return 0;
1793}
1794_ACEOF
1795rm -f conftest.$ac_objext
1796if { (eval echo "$as_me:1796: \"$ac_compile\"") >&5
1797 (eval $ac_compile) 2>&5
1798 ac_status=$?
1799 echo "$as_me:1799: \$? = $ac_status" >&5
1800 (exit $ac_status); } &&
1801 { ac_try='test -s conftest.$ac_objext'
1802 { (eval echo "$as_me:1802: \"$ac_try\"") >&5
1803 (eval $ac_try) 2>&5
1804 ac_status=$?
1805 echo "$as_me:1805: \$? = $ac_status" >&5
1806 (exit $ac_status); }; }; then
1807 :
1808else
1809 echo "$as_me: failed program was:" >&5
1810cat conftest.$ac_ext >&5
1811continue
1812fi
1813rm -f conftest.$ac_objext conftest.$ac_ext
1814 cat >conftest.$ac_ext <<_ACEOF
1815#line 1815 "configure"
1816#include "confdefs.h"
1817$ac_declaration
1818int
1819main ()
1820{
1821exit (42);
1822 ;
1823 return 0;
1824}
1825_ACEOF
1826rm -f conftest.$ac_objext
1827if { (eval echo "$as_me:1827: \"$ac_compile\"") >&5
1828 (eval $ac_compile) 2>&5
1829 ac_status=$?
1830 echo "$as_me:1830: \$? = $ac_status" >&5
1831 (exit $ac_status); } &&
1832 { ac_try='test -s conftest.$ac_objext'
1833 { (eval echo "$as_me:1833: \"$ac_try\"") >&5
1834 (eval $ac_try) 2>&5
1835 ac_status=$?
1836 echo "$as_me:1836: \$? = $ac_status" >&5
1837 (exit $ac_status); }; }; then
1838 break
1839else
1840 echo "$as_me: failed program was:" >&5
1841cat conftest.$ac_ext >&5
1842fi
1843rm -f conftest.$ac_objext conftest.$ac_ext
1844done
1845rm -f conftest*
1846if test -n "$ac_declaration"; then
1847 echo '#ifdef __cplusplus' >>confdefs.h
1848 echo $ac_declaration >>confdefs.h
1849 echo '#endif' >>confdefs.h
1850fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001851
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001852else
1853 echo "$as_me: failed program was:" >&5
1854cat conftest.$ac_ext >&5
1855fi
1856rm -f conftest.$ac_objext conftest.$ac_ext
1857ac_ext=c
1858ac_cpp='$CPP $CPPFLAGS'
1859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1861ac_compiler_gnu=$ac_cv_c_compiler_gnu
1862
1863ac_ext=c
1864ac_cpp='$CPP $CPPFLAGS'
1865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1867ac_compiler_gnu=$ac_cv_c_compiler_gnu
1868echo "$as_me:1868: checking how to run the C preprocessor" >&5
1869echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001870# On Suns, sometimes $CPP names a directory.
1871if test -n "$CPP" && test -d "$CPP"; then
1872 CPP=
1873fi
1874if test -z "$CPP"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001875 if test "${ac_cv_prog_CPP+set}" = set; then
1876 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001877else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001878 # Double quotes because CPP needs to be expanded
1879 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1880 do
1881 ac_preproc_ok=false
1882for ac_c_preproc_warn_flag in '' yes
1883do
1884 # Use a header file that comes with gcc, so configuring glibc
1885 # with a fresh cross-compiler works.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001886 # On the NeXT, cc -E runs the code through the compiler's parser,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001887 # not just through cpp. "Syntax error" is here to catch this case.
1888 cat >conftest.$ac_ext <<_ACEOF
1889#line 1889 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001890#include "confdefs.h"
1891#include <assert.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001892 Syntax error
1893_ACEOF
1894if { (eval echo "$as_me:1894: \"$ac_cpp conftest.$ac_ext\"") >&5
1895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1896 ac_status=$?
1897 egrep -v '^ *\+' conftest.er1 >conftest.err
1898 rm -f conftest.er1
1899 cat conftest.err >&5
1900 echo "$as_me:1900: \$? = $ac_status" >&5
1901 (exit $ac_status); } >/dev/null; then
1902 if test -s conftest.err; then
1903 ac_cpp_err=$ac_c_preproc_warn_flag
1904 else
1905 ac_cpp_err=
1906 fi
1907else
1908 ac_cpp_err=yes
1909fi
1910if test -z "$ac_cpp_err"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001911 :
1912else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001913 echo "$as_me: failed program was:" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001914 cat conftest.$ac_ext >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001915 # Broken: fails on valid input.
1916continue
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001917fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001918rm -f conftest.err conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001919
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001920 # OK, works on sane cases. Now check whether non-existent headers
1921 # can be detected and how.
1922 cat >conftest.$ac_ext <<_ACEOF
1923#line 1923 "configure"
1924#include "confdefs.h"
1925#include <ac_nonexistent.h>
1926_ACEOF
1927if { (eval echo "$as_me:1927: \"$ac_cpp conftest.$ac_ext\"") >&5
1928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1929 ac_status=$?
1930 egrep -v '^ *\+' conftest.er1 >conftest.err
1931 rm -f conftest.er1
1932 cat conftest.err >&5
1933 echo "$as_me:1933: \$? = $ac_status" >&5
1934 (exit $ac_status); } >/dev/null; then
1935 if test -s conftest.err; then
1936 ac_cpp_err=$ac_c_preproc_warn_flag
1937 else
1938 ac_cpp_err=
1939 fi
1940else
1941 ac_cpp_err=yes
1942fi
1943if test -z "$ac_cpp_err"; then
1944 # Broken: success on invalid input.
1945continue
1946else
1947 echo "$as_me: failed program was:" >&5
1948 cat conftest.$ac_ext >&5
1949 # Passes both tests.
1950ac_preproc_ok=:
1951break
1952fi
1953rm -f conftest.err conftest.$ac_ext
1954
1955done
1956# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1957rm -f conftest.err conftest.$ac_ext
1958if $ac_preproc_ok; then
1959 break
1960fi
1961
1962 done
1963 ac_cv_prog_CPP=$CPP
1964
1965fi
1966 CPP=$ac_cv_prog_CPP
1967else
1968 ac_cv_prog_CPP=$CPP
1969fi
1970echo "$as_me:1970: result: $CPP" >&5
1971echo "${ECHO_T}$CPP" >&6
1972ac_preproc_ok=false
1973for ac_c_preproc_warn_flag in '' yes
1974do
1975 # Use a header file that comes with gcc, so configuring glibc
1976 # with a fresh cross-compiler works.
1977 # On the NeXT, cc -E runs the code through the compiler's parser,
1978 # not just through cpp. "Syntax error" is here to catch this case.
1979 cat >conftest.$ac_ext <<_ACEOF
1980#line 1980 "configure"
1981#include "confdefs.h"
1982#include <assert.h>
1983 Syntax error
1984_ACEOF
1985if { (eval echo "$as_me:1985: \"$ac_cpp conftest.$ac_ext\"") >&5
1986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1987 ac_status=$?
1988 egrep -v '^ *\+' conftest.er1 >conftest.err
1989 rm -f conftest.er1
1990 cat conftest.err >&5
1991 echo "$as_me:1991: \$? = $ac_status" >&5
1992 (exit $ac_status); } >/dev/null; then
1993 if test -s conftest.err; then
1994 ac_cpp_err=$ac_c_preproc_warn_flag
1995 else
1996 ac_cpp_err=
1997 fi
1998else
1999 ac_cpp_err=yes
2000fi
2001if test -z "$ac_cpp_err"; then
2002 :
2003else
2004 echo "$as_me: failed program was:" >&5
2005 cat conftest.$ac_ext >&5
2006 # Broken: fails on valid input.
2007continue
2008fi
2009rm -f conftest.err conftest.$ac_ext
2010
2011 # OK, works on sane cases. Now check whether non-existent headers
2012 # can be detected and how.
2013 cat >conftest.$ac_ext <<_ACEOF
2014#line 2014 "configure"
2015#include "confdefs.h"
2016#include <ac_nonexistent.h>
2017_ACEOF
2018if { (eval echo "$as_me:2018: \"$ac_cpp conftest.$ac_ext\"") >&5
2019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2020 ac_status=$?
2021 egrep -v '^ *\+' conftest.er1 >conftest.err
2022 rm -f conftest.er1
2023 cat conftest.err >&5
2024 echo "$as_me:2024: \$? = $ac_status" >&5
2025 (exit $ac_status); } >/dev/null; then
2026 if test -s conftest.err; then
2027 ac_cpp_err=$ac_c_preproc_warn_flag
2028 else
2029 ac_cpp_err=
2030 fi
2031else
2032 ac_cpp_err=yes
2033fi
2034if test -z "$ac_cpp_err"; then
2035 # Broken: success on invalid input.
2036continue
2037else
2038 echo "$as_me: failed program was:" >&5
2039 cat conftest.$ac_ext >&5
2040 # Passes both tests.
2041ac_preproc_ok=:
2042break
2043fi
2044rm -f conftest.err conftest.$ac_ext
2045
2046done
2047# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2048rm -f conftest.err conftest.$ac_ext
2049if $ac_preproc_ok; then
2050 :
2051else
2052 { { echo "$as_me:2052: error: C preprocessor \"$CPP\" fails sanity check" >&5
2053echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2054 { (exit 1); exit 1; }; }
2055fi
2056
2057ac_ext=c
2058ac_cpp='$CPP $CPPFLAGS'
2059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2061ac_compiler_gnu=$ac_cv_c_compiler_gnu
2062
2063echo "$as_me:2063: checking for X" >&5
2064echo $ECHO_N "checking for X... $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002065
2066# Check whether --with-x or --without-x was given.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002067if test "${with_x+set}" = set; then
2068 withval="$with_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002069
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002070fi;
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002071# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002072if test "x$with_x" = xno; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002073 # The user explicitly disabled X.
2074 have_x=disabled
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002075else
2076 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002077 # Both variables are already set.
2078 have_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002079 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002080 if test "${ac_cv_have_x+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002082else
2083 # One or both of the vars are not set, and there is no cached value.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002084ac_x_includes=no ac_x_libraries=no
2085rm -fr conftest.dir
2086if mkdir conftest.dir; then
2087 cd conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002088 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002089 cat >Imakefile <<'EOF'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002090acfindx:
2091 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2092EOF
2093 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002094 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002095 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002096 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2097 for ac_extension in a so sl; do
2098 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002099 test -f $ac_im_libdir/libX11.$ac_extension; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002100 ac_im_usrlibdir=$ac_im_libdir; break
2101 fi
2102 done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002103 # Screen out bogus values from the imake configuration. They are
2104 # bogus both because they are the default anyway, and because
2105 # using them would break gcc on systems where it needs fixed includes.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002106 case $ac_im_incroot in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002107 /usr/include) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002108 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002109 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002110 case $ac_im_usrlibdir in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002111 /usr/lib | /lib) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002112 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002113 esac
2114 fi
2115 cd ..
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002116 rm -fr conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002117fi
2118
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002119# Standard set of common directories for X headers.
2120# Check X11 before X11Rn because it is often a symlink to the current release.
2121ac_x_header_dirs='
2122/usr/X11/include
2123/usr/X11R6/include
2124/usr/X11R5/include
2125/usr/X11R4/include
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002126
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002127/usr/include/X11
2128/usr/include/X11R6
2129/usr/include/X11R5
2130/usr/include/X11R4
2131
2132/usr/local/X11/include
2133/usr/local/X11R6/include
2134/usr/local/X11R5/include
2135/usr/local/X11R4/include
2136
2137/usr/local/include/X11
2138/usr/local/include/X11R6
2139/usr/local/include/X11R5
2140/usr/local/include/X11R4
2141
2142/usr/X386/include
2143/usr/x386/include
2144/usr/XFree86/include/X11
2145
2146/usr/include
2147/usr/local/include
2148/usr/unsupported/include
2149/usr/athena/include
2150/usr/local/x11r5/include
2151/usr/lpp/Xamples/include
2152
2153/usr/openwin/include
2154/usr/openwin/share/include'
2155
2156if test "$ac_x_includes" = no; then
2157 # Guess where to find include files, by looking for Intrinsic.h.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002158 # First, try using that file with no special directory specified.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002159 cat >conftest.$ac_ext <<_ACEOF
2160#line 2160 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002161#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002162#include <X11/Intrinsic.h>
2163_ACEOF
2164if { (eval echo "$as_me:2164: \"$ac_cpp conftest.$ac_ext\"") >&5
2165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2166 ac_status=$?
2167 egrep -v '^ *\+' conftest.er1 >conftest.err
2168 rm -f conftest.er1
2169 cat conftest.err >&5
2170 echo "$as_me:2170: \$? = $ac_status" >&5
2171 (exit $ac_status); } >/dev/null; then
2172 if test -s conftest.err; then
2173 ac_cpp_err=$ac_c_preproc_warn_flag
2174 else
2175 ac_cpp_err=
2176 fi
2177else
2178 ac_cpp_err=yes
2179fi
2180if test -z "$ac_cpp_err"; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002181 # We can compile using X headers with no special include directory.
2182ac_x_includes=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002183else
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 for ac_dir in $ac_x_header_dirs; do
2187 if test -r "$ac_dir/X11/Intrinsic.h"; then
2188 ac_x_includes=$ac_dir
2189 break
2190 fi
2191done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002192fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002193rm -f conftest.err conftest.$ac_ext
2194fi # $ac_x_includes = no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002195
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002196if test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002197 # Check for the libraries.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002198 # See if we find them without any special options.
2199 # Don't add to $LIBS permanently.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002200 ac_save_LIBS=$LIBS
2201 LIBS="-lXt $LIBS"
2202 cat >conftest.$ac_ext <<_ACEOF
2203#line 2203 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002204#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002205#include <X11/Intrinsic.h>
2206int
2207main ()
2208{
2209XtMalloc (0)
2210 ;
2211 return 0;
2212}
2213_ACEOF
2214rm -f conftest.$ac_objext conftest$ac_exeext
2215if { (eval echo "$as_me:2215: \"$ac_link\"") >&5
2216 (eval $ac_link) 2>&5
2217 ac_status=$?
2218 echo "$as_me:2218: \$? = $ac_status" >&5
2219 (exit $ac_status); } &&
2220 { ac_try='test -s conftest$ac_exeext'
2221 { (eval echo "$as_me:2221: \"$ac_try\"") >&5
2222 (eval $ac_try) 2>&5
2223 ac_status=$?
2224 echo "$as_me:2224: \$? = $ac_status" >&5
2225 (exit $ac_status); }; }; then
2226 LIBS=$ac_save_LIBS
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002227# We can link X programs with no special library path.
2228ac_x_libraries=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002229else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002230 echo "$as_me: failed program was:" >&5
2231cat conftest.$ac_ext >&5
2232LIBS=$ac_save_LIBS
2233for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002234do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002235 # Don't even attempt the hair of trying to link an X program!
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002236 for ac_extension in a so sl; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002237 if test -r $ac_dir/libXt.$ac_extension; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002238 ac_x_libraries=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002239 break 2
2240 fi
2241 done
2242done
2243fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002244rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2245fi # $ac_x_libraries = no
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002246
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002247if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002248 # Didn't find X anywhere. Cache the known absence of X.
2249 ac_cv_have_x="have_x=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002250else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002251 # Record where we found X for the cache.
2252 ac_cv_have_x="have_x=yes \
2253 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002254fi
2255fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002256
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002257 fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002258 eval "$ac_cv_have_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002259fi # $with_x != no
2260
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002261if test "$have_x" != yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002262 echo "$as_me:2262: result: $have_x" >&5
2263echo "${ECHO_T}$have_x" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002264 no_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002265else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002266 # If each of the values was on the command line, it overrides each guess.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002267 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2268 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002269 # Update the cache value to reflect the command line values.
2270 ac_cv_have_x="have_x=yes \
2271 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002272 echo "$as_me:2272: result: libraries $x_libraries, headers $x_includes" >&5
2273echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002274fi
2275
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002276if test "$no_x" = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002277 # Not all programs may use this symbol, but it does not hurt to define it.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002278
2279cat >>confdefs.h <<\EOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002280#define X_DISPLAY_MISSING 1
2281EOF
2282
2283 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002284else
2285 if test -n "$x_includes"; then
2286 X_CFLAGS="$X_CFLAGS -I$x_includes"
2287 fi
2288
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002289 # It would also be nice to do this for all -L options, not just this one.
2290 if test -n "$x_libraries"; then
2291 X_LIBS="$X_LIBS -L$x_libraries"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002292 # For Solaris; some versions of Sun CC require a space after -R and
2293 # others require no space. Words are not sufficient . . . .
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002294 case `(uname -sr) 2>/dev/null` in
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002295 "SunOS 5"*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002296 echo "$as_me:2296: checking whether -R must be followed by a space" >&5
2297echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2298 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2299 cat >conftest.$ac_ext <<_ACEOF
2300#line 2300 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002301#include "confdefs.h"
2302
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002303int
2304main ()
2305{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002306
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002307 ;
2308 return 0;
2309}
2310_ACEOF
2311rm -f conftest.$ac_objext conftest$ac_exeext
2312if { (eval echo "$as_me:2312: \"$ac_link\"") >&5
2313 (eval $ac_link) 2>&5
2314 ac_status=$?
2315 echo "$as_me:2315: \$? = $ac_status" >&5
2316 (exit $ac_status); } &&
2317 { ac_try='test -s conftest$ac_exeext'
2318 { (eval echo "$as_me:2318: \"$ac_try\"") >&5
2319 (eval $ac_try) 2>&5
2320 ac_status=$?
2321 echo "$as_me:2321: \$? = $ac_status" >&5
2322 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002323 ac_R_nospace=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002324else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002325 echo "$as_me: failed program was:" >&5
2326cat conftest.$ac_ext >&5
2327ac_R_nospace=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002328fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002329rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002330 if test $ac_R_nospace = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002331 echo "$as_me:2331: result: no" >&5
2332echo "${ECHO_T}no" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002333 X_LIBS="$X_LIBS -R$x_libraries"
2334 else
2335 LIBS="$ac_xsave_LIBS -R $x_libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002336 cat >conftest.$ac_ext <<_ACEOF
2337#line 2337 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002338#include "confdefs.h"
2339
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002340int
2341main ()
2342{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002343
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002344 ;
2345 return 0;
2346}
2347_ACEOF
2348rm -f conftest.$ac_objext conftest$ac_exeext
2349if { (eval echo "$as_me:2349: \"$ac_link\"") >&5
2350 (eval $ac_link) 2>&5
2351 ac_status=$?
2352 echo "$as_me:2352: \$? = $ac_status" >&5
2353 (exit $ac_status); } &&
2354 { ac_try='test -s conftest$ac_exeext'
2355 { (eval echo "$as_me:2355: \"$ac_try\"") >&5
2356 (eval $ac_try) 2>&5
2357 ac_status=$?
2358 echo "$as_me:2358: \$? = $ac_status" >&5
2359 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002360 ac_R_space=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002361else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002362 echo "$as_me: failed program was:" >&5
2363cat conftest.$ac_ext >&5
2364ac_R_space=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002365fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002366rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002367 if test $ac_R_space = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002368 echo "$as_me:2368: result: yes" >&5
2369echo "${ECHO_T}yes" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002370 X_LIBS="$X_LIBS -R $x_libraries"
2371 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002372 echo "$as_me:2372: result: neither works" >&5
2373echo "${ECHO_T}neither works" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002374 fi
2375 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002376 LIBS=$ac_xsave_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002377 esac
2378 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002379
2380 # Check for system-dependent libraries X programs must link with.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002381 # Do this before checking for the system-independent R6 libraries
2382 # (-lICE), since we may need -lsocket or whatever for X linking.
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002383
2384 if test "$ISC" = yes; then
2385 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2386 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002387 # Martyn Johnson says this is needed for Ultrix, if the X
2388 # libraries were built with DECnet support. And Karl Berry says
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002389 # the Alpha needs dnet_stub (dnet does not exist).
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002390 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2391 cat >conftest.$ac_ext <<_ACEOF
2392#line 2392 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002393#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002394
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002395/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002396#ifdef __cplusplus
2397extern "C"
2398#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002399/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002400 builtin and then its argument prototype would still apply. */
2401char XOpenDisplay ();
2402int
2403main ()
2404{
2405XOpenDisplay ();
2406 ;
2407 return 0;
2408}
2409_ACEOF
2410rm -f conftest.$ac_objext conftest$ac_exeext
2411if { (eval echo "$as_me:2411: \"$ac_link\"") >&5
2412 (eval $ac_link) 2>&5
2413 ac_status=$?
2414 echo "$as_me:2414: \$? = $ac_status" >&5
2415 (exit $ac_status); } &&
2416 { ac_try='test -s conftest$ac_exeext'
2417 { (eval echo "$as_me:2417: \"$ac_try\"") >&5
2418 (eval $ac_try) 2>&5
2419 ac_status=$?
2420 echo "$as_me:2420: \$? = $ac_status" >&5
2421 (exit $ac_status); }; }; then
2422 :
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002423else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002424 echo "$as_me: failed program was:" >&5
2425cat conftest.$ac_ext >&5
2426echo "$as_me:2426: checking for dnet_ntoa in -ldnet" >&5
2427echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2428if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2430else
2431 ac_check_lib_save_LIBS=$LIBS
2432LIBS="-ldnet $LIBS"
2433cat >conftest.$ac_ext <<_ACEOF
2434#line 2434 "configure"
2435#include "confdefs.h"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002436
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002437/* Override any gcc2 internal prototype to avoid an error. */
2438#ifdef __cplusplus
2439extern "C"
2440#endif
2441/* We use char because int might match the return type of a gcc2
2442 builtin and then its argument prototype would still apply. */
2443char dnet_ntoa ();
2444int
2445main ()
2446{
2447dnet_ntoa ();
2448 ;
2449 return 0;
2450}
2451_ACEOF
2452rm -f conftest.$ac_objext conftest$ac_exeext
2453if { (eval echo "$as_me:2453: \"$ac_link\"") >&5
2454 (eval $ac_link) 2>&5
2455 ac_status=$?
2456 echo "$as_me:2456: \$? = $ac_status" >&5
2457 (exit $ac_status); } &&
2458 { ac_try='test -s conftest$ac_exeext'
2459 { (eval echo "$as_me:2459: \"$ac_try\"") >&5
2460 (eval $ac_try) 2>&5
2461 ac_status=$?
2462 echo "$as_me:2462: \$? = $ac_status" >&5
2463 (exit $ac_status); }; }; then
2464 ac_cv_lib_dnet_dnet_ntoa=yes
2465else
2466 echo "$as_me: failed program was:" >&5
2467cat conftest.$ac_ext >&5
2468ac_cv_lib_dnet_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002469fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002470rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2471LIBS=$ac_check_lib_save_LIBS
2472fi
2473echo "$as_me:2473: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
2474echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2475if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002476 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002477fi
2478
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002479 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002480 echo "$as_me:2480: checking for dnet_ntoa in -ldnet_stub" >&5
2481echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2482if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002484else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002485 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002486LIBS="-ldnet_stub $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002487cat >conftest.$ac_ext <<_ACEOF
2488#line 2488 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002489#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002490
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002491/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002492#ifdef __cplusplus
2493extern "C"
2494#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002495/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002496 builtin and then its argument prototype would still apply. */
2497char dnet_ntoa ();
2498int
2499main ()
2500{
2501dnet_ntoa ();
2502 ;
2503 return 0;
2504}
2505_ACEOF
2506rm -f conftest.$ac_objext conftest$ac_exeext
2507if { (eval echo "$as_me:2507: \"$ac_link\"") >&5
2508 (eval $ac_link) 2>&5
2509 ac_status=$?
2510 echo "$as_me:2510: \$? = $ac_status" >&5
2511 (exit $ac_status); } &&
2512 { ac_try='test -s conftest$ac_exeext'
2513 { (eval echo "$as_me:2513: \"$ac_try\"") >&5
2514 (eval $ac_try) 2>&5
2515 ac_status=$?
2516 echo "$as_me:2516: \$? = $ac_status" >&5
2517 (exit $ac_status); }; }; then
2518 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002519else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002520 echo "$as_me: failed program was:" >&5
2521cat conftest.$ac_ext >&5
2522ac_cv_lib_dnet_stub_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002523fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002524rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2525LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002526fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002527echo "$as_me:2527: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
2528echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
2529if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002530 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002531fi
2532
2533 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002534fi
2535rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2536 LIBS="$ac_xsave_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002537
2538 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2539 # to get the SysV transport functions.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002540 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002541 # needs -lnsl.
2542 # The nsl library prevents programs from opening the X display
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002543 # on Irix 5.2, according to T.E. Dickey.
2544 # The functions gethostbyname, getservbyname, and inet_addr are
2545 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
2546 echo "$as_me:2546: checking for gethostbyname" >&5
2547echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2548if test "${ac_cv_func_gethostbyname+set}" = set; then
2549 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002550else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002551 cat >conftest.$ac_ext <<_ACEOF
2552#line 2552 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002553#include "confdefs.h"
2554/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002555 which can conflict with char gethostbyname (); below. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002556#include <assert.h>
2557/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002558#ifdef __cplusplus
2559extern "C"
2560#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002561/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002562 builtin and then its argument prototype would still apply. */
2563char gethostbyname ();
2564char (*f) ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002565
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002566int
2567main ()
2568{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002569/* The GNU C library defines this for functions which it implements
2570 to always fail with ENOSYS. Some functions are actually named
2571 something starting with __ and the normal name is an alias. */
2572#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2573choke me
2574#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002575f = gethostbyname;
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002576#endif
2577
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002578 ;
2579 return 0;
2580}
2581_ACEOF
2582rm -f conftest.$ac_objext conftest$ac_exeext
2583if { (eval echo "$as_me:2583: \"$ac_link\"") >&5
2584 (eval $ac_link) 2>&5
2585 ac_status=$?
2586 echo "$as_me:2586: \$? = $ac_status" >&5
2587 (exit $ac_status); } &&
2588 { ac_try='test -s conftest$ac_exeext'
2589 { (eval echo "$as_me:2589: \"$ac_try\"") >&5
2590 (eval $ac_try) 2>&5
2591 ac_status=$?
2592 echo "$as_me:2592: \$? = $ac_status" >&5
2593 (exit $ac_status); }; }; then
2594 ac_cv_func_gethostbyname=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002595else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002596 echo "$as_me: failed program was:" >&5
2597cat conftest.$ac_ext >&5
2598ac_cv_func_gethostbyname=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002599fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002600rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002601fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002602echo "$as_me:2602: result: $ac_cv_func_gethostbyname" >&5
2603echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002604
2605 if test $ac_cv_func_gethostbyname = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002606 echo "$as_me:2606: checking for gethostbyname in -lnsl" >&5
2607echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2608if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2609 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002610else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002611 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002612LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002613cat >conftest.$ac_ext <<_ACEOF
2614#line 2614 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002615#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002616
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002617/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002618#ifdef __cplusplus
2619extern "C"
2620#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002621/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002622 builtin and then its argument prototype would still apply. */
2623char gethostbyname ();
2624int
2625main ()
2626{
2627gethostbyname ();
2628 ;
2629 return 0;
2630}
2631_ACEOF
2632rm -f conftest.$ac_objext conftest$ac_exeext
2633if { (eval echo "$as_me:2633: \"$ac_link\"") >&5
2634 (eval $ac_link) 2>&5
2635 ac_status=$?
2636 echo "$as_me:2636: \$? = $ac_status" >&5
2637 (exit $ac_status); } &&
2638 { ac_try='test -s conftest$ac_exeext'
2639 { (eval echo "$as_me:2639: \"$ac_try\"") >&5
2640 (eval $ac_try) 2>&5
2641 ac_status=$?
2642 echo "$as_me:2642: \$? = $ac_status" >&5
2643 (exit $ac_status); }; }; then
2644 ac_cv_lib_nsl_gethostbyname=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002645else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002646 echo "$as_me: failed program was:" >&5
2647cat conftest.$ac_ext >&5
2648ac_cv_lib_nsl_gethostbyname=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002649fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002650rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2651LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002652fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002653echo "$as_me:2653: result: $ac_cv_lib_nsl_gethostbyname" >&5
2654echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2655if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002656 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002657fi
2658
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002659 if test $ac_cv_lib_nsl_gethostbyname = no; then
2660 echo "$as_me:2660: checking for gethostbyname in -lbsd" >&5
2661echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
2662if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2664else
2665 ac_check_lib_save_LIBS=$LIBS
2666LIBS="-lbsd $LIBS"
2667cat >conftest.$ac_ext <<_ACEOF
2668#line 2668 "configure"
2669#include "confdefs.h"
2670
2671/* Override any gcc2 internal prototype to avoid an error. */
2672#ifdef __cplusplus
2673extern "C"
2674#endif
2675/* We use char because int might match the return type of a gcc2
2676 builtin and then its argument prototype would still apply. */
2677char gethostbyname ();
2678int
2679main ()
2680{
2681gethostbyname ();
2682 ;
2683 return 0;
2684}
2685_ACEOF
2686rm -f conftest.$ac_objext conftest$ac_exeext
2687if { (eval echo "$as_me:2687: \"$ac_link\"") >&5
2688 (eval $ac_link) 2>&5
2689 ac_status=$?
2690 echo "$as_me:2690: \$? = $ac_status" >&5
2691 (exit $ac_status); } &&
2692 { ac_try='test -s conftest$ac_exeext'
2693 { (eval echo "$as_me:2693: \"$ac_try\"") >&5
2694 (eval $ac_try) 2>&5
2695 ac_status=$?
2696 echo "$as_me:2696: \$? = $ac_status" >&5
2697 (exit $ac_status); }; }; then
2698 ac_cv_lib_bsd_gethostbyname=yes
2699else
2700 echo "$as_me: failed program was:" >&5
2701cat conftest.$ac_ext >&5
2702ac_cv_lib_bsd_gethostbyname=no
2703fi
2704rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2705LIBS=$ac_check_lib_save_LIBS
2706fi
2707echo "$as_me:2707: result: $ac_cv_lib_bsd_gethostbyname" >&5
2708echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
2709if test $ac_cv_lib_bsd_gethostbyname = yes; then
2710 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
2711fi
2712
2713 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002714 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002715
2716 # lieder@skyler.mavd.honeywell.com says without -lsocket,
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002717 # socket/setsockopt and other routines are undefined under SCO ODT
2718 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002719 # on later versions), says Simon Leinen: it contains gethostby*
2720 # variants that don't use the nameserver (or something). -lsocket
2721 # must be given before -lnsl if both are needed. We assume that
2722 # if connect needs -lnsl, so does gethostbyname.
2723 echo "$as_me:2723: checking for connect" >&5
2724echo $ECHO_N "checking for connect... $ECHO_C" >&6
2725if test "${ac_cv_func_connect+set}" = set; then
2726 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002727else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002728 cat >conftest.$ac_ext <<_ACEOF
2729#line 2729 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002730#include "confdefs.h"
2731/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002732 which can conflict with char connect (); below. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002733#include <assert.h>
2734/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002735#ifdef __cplusplus
2736extern "C"
2737#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002738/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002739 builtin and then its argument prototype would still apply. */
2740char connect ();
2741char (*f) ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002742
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002743int
2744main ()
2745{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002746/* The GNU C library defines this for functions which it implements
2747 to always fail with ENOSYS. Some functions are actually named
2748 something starting with __ and the normal name is an alias. */
2749#if defined (__stub_connect) || defined (__stub___connect)
2750choke me
2751#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002752f = connect;
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002753#endif
2754
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002755 ;
2756 return 0;
2757}
2758_ACEOF
2759rm -f conftest.$ac_objext conftest$ac_exeext
2760if { (eval echo "$as_me:2760: \"$ac_link\"") >&5
2761 (eval $ac_link) 2>&5
2762 ac_status=$?
2763 echo "$as_me:2763: \$? = $ac_status" >&5
2764 (exit $ac_status); } &&
2765 { ac_try='test -s conftest$ac_exeext'
2766 { (eval echo "$as_me:2766: \"$ac_try\"") >&5
2767 (eval $ac_try) 2>&5
2768 ac_status=$?
2769 echo "$as_me:2769: \$? = $ac_status" >&5
2770 (exit $ac_status); }; }; then
2771 ac_cv_func_connect=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002772else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002773 echo "$as_me: failed program was:" >&5
2774cat conftest.$ac_ext >&5
2775ac_cv_func_connect=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002776fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002777rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002778fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002779echo "$as_me:2779: result: $ac_cv_func_connect" >&5
2780echo "${ECHO_T}$ac_cv_func_connect" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002781
2782 if test $ac_cv_func_connect = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002783 echo "$as_me:2783: checking for connect in -lsocket" >&5
2784echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
2785if test "${ac_cv_lib_socket_connect+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002787else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002788 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002789LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002790cat >conftest.$ac_ext <<_ACEOF
2791#line 2791 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002792#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002793
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002794/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002795#ifdef __cplusplus
2796extern "C"
2797#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002798/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002799 builtin and then its argument prototype would still apply. */
2800char connect ();
2801int
2802main ()
2803{
2804connect ();
2805 ;
2806 return 0;
2807}
2808_ACEOF
2809rm -f conftest.$ac_objext conftest$ac_exeext
2810if { (eval echo "$as_me:2810: \"$ac_link\"") >&5
2811 (eval $ac_link) 2>&5
2812 ac_status=$?
2813 echo "$as_me:2813: \$? = $ac_status" >&5
2814 (exit $ac_status); } &&
2815 { ac_try='test -s conftest$ac_exeext'
2816 { (eval echo "$as_me:2816: \"$ac_try\"") >&5
2817 (eval $ac_try) 2>&5
2818 ac_status=$?
2819 echo "$as_me:2819: \$? = $ac_status" >&5
2820 (exit $ac_status); }; }; then
2821 ac_cv_lib_socket_connect=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002822else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002823 echo "$as_me: failed program was:" >&5
2824cat conftest.$ac_ext >&5
2825ac_cv_lib_socket_connect=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002826fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002827rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2828LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002829fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002830echo "$as_me:2830: result: $ac_cv_lib_socket_connect" >&5
2831echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
2832if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002833 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002834fi
2835
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002836 fi
2837
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002838 # Guillermo Gomez says -lposix is necessary on A/UX.
2839 echo "$as_me:2839: checking for remove" >&5
2840echo $ECHO_N "checking for remove... $ECHO_C" >&6
2841if test "${ac_cv_func_remove+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002843else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002844 cat >conftest.$ac_ext <<_ACEOF
2845#line 2845 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002846#include "confdefs.h"
2847/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002848 which can conflict with char remove (); below. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002849#include <assert.h>
2850/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002851#ifdef __cplusplus
2852extern "C"
2853#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002854/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002855 builtin and then its argument prototype would still apply. */
2856char remove ();
2857char (*f) ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002858
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002859int
2860main ()
2861{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002862/* The GNU C library defines this for functions which it implements
2863 to always fail with ENOSYS. Some functions are actually named
2864 something starting with __ and the normal name is an alias. */
2865#if defined (__stub_remove) || defined (__stub___remove)
2866choke me
2867#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002868f = remove;
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002869#endif
2870
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002871 ;
2872 return 0;
2873}
2874_ACEOF
2875rm -f conftest.$ac_objext conftest$ac_exeext
2876if { (eval echo "$as_me:2876: \"$ac_link\"") >&5
2877 (eval $ac_link) 2>&5
2878 ac_status=$?
2879 echo "$as_me:2879: \$? = $ac_status" >&5
2880 (exit $ac_status); } &&
2881 { ac_try='test -s conftest$ac_exeext'
2882 { (eval echo "$as_me:2882: \"$ac_try\"") >&5
2883 (eval $ac_try) 2>&5
2884 ac_status=$?
2885 echo "$as_me:2885: \$? = $ac_status" >&5
2886 (exit $ac_status); }; }; then
2887 ac_cv_func_remove=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002888else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002889 echo "$as_me: failed program was:" >&5
2890cat conftest.$ac_ext >&5
2891ac_cv_func_remove=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002892fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002893rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002894fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002895echo "$as_me:2895: result: $ac_cv_func_remove" >&5
2896echo "${ECHO_T}$ac_cv_func_remove" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002897
2898 if test $ac_cv_func_remove = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002899 echo "$as_me:2899: checking for remove in -lposix" >&5
2900echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
2901if test "${ac_cv_lib_posix_remove+set}" = set; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002903else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002904 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002905LIBS="-lposix $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002906cat >conftest.$ac_ext <<_ACEOF
2907#line 2907 "configure"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002908#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002909
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002910/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002911#ifdef __cplusplus
2912extern "C"
2913#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002914/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002915 builtin and then its argument prototype would still apply. */
2916char remove ();
2917int
2918main ()
2919{
2920remove ();
2921 ;
2922 return 0;
2923}
2924_ACEOF
2925rm -f conftest.$ac_objext conftest$ac_exeext
2926if { (eval echo "$as_me:2926: \"$ac_link\"") >&5
2927 (eval $ac_link) 2>&5
2928 ac_status=$?
2929 echo "$as_me:2929: \$? = $ac_status" >&5
2930 (exit $ac_status); } &&
2931 { ac_try='test -s conftest$ac_exeext'
2932 { (eval echo "$as_me:2932: \"$ac_try\"") >&5
2933 (eval $ac_try) 2>&5
2934 ac_status=$?
2935 echo "$as_me:2935: \$? = $ac_status" >&5
2936 (exit $ac_status); }; }; then
2937 ac_cv_lib_posix_remove=yes
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002938else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002939 echo "$as_me: failed program was:" >&5
2940cat conftest.$ac_ext >&5
2941ac_cv_lib_posix_remove=no
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002942fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002943rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2944LIBS=$ac_check_lib_save_LIBS
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002945fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002946echo "$as_me:2946: result: $ac_cv_lib_posix_remove" >&5
2947echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
2948if test $ac_cv_lib_posix_remove = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002949 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002950fi
2951
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002952 fi
2953
2954 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002955 echo "$as_me:2955: checking for shmat" >&5
2956echo $ECHO_N "checking for shmat... $ECHO_C" >&6
2957if test "${ac_cv_func_shmat+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002959else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002960 cat >conftest.$ac_ext <<_ACEOF
2961#line 2961 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002962#include "confdefs.h"
2963/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002964 which can conflict with char shmat (); below. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002965#include <assert.h>
2966/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002967#ifdef __cplusplus
2968extern "C"
2969#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002970/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002971 builtin and then its argument prototype would still apply. */
2972char shmat ();
2973char (*f) ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002974
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002975int
2976main ()
2977{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002978/* The GNU C library defines this for functions which it implements
2979 to always fail with ENOSYS. Some functions are actually named
2980 something starting with __ and the normal name is an alias. */
2981#if defined (__stub_shmat) || defined (__stub___shmat)
2982choke me
2983#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002984f = shmat;
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002985#endif
2986
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002987 ;
2988 return 0;
2989}
2990_ACEOF
2991rm -f conftest.$ac_objext conftest$ac_exeext
2992if { (eval echo "$as_me:2992: \"$ac_link\"") >&5
2993 (eval $ac_link) 2>&5
2994 ac_status=$?
2995 echo "$as_me:2995: \$? = $ac_status" >&5
2996 (exit $ac_status); } &&
2997 { ac_try='test -s conftest$ac_exeext'
2998 { (eval echo "$as_me:2998: \"$ac_try\"") >&5
2999 (eval $ac_try) 2>&5
3000 ac_status=$?
3001 echo "$as_me:3001: \$? = $ac_status" >&5
3002 (exit $ac_status); }; }; then
3003 ac_cv_func_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003004else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003005 echo "$as_me: failed program was:" >&5
3006cat conftest.$ac_ext >&5
3007ac_cv_func_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003008fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003009rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003010fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003011echo "$as_me:3011: result: $ac_cv_func_shmat" >&5
3012echo "${ECHO_T}$ac_cv_func_shmat" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003013
3014 if test $ac_cv_func_shmat = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003015 echo "$as_me:3015: checking for shmat in -lipc" >&5
3016echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3017if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003019else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003020 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003021LIBS="-lipc $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003022cat >conftest.$ac_ext <<_ACEOF
3023#line 3023 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003024#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003025
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003026/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003027#ifdef __cplusplus
3028extern "C"
3029#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003030/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003031 builtin and then its argument prototype would still apply. */
3032char shmat ();
3033int
3034main ()
3035{
3036shmat ();
3037 ;
3038 return 0;
3039}
3040_ACEOF
3041rm -f conftest.$ac_objext conftest$ac_exeext
3042if { (eval echo "$as_me:3042: \"$ac_link\"") >&5
3043 (eval $ac_link) 2>&5
3044 ac_status=$?
3045 echo "$as_me:3045: \$? = $ac_status" >&5
3046 (exit $ac_status); } &&
3047 { ac_try='test -s conftest$ac_exeext'
3048 { (eval echo "$as_me:3048: \"$ac_try\"") >&5
3049 (eval $ac_try) 2>&5
3050 ac_status=$?
3051 echo "$as_me:3051: \$? = $ac_status" >&5
3052 (exit $ac_status); }; }; then
3053 ac_cv_lib_ipc_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003054else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003055 echo "$as_me: failed program was:" >&5
3056cat conftest.$ac_ext >&5
3057ac_cv_lib_ipc_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003058fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003059rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3060LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003061fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003062echo "$as_me:3062: result: $ac_cv_lib_ipc_shmat" >&5
3063echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3064if test $ac_cv_lib_ipc_shmat = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003065 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003066fi
3067
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003068 fi
3069 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003070
3071 # Check for libraries that X11R6 Xt/Xaw programs need.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003072 ac_save_LDFLAGS=$LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003073 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3074 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3075 # check for ICE first), but we must link in the order -lSM -lICE or
3076 # we get undefined symbols. So assume we have SM if we have ICE.
3077 # These have to be linked with before -lX11, unlike the other
3078 # libraries we check for below, so use a different variable.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003079 # John Interrante, Karl Berry
3080 echo "$as_me:3080: checking for IceConnectionNumber in -lICE" >&5
3081echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3082if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003084else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003085 ac_check_lib_save_LIBS=$LIBS
Eric Pouech18ad24a2000-01-16 22:16:33 +00003086LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003087cat >conftest.$ac_ext <<_ACEOF
3088#line 3088 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003089#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003090
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003091/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003092#ifdef __cplusplus
3093extern "C"
3094#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003095/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003096 builtin and then its argument prototype would still apply. */
3097char IceConnectionNumber ();
3098int
3099main ()
3100{
3101IceConnectionNumber ();
3102 ;
3103 return 0;
3104}
3105_ACEOF
3106rm -f conftest.$ac_objext conftest$ac_exeext
3107if { (eval echo "$as_me:3107: \"$ac_link\"") >&5
3108 (eval $ac_link) 2>&5
3109 ac_status=$?
3110 echo "$as_me:3110: \$? = $ac_status" >&5
3111 (exit $ac_status); } &&
3112 { ac_try='test -s conftest$ac_exeext'
3113 { (eval echo "$as_me:3113: \"$ac_try\"") >&5
3114 (eval $ac_try) 2>&5
3115 ac_status=$?
3116 echo "$as_me:3116: \$? = $ac_status" >&5
3117 (exit $ac_status); }; }; then
3118 ac_cv_lib_ICE_IceConnectionNumber=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003119else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003120 echo "$as_me: failed program was:" >&5
3121cat conftest.$ac_ext >&5
3122ac_cv_lib_ICE_IceConnectionNumber=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003123fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003124rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3125LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003126fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003127echo "$as_me:3127: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3128echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3129if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003130 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003131fi
3132
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003133 LDFLAGS=$ac_save_LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003134
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003135fi
3136
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003137for ac_prog in 'bison -y' byacc
3138do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003139 # Extract the first word of "$ac_prog", so it can be a program name with args.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003140set dummy $ac_prog; ac_word=$2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003141echo "$as_me:3141: checking for $ac_word" >&5
3142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3143if test "${ac_cv_prog_YACC+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003145else
3146 if test -n "$YACC"; then
3147 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3148else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003149 ac_save_IFS=$IFS; IFS=$ac_path_separator
3150ac_dummy="$PATH"
3151for ac_dir in $ac_dummy; do
3152 IFS=$ac_save_IFS
3153 test -z "$ac_dir" && ac_dir=.
3154 $as_executable_p "$ac_dir/$ac_word" || continue
3155ac_cv_prog_YACC="$ac_prog"
3156echo "$as_me:3156: found $ac_dir/$ac_word" >&5
3157break
3158done
3159
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003160fi
3161fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003162YACC=$ac_cv_prog_YACC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003163if test -n "$YACC"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003164 echo "$as_me:3164: result: $YACC" >&5
3165echo "${ECHO_T}$YACC" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003166else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003167 echo "$as_me:3167: result: no" >&5
3168echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003169fi
3170
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003171 test -n "$YACC" && break
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003172done
3173test -n "$YACC" || YACC="yacc"
3174
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003175for ac_prog in flex lex
3176do
3177 # Extract the first word of "$ac_prog", so it can be a program name with args.
3178set dummy $ac_prog; ac_word=$2
3179echo "$as_me:3179: checking for $ac_word" >&5
3180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3181if test "${ac_cv_prog_LEX+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003183else
3184 if test -n "$LEX"; then
3185 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3186else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003187 ac_save_IFS=$IFS; IFS=$ac_path_separator
3188ac_dummy="$PATH"
3189for ac_dir in $ac_dummy; do
3190 IFS=$ac_save_IFS
3191 test -z "$ac_dir" && ac_dir=.
3192 $as_executable_p "$ac_dir/$ac_word" || continue
3193ac_cv_prog_LEX="$ac_prog"
3194echo "$as_me:3194: found $ac_dir/$ac_word" >&5
3195break
3196done
3197
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003198fi
3199fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003200LEX=$ac_cv_prog_LEX
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003201if test -n "$LEX"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003202 echo "$as_me:3202: result: $LEX" >&5
3203echo "${ECHO_T}$LEX" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003204else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003205 echo "$as_me:3205: result: no" >&5
3206echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003207fi
3208
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003209 test -n "$LEX" && break
3210done
3211test -n "$LEX" || LEX=":"
3212
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003213if test -z "$LEXLIB"
3214then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003215 echo "$as_me:3215: checking for yywrap in -lfl" >&5
3216echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3217if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003219else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003220 ac_check_lib_save_LIBS=$LIBS
3221LIBS="-lfl $LIBS"
3222cat >conftest.$ac_ext <<_ACEOF
3223#line 3223 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003224#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003225
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003226/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003227#ifdef __cplusplus
3228extern "C"
3229#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003230/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003231 builtin and then its argument prototype would still apply. */
3232char yywrap ();
3233int
3234main ()
3235{
3236yywrap ();
3237 ;
3238 return 0;
3239}
3240_ACEOF
3241rm -f conftest.$ac_objext conftest$ac_exeext
3242if { (eval echo "$as_me:3242: \"$ac_link\"") >&5
3243 (eval $ac_link) 2>&5
3244 ac_status=$?
3245 echo "$as_me:3245: \$? = $ac_status" >&5
3246 (exit $ac_status); } &&
3247 { ac_try='test -s conftest$ac_exeext'
3248 { (eval echo "$as_me:3248: \"$ac_try\"") >&5
3249 (eval $ac_try) 2>&5
3250 ac_status=$?
3251 echo "$as_me:3251: \$? = $ac_status" >&5
3252 (exit $ac_status); }; }; then
3253 ac_cv_lib_fl_yywrap=yes
3254else
3255 echo "$as_me: failed program was:" >&5
3256cat conftest.$ac_ext >&5
3257ac_cv_lib_fl_yywrap=no
3258fi
3259rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3260LIBS=$ac_check_lib_save_LIBS
3261fi
3262echo "$as_me:3262: result: $ac_cv_lib_fl_yywrap" >&5
3263echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3264if test $ac_cv_lib_fl_yywrap = yes; then
3265 LEXLIB="-lfl"
3266else
3267 echo "$as_me:3267: checking for yywrap in -ll" >&5
3268echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3269if test "${ac_cv_lib_l_yywrap+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3271else
3272 ac_check_lib_save_LIBS=$LIBS
3273LIBS="-ll $LIBS"
3274cat >conftest.$ac_ext <<_ACEOF
3275#line 3275 "configure"
3276#include "confdefs.h"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003277
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003278/* Override any gcc2 internal prototype to avoid an error. */
3279#ifdef __cplusplus
3280extern "C"
3281#endif
3282/* We use char because int might match the return type of a gcc2
3283 builtin and then its argument prototype would still apply. */
3284char yywrap ();
3285int
3286main ()
3287{
3288yywrap ();
3289 ;
3290 return 0;
3291}
3292_ACEOF
3293rm -f conftest.$ac_objext conftest$ac_exeext
3294if { (eval echo "$as_me:3294: \"$ac_link\"") >&5
3295 (eval $ac_link) 2>&5
3296 ac_status=$?
3297 echo "$as_me:3297: \$? = $ac_status" >&5
3298 (exit $ac_status); } &&
3299 { ac_try='test -s conftest$ac_exeext'
3300 { (eval echo "$as_me:3300: \"$ac_try\"") >&5
3301 (eval $ac_try) 2>&5
3302 ac_status=$?
3303 echo "$as_me:3303: \$? = $ac_status" >&5
3304 (exit $ac_status); }; }; then
3305 ac_cv_lib_l_yywrap=yes
3306else
3307 echo "$as_me: failed program was:" >&5
3308cat conftest.$ac_ext >&5
3309ac_cv_lib_l_yywrap=no
3310fi
3311rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3312LIBS=$ac_check_lib_save_LIBS
3313fi
3314echo "$as_me:3314: result: $ac_cv_lib_l_yywrap" >&5
3315echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3316if test $ac_cv_lib_l_yywrap = yes; then
3317 LEXLIB="-ll"
3318fi
3319
3320fi
3321
3322fi
3323
3324if test "x$LEX" != "x:"; then
3325 echo "$as_me:3325: checking lex output file root" >&5
3326echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3327if test "${ac_cv_prog_lex_root+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3329else
3330 # The minimal lex program is just a single line: %%. But some broken lexes
3331# (Solaris, I think it was) want two %% lines, so accommodate them.
3332echo '%%
3333%%' | $LEX
3334if test -f lex.yy.c; then
3335 ac_cv_prog_lex_root=lex.yy
3336elif test -f lexyy.c; then
3337 ac_cv_prog_lex_root=lexyy
3338else
3339 { { echo "$as_me:3339: error: cannot find output from $LEX; giving up" >&5
3340echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3341 { (exit 1); exit 1; }; }
3342fi
3343fi
3344echo "$as_me:3344: result: $ac_cv_prog_lex_root" >&5
3345echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3346LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3347
3348echo "$as_me:3348: checking whether yytext is a pointer" >&5
3349echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3350if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3352else
3353 # POSIX says lex can declare yytext either as a pointer or an array; the
3354# default is implementation-dependent. Figure out which it is, since
3355# not all implementations provide the %pointer and %array declarations.
3356ac_cv_prog_lex_yytext_pointer=no
3357echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3358ac_save_LIBS=$LIBS
3359LIBS="$LIBS $LEXLIB"
3360cat >conftest.$ac_ext <<_ACEOF
3361`cat $LEX_OUTPUT_ROOT.c`
3362_ACEOF
3363rm -f conftest.$ac_objext conftest$ac_exeext
3364if { (eval echo "$as_me:3364: \"$ac_link\"") >&5
3365 (eval $ac_link) 2>&5
3366 ac_status=$?
3367 echo "$as_me:3367: \$? = $ac_status" >&5
3368 (exit $ac_status); } &&
3369 { ac_try='test -s conftest$ac_exeext'
3370 { (eval echo "$as_me:3370: \"$ac_try\"") >&5
3371 (eval $ac_try) 2>&5
3372 ac_status=$?
3373 echo "$as_me:3373: \$? = $ac_status" >&5
3374 (exit $ac_status); }; }; then
3375 ac_cv_prog_lex_yytext_pointer=yes
3376else
3377 echo "$as_me: failed program was:" >&5
3378cat conftest.$ac_ext >&5
3379fi
3380rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3381LIBS=$ac_save_LIBS
3382rm -f "${LEX_OUTPUT_ROOT}.c"
3383
3384fi
3385echo "$as_me:3385: result: $ac_cv_prog_lex_yytext_pointer" >&5
3386echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3387if test $ac_cv_prog_lex_yytext_pointer = yes; then
3388
3389cat >>confdefs.h <<\EOF
3390#define YYTEXT_POINTER 1
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003391EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003392
3393fi
3394
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003395fi
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003396
3397for ac_prog in $YACC bison yacc
3398do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003399 # Extract the first word of "$ac_prog", so it can be a program name with args.
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003400set dummy $ac_prog; ac_word=$2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003401echo "$as_me:3401: checking for $ac_word" >&5
3402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3403if test "${ac_cv_prog_XYACC+set}" = set; then
3404 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003405else
3406 if test -n "$XYACC"; then
3407 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
3408else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003409 ac_save_IFS=$IFS; IFS=$ac_path_separator
3410ac_dummy="$PATH"
3411for ac_dir in $ac_dummy; do
3412 IFS=$ac_save_IFS
3413 test -z "$ac_dir" && ac_dir=.
3414 $as_executable_p "$ac_dir/$ac_word" || continue
3415ac_cv_prog_XYACC="$ac_prog"
3416echo "$as_me:3416: found $ac_dir/$ac_word" >&5
3417break
3418done
3419
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003420fi
3421fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003422XYACC=$ac_cv_prog_XYACC
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003423if test -n "$XYACC"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003424 echo "$as_me:3424: result: $XYACC" >&5
3425echo "${ECHO_T}$XYACC" >&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003426else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003427 echo "$as_me:3427: result: no" >&5
3428echo "${ECHO_T}no" >&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003429fi
3430
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003431 test -n "$XYACC" && break
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003432done
3433test -n "$XYACC" || XYACC="none"
3434
3435if test "$XYACC" = "none"
3436then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003437 { { echo "$as_me:3437: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
3438echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
3439 { (exit 1); exit 1; }; }
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003440fi
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003441for ac_prog in $LEX flex lex
3442do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003443 # Extract the first word of "$ac_prog", so it can be a program name with args.
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003444set dummy $ac_prog; ac_word=$2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003445echo "$as_me:3445: checking for $ac_word" >&5
3446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3447if test "${ac_cv_prog_XLEX+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003449else
3450 if test -n "$XLEX"; then
3451 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
3452else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003453 ac_save_IFS=$IFS; IFS=$ac_path_separator
3454ac_dummy="$PATH"
3455for ac_dir in $ac_dummy; do
3456 IFS=$ac_save_IFS
3457 test -z "$ac_dir" && ac_dir=.
3458 $as_executable_p "$ac_dir/$ac_word" || continue
3459ac_cv_prog_XLEX="$ac_prog"
3460echo "$as_me:3460: found $ac_dir/$ac_word" >&5
3461break
3462done
3463
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003464fi
3465fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003466XLEX=$ac_cv_prog_XLEX
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003467if test -n "$XLEX"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003468 echo "$as_me:3468: result: $XLEX" >&5
3469echo "${ECHO_T}$XLEX" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003470else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003471 echo "$as_me:3471: result: no" >&5
3472echo "${ECHO_T}no" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003473fi
3474
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003475 test -n "$XLEX" && break
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003476done
3477test -n "$XLEX" || XLEX="none"
3478
3479if test "$XLEX" = "none"
3480then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003481 { { echo "$as_me:3481: error: no suitable lex found. Please install the 'flex' package." >&5
3482echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
3483 { (exit 1); exit 1; }; }
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003484fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003485if test -n "$ac_tool_prefix"; then
3486 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3487set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3488echo "$as_me:3488: checking for $ac_word" >&5
3489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3490if test "${ac_cv_prog_RANLIB+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003492else
3493 if test -n "$RANLIB"; then
3494 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3495else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003496 ac_save_IFS=$IFS; IFS=$ac_path_separator
3497ac_dummy="$PATH"
3498for ac_dir in $ac_dummy; do
3499 IFS=$ac_save_IFS
3500 test -z "$ac_dir" && ac_dir=.
3501 $as_executable_p "$ac_dir/$ac_word" || continue
3502ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3503echo "$as_me:3503: found $ac_dir/$ac_word" >&5
3504break
3505done
3506
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003507fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003508fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003509RANLIB=$ac_cv_prog_RANLIB
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003510if test -n "$RANLIB"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003511 echo "$as_me:3511: result: $RANLIB" >&5
3512echo "${ECHO_T}$RANLIB" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003513else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003514 echo "$as_me:3514: result: no" >&5
3515echo "${ECHO_T}no" >&6
3516fi
3517
3518fi
3519if test -z "$ac_cv_prog_RANLIB"; then
3520 ac_ct_RANLIB=$RANLIB
3521 # Extract the first word of "ranlib", so it can be a program name with args.
3522set dummy ranlib; ac_word=$2
3523echo "$as_me:3523: checking for $ac_word" >&5
3524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3525if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3527else
3528 if test -n "$ac_ct_RANLIB"; then
3529 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3530else
3531 ac_save_IFS=$IFS; IFS=$ac_path_separator
3532ac_dummy="$PATH"
3533for ac_dir in $ac_dummy; do
3534 IFS=$ac_save_IFS
3535 test -z "$ac_dir" && ac_dir=.
3536 $as_executable_p "$ac_dir/$ac_word" || continue
3537ac_cv_prog_ac_ct_RANLIB="ranlib"
3538echo "$as_me:3538: found $ac_dir/$ac_word" >&5
3539break
3540done
3541
3542 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3543fi
3544fi
3545ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3546if test -n "$ac_ct_RANLIB"; then
3547 echo "$as_me:3547: result: $ac_ct_RANLIB" >&5
3548echo "${ECHO_T}$ac_ct_RANLIB" >&6
3549else
3550 echo "$as_me:3550: result: no" >&5
3551echo "${ECHO_T}no" >&6
3552fi
3553
3554 RANLIB=$ac_ct_RANLIB
3555else
3556 RANLIB="$ac_cv_prog_RANLIB"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003557fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003558
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003559# Find a good install program. We prefer a C program (faster),
3560# so one script is as good as another. But avoid the broken or
3561# incompatible versions:
3562# SysV /etc/install, /usr/sbin/install
3563# SunOS /usr/etc/install
3564# IRIX /sbin/install
3565# AIX /bin/install
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003566# AmigaOS /C/install, which installs bootblocks on floppy discs
Eric Pouech18ad24a2000-01-16 22:16:33 +00003567# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003568# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3569# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3570# ./install, which can be erroneously created by make from ./install.sh.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003571echo "$as_me:3571: checking for a BSD compatible install" >&5
3572echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003573if test -z "$INSTALL"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003574if test "${ac_cv_path_install+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003576else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003577 ac_save_IFS=$IFS; IFS=$ac_path_separator
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003578 for ac_dir in $PATH; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003579 IFS=$ac_save_IFS
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003580 # Account for people who put trailing slashes in PATH elements.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003581 case $ac_dir/ in
3582 / | ./ | .// | /cC/* \
3583 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3584 | /usr/ucb/* ) ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003585 *)
3586 # OSF1 and SCO ODT 3.0 have their own names for install.
Eric Pouech18ad24a2000-01-16 22:16:33 +00003587 # Don't use installbsd from OSF since it installs stuff as root
3588 # by default.
3589 for ac_prog in ginstall scoinst install; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003590 if $as_executable_p "$ac_dir/$ac_prog"; then
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003591 if test $ac_prog = install &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003592 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003593 # AIX install. It has an incompatible calling convention.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003594 :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003595 elif test $ac_prog = install &&
3596 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3597 # program-specific install script used by HP pwplus--don't use.
3598 :
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003599 else
3600 ac_cv_path_install="$ac_dir/$ac_prog -c"
3601 break 2
3602 fi
3603 fi
3604 done
3605 ;;
3606 esac
3607 done
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003608
3609fi
3610 if test "${ac_cv_path_install+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003611 INSTALL=$ac_cv_path_install
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003612 else
3613 # As a last resort, use the slow shell script. We don't cache a
3614 # path for INSTALL within a source directory, because that will
3615 # break other packages using the cache if that directory is
3616 # removed, or if the path is relative.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003617 INSTALL=$ac_install_sh
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003618 fi
3619fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003620echo "$as_me:3620: result: $INSTALL" >&5
3621echo "${ECHO_T}$INSTALL" >&6
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003622
3623# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3624# It thinks the first close brace ends the variable substitution.
3625test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3626
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003627test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Eric Pouech18ad24a2000-01-16 22:16:33 +00003628
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003629test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3630
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003631echo "$as_me:3631: checking whether ln -s works" >&5
3632echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3633LN_S=$as_ln_s
3634if test "$LN_S" = "ln -s"; then
3635 echo "$as_me:3635: result: yes" >&5
3636echo "${ECHO_T}yes" >&6
Alexandre Julliard641ee761997-08-04 16:34:36 +00003637else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003638 echo "$as_me:3638: result: no, using $LN_S" >&5
3639echo "${ECHO_T}no, using $LN_S" >&6
Alexandre Julliard641ee761997-08-04 16:34:36 +00003640fi
3641
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00003642# Extract the first word of "c2man", so it can be a program name with args.
3643set dummy c2man; ac_word=$2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003644echo "$as_me:3644: checking for $ac_word" >&5
3645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3646if test "${ac_cv_prog_C2MAN+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00003648else
3649 if test -n "$C2MAN"; then
3650 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
3651else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003652 ac_save_IFS=$IFS; IFS=$ac_path_separator
3653ac_dummy="$PATH"
3654for ac_dir in $ac_dummy; do
3655 IFS=$ac_save_IFS
3656 test -z "$ac_dir" && ac_dir=.
3657 $as_executable_p "$ac_dir/$ac_word" || continue
3658ac_cv_prog_C2MAN="c2man"
3659echo "$as_me:3659: found $ac_dir/$ac_word" >&5
3660break
3661done
3662
Mike McCormacke0df32f2000-08-11 21:15:21 +00003663 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00003664fi
3665fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003666C2MAN=$ac_cv_prog_C2MAN
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00003667if test -n "$C2MAN"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003668 echo "$as_me:3668: result: $C2MAN" >&5
3669echo "${ECHO_T}$C2MAN" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00003670else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003671 echo "$as_me:3671: result: no" >&5
3672echo "${ECHO_T}no" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00003673fi
3674
James Juranffe6b761999-06-12 08:21:57 +00003675# Extract the first word of "ldconfig", so it can be a program name with args.
3676set dummy ldconfig; ac_word=$2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003677echo "$as_me:3677: checking for $ac_word" >&5
3678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3679if test "${ac_cv_path_LDCONFIG+set}" = set; then
3680 echo $ECHO_N "(cached) $ECHO_C" >&6
James Juranffe6b761999-06-12 08:21:57 +00003681else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003682 case $LDCONFIG in
3683 [\\/]* | ?:[\\/]*)
James Juranffe6b761999-06-12 08:21:57 +00003684 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3685 ;;
3686 *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003687 ac_save_IFS=$IFS; IFS=$ac_path_separator
3688ac_dummy="/sbin:/usr/sbin:$PATH"
3689for ac_dir in $ac_dummy; do
3690 IFS=$ac_save_IFS
3691 test -z "$ac_dir" && ac_dir=.
3692 if $as_executable_p "$ac_dir/$ac_word"; then
3693 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
3694 echo "$as_me:3694: found $ac_dir/$ac_word" >&5
3695 break
3696fi
3697done
3698
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00003699 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00003700 ;;
3701esac
3702fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003703LDCONFIG=$ac_cv_path_LDCONFIG
3704
James Juranffe6b761999-06-12 08:21:57 +00003705if test -n "$LDCONFIG"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003706 echo "$as_me:3706: result: $LDCONFIG" >&5
3707echo "${ECHO_T}$LDCONFIG" >&6
James Juranffe6b761999-06-12 08:21:57 +00003708else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003709 echo "$as_me:3709: result: no" >&5
3710echo "${ECHO_T}no" >&6
James Juranffe6b761999-06-12 08:21:57 +00003711fi
3712
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00003713for ac_prog in lclint lint
3714do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003715 # Extract the first word of "$ac_prog", so it can be a program name with args.
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00003716set dummy $ac_prog; ac_word=$2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003717echo "$as_me:3717: checking for $ac_word" >&5
3718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3719if test "${ac_cv_prog_LINT+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00003721else
3722 if test -n "$LINT"; then
3723 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3724else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003725 ac_save_IFS=$IFS; IFS=$ac_path_separator
3726ac_dummy="$PATH"
3727for ac_dir in $ac_dummy; do
3728 IFS=$ac_save_IFS
3729 test -z "$ac_dir" && ac_dir=.
3730 $as_executable_p "$ac_dir/$ac_word" || continue
3731ac_cv_prog_LINT="$ac_prog"
3732echo "$as_me:3732: found $ac_dir/$ac_word" >&5
3733break
3734done
3735
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00003736fi
3737fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003738LINT=$ac_cv_prog_LINT
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00003739if test -n "$LINT"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003740 echo "$as_me:3740: result: $LINT" >&5
3741echo "${ECHO_T}$LINT" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00003742else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003743 echo "$as_me:3743: result: no" >&5
3744echo "${ECHO_T}no" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00003745fi
3746
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003747 test -n "$LINT" && break
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00003748done
3749
3750if test "$LINT" = "lint"
3751then
3752 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
3753 fi
3754
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003755case $host_os in
3756 *cygwin*) LDCOMBINE="ld -r --enable-stdcall-fixup" ;;
3757 *) LDCOMBINE="ld -r" ;;
3758esac
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00003759
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003760echo "$as_me:3760: checking for sqrt in -lm" >&5
3761echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
3762if test "${ac_cv_lib_m_sqrt+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +00003764else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003765 ac_check_lib_save_LIBS=$LIBS
Howard Abrams13277481999-07-10 13:16:29 +00003766LIBS="-lm $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003767cat >conftest.$ac_ext <<_ACEOF
3768#line 3768 "configure"
Howard Abrams13277481999-07-10 13:16:29 +00003769#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003770
Howard Abrams13277481999-07-10 13:16:29 +00003771/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003772#ifdef __cplusplus
3773extern "C"
3774#endif
Howard Abrams13277481999-07-10 13:16:29 +00003775/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003776 builtin and then its argument prototype would still apply. */
3777char sqrt ();
3778int
3779main ()
3780{
3781sqrt ();
3782 ;
3783 return 0;
3784}
3785_ACEOF
3786rm -f conftest.$ac_objext conftest$ac_exeext
3787if { (eval echo "$as_me:3787: \"$ac_link\"") >&5
3788 (eval $ac_link) 2>&5
3789 ac_status=$?
3790 echo "$as_me:3790: \$? = $ac_status" >&5
3791 (exit $ac_status); } &&
3792 { ac_try='test -s conftest$ac_exeext'
3793 { (eval echo "$as_me:3793: \"$ac_try\"") >&5
3794 (eval $ac_try) 2>&5
3795 ac_status=$?
3796 echo "$as_me:3796: \$? = $ac_status" >&5
3797 (exit $ac_status); }; }; then
3798 ac_cv_lib_m_sqrt=yes
Howard Abrams13277481999-07-10 13:16:29 +00003799else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003800 echo "$as_me: failed program was:" >&5
3801cat conftest.$ac_ext >&5
3802ac_cv_lib_m_sqrt=no
Howard Abrams13277481999-07-10 13:16:29 +00003803fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003804rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3805LIBS=$ac_check_lib_save_LIBS
Howard Abrams13277481999-07-10 13:16:29 +00003806fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003807echo "$as_me:3807: result: $ac_cv_lib_m_sqrt" >&5
3808echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
3809if test $ac_cv_lib_m_sqrt = yes; then
3810 cat >>confdefs.h <<EOF
3811#define HAVE_LIBM 1
Howard Abrams13277481999-07-10 13:16:29 +00003812EOF
3813
3814 LIBS="-lm $LIBS"
3815
Howard Abrams13277481999-07-10 13:16:29 +00003816fi
3817
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003818echo "$as_me:3818: checking for i386_set_ldt in -li386" >&5
3819echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
3820if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard902da691995-11-05 14:39:02 +00003822else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003823 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00003824LIBS="-li386 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003825cat >conftest.$ac_ext <<_ACEOF
3826#line 3826 "configure"
Alexandre Julliard902da691995-11-05 14:39:02 +00003827#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003828
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003829/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003830#ifdef __cplusplus
3831extern "C"
3832#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003833/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003834 builtin and then its argument prototype would still apply. */
3835char i386_set_ldt ();
3836int
3837main ()
3838{
3839i386_set_ldt ();
3840 ;
3841 return 0;
3842}
3843_ACEOF
3844rm -f conftest.$ac_objext conftest$ac_exeext
3845if { (eval echo "$as_me:3845: \"$ac_link\"") >&5
3846 (eval $ac_link) 2>&5
3847 ac_status=$?
3848 echo "$as_me:3848: \$? = $ac_status" >&5
3849 (exit $ac_status); } &&
3850 { ac_try='test -s conftest$ac_exeext'
3851 { (eval echo "$as_me:3851: \"$ac_try\"") >&5
3852 (eval $ac_try) 2>&5
3853 ac_status=$?
3854 echo "$as_me:3854: \$? = $ac_status" >&5
3855 (exit $ac_status); }; }; then
3856 ac_cv_lib_i386_i386_set_ldt=yes
Alexandre Julliard902da691995-11-05 14:39:02 +00003857else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003858 echo "$as_me: failed program was:" >&5
3859cat conftest.$ac_ext >&5
3860ac_cv_lib_i386_i386_set_ldt=no
Alexandre Julliard902da691995-11-05 14:39:02 +00003861fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003862rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3863LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00003864fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003865echo "$as_me:3865: result: $ac_cv_lib_i386_i386_set_ldt" >&5
3866echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
3867if test $ac_cv_lib_i386_i386_set_ldt = yes; then
3868 cat >>confdefs.h <<EOF
3869#define HAVE_LIBI386 1
Alexandre Julliard02e90081998-01-04 17:49:09 +00003870EOF
3871
3872 LIBS="-li386 $LIBS"
3873
Alexandre Julliard02e90081998-01-04 17:49:09 +00003874fi
3875
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003876echo "$as_me:3876: checking for _oss_ioctl in -lossaudio" >&5
3877echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
3878if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierlingecc76691998-12-15 17:49:02 +00003880else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003881 ac_check_lib_save_LIBS=$LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00003882LIBS="-lossaudio $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003883cat >conftest.$ac_ext <<_ACEOF
3884#line 3884 "configure"
Todd Vierlingecc76691998-12-15 17:49:02 +00003885#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003886
Todd Vierlingecc76691998-12-15 17:49:02 +00003887/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003888#ifdef __cplusplus
3889extern "C"
3890#endif
Todd Vierlingecc76691998-12-15 17:49:02 +00003891/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003892 builtin and then its argument prototype would still apply. */
3893char _oss_ioctl ();
3894int
3895main ()
3896{
3897_oss_ioctl ();
3898 ;
3899 return 0;
3900}
3901_ACEOF
3902rm -f conftest.$ac_objext conftest$ac_exeext
3903if { (eval echo "$as_me:3903: \"$ac_link\"") >&5
3904 (eval $ac_link) 2>&5
3905 ac_status=$?
3906 echo "$as_me:3906: \$? = $ac_status" >&5
3907 (exit $ac_status); } &&
3908 { ac_try='test -s conftest$ac_exeext'
3909 { (eval echo "$as_me:3909: \"$ac_try\"") >&5
3910 (eval $ac_try) 2>&5
3911 ac_status=$?
3912 echo "$as_me:3912: \$? = $ac_status" >&5
3913 (exit $ac_status); }; }; then
3914 ac_cv_lib_ossaudio__oss_ioctl=yes
Todd Vierlingecc76691998-12-15 17:49:02 +00003915else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003916 echo "$as_me: failed program was:" >&5
3917cat conftest.$ac_ext >&5
3918ac_cv_lib_ossaudio__oss_ioctl=no
Todd Vierlingecc76691998-12-15 17:49:02 +00003919fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003920rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3921LIBS=$ac_check_lib_save_LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00003922fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003923echo "$as_me:3923: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
3924echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
3925if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
3926 cat >>confdefs.h <<EOF
3927#define HAVE_LIBOSSAUDIO 1
Todd Vierlingecc76691998-12-15 17:49:02 +00003928EOF
3929
3930 LIBS="-lossaudio $LIBS"
3931
Todd Vierlingecc76691998-12-15 17:49:02 +00003932fi
3933
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00003934for ac_func in iswalnum
Patrik Stridvallea584721998-11-01 16:22:07 +00003935do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003936as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3937echo "$as_me:3937: checking for $ac_func" >&5
3938echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3939if eval "test \"\${$as_ac_var+set}\" = set"; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00003941else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003942 cat >conftest.$ac_ext <<_ACEOF
3943#line 3943 "configure"
Patrik Stridvallea584721998-11-01 16:22:07 +00003944#include "confdefs.h"
3945/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003946 which can conflict with char $ac_func (); below. */
Patrik Stridvallea584721998-11-01 16:22:07 +00003947#include <assert.h>
3948/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003949#ifdef __cplusplus
3950extern "C"
3951#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00003952/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003953 builtin and then its argument prototype would still apply. */
3954char $ac_func ();
3955char (*f) ();
Patrik Stridvallea584721998-11-01 16:22:07 +00003956
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003957int
3958main ()
3959{
Patrik Stridvallea584721998-11-01 16:22:07 +00003960/* The GNU C library defines this for functions which it implements
3961 to always fail with ENOSYS. Some functions are actually named
3962 something starting with __ and the normal name is an alias. */
3963#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3964choke me
3965#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003966f = $ac_func;
Patrik Stridvallea584721998-11-01 16:22:07 +00003967#endif
3968
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003969 ;
3970 return 0;
3971}
3972_ACEOF
3973rm -f conftest.$ac_objext conftest$ac_exeext
3974if { (eval echo "$as_me:3974: \"$ac_link\"") >&5
3975 (eval $ac_link) 2>&5
3976 ac_status=$?
3977 echo "$as_me:3977: \$? = $ac_status" >&5
3978 (exit $ac_status); } &&
3979 { ac_try='test -s conftest$ac_exeext'
3980 { (eval echo "$as_me:3980: \"$ac_try\"") >&5
3981 (eval $ac_try) 2>&5
3982 ac_status=$?
3983 echo "$as_me:3983: \$? = $ac_status" >&5
3984 (exit $ac_status); }; }; then
3985 eval "$as_ac_var=yes"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00003986else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003987 echo "$as_me: failed program was:" >&5
3988cat conftest.$ac_ext >&5
3989eval "$as_ac_var=no"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00003990fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003991rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00003992fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003993echo "$as_me:3993: result: `eval echo '${'$as_ac_var'}'`" >&5
3994echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3995if test `eval echo '${'$as_ac_var'}'` = yes; then
3996 cat >>confdefs.h <<EOF
3997#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3998EOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00003999
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004000else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004001
4002echo "$as_me:4002: checking for iswalnum in -lw" >&5
4003echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
4004if test "${ac_cv_lib_w_iswalnum+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004006else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004007 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004008LIBS="-lw $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004009cat >conftest.$ac_ext <<_ACEOF
4010#line 4010 "configure"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004011#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004012
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004013/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004014#ifdef __cplusplus
4015extern "C"
4016#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004017/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004018 builtin and then its argument prototype would still apply. */
4019char iswalnum ();
4020int
4021main ()
4022{
4023iswalnum ();
4024 ;
4025 return 0;
4026}
4027_ACEOF
4028rm -f conftest.$ac_objext conftest$ac_exeext
4029if { (eval echo "$as_me:4029: \"$ac_link\"") >&5
4030 (eval $ac_link) 2>&5
4031 ac_status=$?
4032 echo "$as_me:4032: \$? = $ac_status" >&5
4033 (exit $ac_status); } &&
4034 { ac_try='test -s conftest$ac_exeext'
4035 { (eval echo "$as_me:4035: \"$ac_try\"") >&5
4036 (eval $ac_try) 2>&5
4037 ac_status=$?
4038 echo "$as_me:4038: \$? = $ac_status" >&5
4039 (exit $ac_status); }; }; then
4040 ac_cv_lib_w_iswalnum=yes
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004041else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004042 echo "$as_me: failed program was:" >&5
4043cat conftest.$ac_ext >&5
4044ac_cv_lib_w_iswalnum=no
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004045fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004046rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4047LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004048fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004049echo "$as_me:4049: result: $ac_cv_lib_w_iswalnum" >&5
4050echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
4051if test $ac_cv_lib_w_iswalnum = yes; then
4052 cat >>confdefs.h <<EOF
4053#define HAVE_LIBW 1
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004054EOF
4055
4056 LIBS="-lw $LIBS"
4057
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004058fi
4059
4060fi
4061done
4062
4063for ac_func in gethostbyname
4064do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004065as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4066echo "$as_me:4066: checking for $ac_func" >&5
4067echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4068if eval "test \"\${$as_ac_var+set}\" = set"; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004070else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004071 cat >conftest.$ac_ext <<_ACEOF
4072#line 4072 "configure"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004073#include "confdefs.h"
4074/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004075 which can conflict with char $ac_func (); below. */
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004076#include <assert.h>
4077/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004078#ifdef __cplusplus
4079extern "C"
4080#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004081/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004082 builtin and then its argument prototype would still apply. */
4083char $ac_func ();
4084char (*f) ();
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004085
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004086int
4087main ()
4088{
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004089/* The GNU C library defines this for functions which it implements
4090 to always fail with ENOSYS. Some functions are actually named
4091 something starting with __ and the normal name is an alias. */
4092#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4093choke me
4094#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004095f = $ac_func;
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004096#endif
4097
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004098 ;
4099 return 0;
4100}
4101_ACEOF
4102rm -f conftest.$ac_objext conftest$ac_exeext
4103if { (eval echo "$as_me:4103: \"$ac_link\"") >&5
4104 (eval $ac_link) 2>&5
4105 ac_status=$?
4106 echo "$as_me:4106: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -s conftest$ac_exeext'
4109 { (eval echo "$as_me:4109: \"$ac_try\"") >&5
4110 (eval $ac_try) 2>&5
4111 ac_status=$?
4112 echo "$as_me:4112: \$? = $ac_status" >&5
4113 (exit $ac_status); }; }; then
4114 eval "$as_ac_var=yes"
Patrik Stridvallea584721998-11-01 16:22:07 +00004115else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004116 echo "$as_me: failed program was:" >&5
4117cat conftest.$ac_ext >&5
4118eval "$as_ac_var=no"
Patrik Stridvallea584721998-11-01 16:22:07 +00004119fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004120rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvallea584721998-11-01 16:22:07 +00004121fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004122echo "$as_me:4122: result: `eval echo '${'$as_ac_var'}'`" >&5
4123echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4124if test `eval echo '${'$as_ac_var'}'` = yes; then
4125 cat >>confdefs.h <<EOF
4126#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4127EOF
Patrik Stridvallea584721998-11-01 16:22:07 +00004128
Patrik Stridvallea584721998-11-01 16:22:07 +00004129else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004130
4131echo "$as_me:4131: checking for gethostbyname in -lnsl" >&5
4132echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4133if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00004135else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004136 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004137LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004138cat >conftest.$ac_ext <<_ACEOF
4139#line 4139 "configure"
Patrik Stridvallea584721998-11-01 16:22:07 +00004140#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004141
Patrik Stridvallea584721998-11-01 16:22:07 +00004142/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004143#ifdef __cplusplus
4144extern "C"
4145#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00004146/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004147 builtin and then its argument prototype would still apply. */
4148char gethostbyname ();
4149int
4150main ()
4151{
4152gethostbyname ();
4153 ;
4154 return 0;
4155}
4156_ACEOF
4157rm -f conftest.$ac_objext conftest$ac_exeext
4158if { (eval echo "$as_me:4158: \"$ac_link\"") >&5
4159 (eval $ac_link) 2>&5
4160 ac_status=$?
4161 echo "$as_me:4161: \$? = $ac_status" >&5
4162 (exit $ac_status); } &&
4163 { ac_try='test -s conftest$ac_exeext'
4164 { (eval echo "$as_me:4164: \"$ac_try\"") >&5
4165 (eval $ac_try) 2>&5
4166 ac_status=$?
4167 echo "$as_me:4167: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
4169 ac_cv_lib_nsl_gethostbyname=yes
Patrik Stridvallea584721998-11-01 16:22:07 +00004170else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004171 echo "$as_me: failed program was:" >&5
4172cat conftest.$ac_ext >&5
4173ac_cv_lib_nsl_gethostbyname=no
Patrik Stridvallea584721998-11-01 16:22:07 +00004174fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004175rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4176LIBS=$ac_check_lib_save_LIBS
Patrik Stridvallea584721998-11-01 16:22:07 +00004177fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004178echo "$as_me:4178: result: $ac_cv_lib_nsl_gethostbyname" >&5
4179echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4180if test $ac_cv_lib_nsl_gethostbyname = yes; then
4181 cat >>confdefs.h <<EOF
4182#define HAVE_LIBNSL 1
Ron Recorde977d6c1999-09-05 12:32:05 +00004183EOF
Ron Recorde977d6c1999-09-05 12:32:05 +00004184
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004185 LIBS="-lnsl $LIBS"
4186
Ron Recorde977d6c1999-09-05 12:32:05 +00004187fi
4188
Patrik Stridvallea584721998-11-01 16:22:07 +00004189fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00004190done
4191
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004192for ac_func in connect
4193do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004194as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4195echo "$as_me:4195: checking for $ac_func" >&5
4196echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4197if eval "test \"\${$as_ac_var+set}\" = set"; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004199else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004200 cat >conftest.$ac_ext <<_ACEOF
4201#line 4201 "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004202#include "confdefs.h"
4203/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004204 which can conflict with char $ac_func (); below. */
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004205#include <assert.h>
4206/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004207#ifdef __cplusplus
4208extern "C"
4209#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004210/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004211 builtin and then its argument prototype would still apply. */
4212char $ac_func ();
4213char (*f) ();
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004214
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004215int
4216main ()
4217{
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004218/* The GNU C library defines this for functions which it implements
4219 to always fail with ENOSYS. Some functions are actually named
4220 something starting with __ and the normal name is an alias. */
4221#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4222choke me
4223#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004224f = $ac_func;
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004225#endif
4226
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004227 ;
4228 return 0;
4229}
4230_ACEOF
4231rm -f conftest.$ac_objext conftest$ac_exeext
4232if { (eval echo "$as_me:4232: \"$ac_link\"") >&5
4233 (eval $ac_link) 2>&5
4234 ac_status=$?
4235 echo "$as_me:4235: \$? = $ac_status" >&5
4236 (exit $ac_status); } &&
4237 { ac_try='test -s conftest$ac_exeext'
4238 { (eval echo "$as_me:4238: \"$ac_try\"") >&5
4239 (eval $ac_try) 2>&5
4240 ac_status=$?
4241 echo "$as_me:4241: \$? = $ac_status" >&5
4242 (exit $ac_status); }; }; then
4243 eval "$as_ac_var=yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004244else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004245 echo "$as_me: failed program was:" >&5
4246cat conftest.$ac_ext >&5
4247eval "$as_ac_var=no"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004248fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004249rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004250fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004251echo "$as_me:4251: result: `eval echo '${'$as_ac_var'}'`" >&5
4252echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4253if test `eval echo '${'$as_ac_var'}'` = yes; then
4254 cat >>confdefs.h <<EOF
4255#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4256EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004257
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004258else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004259
4260echo "$as_me:4260: checking for connect in -lsocket" >&5
4261echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4262if test "${ac_cv_lib_socket_connect+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004264else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004265 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004266LIBS="-lsocket $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004267cat >conftest.$ac_ext <<_ACEOF
4268#line 4268 "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004269#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004270
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004271/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004272#ifdef __cplusplus
4273extern "C"
4274#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004275/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004276 builtin and then its argument prototype would still apply. */
4277char connect ();
4278int
4279main ()
4280{
4281connect ();
4282 ;
4283 return 0;
4284}
4285_ACEOF
4286rm -f conftest.$ac_objext conftest$ac_exeext
4287if { (eval echo "$as_me:4287: \"$ac_link\"") >&5
4288 (eval $ac_link) 2>&5
4289 ac_status=$?
4290 echo "$as_me:4290: \$? = $ac_status" >&5
4291 (exit $ac_status); } &&
4292 { ac_try='test -s conftest$ac_exeext'
4293 { (eval echo "$as_me:4293: \"$ac_try\"") >&5
4294 (eval $ac_try) 2>&5
4295 ac_status=$?
4296 echo "$as_me:4296: \$? = $ac_status" >&5
4297 (exit $ac_status); }; }; then
4298 ac_cv_lib_socket_connect=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004299else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004300 echo "$as_me: failed program was:" >&5
4301cat conftest.$ac_ext >&5
4302ac_cv_lib_socket_connect=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004303fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004304rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4305LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004306fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004307echo "$as_me:4307: result: $ac_cv_lib_socket_connect" >&5
4308echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4309if test $ac_cv_lib_socket_connect = yes; then
4310 cat >>confdefs.h <<EOF
4311#define HAVE_LIBSOCKET 1
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004312EOF
4313
4314 LIBS="-lsocket $LIBS"
4315
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004316fi
4317
4318fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00004319done
4320
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004321echo "$as_me:4321: checking for _xpg4_setrunelocale in -lxpg4" >&5
4322echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
4323if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00004325else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004326 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00004327LIBS="-lxpg4 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004328cat >conftest.$ac_ext <<_ACEOF
4329#line 4329 "configure"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00004330#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004331
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00004332/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004333#ifdef __cplusplus
4334extern "C"
4335#endif
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00004336/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004337 builtin and then its argument prototype would still apply. */
4338char _xpg4_setrunelocale ();
4339int
4340main ()
4341{
4342_xpg4_setrunelocale ();
4343 ;
4344 return 0;
4345}
4346_ACEOF
4347rm -f conftest.$ac_objext conftest$ac_exeext
4348if { (eval echo "$as_me:4348: \"$ac_link\"") >&5
4349 (eval $ac_link) 2>&5
4350 ac_status=$?
4351 echo "$as_me:4351: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try='test -s conftest$ac_exeext'
4354 { (eval echo "$as_me:4354: \"$ac_try\"") >&5
4355 (eval $ac_try) 2>&5
4356 ac_status=$?
4357 echo "$as_me:4357: \$? = $ac_status" >&5
4358 (exit $ac_status); }; }; then
4359 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00004360else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004361 echo "$as_me: failed program was:" >&5
4362cat conftest.$ac_ext >&5
4363ac_cv_lib_xpg4__xpg4_setrunelocale=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00004364fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004365rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4366LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00004367fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004368echo "$as_me:4368: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
4369echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
4370if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
4371 cat >>confdefs.h <<EOF
4372#define HAVE_LIBXPG4 1
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00004373EOF
4374
4375 LIBS="-lxpg4 $LIBS"
4376
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00004377fi
4378
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004379echo "$as_me:4379: checking for mmap in -lmmap" >&5
4380echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
4381if test "${ac_cv_lib_mmap_mmap+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00004383else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004384 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00004385LIBS="-lmmap $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004386cat >conftest.$ac_ext <<_ACEOF
4387#line 4387 "configure"
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00004388#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004389
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00004390/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004391#ifdef __cplusplus
4392extern "C"
4393#endif
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00004394/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004395 builtin and then its argument prototype would still apply. */
4396char mmap ();
4397int
4398main ()
4399{
4400mmap ();
4401 ;
4402 return 0;
4403}
4404_ACEOF
4405rm -f conftest.$ac_objext conftest$ac_exeext
4406if { (eval echo "$as_me:4406: \"$ac_link\"") >&5
4407 (eval $ac_link) 2>&5
4408 ac_status=$?
4409 echo "$as_me:4409: \$? = $ac_status" >&5
4410 (exit $ac_status); } &&
4411 { ac_try='test -s conftest$ac_exeext'
4412 { (eval echo "$as_me:4412: \"$ac_try\"") >&5
4413 (eval $ac_try) 2>&5
4414 ac_status=$?
4415 echo "$as_me:4415: \$? = $ac_status" >&5
4416 (exit $ac_status); }; }; then
4417 ac_cv_lib_mmap_mmap=yes
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00004418else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004419 echo "$as_me: failed program was:" >&5
4420cat conftest.$ac_ext >&5
4421ac_cv_lib_mmap_mmap=no
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00004422fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004423rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4424LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00004425fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004426echo "$as_me:4426: result: $ac_cv_lib_mmap_mmap" >&5
4427echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
4428if test $ac_cv_lib_mmap_mmap = yes; then
4429 cat >>confdefs.h <<EOF
4430#define HAVE_LIBMMAP 1
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00004431EOF
4432
4433 LIBS="-lmmap $LIBS"
4434
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00004435fi
4436
Alexandre Julliard3f510ad2002-01-01 01:13:03 +00004437UTILLIBS=""
4438
Marcus Meissner2d7be871999-12-05 23:06:40 +00004439for ac_func in openpty
Marcus Meissnerf070fda1999-04-24 12:02:14 +00004440do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004441as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4442echo "$as_me:4442: checking for $ac_func" >&5
4443echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4444if eval "test \"\${$as_ac_var+set}\" = set"; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerf070fda1999-04-24 12:02:14 +00004446else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004447 cat >conftest.$ac_ext <<_ACEOF
4448#line 4448 "configure"
Marcus Meissnerf070fda1999-04-24 12:02:14 +00004449#include "confdefs.h"
4450/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004451 which can conflict with char $ac_func (); below. */
Marcus Meissnerf070fda1999-04-24 12:02:14 +00004452#include <assert.h>
4453/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004454#ifdef __cplusplus
4455extern "C"
4456#endif
Marcus Meissnerf070fda1999-04-24 12:02:14 +00004457/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004458 builtin and then its argument prototype would still apply. */
4459char $ac_func ();
4460char (*f) ();
Marcus Meissnerf070fda1999-04-24 12:02:14 +00004461
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004462int
4463main ()
4464{
Marcus Meissnerf070fda1999-04-24 12:02:14 +00004465/* The GNU C library defines this for functions which it implements
4466 to always fail with ENOSYS. Some functions are actually named
4467 something starting with __ and the normal name is an alias. */
4468#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4469choke me
4470#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004471f = $ac_func;
Marcus Meissnerf070fda1999-04-24 12:02:14 +00004472#endif
4473
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004474 ;
4475 return 0;
4476}
4477_ACEOF
4478rm -f conftest.$ac_objext conftest$ac_exeext
4479if { (eval echo "$as_me:4479: \"$ac_link\"") >&5
4480 (eval $ac_link) 2>&5
4481 ac_status=$?
4482 echo "$as_me:4482: \$? = $ac_status" >&5
4483 (exit $ac_status); } &&
4484 { ac_try='test -s conftest$ac_exeext'
4485 { (eval echo "$as_me:4485: \"$ac_try\"") >&5
4486 (eval $ac_try) 2>&5
4487 ac_status=$?
4488 echo "$as_me:4488: \$? = $ac_status" >&5
4489 (exit $ac_status); }; }; then
4490 eval "$as_ac_var=yes"
Marcus Meissner2d7be871999-12-05 23:06:40 +00004491else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004492 echo "$as_me: failed program was:" >&5
4493cat conftest.$ac_ext >&5
4494eval "$as_ac_var=no"
Marcus Meissner2d7be871999-12-05 23:06:40 +00004495fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004496rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Marcus Meissner2d7be871999-12-05 23:06:40 +00004497fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004498echo "$as_me:4498: result: `eval echo '${'$as_ac_var'}'`" >&5
4499echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4500if test `eval echo '${'$as_ac_var'}'` = yes; then
4501 cat >>confdefs.h <<EOF
4502#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4503EOF
Marcus Meissner2d7be871999-12-05 23:06:40 +00004504
Marcus Meissner2d7be871999-12-05 23:06:40 +00004505else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004506 echo "$as_me:4506: checking for openpty in -lutil" >&5
4507echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
4508if test "${ac_cv_lib_util_openpty+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00004510else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004511 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner2d7be871999-12-05 23:06:40 +00004512LIBS="-lutil $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004513cat >conftest.$ac_ext <<_ACEOF
4514#line 4514 "configure"
Marcus Meissner2d7be871999-12-05 23:06:40 +00004515#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004516
Marcus Meissner2d7be871999-12-05 23:06:40 +00004517/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004518#ifdef __cplusplus
4519extern "C"
4520#endif
Marcus Meissner2d7be871999-12-05 23:06:40 +00004521/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004522 builtin and then its argument prototype would still apply. */
4523char openpty ();
4524int
4525main ()
4526{
4527openpty ();
4528 ;
4529 return 0;
4530}
4531_ACEOF
4532rm -f conftest.$ac_objext conftest$ac_exeext
4533if { (eval echo "$as_me:4533: \"$ac_link\"") >&5
4534 (eval $ac_link) 2>&5
4535 ac_status=$?
4536 echo "$as_me:4536: \$? = $ac_status" >&5
4537 (exit $ac_status); } &&
4538 { ac_try='test -s conftest$ac_exeext'
4539 { (eval echo "$as_me:4539: \"$ac_try\"") >&5
4540 (eval $ac_try) 2>&5
4541 ac_status=$?
4542 echo "$as_me:4542: \$? = $ac_status" >&5
4543 (exit $ac_status); }; }; then
4544 ac_cv_lib_util_openpty=yes
Marcus Meissner2d7be871999-12-05 23:06:40 +00004545else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004546 echo "$as_me: failed program was:" >&5
4547cat conftest.$ac_ext >&5
4548ac_cv_lib_util_openpty=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00004549fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004550rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4551LIBS=$ac_check_lib_save_LIBS
Marcus Meissner2d7be871999-12-05 23:06:40 +00004552fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004553echo "$as_me:4553: result: $ac_cv_lib_util_openpty" >&5
4554echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
4555if test $ac_cv_lib_util_openpty = yes; then
4556 cat >>confdefs.h <<\EOF
Marcus Meissner2d7be871999-12-05 23:06:40 +00004557#define HAVE_OPENPTY 1
4558EOF
4559
Alexandre Julliard3f510ad2002-01-01 01:13:03 +00004560 UTILLIBS="-lutil"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004561
Marcus Meissner2d7be871999-12-05 23:06:40 +00004562fi
4563
4564fi
4565done
4566
Alexandre Julliard562089b2001-12-31 22:28:35 +00004567DLLIBS=""
4568
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004569for ac_header in dlfcn.h
Marcus Meissner2d7be871999-12-05 23:06:40 +00004570do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004571as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4572echo "$as_me:4572: checking for $ac_header" >&5
4573echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4574if eval "test \"\${$as_ac_Header+set}\" = set"; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00004576else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004577 cat >conftest.$ac_ext <<_ACEOF
4578#line 4578 "configure"
Marcus Meissner2d7be871999-12-05 23:06:40 +00004579#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004580#include <$ac_header>
4581_ACEOF
4582if { (eval echo "$as_me:4582: \"$ac_cpp conftest.$ac_ext\"") >&5
4583 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4584 ac_status=$?
4585 egrep -v '^ *\+' conftest.er1 >conftest.err
4586 rm -f conftest.er1
4587 cat conftest.err >&5
4588 echo "$as_me:4588: \$? = $ac_status" >&5
4589 (exit $ac_status); } >/dev/null; then
4590 if test -s conftest.err; then
4591 ac_cpp_err=$ac_c_preproc_warn_flag
4592 else
4593 ac_cpp_err=
4594 fi
Marcus Meissner2d7be871999-12-05 23:06:40 +00004595else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004596 ac_cpp_err=yes
4597fi
4598if test -z "$ac_cpp_err"; then
4599 eval "$as_ac_Header=yes"
4600else
4601 echo "$as_me: failed program was:" >&5
Marcus Meissner2d7be871999-12-05 23:06:40 +00004602 cat conftest.$ac_ext >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004603 eval "$as_ac_Header=no"
Marcus Meissner2d7be871999-12-05 23:06:40 +00004604fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004605rm -f conftest.err conftest.$ac_ext
Marcus Meissner2d7be871999-12-05 23:06:40 +00004606fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004607echo "$as_me:4607: result: `eval echo '${'$as_ac_Header'}'`" >&5
4608echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4609if test `eval echo '${'$as_ac_Header'}'` = yes; then
4610 cat >>confdefs.h <<EOF
4611#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Marcus Meissner2d7be871999-12-05 23:06:40 +00004612EOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004613
4614for ac_func in dlopen
Marcus Meissner2d7be871999-12-05 23:06:40 +00004615do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004616as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4617echo "$as_me:4617: checking for $ac_func" >&5
4618echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4619if eval "test \"\${$as_ac_var+set}\" = set"; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00004621else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004622 cat >conftest.$ac_ext <<_ACEOF
4623#line 4623 "configure"
Marcus Meissner2d7be871999-12-05 23:06:40 +00004624#include "confdefs.h"
4625/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004626 which can conflict with char $ac_func (); below. */
Marcus Meissner2d7be871999-12-05 23:06:40 +00004627#include <assert.h>
4628/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004629#ifdef __cplusplus
4630extern "C"
4631#endif
Marcus Meissner2d7be871999-12-05 23:06:40 +00004632/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004633 builtin and then its argument prototype would still apply. */
4634char $ac_func ();
4635char (*f) ();
Marcus Meissner2d7be871999-12-05 23:06:40 +00004636
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004637int
4638main ()
4639{
Marcus Meissner2d7be871999-12-05 23:06:40 +00004640/* The GNU C library defines this for functions which it implements
4641 to always fail with ENOSYS. Some functions are actually named
4642 something starting with __ and the normal name is an alias. */
4643#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4644choke me
4645#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004646f = $ac_func;
Marcus Meissner2d7be871999-12-05 23:06:40 +00004647#endif
4648
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004649 ;
4650 return 0;
4651}
4652_ACEOF
4653rm -f conftest.$ac_objext conftest$ac_exeext
4654if { (eval echo "$as_me:4654: \"$ac_link\"") >&5
4655 (eval $ac_link) 2>&5
4656 ac_status=$?
4657 echo "$as_me:4657: \$? = $ac_status" >&5
4658 (exit $ac_status); } &&
4659 { ac_try='test -s conftest$ac_exeext'
4660 { (eval echo "$as_me:4660: \"$ac_try\"") >&5
4661 (eval $ac_try) 2>&5
4662 ac_status=$?
4663 echo "$as_me:4663: \$? = $ac_status" >&5
4664 (exit $ac_status); }; }; then
4665 eval "$as_ac_var=yes"
Marcus Meissnerf070fda1999-04-24 12:02:14 +00004666else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004667 echo "$as_me: failed program was:" >&5
4668cat conftest.$ac_ext >&5
4669eval "$as_ac_var=no"
Marcus Meissnerf070fda1999-04-24 12:02:14 +00004670fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004671rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Marcus Meissnerf070fda1999-04-24 12:02:14 +00004672fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004673echo "$as_me:4673: result: `eval echo '${'$as_ac_var'}'`" >&5
4674echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4675if test `eval echo '${'$as_ac_var'}'` = yes; then
4676 cat >>confdefs.h <<EOF
4677#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4678EOF
Marcus Meissnerf070fda1999-04-24 12:02:14 +00004679
Marcus Meissnerf070fda1999-04-24 12:02:14 +00004680else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004681 echo "$as_me:4681: checking for dlopen in -ldl" >&5
4682echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4683if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner8220bc91998-10-11 11:10:27 +00004685else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004686 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner8220bc91998-10-11 11:10:27 +00004687LIBS="-ldl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004688cat >conftest.$ac_ext <<_ACEOF
4689#line 4689 "configure"
Marcus Meissner8220bc91998-10-11 11:10:27 +00004690#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004691
Marcus Meissner8220bc91998-10-11 11:10:27 +00004692/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004693#ifdef __cplusplus
4694extern "C"
4695#endif
Marcus Meissner8220bc91998-10-11 11:10:27 +00004696/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004697 builtin and then its argument prototype would still apply. */
4698char dlopen ();
4699int
4700main ()
4701{
4702dlopen ();
4703 ;
4704 return 0;
4705}
4706_ACEOF
4707rm -f conftest.$ac_objext conftest$ac_exeext
4708if { (eval echo "$as_me:4708: \"$ac_link\"") >&5
4709 (eval $ac_link) 2>&5
4710 ac_status=$?
4711 echo "$as_me:4711: \$? = $ac_status" >&5
4712 (exit $ac_status); } &&
4713 { ac_try='test -s conftest$ac_exeext'
4714 { (eval echo "$as_me:4714: \"$ac_try\"") >&5
4715 (eval $ac_try) 2>&5
4716 ac_status=$?
4717 echo "$as_me:4717: \$? = $ac_status" >&5
4718 (exit $ac_status); }; }; then
4719 ac_cv_lib_dl_dlopen=yes
Marcus Meissner8220bc91998-10-11 11:10:27 +00004720else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004721 echo "$as_me: failed program was:" >&5
4722cat conftest.$ac_ext >&5
4723ac_cv_lib_dl_dlopen=no
Marcus Meissner8220bc91998-10-11 11:10:27 +00004724fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004725rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4726LIBS=$ac_check_lib_save_LIBS
4727fi
4728echo "$as_me:4728: result: $ac_cv_lib_dl_dlopen" >&5
4729echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4730if test $ac_cv_lib_dl_dlopen = yes; then
Marcus Meissner8220bc91998-10-11 11:10:27 +00004731
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004732cat >>confdefs.h <<\EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004733#define HAVE_DLOPEN 1
Marcus Meissner8220bc91998-10-11 11:10:27 +00004734EOF
4735
Alexandre Julliard562089b2001-12-31 22:28:35 +00004736 DLLIBS="-ldl"
Marcus Meissnerf070fda1999-04-24 12:02:14 +00004737else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004738 LIBEXT="a"
Marcus Meissnerf070fda1999-04-24 12:02:14 +00004739fi
4740
Marcus Meissnerf070fda1999-04-24 12:02:14 +00004741fi
4742done
4743
Marcus Meissner8220bc91998-10-11 11:10:27 +00004744else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004745 LIBEXT="a"
4746
Marcus Meissner8220bc91998-10-11 11:10:27 +00004747fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00004748done
Marcus Meissner8220bc91998-10-11 11:10:27 +00004749
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004750JPEGLIB=""
4751
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004752for ac_header in jpeglib.h
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004753do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004754as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4755echo "$as_me:4755: checking for $ac_header" >&5
4756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4757if eval "test \"\${$as_ac_Header+set}\" = set"; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004759else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004760 cat >conftest.$ac_ext <<_ACEOF
4761#line 4761 "configure"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004762#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004763#include <$ac_header>
4764_ACEOF
4765if { (eval echo "$as_me:4765: \"$ac_cpp conftest.$ac_ext\"") >&5
4766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4767 ac_status=$?
4768 egrep -v '^ *\+' conftest.er1 >conftest.err
4769 rm -f conftest.er1
4770 cat conftest.err >&5
4771 echo "$as_me:4771: \$? = $ac_status" >&5
4772 (exit $ac_status); } >/dev/null; then
4773 if test -s conftest.err; then
4774 ac_cpp_err=$ac_c_preproc_warn_flag
4775 else
4776 ac_cpp_err=
4777 fi
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004778else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004779 ac_cpp_err=yes
4780fi
4781if test -z "$ac_cpp_err"; then
4782 eval "$as_ac_Header=yes"
4783else
4784 echo "$as_me: failed program was:" >&5
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004785 cat conftest.$ac_ext >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004786 eval "$as_ac_Header=no"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004787fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004788rm -f conftest.err conftest.$ac_ext
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004789fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004790echo "$as_me:4790: result: `eval echo '${'$as_ac_Header'}'`" >&5
4791echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4792if test `eval echo '${'$as_ac_Header'}'` = yes; then
4793 cat >>confdefs.h <<EOF
4794#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004795EOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004796 echo "$as_me:4796: checking for jpeg_start_decompress in -ljpeg" >&5
4797echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
4798if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004800else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004801 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004802LIBS="-ljpeg $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004803cat >conftest.$ac_ext <<_ACEOF
4804#line 4804 "configure"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004805#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004806
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004807/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004808#ifdef __cplusplus
4809extern "C"
4810#endif
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004811/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004812 builtin and then its argument prototype would still apply. */
4813char jpeg_start_decompress ();
4814int
4815main ()
4816{
4817jpeg_start_decompress ();
4818 ;
4819 return 0;
4820}
4821_ACEOF
4822rm -f conftest.$ac_objext conftest$ac_exeext
4823if { (eval echo "$as_me:4823: \"$ac_link\"") >&5
4824 (eval $ac_link) 2>&5
4825 ac_status=$?
4826 echo "$as_me:4826: \$? = $ac_status" >&5
4827 (exit $ac_status); } &&
4828 { ac_try='test -s conftest$ac_exeext'
4829 { (eval echo "$as_me:4829: \"$ac_try\"") >&5
4830 (eval $ac_try) 2>&5
4831 ac_status=$?
4832 echo "$as_me:4832: \$? = $ac_status" >&5
4833 (exit $ac_status); }; }; then
4834 ac_cv_lib_jpeg_jpeg_start_decompress=yes
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004835else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004836 echo "$as_me: failed program was:" >&5
4837cat conftest.$ac_ext >&5
4838ac_cv_lib_jpeg_jpeg_start_decompress=no
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004839fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004840rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4841LIBS=$ac_check_lib_save_LIBS
4842fi
4843echo "$as_me:4843: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
4844echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
4845if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004846
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004847cat >>confdefs.h <<\EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004848#define HAVE_LIBJPEG 1
4849EOF
4850
4851 JPEGLIB="-ljpeg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004852
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004853fi
4854
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004855fi
4856done
4857
Patrik Stridvall2941a212000-04-25 20:34:22 +00004858XFILES=""
Marcus Meissner10ad97c2000-04-09 14:30:50 +00004859
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00004860OPENGLFILES=""
4861
Marcus Meissnerb63ab442001-06-08 19:02:57 +00004862GLU32FILES=""
Patrik Stridvallea584721998-11-01 16:22:07 +00004863if test "$have_x" = "yes"
4864then
Patrik Stridvall24110281999-02-04 10:09:54 +00004865 XLIB="-lXext -lX11"
Ove Kaaven1eb593c1999-02-14 09:34:46 +00004866 ac_save_CPPFLAGS="$CPPFLAGS"
4867 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Patrik Stridvallea584721998-11-01 16:22:07 +00004868
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004869for ac_header in X11/Xlib.h
Lionel Ulmera1d6d241999-01-30 15:54:43 +00004870do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004871as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4872echo "$as_me:4872: checking for $ac_header" >&5
4873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4874if eval "test \"\${$as_ac_Header+set}\" = set"; then
4875 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmera1d6d241999-01-30 15:54:43 +00004876else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004877 cat >conftest.$ac_ext <<_ACEOF
4878#line 4878 "configure"
Lionel Ulmera1d6d241999-01-30 15:54:43 +00004879#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004880#include <$ac_header>
4881_ACEOF
4882if { (eval echo "$as_me:4882: \"$ac_cpp conftest.$ac_ext\"") >&5
4883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4884 ac_status=$?
4885 egrep -v '^ *\+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 echo "$as_me:4888: \$? = $ac_status" >&5
4889 (exit $ac_status); } >/dev/null; then
4890 if test -s conftest.err; then
4891 ac_cpp_err=$ac_c_preproc_warn_flag
4892 else
4893 ac_cpp_err=
4894 fi
Lionel Ulmera1d6d241999-01-30 15:54:43 +00004895else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004896 ac_cpp_err=yes
4897fi
4898if test -z "$ac_cpp_err"; then
4899 eval "$as_ac_Header=yes"
4900else
4901 echo "$as_me: failed program was:" >&5
Lionel Ulmera1d6d241999-01-30 15:54:43 +00004902 cat conftest.$ac_ext >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004903 eval "$as_ac_Header=no"
Lionel Ulmera1d6d241999-01-30 15:54:43 +00004904fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004905rm -f conftest.err conftest.$ac_ext
Lionel Ulmera1d6d241999-01-30 15:54:43 +00004906fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004907echo "$as_me:4907: result: `eval echo '${'$as_ac_Header'}'`" >&5
4908echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4909if test `eval echo '${'$as_ac_Header'}'` = yes; then
4910 cat >>confdefs.h <<EOF
4911#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Lionel Ulmera1d6d241999-01-30 15:54:43 +00004912EOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004913
4914for ac_header in X11/XKBlib.h
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00004915do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004916as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4917echo "$as_me:4917: checking for $ac_header" >&5
4918echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4919if eval "test \"\${$as_ac_Header+set}\" = set"; then
4920 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00004921else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004922 cat >conftest.$ac_ext <<_ACEOF
4923#line 4923 "configure"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00004924#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004925#include <$ac_header>
4926_ACEOF
4927if { (eval echo "$as_me:4927: \"$ac_cpp conftest.$ac_ext\"") >&5
4928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4929 ac_status=$?
4930 egrep -v '^ *\+' conftest.er1 >conftest.err
4931 rm -f conftest.er1
4932 cat conftest.err >&5
4933 echo "$as_me:4933: \$? = $ac_status" >&5
4934 (exit $ac_status); } >/dev/null; then
4935 if test -s conftest.err; then
4936 ac_cpp_err=$ac_c_preproc_warn_flag
4937 else
4938 ac_cpp_err=
4939 fi
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00004940else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004941 ac_cpp_err=yes
4942fi
4943if test -z "$ac_cpp_err"; then
4944 eval "$as_ac_Header=yes"
4945else
4946 echo "$as_me: failed program was:" >&5
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00004947 cat conftest.$ac_ext >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004948 eval "$as_ac_Header=no"
Patrik Stridvall24110281999-02-04 10:09:54 +00004949fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004950rm -f conftest.err conftest.$ac_ext
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00004951fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004952echo "$as_me:4952: result: `eval echo '${'$as_ac_Header'}'`" >&5
4953echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4954if test `eval echo '${'$as_ac_Header'}'` = yes; then
4955 cat >>confdefs.h <<EOF
4956#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00004957EOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004958 echo "$as_me:4958: checking for XkbQueryExtension in -lX11" >&5
4959echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
4960if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
4961 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00004962else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004963 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00004964LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004965cat >conftest.$ac_ext <<_ACEOF
4966#line 4966 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00004967#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004968
Patrik Stridvall24110281999-02-04 10:09:54 +00004969/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004970#ifdef __cplusplus
4971extern "C"
4972#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00004973/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004974 builtin and then its argument prototype would still apply. */
4975char XkbQueryExtension ();
4976int
4977main ()
4978{
4979XkbQueryExtension ();
4980 ;
4981 return 0;
4982}
4983_ACEOF
4984rm -f conftest.$ac_objext conftest$ac_exeext
4985if { (eval echo "$as_me:4985: \"$ac_link\"") >&5
4986 (eval $ac_link) 2>&5
4987 ac_status=$?
4988 echo "$as_me:4988: \$? = $ac_status" >&5
4989 (exit $ac_status); } &&
4990 { ac_try='test -s conftest$ac_exeext'
4991 { (eval echo "$as_me:4991: \"$ac_try\"") >&5
4992 (eval $ac_try) 2>&5
4993 ac_status=$?
4994 echo "$as_me:4994: \$? = $ac_status" >&5
4995 (exit $ac_status); }; }; then
4996 ac_cv_lib_X11_XkbQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00004997else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004998 echo "$as_me: failed program was:" >&5
4999cat conftest.$ac_ext >&5
5000ac_cv_lib_X11_XkbQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00005001fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005002rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5003LIBS=$ac_check_lib_save_LIBS
5004fi
5005echo "$as_me:5005: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
5006echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
5007if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00005008
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005009cat >>confdefs.h <<\EOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00005010#define HAVE_XKB 1
Patrik Stridvall24110281999-02-04 10:09:54 +00005011EOF
5012
Patrik Stridvall24110281999-02-04 10:09:54 +00005013fi
5014
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00005015else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005016 { echo "$as_me:5016: WARNING: Xkb extension not found, Wine will be built without it" >&5
5017echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
5018
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00005019fi
5020done
5021
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005022for ac_header in X11/extensions/XShm.h
Patrik Stridvall24110281999-02-04 10:09:54 +00005023do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005024as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5025echo "$as_me:5025: checking for $ac_header" >&5
5026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5027if eval "test \"\${$as_ac_Header+set}\" = set"; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00005029else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005030 cat >conftest.$ac_ext <<_ACEOF
5031#line 5031 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00005032#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005033#include <$ac_header>
5034_ACEOF
5035if { (eval echo "$as_me:5035: \"$ac_cpp conftest.$ac_ext\"") >&5
5036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5037 ac_status=$?
5038 egrep -v '^ *\+' conftest.er1 >conftest.err
5039 rm -f conftest.er1
5040 cat conftest.err >&5
5041 echo "$as_me:5041: \$? = $ac_status" >&5
5042 (exit $ac_status); } >/dev/null; then
5043 if test -s conftest.err; then
5044 ac_cpp_err=$ac_c_preproc_warn_flag
5045 else
5046 ac_cpp_err=
5047 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00005048else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005049 ac_cpp_err=yes
5050fi
5051if test -z "$ac_cpp_err"; then
5052 eval "$as_ac_Header=yes"
5053else
5054 echo "$as_me: failed program was:" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00005055 cat conftest.$ac_ext >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005056 eval "$as_ac_Header=no"
Patrik Stridvall24110281999-02-04 10:09:54 +00005057fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005058rm -f conftest.err conftest.$ac_ext
Patrik Stridvall24110281999-02-04 10:09:54 +00005059fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005060echo "$as_me:5060: result: `eval echo '${'$as_ac_Header'}'`" >&5
5061echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5062if test `eval echo '${'$as_ac_Header'}'` = yes; then
5063 cat >>confdefs.h <<EOF
5064#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Patrik Stridvall24110281999-02-04 10:09:54 +00005065EOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005066 echo "$as_me:5066: checking for XShmQueryExtension in -lXext" >&5
5067echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
5068if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00005070else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005071 ac_check_lib_save_LIBS=$LIBS
Francois Jacques5b6879c2000-07-28 23:04:54 +00005072LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005073cat >conftest.$ac_ext <<_ACEOF
5074#line 5074 "configure"
Francois Jacques5b6879c2000-07-28 23:04:54 +00005075#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005076
Francois Jacques5b6879c2000-07-28 23:04:54 +00005077/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005078#ifdef __cplusplus
5079extern "C"
5080#endif
Francois Jacques5b6879c2000-07-28 23:04:54 +00005081/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005082 builtin and then its argument prototype would still apply. */
5083char XShmQueryExtension ();
5084int
5085main ()
5086{
5087XShmQueryExtension ();
5088 ;
5089 return 0;
5090}
5091_ACEOF
5092rm -f conftest.$ac_objext conftest$ac_exeext
5093if { (eval echo "$as_me:5093: \"$ac_link\"") >&5
5094 (eval $ac_link) 2>&5
5095 ac_status=$?
5096 echo "$as_me:5096: \$? = $ac_status" >&5
5097 (exit $ac_status); } &&
5098 { ac_try='test -s conftest$ac_exeext'
5099 { (eval echo "$as_me:5099: \"$ac_try\"") >&5
5100 (eval $ac_try) 2>&5
5101 ac_status=$?
5102 echo "$as_me:5102: \$? = $ac_status" >&5
5103 (exit $ac_status); }; }; then
5104 ac_cv_lib_Xext_XShmQueryExtension=yes
Francois Jacques5b6879c2000-07-28 23:04:54 +00005105else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005106 echo "$as_me: failed program was:" >&5
5107cat conftest.$ac_ext >&5
5108ac_cv_lib_Xext_XShmQueryExtension=no
Francois Jacques5b6879c2000-07-28 23:04:54 +00005109fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005110rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5111LIBS=$ac_check_lib_save_LIBS
5112fi
5113echo "$as_me:5113: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
5114echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
5115if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
Francois Jacques5b6879c2000-07-28 23:04:54 +00005116
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005117cat >>confdefs.h <<\EOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00005118#define HAVE_LIBXXSHM 1
Francois Jacques5b6879c2000-07-28 23:04:54 +00005119EOF
5120
Francois Jacques5b6879c2000-07-28 23:04:54 +00005121fi
5122
Francois Jacques5b6879c2000-07-28 23:04:54 +00005123else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005124 { echo "$as_me:5124: WARNING: XShm extension not found, Wine will be built without it" >&5
5125echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
5126
Francois Jacques5b6879c2000-07-28 23:04:54 +00005127fi
5128done
5129
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005130for ac_header in X11/extensions/shape.h
Francois Jacques5b6879c2000-07-28 23:04:54 +00005131do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005132as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5133echo "$as_me:5133: checking for $ac_header" >&5
5134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5135if eval "test \"\${$as_ac_Header+set}\" = set"; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00005137else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005138 cat >conftest.$ac_ext <<_ACEOF
5139#line 5139 "configure"
Francois Jacques5b6879c2000-07-28 23:04:54 +00005140#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005141#include <$ac_header>
5142_ACEOF
5143if { (eval echo "$as_me:5143: \"$ac_cpp conftest.$ac_ext\"") >&5
5144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5145 ac_status=$?
5146 egrep -v '^ *\+' conftest.er1 >conftest.err
5147 rm -f conftest.er1
5148 cat conftest.err >&5
5149 echo "$as_me:5149: \$? = $ac_status" >&5
5150 (exit $ac_status); } >/dev/null; then
5151 if test -s conftest.err; then
5152 ac_cpp_err=$ac_c_preproc_warn_flag
5153 else
5154 ac_cpp_err=
5155 fi
Francois Jacques5b6879c2000-07-28 23:04:54 +00005156else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005157 ac_cpp_err=yes
5158fi
5159if test -z "$ac_cpp_err"; then
5160 eval "$as_ac_Header=yes"
5161else
5162 echo "$as_me: failed program was:" >&5
Francois Jacques5b6879c2000-07-28 23:04:54 +00005163 cat conftest.$ac_ext >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005164 eval "$as_ac_Header=no"
Francois Jacques5b6879c2000-07-28 23:04:54 +00005165fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005166rm -f conftest.err conftest.$ac_ext
Francois Jacques5b6879c2000-07-28 23:04:54 +00005167fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005168echo "$as_me:5168: result: `eval echo '${'$as_ac_Header'}'`" >&5
5169echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5170if test `eval echo '${'$as_ac_Header'}'` = yes; then
5171 cat >>confdefs.h <<EOF
5172#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Francois Jacques5b6879c2000-07-28 23:04:54 +00005173EOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005174 echo "$as_me:5174: checking for XShapeQueryExtension in -lXext" >&5
5175echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
5176if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00005178else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005179 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00005180LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005181cat >conftest.$ac_ext <<_ACEOF
5182#line 5182 "configure"
Ove Kaavenc90fb252001-01-02 22:39:14 +00005183#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005184
Ove Kaavenc90fb252001-01-02 22:39:14 +00005185/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005186#ifdef __cplusplus
5187extern "C"
5188#endif
Ove Kaavenc90fb252001-01-02 22:39:14 +00005189/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005190 builtin and then its argument prototype would still apply. */
5191char XShapeQueryExtension ();
5192int
5193main ()
5194{
5195XShapeQueryExtension ();
5196 ;
5197 return 0;
5198}
5199_ACEOF
5200rm -f conftest.$ac_objext conftest$ac_exeext
5201if { (eval echo "$as_me:5201: \"$ac_link\"") >&5
5202 (eval $ac_link) 2>&5
5203 ac_status=$?
5204 echo "$as_me:5204: \$? = $ac_status" >&5
5205 (exit $ac_status); } &&
5206 { ac_try='test -s conftest$ac_exeext'
5207 { (eval echo "$as_me:5207: \"$ac_try\"") >&5
5208 (eval $ac_try) 2>&5
5209 ac_status=$?
5210 echo "$as_me:5210: \$? = $ac_status" >&5
5211 (exit $ac_status); }; }; then
5212 ac_cv_lib_Xext_XShapeQueryExtension=yes
Ove Kaavenc90fb252001-01-02 22:39:14 +00005213else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005214 echo "$as_me: failed program was:" >&5
5215cat conftest.$ac_ext >&5
5216ac_cv_lib_Xext_XShapeQueryExtension=no
Ove Kaavenc90fb252001-01-02 22:39:14 +00005217fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005218rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5219LIBS=$ac_check_lib_save_LIBS
5220fi
5221echo "$as_me:5221: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
5222echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
5223if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Ove Kaavenc90fb252001-01-02 22:39:14 +00005224
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005225cat >>confdefs.h <<\EOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00005226#define HAVE_LIBXSHAPE 1
5227EOF
5228
Ove Kaavenc90fb252001-01-02 22:39:14 +00005229fi
5230
Ove Kaavenc90fb252001-01-02 22:39:14 +00005231else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005232 { echo "$as_me:5232: WARNING: XShape extension not found, Wine will be built without it" >&5
5233echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
5234
Ove Kaavenc90fb252001-01-02 22:39:14 +00005235fi
5236done
5237
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005238for ac_header in X11/extensions/xf86dga.h
Ove Kaavenc90fb252001-01-02 22:39:14 +00005239do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005240as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5241echo "$as_me:5241: checking for $ac_header" >&5
5242echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5243if eval "test \"\${$as_ac_Header+set}\" = set"; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00005245else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005246 cat >conftest.$ac_ext <<_ACEOF
5247#line 5247 "configure"
Ove Kaavenc90fb252001-01-02 22:39:14 +00005248#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005249#include <$ac_header>
5250_ACEOF
5251if { (eval echo "$as_me:5251: \"$ac_cpp conftest.$ac_ext\"") >&5
5252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5253 ac_status=$?
5254 egrep -v '^ *\+' conftest.er1 >conftest.err
5255 rm -f conftest.er1
5256 cat conftest.err >&5
5257 echo "$as_me:5257: \$? = $ac_status" >&5
5258 (exit $ac_status); } >/dev/null; then
5259 if test -s conftest.err; then
5260 ac_cpp_err=$ac_c_preproc_warn_flag
5261 else
5262 ac_cpp_err=
5263 fi
Ove Kaavenc90fb252001-01-02 22:39:14 +00005264else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005265 ac_cpp_err=yes
5266fi
5267if test -z "$ac_cpp_err"; then
5268 eval "$as_ac_Header=yes"
5269else
5270 echo "$as_me: failed program was:" >&5
Ove Kaavenc90fb252001-01-02 22:39:14 +00005271 cat conftest.$ac_ext >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005272 eval "$as_ac_Header=no"
Ove Kaavenc90fb252001-01-02 22:39:14 +00005273fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005274rm -f conftest.err conftest.$ac_ext
Ove Kaavenc90fb252001-01-02 22:39:14 +00005275fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005276echo "$as_me:5276: result: `eval echo '${'$as_ac_Header'}'`" >&5
5277echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5278if test `eval echo '${'$as_ac_Header'}'` = yes; then
5279 cat >>confdefs.h <<EOF
5280#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Ove Kaavenc90fb252001-01-02 22:39:14 +00005281EOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005282 echo "$as_me:5282: checking for XDGAQueryExtension in -lXxf86dga" >&5
5283echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
5284if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00005286else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005287 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner10ad97c2000-04-09 14:30:50 +00005288LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00005289 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005290cat >conftest.$ac_ext <<_ACEOF
5291#line 5291 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00005292#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005293
Patrik Stridvall24110281999-02-04 10:09:54 +00005294/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005295#ifdef __cplusplus
5296extern "C"
5297#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00005298/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005299 builtin and then its argument prototype would still apply. */
5300char XDGAQueryExtension ();
5301int
5302main ()
5303{
5304XDGAQueryExtension ();
5305 ;
5306 return 0;
5307}
5308_ACEOF
5309rm -f conftest.$ac_objext conftest$ac_exeext
5310if { (eval echo "$as_me:5310: \"$ac_link\"") >&5
5311 (eval $ac_link) 2>&5
5312 ac_status=$?
5313 echo "$as_me:5313: \$? = $ac_status" >&5
5314 (exit $ac_status); } &&
5315 { ac_try='test -s conftest$ac_exeext'
5316 { (eval echo "$as_me:5316: \"$ac_try\"") >&5
5317 (eval $ac_try) 2>&5
5318 ac_status=$?
5319 echo "$as_me:5319: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5321 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
Lionel Ulmerd94475b1999-09-20 18:42:46 +00005322else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005323 echo "$as_me: failed program was:" >&5
5324cat conftest.$ac_ext >&5
5325ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
Lionel Ulmerd94475b1999-09-20 18:42:46 +00005326fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005327rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5328LIBS=$ac_check_lib_save_LIBS
5329fi
5330echo "$as_me:5330: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
5331echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
5332if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
Lionel Ulmerd94475b1999-09-20 18:42:46 +00005333
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005334cat >>confdefs.h <<\EOF
Lionel Ulmerd94475b1999-09-20 18:42:46 +00005335#define HAVE_LIBXXF86DGA2 1
5336EOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00005337
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00005338 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005339
Lionel Ulmerd94475b1999-09-20 18:42:46 +00005340else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005341 echo "$as_me:5341: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
5342echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
5343if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmerd94475b1999-09-20 18:42:46 +00005345else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005346 ac_check_lib_save_LIBS=$LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00005347LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
5348 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005349cat >conftest.$ac_ext <<_ACEOF
5350#line 5350 "configure"
Lionel Ulmerd94475b1999-09-20 18:42:46 +00005351#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005352
Lionel Ulmerd94475b1999-09-20 18:42:46 +00005353/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005354#ifdef __cplusplus
5355extern "C"
5356#endif
Lionel Ulmerd94475b1999-09-20 18:42:46 +00005357/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005358 builtin and then its argument prototype would still apply. */
5359char XF86DGAQueryExtension ();
5360int
5361main ()
5362{
5363XF86DGAQueryExtension ();
5364 ;
5365 return 0;
5366}
5367_ACEOF
5368rm -f conftest.$ac_objext conftest$ac_exeext
5369if { (eval echo "$as_me:5369: \"$ac_link\"") >&5
5370 (eval $ac_link) 2>&5
5371 ac_status=$?
5372 echo "$as_me:5372: \$? = $ac_status" >&5
5373 (exit $ac_status); } &&
5374 { ac_try='test -s conftest$ac_exeext'
5375 { (eval echo "$as_me:5375: \"$ac_try\"") >&5
5376 (eval $ac_try) 2>&5
5377 ac_status=$?
5378 echo "$as_me:5378: \$? = $ac_status" >&5
5379 (exit $ac_status); }; }; then
5380 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00005381else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005382 echo "$as_me: failed program was:" >&5
5383cat conftest.$ac_ext >&5
5384ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00005385fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005386rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5387LIBS=$ac_check_lib_save_LIBS
5388fi
5389echo "$as_me:5389: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
5390echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
5391if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00005392
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005393cat >>confdefs.h <<\EOF
Patrik Stridvall24110281999-02-04 10:09:54 +00005394#define HAVE_LIBXXF86DGA 1
5395EOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00005396
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00005397 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005398
Patrik Stridvall24110281999-02-04 10:09:54 +00005399fi
5400
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00005401fi
Patrik Stridvall24110281999-02-04 10:09:54 +00005402
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00005403else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005404 { echo "$as_me:5404: WARNING: DGA extension not found, Wine will be built without it" >&5
5405echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
5406
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00005407fi
5408done
5409
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005410for ac_header in X11/extensions/xf86vmode.h
Patrik Stridvall24110281999-02-04 10:09:54 +00005411do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005412as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5413echo "$as_me:5413: checking for $ac_header" >&5
5414echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5415if eval "test \"\${$as_ac_Header+set}\" = set"; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00005417else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005418 cat >conftest.$ac_ext <<_ACEOF
5419#line 5419 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00005420#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005421#include <$ac_header>
5422_ACEOF
5423if { (eval echo "$as_me:5423: \"$ac_cpp conftest.$ac_ext\"") >&5
5424 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5425 ac_status=$?
5426 egrep -v '^ *\+' conftest.er1 >conftest.err
5427 rm -f conftest.er1
5428 cat conftest.err >&5
5429 echo "$as_me:5429: \$? = $ac_status" >&5
5430 (exit $ac_status); } >/dev/null; then
5431 if test -s conftest.err; then
5432 ac_cpp_err=$ac_c_preproc_warn_flag
5433 else
5434 ac_cpp_err=
5435 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00005436else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005437 ac_cpp_err=yes
5438fi
5439if test -z "$ac_cpp_err"; then
5440 eval "$as_ac_Header=yes"
5441else
5442 echo "$as_me: failed program was:" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00005443 cat conftest.$ac_ext >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005444 eval "$as_ac_Header=no"
Patrik Stridvall24110281999-02-04 10:09:54 +00005445fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005446rm -f conftest.err conftest.$ac_ext
Patrik Stridvall24110281999-02-04 10:09:54 +00005447fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005448echo "$as_me:5448: result: `eval echo '${'$as_ac_Header'}'`" >&5
5449echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5450if test `eval echo '${'$as_ac_Header'}'` = yes; then
5451 cat >>confdefs.h <<EOF
5452#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Patrik Stridvall24110281999-02-04 10:09:54 +00005453EOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005454 echo "$as_me:5454: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
5455echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
5456if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
5457 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00005458else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005459 ac_check_lib_save_LIBS=$LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00005460LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
5461 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005462cat >conftest.$ac_ext <<_ACEOF
5463#line 5463 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00005464#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005465
Patrik Stridvall24110281999-02-04 10:09:54 +00005466/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005467#ifdef __cplusplus
5468extern "C"
5469#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00005470/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005471 builtin and then its argument prototype would still apply. */
5472char XF86VidModeQueryExtension ();
5473int
5474main ()
5475{
5476XF86VidModeQueryExtension ();
5477 ;
5478 return 0;
5479}
5480_ACEOF
5481rm -f conftest.$ac_objext conftest$ac_exeext
5482if { (eval echo "$as_me:5482: \"$ac_link\"") >&5
5483 (eval $ac_link) 2>&5
5484 ac_status=$?
5485 echo "$as_me:5485: \$? = $ac_status" >&5
5486 (exit $ac_status); } &&
5487 { ac_try='test -s conftest$ac_exeext'
5488 { (eval echo "$as_me:5488: \"$ac_try\"") >&5
5489 (eval $ac_try) 2>&5
5490 ac_status=$?
5491 echo "$as_me:5491: \$? = $ac_status" >&5
5492 (exit $ac_status); }; }; then
5493 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00005494else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005495 echo "$as_me: failed program was:" >&5
5496cat conftest.$ac_ext >&5
5497ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00005498fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005499rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5500LIBS=$ac_check_lib_save_LIBS
5501fi
5502echo "$as_me:5502: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
5503echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
5504if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00005505
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005506cat >>confdefs.h <<\EOF
Patrik Stridvall24110281999-02-04 10:09:54 +00005507#define HAVE_LIBXXF86VM 1
5508EOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00005509
5510 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005511
Patrik Stridvall24110281999-02-04 10:09:54 +00005512fi
5513
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00005514else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005515 { echo "$as_me:5515: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
5516echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
5517
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00005518fi
5519done
Lionel Ulmer5c085701999-02-28 19:48:53 +00005520
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005521for ac_header in X11/extensions/Xvlib.h
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005522do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005523as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5524echo "$as_me:5524: checking for $ac_header" >&5
5525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5526if eval "test \"\${$as_ac_Header+set}\" = set"; then
5527 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005528else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005529 cat >conftest.$ac_ext <<_ACEOF
5530#line 5530 "configure"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005531#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005532#include <$ac_header>
5533_ACEOF
5534if { (eval echo "$as_me:5534: \"$ac_cpp conftest.$ac_ext\"") >&5
5535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5536 ac_status=$?
5537 egrep -v '^ *\+' conftest.er1 >conftest.err
5538 rm -f conftest.er1
5539 cat conftest.err >&5
5540 echo "$as_me:5540: \$? = $ac_status" >&5
5541 (exit $ac_status); } >/dev/null; then
5542 if test -s conftest.err; then
5543 ac_cpp_err=$ac_c_preproc_warn_flag
5544 else
5545 ac_cpp_err=
5546 fi
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005547else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005548 ac_cpp_err=yes
5549fi
5550if test -z "$ac_cpp_err"; then
5551 eval "$as_ac_Header=yes"
5552else
5553 echo "$as_me: failed program was:" >&5
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005554 cat conftest.$ac_ext >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005555 eval "$as_ac_Header=no"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005556fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005557rm -f conftest.err conftest.$ac_ext
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005558fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005559echo "$as_me:5559: result: `eval echo '${'$as_ac_Header'}'`" >&5
5560echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5561if test `eval echo '${'$as_ac_Header'}'` = yes; then
5562 cat >>confdefs.h <<EOF
5563#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005564EOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005565 echo "$as_me:5565: checking for XvShmCreateImage in -lXv" >&5
5566echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
5567if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005569else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005570 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005571LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
5572 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005573cat >conftest.$ac_ext <<_ACEOF
5574#line 5574 "configure"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005575#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005576
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005577/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005578#ifdef __cplusplus
5579extern "C"
5580#endif
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005581/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005582 builtin and then its argument prototype would still apply. */
5583char XvShmCreateImage ();
5584int
5585main ()
5586{
5587XvShmCreateImage ();
5588 ;
5589 return 0;
5590}
5591_ACEOF
5592rm -f conftest.$ac_objext conftest$ac_exeext
5593if { (eval echo "$as_me:5593: \"$ac_link\"") >&5
5594 (eval $ac_link) 2>&5
5595 ac_status=$?
5596 echo "$as_me:5596: \$? = $ac_status" >&5
5597 (exit $ac_status); } &&
5598 { ac_try='test -s conftest$ac_exeext'
5599 { (eval echo "$as_me:5599: \"$ac_try\"") >&5
5600 (eval $ac_try) 2>&5
5601 ac_status=$?
5602 echo "$as_me:5602: \$? = $ac_status" >&5
5603 (exit $ac_status); }; }; then
5604 ac_cv_lib_Xv_XvShmCreateImage=yes
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005605else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005606 echo "$as_me: failed program was:" >&5
5607cat conftest.$ac_ext >&5
5608ac_cv_lib_Xv_XvShmCreateImage=no
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005609fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005610rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5611LIBS=$ac_check_lib_save_LIBS
5612fi
5613echo "$as_me:5613: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
5614echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
5615if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005616
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005617cat >>confdefs.h <<\EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005618#define HAVE_XVIDEO 1
5619EOF
5620
5621 X_PRE_LIBS="$X_PRE_LIBS -lXv"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005622
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005623fi
5624
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005625else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005626 { echo "$as_me:5626: WARNING: XVideo extension not found, Wine will be built without it" >&5
5627echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
5628
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005629fi
5630done
5631
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005632for ac_header in X11/extensions/Xrender.h
Huw D M Daviesff453fc2001-09-14 01:04:25 +00005633do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005634as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5635echo "$as_me:5635: checking for $ac_header" >&5
5636echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5637if eval "test \"\${$as_ac_Header+set}\" = set"; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
Huw D M Daviesff453fc2001-09-14 01:04:25 +00005639else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005640 cat >conftest.$ac_ext <<_ACEOF
5641#line 5641 "configure"
Huw D M Daviesff453fc2001-09-14 01:04:25 +00005642#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005643#include <$ac_header>
5644_ACEOF
5645if { (eval echo "$as_me:5645: \"$ac_cpp conftest.$ac_ext\"") >&5
5646 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5647 ac_status=$?
5648 egrep -v '^ *\+' conftest.er1 >conftest.err
5649 rm -f conftest.er1
5650 cat conftest.err >&5
5651 echo "$as_me:5651: \$? = $ac_status" >&5
5652 (exit $ac_status); } >/dev/null; then
5653 if test -s conftest.err; then
5654 ac_cpp_err=$ac_c_preproc_warn_flag
5655 else
5656 ac_cpp_err=
5657 fi
Huw D M Daviesff453fc2001-09-14 01:04:25 +00005658else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005659 ac_cpp_err=yes
5660fi
5661if test -z "$ac_cpp_err"; then
5662 eval "$as_ac_Header=yes"
5663else
5664 echo "$as_me: failed program was:" >&5
Huw D M Daviesff453fc2001-09-14 01:04:25 +00005665 cat conftest.$ac_ext >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005666 eval "$as_ac_Header=no"
Huw D M Daviesff453fc2001-09-14 01:04:25 +00005667fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005668rm -f conftest.err conftest.$ac_ext
Huw D M Daviesff453fc2001-09-14 01:04:25 +00005669fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005670echo "$as_me:5670: result: `eval echo '${'$as_ac_Header'}'`" >&5
5671echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5672if test `eval echo '${'$as_ac_Header'}'` = yes; then
5673 cat >>confdefs.h <<EOF
5674#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Huw D M Daviesff453fc2001-09-14 01:04:25 +00005675EOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005676 echo "$as_me:5676: checking for XRenderQueryExtension in -lXrender" >&5
5677echo $ECHO_N "checking for XRenderQueryExtension in -lXrender... $ECHO_C" >&6
5678if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
5679 echo $ECHO_N "(cached) $ECHO_C" >&6
Huw D M Daviesff453fc2001-09-14 01:04:25 +00005680else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005681 ac_check_lib_save_LIBS=$LIBS
Huw D M Daviesff453fc2001-09-14 01:04:25 +00005682LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
5683 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005684cat >conftest.$ac_ext <<_ACEOF
5685#line 5685 "configure"
Huw D M Daviesff453fc2001-09-14 01:04:25 +00005686#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005687
Huw D M Daviesff453fc2001-09-14 01:04:25 +00005688/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005689#ifdef __cplusplus
5690extern "C"
5691#endif
Huw D M Daviesff453fc2001-09-14 01:04:25 +00005692/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005693 builtin and then its argument prototype would still apply. */
5694char XRenderQueryExtension ();
5695int
5696main ()
5697{
5698XRenderQueryExtension ();
5699 ;
5700 return 0;
5701}
5702_ACEOF
5703rm -f conftest.$ac_objext conftest$ac_exeext
5704if { (eval echo "$as_me:5704: \"$ac_link\"") >&5
5705 (eval $ac_link) 2>&5
5706 ac_status=$?
5707 echo "$as_me:5707: \$? = $ac_status" >&5
5708 (exit $ac_status); } &&
5709 { ac_try='test -s conftest$ac_exeext'
5710 { (eval echo "$as_me:5710: \"$ac_try\"") >&5
5711 (eval $ac_try) 2>&5
5712 ac_status=$?
5713 echo "$as_me:5713: \$? = $ac_status" >&5
5714 (exit $ac_status); }; }; then
5715 ac_cv_lib_Xrender_XRenderQueryExtension=yes
Huw D M Daviesff453fc2001-09-14 01:04:25 +00005716else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005717 echo "$as_me: failed program was:" >&5
5718cat conftest.$ac_ext >&5
5719ac_cv_lib_Xrender_XRenderQueryExtension=no
Huw D M Daviesff453fc2001-09-14 01:04:25 +00005720fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005721rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5722LIBS=$ac_check_lib_save_LIBS
5723fi
5724echo "$as_me:5724: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
5725echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderQueryExtension" >&6
5726if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
Huw D M Daviesff453fc2001-09-14 01:04:25 +00005727
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005728cat >>confdefs.h <<\EOF
Huw D M Daviesff453fc2001-09-14 01:04:25 +00005729#define HAVE_LIBXRENDER 1
5730EOF
5731
5732 X_PRE_LIBS="$X_PRE_LIBS -lXrender"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005733
Huw D M Daviesff453fc2001-09-14 01:04:25 +00005734fi
5735
Huw D M Daviesff453fc2001-09-14 01:04:25 +00005736else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005737 { echo "$as_me:5737: WARNING: XRender extension not found, Wine will be built without it" >&5
5738echo "$as_me: WARNING: XRender extension not found, Wine will be built without it" >&2;}
5739
Huw D M Daviesff453fc2001-09-14 01:04:25 +00005740fi
5741done
5742
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00005743fi
5744done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005745
5746 if test "x$enable_opengl" != "xno"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00005747 then
Francois Gouget42dcd972002-01-29 17:52:28 +00005748 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00005749 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005750 { { echo "$as_me:5750: error: /usr/X11R6/lib/libGL.a is present on your system.
5751This prevents linking to OpenGL. Delete the file and restart configure." >&5
5752echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
5753This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
5754 { (exit 1); exit 1; }; }
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00005755 fi
5756
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005757for ac_header in GL/gl.h GL/glx.h GL/glext.h
Patrik Stridvall24110281999-02-04 10:09:54 +00005758do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005759as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5760echo "$as_me:5760: checking for $ac_header" >&5
5761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5762if eval "test \"\${$as_ac_Header+set}\" = set"; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00005764else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005765 cat >conftest.$ac_ext <<_ACEOF
5766#line 5766 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00005767#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005768#include <$ac_header>
5769_ACEOF
5770if { (eval echo "$as_me:5770: \"$ac_cpp conftest.$ac_ext\"") >&5
5771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5772 ac_status=$?
5773 egrep -v '^ *\+' conftest.er1 >conftest.err
5774 rm -f conftest.er1
5775 cat conftest.err >&5
5776 echo "$as_me:5776: \$? = $ac_status" >&5
5777 (exit $ac_status); } >/dev/null; then
5778 if test -s conftest.err; then
5779 ac_cpp_err=$ac_c_preproc_warn_flag
5780 else
5781 ac_cpp_err=
5782 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00005783else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005784 ac_cpp_err=yes
5785fi
5786if test -z "$ac_cpp_err"; then
5787 eval "$as_ac_Header=yes"
5788else
5789 echo "$as_me: failed program was:" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00005790 cat conftest.$ac_ext >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005791 eval "$as_ac_Header=no"
Patrik Stridvall24110281999-02-04 10:09:54 +00005792fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005793rm -f conftest.err conftest.$ac_ext
Patrik Stridvall24110281999-02-04 10:09:54 +00005794fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005795echo "$as_me:5795: result: `eval echo '${'$as_ac_Header'}'`" >&5
5796echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5797if test `eval echo '${'$as_ac_Header'}'` = yes; then
5798 cat >>confdefs.h <<EOF
5799#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Patrik Stridvall24110281999-02-04 10:09:54 +00005800EOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005801
Patrik Stridvall24110281999-02-04 10:09:54 +00005802fi
5803done
5804
Marcus Meissner22a969b2000-08-08 20:46:50 +00005805 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00005806 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005807 echo "$as_me:5807: checking for up-to-date OpenGL version" >&5
5808echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
5809if test "${wine_cv_opengl_version_OK+set}" = set; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00005811else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005812 cat >conftest.$ac_ext <<_ACEOF
5813#line 5813 "configure"
Lionel Ulmer5c085701999-02-28 19:48:53 +00005814#include "confdefs.h"
5815#include <GL/gl.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005816int
5817main ()
5818{
Lionel Ulmer5c085701999-02-28 19:48:53 +00005819GLenum test = GL_UNSIGNED_SHORT_5_6_5;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005820 ;
5821 return 0;
5822}
5823_ACEOF
5824rm -f conftest.$ac_objext
5825if { (eval echo "$as_me:5825: \"$ac_compile\"") >&5
5826 (eval $ac_compile) 2>&5
5827 ac_status=$?
5828 echo "$as_me:5828: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try='test -s conftest.$ac_objext'
5831 { (eval echo "$as_me:5831: \"$ac_try\"") >&5
5832 (eval $ac_try) 2>&5
5833 ac_status=$?
5834 echo "$as_me:5834: \$? = $ac_status" >&5
5835 (exit $ac_status); }; }; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00005836 wine_cv_opengl_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00005837else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005838 echo "$as_me: failed program was:" >&5
5839cat conftest.$ac_ext >&5
5840wine_cv_opengl_version_OK="no"
Lionel Ulmer5c085701999-02-28 19:48:53 +00005841
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005842fi
5843rm -f conftest.$ac_objext conftest.$ac_ext
Lionel Ulmer5c085701999-02-28 19:48:53 +00005844
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005845fi
5846echo "$as_me:5846: result: $wine_cv_opengl_version_OK" >&5
5847echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
5848
5849 echo "$as_me:5849: checking for thread-safe OpenGL version" >&5
5850echo $ECHO_N "checking for thread-safe OpenGL version... $ECHO_C" >&6
5851if test "${wine_cv_opengl_version_threadsafe+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00005853else
5854 saved_libs=$LIBS
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00005855 LIBS="$X_LIBS -lGL"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005856 cat >conftest.$ac_ext <<_ACEOF
5857#line 5857 "configure"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00005858#include "confdefs.h"
5859
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005860int
5861main ()
5862{
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00005863pthread_getspecific();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005864 ;
5865 return 0;
5866}
5867_ACEOF
5868rm -f conftest.$ac_objext conftest$ac_exeext
5869if { (eval echo "$as_me:5869: \"$ac_link\"") >&5
5870 (eval $ac_link) 2>&5
5871 ac_status=$?
5872 echo "$as_me:5872: \$? = $ac_status" >&5
5873 (exit $ac_status); } &&
5874 { ac_try='test -s conftest$ac_exeext'
5875 { (eval echo "$as_me:5875: \"$ac_try\"") >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 echo "$as_me:5878: \$? = $ac_status" >&5
5879 (exit $ac_status); }; }; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00005880 wine_cv_opengl_version_threadsafe="yes"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00005881else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005882 echo "$as_me: failed program was:" >&5
5883cat conftest.$ac_ext >&5
5884wine_cv_opengl_version_threadsafe="no"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00005885fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005886rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00005887 LIBS=$saved_libs
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005888
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00005889fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005890echo "$as_me:5890: result: $wine_cv_opengl_version_threadsafe" >&5
5891echo "${ECHO_T}$wine_cv_opengl_version_threadsafe" >&6
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00005892
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005893 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 +00005894 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005895 echo "$as_me:5895: checking for glXCreateContext in -lGL" >&5
5896echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
5897if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00005899else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005900 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner376ec882000-01-05 03:24:52 +00005901LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005902cat >conftest.$ac_ext <<_ACEOF
5903#line 5903 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00005904#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005905
Patrik Stridvall24110281999-02-04 10:09:54 +00005906/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005907#ifdef __cplusplus
5908extern "C"
5909#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00005910/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005911 builtin and then its argument prototype would still apply. */
5912char glXCreateContext ();
5913int
5914main ()
5915{
5916glXCreateContext ();
5917 ;
5918 return 0;
5919}
5920_ACEOF
5921rm -f conftest.$ac_objext conftest$ac_exeext
5922if { (eval echo "$as_me:5922: \"$ac_link\"") >&5
5923 (eval $ac_link) 2>&5
5924 ac_status=$?
5925 echo "$as_me:5925: \$? = $ac_status" >&5
5926 (exit $ac_status); } &&
5927 { ac_try='test -s conftest$ac_exeext'
5928 { (eval echo "$as_me:5928: \"$ac_try\"") >&5
5929 (eval $ac_try) 2>&5
5930 ac_status=$?
5931 echo "$as_me:5931: \$? = $ac_status" >&5
5932 (exit $ac_status); }; }; then
5933 ac_cv_lib_GL_glXCreateContext=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00005934else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005935 echo "$as_me: failed program was:" >&5
5936cat conftest.$ac_ext >&5
5937ac_cv_lib_GL_glXCreateContext=no
Patrik Stridvall24110281999-02-04 10:09:54 +00005938fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005939rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5940LIBS=$ac_check_lib_save_LIBS
Patrik Stridvall24110281999-02-04 10:09:54 +00005941fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005942echo "$as_me:5942: result: $ac_cv_lib_GL_glXCreateContext" >&5
5943echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
5944if test $ac_cv_lib_GL_glXCreateContext = yes; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00005945 X_PRE_LIBS="$X_PRE_LIBS -lGL"
Patrik Stridvall24110281999-02-04 10:09:54 +00005946
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005947fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00005948
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00005949 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00005950 then
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00005951 OPENGLFILES='$(OPENGLFILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005952
5953cat >>confdefs.h <<\EOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00005954#define HAVE_OPENGL 1
5955EOF
5956
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005957 echo "$as_me:5957: checking for glXGetProcAddressARB in -lGL" >&5
5958echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
5959if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00005961else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005962 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00005963LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005964cat >conftest.$ac_ext <<_ACEOF
5965#line 5965 "configure"
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00005966#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005967
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00005968/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005969#ifdef __cplusplus
5970extern "C"
5971#endif
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00005972/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005973 builtin and then its argument prototype would still apply. */
5974char glXGetProcAddressARB ();
5975int
5976main ()
5977{
5978glXGetProcAddressARB ();
5979 ;
5980 return 0;
5981}
5982_ACEOF
5983rm -f conftest.$ac_objext conftest$ac_exeext
5984if { (eval echo "$as_me:5984: \"$ac_link\"") >&5
5985 (eval $ac_link) 2>&5
5986 ac_status=$?
5987 echo "$as_me:5987: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try='test -s conftest$ac_exeext'
5990 { (eval echo "$as_me:5990: \"$ac_try\"") >&5
5991 (eval $ac_try) 2>&5
5992 ac_status=$?
5993 echo "$as_me:5993: \$? = $ac_status" >&5
5994 (exit $ac_status); }; }; then
5995 ac_cv_lib_GL_glXGetProcAddressARB=yes
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00005996else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005997 echo "$as_me: failed program was:" >&5
5998cat conftest.$ac_ext >&5
5999ac_cv_lib_GL_glXGetProcAddressARB=no
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00006000fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006001rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6002LIBS=$ac_check_lib_save_LIBS
6003fi
6004echo "$as_me:6004: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
6005echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
6006if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00006007
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006008cat >>confdefs.h <<\EOF
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00006009#define HAVE_GLX_GETPROCADDRESS 1
6010EOF
6011
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00006012fi
6013
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00006014 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00006015 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006016 echo "$as_me:6016: checking for OpenGL extension functions prototypes" >&5
6017echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
6018if test "${wine_cv_extension_prototypes+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer1434d872000-07-23 14:23:31 +00006020else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006021 cat >conftest.$ac_ext <<_ACEOF
6022#line 6022 "configure"
Lionel Ulmer1434d872000-07-23 14:23:31 +00006023#include "confdefs.h"
6024#include <GL/gl.h>
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00006025 #ifdef HAVE_GL_GLEXT_H
6026 # include <GL/glext.h>
6027 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006028
6029int
6030main ()
6031{
Lionel Ulmer1434d872000-07-23 14:23:31 +00006032PFNGLCOLORTABLEEXTPROC test_proc;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006033 ;
6034 return 0;
6035}
6036_ACEOF
6037rm -f conftest.$ac_objext
6038if { (eval echo "$as_me:6038: \"$ac_compile\"") >&5
6039 (eval $ac_compile) 2>&5
6040 ac_status=$?
6041 echo "$as_me:6041: \$? = $ac_status" >&5
6042 (exit $ac_status); } &&
6043 { ac_try='test -s conftest.$ac_objext'
6044 { (eval echo "$as_me:6044: \"$ac_try\"") >&5
6045 (eval $ac_try) 2>&5
6046 ac_status=$?
6047 echo "$as_me:6047: \$? = $ac_status" >&5
6048 (exit $ac_status); }; }; then
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00006049 wine_cv_extension_prototypes="yes"
Lionel Ulmer1434d872000-07-23 14:23:31 +00006050else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006051 echo "$as_me: failed program was:" >&5
6052cat conftest.$ac_ext >&5
6053wine_cv_extension_prototypes="no"
Lionel Ulmer1434d872000-07-23 14:23:31 +00006054
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006055fi
6056rm -f conftest.$ac_objext conftest.$ac_ext
6057
6058fi
6059echo "$as_me:6059: result: $wine_cv_extension_prototypes" >&5
6060echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00006061 if test "$wine_cv_extension_prototypes" = "yes"
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00006062 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006063
6064cat >>confdefs.h <<\EOF
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00006065#define HAVE_GLEXT_PROTOTYPES 1
6066EOF
6067
6068 fi
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00006069 fi
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00006070
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00006071 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006072 echo "$as_me:6072: checking for gluLookAt in -lGLU" >&5
6073echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
6074if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
6075 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb63ab442001-06-08 19:02:57 +00006076else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006077 ac_check_lib_save_LIBS=$LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00006078LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
6079 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006080cat >conftest.$ac_ext <<_ACEOF
6081#line 6081 "configure"
Marcus Meissnerb63ab442001-06-08 19:02:57 +00006082#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006083
Marcus Meissnerb63ab442001-06-08 19:02:57 +00006084/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006085#ifdef __cplusplus
6086extern "C"
6087#endif
Marcus Meissnerb63ab442001-06-08 19:02:57 +00006088/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006089 builtin and then its argument prototype would still apply. */
6090char gluLookAt ();
6091int
6092main ()
6093{
6094gluLookAt ();
6095 ;
6096 return 0;
6097}
6098_ACEOF
6099rm -f conftest.$ac_objext conftest$ac_exeext
6100if { (eval echo "$as_me:6100: \"$ac_link\"") >&5
6101 (eval $ac_link) 2>&5
6102 ac_status=$?
6103 echo "$as_me:6103: \$? = $ac_status" >&5
6104 (exit $ac_status); } &&
6105 { ac_try='test -s conftest$ac_exeext'
6106 { (eval echo "$as_me:6106: \"$ac_try\"") >&5
6107 (eval $ac_try) 2>&5
6108 ac_status=$?
6109 echo "$as_me:6109: \$? = $ac_status" >&5
6110 (exit $ac_status); }; }; then
6111 ac_cv_lib_GLU_gluLookAt=yes
Marcus Meissnerb63ab442001-06-08 19:02:57 +00006112else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006113 echo "$as_me: failed program was:" >&5
6114cat conftest.$ac_ext >&5
6115ac_cv_lib_GLU_gluLookAt=no
Marcus Meissnerb63ab442001-06-08 19:02:57 +00006116fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006117rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6118LIBS=$ac_check_lib_save_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00006119fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006120echo "$as_me:6120: result: $ac_cv_lib_GLU_gluLookAt" >&5
6121echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
6122if test $ac_cv_lib_GLU_gluLookAt = yes; then
Marcus Meissnerb63ab442001-06-08 19:02:57 +00006123 X_PRE_LIBS="$X_PRE_LIBS -lGLU"
6124 GLU32FILES='$(GLU32FILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006125
Marcus Meissnerb63ab442001-06-08 19:02:57 +00006126fi
6127
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00006128 fi
6129 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00006130 fi
Ove Kaaven1eb593c1999-02-14 09:34:46 +00006131
6132 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvall2941a212000-04-25 20:34:22 +00006133 XFILES='$(XFILES)'
Patrik Stridvallea584721998-11-01 16:22:07 +00006134else
6135 XLIB=""
6136 X_CFLAGS=""
6137 X_LIBS=""
6138fi
Alexandre Julliard902da691995-11-05 14:39:02 +00006139
Alexandre Julliard48957682001-12-26 23:08:31 +00006140CURSESLIBS=""
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006141if test "x$with_curses" != "xno"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00006142then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006143
6144for ac_header in ncurses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00006145do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006146as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6147echo "$as_me:6147: checking for $ac_header" >&5
6148echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6149if eval "test \"\${$as_ac_Header+set}\" = set"; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006151else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006152 cat >conftest.$ac_ext <<_ACEOF
6153#line 6153 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00006154#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006155#include <$ac_header>
6156_ACEOF
6157if { (eval echo "$as_me:6157: \"$ac_cpp conftest.$ac_ext\"") >&5
6158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6159 ac_status=$?
6160 egrep -v '^ *\+' conftest.er1 >conftest.err
6161 rm -f conftest.er1
6162 cat conftest.err >&5
6163 echo "$as_me:6163: \$? = $ac_status" >&5
6164 (exit $ac_status); } >/dev/null; then
6165 if test -s conftest.err; then
6166 ac_cpp_err=$ac_c_preproc_warn_flag
6167 else
6168 ac_cpp_err=
6169 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00006170else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006171 ac_cpp_err=yes
6172fi
6173if test -z "$ac_cpp_err"; then
6174 eval "$as_ac_Header=yes"
6175else
6176 echo "$as_me: failed program was:" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00006177 cat conftest.$ac_ext >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006178 eval "$as_ac_Header=no"
Patrik Stridvall24110281999-02-04 10:09:54 +00006179fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006180rm -f conftest.err conftest.$ac_ext
Patrik Stridvall24110281999-02-04 10:09:54 +00006181fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006182echo "$as_me:6182: result: `eval echo '${'$as_ac_Header'}'`" >&5
6183echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6184if test `eval echo '${'$as_ac_Header'}'` = yes; then
6185 cat >>confdefs.h <<EOF
6186#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Patrik Stridvall24110281999-02-04 10:09:54 +00006187EOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006188 echo "$as_me:6188: checking for waddch in -lncurses" >&5
6189echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
6190if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00006192else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006193 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00006194LIBS="-lncurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006195cat >conftest.$ac_ext <<_ACEOF
6196#line 6196 "configure"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00006197#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006198
Joseph Praneviche884f9c1999-01-03 16:14:34 +00006199/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006200#ifdef __cplusplus
6201extern "C"
6202#endif
Joseph Praneviche884f9c1999-01-03 16:14:34 +00006203/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006204 builtin and then its argument prototype would still apply. */
6205char waddch ();
6206int
6207main ()
6208{
6209waddch ();
6210 ;
6211 return 0;
6212}
6213_ACEOF
6214rm -f conftest.$ac_objext conftest$ac_exeext
6215if { (eval echo "$as_me:6215: \"$ac_link\"") >&5
6216 (eval $ac_link) 2>&5
6217 ac_status=$?
6218 echo "$as_me:6218: \$? = $ac_status" >&5
6219 (exit $ac_status); } &&
6220 { ac_try='test -s conftest$ac_exeext'
6221 { (eval echo "$as_me:6221: \"$ac_try\"") >&5
6222 (eval $ac_try) 2>&5
6223 ac_status=$?
6224 echo "$as_me:6224: \$? = $ac_status" >&5
6225 (exit $ac_status); }; }; then
6226 ac_cv_lib_ncurses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +00006227else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006228 echo "$as_me: failed program was:" >&5
6229cat conftest.$ac_ext >&5
6230ac_cv_lib_ncurses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +00006231fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006232rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6233LIBS=$ac_check_lib_save_LIBS
6234fi
6235echo "$as_me:6235: result: $ac_cv_lib_ncurses_waddch" >&5
6236echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
6237if test $ac_cv_lib_ncurses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00006238
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006239cat >>confdefs.h <<\EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006240#define HAVE_LIBNCURSES 1
Joseph Praneviche884f9c1999-01-03 16:14:34 +00006241EOF
6242
Alexandre Julliard48957682001-12-26 23:08:31 +00006243 CURSESLIBS="-lncurses"
Alexandre Julliard638f1691999-01-17 16:32:32 +00006244else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006245
6246for ac_header in curses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00006247do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006248as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6249echo "$as_me:6249: checking for $ac_header" >&5
6250echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6251if eval "test \"\${$as_ac_Header+set}\" = set"; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006253else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006254 cat >conftest.$ac_ext <<_ACEOF
6255#line 6255 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00006256#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006257#include <$ac_header>
6258_ACEOF
6259if { (eval echo "$as_me:6259: \"$ac_cpp conftest.$ac_ext\"") >&5
6260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6261 ac_status=$?
6262 egrep -v '^ *\+' conftest.er1 >conftest.err
6263 rm -f conftest.er1
6264 cat conftest.err >&5
6265 echo "$as_me:6265: \$? = $ac_status" >&5
6266 (exit $ac_status); } >/dev/null; then
6267 if test -s conftest.err; then
6268 ac_cpp_err=$ac_c_preproc_warn_flag
6269 else
6270 ac_cpp_err=
6271 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00006272else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006273 ac_cpp_err=yes
6274fi
6275if test -z "$ac_cpp_err"; then
6276 eval "$as_ac_Header=yes"
6277else
6278 echo "$as_me: failed program was:" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00006279 cat conftest.$ac_ext >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006280 eval "$as_ac_Header=no"
Patrik Stridvall24110281999-02-04 10:09:54 +00006281fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006282rm -f conftest.err conftest.$ac_ext
Patrik Stridvall24110281999-02-04 10:09:54 +00006283fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006284echo "$as_me:6284: result: `eval echo '${'$as_ac_Header'}'`" >&5
6285echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6286if test `eval echo '${'$as_ac_Header'}'` = yes; then
6287 cat >>confdefs.h <<EOF
6288#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Patrik Stridvall24110281999-02-04 10:09:54 +00006289EOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006290 echo "$as_me:6290: checking for waddch in -lcurses" >&5
6291echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
6292if test "${ac_cv_lib_curses_waddch+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00006294else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006295 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00006296LIBS="-lcurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006297cat >conftest.$ac_ext <<_ACEOF
6298#line 6298 "configure"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00006299#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006300
Joseph Praneviche884f9c1999-01-03 16:14:34 +00006301/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006302#ifdef __cplusplus
6303extern "C"
6304#endif
Joseph Praneviche884f9c1999-01-03 16:14:34 +00006305/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006306 builtin and then its argument prototype would still apply. */
6307char waddch ();
6308int
6309main ()
6310{
6311waddch ();
6312 ;
6313 return 0;
6314}
6315_ACEOF
6316rm -f conftest.$ac_objext conftest$ac_exeext
6317if { (eval echo "$as_me:6317: \"$ac_link\"") >&5
6318 (eval $ac_link) 2>&5
6319 ac_status=$?
6320 echo "$as_me:6320: \$? = $ac_status" >&5
6321 (exit $ac_status); } &&
6322 { ac_try='test -s conftest$ac_exeext'
6323 { (eval echo "$as_me:6323: \"$ac_try\"") >&5
6324 (eval $ac_try) 2>&5
6325 ac_status=$?
6326 echo "$as_me:6326: \$? = $ac_status" >&5
6327 (exit $ac_status); }; }; then
6328 ac_cv_lib_curses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +00006329else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006330 echo "$as_me: failed program was:" >&5
6331cat conftest.$ac_ext >&5
6332ac_cv_lib_curses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +00006333fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006334rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6335LIBS=$ac_check_lib_save_LIBS
6336fi
6337echo "$as_me:6337: result: $ac_cv_lib_curses_waddch" >&5
6338echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
6339if test $ac_cv_lib_curses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00006340
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006341cat >>confdefs.h <<\EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006342#define HAVE_LIBCURSES 1
Joseph Praneviche884f9c1999-01-03 16:14:34 +00006343EOF
6344
Alexandre Julliard48957682001-12-26 23:08:31 +00006345 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00006346fi
6347
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00006348fi
6349done
6350
6351fi
Alexandre Julliard48957682001-12-26 23:08:31 +00006352
Alexandre Julliard48957682001-12-26 23:08:31 +00006353fi
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00006354done
6355
Alexandre Julliard48957682001-12-26 23:08:31 +00006356 saved_libs="$LIBS"
6357 LIBS="$CURSESLIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006358
6359for ac_func in getbkgd resizeterm
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00006360do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006361as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6362echo "$as_me:6362: checking for $ac_func" >&5
6363echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6364if eval "test \"\${$as_ac_var+set}\" = set"; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard638f1691999-01-17 16:32:32 +00006366else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006367 cat >conftest.$ac_ext <<_ACEOF
6368#line 6368 "configure"
Alexandre Julliard638f1691999-01-17 16:32:32 +00006369#include "confdefs.h"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00006370/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006371 which can conflict with char $ac_func (); below. */
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00006372#include <assert.h>
Alexandre Julliard638f1691999-01-17 16:32:32 +00006373/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006374#ifdef __cplusplus
6375extern "C"
6376#endif
Alexandre Julliard638f1691999-01-17 16:32:32 +00006377/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006378 builtin and then its argument prototype would still apply. */
6379char $ac_func ();
6380char (*f) ();
Alexandre Julliard638f1691999-01-17 16:32:32 +00006381
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006382int
6383main ()
6384{
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00006385/* The GNU C library defines this for functions which it implements
6386 to always fail with ENOSYS. Some functions are actually named
6387 something starting with __ and the normal name is an alias. */
6388#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6389choke me
6390#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006391f = $ac_func;
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00006392#endif
6393
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006394 ;
6395 return 0;
6396}
6397_ACEOF
6398rm -f conftest.$ac_objext conftest$ac_exeext
6399if { (eval echo "$as_me:6399: \"$ac_link\"") >&5
6400 (eval $ac_link) 2>&5
6401 ac_status=$?
6402 echo "$as_me:6402: \$? = $ac_status" >&5
6403 (exit $ac_status); } &&
6404 { ac_try='test -s conftest$ac_exeext'
6405 { (eval echo "$as_me:6405: \"$ac_try\"") >&5
6406 (eval $ac_try) 2>&5
6407 ac_status=$?
6408 echo "$as_me:6408: \$? = $ac_status" >&5
6409 (exit $ac_status); }; }; then
6410 eval "$as_ac_var=yes"
Alexandre Julliard638f1691999-01-17 16:32:32 +00006411else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006412 echo "$as_me: failed program was:" >&5
6413cat conftest.$ac_ext >&5
6414eval "$as_ac_var=no"
Alexandre Julliard638f1691999-01-17 16:32:32 +00006415fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006416rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard638f1691999-01-17 16:32:32 +00006417fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006418echo "$as_me:6418: result: `eval echo '${'$as_ac_var'}'`" >&5
6419echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6420if test `eval echo '${'$as_ac_var'}'` = yes; then
6421 cat >>confdefs.h <<EOF
6422#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6423EOF
Alexandre Julliard638f1691999-01-17 16:32:32 +00006424
Alexandre Julliard638f1691999-01-17 16:32:32 +00006425fi
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00006426done
Alexandre Julliard638f1691999-01-17 16:32:32 +00006427
Alexandre Julliard48957682001-12-26 23:08:31 +00006428 LIBS="$saved_libs"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00006429fi
6430
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00006431CUPSLIBS=""
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00006432wine_cv_warn_cups_h=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006433echo "$as_me:6433: checking for cupsGetPPD in -lcups" >&5
6434echo $ECHO_N "checking for cupsGetPPD in -lcups... $ECHO_C" >&6
6435if test "${ac_cv_lib_cups_cupsGetPPD+set}" = set; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00006437else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006438 ac_check_lib_save_LIBS=$LIBS
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00006439LIBS="-lcups $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006440cat >conftest.$ac_ext <<_ACEOF
6441#line 6441 "configure"
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00006442#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006443
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00006444/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006445#ifdef __cplusplus
6446extern "C"
6447#endif
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00006448/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006449 builtin and then its argument prototype would still apply. */
6450char cupsGetPPD ();
6451int
6452main ()
6453{
6454cupsGetPPD ();
6455 ;
6456 return 0;
6457}
6458_ACEOF
6459rm -f conftest.$ac_objext conftest$ac_exeext
6460if { (eval echo "$as_me:6460: \"$ac_link\"") >&5
6461 (eval $ac_link) 2>&5
6462 ac_status=$?
6463 echo "$as_me:6463: \$? = $ac_status" >&5
6464 (exit $ac_status); } &&
6465 { ac_try='test -s conftest$ac_exeext'
6466 { (eval echo "$as_me:6466: \"$ac_try\"") >&5
6467 (eval $ac_try) 2>&5
6468 ac_status=$?
6469 echo "$as_me:6469: \$? = $ac_status" >&5
6470 (exit $ac_status); }; }; then
6471 ac_cv_lib_cups_cupsGetPPD=yes
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00006472else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006473 echo "$as_me: failed program was:" >&5
6474cat conftest.$ac_ext >&5
6475ac_cv_lib_cups_cupsGetPPD=no
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00006476fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006477rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6478LIBS=$ac_check_lib_save_LIBS
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00006479fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006480echo "$as_me:6480: result: $ac_cv_lib_cups_cupsGetPPD" >&5
6481echo "${ECHO_T}$ac_cv_lib_cups_cupsGetPPD" >&6
6482if test $ac_cv_lib_cups_cupsGetPPD = yes; then
6483 echo "$as_me:6483: checking for cups/cups.h" >&5
6484echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
6485if test "${ac_cv_header_cups_cups_h+set}" = set; then
6486 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00006487else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006488 cat >conftest.$ac_ext <<_ACEOF
6489#line 6489 "configure"
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00006490#include "confdefs.h"
6491#include <cups/cups.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006492_ACEOF
6493if { (eval echo "$as_me:6493: \"$ac_cpp conftest.$ac_ext\"") >&5
6494 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6495 ac_status=$?
6496 egrep -v '^ *\+' conftest.er1 >conftest.err
6497 rm -f conftest.er1
6498 cat conftest.err >&5
6499 echo "$as_me:6499: \$? = $ac_status" >&5
6500 (exit $ac_status); } >/dev/null; then
6501 if test -s conftest.err; then
6502 ac_cpp_err=$ac_c_preproc_warn_flag
6503 else
6504 ac_cpp_err=
6505 fi
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00006506else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006507 ac_cpp_err=yes
6508fi
6509if test -z "$ac_cpp_err"; then
6510 ac_cv_header_cups_cups_h=yes
6511else
6512 echo "$as_me: failed program was:" >&5
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00006513 cat conftest.$ac_ext >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006514 ac_cv_header_cups_cups_h=no
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00006515fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006516rm -f conftest.err conftest.$ac_ext
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00006517fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006518echo "$as_me:6518: result: $ac_cv_header_cups_cups_h" >&5
6519echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
6520if test $ac_cv_header_cups_cups_h = yes; then
6521
6522cat >>confdefs.h <<\EOF
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00006523#define HAVE_CUPS 1
6524EOF
6525
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00006526 CUPSLIBS="-lcups"
6527else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006528 wine_cv_warn_cups_h=yes
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00006529fi
6530
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00006531fi
6532
Shi Quan He6b0720f2002-03-21 02:58:39 +00006533# Extract the first word of "sane-config", so it can be a program name with args.
6534set dummy sane-config; ac_word=$2
6535echo "$as_me:6535: checking for $ac_word" >&5
6536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6537if test "${ac_cv_prog_sane_devel+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6539else
6540 if test -n "$sane_devel"; then
6541 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
6542else
6543 ac_save_IFS=$IFS; IFS=$ac_path_separator
6544ac_dummy="$PATH"
6545for ac_dir in $ac_dummy; do
6546 IFS=$ac_save_IFS
6547 test -z "$ac_dir" && ac_dir=.
6548 $as_executable_p "$ac_dir/$ac_word" || continue
6549ac_cv_prog_sane_devel="sane-config"
6550echo "$as_me:6550: found $ac_dir/$ac_word" >&5
6551break
6552done
6553
6554 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
6555fi
6556fi
6557sane_devel=$ac_cv_prog_sane_devel
6558if test -n "$sane_devel"; then
6559 echo "$as_me:6559: result: $sane_devel" >&5
6560echo "${ECHO_T}$sane_devel" >&6
6561else
6562 echo "$as_me:6562: result: no" >&5
6563echo "${ECHO_T}no" >&6
6564fi
6565
6566if test "$sane_devel" = "no"
6567then
6568 SANELIBS=""
6569 SANEINCL=""
6570else
6571 SANELIBS="`$sane_devel --libs`"
6572 SANEINCL="`$sane_devel --cflags`"
6573 ac_save_CPPFLAGS="$CPPFLAGS"
6574 ac_save_LIBS="$LIBS"
6575 CPPFLAGS="$CPPFLAGS $SANEINCL"
6576 LIBS="$LIBS $SANELIBS"
6577 echo "$as_me:6577: checking for sane/sane.h" >&5
6578echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
6579if test "${ac_cv_header_sane_sane_h+set}" = set; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6581else
6582 cat >conftest.$ac_ext <<_ACEOF
6583#line 6583 "configure"
6584#include "confdefs.h"
6585#include <sane/sane.h>
6586_ACEOF
6587if { (eval echo "$as_me:6587: \"$ac_cpp conftest.$ac_ext\"") >&5
6588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6589 ac_status=$?
6590 egrep -v '^ *\+' conftest.er1 >conftest.err
6591 rm -f conftest.er1
6592 cat conftest.err >&5
6593 echo "$as_me:6593: \$? = $ac_status" >&5
6594 (exit $ac_status); } >/dev/null; then
6595 if test -s conftest.err; then
6596 ac_cpp_err=$ac_c_preproc_warn_flag
6597 else
6598 ac_cpp_err=
6599 fi
6600else
6601 ac_cpp_err=yes
6602fi
6603if test -z "$ac_cpp_err"; then
6604 ac_cv_header_sane_sane_h=yes
6605else
6606 echo "$as_me: failed program was:" >&5
6607 cat conftest.$ac_ext >&5
6608 ac_cv_header_sane_sane_h=no
6609fi
6610rm -f conftest.err conftest.$ac_ext
6611fi
6612echo "$as_me:6612: result: $ac_cv_header_sane_sane_h" >&5
6613echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
6614if test $ac_cv_header_sane_sane_h = yes; then
6615
6616 echo "$as_me:6616: checking for sane_open in -lsane" >&5
6617echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
6618if test "${ac_cv_lib_sane_sane_open+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6620else
6621 ac_check_lib_save_LIBS=$LIBS
6622LIBS="-lsane $LIBS"
6623cat >conftest.$ac_ext <<_ACEOF
6624#line 6624 "configure"
6625#include "confdefs.h"
6626
6627/* Override any gcc2 internal prototype to avoid an error. */
6628#ifdef __cplusplus
6629extern "C"
6630#endif
6631/* We use char because int might match the return type of a gcc2
6632 builtin and then its argument prototype would still apply. */
6633char sane_open ();
6634int
6635main ()
6636{
6637sane_open ();
6638 ;
6639 return 0;
6640}
6641_ACEOF
6642rm -f conftest.$ac_objext conftest$ac_exeext
6643if { (eval echo "$as_me:6643: \"$ac_link\"") >&5
6644 (eval $ac_link) 2>&5
6645 ac_status=$?
6646 echo "$as_me:6646: \$? = $ac_status" >&5
6647 (exit $ac_status); } &&
6648 { ac_try='test -s conftest$ac_exeext'
6649 { (eval echo "$as_me:6649: \"$ac_try\"") >&5
6650 (eval $ac_try) 2>&5
6651 ac_status=$?
6652 echo "$as_me:6652: \$? = $ac_status" >&5
6653 (exit $ac_status); }; }; then
6654 ac_cv_lib_sane_sane_open=yes
6655else
6656 echo "$as_me: failed program was:" >&5
6657cat conftest.$ac_ext >&5
6658ac_cv_lib_sane_sane_open=no
6659fi
6660rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6661LIBS=$ac_check_lib_save_LIBS
6662fi
6663echo "$as_me:6663: result: $ac_cv_lib_sane_sane_open" >&5
6664echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
6665if test $ac_cv_lib_sane_sane_open = yes; then
6666
6667cat >>confdefs.h <<\EOF
6668#define HAVE_SANE 1
6669EOF
6670
6671else
6672 SANELIBS=""
6673
6674fi
6675
6676fi
6677
6678 LIBS="$ac_save_LIBS"
6679 CPPFLAGS="$ac_save_CPPFLAGS"
6680fi
6681
6682echo "$as_me:6682: checking for FT_Init_FreeType in -lfreetype" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006683echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
6684if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00006686else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006687 ac_check_lib_save_LIBS=$LIBS
Dmitry Timoshkov8871a112001-11-06 22:26:53 +00006688LIBS="-lfreetype $X_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006689cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00006690#line 6690 "configure"
Ian Pilcher563598d2001-05-16 20:56:05 +00006691#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006692
Ian Pilcher563598d2001-05-16 20:56:05 +00006693/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006694#ifdef __cplusplus
6695extern "C"
6696#endif
Ian Pilcher563598d2001-05-16 20:56:05 +00006697/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006698 builtin and then its argument prototype would still apply. */
6699char FT_Init_FreeType ();
6700int
6701main ()
6702{
6703FT_Init_FreeType ();
6704 ;
6705 return 0;
6706}
6707_ACEOF
6708rm -f conftest.$ac_objext conftest$ac_exeext
Shi Quan He6b0720f2002-03-21 02:58:39 +00006709if { (eval echo "$as_me:6709: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006710 (eval $ac_link) 2>&5
6711 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00006712 echo "$as_me:6712: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006713 (exit $ac_status); } &&
6714 { ac_try='test -s conftest$ac_exeext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00006715 { (eval echo "$as_me:6715: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006716 (eval $ac_try) 2>&5
6717 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00006718 echo "$as_me:6718: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006719 (exit $ac_status); }; }; then
6720 ac_cv_lib_freetype_FT_Init_FreeType=yes
Ian Pilcher563598d2001-05-16 20:56:05 +00006721else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006722 echo "$as_me: failed program was:" >&5
6723cat conftest.$ac_ext >&5
6724ac_cv_lib_freetype_FT_Init_FreeType=no
Ian Pilcher563598d2001-05-16 20:56:05 +00006725fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006726rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6727LIBS=$ac_check_lib_save_LIBS
Ian Pilcher563598d2001-05-16 20:56:05 +00006728fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00006729echo "$as_me:6729: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006730echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
6731if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
Ian Pilcher563598d2001-05-16 20:56:05 +00006732 ft_lib=yes
6733else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006734 ft_lib=no
Ian Pilcher563598d2001-05-16 20:56:05 +00006735fi
6736
6737if test "$ft_lib" = "no"
6738then
6739 FREETYPELIBS=""
6740 FREETYPEINCL=""
6741 wine_cv_msg_freetype=no
6742else
6743 # Extract the first word of "freetype-config", so it can be a program name with args.
6744set dummy freetype-config; ac_word=$2
Shi Quan He6b0720f2002-03-21 02:58:39 +00006745echo "$as_me:6745: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6747if test "${ac_cv_prog_ft_devel+set}" = set; then
6748 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00006749else
6750 if test -n "$ft_devel"; then
6751 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
6752else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006753 ac_save_IFS=$IFS; IFS=$ac_path_separator
6754ac_dummy="$PATH"
6755for ac_dir in $ac_dummy; do
6756 IFS=$ac_save_IFS
6757 test -z "$ac_dir" && ac_dir=.
6758 $as_executable_p "$ac_dir/$ac_word" || continue
6759ac_cv_prog_ft_devel="freetype-config"
Shi Quan He6b0720f2002-03-21 02:58:39 +00006760echo "$as_me:6760: found $ac_dir/$ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006761break
6762done
6763
Ian Pilcher563598d2001-05-16 20:56:05 +00006764 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
6765fi
6766fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006767ft_devel=$ac_cv_prog_ft_devel
Ian Pilcher563598d2001-05-16 20:56:05 +00006768if test -n "$ft_devel"; then
Shi Quan He6b0720f2002-03-21 02:58:39 +00006769 echo "$as_me:6769: result: $ft_devel" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006770echo "${ECHO_T}$ft_devel" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00006771else
Shi Quan He6b0720f2002-03-21 02:58:39 +00006772 echo "$as_me:6772: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006773echo "${ECHO_T}no" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00006774fi
6775
6776 if test "$ft_devel" = "no"
6777 then
Marcus Meissnerd28955d2001-05-31 21:35:15 +00006778 # Extract the first word of "freetype2-config", so it can be a program name with args.
6779set dummy freetype2-config; ac_word=$2
Shi Quan He6b0720f2002-03-21 02:58:39 +00006780echo "$as_me:6780: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6782if test "${ac_cv_prog_ft_devel2+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +00006784else
6785 if test -n "$ft_devel2"; then
6786 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
6787else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006788 ac_save_IFS=$IFS; IFS=$ac_path_separator
6789ac_dummy="$PATH"
6790for ac_dir in $ac_dummy; do
6791 IFS=$ac_save_IFS
6792 test -z "$ac_dir" && ac_dir=.
6793 $as_executable_p "$ac_dir/$ac_word" || continue
6794ac_cv_prog_ft_devel2="freetype2-config"
Shi Quan He6b0720f2002-03-21 02:58:39 +00006795echo "$as_me:6795: found $ac_dir/$ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006796break
6797done
6798
Marcus Meissnerd28955d2001-05-31 21:35:15 +00006799 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
6800fi
6801fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006802ft_devel2=$ac_cv_prog_ft_devel2
Marcus Meissnerd28955d2001-05-31 21:35:15 +00006803if test -n "$ft_devel2"; then
Shi Quan He6b0720f2002-03-21 02:58:39 +00006804 echo "$as_me:6804: result: $ft_devel2" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006805echo "${ECHO_T}$ft_devel2" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +00006806else
Shi Quan He6b0720f2002-03-21 02:58:39 +00006807 echo "$as_me:6807: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006808echo "${ECHO_T}no" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +00006809fi
6810
6811 if test "$ft_devel2" = "freetype2-config"
6812 then
6813 ft_devel=$ft_devel2
6814 fi
6815 fi
6816 if test "$ft_devel" = "no"
6817 then
Ian Pilcher563598d2001-05-16 20:56:05 +00006818 FREETYPELIBS=""
6819 FREETYPEINCL=""
6820 wine_cv_msg_freetype=yes
6821 else
Marcus Meissnerd28955d2001-05-31 21:35:15 +00006822 FREETYPELIBS=`$ft_devel --libs`
6823 FREETYPEINCL=`$ft_devel --cflags`
Ian Pilcher40432fe2001-06-06 21:05:23 +00006824 ac_save_CPPFLAGS="$CPPFLAGS"
6825 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006826
6827for ac_header in freetype/freetype.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +00006828 freetype/ftglyph.h \
6829 freetype/tttables.h \
6830 freetype/ftnames.h \
6831 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +00006832 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +00006833 freetype/ftoutln.h \
6834 freetype/internal/sfnt.h
Ian Pilcher40432fe2001-06-06 21:05:23 +00006835do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006836as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Shi Quan He6b0720f2002-03-21 02:58:39 +00006837echo "$as_me:6837: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006838echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6839if eval "test \"\${$as_ac_Header+set}\" = set"; then
6840 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher40432fe2001-06-06 21:05:23 +00006841else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006842 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00006843#line 6843 "configure"
Ian Pilcher40432fe2001-06-06 21:05:23 +00006844#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006845#include <$ac_header>
6846_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00006847if { (eval echo "$as_me:6847: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6849 ac_status=$?
6850 egrep -v '^ *\+' conftest.er1 >conftest.err
6851 rm -f conftest.er1
6852 cat conftest.err >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00006853 echo "$as_me:6853: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006854 (exit $ac_status); } >/dev/null; then
6855 if test -s conftest.err; then
6856 ac_cpp_err=$ac_c_preproc_warn_flag
6857 else
6858 ac_cpp_err=
6859 fi
Ian Pilcher40432fe2001-06-06 21:05:23 +00006860else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006861 ac_cpp_err=yes
6862fi
6863if test -z "$ac_cpp_err"; then
6864 eval "$as_ac_Header=yes"
6865else
6866 echo "$as_me: failed program was:" >&5
Ian Pilcher40432fe2001-06-06 21:05:23 +00006867 cat conftest.$ac_ext >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006868 eval "$as_ac_Header=no"
Ian Pilcher40432fe2001-06-06 21:05:23 +00006869fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006870rm -f conftest.err conftest.$ac_ext
Ian Pilcher40432fe2001-06-06 21:05:23 +00006871fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00006872echo "$as_me:6872: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006873echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6874if test `eval echo '${'$as_ac_Header'}'` = yes; then
6875 cat >>confdefs.h <<EOF
6876#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Ian Pilcher40432fe2001-06-06 21:05:23 +00006877EOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006878
Ian Pilcher40432fe2001-06-06 21:05:23 +00006879fi
6880done
6881
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006882 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00006883#line 6883 "configure"
Alexandre Julliard18d75732002-01-29 03:02:50 +00006884#include "confdefs.h"
6885#include <ft2build.h>
6886 #include <freetype/fttrigon.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006887_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00006888if { (eval echo "$as_me:6888: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6890 ac_status=$?
6891 egrep -v '^ *\+' conftest.er1 >conftest.err
6892 rm -f conftest.er1
6893 cat conftest.err >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00006894 echo "$as_me:6894: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006895 (exit $ac_status); } >/dev/null; then
6896 if test -s conftest.err; then
6897 ac_cpp_err=$ac_c_preproc_warn_flag
6898 else
6899 ac_cpp_err=
6900 fi
6901else
6902 ac_cpp_err=yes
6903fi
6904if test -z "$ac_cpp_err"; then
6905
6906cat >>confdefs.h <<\EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006907#define HAVE_FREETYPE_FTTRIGON_H 1
6908EOF
6909
Huw D M Daviesc1d38132002-02-08 17:09:50 +00006910 wine_cv_fttrigon=yes
Alexandre Julliard18d75732002-01-29 03:02:50 +00006911else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006912 echo "$as_me: failed program was:" >&5
Alexandre Julliard18d75732002-01-29 03:02:50 +00006913 cat conftest.$ac_ext >&5
Huw D M Daviesc1d38132002-02-08 17:09:50 +00006914 wine_cv_fttrigon=no
Alexandre Julliard18d75732002-01-29 03:02:50 +00006915fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006916rm -f conftest.err conftest.$ac_ext
Ian Pilcher40432fe2001-06-06 21:05:23 +00006917 CPPFLAGS="$ac_save_CPPFLAGS"
Huw D M Daviesc1d38132002-02-08 17:09:50 +00006918 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
Huw D M Davies9b1d3722002-01-29 17:09:28 +00006919 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006920
6921cat >>confdefs.h <<\EOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +00006922#define HAVE_FREETYPE 1
6923EOF
6924
6925 wine_cv_msg_freetype=no
6926 else
6927 FREETYPELIBS=""
6928 FREETYPEINCL=""
6929 wine_cv_msg_freetype=yes
6930 fi
Ian Pilcher563598d2001-05-16 20:56:05 +00006931 fi
6932fi
6933
Shi Quan He6b0720f2002-03-21 02:58:39 +00006934echo "$as_me:6934: checking for parport header/ppdev.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006935echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
6936if test "${ac_cv_c_ppdev+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
Pavel Roskin94d99641998-12-26 11:52:51 +00006938else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006939 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00006940#line 6940 "configure"
Pavel Roskin94d99641998-12-26 11:52:51 +00006941#include "confdefs.h"
Uwe Bonnes6509fa92001-06-26 21:06:07 +00006942#include <linux/ppdev.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006943int
6944main ()
6945{
Uwe Bonnes6509fa92001-06-26 21:06:07 +00006946ioctl (1,PPCLAIM,0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006947 ;
6948 return 0;
6949}
6950_ACEOF
6951rm -f conftest.$ac_objext
Shi Quan He6b0720f2002-03-21 02:58:39 +00006952if { (eval echo "$as_me:6952: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006953 (eval $ac_compile) 2>&5
6954 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00006955 echo "$as_me:6955: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006956 (exit $ac_status); } &&
6957 { ac_try='test -s conftest.$ac_objext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00006958 { (eval echo "$as_me:6958: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006959 (eval $ac_try) 2>&5
6960 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00006961 echo "$as_me:6961: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006962 (exit $ac_status); }; }; then
Uwe Bonnes6509fa92001-06-26 21:06:07 +00006963 ac_cv_c_ppdev="yes"
6964else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006965 echo "$as_me: failed program was:" >&5
6966cat conftest.$ac_ext >&5
6967ac_cv_c_ppdev="no"
Uwe Bonnes6509fa92001-06-26 21:06:07 +00006968fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006969rm -f conftest.$ac_objext conftest.$ac_ext
Uwe Bonnes6509fa92001-06-26 21:06:07 +00006970
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006971fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00006972echo "$as_me:6972: result: $ac_cv_c_ppdev" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006973echo "${ECHO_T}$ac_cv_c_ppdev" >&6
Uwe Bonnes6509fa92001-06-26 21:06:07 +00006974if test "$ac_cv_c_ppdev" = "yes"
6975then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006976
6977cat >>confdefs.h <<\EOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +00006978#define HAVE_PPDEV 1
6979EOF
6980
6981fi
6982
Shi Quan He6b0720f2002-03-21 02:58:39 +00006983echo "$as_me:6983: checking for GNU style IPX support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006984echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
6985if test "${ac_cv_c_ipx_gnu+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
Uwe Bonnes6509fa92001-06-26 21:06:07 +00006987else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006988 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00006989#line 6989 "configure"
Uwe Bonnes6509fa92001-06-26 21:06:07 +00006990#include "confdefs.h"
Pavel Roskin94d99641998-12-26 11:52:51 +00006991#include <sys/socket.h>
6992 #include <netipx/ipx.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006993int
6994main ()
6995{
Pavel Roskin94d99641998-12-26 11:52:51 +00006996((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006997 ;
6998 return 0;
6999}
7000_ACEOF
7001rm -f conftest.$ac_objext
Shi Quan He6b0720f2002-03-21 02:58:39 +00007002if { (eval echo "$as_me:7002: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007003 (eval $ac_compile) 2>&5
7004 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00007005 echo "$as_me:7005: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007006 (exit $ac_status); } &&
7007 { ac_try='test -s conftest.$ac_objext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00007008 { (eval echo "$as_me:7008: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007009 (eval $ac_try) 2>&5
7010 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00007011 echo "$as_me:7011: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007012 (exit $ac_status); }; }; then
Aaron Hopec23872d2000-01-15 23:43:21 +00007013 ac_cv_c_ipx_gnu="yes"
Pavel Roskin94d99641998-12-26 11:52:51 +00007014else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007015 echo "$as_me: failed program was:" >&5
7016cat conftest.$ac_ext >&5
7017ac_cv_c_ipx_gnu="no"
Pavel Roskin94d99641998-12-26 11:52:51 +00007018fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007019rm -f conftest.$ac_objext conftest.$ac_ext
Pavel Roskin94d99641998-12-26 11:52:51 +00007020
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007021fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00007022echo "$as_me:7022: result: $ac_cv_c_ipx_gnu" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007023echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
Aaron Hopec23872d2000-01-15 23:43:21 +00007024if test "$ac_cv_c_ipx_gnu" = "yes"
7025then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007026
7027cat >>confdefs.h <<\EOF
Aaron Hopec23872d2000-01-15 23:43:21 +00007028#define HAVE_IPX_GNU 1
7029EOF
7030
7031fi
Pavel Roskin94d99641998-12-26 11:52:51 +00007032
7033if test "$ac_cv_c_ipx_gnu" = "no"
7034then
Shi Quan He6b0720f2002-03-21 02:58:39 +00007035 echo "$as_me:7035: checking for linux style IPX support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007036echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
7037if test "${ac_cv_c_ipx_linux+set}" = set; then
7038 echo $ECHO_N "(cached) $ECHO_C" >&6
Pavel Roskin94d99641998-12-26 11:52:51 +00007039else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007040 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00007041#line 7041 "configure"
Pavel Roskin94d99641998-12-26 11:52:51 +00007042#include "confdefs.h"
7043#include <sys/socket.h>
7044 #include <asm/types.h>
7045 #include <linux/ipx.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007046int
7047main ()
7048{
Pavel Roskin94d99641998-12-26 11:52:51 +00007049((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007050 ;
7051 return 0;
7052}
7053_ACEOF
7054rm -f conftest.$ac_objext
Shi Quan He6b0720f2002-03-21 02:58:39 +00007055if { (eval echo "$as_me:7055: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007056 (eval $ac_compile) 2>&5
7057 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00007058 echo "$as_me:7058: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007059 (exit $ac_status); } &&
7060 { ac_try='test -s conftest.$ac_objext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00007061 { (eval echo "$as_me:7061: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007062 (eval $ac_try) 2>&5
7063 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00007064 echo "$as_me:7064: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007065 (exit $ac_status); }; }; then
Aaron Hopec23872d2000-01-15 23:43:21 +00007066 ac_cv_c_ipx_linux="yes"
Pavel Roskin94d99641998-12-26 11:52:51 +00007067else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007068 echo "$as_me: failed program was:" >&5
7069cat conftest.$ac_ext >&5
7070ac_cv_c_ipx_linux="no"
Pavel Roskin94d99641998-12-26 11:52:51 +00007071fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007072rm -f conftest.$ac_objext conftest.$ac_ext
Pavel Roskin94d99641998-12-26 11:52:51 +00007073
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007074fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00007075echo "$as_me:7075: result: $ac_cv_c_ipx_linux" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007076echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
Aaron Hopec23872d2000-01-15 23:43:21 +00007077 if test "$ac_cv_c_ipx_linux" = "yes"
7078 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007079
7080cat >>confdefs.h <<\EOF
Aaron Hopec23872d2000-01-15 23:43:21 +00007081#define HAVE_IPX_LINUX 1
7082EOF
7083
7084 fi
Pavel Roskin94d99641998-12-26 11:52:51 +00007085fi
7086
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007087for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00007088do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007089as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Shi Quan He6b0720f2002-03-21 02:58:39 +00007090echo "$as_me:7090: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7092if eval "test \"\${$as_ac_Header+set}\" = set"; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00007094else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007095 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00007096#line 7096 "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00007097#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007098#include <$ac_header>
7099_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00007100if { (eval echo "$as_me:7100: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7102 ac_status=$?
7103 egrep -v '^ *\+' conftest.er1 >conftest.err
7104 rm -f conftest.er1
7105 cat conftest.err >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00007106 echo "$as_me:7106: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007107 (exit $ac_status); } >/dev/null; then
7108 if test -s conftest.err; then
7109 ac_cpp_err=$ac_c_preproc_warn_flag
7110 else
7111 ac_cpp_err=
7112 fi
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00007113else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007114 ac_cpp_err=yes
7115fi
7116if test -z "$ac_cpp_err"; then
7117 eval "$as_ac_Header=yes"
7118else
7119 echo "$as_me: failed program was:" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00007120 cat conftest.$ac_ext >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007121 eval "$as_ac_Header=no"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00007122fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007123rm -f conftest.err conftest.$ac_ext
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00007124fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00007125echo "$as_me:7125: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007126echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7127if test `eval echo '${'$as_ac_Header'}'` = yes; then
7128 cat >>confdefs.h <<EOF
7129#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00007130EOF
Todd Vierlingecc76691998-12-15 17:49:02 +00007131 break
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00007132fi
7133done
7134
Shi Quan He6b0720f2002-03-21 02:58:39 +00007135echo "$as_me:7135: checking for Open Sound System" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007136echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
7137if test "${ac_cv_c_opensoundsystem+set}" = set; then
7138 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00007139else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007140 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00007141#line 7141 "configure"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00007142#include "confdefs.h"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00007143
Todd Vierlingecc76691998-12-15 17:49:02 +00007144 #if defined(HAVE_SYS_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00007145 #include <sys/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00007146 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00007147 #include <machine/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00007148 #elif defined(HAVE_SOUNDCARD_H)
7149 #include <soundcard.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00007150 #endif
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00007151
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007152int
7153main ()
7154{
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00007155
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00007156/* check for one of the Open Sound System specific SNDCTL_ defines */
7157#if !defined(SNDCTL_DSP_STEREO)
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00007158#error No open sound system
7159#endif
7160
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007161 ;
7162 return 0;
7163}
7164_ACEOF
7165rm -f conftest.$ac_objext
Shi Quan He6b0720f2002-03-21 02:58:39 +00007166if { (eval echo "$as_me:7166: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007167 (eval $ac_compile) 2>&5
7168 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00007169 echo "$as_me:7169: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007170 (exit $ac_status); } &&
7171 { ac_try='test -s conftest.$ac_objext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00007172 { (eval echo "$as_me:7172: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007173 (eval $ac_try) 2>&5
7174 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00007175 echo "$as_me:7175: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007176 (exit $ac_status); }; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00007177 ac_cv_c_opensoundsystem="yes"
7178else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007179 echo "$as_me: failed program was:" >&5
7180cat conftest.$ac_ext >&5
7181ac_cv_c_opensoundsystem="no"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00007182fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007183rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00007184fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00007185echo "$as_me:7185: result: $ac_cv_c_opensoundsystem" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007186echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00007187
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00007188if test "$ac_cv_c_opensoundsystem" = "yes"
7189then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007190
7191cat >>confdefs.h <<\EOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00007192#define HAVE_OSS 1
7193EOF
7194
7195fi
7196
Shi Quan He6b0720f2002-03-21 02:58:39 +00007197echo "$as_me:7197: checking for Open Sound System/MIDI interface" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007198echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
7199if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +00007201else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007202 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00007203#line 7203 "configure"
Eric Pouech338d3b21999-05-22 18:52:21 +00007204#include "confdefs.h"
7205
7206 #if defined(HAVE_SYS_SOUNDCARD_H)
7207 #include <sys/soundcard.h>
7208 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
7209 #include <machine/soundcard.h>
7210 #elif defined(HAVE_SOUNDCARD_H)
7211 #include <soundcard.h>
7212 #endif
Eric Pouech338d3b21999-05-22 18:52:21 +00007213
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007214int
7215main ()
7216{
Eric Pouech338d3b21999-05-22 18:52:21 +00007217
7218/* check for one of the Open Sound System specific SNDCTL_SEQ defines */
7219#if !defined(SNDCTL_SEQ_SYNC)
7220#error No open sound system MIDI interface
7221#endif
7222
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007223 ;
7224 return 0;
7225}
7226_ACEOF
7227rm -f conftest.$ac_objext
Shi Quan He6b0720f2002-03-21 02:58:39 +00007228if { (eval echo "$as_me:7228: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007229 (eval $ac_compile) 2>&5
7230 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00007231 echo "$as_me:7231: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007232 (exit $ac_status); } &&
7233 { ac_try='test -s conftest.$ac_objext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00007234 { (eval echo "$as_me:7234: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007235 (eval $ac_try) 2>&5
7236 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00007237 echo "$as_me:7237: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007238 (exit $ac_status); }; }; then
Eric Pouech338d3b21999-05-22 18:52:21 +00007239 ac_cv_c_opensoundsystem_midi="yes"
7240else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007241 echo "$as_me: failed program was:" >&5
7242cat conftest.$ac_ext >&5
7243ac_cv_c_opensoundsystem_midi="no"
Eric Pouech338d3b21999-05-22 18:52:21 +00007244fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007245rm -f conftest.$ac_objext conftest.$ac_ext
Eric Pouech338d3b21999-05-22 18:52:21 +00007246fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00007247echo "$as_me:7247: result: $ac_cv_c_opensoundsystem_midi" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007248echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +00007249
7250if test "$ac_cv_c_opensoundsystem_midi" = "yes"
7251then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007252
7253cat >>confdefs.h <<\EOF
Eric Pouech338d3b21999-05-22 18:52:21 +00007254#define HAVE_OSS_MIDI 1
7255EOF
7256
7257fi
7258
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00007259# Extract the first word of "artsc-config", so it can be a program name with args.
7260set dummy artsc-config; ac_word=$2
Shi Quan He6b0720f2002-03-21 02:58:39 +00007261echo "$as_me:7261: checking for $ac_word" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00007262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7263if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7265else
7266 case $ARTSCCONFIG in
7267 [\\/]* | ?:[\\/]*)
7268 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
7269 ;;
7270 *)
7271 ac_save_IFS=$IFS; IFS=$ac_path_separator
7272ac_dummy="$PATH"
7273for ac_dir in $ac_dummy; do
7274 IFS=$ac_save_IFS
7275 test -z "$ac_dir" && ac_dir=.
7276 if $as_executable_p "$ac_dir/$ac_word"; then
7277 ac_cv_path_ARTSCCONFIG="$ac_dir/$ac_word"
Shi Quan He6b0720f2002-03-21 02:58:39 +00007278 echo "$as_me:7278: found $ac_dir/$ac_word" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00007279 break
7280fi
7281done
7282
7283 ;;
7284esac
7285fi
7286ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
7287
7288if test -n "$ARTSCCONFIG"; then
Shi Quan He6b0720f2002-03-21 02:58:39 +00007289 echo "$as_me:7289: result: $ARTSCCONFIG" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00007290echo "${ECHO_T}$ARTSCCONFIG" >&6
7291else
Shi Quan He6b0720f2002-03-21 02:58:39 +00007292 echo "$as_me:7292: result: no" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00007293echo "${ECHO_T}no" >&6
7294fi
7295
Shi Quan He6b0720f2002-03-21 02:58:39 +00007296echo "$as_me:7296: checking for aRts Sound server" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00007297echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
7298if test "${ac_cv_c_artsserver+set}" = set; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
7300else
7301 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
7302 then
7303 ac_cv_c_artsserver=no
7304 else
7305 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
7306 ARTSC_LIBS=`$ARTSCCONFIG --libs`
7307 ac_cv_c_artsserver=no
7308 save_CFLAGS="$CFLAGS"
7309 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
7310 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00007311#line 7311 "configure"
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00007312#include "confdefs.h"
7313
7314 #include <artsc.h>
7315
7316int
7317main ()
7318{
7319
7320 arts_stream_t stream;
7321
7322 ;
7323 return 0;
7324}
7325_ACEOF
7326rm -f conftest.$ac_objext
Shi Quan He6b0720f2002-03-21 02:58:39 +00007327if { (eval echo "$as_me:7327: \"$ac_compile\"") >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00007328 (eval $ac_compile) 2>&5
7329 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00007330 echo "$as_me:7330: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00007331 (exit $ac_status); } &&
7332 { ac_try='test -s conftest.$ac_objext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00007333 { (eval echo "$as_me:7333: \"$ac_try\"") >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00007334 (eval $ac_try) 2>&5
7335 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00007336 echo "$as_me:7336: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00007337 (exit $ac_status); }; }; then
7338
7339 ac_cv_c_artsserver=yes
7340
7341else
7342 echo "$as_me: failed program was:" >&5
7343cat conftest.$ac_ext >&5
7344fi
7345rm -f conftest.$ac_objext conftest.$ac_ext
7346 CFLAGS="$save_CFLAGS"
7347 fi
7348fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00007349echo "$as_me:7349: result: $ac_cv_c_artsserver" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00007350echo "${ECHO_T}$ac_cv_c_artsserver" >&6
7351
7352if test "$ac_cv_c_artsserver" = "yes"
7353then
7354 ARTSLIBS=$ARTSC_LIBS
7355
7356 ARTSINCL=$ARTSC_CFLAGS
7357
7358cat >>confdefs.h <<\EOF
7359#define HAVE_ARTS 1
7360EOF
7361
7362fi
7363
Shi Quan He6b0720f2002-03-21 02:58:39 +00007364echo "$as_me:7364: checking whether mmap64 works defined as mmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007365echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
7366if test "${ac_cv_mmap64_works+set}" = set; then
7367 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00007368else
7369 if test "$cross_compiling" = yes; then
7370 ac_cv_mmap64_works="no"
7371else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007372 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00007373#line 7373 "configure"
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00007374#include "confdefs.h"
7375
7376 #define _FILE_OFFSET_BITS 64
7377 #include <stdio.h>
7378 #include <unistd.h>
7379 #include <fcntl.h>
7380 #include <sys/mman.h>
7381 #include <errno.h>
7382
7383 int main(int argc,char **argv) {
7384 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
7385 if (fd == -1) exit(1);
7386
7387 unlink("conftest.map");
7388
7389 write(fd,"test",4);
7390
7391 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
7392 (errno == EINVAL)
7393 ) {
7394 exit(1);
7395 }
7396 close(fd);
7397 fprintf(stderr,"success!\n");
7398 exit(0);
7399 }
7400
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007401_ACEOF
7402rm -f conftest$ac_exeext
Shi Quan He6b0720f2002-03-21 02:58:39 +00007403if { (eval echo "$as_me:7403: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007404 (eval $ac_link) 2>&5
7405 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00007406 echo "$as_me:7406: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00007408 { (eval echo "$as_me:7408: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007409 (eval $ac_try) 2>&5
7410 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00007411 echo "$as_me:7411: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007412 (exit $ac_status); }; }; then
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00007413 ac_cv_mmap64_works="yes"
7414else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007415 echo "$as_me: program exited with status $ac_status" >&5
7416echo "$as_me: failed program was:" >&5
7417cat conftest.$ac_ext >&5
7418ac_cv_mmap64_works="no"
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00007419fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007420rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00007421fi
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00007422fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00007423echo "$as_me:7423: result: $ac_cv_mmap64_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007424echo "${ECHO_T}$ac_cv_mmap64_works" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00007425
7426if test "$ac_cv_mmap64_works" = "yes"
7427then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007428
7429cat >>confdefs.h <<\EOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00007430#define _FILE_OFFSET_BITS 64
7431EOF
7432
7433fi
7434
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00007435if test "x${GCC}" = "xyes"
7436then
7437 CFLAGS="$CFLAGS -Wall"
Shi Quan He6b0720f2002-03-21 02:58:39 +00007438 echo "$as_me:7438: checking for gcc strength-reduce bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007439echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
7440if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00007442else
7443 if test "$cross_compiling" = yes; then
7444 ac_cv_c_gcc_strength_bug="yes"
7445else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007446 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00007447#line 7447 "configure"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00007448#include "confdefs.h"
7449
Eric Pouech5aee80f2000-11-11 00:31:39 +00007450int L[4] = {0,1,2,3};
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00007451int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +00007452 static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00007453 unsigned int B = 3;
7454 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +00007455 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +00007456 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
7457 L[i] = 4;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007458
Eric Pouech5aee80f2000-11-11 00:31:39 +00007459 exit( Array[1] != -2 || L[2] != 3);
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00007460}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007461_ACEOF
7462rm -f conftest$ac_exeext
Shi Quan He6b0720f2002-03-21 02:58:39 +00007463if { (eval echo "$as_me:7463: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007464 (eval $ac_link) 2>&5
7465 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00007466 echo "$as_me:7466: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00007468 { (eval echo "$as_me:7468: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007469 (eval $ac_try) 2>&5
7470 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00007471 echo "$as_me:7471: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007472 (exit $ac_status); }; }; then
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00007473 ac_cv_c_gcc_strength_bug="no"
7474else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007475 echo "$as_me: program exited with status $ac_status" >&5
7476echo "$as_me: failed program was:" >&5
7477cat conftest.$ac_ext >&5
7478ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00007479fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007480rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00007481fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00007482fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00007483echo "$as_me:7483: result: $ac_cv_c_gcc_strength_bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007484echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00007485 if test "$ac_cv_c_gcc_strength_bug" = "yes"
7486 then
7487 CFLAGS="$CFLAGS -fno-strength-reduce"
7488 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00007489
Shi Quan He6b0720f2002-03-21 02:58:39 +00007490 echo "$as_me:7490: checking for gcc -mpreferred-stack-boundary=2 support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007491echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
7492if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00007494else
7495 saved_cflags=$CFLAGS
7496 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007497 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00007498#line 7498 "configure"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00007499#include "confdefs.h"
7500
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007501int
7502main ()
7503{
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00007504return 0
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007505 ;
7506 return 0;
7507}
7508_ACEOF
7509rm -f conftest.$ac_objext
Shi Quan He6b0720f2002-03-21 02:58:39 +00007510if { (eval echo "$as_me:7510: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007511 (eval $ac_compile) 2>&5
7512 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00007513 echo "$as_me:7513: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007514 (exit $ac_status); } &&
7515 { ac_try='test -s conftest.$ac_objext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00007516 { (eval echo "$as_me:7516: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007517 (eval $ac_try) 2>&5
7518 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00007519 echo "$as_me:7519: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007520 (exit $ac_status); }; }; then
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00007521 ac_cv_c_gcc_stack_boundary="yes"
7522else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007523 echo "$as_me: failed program was:" >&5
7524cat conftest.$ac_ext >&5
7525ac_cv_c_gcc_stack_boundary="no"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00007526fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007527rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00007528 CFLAGS=$saved_cflags
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00007529
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007530fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00007531echo "$as_me:7531: result: $ac_cv_c_gcc_stack_boundary" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007532echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00007533 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
7534 then
7535 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
7536 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00007537fi
7538
Shi Quan He6b0720f2002-03-21 02:58:39 +00007539echo "$as_me:7539: checking whether .type must sit inside a .def directive" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007540echo $ECHO_N "checking whether .type must sit inside a .def directive... $ECHO_C" >&6
7541if test "${ac_cv_c_type_in_def+set}" = set; then
7542 echo $ECHO_N "(cached) $ECHO_C" >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00007543else
7544 saved_libs=$LIBS
7545LIBS="conftest_asm.s $LIBS"
7546cat > conftest_asm.s <<EOF
7547 .globl _ac_test
7548 .def _ac_test; .scl 2; .type 32; .endef
7549_ac_test:
7550 .long 0
7551EOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007552cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00007553#line 7553 "configure"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00007554#include "confdefs.h"
7555
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007556int
7557main ()
7558{
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00007559
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007560 ;
7561 return 0;
7562}
7563_ACEOF
7564rm -f conftest.$ac_objext conftest$ac_exeext
Shi Quan He6b0720f2002-03-21 02:58:39 +00007565if { (eval echo "$as_me:7565: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007566 (eval $ac_link) 2>&5
7567 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00007568 echo "$as_me:7568: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007569 (exit $ac_status); } &&
7570 { ac_try='test -s conftest$ac_exeext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00007571 { (eval echo "$as_me:7571: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007572 (eval $ac_try) 2>&5
7573 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00007574 echo "$as_me:7574: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007575 (exit $ac_status); }; }; then
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00007576 ac_cv_c_type_in_def="yes"
7577else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007578 echo "$as_me: failed program was:" >&5
7579cat conftest.$ac_ext >&5
7580ac_cv_c_type_in_def="no"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00007581fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007582rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00007583LIBS=$saved_libs
7584fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00007585echo "$as_me:7585: result: $ac_cv_c_type_in_def" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007586echo "${ECHO_T}$ac_cv_c_type_in_def" >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00007587if test "$ac_cv_c_type_in_def" = "yes"
7588then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007589
7590cat >>confdefs.h <<\EOF
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00007591#define NEED_TYPE_IN_DEF 1
7592EOF
7593
7594fi
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00007595
Shi Quan He6b0720f2002-03-21 02:58:39 +00007596echo "$as_me:7596: checking whether external symbols need an underscore prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007597echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
7598if test "${ac_cv_c_extern_prefix+set}" = set; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00007600else
7601 saved_libs=$LIBS
7602LIBS="conftest_asm.s $LIBS"
7603cat > conftest_asm.s <<EOF
7604 .globl _ac_test
7605_ac_test:
7606 .long 0
7607EOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007608cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00007609#line 7609 "configure"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00007610#include "confdefs.h"
7611extern int ac_test;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007612int
7613main ()
7614{
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00007615if (ac_test) return 1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007616 ;
7617 return 0;
7618}
7619_ACEOF
7620rm -f conftest.$ac_objext conftest$ac_exeext
Shi Quan He6b0720f2002-03-21 02:58:39 +00007621if { (eval echo "$as_me:7621: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007622 (eval $ac_link) 2>&5
7623 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00007624 echo "$as_me:7624: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007625 (exit $ac_status); } &&
7626 { ac_try='test -s conftest$ac_exeext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00007627 { (eval echo "$as_me:7627: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007628 (eval $ac_try) 2>&5
7629 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00007630 echo "$as_me:7630: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007631 (exit $ac_status); }; }; then
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00007632 ac_cv_c_extern_prefix="yes"
7633else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007634 echo "$as_me: failed program was:" >&5
7635cat conftest.$ac_ext >&5
7636ac_cv_c_extern_prefix="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00007637fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007638rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00007639LIBS=$saved_libs
7640fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00007641echo "$as_me:7641: result: $ac_cv_c_extern_prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007642echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00007643if test "$ac_cv_c_extern_prefix" = "yes"
7644then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007645
7646cat >>confdefs.h <<\EOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00007647#define NEED_UNDERSCORE_PREFIX 1
7648EOF
7649
7650fi
7651
Shi Quan He6b0720f2002-03-21 02:58:39 +00007652echo "$as_me:7652: checking whether stdcall symbols need to be decorated" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007653echo $ECHO_N "checking whether stdcall symbols need to be decorated... $ECHO_C" >&6
7654if test "${ac_cv_c_stdcall_decoration+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00007656else
7657 saved_libs=$LIBS
7658LIBS="conftest_asm.s $LIBS"
7659if test "$ac_cv_c_extern_prefix" = "yes"
7660then
7661cat > conftest_asm.s <<EOF
7662 .globl _ac_test@0
7663_ac_test@0:
7664EOF
7665else
7666cat > conftest_asm.s <<EOF
7667 .globl ac_test@0
7668ac_test@0:
7669EOF
7670fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007671cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00007672#line 7672 "configure"
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00007673#include "confdefs.h"
7674extern void __attribute__((__stdcall__)) ac_test(void);
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007675int
7676main ()
7677{
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00007678ac_test(); return 0
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007679 ;
7680 return 0;
7681}
7682_ACEOF
7683rm -f conftest.$ac_objext conftest$ac_exeext
Shi Quan He6b0720f2002-03-21 02:58:39 +00007684if { (eval echo "$as_me:7684: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007685 (eval $ac_link) 2>&5
7686 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00007687 echo "$as_me:7687: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007688 (exit $ac_status); } &&
7689 { ac_try='test -s conftest$ac_exeext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00007690 { (eval echo "$as_me:7690: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007691 (eval $ac_try) 2>&5
7692 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00007693 echo "$as_me:7693: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007694 (exit $ac_status); }; }; then
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00007695 ac_cv_c_stdcall_decoration="yes"
7696else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007697 echo "$as_me: failed program was:" >&5
7698cat conftest.$ac_ext >&5
7699ac_cv_c_stdcall_decoration="no"
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00007700fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007701rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00007702LIBS=$saved_libs
7703fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00007704echo "$as_me:7704: result: $ac_cv_c_stdcall_decoration" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007705echo "${ECHO_T}$ac_cv_c_stdcall_decoration" >&6
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00007706if test "$ac_cv_c_stdcall_decoration" = "yes"
7707then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007708
7709cat >>confdefs.h <<\EOF
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00007710#define NEED_STDCALL_DECORATION 1
7711EOF
7712
7713fi
7714
Shi Quan He6b0720f2002-03-21 02:58:39 +00007715echo "$as_me:7715: checking whether assembler accepts .string" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007716echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
7717if test "${ac_cv_c_asm_string+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00007719else
7720 saved_libs=$LIBS
7721LIBS="conftest_asm.s $LIBS"
7722cat > conftest_asm.s <<EOF
7723 .string "test"
7724EOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007725cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00007726#line 7726 "configure"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00007727#include "confdefs.h"
7728
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007729int
7730main ()
7731{
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00007732
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007733 ;
7734 return 0;
7735}
7736_ACEOF
7737rm -f conftest.$ac_objext conftest$ac_exeext
Shi Quan He6b0720f2002-03-21 02:58:39 +00007738if { (eval echo "$as_me:7738: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007739 (eval $ac_link) 2>&5
7740 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00007741 echo "$as_me:7741: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007742 (exit $ac_status); } &&
7743 { ac_try='test -s conftest$ac_exeext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00007744 { (eval echo "$as_me:7744: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007745 (eval $ac_try) 2>&5
7746 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00007747 echo "$as_me:7747: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007748 (exit $ac_status); }; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00007749 ac_cv_c_asm_string="yes"
7750else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007751 echo "$as_me: failed program was:" >&5
7752cat conftest.$ac_ext >&5
7753ac_cv_c_asm_string="no"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00007754fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007755rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00007756LIBS=$saved_libs
7757fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00007758echo "$as_me:7758: result: $ac_cv_c_asm_string" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007759echo "${ECHO_T}$ac_cv_c_asm_string" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00007760if test "$ac_cv_c_asm_string" = "yes"
7761then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007762
7763cat >>confdefs.h <<\EOF
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00007764#define HAVE_ASM_STRING 1
7765EOF
7766
7767fi
7768
Todd Vierling4b992b01998-12-15 15:26:27 +00007769LDSHARED=""
Alexandre Julliard4354cda2000-11-09 20:27:45 +00007770LDDLLFLAGS=""
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00007771if test "$LIBEXT" = "so"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007772then
Shi Quan He6b0720f2002-03-21 02:58:39 +00007773 echo "$as_me:7773: checking whether we can build a GNU style ELF dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007774echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
7775if test "${ac_cv_c_dll_gnuelf+set}" = set; then
7776 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007777else
7778 saved_cflags=$CFLAGS
Alexandre Julliard4354cda2000-11-09 20:27:45 +00007779 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007780 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00007781#line 7781 "configure"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007782#include "confdefs.h"
7783
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007784int
7785main ()
7786{
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007787return 1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007788 ;
7789 return 0;
7790}
7791_ACEOF
7792rm -f conftest.$ac_objext conftest$ac_exeext
Shi Quan He6b0720f2002-03-21 02:58:39 +00007793if { (eval echo "$as_me:7793: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007794 (eval $ac_link) 2>&5
7795 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00007796 echo "$as_me:7796: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007797 (exit $ac_status); } &&
7798 { ac_try='test -s conftest$ac_exeext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00007799 { (eval echo "$as_me:7799: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007800 (eval $ac_try) 2>&5
7801 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00007802 echo "$as_me:7802: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007803 (exit $ac_status); }; }; then
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +00007804 ac_cv_c_dll_gnuelf="yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007805else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007806 echo "$as_me: failed program was:" >&5
7807cat conftest.$ac_ext >&5
7808ac_cv_c_dll_gnuelf="no"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007809fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007810rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007811 CFLAGS=$saved_cflags
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007812
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007813fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00007814echo "$as_me:7814: result: $ac_cv_c_dll_gnuelf" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007815echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +00007816 if test "$ac_cv_c_dll_gnuelf" = "yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007817 then
Jeremy Whitec7b4ed72001-07-14 00:49:50 +00007818 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
Alexandre Julliard4354cda2000-11-09 20:27:45 +00007819 LDDLLFLAGS="-Wl,-Bsymbolic"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007820 else
Shi Quan He6b0720f2002-03-21 02:58:39 +00007821 echo "$as_me:7821: checking whether we can build a UnixWare (Solaris) dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007822echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
7823if test "${ac_cv_c_dll_unixware+set}" = set; then
7824 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierling4b992b01998-12-15 15:26:27 +00007825else
7826 saved_cflags=$CFLAGS
Alexandre Julliard4354cda2000-11-09 20:27:45 +00007827 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007828 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00007829#line 7829 "configure"
Todd Vierling4b992b01998-12-15 15:26:27 +00007830#include "confdefs.h"
7831
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007832int
7833main ()
7834{
Todd Vierling4b992b01998-12-15 15:26:27 +00007835return 1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007836 ;
7837 return 0;
7838}
7839_ACEOF
7840rm -f conftest.$ac_objext conftest$ac_exeext
Shi Quan He6b0720f2002-03-21 02:58:39 +00007841if { (eval echo "$as_me:7841: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007842 (eval $ac_link) 2>&5
7843 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00007844 echo "$as_me:7844: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007845 (exit $ac_status); } &&
7846 { ac_try='test -s conftest$ac_exeext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00007847 { (eval echo "$as_me:7847: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007848 (eval $ac_try) 2>&5
7849 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00007850 echo "$as_me:7850: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007851 (exit $ac_status); }; }; then
Ron Recorde977d6c1999-09-05 12:32:05 +00007852 ac_cv_c_dll_unixware="yes"
7853else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007854 echo "$as_me: failed program was:" >&5
7855cat conftest.$ac_ext >&5
7856ac_cv_c_dll_unixware="no"
Ron Recorde977d6c1999-09-05 12:32:05 +00007857fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007858rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Ron Recorde977d6c1999-09-05 12:32:05 +00007859 CFLAGS=$saved_cflags
Ron Recorde977d6c1999-09-05 12:32:05 +00007860
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007861fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00007862echo "$as_me:7862: result: $ac_cv_c_dll_unixware" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007863echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
Ron Recorde977d6c1999-09-05 12:32:05 +00007864 if test "$ac_cv_c_dll_unixware" = "yes"
7865 then
Jeremy Whitec7b4ed72001-07-14 00:49:50 +00007866 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
Alexandre Julliard4354cda2000-11-09 20:27:45 +00007867 LDDLLFLAGS="-Wl,-B,symbolic"
Todd Vierling4b992b01998-12-15 15:26:27 +00007868 fi
7869 fi
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +00007870 if test "$ac_cv_c_dll_gnuelf" = "no" -a "$ac_cv_c_dll_unixware" = "no"
Todd Vierling4b992b01998-12-15 15:26:27 +00007871 then
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00007872 LIBEXT="a"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007873 # Extract the first word of "dllwrap", so it can be a program name with args.
7874set dummy dllwrap; ac_word=$2
Shi Quan He6b0720f2002-03-21 02:58:39 +00007875echo "$as_me:7875: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7877if test "${ac_cv_prog_DLLWRAP+set}" = set; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7879else
7880 if test -n "$DLLWRAP"; then
7881 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
7882else
7883 ac_save_IFS=$IFS; IFS=$ac_path_separator
7884ac_dummy="$PATH"
7885for ac_dir in $ac_dummy; do
7886 IFS=$ac_save_IFS
7887 test -z "$ac_dir" && ac_dir=.
7888 $as_executable_p "$ac_dir/$ac_word" || continue
7889ac_cv_prog_DLLWRAP="dllwrap"
Shi Quan He6b0720f2002-03-21 02:58:39 +00007890echo "$as_me:7890: found $ac_dir/$ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007891break
7892done
7893
7894 test -z "$ac_cv_prog_DLLWRAP" && ac_cv_prog_DLLWRAP="false"
7895fi
7896fi
7897DLLWRAP=$ac_cv_prog_DLLWRAP
7898if test -n "$DLLWRAP"; then
Shi Quan He6b0720f2002-03-21 02:58:39 +00007899 echo "$as_me:7899: result: $DLLWRAP" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007900echo "${ECHO_T}$DLLWRAP" >&6
7901else
Shi Quan He6b0720f2002-03-21 02:58:39 +00007902 echo "$as_me:7902: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007903echo "${ECHO_T}no" >&6
7904fi
7905
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00007906 if test "$DLLWRAP" = "dllwrap"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007907 case $host_os in
7908 *cygwin*)
7909 LIBEXT="dll"
7910 ;;
7911 esac
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00007912 fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007913 fi
7914fi
7915
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00007916if test "$LIBEXT" = "a"; then
Shi Quan He6b0720f2002-03-21 02:58:39 +00007917 { { echo "$as_me:7917: error: could not find a way to build shared libraries.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007918It is currently not possible to build Wine without shared library
7919(.so) support to allow transparent switch between .so and .dll files.
7920If you are using Linux, you will need a newer binutils.
7921" >&5
7922echo "$as_me: error: could not find a way to build shared libraries.
7923It is currently not possible to build Wine without shared library
7924(.so) support to allow transparent switch between .so and .dll files.
7925If you are using Linux, you will need a newer binutils.
7926" >&2;}
7927 { (exit 1); exit 1; }; }
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00007928fi
7929
Alexandre Julliard0adad952000-01-26 01:45:58 +00007930DLLFLAGS=""
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00007931LDPATH=""
Alexandre Julliard0adad952000-01-26 01:45:58 +00007932
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00007933if test "$LIBEXT" = "so"; then
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00007934 DLLFLAGS="-fPIC"
Alexandre Julliardc1bfca02002-03-20 22:19:06 +00007935 DLLEXT=".so"
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00007936 LDPATH="LD_LIBRARY_PATH=\"\$(TOPOBJDIR)/unicode:\$\$LD_LIBRARY_PATH\""
7937elif test "$LIBEXT" = "dll"; then
7938 #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME
Alexandre Julliardc1bfca02002-03-20 22:19:06 +00007939 DLLEXT=""
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00007940 LDPATH="PATH=\"\$(TOPOBJDIR)/unicode:\$\$PATH\""
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00007941fi
Alexandre Julliard0adad952000-01-26 01:45:58 +00007942
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007943wine_cv_libc_reentrant=no
Alexandre Julliard0adad952000-01-26 01:45:58 +00007944
Shi Quan He6b0720f2002-03-21 02:58:39 +00007945 echo "$as_me:7945: checking for reentrant libc: __errno_location" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007946echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
7947if test "${wine_cv_libc_r___errno_location+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007949else
7950 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007951 wine_cv_libc_r___errno_location=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007952else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007953 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00007954#line 7954 "configure"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007955#include "confdefs.h"
7956int myerrno = 0;
7957char buf[256];
7958int *__errno_location(){return &myerrno;}
7959main(){connect(0,buf,255); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007960_ACEOF
7961rm -f conftest$ac_exeext
Shi Quan He6b0720f2002-03-21 02:58:39 +00007962if { (eval echo "$as_me:7962: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007963 (eval $ac_link) 2>&5
7964 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00007965 echo "$as_me:7965: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00007967 { (eval echo "$as_me:7967: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007968 (eval $ac_try) 2>&5
7969 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00007970 echo "$as_me:7970: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007971 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +00007972 wine_cv_libc_r___errno_location=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007973else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007974 echo "$as_me: program exited with status $ac_status" >&5
7975echo "$as_me: failed program was:" >&5
7976cat conftest.$ac_ext >&5
7977wine_cv_libc_r___errno_location=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007978fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007979rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007980fi
Marcus Meissnerc2606381999-04-11 15:20:29 +00007981
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007982fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00007983echo "$as_me:7983: result: $wine_cv_libc_r___errno_location" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007984echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
Alexandre Julliard598412e2001-01-17 20:22:22 +00007985if test "$wine_cv_libc_r___errno_location" = "yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007986then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007987 wine_cv_libc_reentrant=__errno_location
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007988fi
Alexandre Julliard598412e2001-01-17 20:22:22 +00007989
Shi Quan He6b0720f2002-03-21 02:58:39 +00007990 echo "$as_me:7990: checking for reentrant libc: __error" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007991echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
7992if test "${wine_cv_libc_r___error+set}" = set; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007994else
7995 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007996 wine_cv_libc_r___error=yes
Marcus Meissnerc2606381999-04-11 15:20:29 +00007997else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007998 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00007999#line 7999 "configure"
Marcus Meissnerc2606381999-04-11 15:20:29 +00008000#include "confdefs.h"
8001int myerrno = 0;
8002char buf[256];
8003int *__error(){return &myerrno;}
8004main(){connect(0,buf,255); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008005_ACEOF
8006rm -f conftest$ac_exeext
Shi Quan He6b0720f2002-03-21 02:58:39 +00008007if { (eval echo "$as_me:8007: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008008 (eval $ac_link) 2>&5
8009 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00008010 echo "$as_me:8010: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00008012 { (eval echo "$as_me:8012: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008013 (eval $ac_try) 2>&5
8014 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00008015 echo "$as_me:8015: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008016 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +00008017 wine_cv_libc_r___error=yes
Marcus Meissnerc2606381999-04-11 15:20:29 +00008018else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008019 echo "$as_me: program exited with status $ac_status" >&5
8020echo "$as_me: failed program was:" >&5
8021cat conftest.$ac_ext >&5
8022wine_cv_libc_r___error=no
Marcus Meissnerc2606381999-04-11 15:20:29 +00008023fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008024rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Marcus Meissnerc2606381999-04-11 15:20:29 +00008025fi
8026
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00008027fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00008028echo "$as_me:8028: result: $wine_cv_libc_r___error" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008029echo "${ECHO_T}$wine_cv_libc_r___error" >&6
Alexandre Julliard598412e2001-01-17 20:22:22 +00008030if test "$wine_cv_libc_r___error" = "yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00008031then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008032 wine_cv_libc_reentrant=__error
Ulrich Weigand715a55e1999-04-18 13:19:56 +00008033fi
Alexandre Julliard598412e2001-01-17 20:22:22 +00008034
Shi Quan He6b0720f2002-03-21 02:58:39 +00008035 echo "$as_me:8035: checking for reentrant libc: ___errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008036echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
8037if test "${wine_cv_libc_r____errno+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00008039else
8040 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008041 wine_cv_libc_r____errno=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +00008042else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008043 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00008044#line 8044 "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00008045#include "confdefs.h"
8046int myerrno = 0;
8047char buf[256];
8048int *___errno(){return &myerrno;}
8049main(){connect(0,buf,255); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008050_ACEOF
8051rm -f conftest$ac_exeext
Shi Quan He6b0720f2002-03-21 02:58:39 +00008052if { (eval echo "$as_me:8052: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008053 (eval $ac_link) 2>&5
8054 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00008055 echo "$as_me:8055: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00008057 { (eval echo "$as_me:8057: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008058 (eval $ac_try) 2>&5
8059 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00008060 echo "$as_me:8060: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008061 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +00008062 wine_cv_libc_r____errno=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +00008063else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008064 echo "$as_me: program exited with status $ac_status" >&5
8065echo "$as_me: failed program was:" >&5
8066cat conftest.$ac_ext >&5
8067wine_cv_libc_r____errno=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +00008068fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008069rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Ulrich Weigand715a55e1999-04-18 13:19:56 +00008070fi
8071
Ulrich Weigand715a55e1999-04-18 13:19:56 +00008072fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00008073echo "$as_me:8073: result: $wine_cv_libc_r____errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008074echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
Alexandre Julliard598412e2001-01-17 20:22:22 +00008075if test "$wine_cv_libc_r____errno" = "yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00008076then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008077 wine_cv_libc_reentrant=___errno
Ulrich Weigand715a55e1999-04-18 13:19:56 +00008078fi
Alexandre Julliard598412e2001-01-17 20:22:22 +00008079
Shi Quan He6b0720f2002-03-21 02:58:39 +00008080 echo "$as_me:8080: checking for reentrant libc: __thr_errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008081echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
8082if test "${wine_cv_libc_r___thr_errno+set}" = set; then
8083 echo $ECHO_N "(cached) $ECHO_C" >&6
Ron Recorde977d6c1999-09-05 12:32:05 +00008084else
8085 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008086 wine_cv_libc_r___thr_errno=yes
Ron Recorde977d6c1999-09-05 12:32:05 +00008087else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008088 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00008089#line 8089 "configure"
Ron Recorde977d6c1999-09-05 12:32:05 +00008090#include "confdefs.h"
8091int myerrno = 0;
8092char buf[256];
8093int *__thr_errno(){return &myerrno;}
8094main(){connect(0,buf,255); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008095_ACEOF
8096rm -f conftest$ac_exeext
Shi Quan He6b0720f2002-03-21 02:58:39 +00008097if { (eval echo "$as_me:8097: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008098 (eval $ac_link) 2>&5
8099 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00008100 echo "$as_me:8100: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00008102 { (eval echo "$as_me:8102: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008103 (eval $ac_try) 2>&5
8104 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00008105 echo "$as_me:8105: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008106 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +00008107 wine_cv_libc_r___thr_errno=yes
Ron Recorde977d6c1999-09-05 12:32:05 +00008108else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008109 echo "$as_me: program exited with status $ac_status" >&5
8110echo "$as_me: failed program was:" >&5
8111cat conftest.$ac_ext >&5
8112wine_cv_libc_r___thr_errno=no
Ron Recorde977d6c1999-09-05 12:32:05 +00008113fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008114rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Ron Recorde977d6c1999-09-05 12:32:05 +00008115fi
8116
Ron Recorde977d6c1999-09-05 12:32:05 +00008117fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00008118echo "$as_me:8118: result: $wine_cv_libc_r___thr_errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008119echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
Alexandre Julliard598412e2001-01-17 20:22:22 +00008120if test "$wine_cv_libc_r___thr_errno" = "yes"
Ron Recorde977d6c1999-09-05 12:32:05 +00008121then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008122 wine_cv_libc_reentrant=__thr_errno
Ron Recorde977d6c1999-09-05 12:32:05 +00008123fi
Alexandre Julliard598412e2001-01-17 20:22:22 +00008124
Shi Quan He6b0720f2002-03-21 02:58:39 +00008125 echo "$as_me:8125: checking for reentrant libc: __errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008126echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
8127if test "${wine_cv_libc_r___errno+set}" = set; then
8128 echo $ECHO_N "(cached) $ECHO_C" >&6
Bang Jun-Young33dff342001-05-07 18:21:10 +00008129else
8130 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008131 wine_cv_libc_r___errno=yes
Bang Jun-Young33dff342001-05-07 18:21:10 +00008132else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008133 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00008134#line 8134 "configure"
Bang Jun-Young33dff342001-05-07 18:21:10 +00008135#include "confdefs.h"
8136int myerrno = 0;
8137char buf[256];
8138int *__errno(){return &myerrno;}
8139main(){connect(0,buf,255); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008140_ACEOF
8141rm -f conftest$ac_exeext
Shi Quan He6b0720f2002-03-21 02:58:39 +00008142if { (eval echo "$as_me:8142: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008143 (eval $ac_link) 2>&5
8144 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00008145 echo "$as_me:8145: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00008147 { (eval echo "$as_me:8147: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008148 (eval $ac_try) 2>&5
8149 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00008150 echo "$as_me:8150: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008151 (exit $ac_status); }; }; then
Bang Jun-Young33dff342001-05-07 18:21:10 +00008152 wine_cv_libc_r___errno=yes
8153else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008154 echo "$as_me: program exited with status $ac_status" >&5
8155echo "$as_me: failed program was:" >&5
8156cat conftest.$ac_ext >&5
8157wine_cv_libc_r___errno=no
Bang Jun-Young33dff342001-05-07 18:21:10 +00008158fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008159rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bang Jun-Young33dff342001-05-07 18:21:10 +00008160fi
8161
Bang Jun-Young33dff342001-05-07 18:21:10 +00008162fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00008163echo "$as_me:8163: result: $wine_cv_libc_r___errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008164echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
Bang Jun-Young33dff342001-05-07 18:21:10 +00008165if test "$wine_cv_libc_r___errno" = "yes"
8166then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008167 wine_cv_libc_reentrant=__errno
Bang Jun-Young33dff342001-05-07 18:21:10 +00008168fi
8169
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008170if test "$wine_cv_libc_reentrant" != "no"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00008171then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008172
8173cat >>confdefs.h <<EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00008174#define ERRNO_LOCATION $wine_cv_libc_reentrant
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00008175EOF
8176
8177fi
8178
Ulrich Weigand715a55e1999-04-18 13:19:56 +00008179if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
Patrik Stridvall24110281999-02-04 10:09:54 +00008180then
Shi Quan He6b0720f2002-03-21 02:58:39 +00008181echo "$as_me:8181: checking for reentrant X libraries" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008182echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
8183if test "${wine_cv_x_reentrant+set}" = set; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00008185else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008186 if test "x$with_reentrant_x" = "xno"
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00008187 then
8188 wine_cv_x_reentrant=no
8189 else
Ulrich Weigand715a55e1999-04-18 13:19:56 +00008190 libX11_check=none
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00008191 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
Alexandre Julliard829fe321998-07-26 14:27:39 +00008192 if test -r $dir/libX11.so; then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00008193 libX11_check="-D $dir/libX11.so"
8194 break 1
8195 fi
Alexandre Julliard829fe321998-07-26 14:27:39 +00008196 if test -r $dir/libX11.a; then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00008197 libX11_check="$dir/libX11.a"
8198 break 1
8199 fi
8200 done
8201 if test "$libX11_check" != "none"; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00008202 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
Alexandre Julliard829fe321998-07-26 14:27:39 +00008203 then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00008204 wine_cv_x_reentrant=yes
8205 else
8206 wine_cv_x_reentrant=no
8207 fi
8208 else
8209 wine_cv_x_reentrant=unknown
8210 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008211 fi
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00008212fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00008213echo "$as_me:8213: result: $wine_cv_x_reentrant" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008214echo "${ECHO_T}$wine_cv_x_reentrant" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008215else
8216 wine_cv_x_reentrant=no
8217fi
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00008218if test "$wine_cv_x_reentrant" = "no"
8219then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008220
8221cat >>confdefs.h <<\EOF
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00008222#define NO_REENTRANT_X11 1
8223EOF
8224
8225fi
8226
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008227# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8228# for constant arguments. Useless!
Shi Quan He6b0720f2002-03-21 02:58:39 +00008229echo "$as_me:8229: checking for working alloca.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008230echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8231if test "${ac_cv_working_alloca_h+set}" = set; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008233else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008234 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00008235#line 8235 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008236#include "confdefs.h"
8237#include <alloca.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008238int
8239main ()
8240{
8241char *p = (char *) alloca (2 * sizeof (int));
8242 ;
8243 return 0;
8244}
8245_ACEOF
8246rm -f conftest.$ac_objext conftest$ac_exeext
Shi Quan He6b0720f2002-03-21 02:58:39 +00008247if { (eval echo "$as_me:8247: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008248 (eval $ac_link) 2>&5
8249 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00008250 echo "$as_me:8250: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008251 (exit $ac_status); } &&
8252 { ac_try='test -s conftest$ac_exeext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00008253 { (eval echo "$as_me:8253: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008254 (eval $ac_try) 2>&5
8255 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00008256 echo "$as_me:8256: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008257 (exit $ac_status); }; }; then
8258 ac_cv_working_alloca_h=yes
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008259else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008260 echo "$as_me: failed program was:" >&5
8261cat conftest.$ac_ext >&5
8262ac_cv_working_alloca_h=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008263fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008264rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008265fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00008266echo "$as_me:8266: result: $ac_cv_working_alloca_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008267echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8268if test $ac_cv_working_alloca_h = yes; then
Alexandre Julliard2487cce1999-04-18 14:43:16 +00008269
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008270cat >>confdefs.h <<\EOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008271#define HAVE_ALLOCA_H 1
8272EOF
8273
8274fi
8275
Shi Quan He6b0720f2002-03-21 02:58:39 +00008276echo "$as_me:8276: checking for alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008277echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8278if test "${ac_cv_func_alloca_works+set}" = set; then
8279 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008280else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008281 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00008282#line 8282 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008283#include "confdefs.h"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008284#ifdef __GNUC__
8285# define alloca __builtin_alloca
8286#else
Eric Pouech18ad24a2000-01-16 22:16:33 +00008287# ifdef _MSC_VER
8288# include <malloc.h>
8289# define alloca _alloca
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008290# else
Eric Pouech18ad24a2000-01-16 22:16:33 +00008291# if HAVE_ALLOCA_H
8292# include <alloca.h>
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008293# else
Eric Pouech18ad24a2000-01-16 22:16:33 +00008294# ifdef _AIX
8295 #pragma alloca
8296# else
8297# ifndef alloca /* predefined by HP cc +Olibcalls */
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008298char *alloca ();
Eric Pouech18ad24a2000-01-16 22:16:33 +00008299# endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008300# endif
8301# endif
8302# endif
8303#endif
8304
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008305int
8306main ()
8307{
8308char *p = (char *) alloca (1);
8309 ;
8310 return 0;
8311}
8312_ACEOF
8313rm -f conftest.$ac_objext conftest$ac_exeext
Shi Quan He6b0720f2002-03-21 02:58:39 +00008314if { (eval echo "$as_me:8314: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008315 (eval $ac_link) 2>&5
8316 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00008317 echo "$as_me:8317: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008318 (exit $ac_status); } &&
8319 { ac_try='test -s conftest$ac_exeext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00008320 { (eval echo "$as_me:8320: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008321 (eval $ac_try) 2>&5
8322 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00008323 echo "$as_me:8323: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008324 (exit $ac_status); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008325 ac_cv_func_alloca_works=yes
8326else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008327 echo "$as_me: failed program was:" >&5
8328cat conftest.$ac_ext >&5
8329ac_cv_func_alloca_works=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008330fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008331rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008332fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00008333echo "$as_me:8333: result: $ac_cv_func_alloca_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008334echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008335
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008336if test $ac_cv_func_alloca_works = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008337
8338cat >>confdefs.h <<\EOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008339#define HAVE_ALLOCA 1
8340EOF
8341
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008342else
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008343 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008344# that cause trouble. Some versions do not even contain alloca or
8345# contain a buggy version. If you still want to use their alloca,
8346# use ar to extract alloca.o from them instead of compiling alloca.c.
8347
8348ALLOCA=alloca.$ac_objext
8349
8350cat >>confdefs.h <<\EOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008351#define C_ALLOCA 1
8352EOF
8353
Shi Quan He6b0720f2002-03-21 02:58:39 +00008354echo "$as_me:8354: checking whether \`alloca.c' needs Cray hooks" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008355echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8356if test "${ac_cv_os_cray+set}" = set; then
8357 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008358else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008359 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00008360#line 8360 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008361#include "confdefs.h"
8362#if defined(CRAY) && ! defined(CRAY2)
8363webecray
8364#else
8365wenotbecray
8366#endif
8367
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008368_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008369if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8370 egrep "webecray" >/dev/null 2>&1; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008371 ac_cv_os_cray=yes
8372else
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008373 ac_cv_os_cray=no
8374fi
8375rm -f conftest*
8376
8377fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00008378echo "$as_me:8378: result: $ac_cv_os_cray" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008379echo "${ECHO_T}$ac_cv_os_cray" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008380if test $ac_cv_os_cray = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008381 for ac_func in _getb67 GETB67 getb67; do
8382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Shi Quan He6b0720f2002-03-21 02:58:39 +00008383echo "$as_me:8383: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008384echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8385if eval "test \"\${$as_ac_var+set}\" = set"; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00008387else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008388 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00008389#line 8389 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00008390#include "confdefs.h"
8391/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008392 which can conflict with char $ac_func (); below. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00008393#include <assert.h>
8394/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008395#ifdef __cplusplus
8396extern "C"
8397#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00008398/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008399 builtin and then its argument prototype would still apply. */
8400char $ac_func ();
8401char (*f) ();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00008402
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008403int
8404main ()
8405{
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00008406/* The GNU C library defines this for functions which it implements
8407 to always fail with ENOSYS. Some functions are actually named
8408 something starting with __ and the normal name is an alias. */
8409#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8410choke me
8411#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008412f = $ac_func;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00008413#endif
8414
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008415 ;
8416 return 0;
8417}
8418_ACEOF
8419rm -f conftest.$ac_objext conftest$ac_exeext
Shi Quan He6b0720f2002-03-21 02:58:39 +00008420if { (eval echo "$as_me:8420: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008421 (eval $ac_link) 2>&5
8422 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00008423 echo "$as_me:8423: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008424 (exit $ac_status); } &&
8425 { ac_try='test -s conftest$ac_exeext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00008426 { (eval echo "$as_me:8426: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008427 (eval $ac_try) 2>&5
8428 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00008429 echo "$as_me:8429: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008430 (exit $ac_status); }; }; then
8431 eval "$as_ac_var=yes"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008432else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008433 echo "$as_me: failed program was:" >&5
8434cat conftest.$ac_ext >&5
8435eval "$as_ac_var=no"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008436fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008437rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008438fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00008439echo "$as_me:8439: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008440echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8441if test `eval echo '${'$as_ac_var'}'` = yes; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008442
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008443cat >>confdefs.h <<EOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008444#define CRAY_STACKSEG_END $ac_func
8445EOF
8446
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008447 break
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008448fi
8449
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008450 done
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008451fi
8452
Shi Quan He6b0720f2002-03-21 02:58:39 +00008453echo "$as_me:8453: checking stack direction for C alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008454echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8455if test "${ac_cv_c_stack_direction+set}" = set; then
8456 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008457else
8458 if test "$cross_compiling" = yes; then
8459 ac_cv_c_stack_direction=0
8460else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008461 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00008462#line 8462 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008463#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008464int
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008465find_stack_direction ()
8466{
8467 static char *addr = 0;
8468 auto char dummy;
8469 if (addr == 0)
8470 {
8471 addr = &dummy;
8472 return find_stack_direction ();
8473 }
8474 else
8475 return (&dummy > addr) ? 1 : -1;
8476}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008477
8478int
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008479main ()
8480{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008481 exit (find_stack_direction () < 0);
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008482}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008483_ACEOF
8484rm -f conftest$ac_exeext
Shi Quan He6b0720f2002-03-21 02:58:39 +00008485if { (eval echo "$as_me:8485: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008486 (eval $ac_link) 2>&5
8487 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00008488 echo "$as_me:8488: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00008490 { (eval echo "$as_me:8490: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008491 (eval $ac_try) 2>&5
8492 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00008493 echo "$as_me:8493: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008494 (exit $ac_status); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008495 ac_cv_c_stack_direction=1
8496else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008497 echo "$as_me: program exited with status $ac_status" >&5
8498echo "$as_me: failed program was:" >&5
8499cat conftest.$ac_ext >&5
8500ac_cv_c_stack_direction=-1
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008501fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008502rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008503fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008504fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00008505echo "$as_me:8505: result: $ac_cv_c_stack_direction" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008506echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008507
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008508cat >>confdefs.h <<EOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008509#define STACK_DIRECTION $ac_cv_c_stack_direction
8510EOF
8511
8512fi
8513
8514for ac_func in \
Eric Pouechf61d7e02000-04-29 16:44:19 +00008515 __libc_fork \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008516 _lwp_create \
Patrik Stridvall81ecb522002-03-11 05:08:14 +00008517 _pclose \
8518 _popen \
8519 _stricmp \
8520 _strnicmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008521 clone \
Andreas Mohra7ca2ba2001-01-12 23:07:11 +00008522 ecvt \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +00008523 finite \
8524 fpclass \
Marcus Meissner3f1ed522001-05-14 20:09:37 +00008525 ftruncate64 \
Patrik Stridvallb9010211999-11-13 22:23:35 +00008526 getnetbyaddr \
8527 getnetbyname \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008528 getpagesize \
Patrik Stridvallb9010211999-11-13 22:23:35 +00008529 getprotobyname \
8530 getprotobynumber \
Dimitrie O. Paun1ec253d2000-12-01 20:47:11 +00008531 getrlimit \
Patrik Stridvallb9010211999-11-13 22:23:35 +00008532 getservbyport \
8533 getsockopt \
8534 inet_network \
Marcus Meissner3f1ed522001-05-14 20:09:37 +00008535 lseek64 \
Alexandre Julliard27bb3112000-11-29 17:48:06 +00008536 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008537 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +00008538 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +00008539 pclose \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +00008540 pread \
Patrik Stridvall81ecb522002-03-11 05:08:14 +00008541 popen \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +00008542 pwrite \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008543 rfork \
Patrik Stridvallb9010211999-11-13 22:23:35 +00008544 select \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008545 sendmsg \
Patrik Stridvallb9010211999-11-13 22:23:35 +00008546 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008547 sigaltstack \
Patrik Stridvallb9010211999-11-13 22:23:35 +00008548 statfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +00008549 strcasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008550 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +00008551 strncasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008552 tcgetattr \
8553 timegm \
8554 usleep \
8555 vfscanf \
8556 wait4 \
8557 waitpid \
8558
8559do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008560as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Shi Quan He6b0720f2002-03-21 02:58:39 +00008561echo "$as_me:8561: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008562echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8563if eval "test \"\${$as_ac_var+set}\" = set"; then
8564 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008565else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008566 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00008567#line 8567 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008568#include "confdefs.h"
8569/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008570 which can conflict with char $ac_func (); below. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008571#include <assert.h>
8572/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008573#ifdef __cplusplus
8574extern "C"
8575#endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008576/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008577 builtin and then its argument prototype would still apply. */
8578char $ac_func ();
8579char (*f) ();
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008580
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008581int
8582main ()
8583{
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008584/* The GNU C library defines this for functions which it implements
8585 to always fail with ENOSYS. Some functions are actually named
8586 something starting with __ and the normal name is an alias. */
8587#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8588choke me
8589#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008590f = $ac_func;
Patrik Stridvall1bb94031999-05-08 15:47:44 +00008591#endif
8592
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008593 ;
8594 return 0;
8595}
8596_ACEOF
8597rm -f conftest.$ac_objext conftest$ac_exeext
Shi Quan He6b0720f2002-03-21 02:58:39 +00008598if { (eval echo "$as_me:8598: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008599 (eval $ac_link) 2>&5
8600 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00008601 echo "$as_me:8601: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008602 (exit $ac_status); } &&
8603 { ac_try='test -s conftest$ac_exeext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00008604 { (eval echo "$as_me:8604: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008605 (eval $ac_try) 2>&5
8606 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00008607 echo "$as_me:8607: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008608 (exit $ac_status); }; }; then
8609 eval "$as_ac_var=yes"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00008610else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008611 echo "$as_me: failed program was:" >&5
8612cat conftest.$ac_ext >&5
8613eval "$as_ac_var=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00008614fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008615rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00008616fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00008617echo "$as_me:8617: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008618echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8619if test `eval echo '${'$as_ac_var'}'` = yes; then
8620 cat >>confdefs.h <<EOF
8621#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8622EOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00008623
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00008624fi
8625done
8626
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008627for ac_header in \
Patrik Stridvall96336321999-10-24 22:13:47 +00008628 arpa/inet.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00008629 arpa/nameser.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +00008630 direct.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00008631 elf.h \
8632 float.h \
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00008633 ieeefp.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +00008634 io.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00008635 libio.h \
Hidenori Takeshima01f78aa2000-07-09 12:19:09 +00008636 libutil.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00008637 link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00008638 linux/cdrom.h \
Marcus Meissnerc9b3b2e2000-12-12 00:38:58 +00008639 linux/input.h \
Marcus Meissner028e9a11999-08-04 15:07:56 +00008640 linux/joystick.h \
Lawson Whitney533e7ee2002-02-19 18:41:56 +00008641 linux/serial.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00008642 linux/ucdrom.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00008643 net/if.h \
Hidenori Takeshima5d1a6382000-11-26 04:00:53 +00008644 netdb.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00008645 netinet/in.h \
Patrik Stridvall7a4e5992000-12-01 23:53:46 +00008646 netinet/in_systm.h \
8647 netinet/ip.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00008648 netinet/tcp.h \
Marcus Meissner2d7be871999-12-05 23:06:40 +00008649 pty.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00008650 resolv.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00008651 sched.h \
8652 socket.h \
Bang Jun-Youngeda758e2001-12-14 22:47:19 +00008653 stdint.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00008654 strings.h \
8655 sys/cdio.h \
Howard Abrams13277481999-07-10 13:16:29 +00008656 sys/errno.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00008657 sys/file.h \
8658 sys/filio.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00008659 sys/ipc.h \
Eric Pouech624cbd72001-08-10 22:29:21 +00008660 sys/link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00008661 sys/lwp.h \
Howard Abrams13277481999-07-10 13:16:29 +00008662 sys/mman.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00008663 sys/modem.h \
8664 sys/mount.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00008665 sys/msg.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00008666 sys/param.h \
Dimitrie O. Paun2af03e42000-11-29 20:04:09 +00008667 sys/ptrace.h \
Ulrich Weigand8a1bdb32000-01-30 22:22:22 +00008668 sys/reg.h \
Howard Abrams13277481999-07-10 13:16:29 +00008669 sys/signal.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00008670 sys/shm.h \
8671 sys/socket.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00008672 sys/sockio.h \
8673 sys/statfs.h \
8674 sys/strtio.h \
8675 sys/syscall.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +00008676 sys/time.h \
Dimitrie O. Paun2af03e42000-11-29 20:04:09 +00008677 sys/user.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00008678 sys/wait.h \
8679 sys/v86.h \
8680 sys/v86intr.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00008681 sys/vfs.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00008682 sys/vm86.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00008683 syscall.h \
Patrik Stridvall7a4e5992000-12-01 23:53:46 +00008684 ucontext.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +00008685 unistd.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00008686
Alexandre Julliard02e90081998-01-04 17:49:09 +00008687do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008688as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Shi Quan He6b0720f2002-03-21 02:58:39 +00008689echo "$as_me:8689: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008690echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8691if eval "test \"\${$as_ac_Header+set}\" = set"; then
8692 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard02e90081998-01-04 17:49:09 +00008693else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008694 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00008695#line 8695 "configure"
Alexandre Julliard02e90081998-01-04 17:49:09 +00008696#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008697#include <$ac_header>
8698_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00008699if { (eval echo "$as_me:8699: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8701 ac_status=$?
8702 egrep -v '^ *\+' conftest.er1 >conftest.err
8703 rm -f conftest.er1
8704 cat conftest.err >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008705 echo "$as_me:8705: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008706 (exit $ac_status); } >/dev/null; then
8707 if test -s conftest.err; then
8708 ac_cpp_err=$ac_c_preproc_warn_flag
8709 else
8710 ac_cpp_err=
8711 fi
Alexandre Julliard02e90081998-01-04 17:49:09 +00008712else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008713 ac_cpp_err=yes
8714fi
8715if test -z "$ac_cpp_err"; then
8716 eval "$as_ac_Header=yes"
8717else
8718 echo "$as_me: failed program was:" >&5
Alexandre Julliard02e90081998-01-04 17:49:09 +00008719 cat conftest.$ac_ext >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008720 eval "$as_ac_Header=no"
Alexandre Julliard02e90081998-01-04 17:49:09 +00008721fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008722rm -f conftest.err conftest.$ac_ext
Alexandre Julliard02e90081998-01-04 17:49:09 +00008723fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00008724echo "$as_me:8724: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008725echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8726if test `eval echo '${'$as_ac_Header'}'` = yes; then
8727 cat >>confdefs.h <<EOF
8728#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliard02e90081998-01-04 17:49:09 +00008729EOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008730
Alexandre Julliard02e90081998-01-04 17:49:09 +00008731fi
8732done
8733
Shi Quan He6b0720f2002-03-21 02:58:39 +00008734echo "$as_me:8734: checking whether stat file-mode macros are broken" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008735echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8736if test "${ac_cv_header_stat_broken+set}" = set; then
8737 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00008738else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008739 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00008740#line 8740 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00008741#include "confdefs.h"
8742#include <sys/types.h>
8743#include <sys/stat.h>
8744
8745#if defined(S_ISBLK) && defined(S_IFDIR)
8746# if S_ISBLK (S_IFDIR)
8747You lose.
8748# endif
8749#endif
8750
8751#if defined(S_ISBLK) && defined(S_IFCHR)
8752# if S_ISBLK (S_IFCHR)
8753You lose.
8754# endif
8755#endif
8756
8757#if defined(S_ISLNK) && defined(S_IFREG)
8758# if S_ISLNK (S_IFREG)
8759You lose.
8760# endif
8761#endif
8762
8763#if defined(S_ISSOCK) && defined(S_IFREG)
8764# if S_ISSOCK (S_IFREG)
8765You lose.
8766# endif
8767#endif
8768
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008769_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00008770if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8771 egrep "You lose" >/dev/null 2>&1; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00008772 ac_cv_header_stat_broken=yes
8773else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00008774 ac_cv_header_stat_broken=no
8775fi
8776rm -f conftest*
8777
8778fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00008779echo "$as_me:8779: result: $ac_cv_header_stat_broken" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008780echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00008781if test $ac_cv_header_stat_broken = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008782
8783cat >>confdefs.h <<\EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00008784#define STAT_MACROS_BROKEN 1
8785EOF
8786
8787fi
8788
Shi Quan He6b0720f2002-03-21 02:58:39 +00008789echo "$as_me:8789: checking for $CC option to accept ANSI C" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008790echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
8791if test "${ac_cv_prog_cc_stdc+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00008793else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008794 ac_cv_prog_cc_stdc=no
8795ac_save_CC=$CC
8796cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00008797#line 8797 "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008798#include "confdefs.h"
8799#include <stdarg.h>
8800#include <stdio.h>
8801#include <sys/types.h>
8802#include <sys/stat.h>
8803/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8804struct buf { int x; };
8805FILE * (*rcsopen) (struct buf *, struct stat *, int);
8806static char *e (p, i)
8807 char **p;
8808 int i;
8809{
8810 return p[i];
8811}
8812static char *f (char * (*g) (char **, int), char **p, ...)
8813{
8814 char *s;
8815 va_list v;
8816 va_start (v,p);
8817 s = g (p, va_arg (v,int));
8818 va_end (v);
8819 return s;
8820}
8821int test (int i, double x);
8822struct s1 {int (*f) (int a);};
8823struct s2 {int (*f) (double a);};
8824int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8825int argc;
8826char **argv;
8827int
8828main ()
8829{
8830return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8831 ;
8832 return 0;
8833}
8834_ACEOF
8835# Don't try gcc -ansi; that turns off useful extensions and
8836# breaks some systems' header files.
8837# AIX -qlanglvl=ansi
8838# Ultrix and OSF/1 -std1
8839# HP-UX 10.20 and later -Ae
8840# HP-UX older versions -Aa -D_HPUX_SOURCE
8841# SVR4 -Xc -D__EXTENSIONS__
8842for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8843do
8844 CC="$ac_save_CC $ac_arg"
8845 rm -f conftest.$ac_objext
Shi Quan He6b0720f2002-03-21 02:58:39 +00008846if { (eval echo "$as_me:8846: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008847 (eval $ac_compile) 2>&5
8848 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00008849 echo "$as_me:8849: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008850 (exit $ac_status); } &&
8851 { ac_try='test -s conftest.$ac_objext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00008852 { (eval echo "$as_me:8852: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008853 (eval $ac_try) 2>&5
8854 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00008855 echo "$as_me:8855: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008856 (exit $ac_status); }; }; then
8857 ac_cv_prog_cc_stdc=$ac_arg
8858break
8859else
8860 echo "$as_me: failed program was:" >&5
8861cat conftest.$ac_ext >&5
8862fi
8863rm -f conftest.$ac_objext
8864done
8865rm -f conftest.$ac_ext conftest.$ac_objext
8866CC=$ac_save_CC
8867
8868fi
8869
8870case "x$ac_cv_prog_cc_stdc" in
8871 x|xno)
Shi Quan He6b0720f2002-03-21 02:58:39 +00008872 echo "$as_me:8872: result: none needed" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008873echo "${ECHO_T}none needed" >&6 ;;
8874 *)
Shi Quan He6b0720f2002-03-21 02:58:39 +00008875 echo "$as_me:8875: result: $ac_cv_prog_cc_stdc" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008876echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
8877 CC="$CC $ac_cv_prog_cc_stdc" ;;
8878esac
8879
Shi Quan He6b0720f2002-03-21 02:58:39 +00008880echo "$as_me:8880: checking for an ANSI C-conforming const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008881echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8882if test "${ac_cv_c_const+set}" = set; then
8883 echo $ECHO_N "(cached) $ECHO_C" >&6
8884else
8885 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00008886#line 8886 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00008887#include "confdefs.h"
8888
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008889int
8890main ()
8891{
8892/* FIXME: Include the comments suggested by Paul. */
8893#ifndef __cplusplus
8894 /* Ultrix mips cc rejects this. */
8895 typedef int charset[2];
8896 const charset x;
8897 /* SunOS 4.1.1 cc rejects this. */
8898 char const *const *ccp;
8899 char **p;
8900 /* NEC SVR4.0.2 mips cc rejects this. */
8901 struct point {int x, y;};
8902 static struct point const zero = {0,0};
8903 /* AIX XL C 1.02.0.0 rejects this.
8904 It does not let you subtract one const X* pointer from another in
8905 an arm of an if-expression whose if-part is not a constant
8906 expression */
8907 const char *g = "string";
8908 ccp = &g + (g ? g-g : 0);
8909 /* HPUX 7.0 cc rejects these. */
8910 ++ccp;
8911 p = (char**) ccp;
8912 ccp = (char const *const *) p;
8913 { /* SCO 3.2v4 cc rejects this. */
8914 char *t;
8915 char const *s = 0 ? (char *) 0 : (char const *) 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00008916
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008917 *t++ = 0;
8918 }
8919 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8920 int x[] = {25, 17};
8921 const int *foo = &x[0];
8922 ++foo;
8923 }
8924 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8925 typedef const int *iptr;
8926 iptr p = 0;
8927 ++p;
8928 }
8929 { /* AIX XL C 1.02.0.0 rejects this saying
8930 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8931 struct s { int j; const int *ap[3]; };
8932 struct s *b; b->j = 5;
8933 }
8934 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8935 const int foo = 10;
8936 }
8937#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00008938
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008939 ;
8940 return 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00008941}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008942_ACEOF
8943rm -f conftest.$ac_objext
Shi Quan He6b0720f2002-03-21 02:58:39 +00008944if { (eval echo "$as_me:8944: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008945 (eval $ac_compile) 2>&5
8946 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00008947 echo "$as_me:8947: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008948 (exit $ac_status); } &&
8949 { ac_try='test -s conftest.$ac_objext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00008950 { (eval echo "$as_me:8950: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008951 (eval $ac_try) 2>&5
8952 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00008953 echo "$as_me:8953: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008954 (exit $ac_status); }; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00008955 ac_cv_c_const=yes
8956else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008957 echo "$as_me: failed program was:" >&5
8958cat conftest.$ac_ext >&5
8959ac_cv_c_const=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00008960fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008961rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00008962fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00008963echo "$as_me:8963: result: $ac_cv_c_const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008964echo "${ECHO_T}$ac_cv_c_const" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00008965if test $ac_cv_c_const = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008966
8967cat >>confdefs.h <<\EOF
8968#define const
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00008969EOF
8970
8971fi
8972
Shi Quan He6b0720f2002-03-21 02:58:39 +00008973echo "$as_me:8973: checking for inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008974echo $ECHO_N "checking for inline... $ECHO_C" >&6
8975if test "${ac_cv_c_inline+set}" = set; then
8976 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00008977else
8978 ac_cv_c_inline=no
8979for ac_kw in inline __inline__ __inline; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008980 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00008981#line 8981 "configure"
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00008982#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008983#ifndef __cplusplus
8984static $ac_kw int static_foo () {return 0; }
8985$ac_kw int foo () {return 0; }
8986#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00008987
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008988_ACEOF
8989rm -f conftest.$ac_objext
Shi Quan He6b0720f2002-03-21 02:58:39 +00008990if { (eval echo "$as_me:8990: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008991 (eval $ac_compile) 2>&5
8992 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00008993 echo "$as_me:8993: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008994 (exit $ac_status); } &&
8995 { ac_try='test -s conftest.$ac_objext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00008996 { (eval echo "$as_me:8996: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008997 (eval $ac_try) 2>&5
8998 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00008999 echo "$as_me:8999: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009000 (exit $ac_status); }; }; then
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00009001 ac_cv_c_inline=$ac_kw; break
9002else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009003 echo "$as_me: failed program was:" >&5
9004cat conftest.$ac_ext >&5
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00009005fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009006rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00009007done
9008
9009fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00009010echo "$as_me:9010: result: $ac_cv_c_inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009011echo "${ECHO_T}$ac_cv_c_inline" >&6
9012case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00009013 inline | yes) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009014 no)
9015cat >>confdefs.h <<\EOF
9016#define inline
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00009017EOF
9018 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009019 *) cat >>confdefs.h <<EOF
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00009020#define inline $ac_cv_c_inline
9021EOF
9022 ;;
9023esac
9024
Shi Quan He6b0720f2002-03-21 02:58:39 +00009025echo "$as_me:9025: checking for ANSI C header files" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009026echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9027if test "${ac_cv_header_stdc+set}" = set; then
9028 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00009029else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009030 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009031#line 9031 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00009032#include "confdefs.h"
9033#include <stdlib.h>
9034#include <stdarg.h>
9035#include <string.h>
9036#include <float.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009037
9038_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009039if { (eval echo "$as_me:9039: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9041 ac_status=$?
9042 egrep -v '^ *\+' conftest.er1 >conftest.err
9043 rm -f conftest.er1
9044 cat conftest.err >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009045 echo "$as_me:9045: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009046 (exit $ac_status); } >/dev/null; then
9047 if test -s conftest.err; then
9048 ac_cpp_err=$ac_c_preproc_warn_flag
9049 else
9050 ac_cpp_err=
9051 fi
9052else
9053 ac_cpp_err=yes
9054fi
9055if test -z "$ac_cpp_err"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00009056 ac_cv_header_stdc=yes
9057else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009058 echo "$as_me: failed program was:" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00009059 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00009060 ac_cv_header_stdc=no
9061fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009062rm -f conftest.err conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00009063
9064if test $ac_cv_header_stdc = yes; then
9065 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009066 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009067#line 9067 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00009068#include "confdefs.h"
9069#include <string.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009070
9071_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00009072if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9073 egrep "memchr" >/dev/null 2>&1; then
9074 :
9075else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00009076 ac_cv_header_stdc=no
9077fi
9078rm -f conftest*
9079
9080fi
9081
9082if test $ac_cv_header_stdc = yes; then
9083 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009084 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009085#line 9085 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00009086#include "confdefs.h"
9087#include <stdlib.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009088
9089_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00009090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9091 egrep "free" >/dev/null 2>&1; then
9092 :
9093else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00009094 ac_cv_header_stdc=no
9095fi
9096rm -f conftest*
9097
9098fi
9099
9100if test $ac_cv_header_stdc = yes; then
9101 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009102 if test "$cross_compiling" = yes; then
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00009103 :
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00009104else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009105 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009106#line 9106 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00009107#include "confdefs.h"
9108#include <ctype.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009109#if ((' ' & 0x0FF) == 0x020)
9110# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9111# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9112#else
9113# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9114 || ('j' <= (c) && (c) <= 'r') \
9115 || ('s' <= (c) && (c) <= 'z'))
9116# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9117#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00009118
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009119#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9120int
9121main ()
9122{
9123 int i;
9124 for (i = 0; i < 256; i++)
9125 if (XOR (islower (i), ISLOWER (i))
9126 || toupper (i) != TOUPPER (i))
9127 exit(2);
9128 exit (0);
9129}
9130_ACEOF
9131rm -f conftest$ac_exeext
Shi Quan He6b0720f2002-03-21 02:58:39 +00009132if { (eval echo "$as_me:9132: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009133 (eval $ac_link) 2>&5
9134 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009135 echo "$as_me:9135: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00009137 { (eval echo "$as_me:9137: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009138 (eval $ac_try) 2>&5
9139 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009140 echo "$as_me:9140: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009141 (exit $ac_status); }; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00009142 :
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
9147ac_cv_header_stdc=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00009148fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009149rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00009150fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00009151fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009152fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00009153echo "$as_me:9153: result: $ac_cv_header_stdc" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009154echo "${ECHO_T}$ac_cv_header_stdc" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00009155if test $ac_cv_header_stdc = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009156
9157cat >>confdefs.h <<\EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00009158#define STDC_HEADERS 1
9159EOF
9160
9161fi
9162
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009163# On IRIX 5.3, sys/types and inttypes.h are conflicting.
9164
9165for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9166 inttypes.h stdint.h unistd.h
9167do
9168as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Shi Quan He6b0720f2002-03-21 02:58:39 +00009169echo "$as_me:9169: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009170echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9171if eval "test \"\${$as_ac_Header+set}\" = set"; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00009173else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009174 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009175#line 9175 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00009176#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009177$ac_includes_default
9178#include <$ac_header>
9179_ACEOF
9180rm -f conftest.$ac_objext
Shi Quan He6b0720f2002-03-21 02:58:39 +00009181if { (eval echo "$as_me:9181: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009182 (eval $ac_compile) 2>&5
9183 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009184 echo "$as_me:9184: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009185 (exit $ac_status); } &&
9186 { ac_try='test -s conftest.$ac_objext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00009187 { (eval echo "$as_me:9187: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009188 (eval $ac_try) 2>&5
9189 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009190 echo "$as_me:9190: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009191 (exit $ac_status); }; }; then
9192 eval "$as_ac_Header=yes"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00009193else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009194 echo "$as_me: failed program was:" >&5
9195cat conftest.$ac_ext >&5
9196eval "$as_ac_Header=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00009197fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009198rm -f conftest.$ac_objext conftest.$ac_ext
9199fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00009200echo "$as_me:9200: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009201echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9202if test `eval echo '${'$as_ac_Header'}'` = yes; then
9203 cat >>confdefs.h <<EOF
9204#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9205EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00009206
9207fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009208done
9209
Shi Quan He6b0720f2002-03-21 02:58:39 +00009210echo "$as_me:9210: checking for mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009211echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
9212if test "${ac_cv_type_mode_t+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9214else
9215 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009216#line 9216 "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009217#include "confdefs.h"
9218$ac_includes_default
9219int
9220main ()
9221{
9222if ((mode_t *) 0)
9223 return 0;
9224if (sizeof (mode_t))
9225 return 0;
9226 ;
9227 return 0;
9228}
9229_ACEOF
9230rm -f conftest.$ac_objext
Shi Quan He6b0720f2002-03-21 02:58:39 +00009231if { (eval echo "$as_me:9231: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009232 (eval $ac_compile) 2>&5
9233 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009234 echo "$as_me:9234: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009235 (exit $ac_status); } &&
9236 { ac_try='test -s conftest.$ac_objext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00009237 { (eval echo "$as_me:9237: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009238 (eval $ac_try) 2>&5
9239 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009240 echo "$as_me:9240: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009241 (exit $ac_status); }; }; then
9242 ac_cv_type_mode_t=yes
9243else
9244 echo "$as_me: failed program was:" >&5
9245cat conftest.$ac_ext >&5
9246ac_cv_type_mode_t=no
9247fi
9248rm -f conftest.$ac_objext conftest.$ac_ext
9249fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00009250echo "$as_me:9250: result: $ac_cv_type_mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009251echo "${ECHO_T}$ac_cv_type_mode_t" >&6
9252if test $ac_cv_type_mode_t = yes; then
9253 :
9254else
9255
9256cat >>confdefs.h <<EOF
9257#define mode_t int
9258EOF
9259
9260fi
9261
Shi Quan He6b0720f2002-03-21 02:58:39 +00009262echo "$as_me:9262: checking for off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009263echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9264if test "${ac_cv_type_off_t+set}" = set; then
9265 echo $ECHO_N "(cached) $ECHO_C" >&6
9266else
9267 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009268#line 9268 "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009269#include "confdefs.h"
9270$ac_includes_default
9271int
9272main ()
9273{
9274if ((off_t *) 0)
9275 return 0;
9276if (sizeof (off_t))
9277 return 0;
9278 ;
9279 return 0;
9280}
9281_ACEOF
9282rm -f conftest.$ac_objext
Shi Quan He6b0720f2002-03-21 02:58:39 +00009283if { (eval echo "$as_me:9283: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009284 (eval $ac_compile) 2>&5
9285 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009286 echo "$as_me:9286: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009287 (exit $ac_status); } &&
9288 { ac_try='test -s conftest.$ac_objext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00009289 { (eval echo "$as_me:9289: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009290 (eval $ac_try) 2>&5
9291 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009292 echo "$as_me:9292: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009293 (exit $ac_status); }; }; then
9294 ac_cv_type_off_t=yes
9295else
9296 echo "$as_me: failed program was:" >&5
9297cat conftest.$ac_ext >&5
9298ac_cv_type_off_t=no
9299fi
9300rm -f conftest.$ac_objext conftest.$ac_ext
9301fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00009302echo "$as_me:9302: result: $ac_cv_type_off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009303echo "${ECHO_T}$ac_cv_type_off_t" >&6
9304if test $ac_cv_type_off_t = yes; then
9305 :
9306else
9307
9308cat >>confdefs.h <<EOF
9309#define off_t long
9310EOF
9311
9312fi
9313
Shi Quan He6b0720f2002-03-21 02:58:39 +00009314echo "$as_me:9314: checking for pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009315echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9316if test "${ac_cv_type_pid_t+set}" = set; then
9317 echo $ECHO_N "(cached) $ECHO_C" >&6
9318else
9319 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009320#line 9320 "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009321#include "confdefs.h"
9322$ac_includes_default
9323int
9324main ()
9325{
9326if ((pid_t *) 0)
9327 return 0;
9328if (sizeof (pid_t))
9329 return 0;
9330 ;
9331 return 0;
9332}
9333_ACEOF
9334rm -f conftest.$ac_objext
Shi Quan He6b0720f2002-03-21 02:58:39 +00009335if { (eval echo "$as_me:9335: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009336 (eval $ac_compile) 2>&5
9337 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009338 echo "$as_me:9338: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009339 (exit $ac_status); } &&
9340 { ac_try='test -s conftest.$ac_objext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00009341 { (eval echo "$as_me:9341: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009342 (eval $ac_try) 2>&5
9343 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009344 echo "$as_me:9344: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009345 (exit $ac_status); }; }; then
9346 ac_cv_type_pid_t=yes
9347else
9348 echo "$as_me: failed program was:" >&5
9349cat conftest.$ac_ext >&5
9350ac_cv_type_pid_t=no
9351fi
9352rm -f conftest.$ac_objext conftest.$ac_ext
9353fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00009354echo "$as_me:9354: result: $ac_cv_type_pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009355echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9356if test $ac_cv_type_pid_t = yes; then
9357 :
9358else
9359
9360cat >>confdefs.h <<EOF
9361#define pid_t int
9362EOF
9363
9364fi
9365
Shi Quan He6b0720f2002-03-21 02:58:39 +00009366echo "$as_me:9366: checking for size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009367echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9368if test "${ac_cv_type_size_t+set}" = set; then
9369 echo $ECHO_N "(cached) $ECHO_C" >&6
9370else
9371 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009372#line 9372 "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009373#include "confdefs.h"
9374$ac_includes_default
9375int
9376main ()
9377{
9378if ((size_t *) 0)
9379 return 0;
9380if (sizeof (size_t))
9381 return 0;
9382 ;
9383 return 0;
9384}
9385_ACEOF
9386rm -f conftest.$ac_objext
Shi Quan He6b0720f2002-03-21 02:58:39 +00009387if { (eval echo "$as_me:9387: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009388 (eval $ac_compile) 2>&5
9389 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009390 echo "$as_me:9390: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009391 (exit $ac_status); } &&
9392 { ac_try='test -s conftest.$ac_objext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00009393 { (eval echo "$as_me:9393: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009394 (eval $ac_try) 2>&5
9395 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009396 echo "$as_me:9396: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009397 (exit $ac_status); }; }; then
9398 ac_cv_type_size_t=yes
9399else
9400 echo "$as_me: failed program was:" >&5
9401cat conftest.$ac_ext >&5
9402ac_cv_type_size_t=no
9403fi
9404rm -f conftest.$ac_objext conftest.$ac_ext
9405fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00009406echo "$as_me:9406: result: $ac_cv_type_size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009407echo "${ECHO_T}$ac_cv_type_size_t" >&6
9408if test $ac_cv_type_size_t = yes; then
9409 :
9410else
9411
9412cat >>confdefs.h <<EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00009413#define size_t unsigned
9414EOF
9415
9416fi
9417
Shi Quan He6b0720f2002-03-21 02:58:39 +00009418echo "$as_me:9418: checking for long long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009419echo $ECHO_N "checking for long long... $ECHO_C" >&6
9420if test "${ac_cv_type_long_long+set}" = set; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9422else
9423 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009424#line 9424 "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009425#include "confdefs.h"
9426$ac_includes_default
9427int
9428main ()
9429{
9430if ((long long *) 0)
9431 return 0;
9432if (sizeof (long long))
9433 return 0;
9434 ;
9435 return 0;
9436}
9437_ACEOF
9438rm -f conftest.$ac_objext
Shi Quan He6b0720f2002-03-21 02:58:39 +00009439if { (eval echo "$as_me:9439: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009440 (eval $ac_compile) 2>&5
9441 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009442 echo "$as_me:9442: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009443 (exit $ac_status); } &&
9444 { ac_try='test -s conftest.$ac_objext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00009445 { (eval echo "$as_me:9445: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009446 (eval $ac_try) 2>&5
9447 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009448 echo "$as_me:9448: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009449 (exit $ac_status); }; }; then
9450 ac_cv_type_long_long=yes
9451else
9452 echo "$as_me: failed program was:" >&5
9453cat conftest.$ac_ext >&5
9454ac_cv_type_long_long=no
9455fi
9456rm -f conftest.$ac_objext conftest.$ac_ext
9457fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00009458echo "$as_me:9458: result: $ac_cv_type_long_long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009459echo "${ECHO_T}$ac_cv_type_long_long" >&6
9460
Shi Quan He6b0720f2002-03-21 02:58:39 +00009461echo "$as_me:9461: checking size of long long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009462echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9463if test "${ac_cv_sizeof_long_long+set}" = set; then
9464 echo $ECHO_N "(cached) $ECHO_C" >&6
9465else
9466 if test "$ac_cv_type_long_long" = yes; then
9467 if test "$cross_compiling" = yes; then
9468 # Depending upon the size, compute the lo and hi bounds.
9469cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009470#line 9470 "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009471#include "confdefs.h"
9472$ac_includes_default
9473int
9474main ()
9475{
9476int _array_ [1 - 2 * !((sizeof (long long)) >= 0)]
9477 ;
9478 return 0;
9479}
9480_ACEOF
9481rm -f conftest.$ac_objext
Shi Quan He6b0720f2002-03-21 02:58:39 +00009482if { (eval echo "$as_me:9482: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009483 (eval $ac_compile) 2>&5
9484 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009485 echo "$as_me:9485: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009486 (exit $ac_status); } &&
9487 { ac_try='test -s conftest.$ac_objext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00009488 { (eval echo "$as_me:9488: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009489 (eval $ac_try) 2>&5
9490 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009491 echo "$as_me:9491: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009492 (exit $ac_status); }; }; then
9493 ac_lo=0 ac_mid=0
9494 while :; do
9495 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009496#line 9496 "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009497#include "confdefs.h"
9498$ac_includes_default
9499int
9500main ()
9501{
9502int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
9503 ;
9504 return 0;
9505}
9506_ACEOF
9507rm -f conftest.$ac_objext
Shi Quan He6b0720f2002-03-21 02:58:39 +00009508if { (eval echo "$as_me:9508: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009509 (eval $ac_compile) 2>&5
9510 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009511 echo "$as_me:9511: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009512 (exit $ac_status); } &&
9513 { ac_try='test -s conftest.$ac_objext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00009514 { (eval echo "$as_me:9514: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009515 (eval $ac_try) 2>&5
9516 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009517 echo "$as_me:9517: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009518 (exit $ac_status); }; }; then
9519 ac_hi=$ac_mid; break
9520else
9521 echo "$as_me: failed program was:" >&5
9522cat conftest.$ac_ext >&5
9523ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
9524fi
9525rm -f conftest.$ac_objext conftest.$ac_ext
9526 done
9527else
9528 echo "$as_me: failed program was:" >&5
9529cat conftest.$ac_ext >&5
9530ac_hi=-1 ac_mid=-1
9531 while :; do
9532 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009533#line 9533 "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009534#include "confdefs.h"
9535$ac_includes_default
9536int
9537main ()
9538{
9539int _array_ [1 - 2 * !((sizeof (long long)) >= $ac_mid)]
9540 ;
9541 return 0;
9542}
9543_ACEOF
9544rm -f conftest.$ac_objext
Shi Quan He6b0720f2002-03-21 02:58:39 +00009545if { (eval echo "$as_me:9545: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009546 (eval $ac_compile) 2>&5
9547 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009548 echo "$as_me:9548: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009549 (exit $ac_status); } &&
9550 { ac_try='test -s conftest.$ac_objext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00009551 { (eval echo "$as_me:9551: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009552 (eval $ac_try) 2>&5
9553 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009554 echo "$as_me:9554: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009555 (exit $ac_status); }; }; then
9556 ac_lo=$ac_mid; break
9557else
9558 echo "$as_me: failed program was:" >&5
9559cat conftest.$ac_ext >&5
9560ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
9561fi
9562rm -f conftest.$ac_objext conftest.$ac_ext
9563 done
9564fi
9565rm -f conftest.$ac_objext conftest.$ac_ext
9566# Binary search between lo and hi bounds.
9567while test "x$ac_lo" != "x$ac_hi"; do
9568 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9569 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009570#line 9570 "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009571#include "confdefs.h"
9572$ac_includes_default
9573int
9574main ()
9575{
9576int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
9577 ;
9578 return 0;
9579}
9580_ACEOF
9581rm -f conftest.$ac_objext
Shi Quan He6b0720f2002-03-21 02:58:39 +00009582if { (eval echo "$as_me:9582: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009583 (eval $ac_compile) 2>&5
9584 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009585 echo "$as_me:9585: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009586 (exit $ac_status); } &&
9587 { ac_try='test -s conftest.$ac_objext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00009588 { (eval echo "$as_me:9588: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009589 (eval $ac_try) 2>&5
9590 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009591 echo "$as_me:9591: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009592 (exit $ac_status); }; }; then
9593 ac_hi=$ac_mid
9594else
9595 echo "$as_me: failed program was:" >&5
9596cat conftest.$ac_ext >&5
9597ac_lo=`expr $ac_mid + 1`
9598fi
9599rm -f conftest.$ac_objext conftest.$ac_ext
9600done
9601ac_cv_sizeof_long_long=$ac_lo
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009602else
9603 if test "$cross_compiling" = yes; then
Shi Quan He6b0720f2002-03-21 02:58:39 +00009604 { { echo "$as_me:9604: error: cannot run test program while cross compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009605echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9606 { (exit 1); exit 1; }; }
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009607else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009608 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009609#line 9609 "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009610#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009611$ac_includes_default
9612int
9613main ()
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009614{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009615FILE *f = fopen ("conftest.val", "w");
9616if (!f)
9617 exit (1);
9618fprintf (f, "%d", (sizeof (long long)));
9619fclose (f);
9620 ;
9621 return 0;
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009622}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009623_ACEOF
9624rm -f conftest$ac_exeext
Shi Quan He6b0720f2002-03-21 02:58:39 +00009625if { (eval echo "$as_me:9625: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009626 (eval $ac_link) 2>&5
9627 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009628 echo "$as_me:9628: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00009630 { (eval echo "$as_me:9630: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009631 (eval $ac_try) 2>&5
9632 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009633 echo "$as_me:9633: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009634 (exit $ac_status); }; }; then
9635 ac_cv_sizeof_long_long=`cat conftest.val`
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009636else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009637 echo "$as_me: program exited with status $ac_status" >&5
9638echo "$as_me: failed program was:" >&5
9639cat conftest.$ac_ext >&5
9640fi
9641rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9642fi
9643fi
9644rm -f conftest.val
9645else
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009646 ac_cv_sizeof_long_long=0
9647fi
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009648fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00009649echo "$as_me:9649: result: $ac_cv_sizeof_long_long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009650echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
9651cat >>confdefs.h <<EOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009652#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9653EOF
9654
Shi Quan He6b0720f2002-03-21 02:58:39 +00009655echo "$as_me:9655: checking whether linux/input.h is for real" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009656echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
9657if test "${wine_cv_linux_input_h+set}" = set; then
9658 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00009659else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009660 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009661#line 9661 "configure"
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00009662#include "confdefs.h"
9663
9664 #include <linux/input.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009665
9666int
9667main ()
9668{
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00009669
9670 int foo = EVIOCGBIT(EV_ABS,42);
9671 int bar = BTN_PINKIE;
9672 int fortytwo = 42;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009673
9674 ;
9675 return 0;
9676}
9677_ACEOF
9678rm -f conftest.$ac_objext
Shi Quan He6b0720f2002-03-21 02:58:39 +00009679if { (eval echo "$as_me:9679: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009680 (eval $ac_compile) 2>&5
9681 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009682 echo "$as_me:9682: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009683 (exit $ac_status); } &&
9684 { ac_try='test -s conftest.$ac_objext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00009685 { (eval echo "$as_me:9685: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009686 (eval $ac_try) 2>&5
9687 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009688 echo "$as_me:9688: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009689 (exit $ac_status); }; }; then
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00009690 wine_cv_linux_input_h=yes
9691else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009692 echo "$as_me: failed program was:" >&5
9693cat conftest.$ac_ext >&5
9694wine_cv_linux_input_h=no
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00009695fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009696rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00009697
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009698fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00009699echo "$as_me:9699: result: $wine_cv_linux_input_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009700echo "${ECHO_T}$wine_cv_linux_input_h" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00009701 if test "$wine_cv_linux_input_h" = "yes"
9702 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009703
9704cat >>confdefs.h <<\EOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00009705#define HAVE_CORRECT_LINUXINPUT_H 1
9706EOF
9707
9708 fi
9709
Shi Quan He6b0720f2002-03-21 02:58:39 +00009710echo "$as_me:9710: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009711echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
9712if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
9713 echo $ECHO_N "(cached) $ECHO_C" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +00009714else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009715 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009716#line 9716 "configure"
Rein Klazesff7a61f2000-09-24 19:41:57 +00009717#include "confdefs.h"
9718
9719#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009720
9721int
9722main ()
9723{
Rein Klazesff7a61f2000-09-24 19:41:57 +00009724
9725 char *name=NULL;
9726 struct hostent he;
9727 struct hostent *result;
9728 char *buf=NULL;
9729 int bufsize=0;
9730 int res,errnr;
9731 char *addr=NULL;
9732 int addrlen=0;
9733 int addrtype=0;
9734 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
9735 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009736
9737 ;
9738 return 0;
9739}
9740_ACEOF
9741rm -f conftest.$ac_objext
Shi Quan He6b0720f2002-03-21 02:58:39 +00009742if { (eval echo "$as_me:9742: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009743 (eval $ac_compile) 2>&5
9744 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009745 echo "$as_me:9745: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009746 (exit $ac_status); } &&
9747 { ac_try='test -s conftest.$ac_objext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00009748 { (eval echo "$as_me:9748: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009749 (eval $ac_try) 2>&5
9750 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009751 echo "$as_me:9751: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009752 (exit $ac_status); }; }; then
Rein Klazesff7a61f2000-09-24 19:41:57 +00009753 wine_cv_linux_gethostbyname_r_6=yes
9754else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009755 echo "$as_me: failed program was:" >&5
9756cat conftest.$ac_ext >&5
9757wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +00009758
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009759fi
9760rm -f conftest.$ac_objext conftest.$ac_ext
9761
9762fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00009763echo "$as_me:9763: result: $wine_cv_linux_gethostbyname_r_6" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009764echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +00009765 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
9766 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009767
9768cat >>confdefs.h <<\EOF
Rein Klazesff7a61f2000-09-24 19:41:57 +00009769#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
9770EOF
9771
9772 fi
9773
Marcus Meissner028e9a11999-08-04 15:07:56 +00009774if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00009775then
Shi Quan He6b0720f2002-03-21 02:58:39 +00009776 echo "$as_me:9776: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009777echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
9778if test "${wine_cv_linux_joystick_22_api+set}" = set; then
9779 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00009780else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009781 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009782#line 9782 "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00009783#include "confdefs.h"
9784
Marcus Meissner028e9a11999-08-04 15:07:56 +00009785 #include <sys/ioctl.h>
9786 #include <linux/joystick.h>
9787
9788 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +00009789 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
9790 #error "no 2.2 header"
9791 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009792
9793int
9794main ()
9795{
Marcus Meissner028e9a11999-08-04 15:07:56 +00009796/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009797 ;
9798 return 0;
9799}
9800_ACEOF
9801rm -f conftest.$ac_objext
Shi Quan He6b0720f2002-03-21 02:58:39 +00009802if { (eval echo "$as_me:9802: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009803 (eval $ac_compile) 2>&5
9804 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009805 echo "$as_me:9805: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009806 (exit $ac_status); } &&
9807 { ac_try='test -s conftest.$ac_objext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00009808 { (eval echo "$as_me:9808: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009809 (eval $ac_try) 2>&5
9810 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009811 echo "$as_me:9811: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009812 (exit $ac_status); }; }; then
Marcus Meissner028e9a11999-08-04 15:07:56 +00009813 wine_cv_linux_joystick_22_api=yes
9814else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009815 echo "$as_me: failed program was:" >&5
9816cat conftest.$ac_ext >&5
9817wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +00009818fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009819rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +00009820
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009821fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00009822echo "$as_me:9822: result: $wine_cv_linux_joystick_22_api" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009823echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
Rein Klazes87d224a2000-04-24 17:33:49 +00009824 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +00009825 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009826
9827cat >>confdefs.h <<\EOF
Marcus Meissner028e9a11999-08-04 15:07:56 +00009828#define HAVE_LINUX_22_JOYSTICK_API 1
9829EOF
9830
9831 fi
9832fi
9833
Marcus Meissner028e9a11999-08-04 15:07:56 +00009834if test "$ac_cv_header_sys_vfs_h" = "yes"
9835then
Shi Quan He6b0720f2002-03-21 02:58:39 +00009836 echo "$as_me:9836: checking whether sys/vfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009837echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
9838if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
9839 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner028e9a11999-08-04 15:07:56 +00009840else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009841 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009842#line 9842 "configure"
Marcus Meissner028e9a11999-08-04 15:07:56 +00009843#include "confdefs.h"
9844
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00009845 #include <sys/types.h>
9846 #ifdef HAVE_SYS_PARAM_H
9847 # include <sys/param.h>
9848 #endif
9849 #include <sys/vfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009850
9851int
9852main ()
9853{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00009854
9855 struct statfs stfs;
9856
9857 memset(&stfs,0,sizeof(stfs));
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009858
9859 ;
9860 return 0;
9861}
9862_ACEOF
9863rm -f conftest.$ac_objext
Shi Quan He6b0720f2002-03-21 02:58:39 +00009864if { (eval echo "$as_me:9864: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009865 (eval $ac_compile) 2>&5
9866 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009867 echo "$as_me:9867: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009868 (exit $ac_status); } &&
9869 { ac_try='test -s conftest.$ac_objext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00009870 { (eval echo "$as_me:9870: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009871 (eval $ac_try) 2>&5
9872 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009873 echo "$as_me:9873: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009874 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00009875 wine_cv_sys_vfs_has_statfs=yes
9876else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009877 echo "$as_me: failed program was:" >&5
9878cat conftest.$ac_ext >&5
9879wine_cv_sys_vfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00009880
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009881fi
9882rm -f conftest.$ac_objext conftest.$ac_ext
9883
9884fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00009885echo "$as_me:9885: result: $wine_cv_sys_vfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009886echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00009887 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
9888 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009889
9890cat >>confdefs.h <<\EOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00009891#define STATFS_DEFINED_BY_SYS_VFS 1
9892EOF
9893
9894 fi
9895fi
9896
9897if test "$ac_cv_header_sys_statfs_h" = "yes"
9898then
Shi Quan He6b0720f2002-03-21 02:58:39 +00009899 echo "$as_me:9899: checking whether sys/statfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009900echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
9901if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
9902 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00009903else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009904 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009905#line 9905 "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00009906#include "confdefs.h"
9907
9908 #include <sys/types.h>
9909 #ifdef HAVE_SYS_PARAM_H
9910 # include <sys/param.h>
9911 #endif
9912 #include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009913
9914int
9915main ()
9916{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00009917
9918 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009919
9920 ;
9921 return 0;
9922}
9923_ACEOF
9924rm -f conftest.$ac_objext
Shi Quan He6b0720f2002-03-21 02:58:39 +00009925if { (eval echo "$as_me:9925: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009926 (eval $ac_compile) 2>&5
9927 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009928 echo "$as_me:9928: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009929 (exit $ac_status); } &&
9930 { ac_try='test -s conftest.$ac_objext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00009931 { (eval echo "$as_me:9931: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009932 (eval $ac_try) 2>&5
9933 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009934 echo "$as_me:9934: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009935 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00009936 wine_cv_sys_statfs_has_statfs=yes
9937else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009938 echo "$as_me: failed program was:" >&5
9939cat conftest.$ac_ext >&5
9940wine_cv_sys_statfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00009941
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009942fi
9943rm -f conftest.$ac_objext conftest.$ac_ext
9944
9945fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00009946echo "$as_me:9946: result: $wine_cv_sys_statfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009947echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00009948 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
9949 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009950
9951cat >>confdefs.h <<\EOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00009952#define STATFS_DEFINED_BY_SYS_STATFS 1
9953EOF
9954
9955 fi
9956fi
9957
9958if test "$ac_cv_header_sys_mount_h" = "yes"
9959then
Shi Quan He6b0720f2002-03-21 02:58:39 +00009960 echo "$as_me:9960: checking whether sys/mount.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009961echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
9962if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
9963 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00009964else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009965 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009966#line 9966 "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00009967#include "confdefs.h"
9968
9969 #include <sys/types.h>
9970 #ifdef HAVE_SYS_PARAM_H
9971 # include <sys/param.h>
9972 #endif
9973 #include <sys/mount.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009974
9975int
9976main ()
9977{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00009978
9979 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009980
9981 ;
9982 return 0;
9983}
9984_ACEOF
9985rm -f conftest.$ac_objext
Shi Quan He6b0720f2002-03-21 02:58:39 +00009986if { (eval echo "$as_me:9986: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009987 (eval $ac_compile) 2>&5
9988 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009989 echo "$as_me:9989: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009990 (exit $ac_status); } &&
9991 { ac_try='test -s conftest.$ac_objext'
Shi Quan He6b0720f2002-03-21 02:58:39 +00009992 { (eval echo "$as_me:9992: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009993 (eval $ac_try) 2>&5
9994 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +00009995 echo "$as_me:9995: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009996 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00009997 wine_cv_sys_mount_has_statfs=yes
9998else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009999 echo "$as_me: failed program was:" >&5
10000cat conftest.$ac_ext >&5
10001wine_cv_sys_mount_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000010002
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010003fi
10004rm -f conftest.$ac_objext conftest.$ac_ext
10005
10006fi
Shi Quan He6b0720f2002-03-21 02:58:39 +000010007echo "$as_me:10007: result: $wine_cv_sys_mount_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010008echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000010009 if test "$wine_cv_sys_mount_has_statfs" = "yes"
10010 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010011
10012cat >>confdefs.h <<\EOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000010013#define STATFS_DEFINED_BY_SYS_MOUNT 1
10014EOF
10015
10016 fi
10017fi
10018
Shi Quan He6b0720f2002-03-21 02:58:39 +000010019echo "$as_me:10019: checking for f_bfree in struct statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010020echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
10021if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000010023else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010024 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +000010025#line 10025 "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000010026#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010027#include <sys/types.h>
10028#ifdef HAVE_SYS_PARAM_H
10029# include <sys/param.h>
10030#endif
10031#ifdef STATFS_DEFINED_BY_SYS_MOUNT
10032# include <sys/mount.h>
10033#else
10034# ifdef STATFS_DEFINED_BY_SYS_VFS
10035# include <sys/vfs.h>
10036# else
10037# ifdef STATFS_DEFINED_BY_SYS_STATFS
10038# include <sys/statfs.h>
10039# endif
10040# endif
10041#endif
10042int
10043main ()
10044{
10045struct statfs s; s.f_bfree = 0
10046 ;
10047 return 0;
10048}
10049_ACEOF
10050rm -f conftest.$ac_objext
Shi Quan He6b0720f2002-03-21 02:58:39 +000010051if { (eval echo "$as_me:10051: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010052 (eval $ac_compile) 2>&5
10053 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +000010054 echo "$as_me:10054: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010055 (exit $ac_status); } &&
10056 { ac_try='test -s conftest.$ac_objext'
Shi Quan He6b0720f2002-03-21 02:58:39 +000010057 { (eval echo "$as_me:10057: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010058 (eval $ac_try) 2>&5
10059 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +000010060 echo "$as_me:10060: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010061 (exit $ac_status); }; }; then
10062 ac_cv_c_statfs_f_bfree="yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000010063else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010064 echo "$as_me: failed program was:" >&5
10065cat conftest.$ac_ext >&5
10066ac_cv_c_statfs_f_bfree="no"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000010067fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010068rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000010069fi
Shi Quan He6b0720f2002-03-21 02:58:39 +000010070echo "$as_me:10070: result: $ac_cv_c_statfs_f_bfree" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010071echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
10072if test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000010073
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010074cat >>confdefs.h <<\EOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000010075#define STATFS_HAS_BFREE 1
10076EOF
10077
10078fi
10079
Shi Quan He6b0720f2002-03-21 02:58:39 +000010080echo "$as_me:10080: checking for f_bavail in struct statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010081echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
10082if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
10083 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010084else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010085 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +000010086#line 10086 "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010087#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010088#include <sys/types.h>
10089#ifdef HAVE_SYS_PARAM_H
10090# include <sys/param.h>
10091#endif
10092#ifdef STATFS_DEFINED_BY_SYS_MOUNT
10093# include <sys/mount.h>
10094#else
10095# ifdef STATFS_DEFINED_BY_SYS_VFS
10096# include <sys/vfs.h>
10097# else
10098# ifdef STATFS_DEFINED_BY_SYS_STATFS
10099# include <sys/statfs.h>
10100# endif
10101# endif
10102#endif
10103int
10104main ()
10105{
10106struct statfs s; s.f_bavail = 0
10107 ;
10108 return 0;
10109}
10110_ACEOF
10111rm -f conftest.$ac_objext
Shi Quan He6b0720f2002-03-21 02:58:39 +000010112if { (eval echo "$as_me:10112: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010113 (eval $ac_compile) 2>&5
10114 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +000010115 echo "$as_me:10115: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010116 (exit $ac_status); } &&
10117 { ac_try='test -s conftest.$ac_objext'
Shi Quan He6b0720f2002-03-21 02:58:39 +000010118 { (eval echo "$as_me:10118: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010119 (eval $ac_try) 2>&5
10120 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +000010121 echo "$as_me:10121: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010122 (exit $ac_status); }; }; then
10123 ac_cv_c_statfs_f_bavail="yes"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010124else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010125 echo "$as_me: failed program was:" >&5
10126cat conftest.$ac_ext >&5
10127ac_cv_c_statfs_f_bavail="no"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010128fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010129rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010130fi
Shi Quan He6b0720f2002-03-21 02:58:39 +000010131echo "$as_me:10131: result: $ac_cv_c_statfs_f_bavail" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010132echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
10133if test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010134
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010135cat >>confdefs.h <<\EOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010136#define STATFS_HAS_BAVAIL 1
10137EOF
10138
10139fi
10140
Shi Quan He6b0720f2002-03-21 02:58:39 +000010141echo "$as_me:10141: checking for msg_accrights in struct msghdr" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010142echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
10143if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard829fe321998-07-26 14:27:39 +000010145else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010146 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +000010147#line 10147 "configure"
Alexandre Julliard829fe321998-07-26 14:27:39 +000010148#include "confdefs.h"
10149#include <sys/types.h>
10150#include <sys/socket.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010151int
10152main ()
10153{
10154struct msghdr s; s.msg_accrights = 0
10155 ;
10156 return 0;
10157}
10158_ACEOF
10159rm -f conftest.$ac_objext
Shi Quan He6b0720f2002-03-21 02:58:39 +000010160if { (eval echo "$as_me:10160: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010161 (eval $ac_compile) 2>&5
10162 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +000010163 echo "$as_me:10163: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010164 (exit $ac_status); } &&
10165 { ac_try='test -s conftest.$ac_objext'
Shi Quan He6b0720f2002-03-21 02:58:39 +000010166 { (eval echo "$as_me:10166: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010167 (eval $ac_try) 2>&5
10168 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +000010169 echo "$as_me:10169: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010170 (exit $ac_status); }; }; then
10171 ac_cv_c_msghdr_msg_accrights="yes"
Alexandre Julliard829fe321998-07-26 14:27:39 +000010172else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010173 echo "$as_me: failed program was:" >&5
10174cat conftest.$ac_ext >&5
10175ac_cv_c_msghdr_msg_accrights="no"
Alexandre Julliard829fe321998-07-26 14:27:39 +000010176fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010177rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard829fe321998-07-26 14:27:39 +000010178fi
Shi Quan He6b0720f2002-03-21 02:58:39 +000010179echo "$as_me:10179: result: $ac_cv_c_msghdr_msg_accrights" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010180echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
10181if test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
Alexandre Julliard829fe321998-07-26 14:27:39 +000010182
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010183cat >>confdefs.h <<\EOF
Alexandre Julliard829fe321998-07-26 14:27:39 +000010184#define HAVE_MSGHDR_ACCRIGHTS 1
10185EOF
10186
10187fi
10188
Shi Quan He6b0720f2002-03-21 02:58:39 +000010189echo "$as_me:10189: checking for sa_len in struct sockaddr" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010190echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
10191if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
10192 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000010193else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010194 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +000010195#line 10195 "configure"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000010196#include "confdefs.h"
Juergen Lock2d33ab92000-02-13 16:03:29 +000010197#include <sys/types.h>
10198#include <sys/socket.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010199int
10200main ()
10201{
10202struct sockaddr s; s.sa_len = 0
10203 ;
10204 return 0;
10205}
10206_ACEOF
10207rm -f conftest.$ac_objext
Shi Quan He6b0720f2002-03-21 02:58:39 +000010208if { (eval echo "$as_me:10208: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010209 (eval $ac_compile) 2>&5
10210 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +000010211 echo "$as_me:10211: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010212 (exit $ac_status); } &&
10213 { ac_try='test -s conftest.$ac_objext'
Shi Quan He6b0720f2002-03-21 02:58:39 +000010214 { (eval echo "$as_me:10214: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010215 (eval $ac_try) 2>&5
10216 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +000010217 echo "$as_me:10217: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010218 (exit $ac_status); }; }; then
Patrik Stridvall09da9662001-07-08 22:30:50 +000010219 ac_cv_c_sockaddr_sa_len="yes"
10220else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010221 echo "$as_me: failed program was:" >&5
10222cat conftest.$ac_ext >&5
10223ac_cv_c_sockaddr_sa_len="no"
Patrik Stridvall09da9662001-07-08 22:30:50 +000010224fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010225rm -f conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall09da9662001-07-08 22:30:50 +000010226fi
Shi Quan He6b0720f2002-03-21 02:58:39 +000010227echo "$as_me:10227: result: $ac_cv_c_sockaddr_sa_len" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010228echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
10229if test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
Patrik Stridvall09da9662001-07-08 22:30:50 +000010230
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010231cat >>confdefs.h <<\EOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000010232#define HAVE_SOCKADDR_SA_LEN 1
10233EOF
10234
10235fi
10236
Shi Quan He6b0720f2002-03-21 02:58:39 +000010237echo "$as_me:10237: checking for sun_len in struct sockaddr_un" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010238echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
10239if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
10240 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall09da9662001-07-08 22:30:50 +000010241else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010242 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +000010243#line 10243 "configure"
Patrik Stridvall09da9662001-07-08 22:30:50 +000010244#include "confdefs.h"
10245#include <sys/types.h>
10246#include <sys/socket.h>
Juergen Lock2d33ab92000-02-13 16:03:29 +000010247#include <sys/un.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010248int
10249main ()
10250{
10251struct sockaddr_un s; s.sun_len = 0
10252 ;
10253 return 0;
10254}
10255_ACEOF
10256rm -f conftest.$ac_objext
Shi Quan He6b0720f2002-03-21 02:58:39 +000010257if { (eval echo "$as_me:10257: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010258 (eval $ac_compile) 2>&5
10259 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +000010260 echo "$as_me:10260: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010261 (exit $ac_status); } &&
10262 { ac_try='test -s conftest.$ac_objext'
Shi Quan He6b0720f2002-03-21 02:58:39 +000010263 { (eval echo "$as_me:10263: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010264 (eval $ac_try) 2>&5
10265 ac_status=$?
Shi Quan He6b0720f2002-03-21 02:58:39 +000010266 echo "$as_me:10266: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010267 (exit $ac_status); }; }; then
10268 ac_cv_c_sockaddr_un_sun_len="yes"
Juergen Lock2d33ab92000-02-13 16:03:29 +000010269else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010270 echo "$as_me: failed program was:" >&5
10271cat conftest.$ac_ext >&5
10272ac_cv_c_sockaddr_un_sun_len="no"
Juergen Lock2d33ab92000-02-13 16:03:29 +000010273fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010274rm -f conftest.$ac_objext conftest.$ac_ext
Juergen Lock2d33ab92000-02-13 16:03:29 +000010275fi
Shi Quan He6b0720f2002-03-21 02:58:39 +000010276echo "$as_me:10276: result: $ac_cv_c_sockaddr_un_sun_len" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010277echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
10278if test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
Juergen Lock2d33ab92000-02-13 16:03:29 +000010279
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010280cat >>confdefs.h <<\EOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000010281#define HAVE_SOCKADDR_SUN_LEN 1
10282EOF
10283
10284fi
10285
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010286case $target_cpu in
10287 *i345678986* )
Shi Quan He6b0720f2002-03-21 02:58:39 +000010288 echo "$as_me:10288: checking whether we need to define __i386__" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010289echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
10290if test "${ac_cv_cpp_def_i386+set}" = set; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000010292else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010293 cat >conftest.$ac_ext <<_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +000010294#line 10294 "configure"
Juergen Lock2d33ab92000-02-13 16:03:29 +000010295#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010296#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000010297yes
10298#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010299_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000010300if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10301 egrep "yes" >/dev/null 2>&1; then
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000010302 ac_cv_cpp_def_i386="yes"
10303else
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000010304 ac_cv_cpp_def_i386="no"
10305fi
10306rm -f conftest*
10307
10308fi
Shi Quan He6b0720f2002-03-21 02:58:39 +000010309echo "$as_me:10309: result: $ac_cv_cpp_def_i386" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010310echo "${ECHO_T}$ac_cv_cpp_def_i386" >&6
10311 ;;
10312esac
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000010313if test "$ac_cv_cpp_def_i386" = "yes"
10314then
10315 CFLAGS="$CFLAGS -D__i386__"
Patrik Stridvalla9be64e1999-07-31 17:39:44 +000010316 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000010317fi
10318
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010319ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
Marcus Meissnera7f5cb51999-04-16 08:47:41 +000010320
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010321ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
Marcus Meissnera7f5cb51999-04-16 08:47:41 +000010322
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010323ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
Alexandre Julliard829fe321998-07-26 14:27:39 +000010324
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010325ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
François Gouget14259412001-11-06 20:57:11 +000010326
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010327ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
François Gouget14259412001-11-06 20:57:11 +000010328
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010329ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000010330
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010331ac_config_commands="$ac_config_commands dlls/dinput/joystick"
10332
10333ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
10334
10335ac_config_commands="$ac_config_commands dlls/dinput/mouse"
10336
10337ac_config_commands="$ac_config_commands dlls/kernel/messages"
10338
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000010339ac_config_commands="$ac_config_commands dlls/kernel/tests"
10340
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010341ac_config_commands="$ac_config_commands dlls/user/dde"
10342
10343ac_config_commands="$ac_config_commands dlls/user/resources"
10344
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000010345ac_config_commands="$ac_config_commands dlls/user/tests"
10346
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010347ac_config_commands="$ac_config_commands dlls/wineps/data"
10348
10349ac_config_commands="$ac_config_commands include/wine"
10350
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000010351ac_config_commands="$ac_config_commands programs/regapi/tests"
10352
10353ac_config_commands="$ac_config_commands programs/winetest/tests"
10354
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010355ac_config_commands="$ac_config_commands include/wine/version.h"
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000010356
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000010357MAKE_RULES=Make.rules
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010358
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +000010359MAKE_DLL_RULES=dlls/Makedll.rules
10360
Alexandre Julliard626f4252000-11-10 23:35:20 +000010361MAKE_PROG_RULES=programs/Makeprog.rules
10362
Shi Quan He6b0720f2002-03-21 02:58:39 +000010363ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules programs/Makeprog.rules Makefile console/Makefile controls/Makefile debugger/Makefile dlls/Makefile dlls/advapi32/Makefile dlls/avicap32/Makefile dlls/avifil32/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/msdmo/Makefile dlls/msimg32/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/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 files/Makefile graphics/Makefile graphics/enhmetafiledrv/Makefile graphics/metafiledrv/Makefile graphics/win16drv/Makefile graphics/x11drv/Makefile if1632/Makefile include/Makefile library/Makefile libtest/Makefile loader/Makefile loader/ne/Makefile memory/Makefile misc/Makefile miscemu/Makefile msdos/Makefile objects/Makefile ole/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regtest/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineconsole/Makefile programs/winemine/Makefile programs/winetest/Makefile programs/winhelp/Makefile programs/winver/Makefile relay32/Makefile scheduler/Makefile server/Makefile tools/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wrc/Makefile tsx11/Makefile unicode/Makefile win32/Makefile windows/Makefile windows/x11drv/Makefile"
Alexandre Julliard626f4252000-11-10 23:35:20 +000010364
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010365cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010366# This file is a shell script that caches the results of configure
10367# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010368# scripts and configure runs, see configure's option --config-cache.
10369# It is not useful on other systems. If it contains results you don't
10370# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010371#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010372# config.status only pays attention to the cache file if you give it
10373# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010374#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010375# `ac_cv_env_foo' variables (set or unset) will be overriden when
10376# loading this file, other *unset* `ac_cv_foo' will be assigned the
10377# following values.
10378
10379_ACEOF
10380
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000010381# The following way of writing the cache mishandles newlines in values,
10382# but we know of no workaround that is simple, portable, and efficient.
10383# So, don't put newlines in cache variables' values.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010384# Ultrix sh set writes to stderr and can't be redirected directly,
10385# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010386{
10387 (set) 2>&1 |
10388 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10389 *ac_space=\ *)
10390 # `set' does not quote correctly, so add quotes (double-quote
10391 # substitution turns \\\\ into \\, and sed turns \\ into \).
10392 sed -n \
10393 "s/'/'\\\\''/g;
10394 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10395 ;;
10396 *)
10397 # `set' quotes correctly as required by POSIX, so do not add quotes.
10398 sed -n \
10399 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10400 ;;
10401 esac;
10402} |
10403 sed '
10404 t clear
10405 : clear
10406 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10407 t end
10408 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10409 : end' >>confcache
10410if cmp -s $cache_file confcache; then :; else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010411 if test -w $cache_file; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010412 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10413 cat confcache >$cache_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010414 else
10415 echo "not updating unwritable cache $cache_file"
10416 fi
10417fi
10418rm -f confcache
10419
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010420test "x$prefix" = xNONE && prefix=$ac_default_prefix
10421# Let make expand exec_prefix.
10422test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10423
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010424# VPATH may cause trouble with some makes, so we remove $(srcdir),
10425# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10426# trailing colons and then remove the whole line if VPATH becomes empty
10427# (actually we leave an empty line to preserve line numbers).
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010428if test "x$srcdir" = x.; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010429 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10430s/:*\$(srcdir):*/:/;
10431s/:*\${srcdir}:*/:/;
10432s/:*@srcdir@:*/:/;
10433s/^\([^=]*=[ ]*\):*/\1/;
10434s/:*$//;
10435s/^[^=]*=[ ]*$//;
10436}'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010437fi
10438
Alexandre Julliard18f92e71996-07-17 20:02:21 +000010439DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010440
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010441: ${CONFIG_STATUS=./config.status}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010442ac_clean_files_save=$ac_clean_files
10443ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Shi Quan He6b0720f2002-03-21 02:58:39 +000010444{ echo "$as_me:10444: creating $CONFIG_STATUS" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010445echo "$as_me: creating $CONFIG_STATUS" >&6;}
10446cat >$CONFIG_STATUS <<_ACEOF
10447#! $SHELL
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010448# Generated automatically by configure.
10449# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010450# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010451# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010452
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010453debug=false
10454SHELL=\${CONFIG_SHELL-$SHELL}
10455ac_cs_invocation="\$0 \$@"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010456
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010457_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010458
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010459cat >>$CONFIG_STATUS <<\_ACEOF
10460# Be Bourne compatible
10461if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10462 emulate sh
10463 NULLCMD=:
10464elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10465 set -o posix
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000010466fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010467
10468# Name of the executable.
10469as_me=`echo "$0" |sed 's,.*[\\/],,'`
10470
10471if expr a : '\(a\)' >/dev/null 2>&1; then
10472 as_expr=expr
10473else
10474 as_expr=false
10475fi
10476
10477rm -f conf$$ conf$$.exe conf$$.file
10478echo >conf$$.file
10479if ln -s conf$$.file conf$$ 2>/dev/null; then
10480 # We could just check for DJGPP; but this test a) works b) is more generic
10481 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10482 if test -f conf$$.exe; then
10483 # Don't use ln at all; we don't have any links
10484 as_ln_s='cp -p'
10485 else
10486 as_ln_s='ln -s'
10487 fi
10488elif ln conf$$.file conf$$ 2>/dev/null; then
10489 as_ln_s=ln
10490else
10491 as_ln_s='cp -p'
10492fi
10493rm -f conf$$ conf$$.exe conf$$.file
10494
10495as_executable_p="test -f"
10496
10497# Support unset when possible.
10498if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10499 as_unset=unset
10500else
10501 as_unset=false
10502fi
10503
10504# NLS nuisances.
10505$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
10506$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
10507$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
10508$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
10509$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
10510$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
10511$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
10512$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
10513
10514# IFS
10515# We need space, tab and new line, in precisely that order.
10516as_nl='
10517'
10518IFS=" $as_nl"
10519
10520# CDPATH.
10521$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
10522
10523exec 6>&1
10524
10525_ACEOF
10526
10527# Files that config.status was made for.
10528if test -n "$ac_config_files"; then
10529 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10530fi
10531
10532if test -n "$ac_config_headers"; then
10533 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10534fi
10535
10536if test -n "$ac_config_links"; then
10537 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10538fi
10539
10540if test -n "$ac_config_commands"; then
10541 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10542fi
10543
10544cat >>$CONFIG_STATUS <<\EOF
10545
10546ac_cs_usage="\
10547\`$as_me' instantiates files from templates according to the
10548current configuration.
10549
10550Usage: $0 [OPTIONS] [FILE]...
10551
10552 -h, --help print this help, then exit
10553 -V, --version print version number, then exit
10554 -d, --debug don't remove temporary files
10555 --recheck update $as_me by reconfiguring in the same conditions
10556 --file=FILE[:TEMPLATE]
10557 instantiate the configuration file FILE
10558 --header=FILE[:TEMPLATE]
10559 instantiate the configuration header FILE
10560
10561Configuration files:
10562$config_files
10563
10564Configuration headers:
10565$config_headers
10566
10567Configuration commands:
10568$config_commands
10569
10570Report bugs to <bug-autoconf@gnu.org>."
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000010571EOF
10572
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010573cat >>$CONFIG_STATUS <<EOF
10574ac_cs_version="\\
Alexandre Julliardc6adc362002-03-10 20:14:37 +000010575Wine config.status 20020310
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010576configured by $0, generated by GNU Autoconf 2.52,
10577 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010578
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010579Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10580Free Software Foundation, Inc.
10581This config.status script is free software; the Free Software Foundation
10582gives unlimited permission to copy, distribute and modify it."
10583srcdir=$srcdir
10584INSTALL="$INSTALL"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010585EOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010586
10587cat >>$CONFIG_STATUS <<\EOF
10588# If no file are specified by the user, then we need to provide default
10589# value. By we need to know if files were specified by the user.
10590ac_need_defaults=:
10591while test $# != 0
10592do
10593 case $1 in
10594 --*=*)
10595 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10596 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10597 shift
10598 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
10599 shift
10600 ;;
10601 -*);;
10602 *) # This is not an option, so the user has probably given explicit
10603 # arguments.
10604 ac_need_defaults=false;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010605 esac
10606
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010607 case $1 in
10608 # Handling of the options.
10609EOF
10610cat >>$CONFIG_STATUS <<EOF
10611 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10612 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
10613 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
10614EOF
10615cat >>$CONFIG_STATUS <<\EOF
10616 --version | --vers* | -V )
10617 echo "$ac_cs_version"; exit 0 ;;
10618 --he | --h)
10619 # Conflict between --help and --header
Shi Quan He6b0720f2002-03-21 02:58:39 +000010620 { { echo "$as_me:10620: error: ambiguous option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010621Try \`$0 --help' for more information." >&5
10622echo "$as_me: error: ambiguous option: $1
10623Try \`$0 --help' for more information." >&2;}
10624 { (exit 1); exit 1; }; };;
10625 --help | --hel | -h )
10626 echo "$ac_cs_usage"; exit 0 ;;
10627 --debug | --d* | -d )
10628 debug=: ;;
10629 --file | --fil | --fi | --f )
10630 shift
10631 CONFIG_FILES="$CONFIG_FILES $1"
10632 ac_need_defaults=false;;
10633 --header | --heade | --head | --hea )
10634 shift
10635 CONFIG_HEADERS="$CONFIG_HEADERS $1"
10636 ac_need_defaults=false;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010637
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010638 # This is an error.
Shi Quan He6b0720f2002-03-21 02:58:39 +000010639 -*) { { echo "$as_me:10639: error: unrecognized option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010640Try \`$0 --help' for more information." >&5
10641echo "$as_me: error: unrecognized option: $1
10642Try \`$0 --help' for more information." >&2;}
10643 { (exit 1); exit 1; }; } ;;
10644
10645 *) ac_config_targets="$ac_config_targets $1" ;;
10646
10647 esac
10648 shift
10649done
10650
10651exec 5>>config.log
10652cat >&5 << _ACEOF
10653
10654## ----------------------- ##
10655## Running config.status. ##
10656## ----------------------- ##
10657
Alexandre Julliardc6adc362002-03-10 20:14:37 +000010658This file was extended by $as_me (Wine 20020310) 2.52, executed with
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010659 CONFIG_FILES = $CONFIG_FILES
10660 CONFIG_HEADERS = $CONFIG_HEADERS
10661 CONFIG_LINKS = $CONFIG_LINKS
10662 CONFIG_COMMANDS = $CONFIG_COMMANDS
10663 > $ac_cs_invocation
10664on `(hostname || uname -n) 2>/dev/null | sed 1q`
10665
10666_ACEOF
10667EOF
10668
10669cat >>$CONFIG_STATUS <<EOF
10670#
10671# INIT-COMMANDS section.
10672#
10673
10674wine_version=$PACKAGE_VERSION
10675
10676EOF
10677
10678cat >>$CONFIG_STATUS <<\EOF
10679for ac_config_target in $ac_config_targets
10680do
10681 case "$ac_config_target" in
10682 # Handling of arguments.
10683 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
10684 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
10685 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
10686 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10687 "console/Makefile" ) CONFIG_FILES="$CONFIG_FILES console/Makefile" ;;
10688 "controls/Makefile" ) CONFIG_FILES="$CONFIG_FILES controls/Makefile" ;;
10689 "debugger/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/Makefile" ;;
10690 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
10691 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
10692 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
10693 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
10694 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
10695 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
10696 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
10697 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
10698 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
10699 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
10700 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
10701 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
10702 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
10703 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
10704 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
10705 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
10706 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
10707 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
10708 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
10709 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
10710 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
10711 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
10712 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
10713 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
10714 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
10715 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
10716 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
10717 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
10718 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
10719 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
10720 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
10721 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
10722 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
10723 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
10724 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
10725 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
10726 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
10727 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
10728 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
10729 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
10730 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
10731 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
10732 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
10733 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
10734 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
10735 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
10736 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
10737 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
10738 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
10739 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
10740 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
10741 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
10742 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
10743 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
10744 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
10745 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
10746 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000010747 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010748 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
10749 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
10750 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
10751 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
10752 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
10753 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
10754 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
10755 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
10756 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
10757 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
10758 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
10759 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
10760 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
10761 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
10762 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
10763 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
10764 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
10765 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010766 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010767 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
10768 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
10769 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
10770 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
10771 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
10772 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
10773 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
10774 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
10775 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
10776 "files/Makefile" ) CONFIG_FILES="$CONFIG_FILES files/Makefile" ;;
10777 "graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES graphics/Makefile" ;;
10778 "graphics/enhmetafiledrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES graphics/enhmetafiledrv/Makefile" ;;
10779 "graphics/metafiledrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES graphics/metafiledrv/Makefile" ;;
10780 "graphics/win16drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES graphics/win16drv/Makefile" ;;
10781 "graphics/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES graphics/x11drv/Makefile" ;;
10782 "if1632/Makefile" ) CONFIG_FILES="$CONFIG_FILES if1632/Makefile" ;;
10783 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10784 "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
10785 "libtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES libtest/Makefile" ;;
10786 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
10787 "loader/ne/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/ne/Makefile" ;;
10788 "memory/Makefile" ) CONFIG_FILES="$CONFIG_FILES memory/Makefile" ;;
10789 "misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
10790 "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
10791 "msdos/Makefile" ) CONFIG_FILES="$CONFIG_FILES msdos/Makefile" ;;
10792 "objects/Makefile" ) CONFIG_FILES="$CONFIG_FILES objects/Makefile" ;;
10793 "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
10794 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
10795 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
10796 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
10797 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
10798 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
10799 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
10800 "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
10801 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
10802 "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
10803 "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
10804 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
10805 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
10806 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
10807 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
10808 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
10809 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
10810 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
10811 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
10812 "relay32/Makefile" ) CONFIG_FILES="$CONFIG_FILES relay32/Makefile" ;;
10813 "scheduler/Makefile" ) CONFIG_FILES="$CONFIG_FILES scheduler/Makefile" ;;
10814 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
10815 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10816 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
10817 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
10818 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
10819 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
10820 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
10821 "tsx11/Makefile" ) CONFIG_FILES="$CONFIG_FILES tsx11/Makefile" ;;
10822 "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
10823 "win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
10824 "windows/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows/Makefile" ;;
10825 "windows/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows/x11drv/Makefile" ;;
10826 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
10827 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
10828 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
10829 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
10830 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
10831 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
10832 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
10833 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
10834 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
10835 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000010836 "dlls/kernel/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/tests" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010837 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
10838 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000010839 "dlls/user/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/tests" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010840 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
10841 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000010842 "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
10843 "programs/winetest/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/winetest/tests" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010844 "include/wine/version.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine/version.h" ;;
10845 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000010846 *) { { echo "$as_me:10846: error: invalid argument: $ac_config_target" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010847echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10848 { (exit 1); exit 1; }; };;
10849 esac
10850done
10851
10852# If the user did not use the arguments to specify the items to instantiate,
10853# then the envvar interface is used. Set only those that are not.
10854# We use the long form for the default assignment because of an extremely
10855# bizarre bug on SunOS 4.1.3.
10856if $ac_need_defaults; then
10857 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10858 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10859 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10860fi
10861
10862# Create a temporary directory, and hook for its removal unless debugging.
10863$debug ||
10864{
10865 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10866 trap '{ (exit 1); exit 1; }' 1 2 13 15
10867}
10868
10869# Create a (secure) tmp directory for tmp files.
10870: ${TMPDIR=/tmp}
10871{
10872 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
10873 test -n "$tmp" && test -d "$tmp"
10874} ||
10875{
10876 tmp=$TMPDIR/cs$$-$RANDOM
10877 (umask 077 && mkdir $tmp)
10878} ||
10879{
10880 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
10881 { (exit 1); exit 1; }
10882}
10883
10884EOF
10885
10886cat >>$CONFIG_STATUS <<EOF
10887
10888#
10889# CONFIG_FILES section.
10890#
10891
10892# No need to generate the scripts if there are no CONFIG_FILES.
10893# This happens for instance when ./config.status config.h
10894if test -n "\$CONFIG_FILES"; then
10895 # Protect against being on the right side of a sed subst in config.status.
10896 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10897 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10898s,@SHELL@,$SHELL,;t t
10899s,@exec_prefix@,$exec_prefix,;t t
10900s,@prefix@,$prefix,;t t
10901s,@program_transform_name@,$program_transform_name,;t t
10902s,@bindir@,$bindir,;t t
10903s,@sbindir@,$sbindir,;t t
10904s,@libexecdir@,$libexecdir,;t t
10905s,@datadir@,$datadir,;t t
10906s,@sysconfdir@,$sysconfdir,;t t
10907s,@sharedstatedir@,$sharedstatedir,;t t
10908s,@localstatedir@,$localstatedir,;t t
10909s,@libdir@,$libdir,;t t
10910s,@includedir@,$includedir,;t t
10911s,@oldincludedir@,$oldincludedir,;t t
10912s,@infodir@,$infodir,;t t
10913s,@mandir@,$mandir,;t t
10914s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10915s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10916s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10917s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10918s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10919s,@build_alias@,$build_alias,;t t
10920s,@host_alias@,$host_alias,;t t
10921s,@target_alias@,$target_alias,;t t
10922s,@ECHO_C@,$ECHO_C,;t t
10923s,@ECHO_N@,$ECHO_N,;t t
10924s,@ECHO_T@,$ECHO_T,;t t
10925s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10926s,@DEFS@,$DEFS,;t t
10927s,@LIBS@,$LIBS,;t t
10928s,@OPTIONS@,$OPTIONS,;t t
10929s,@build@,$build,;t t
10930s,@build_cpu@,$build_cpu,;t t
10931s,@build_vendor@,$build_vendor,;t t
10932s,@build_os@,$build_os,;t t
10933s,@host@,$host,;t t
10934s,@host_cpu@,$host_cpu,;t t
10935s,@host_vendor@,$host_vendor,;t t
10936s,@host_os@,$host_os,;t t
10937s,@target@,$target,;t t
10938s,@target_cpu@,$target_cpu,;t t
10939s,@target_vendor@,$target_vendor,;t t
10940s,@target_os@,$target_os,;t t
10941s,@SET_MAKE@,$SET_MAKE,;t t
10942s,@CC@,$CC,;t t
10943s,@CFLAGS@,$CFLAGS,;t t
10944s,@LDFLAGS@,$LDFLAGS,;t t
10945s,@CPPFLAGS@,$CPPFLAGS,;t t
10946s,@ac_ct_CC@,$ac_ct_CC,;t t
10947s,@EXEEXT@,$EXEEXT,;t t
10948s,@OBJEXT@,$OBJEXT,;t t
10949s,@CPP@,$CPP,;t t
10950s,@X_CFLAGS@,$X_CFLAGS,;t t
10951s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10952s,@X_LIBS@,$X_LIBS,;t t
10953s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10954s,@YACC@,$YACC,;t t
10955s,@LEX@,$LEX,;t t
10956s,@LEXLIB@,$LEXLIB,;t t
10957s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
10958s,@XYACC@,$XYACC,;t t
10959s,@XLEX@,$XLEX,;t t
10960s,@RANLIB@,$RANLIB,;t t
10961s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10962s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10963s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10964s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10965s,@LN_S@,$LN_S,;t t
10966s,@C2MAN@,$C2MAN,;t t
10967s,@LDCONFIG@,$LDCONFIG,;t t
10968s,@LINT@,$LINT,;t t
10969s,@LINTFLAGS@,$LINTFLAGS,;t t
10970s,@LDCOMBINE@,$LDCOMBINE,;t t
10971s,@UTILLIBS@,$UTILLIBS,;t t
10972s,@DLLIBS@,$DLLIBS,;t t
10973s,@JPEGLIB@,$JPEGLIB,;t t
10974s,@XLIB@,$XLIB,;t t
10975s,@XFILES@,$XFILES,;t t
10976s,@OPENGLFILES@,$OPENGLFILES,;t t
10977s,@GLU32FILES@,$GLU32FILES,;t t
10978s,@CURSESLIBS@,$CURSESLIBS,;t t
10979s,@CUPSLIBS@,$CUPSLIBS,;t t
Shi Quan He6b0720f2002-03-21 02:58:39 +000010980s,@sane_devel@,$sane_devel,;t t
10981s,@SANELIBS@,$SANELIBS,;t t
10982s,@SANEINCL@,$SANEINCL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010983s,@ft_devel@,$ft_devel,;t t
10984s,@ft_devel2@,$ft_devel2,;t t
10985s,@FREETYPELIBS@,$FREETYPELIBS,;t t
10986s,@FREETYPEINCL@,$FREETYPEINCL,;t t
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010987s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
10988s,@ARTSLIBS@,$ARTSLIBS,;t t
10989s,@ARTSINCL@,$ARTSINCL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010990s,@DLLWRAP@,$DLLWRAP,;t t
10991s,@DLLFLAGS@,$DLLFLAGS,;t t
Alexandre Julliardc1bfca02002-03-20 22:19:06 +000010992s,@DLLEXT@,$DLLEXT,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010993s,@LDSHARED@,$LDSHARED,;t t
10994s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
10995s,@LIBEXT@,$LIBEXT,;t t
10996s,@LDPATH@,$LDPATH,;t t
10997s,@ALLOCA@,$ALLOCA,;t t
10998/@MAKE_RULES@/r $MAKE_RULES
10999s,@MAKE_RULES@,,;t t
11000/@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
11001s,@MAKE_DLL_RULES@,,;t t
11002/@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
11003s,@MAKE_PROG_RULES@,,;t t
11004CEOF
11005
11006EOF
11007
11008 cat >>$CONFIG_STATUS <<\EOF
11009 # Split the substitutions into bite-sized pieces for seds with
11010 # small command number limits, like on Digital OSF/1 and HP-UX.
11011 ac_max_sed_lines=48
11012 ac_sed_frag=1 # Number of current file.
11013 ac_beg=1 # First line for current file.
11014 ac_end=$ac_max_sed_lines # Line after last line for current file.
11015 ac_more_lines=:
11016 ac_sed_cmds=
11017 while $ac_more_lines; do
11018 if test $ac_beg -gt 1; then
11019 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11020 else
11021 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11022 fi
11023 if test ! -s $tmp/subs.frag; then
11024 ac_more_lines=false
11025 else
11026 # The purpose of the label and of the branching condition is to
11027 # speed up the sed processing (if there are no `@' at all, there
11028 # is no need to browse any of the substitutions).
11029 # These are the two extra sed commands mentioned above.
11030 (echo ':t
11031 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11032 if test -z "$ac_sed_cmds"; then
11033 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11034 else
11035 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11036 fi
11037 ac_sed_frag=`expr $ac_sed_frag + 1`
11038 ac_beg=$ac_end
11039 ac_end=`expr $ac_end + $ac_max_sed_lines`
11040 fi
11041 done
11042 if test -z "$ac_sed_cmds"; then
11043 ac_sed_cmds=cat
11044 fi
11045fi # test -n "$CONFIG_FILES"
11046
11047EOF
11048cat >>$CONFIG_STATUS <<\EOF
11049for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11050 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11051 case $ac_file in
11052 - | *:- | *:-:* ) # input from stdin
11053 cat >$tmp/stdin
11054 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11055 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11056 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11057 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11058 * ) ac_file_in=$ac_file.in ;;
11059 esac
11060
11061 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11062 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11063 X"$ac_file" : 'X\(//\)[^/]' \| \
11064 X"$ac_file" : 'X\(//\)$' \| \
11065 X"$ac_file" : 'X\(/\)' \| \
11066 . : '\(.\)' 2>/dev/null ||
11067echo X"$ac_file" |
11068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11069 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11070 /^X\(\/\/\)$/{ s//\1/; q; }
11071 /^X\(\/\).*/{ s//\1/; q; }
11072 s/.*/./; q'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011073 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011074 { case "$ac_dir" in
11075 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11076 *) as_incr_dir=.;;
11077esac
11078as_dummy="$ac_dir"
11079for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11080 case $as_mkdir_dir in
11081 # Skip DOS drivespec
11082 ?:) as_incr_dir=$as_mkdir_dir ;;
11083 *)
11084 as_incr_dir=$as_incr_dir/$as_mkdir_dir
11085 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
11086 ;;
11087 esac
11088done; }
11089
11090 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011091 # A "../" for each directory in $ac_dir_suffix.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011092 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011093 else
11094 ac_dir_suffix= ac_dots=
11095 fi
11096
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011097 case $srcdir in
11098 .) ac_srcdir=.
11099 if test -z "$ac_dots"; then
11100 ac_top_srcdir=.
11101 else
11102 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
11103 fi ;;
11104 [\\/]* | ?:[\\/]* )
11105 ac_srcdir=$srcdir$ac_dir_suffix;
11106 ac_top_srcdir=$srcdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011107 *) # Relative path.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011108 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
11109 ac_top_srcdir=$ac_dots$srcdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011110 esac
11111
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011112 case $INSTALL in
11113 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11114 *) ac_INSTALL=$ac_dots$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000011115 esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000011116
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011117 if test x"$ac_file" != x-; then
Shi Quan He6b0720f2002-03-21 02:58:39 +000011118 { echo "$as_me:11118: creating $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011119echo "$as_me: creating $ac_file" >&6;}
11120 rm -f "$ac_file"
11121 fi
11122 # Let's still pretend it is `configure' which instantiates (i.e., don't
11123 # use $as_me), people would be surprised to read:
11124 # /* config.h. Generated automatically by config.status. */
11125 configure_input="Generated automatically from `echo $ac_file_in |
11126 sed 's,.*/,,'` by configure."
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000011127
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011128 # First look for the input files in the build tree, otherwise in the
11129 # src tree.
11130 ac_file_inputs=`IFS=:
11131 for f in $ac_file_in; do
11132 case $f in
11133 -) echo $tmp/stdin ;;
11134 [\\/$]*)
11135 # Absolute (can't be DOS-style, as IFS=:)
Shi Quan He6b0720f2002-03-21 02:58:39 +000011136 test -f "$f" || { { echo "$as_me:11136: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011137echo "$as_me: error: cannot find input file: $f" >&2;}
11138 { (exit 1); exit 1; }; }
11139 echo $f;;
11140 *) # Relative
11141 if test -f "$f"; then
11142 # Build tree
11143 echo $f
11144 elif test -f "$srcdir/$f"; then
11145 # Source tree
11146 echo $srcdir/$f
11147 else
11148 # /dev/null tree
Shi Quan He6b0720f2002-03-21 02:58:39 +000011149 { { echo "$as_me:11149: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011150echo "$as_me: error: cannot find input file: $f" >&2;}
11151 { (exit 1); exit 1; }; }
11152 fi;;
11153 esac
11154 done` || { (exit 1); exit 1; }
11155EOF
11156cat >>$CONFIG_STATUS <<EOF
11157 sed "$ac_vpsub
11158$extrasub
11159EOF
11160cat >>$CONFIG_STATUS <<\EOF
11161:t
11162/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11163s,@configure_input@,$configure_input,;t t
11164s,@srcdir@,$ac_srcdir,;t t
11165s,@top_srcdir@,$ac_top_srcdir,;t t
11166s,@INSTALL@,$ac_INSTALL,;t t
11167" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11168 rm -f $tmp/stdin
11169 if test x"$ac_file" != x-; then
11170 mv $tmp/out $ac_file
11171 else
11172 cat $tmp/out
11173 rm -f $tmp/out
11174 fi
11175
11176done
11177EOF
11178cat >>$CONFIG_STATUS <<\EOF
11179
11180#
11181# CONFIG_HEADER section.
11182#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011183
Alexandre Julliard18f92e71996-07-17 20:02:21 +000011184# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11185# NAME is the cpp macro being defined and VALUE is the value it is being given.
11186#
11187# ac_d sets the value in "#define NAME VALUE" lines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011188ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11189ac_dB='[ ].*$,\1#\2'
11190ac_dC=' '
11191ac_dD=',;t'
11192# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11193ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11194ac_uB='$,\1#\2define\3'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000011195ac_uC=' '
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011196ac_uD=',;t'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000011197
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011198for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000011199 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011200 case $ac_file in
11201 - | *:- | *:-:* ) # input from stdin
11202 cat >$tmp/stdin
11203 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11204 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11205 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11206 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11207 * ) ac_file_in=$ac_file.in ;;
Alexandre Julliard18f92e71996-07-17 20:02:21 +000011208 esac
11209
Shi Quan He6b0720f2002-03-21 02:58:39 +000011210 test x"$ac_file" != x- && { echo "$as_me:11210: creating $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011211echo "$as_me: creating $ac_file" >&6;}
Alexandre Julliard18f92e71996-07-17 20:02:21 +000011212
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011213 # First look for the input files in the build tree, otherwise in the
11214 # src tree.
11215 ac_file_inputs=`IFS=:
11216 for f in $ac_file_in; do
11217 case $f in
11218 -) echo $tmp/stdin ;;
11219 [\\/$]*)
11220 # Absolute (can't be DOS-style, as IFS=:)
Shi Quan He6b0720f2002-03-21 02:58:39 +000011221 test -f "$f" || { { echo "$as_me:11221: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011222echo "$as_me: error: cannot find input file: $f" >&2;}
11223 { (exit 1); exit 1; }; }
11224 echo $f;;
11225 *) # Relative
11226 if test -f "$f"; then
11227 # Build tree
11228 echo $f
11229 elif test -f "$srcdir/$f"; then
11230 # Source tree
11231 echo $srcdir/$f
11232 else
11233 # /dev/null tree
Shi Quan He6b0720f2002-03-21 02:58:39 +000011234 { { echo "$as_me:11234: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011235echo "$as_me: error: cannot find input file: $f" >&2;}
11236 { (exit 1); exit 1; }; }
11237 fi;;
11238 esac
11239 done` || { (exit 1); exit 1; }
11240 # Remove the trailing spaces.
11241 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Alexandre Julliard18f92e71996-07-17 20:02:21 +000011242
11243EOF
11244
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011245# Transform confdefs.h into two sed scripts, `conftest.defines' and
11246# `conftest.undefs', that substitutes the proper values into
11247# config.h.in to produce config.h. The first handles `#define'
11248# templates, and the second `#undef' templates.
11249# And first: Protect against being on the right side of a sed subst in
11250# config.status. Protect against being in an unquoted here document
11251# in config.status.
11252rm -f conftest.defines conftest.undefs
11253# Using a here document instead of a string reduces the quoting nightmare.
11254# Putting comments in sed scripts is not portable.
11255#
11256# `end' is used to avoid that the second main sed command (meant for
11257# 0-ary CPP macros) applies to n-ary macro definitions.
11258# See the Autoconf documentation for `clear'.
11259cat >confdef2sed.sed <<\EOF
11260s/[\\&,]/\\&/g
11261s,[\\$`],\\&,g
11262t clear
11263: clear
11264s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
11265t end
11266s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11267: end
Alexandre Julliard18f92e71996-07-17 20:02:21 +000011268EOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011269# If some macros were called several times there might be several times
11270# the same #defines, which is useless. Nevertheless, we may not want to
11271# sort them, since we want the *last* AC-DEFINE to be honored.
11272uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11273sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11274rm -f confdef2sed.sed
Alexandre Julliard18f92e71996-07-17 20:02:21 +000011275
11276# This sed command replaces #undef with comments. This is necessary, for
11277# example, in the case of _POSIX_SOURCE, which is predefined and required
11278# on some systems where configure will not decide to define it.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011279cat >>conftest.undefs <<\EOF
11280s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
Alexandre Julliard18f92e71996-07-17 20:02:21 +000011281EOF
11282
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011283# Break up conftest.defines because some shells have a limit on the size
11284# of here documents, and old seds have small limits too (100 cmds).
11285echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11286echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11287echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11288echo ' :' >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000011289rm -f conftest.tail
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011290while grep . conftest.defines >/dev/null
Alexandre Julliard18f92e71996-07-17 20:02:21 +000011291do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011292 # Write a limited-size here document to $tmp/defines.sed.
11293 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11294 # Speed up: don't consider the non `#define' lines.
11295 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11296 # Work around the forget-to-reset-the-flag bug.
11297 echo 't clr' >>$CONFIG_STATUS
11298 echo ': clr' >>$CONFIG_STATUS
11299 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000011300 echo 'CEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011301 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11302 rm -f $tmp/in
11303 mv $tmp/out $tmp/in
11304' >>$CONFIG_STATUS
11305 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11306 rm -f conftest.defines
11307 mv conftest.tail conftest.defines
Alexandre Julliard18f92e71996-07-17 20:02:21 +000011308done
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011309rm -f conftest.defines
11310echo ' fi # egrep' >>$CONFIG_STATUS
11311echo >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000011312
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011313# Break up conftest.undefs because some shells have a limit on the size
11314# of here documents, and old seds have small limits too (100 cmds).
11315echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11316rm -f conftest.tail
11317while grep . conftest.undefs >/dev/null
11318do
11319 # Write a limited-size here document to $tmp/undefs.sed.
11320 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11321 # Speed up: don't consider the non `#undef'
11322 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11323 # Work around the forget-to-reset-the-flag bug.
11324 echo 't clr' >>$CONFIG_STATUS
11325 echo ': clr' >>$CONFIG_STATUS
11326 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11327 echo 'CEOF
11328 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11329 rm -f $tmp/in
11330 mv $tmp/out $tmp/in
11331' >>$CONFIG_STATUS
11332 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11333 rm -f conftest.undefs
11334 mv conftest.tail conftest.undefs
11335done
11336rm -f conftest.undefs
11337
11338cat >>$CONFIG_STATUS <<\EOF
11339 # Let's still pretend it is `configure' which instantiates (i.e., don't
11340 # use $as_me), people would be surprised to read:
11341 # /* config.h. Generated automatically by config.status. */
11342 if test x"$ac_file" = x-; then
11343 echo "/* Generated automatically by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000011344 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011345 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000011346 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011347 cat $tmp/in >>$tmp/config.h
11348 rm -f $tmp/in
11349 if test x"$ac_file" != x-; then
11350 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
Shi Quan He6b0720f2002-03-21 02:58:39 +000011351 { echo "$as_me:11351: $ac_file is unchanged" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011352echo "$as_me: $ac_file is unchanged" >&6;}
11353 else
11354 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11355 X"$ac_file" : 'X\(//\)[^/]' \| \
11356 X"$ac_file" : 'X\(//\)$' \| \
11357 X"$ac_file" : 'X\(/\)' \| \
11358 . : '\(.\)' 2>/dev/null ||
11359echo X"$ac_file" |
11360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11361 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11362 /^X\(\/\/\)$/{ s//\1/; q; }
11363 /^X\(\/\).*/{ s//\1/; q; }
11364 s/.*/./; q'`
11365 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11366 { case "$ac_dir" in
11367 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11368 *) as_incr_dir=.;;
11369esac
11370as_dummy="$ac_dir"
11371for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11372 case $as_mkdir_dir in
11373 # Skip DOS drivespec
11374 ?:) as_incr_dir=$as_mkdir_dir ;;
11375 *)
11376 as_incr_dir=$as_incr_dir/$as_mkdir_dir
11377 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
11378 ;;
11379 esac
11380done; }
Alexandre Julliard18f92e71996-07-17 20:02:21 +000011381
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011382 fi
11383 rm -f $ac_file
11384 mv $tmp/config.h $ac_file
11385 fi
11386 else
11387 cat $tmp/config.h
11388 rm -f $tmp/config.h
11389 fi
11390done
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000011391EOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011392cat >>$CONFIG_STATUS <<\EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011393
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011394#
11395# CONFIG_COMMANDS section.
11396#
11397for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11398 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11399 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000011400
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011401 case $ac_dest in
Shi Quan He6b0720f2002-03-21 02:58:39 +000011402 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:11402: creating dlls/ddraw/d3ddevice" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011403echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000011404 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:11404: creating dlls/ddraw/dclipper" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011405echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000011406 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:11406: creating dlls/ddraw/ddraw" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011407echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000011408 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:11408: creating dlls/ddraw/direct3d" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011409echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000011410 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:11410: creating dlls/ddraw/dpalette" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011411echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000011412 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:11412: creating dlls/ddraw/dsurface" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011413echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000011414 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:11414: creating dlls/dinput/joystick" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011415echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000011416 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:11416: creating dlls/dinput/keyboard" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011417echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000011418 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:11418: creating dlls/dinput/mouse" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011419echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000011420 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:11420: creating dlls/kernel/messages" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011421echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000011422 dlls/kernel/tests ) test -d "dlls/kernel/tests" || ({ echo "$as_me:11422: creating dlls/kernel/tests" >&5
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000011423echo "$as_me: creating dlls/kernel/tests" >&6;} && mkdir "dlls/kernel/tests") ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000011424 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:11424: creating dlls/user/dde" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011425echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000011426 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:11426: creating dlls/user/resources" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011427echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000011428 dlls/user/tests ) test -d "dlls/user/tests" || ({ echo "$as_me:11428: creating dlls/user/tests" >&5
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000011429echo "$as_me: creating dlls/user/tests" >&6;} && mkdir "dlls/user/tests") ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000011430 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:11430: creating dlls/wineps/data" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011431echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000011432 include/wine ) test -d "include/wine" || ({ echo "$as_me:11432: creating include/wine" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011433echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000011434 programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:11434: creating programs/regapi/tests" >&5
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000011435echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000011436 programs/winetest/tests ) test -d "programs/winetest/tests" || ({ echo "$as_me:11436: creating programs/winetest/tests" >&5
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000011437echo "$as_me: creating programs/winetest/tests" >&6;} && mkdir "programs/winetest/tests") ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000011438 include/wine/version.h ) { echo "$as_me:11438: creating include/wine/version.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011439echo "$as_me: creating include/wine/version.h" >&6;}
11440cat >$tmp/version.h <<CEOF
11441/* Generated automatically by configure; DO NOT EDIT! */
11442#define WINE_RELEASE_INFO "Wine version $wine_version"
11443CEOF
11444if cmp -s $tmp/version.h include/wine/version.h 2>/dev/null; then
Shi Quan He6b0720f2002-03-21 02:58:39 +000011445 { echo "$as_me:11445: include/wine/version.h is unchanged" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011446echo "$as_me: include/wine/version.h is unchanged" >&6;}
11447 rm -f $tmp/version.h
11448else
11449 rm -f include/wine/version.h
11450 mv $tmp/version.h include/wine/version.h
11451fi ;;
11452 esac
11453done
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000011454EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011455
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011456cat >>$CONFIG_STATUS <<\EOF
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000011457
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011458{ (exit 0); exit 0; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011459EOF
11460chmod +x $CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011461ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011462
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011463# configure is writing to config.log, and then calls config.status.
11464# config.status does its own redirection, appending to config.log.
11465# Unfortunately, on DOS this fails, as config.log is still kept open
11466# by configure, so config.status won't be able to write to it; its
11467# output is simply discarded. So we exec the FD to /dev/null,
11468# effectively closing config.log, so it can be properly (re)opened and
11469# appended to by config.status. When coming back to configure, we
11470# need to make the FD available again.
11471if test "$no_create" != yes; then
11472 ac_cs_success=:
11473 exec 5>/dev/null
11474 $SHELL $CONFIG_STATUS || ac_cs_success=false
11475 exec 5>>config.log
11476 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11477 # would make configure fail if this is the last instruction.
11478 $ac_cs_success || { (exit 1); exit 1; }
11479fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011480
Ove Kaaven8b4431f1999-01-23 13:59:11 +000011481if test "$have_x" = "no"
11482then
11483 echo
11484 echo "*** Warning: X development files not found. Wine will be built without"
11485 echo "*** X support, which currently does not work, and would probably not be"
11486 echo "*** what you want anyway. You will need to install devel packages of"
Alexandre Julliard18e4b5e2002-01-04 18:52:40 +000011487 echo "*** Xlib/Xfree86 at the very least."
Ove Kaaven8b4431f1999-01-23 13:59:11 +000011488fi
11489
Alexandre Julliard638f1691999-01-17 16:32:32 +000011490if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
11491then
11492 echo
11493 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
11494 echo "*** terminal resize support. Consider upgrading ncurses."
Alexandre Julliard638f1691999-01-17 16:32:32 +000011495fi
11496
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011497if test "$wine_cv_libc_reentrant" = "no"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000011498then
11499 echo
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011500 echo "*** Warning: non-reentrant libc detected. Wine will be built without"
11501 echo "*** threading support. Consider upgrading libc to a more recent"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000011502 echo "*** reentrant version of libc."
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000011503fi
11504
Lionel Ulmerbedf40b2000-05-12 20:18:14 +000011505if test "$wine_cv_opengl_version_OK" = "no"
Lionel Ulmer5c085701999-02-28 19:48:53 +000011506then
11507 echo
11508 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +000011509 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
11510fi
11511
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011512if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "x"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +000011513then
11514 echo
11515 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000011516 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
Andreas Mohr18a9d742001-01-17 21:52:42 +000011517 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 +000011518 echo "*** start configure with '--enable-opengl' to force OpenGL support."
Lionel Ulmer5c085701999-02-28 19:48:53 +000011519fi
11520
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011521if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "xyes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000011522then
11523 echo
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +000011524 echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000011525 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
11526 echo "*** support before reporting bugs."
11527fi
11528
Marcus Meissner3ee02ba2001-04-30 18:18:50 +000011529if test "$wine_cv_warn_cups_h" = "yes"
11530then
11531 echo
11532 echo "*** Note: You have cups runtime libraries, but no development"
11533 echo "*** libraries. Install the cups-devel package or whichever package"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011534 echo "*** contains cups.h to enable CUPS support in Wine."
Marcus Meissner3ee02ba2001-04-30 18:18:50 +000011535fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000011536
Ian Pilcher563598d2001-05-16 20:56:05 +000011537if test "$wine_cv_msg_freetype" = "yes"
11538then
11539 echo
11540 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011541 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
11542 echo "*** freetype-devel package (or its equivalent on your distribution) to"
11543 echo "*** enable Wine to use TrueType fonts."
Ian Pilcher563598d2001-05-16 20:56:05 +000011544fi
11545
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011546echo
Steffen Moeller1511bae1999-02-17 15:27:03 +000011547echo "Configure finished. Do 'make depend && make' to compile Wine."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011548echo
11549