blob: d189f0de4c5f9dbe7690c452b8f3362038582f1d [file] [log] [blame]
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001#! /bin/sh
2
3# From configure.in configure.in 1.00
4# Guess values for system-dependent variables and create Makefiles.
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005# Generated automatically using autoconf version 2.12
Alexandre Julliard59730ae1996-03-24 16:20:51 +00006# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007#
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10
11# Defaults:
12ac_help=
13ac_default_prefix=/usr/local
14# Any additions from configure.in:
15ac_help="$ac_help
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +000016 --disable-emulator build only the Wine library, not the emulator"
Alexandre Julliardff8331e1995-09-18 11:19:54 +000017ac_help="$ac_help
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +000018 --enable-dll build the Wine library as a DLL"
Alexandre Julliard7e56f681996-01-31 19:02:28 +000019ac_help="$ac_help
Alexandre Julliard642d3131998-07-12 19:29:36 +000020 --disable-lib build the Wine without building libwine.a"
21ac_help="$ac_help
Alexandre Julliardf90efa91998-06-14 15:24:15 +000022 --disable-debug compile out all debugging messages"
23ac_help="$ac_help
24 --disable-trace compile out TRACE messages"
25ac_help="$ac_help
Patrik Stridvallf638aef1998-12-07 09:36:13 +000026 --without-reentrant-x compile for use with non-reentrant X libraries"
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000027ac_help="$ac_help
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000028 --with-x use the X Window System"
29
30# Initialize some variables set by options.
31# The variables have the same names as the options, with
32# dashes changed to underlines.
33build=NONE
34cache_file=./config.cache
35exec_prefix=NONE
36host=NONE
37no_create=
38nonopt=NONE
39no_recursion=
40prefix=NONE
41program_prefix=NONE
42program_suffix=NONE
43program_transform_name=s,x,x,
44silent=
45site=
46srcdir=
47target=NONE
48verbose=
49x_includes=NONE
50x_libraries=NONE
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000051bindir='${exec_prefix}/bin'
52sbindir='${exec_prefix}/sbin'
53libexecdir='${exec_prefix}/libexec'
54datadir='${prefix}/share'
55sysconfdir='${prefix}/etc'
56sharedstatedir='${prefix}/com'
57localstatedir='${prefix}/var'
58libdir='${exec_prefix}/lib'
59includedir='${prefix}/include'
60oldincludedir='/usr/include'
61infodir='${prefix}/info'
62mandir='${prefix}/man'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000063
64# Initialize some other variables.
65subdirs=
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000066MFLAGS= MAKEFLAGS=
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000067# Maximum number of lines to put in a shell here document.
68ac_max_here_lines=12
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000069
70ac_prev=
71for ac_option
72do
73
74 # If the previous option needs an argument, assign it.
75 if test -n "$ac_prev"; then
76 eval "$ac_prev=\$ac_option"
77 ac_prev=
78 continue
79 fi
80
81 case "$ac_option" in
82 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
83 *) ac_optarg= ;;
84 esac
85
86 # Accept the important Cygnus configure options, so we can diagnose typos.
87
88 case "$ac_option" in
89
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000090 -bindir | --bindir | --bindi | --bind | --bin | --bi)
91 ac_prev=bindir ;;
92 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
93 bindir="$ac_optarg" ;;
94
95 -build | --build | --buil | --bui | --bu)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000096 ac_prev=build ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000097 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000098 build="$ac_optarg" ;;
99
100 -cache-file | --cache-file | --cache-fil | --cache-fi \
101 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
102 ac_prev=cache_file ;;
103 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
104 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
105 cache_file="$ac_optarg" ;;
106
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000107 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
108 ac_prev=datadir ;;
109 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
110 | --da=*)
111 datadir="$ac_optarg" ;;
112
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000113 -disable-* | --disable-*)
114 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
115 # Reject names that are not valid shell variable names.
116 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
117 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 fi
119 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
120 eval "enable_${ac_feature}=no" ;;
121
122 -enable-* | --enable-*)
123 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
124 # Reject names that are not valid shell variable names.
125 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
126 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 fi
128 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
129 case "$ac_option" in
130 *=*) ;;
131 *) ac_optarg=yes ;;
132 esac
133 eval "enable_${ac_feature}='$ac_optarg'" ;;
134
135 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
136 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
137 | --exec | --exe | --ex)
138 ac_prev=exec_prefix ;;
139 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
140 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
141 | --exec=* | --exe=* | --ex=*)
142 exec_prefix="$ac_optarg" ;;
143
144 -gas | --gas | --ga | --g)
145 # Obsolete; use --with-gas.
146 with_gas=yes ;;
147
148 -help | --help | --hel | --he)
149 # Omit some internal or obsolete options to make the list less imposing.
150 # This message is too long to be a string in the A/UX 3.1 sh.
151 cat << EOF
152Usage: configure [options] [host]
153Options: [defaults in brackets after descriptions]
154Configuration:
155 --cache-file=FILE cache test results in FILE
156 --help print this message
157 --no-create do not create output files
158 --quiet, --silent do not print \`checking...' messages
159 --version print the version of autoconf that created configure
160Directory and file names:
161 --prefix=PREFIX install architecture-independent files in PREFIX
162 [$ac_default_prefix]
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000163 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000164 [same as prefix]
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000165 --bindir=DIR user executables in DIR [EPREFIX/bin]
166 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
167 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
168 --datadir=DIR read-only architecture-independent data in DIR
169 [PREFIX/share]
170 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
171 --sharedstatedir=DIR modifiable architecture-independent data in DIR
172 [PREFIX/com]
173 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
174 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
175 --includedir=DIR C header files in DIR [PREFIX/include]
176 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
177 --infodir=DIR info documentation in DIR [PREFIX/info]
178 --mandir=DIR man documentation in DIR [PREFIX/man]
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000179 --srcdir=DIR find the sources in DIR [configure dir or ..]
180 --program-prefix=PREFIX prepend PREFIX to installed program names
181 --program-suffix=SUFFIX append SUFFIX to installed program names
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000182 --program-transform-name=PROGRAM
183 run sed PROGRAM on installed program names
184EOF
185 cat << EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000186Host type:
187 --build=BUILD configure for building on BUILD [BUILD=HOST]
188 --host=HOST configure for HOST [guessed]
189 --target=TARGET configure for TARGET [TARGET=HOST]
190Features and packages:
191 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
192 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
193 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
194 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
195 --x-includes=DIR X include files are in DIR
196 --x-libraries=DIR X library files are in DIR
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000197EOF
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000198 if test -n "$ac_help"; then
199 echo "--enable and --with options recognized:$ac_help"
200 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000201 exit 0 ;;
202
203 -host | --host | --hos | --ho)
204 ac_prev=host ;;
205 -host=* | --host=* | --hos=* | --ho=*)
206 host="$ac_optarg" ;;
207
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000208 -includedir | --includedir | --includedi | --included | --include \
209 | --includ | --inclu | --incl | --inc)
210 ac_prev=includedir ;;
211 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
212 | --includ=* | --inclu=* | --incl=* | --inc=*)
213 includedir="$ac_optarg" ;;
214
215 -infodir | --infodir | --infodi | --infod | --info | --inf)
216 ac_prev=infodir ;;
217 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
218 infodir="$ac_optarg" ;;
219
220 -libdir | --libdir | --libdi | --libd)
221 ac_prev=libdir ;;
222 -libdir=* | --libdir=* | --libdi=* | --libd=*)
223 libdir="$ac_optarg" ;;
224
225 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
226 | --libexe | --libex | --libe)
227 ac_prev=libexecdir ;;
228 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
229 | --libexe=* | --libex=* | --libe=*)
230 libexecdir="$ac_optarg" ;;
231
232 -localstatedir | --localstatedir | --localstatedi | --localstated \
233 | --localstate | --localstat | --localsta | --localst \
234 | --locals | --local | --loca | --loc | --lo)
235 ac_prev=localstatedir ;;
236 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
237 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
238 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
239 localstatedir="$ac_optarg" ;;
240
241 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
242 ac_prev=mandir ;;
243 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
244 mandir="$ac_optarg" ;;
245
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000246 -nfp | --nfp | --nf)
247 # Obsolete; use --without-fp.
248 with_fp=no ;;
249
250 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
251 | --no-cr | --no-c)
252 no_create=yes ;;
253
254 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
255 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
256 no_recursion=yes ;;
257
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000258 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
259 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
260 | --oldin | --oldi | --old | --ol | --o)
261 ac_prev=oldincludedir ;;
262 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
263 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
264 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
265 oldincludedir="$ac_optarg" ;;
266
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000267 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
268 ac_prev=prefix ;;
269 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
270 prefix="$ac_optarg" ;;
271
272 -program-prefix | --program-prefix | --program-prefi | --program-pref \
273 | --program-pre | --program-pr | --program-p)
274 ac_prev=program_prefix ;;
275 -program-prefix=* | --program-prefix=* | --program-prefi=* \
276 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
277 program_prefix="$ac_optarg" ;;
278
279 -program-suffix | --program-suffix | --program-suffi | --program-suff \
280 | --program-suf | --program-su | --program-s)
281 ac_prev=program_suffix ;;
282 -program-suffix=* | --program-suffix=* | --program-suffi=* \
283 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
284 program_suffix="$ac_optarg" ;;
285
286 -program-transform-name | --program-transform-name \
287 | --program-transform-nam | --program-transform-na \
288 | --program-transform-n | --program-transform- \
289 | --program-transform | --program-transfor \
290 | --program-transfo | --program-transf \
291 | --program-trans | --program-tran \
292 | --progr-tra | --program-tr | --program-t)
293 ac_prev=program_transform_name ;;
294 -program-transform-name=* | --program-transform-name=* \
295 | --program-transform-nam=* | --program-transform-na=* \
296 | --program-transform-n=* | --program-transform-=* \
297 | --program-transform=* | --program-transfor=* \
298 | --program-transfo=* | --program-transf=* \
299 | --program-trans=* | --program-tran=* \
300 | --progr-tra=* | --program-tr=* | --program-t=*)
301 program_transform_name="$ac_optarg" ;;
302
303 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
304 | -silent | --silent | --silen | --sile | --sil)
305 silent=yes ;;
306
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000307 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
308 ac_prev=sbindir ;;
309 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
310 | --sbi=* | --sb=*)
311 sbindir="$ac_optarg" ;;
312
313 -sharedstatedir | --sharedstatedir | --sharedstatedi \
314 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
315 | --sharedst | --shareds | --shared | --share | --shar \
316 | --sha | --sh)
317 ac_prev=sharedstatedir ;;
318 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
319 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
320 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
321 | --sha=* | --sh=*)
322 sharedstatedir="$ac_optarg" ;;
323
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000324 -site | --site | --sit)
325 ac_prev=site ;;
326 -site=* | --site=* | --sit=*)
327 site="$ac_optarg" ;;
328
329 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
330 ac_prev=srcdir ;;
331 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
332 srcdir="$ac_optarg" ;;
333
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000334 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
335 | --syscon | --sysco | --sysc | --sys | --sy)
336 ac_prev=sysconfdir ;;
337 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
338 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
339 sysconfdir="$ac_optarg" ;;
340
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000341 -target | --target | --targe | --targ | --tar | --ta | --t)
342 ac_prev=target ;;
343 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
344 target="$ac_optarg" ;;
345
346 -v | -verbose | --verbose | --verbos | --verbo | --verb)
347 verbose=yes ;;
348
349 -version | --version | --versio | --versi | --vers)
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000350 echo "configure generated by autoconf version 2.12"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000351 exit 0 ;;
352
353 -with-* | --with-*)
354 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
355 # Reject names that are not valid shell variable names.
356 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
357 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358 fi
359 ac_package=`echo $ac_package| sed 's/-/_/g'`
360 case "$ac_option" in
361 *=*) ;;
362 *) ac_optarg=yes ;;
363 esac
364 eval "with_${ac_package}='$ac_optarg'" ;;
365
366 -without-* | --without-*)
367 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371 fi
372 ac_package=`echo $ac_package| sed 's/-/_/g'`
373 eval "with_${ac_package}=no" ;;
374
375 --x)
376 # Obsolete; use --with-x.
377 with_x=yes ;;
378
379 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
380 | --x-incl | --x-inc | --x-in | --x-i)
381 ac_prev=x_includes ;;
382 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
383 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
384 x_includes="$ac_optarg" ;;
385
386 -x-libraries | --x-libraries | --x-librarie | --x-librari \
387 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
388 ac_prev=x_libraries ;;
389 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
390 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
391 x_libraries="$ac_optarg" ;;
392
393 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
394 ;;
395
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000396 *)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000397 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
398 echo "configure: warning: $ac_option: invalid host type" 1>&2
399 fi
400 if test "x$nonopt" != xNONE; then
401 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
402 fi
403 nonopt="$ac_option"
404 ;;
405
406 esac
407done
408
409if test -n "$ac_prev"; then
410 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
411fi
412
413trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
414
415# File descriptor usage:
416# 0 standard input
417# 1 file creation
418# 2 errors and warnings
419# 3 some systems may open it to /dev/tty
420# 4 used on the Kubota Titan
421# 6 checking for... messages and results
422# 5 compiler messages saved in config.log
423if test "$silent" = yes; then
424 exec 6>/dev/null
425else
426 exec 6>&1
427fi
428exec 5>./config.log
429
430echo "\
431This file contains any messages produced by compilers while
432running configure, to aid debugging if configure makes a mistake.
433" 1>&5
434
435# Strip out --no-create and --no-recursion so they do not pile up.
436# Also quote any args containing shell metacharacters.
437ac_configure_args=
438for ac_arg
439do
440 case "$ac_arg" in
441 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
442 | --no-cr | --no-c) ;;
443 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
444 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
445 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
446 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
447 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
448 esac
449done
450
451# NLS nuisances.
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000452# Only set these to C if already set. These must not be set unconditionally
453# because not all systems understand e.g. LANG=C (notably SCO).
454# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
455# Non-C LC_CTYPE values break the ctype check.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000456if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000457if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
458if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
459if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000460
461# confdefs.h avoids OS command line length limits that DEFS can exceed.
462rm -rf conftest* confdefs.h
463# AIX cpp loses on an empty file, so make sure it contains at least a newline.
464echo > confdefs.h
465
466# A filename unique to this package, relative to the directory that
467# configure is in, which we can look for to find out if srcdir is correct.
468ac_unique_file=controls/edit.c
469
470# Find the source files, if location was not specified.
471if test -z "$srcdir"; then
472 ac_srcdir_defaulted=yes
473 # Try the directory containing this script, then its parent.
474 ac_prog=$0
475 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
476 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
477 srcdir=$ac_confdir
478 if test ! -r $srcdir/$ac_unique_file; then
479 srcdir=..
480 fi
481else
482 ac_srcdir_defaulted=no
483fi
484if test ! -r $srcdir/$ac_unique_file; then
485 if test "$ac_srcdir_defaulted" = yes; then
486 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
487 else
488 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
489 fi
490fi
491srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
492
493# Prefer explicitly selected file to automatically selected ones.
494if test -z "$CONFIG_SITE"; then
495 if test "x$prefix" != xNONE; then
496 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
497 else
498 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
499 fi
500fi
501for ac_site_file in $CONFIG_SITE; do
502 if test -r "$ac_site_file"; then
503 echo "loading site script $ac_site_file"
504 . "$ac_site_file"
505 fi
506done
507
508if test -r "$cache_file"; then
509 echo "loading cache $cache_file"
510 . $cache_file
511else
512 echo "creating cache $cache_file"
513 > $cache_file
514fi
515
516ac_ext=c
517# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000518ac_cpp='$CPP $CPPFLAGS'
519ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
520ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000521cross_compiling=$ac_cv_prog_cc_cross
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000522
523if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
524 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
525 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
526 ac_n= ac_c='
527' ac_t=' '
528 else
529 ac_n=-n ac_c= ac_t=
530 fi
531else
532 ac_n= ac_c='\c' ac_t=
533fi
534
535
Alexandre Julliard18f92e71996-07-17 20:02:21 +0000536
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000537ac_aux_dir=
538for ac_dir in tools $srcdir/tools; do
539 if test -f $ac_dir/install-sh; then
540 ac_aux_dir=$ac_dir
541 ac_install_sh="$ac_aux_dir/install-sh -c"
542 break
543 elif test -f $ac_dir/install.sh; then
544 ac_aux_dir=$ac_dir
545 ac_install_sh="$ac_aux_dir/install.sh -c"
546 break
547 fi
548done
549if test -z "$ac_aux_dir"; then
550 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
551fi
552ac_config_guess=$ac_aux_dir/config.guess
553ac_config_sub=$ac_aux_dir/config.sub
554ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
555
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000556
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000557# We want these before the checks, so the checks can modify their values.
Alexandre Julliard02e90081998-01-04 17:49:09 +0000558LIBS="$LIBS -lm"
Alexandre Julliardc6c09441997-01-12 18:32:19 +0000559test -z "$PROGEXT" && PROGEXT=""
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000560
Alexandre Julliardff8331e1995-09-18 11:19:54 +0000561
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +0000562MAIN_TARGET=emu
563LIB_TARGET=libwine.a
Todd Vierling8beb15a1998-12-18 17:30:52 +0000564ALT_LINK="-L\$(TOPOBJDIR) -lwine"
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000565TRACE_MSGS=yes # the TRACE() macro
566DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros.
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +0000567
568# Check whether --enable-emulator or --disable-emulator was given.
569if test "${enable_emulator+set}" = set; then
570 enableval="$enable_emulator"
571 if test "$enableval" = "no"; then MAIN_TARGET="lib"; fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +0000572fi
573
574
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +0000575# Check whether --enable-dll or --disable-dll was given.
576if test "${enable_dll+set}" = set; then
577 enableval="$enable_dll"
578 if test "$enableval" = "no"; then : ; else LIB_TARGET="libwine.so.1.0"; fi
Alexandre Julliard7e56f681996-01-31 19:02:28 +0000579fi
580
581
Alexandre Julliard642d3131998-07-12 19:29:36 +0000582# Check whether --enable-lib or --disable-lib was given.
583if test "${enable_lib+set}" = set; then
584 enableval="$enable_lib"
Ove Kaaven11e1a5e1998-11-06 10:01:45 +0000585 if test "$enableval" = "no"; then ALT_LINK="\$(LIBOBJS) \$(X11OBJS)"; LIB_TARGET=""; fi
Alexandre Julliard642d3131998-07-12 19:29:36 +0000586fi
587
588
Alexandre Julliardff8331e1995-09-18 11:19:54 +0000589
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000590# Check whether --enable-debug or --disable-debug was given.
591if test "${enable_debug+set}" = set; then
592 enableval="$enable_debug"
593 if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi
594fi
595
596
597# Check whether --enable-trace or --disable-trace was given.
598if test "${enable_trace+set}" = set; then
599 enableval="$enable_trace"
600 if test "$enableval" = "no"; then TRACE_MSGS="no"; fi
601fi
602
603
Alexandre Julliarda11d7b11998-03-01 20:05:02 +0000604# Check whether --with-reentrant-x or --without-reentrant-x was given.
605if test "${with_reentrant_x+set}" = set; then
606 withval="$with_reentrant_x"
607 :
608fi
609
610
Alexandre Julliardb7258be1995-09-01 15:57:28 +0000611
Alexandre Julliardb7258be1995-09-01 15:57:28 +0000612
613
Alexandre Julliardff8331e1995-09-18 11:19:54 +0000614
Uwe Bonnes2a4707a1998-10-11 14:57:08 +0000615
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000616if test "$DEBUG_MSGS" = "no"
617then
618 cat >> confdefs.h <<\EOF
619#define NO_DEBUG_MSGS 1
620EOF
621
622 cat >> confdefs.h <<\EOF
623#define NO_TRACE_MSGS 1
624EOF
625
626else
627 if test "$TRACE_MSGS" = "no"
628 then
629 cat >> confdefs.h <<\EOF
630#define NO_TRACE_MSGS 1
631EOF
632
633 fi
634fi
635
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +0000636
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000637echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +0000638echo "configure:639: checking whether ${MAKE-make} sets \${MAKE}" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000639set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000640if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
641 echo $ac_n "(cached) $ac_c" 1>&6
642else
643 cat > conftestmake <<\EOF
644all:
645 @echo 'ac_maketemp="${MAKE}"'
646EOF
647# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
648eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
649if test -n "$ac_maketemp"; then
650 eval ac_cv_prog_make_${ac_make}_set=yes
651else
652 eval ac_cv_prog_make_${ac_make}_set=no
653fi
654rm -f conftestmake
655fi
656if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
657 echo "$ac_t""yes" 1>&6
658 SET_MAKE=
659else
660 echo "$ac_t""no" 1>&6
661 SET_MAKE="MAKE=${MAKE-make}"
662fi
663
664# Extract the first word of "gcc", so it can be a program name with args.
665set dummy gcc; ac_word=$2
666echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +0000667echo "configure:668: checking for $ac_word" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000668if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
669 echo $ac_n "(cached) $ac_c" 1>&6
670else
671 if test -n "$CC"; then
672 ac_cv_prog_CC="$CC" # Let the user override the test.
673else
674 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
675 for ac_dir in $PATH; do
676 test -z "$ac_dir" && ac_dir=.
677 if test -f $ac_dir/$ac_word; then
678 ac_cv_prog_CC="gcc"
679 break
680 fi
681 done
682 IFS="$ac_save_ifs"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000683fi
684fi
685CC="$ac_cv_prog_CC"
686if test -n "$CC"; then
687 echo "$ac_t""$CC" 1>&6
688else
689 echo "$ac_t""no" 1>&6
690fi
691
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000692if test -z "$CC"; then
693 # Extract the first word of "cc", so it can be a program name with args.
694set dummy cc; ac_word=$2
695echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +0000696echo "configure:697: checking for $ac_word" >&5
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000697if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
698 echo $ac_n "(cached) $ac_c" 1>&6
699else
700 if test -n "$CC"; then
701 ac_cv_prog_CC="$CC" # Let the user override the test.
702else
703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
704 ac_prog_rejected=no
705 for ac_dir in $PATH; do
706 test -z "$ac_dir" && ac_dir=.
707 if test -f $ac_dir/$ac_word; then
708 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
709 ac_prog_rejected=yes
710 continue
711 fi
712 ac_cv_prog_CC="cc"
713 break
714 fi
715 done
716 IFS="$ac_save_ifs"
717if test $ac_prog_rejected = yes; then
718 # We found a bogon in the path, so make sure we never use it.
719 set dummy $ac_cv_prog_CC
720 shift
721 if test $# -gt 0; then
722 # We chose a different compiler from the bogus one.
723 # However, it has the same basename, so the bogon will be chosen
724 # first if we set CC to just the basename; use the full file name.
725 shift
726 set dummy "$ac_dir/$ac_word" "$@"
727 shift
728 ac_cv_prog_CC="$@"
729 fi
730fi
731fi
732fi
733CC="$ac_cv_prog_CC"
734if test -n "$CC"; then
735 echo "$ac_t""$CC" 1>&6
736else
737 echo "$ac_t""no" 1>&6
738fi
739
740 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
741fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000742
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000743echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +0000744echo "configure:745: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000745
746ac_ext=c
747# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
748ac_cpp='$CPP $CPPFLAGS'
749ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
750ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000751cross_compiling=$ac_cv_prog_cc_cross
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000752
753cat > conftest.$ac_ext <<EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +0000754#line 755 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000755#include "confdefs.h"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000756main(){return(0);}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000757EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +0000758if { (eval echo configure:759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000759 ac_cv_prog_cc_works=yes
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000760 # If we can't run a trivial program, we are probably using a cross compiler.
761 if (./conftest; exit) 2>/dev/null; then
762 ac_cv_prog_cc_cross=no
763 else
764 ac_cv_prog_cc_cross=yes
765 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000766else
767 echo "configure: failed program was:" >&5
768 cat conftest.$ac_ext >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000769 ac_cv_prog_cc_works=no
770fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000771rm -fr conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000772
773echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
774if test $ac_cv_prog_cc_works = no; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000775 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000776fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000777echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +0000778echo "configure:779: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000779echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
780cross_compiling=$ac_cv_prog_cc_cross
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000781
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000782echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +0000783echo "configure:784: checking whether we are using GNU C" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000784if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
785 echo $ac_n "(cached) $ac_c" 1>&6
786else
787 cat > conftest.c <<EOF
788#ifdef __GNUC__
789 yes;
790#endif
791EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +0000792if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000793 ac_cv_prog_gcc=yes
794else
795 ac_cv_prog_gcc=no
796fi
797fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000798
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000799echo "$ac_t""$ac_cv_prog_gcc" 1>&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000800
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000801if test $ac_cv_prog_gcc = yes; then
802 GCC=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000803 ac_test_CFLAGS="${CFLAGS+set}"
804 ac_save_CFLAGS="$CFLAGS"
805 CFLAGS=
806 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +0000807echo "configure:808: checking whether ${CC-cc} accepts -g" >&5
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000808if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000809 echo $ac_n "(cached) $ac_c" 1>&6
810else
811 echo 'void f(){}' > conftest.c
812if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000813 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000814else
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000815 ac_cv_prog_cc_g=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000816fi
817rm -f conftest*
818
819fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000820
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000821echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000822 if test "$ac_test_CFLAGS" = set; then
823 CFLAGS="$ac_save_CFLAGS"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000824 elif test $ac_cv_prog_cc_g = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000825 CFLAGS="-g -O2"
826 else
827 CFLAGS="-O2"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000828 fi
829else
830 GCC=
831 test "${CFLAGS+set}" = set || CFLAGS="-g"
832fi
833
834echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +0000835echo "configure:836: checking how to run the C preprocessor" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000836# On Suns, sometimes $CPP names a directory.
837if test -n "$CPP" && test -d "$CPP"; then
838 CPP=
839fi
840if test -z "$CPP"; then
841if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
842 echo $ac_n "(cached) $ac_c" 1>&6
843else
844 # This must be in double quotes, not single quotes, because CPP may get
845 # substituted into the Makefile and "${CC-cc}" will confuse make.
846 CPP="${CC-cc} -E"
847 # On the NeXT, cc -E runs the code through the compiler's parser,
848 # not just through cpp.
849 cat > conftest.$ac_ext <<EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +0000850#line 851 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000851#include "confdefs.h"
852#include <assert.h>
853Syntax Error
854EOF
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000855ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Joseph Praneviche884f9c1999-01-03 16:14:34 +0000856{ (eval echo configure:857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000857ac_err=`grep -v '^ *+' conftest.out`
858if test -z "$ac_err"; then
859 :
860else
861 echo "$ac_err" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000862 echo "configure: failed program was:" >&5
863 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000864 rm -rf conftest*
865 CPP="${CC-cc} -E -traditional-cpp"
866 cat > conftest.$ac_ext <<EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +0000867#line 868 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000868#include "confdefs.h"
869#include <assert.h>
870Syntax Error
871EOF
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000872ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Joseph Praneviche884f9c1999-01-03 16:14:34 +0000873{ (eval echo configure:874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000874ac_err=`grep -v '^ *+' conftest.out`
875if test -z "$ac_err"; then
876 :
877else
878 echo "$ac_err" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000879 echo "configure: failed program was:" >&5
880 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000881 rm -rf conftest*
882 CPP=/lib/cpp
883fi
884rm -f conftest*
885fi
886rm -f conftest*
887 ac_cv_prog_CPP="$CPP"
888fi
889 CPP="$ac_cv_prog_CPP"
890else
891 ac_cv_prog_CPP="$CPP"
892fi
893echo "$ac_t""$CPP" 1>&6
894
895# If we find X, set shell vars x_includes and x_libraries to the
896# paths, otherwise set no_x=yes.
897# Uses ac_ vars as temps to allow command line to override cache and checks.
898# --without-x overrides everything else, but does not touch the cache.
899echo $ac_n "checking for X""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +0000900echo "configure:901: checking for X" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000901
902# Check whether --with-x or --without-x was given.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000903if test "${with_x+set}" = set; then
904 withval="$with_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000905 :
906fi
907
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000908# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000909if test "x$with_x" = xno; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000910 # The user explicitly disabled X.
911 have_x=disabled
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000912else
913 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000914 # Both variables are already set.
915 have_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000916 else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000917if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000918 echo $ac_n "(cached) $ac_c" 1>&6
919else
920 # One or both of the vars are not set, and there is no cached value.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000921ac_x_includes=NO ac_x_libraries=NO
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000922rm -fr conftestdir
923if mkdir conftestdir; then
924 cd conftestdir
925 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
926 cat > Imakefile <<'EOF'
927acfindx:
928 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
929EOF
930 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000931 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000932 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000933 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
934 for ac_extension in a so sl; do
935 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
936 test -f $ac_im_libdir/libX11.$ac_extension; then
937 ac_im_usrlibdir=$ac_im_libdir; break
938 fi
939 done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000940 # Screen out bogus values from the imake configuration. They are
941 # bogus both because they are the default anyway, and because
942 # using them would break gcc on systems where it needs fixed includes.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000943 case "$ac_im_incroot" in
944 /usr/include) ;;
945 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
946 esac
947 case "$ac_im_usrlibdir" in
948 /usr/lib | /lib) ;;
949 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
950 esac
951 fi
952 cd ..
953 rm -fr conftestdir
954fi
955
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000956if test "$ac_x_includes" = NO; then
957 # Guess where to find include files, by looking for this one X11 .h file.
958 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
959
960 # First, try using that file with no special directory specified.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000961cat > conftest.$ac_ext <<EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +0000962#line 963 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000963#include "confdefs.h"
964#include <$x_direct_test_include>
965EOF
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000966ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Joseph Praneviche884f9c1999-01-03 16:14:34 +0000967{ (eval echo configure:968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000968ac_err=`grep -v '^ *+' conftest.out`
969if test -z "$ac_err"; then
970 rm -rf conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000971 # We can compile using X headers with no special include directory.
972ac_x_includes=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000973else
974 echo "$ac_err" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000975 echo "configure: failed program was:" >&5
976 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000977 rm -rf conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000978 # Look for the header file in a standard set of common directories.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000979# Check X11 before X11Rn because it is often a symlink to the current release.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000980 for ac_dir in \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000981 /usr/X11/include \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000982 /usr/X11R6/include \
983 /usr/X11R5/include \
984 /usr/X11R4/include \
985 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000986 /usr/include/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000987 /usr/include/X11R6 \
988 /usr/include/X11R5 \
989 /usr/include/X11R4 \
990 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000991 /usr/local/X11/include \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000992 /usr/local/X11R6/include \
993 /usr/local/X11R5/include \
994 /usr/local/X11R4/include \
995 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000996 /usr/local/include/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000997 /usr/local/include/X11R6 \
998 /usr/local/include/X11R5 \
999 /usr/local/include/X11R4 \
1000 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001001 /usr/X386/include \
1002 /usr/x386/include \
1003 /usr/XFree86/include/X11 \
1004 \
1005 /usr/include \
1006 /usr/local/include \
1007 /usr/unsupported/include \
1008 /usr/athena/include \
1009 /usr/local/x11r5/include \
1010 /usr/lpp/Xamples/include \
1011 \
1012 /usr/openwin/include \
1013 /usr/openwin/share/include \
1014 ; \
1015 do
1016 if test -r "$ac_dir/$x_direct_test_include"; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001017 ac_x_includes=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001018 break
1019 fi
1020 done
1021fi
1022rm -f conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001023fi # $ac_x_includes = NO
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001024
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001025if test "$ac_x_libraries" = NO; then
1026 # Check for the libraries.
1027
1028 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1029 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1030
1031 # See if we find them without any special options.
1032 # Don't add to $LIBS permanently.
1033 ac_save_LIBS="$LIBS"
1034 LIBS="-l$x_direct_test_library $LIBS"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001035cat > conftest.$ac_ext <<EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001036#line 1037 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001037#include "confdefs.h"
1038
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001039int main() {
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001040${x_direct_test_function}()
1041; return 0; }
1042EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001043if { (eval echo configure:1044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001044 rm -rf conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001045 LIBS="$ac_save_LIBS"
1046# We can link X programs with no special library path.
1047ac_x_libraries=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001048else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001049 echo "configure: failed program was:" >&5
1050 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001051 rm -rf conftest*
1052 LIBS="$ac_save_LIBS"
1053# First see if replacing the include by lib works.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001054# Check X11 before X11Rn because it is often a symlink to the current release.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001055for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001056 /usr/X11/lib \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001057 /usr/X11R6/lib \
1058 /usr/X11R5/lib \
1059 /usr/X11R4/lib \
1060 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001061 /usr/lib/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001062 /usr/lib/X11R6 \
1063 /usr/lib/X11R5 \
1064 /usr/lib/X11R4 \
1065 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001066 /usr/local/X11/lib \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001067 /usr/local/X11R6/lib \
1068 /usr/local/X11R5/lib \
1069 /usr/local/X11R4/lib \
1070 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001071 /usr/local/lib/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001072 /usr/local/lib/X11R6 \
1073 /usr/local/lib/X11R5 \
1074 /usr/local/lib/X11R4 \
1075 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001076 /usr/X386/lib \
1077 /usr/x386/lib \
1078 /usr/XFree86/lib/X11 \
1079 \
1080 /usr/lib \
1081 /usr/local/lib \
1082 /usr/unsupported/lib \
1083 /usr/athena/lib \
1084 /usr/local/x11r5/lib \
1085 /usr/lpp/Xamples/lib \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001086 /lib/usr/lib/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001087 \
1088 /usr/openwin/lib \
1089 /usr/openwin/share/lib \
1090 ; \
1091do
1092 for ac_extension in a so sl; do
1093 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001094 ac_x_libraries=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001095 break 2
1096 fi
1097 done
1098done
1099fi
1100rm -f conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001101fi # $ac_x_libraries = NO
1102
1103if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1104 # Didn't find X anywhere. Cache the known absence of X.
1105 ac_cv_have_x="have_x=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001106else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001107 # Record where we found X for the cache.
1108 ac_cv_have_x="have_x=yes \
1109 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001110fi
1111fi
1112 fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001113 eval "$ac_cv_have_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001114fi # $with_x != no
1115
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001116if test "$have_x" != yes; then
1117 echo "$ac_t""$have_x" 1>&6
1118 no_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001119else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001120 # If each of the values was on the command line, it overrides each guess.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001121 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1122 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001123 # Update the cache value to reflect the command line values.
1124 ac_cv_have_x="have_x=yes \
1125 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001126 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1127fi
1128
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001129if test "$no_x" = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001130 # Not all programs may use this symbol, but it does not hurt to define it.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001131 cat >> confdefs.h <<\EOF
1132#define X_DISPLAY_MISSING 1
1133EOF
1134
1135 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001136else
1137 if test -n "$x_includes"; then
1138 X_CFLAGS="$X_CFLAGS -I$x_includes"
1139 fi
1140
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001141 # It would also be nice to do this for all -L options, not just this one.
1142 if test -n "$x_libraries"; then
1143 X_LIBS="$X_LIBS -L$x_libraries"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001144 # For Solaris; some versions of Sun CC require a space after -R and
1145 # others require no space. Words are not sufficient . . . .
1146 case "`(uname -sr) 2>/dev/null`" in
1147 "SunOS 5"*)
1148 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001149echo "configure:1150: checking whether -R must be followed by a space" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001150 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1151 cat > conftest.$ac_ext <<EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001152#line 1153 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001153#include "confdefs.h"
1154
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001155int main() {
1156
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001157; return 0; }
1158EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001159if { (eval echo configure:1160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001160 rm -rf conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001161 ac_R_nospace=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001162else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001163 echo "configure: failed program was:" >&5
1164 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001165 rm -rf conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001166 ac_R_nospace=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001167fi
1168rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001169 if test $ac_R_nospace = yes; then
1170 echo "$ac_t""no" 1>&6
1171 X_LIBS="$X_LIBS -R$x_libraries"
1172 else
1173 LIBS="$ac_xsave_LIBS -R $x_libraries"
1174 cat > conftest.$ac_ext <<EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001175#line 1176 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001176#include "confdefs.h"
1177
1178int main() {
1179
1180; return 0; }
1181EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001182if { (eval echo configure:1183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001183 rm -rf conftest*
1184 ac_R_space=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001185else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001186 echo "configure: failed program was:" >&5
1187 cat conftest.$ac_ext >&5
1188 rm -rf conftest*
1189 ac_R_space=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001190fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001191rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001192 if test $ac_R_space = yes; then
1193 echo "$ac_t""yes" 1>&6
1194 X_LIBS="$X_LIBS -R $x_libraries"
1195 else
1196 echo "$ac_t""neither works" 1>&6
1197 fi
1198 fi
1199 LIBS="$ac_xsave_LIBS"
1200 esac
1201 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001202
1203 # Check for system-dependent libraries X programs must link with.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001204 # Do this before checking for the system-independent R6 libraries
1205 # (-lICE), since we may need -lsocket or whatever for X linking.
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001206
1207 if test "$ISC" = yes; then
1208 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1209 else
1210 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1211 # libraries were built with DECnet support. And karl@cs.umb.edu says
1212 # the Alpha needs dnet_stub (dnet does not exist).
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001213 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001214echo "configure:1215: checking for dnet_ntoa in -ldnet" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001215ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001216if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001217 echo $ac_n "(cached) $ac_c" 1>&6
1218else
1219 ac_save_LIBS="$LIBS"
1220LIBS="-ldnet $LIBS"
1221cat > conftest.$ac_ext <<EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001222#line 1223 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001223#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001224/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001225/* We use char because int might match the return type of a gcc2
1226 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001227char dnet_ntoa();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001228
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001229int main() {
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001230dnet_ntoa()
1231; return 0; }
1232EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001233if { (eval echo configure:1234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001234 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001235 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001236else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001237 echo "configure: failed program was:" >&5
1238 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001239 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001240 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001241fi
1242rm -f conftest*
1243LIBS="$ac_save_LIBS"
1244
1245fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001246if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001247 echo "$ac_t""yes" 1>&6
1248 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1249else
1250 echo "$ac_t""no" 1>&6
1251fi
1252
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001253 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001254 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001255echo "configure:1256: checking for dnet_ntoa in -ldnet_stub" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001256ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001257if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001258 echo $ac_n "(cached) $ac_c" 1>&6
1259else
1260 ac_save_LIBS="$LIBS"
1261LIBS="-ldnet_stub $LIBS"
1262cat > conftest.$ac_ext <<EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001263#line 1264 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001264#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001265/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001266/* We use char because int might match the return type of a gcc2
1267 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001268char dnet_ntoa();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001269
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001270int main() {
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001271dnet_ntoa()
1272; return 0; }
1273EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001274if { (eval echo configure:1275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001275 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001276 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001277else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001278 echo "configure: failed program was:" >&5
1279 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001280 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001281 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001282fi
1283rm -f conftest*
1284LIBS="$ac_save_LIBS"
1285
1286fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001287if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001288 echo "$ac_t""yes" 1>&6
1289 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1290else
1291 echo "$ac_t""no" 1>&6
1292fi
1293
1294 fi
1295
1296 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1297 # to get the SysV transport functions.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001298 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1299 # needs -lnsl.
1300 # The nsl library prevents programs from opening the X display
1301 # on Irix 5.2, according to dickey@clark.net.
1302 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001303echo "configure:1304: checking for gethostbyname" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001304if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1305 echo $ac_n "(cached) $ac_c" 1>&6
1306else
1307 cat > conftest.$ac_ext <<EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001308#line 1309 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001309#include "confdefs.h"
1310/* System header to define __stub macros and hopefully few prototypes,
1311 which can conflict with char gethostbyname(); below. */
1312#include <assert.h>
1313/* Override any gcc2 internal prototype to avoid an error. */
1314/* We use char because int might match the return type of a gcc2
1315 builtin and then its argument prototype would still apply. */
1316char gethostbyname();
1317
1318int main() {
1319
1320/* The GNU C library defines this for functions which it implements
1321 to always fail with ENOSYS. Some functions are actually named
1322 something starting with __ and the normal name is an alias. */
1323#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1324choke me
1325#else
1326gethostbyname();
1327#endif
1328
1329; return 0; }
1330EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001331if { (eval echo configure:1332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001332 rm -rf conftest*
1333 eval "ac_cv_func_gethostbyname=yes"
1334else
1335 echo "configure: failed program was:" >&5
1336 cat conftest.$ac_ext >&5
1337 rm -rf conftest*
1338 eval "ac_cv_func_gethostbyname=no"
1339fi
1340rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001341fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001342
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001343if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1344 echo "$ac_t""yes" 1>&6
1345 :
1346else
1347 echo "$ac_t""no" 1>&6
1348fi
1349
1350 if test $ac_cv_func_gethostbyname = no; then
1351 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001352echo "configure:1353: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001353ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001354if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001355 echo $ac_n "(cached) $ac_c" 1>&6
1356else
1357 ac_save_LIBS="$LIBS"
1358LIBS="-lnsl $LIBS"
1359cat > conftest.$ac_ext <<EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001360#line 1361 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001361#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001362/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001363/* We use char because int might match the return type of a gcc2
1364 builtin and then its argument prototype would still apply. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001365char gethostbyname();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001366
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001367int main() {
1368gethostbyname()
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001369; return 0; }
1370EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001371if { (eval echo configure:1372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001372 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001373 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001374else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001375 echo "configure: failed program was:" >&5
1376 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001377 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001378 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001379fi
1380rm -f conftest*
1381LIBS="$ac_save_LIBS"
1382
1383fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001384if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001385 echo "$ac_t""yes" 1>&6
1386 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1387else
1388 echo "$ac_t""no" 1>&6
1389fi
1390
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001391 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001392
1393 # lieder@skyler.mavd.honeywell.com says without -lsocket,
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001394 # socket/setsockopt and other routines are undefined under SCO ODT
1395 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1396 # on later versions), says simon@lia.di.epfl.ch: it contains
1397 # gethostby* variants that don't use the nameserver (or something).
1398 # -lsocket must be given before -lnsl if both are needed.
1399 # We assume that if connect needs -lnsl, so does gethostbyname.
1400 echo $ac_n "checking for connect""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001401echo "configure:1402: checking for connect" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001402if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1403 echo $ac_n "(cached) $ac_c" 1>&6
1404else
1405 cat > conftest.$ac_ext <<EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001406#line 1407 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001407#include "confdefs.h"
1408/* System header to define __stub macros and hopefully few prototypes,
1409 which can conflict with char connect(); below. */
1410#include <assert.h>
1411/* Override any gcc2 internal prototype to avoid an error. */
1412/* We use char because int might match the return type of a gcc2
1413 builtin and then its argument prototype would still apply. */
1414char connect();
1415
1416int main() {
1417
1418/* The GNU C library defines this for functions which it implements
1419 to always fail with ENOSYS. Some functions are actually named
1420 something starting with __ and the normal name is an alias. */
1421#if defined (__stub_connect) || defined (__stub___connect)
1422choke me
1423#else
1424connect();
1425#endif
1426
1427; return 0; }
1428EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001429if { (eval echo configure:1430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001430 rm -rf conftest*
1431 eval "ac_cv_func_connect=yes"
1432else
1433 echo "configure: failed program was:" >&5
1434 cat conftest.$ac_ext >&5
1435 rm -rf conftest*
1436 eval "ac_cv_func_connect=no"
1437fi
1438rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001439fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001440
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001441if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1442 echo "$ac_t""yes" 1>&6
1443 :
1444else
1445 echo "$ac_t""no" 1>&6
1446fi
1447
1448 if test $ac_cv_func_connect = no; then
1449 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001450echo "configure:1451: checking for connect in -lsocket" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001451ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001452if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001453 echo $ac_n "(cached) $ac_c" 1>&6
1454else
1455 ac_save_LIBS="$LIBS"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001456LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001457cat > conftest.$ac_ext <<EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001458#line 1459 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001459#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001460/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001461/* We use char because int might match the return type of a gcc2
1462 builtin and then its argument prototype would still apply. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001463char connect();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001464
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001465int main() {
1466connect()
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001467; return 0; }
1468EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001469if { (eval echo configure:1470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001470 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001471 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001472else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001473 echo "configure: failed program was:" >&5
1474 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001475 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001476 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001477fi
1478rm -f conftest*
1479LIBS="$ac_save_LIBS"
1480
1481fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001482if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001483 echo "$ac_t""yes" 1>&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001484 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001485else
1486 echo "$ac_t""no" 1>&6
1487fi
1488
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001489 fi
1490
1491 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1492 echo $ac_n "checking for remove""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001493echo "configure:1494: checking for remove" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001494if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1495 echo $ac_n "(cached) $ac_c" 1>&6
1496else
1497 cat > conftest.$ac_ext <<EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001498#line 1499 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001499#include "confdefs.h"
1500/* System header to define __stub macros and hopefully few prototypes,
1501 which can conflict with char remove(); below. */
1502#include <assert.h>
1503/* Override any gcc2 internal prototype to avoid an error. */
1504/* We use char because int might match the return type of a gcc2
1505 builtin and then its argument prototype would still apply. */
1506char remove();
1507
1508int main() {
1509
1510/* The GNU C library defines this for functions which it implements
1511 to always fail with ENOSYS. Some functions are actually named
1512 something starting with __ and the normal name is an alias. */
1513#if defined (__stub_remove) || defined (__stub___remove)
1514choke me
1515#else
1516remove();
1517#endif
1518
1519; return 0; }
1520EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001521if { (eval echo configure:1522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001522 rm -rf conftest*
1523 eval "ac_cv_func_remove=yes"
1524else
1525 echo "configure: failed program was:" >&5
1526 cat conftest.$ac_ext >&5
1527 rm -rf conftest*
1528 eval "ac_cv_func_remove=no"
1529fi
1530rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001531fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001532
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001533if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1534 echo "$ac_t""yes" 1>&6
1535 :
1536else
1537 echo "$ac_t""no" 1>&6
1538fi
1539
1540 if test $ac_cv_func_remove = no; then
1541 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001542echo "configure:1543: checking for remove in -lposix" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001543ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001544if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1545 echo $ac_n "(cached) $ac_c" 1>&6
1546else
1547 ac_save_LIBS="$LIBS"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001548LIBS="-lposix $LIBS"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001549cat > conftest.$ac_ext <<EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001550#line 1551 "configure"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001551#include "confdefs.h"
1552/* Override any gcc2 internal prototype to avoid an error. */
1553/* We use char because int might match the return type of a gcc2
1554 builtin and then its argument prototype would still apply. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001555char remove();
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001556
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001557int main() {
1558remove()
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001559; return 0; }
1560EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001561if { (eval echo configure:1562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001562 rm -rf conftest*
1563 eval "ac_cv_lib_$ac_lib_var=yes"
1564else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001565 echo "configure: failed program was:" >&5
1566 cat conftest.$ac_ext >&5
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001567 rm -rf conftest*
1568 eval "ac_cv_lib_$ac_lib_var=no"
1569fi
1570rm -f conftest*
1571LIBS="$ac_save_LIBS"
1572
1573fi
1574if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1575 echo "$ac_t""yes" 1>&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001576 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001577else
1578 echo "$ac_t""no" 1>&6
1579fi
1580
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001581 fi
1582
1583 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1584 echo $ac_n "checking for shmat""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001585echo "configure:1586: checking for shmat" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001586if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1587 echo $ac_n "(cached) $ac_c" 1>&6
1588else
1589 cat > conftest.$ac_ext <<EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001590#line 1591 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001591#include "confdefs.h"
1592/* System header to define __stub macros and hopefully few prototypes,
1593 which can conflict with char shmat(); below. */
1594#include <assert.h>
1595/* Override any gcc2 internal prototype to avoid an error. */
1596/* We use char because int might match the return type of a gcc2
1597 builtin and then its argument prototype would still apply. */
1598char shmat();
1599
1600int main() {
1601
1602/* The GNU C library defines this for functions which it implements
1603 to always fail with ENOSYS. Some functions are actually named
1604 something starting with __ and the normal name is an alias. */
1605#if defined (__stub_shmat) || defined (__stub___shmat)
1606choke me
1607#else
1608shmat();
1609#endif
1610
1611; return 0; }
1612EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001613if { (eval echo configure:1614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001614 rm -rf conftest*
1615 eval "ac_cv_func_shmat=yes"
1616else
1617 echo "configure: failed program was:" >&5
1618 cat conftest.$ac_ext >&5
1619 rm -rf conftest*
1620 eval "ac_cv_func_shmat=no"
1621fi
1622rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001623fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001624
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001625if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1626 echo "$ac_t""yes" 1>&6
1627 :
1628else
1629 echo "$ac_t""no" 1>&6
1630fi
1631
1632 if test $ac_cv_func_shmat = no; then
1633 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001634echo "configure:1635: checking for shmat in -lipc" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001635ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1636if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1637 echo $ac_n "(cached) $ac_c" 1>&6
1638else
1639 ac_save_LIBS="$LIBS"
1640LIBS="-lipc $LIBS"
1641cat > conftest.$ac_ext <<EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001642#line 1643 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001643#include "confdefs.h"
1644/* Override any gcc2 internal prototype to avoid an error. */
1645/* We use char because int might match the return type of a gcc2
1646 builtin and then its argument prototype would still apply. */
1647char shmat();
1648
1649int main() {
1650shmat()
1651; return 0; }
1652EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001653if { (eval echo configure:1654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001654 rm -rf conftest*
1655 eval "ac_cv_lib_$ac_lib_var=yes"
1656else
1657 echo "configure: failed program was:" >&5
1658 cat conftest.$ac_ext >&5
1659 rm -rf conftest*
1660 eval "ac_cv_lib_$ac_lib_var=no"
1661fi
1662rm -f conftest*
1663LIBS="$ac_save_LIBS"
1664
1665fi
1666if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1667 echo "$ac_t""yes" 1>&6
1668 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1669else
1670 echo "$ac_t""no" 1>&6
1671fi
1672
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001673 fi
1674 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001675
1676 # Check for libraries that X11R6 Xt/Xaw programs need.
1677 ac_save_LDFLAGS="$LDFLAGS"
1678 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1679 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1680 # check for ICE first), but we must link in the order -lSM -lICE or
1681 # we get undefined symbols. So assume we have SM if we have ICE.
1682 # These have to be linked with before -lX11, unlike the other
1683 # libraries we check for below, so use a different variable.
1684 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1685 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001686echo "configure:1687: checking for IceConnectionNumber in -lICE" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001687ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1688if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6
1690else
1691 ac_save_LIBS="$LIBS"
1692LIBS="-lICE $LIBS"
1693cat > conftest.$ac_ext <<EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001694#line 1695 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001695#include "confdefs.h"
1696/* Override any gcc2 internal prototype to avoid an error. */
1697/* We use char because int might match the return type of a gcc2
1698 builtin and then its argument prototype would still apply. */
1699char IceConnectionNumber();
1700
1701int main() {
1702IceConnectionNumber()
1703; return 0; }
1704EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001705if { (eval echo configure:1706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001706 rm -rf conftest*
1707 eval "ac_cv_lib_$ac_lib_var=yes"
1708else
1709 echo "configure: failed program was:" >&5
1710 cat conftest.$ac_ext >&5
1711 rm -rf conftest*
1712 eval "ac_cv_lib_$ac_lib_var=no"
1713fi
1714rm -f conftest*
1715LIBS="$ac_save_LIBS"
1716
1717fi
1718if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1719 echo "$ac_t""yes" 1>&6
1720 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1721else
1722 echo "$ac_t""no" 1>&6
1723fi
1724
1725 LDFLAGS="$ac_save_LDFLAGS"
1726
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001727fi
1728
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001729for ac_prog in 'bison -y' byacc
1730do
1731# Extract the first word of "$ac_prog", so it can be a program name with args.
1732set dummy $ac_prog; ac_word=$2
1733echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001734echo "configure:1735: checking for $ac_word" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001735if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1736 echo $ac_n "(cached) $ac_c" 1>&6
1737else
1738 if test -n "$YACC"; then
1739 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1740else
1741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1742 for ac_dir in $PATH; do
1743 test -z "$ac_dir" && ac_dir=.
1744 if test -f $ac_dir/$ac_word; then
1745 ac_cv_prog_YACC="$ac_prog"
1746 break
1747 fi
1748 done
1749 IFS="$ac_save_ifs"
1750fi
1751fi
1752YACC="$ac_cv_prog_YACC"
1753if test -n "$YACC"; then
1754 echo "$ac_t""$YACC" 1>&6
1755else
1756 echo "$ac_t""no" 1>&6
1757fi
1758
1759test -n "$YACC" && break
1760done
1761test -n "$YACC" || YACC="yacc"
1762
1763# Extract the first word of "flex", so it can be a program name with args.
1764set dummy flex; ac_word=$2
1765echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001766echo "configure:1767: checking for $ac_word" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001767if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1768 echo $ac_n "(cached) $ac_c" 1>&6
1769else
1770 if test -n "$LEX"; then
1771 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1772else
1773 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1774 for ac_dir in $PATH; do
1775 test -z "$ac_dir" && ac_dir=.
1776 if test -f $ac_dir/$ac_word; then
1777 ac_cv_prog_LEX="flex"
1778 break
1779 fi
1780 done
1781 IFS="$ac_save_ifs"
1782 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1783fi
1784fi
1785LEX="$ac_cv_prog_LEX"
1786if test -n "$LEX"; then
1787 echo "$ac_t""$LEX" 1>&6
1788else
1789 echo "$ac_t""no" 1>&6
1790fi
1791
1792if test -z "$LEXLIB"
1793then
1794 case "$LEX" in
1795 flex*) ac_lib=fl ;;
1796 *) ac_lib=l ;;
1797 esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001798 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001799echo "configure:1800: checking for yywrap in -l$ac_lib" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001800ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001801if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001802 echo $ac_n "(cached) $ac_c" 1>&6
1803else
1804 ac_save_LIBS="$LIBS"
1805LIBS="-l$ac_lib $LIBS"
1806cat > conftest.$ac_ext <<EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001807#line 1808 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001808#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001809/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001810/* We use char because int might match the return type of a gcc2
1811 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001812char yywrap();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001813
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001814int main() {
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001815yywrap()
1816; return 0; }
1817EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001818if { (eval echo configure:1819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001819 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001820 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001821else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001822 echo "configure: failed program was:" >&5
1823 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001824 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001825 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001826fi
1827rm -f conftest*
1828LIBS="$ac_save_LIBS"
1829
1830fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001831if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001832 echo "$ac_t""yes" 1>&6
1833 LEXLIB="-l$ac_lib"
1834else
1835 echo "$ac_t""no" 1>&6
1836fi
1837
1838fi
1839
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001840# Extract the first word of "ranlib", so it can be a program name with args.
1841set dummy ranlib; ac_word=$2
1842echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001843echo "configure:1844: checking for $ac_word" >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001844if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1845 echo $ac_n "(cached) $ac_c" 1>&6
1846else
1847 if test -n "$RANLIB"; then
1848 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1849else
1850 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1851 for ac_dir in $PATH; do
1852 test -z "$ac_dir" && ac_dir=.
1853 if test -f $ac_dir/$ac_word; then
1854 ac_cv_prog_RANLIB="ranlib"
1855 break
1856 fi
1857 done
1858 IFS="$ac_save_ifs"
1859 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001860fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001861fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001862RANLIB="$ac_cv_prog_RANLIB"
1863if test -n "$RANLIB"; then
1864 echo "$ac_t""$RANLIB" 1>&6
1865else
1866 echo "$ac_t""no" 1>&6
1867fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001868
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001869# Find a good install program. We prefer a C program (faster),
1870# so one script is as good as another. But avoid the broken or
1871# incompatible versions:
1872# SysV /etc/install, /usr/sbin/install
1873# SunOS /usr/etc/install
1874# IRIX /sbin/install
1875# AIX /bin/install
1876# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1877# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1878# ./install, which can be erroneously created by make from ./install.sh.
1879echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001880echo "configure:1881: checking for a BSD compatible install" >&5
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001881if test -z "$INSTALL"; then
1882if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1884else
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001885 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001886 for ac_dir in $PATH; do
1887 # Account for people who put trailing slashes in PATH elements.
1888 case "$ac_dir/" in
1889 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1890 *)
1891 # OSF1 and SCO ODT 3.0 have their own names for install.
1892 for ac_prog in ginstall installbsd scoinst install; do
1893 if test -f $ac_dir/$ac_prog; then
1894 if test $ac_prog = install &&
1895 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1896 # AIX install. It has an incompatible calling convention.
1897 # OSF/1 installbsd also uses dspmsg, but is usable.
1898 :
1899 else
1900 ac_cv_path_install="$ac_dir/$ac_prog -c"
1901 break 2
1902 fi
1903 fi
1904 done
1905 ;;
1906 esac
1907 done
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001908 IFS="$ac_save_IFS"
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001909
1910fi
1911 if test "${ac_cv_path_install+set}" = set; then
1912 INSTALL="$ac_cv_path_install"
1913 else
1914 # As a last resort, use the slow shell script. We don't cache a
1915 # path for INSTALL within a source directory, because that will
1916 # break other packages using the cache if that directory is
1917 # removed, or if the path is relative.
1918 INSTALL="$ac_install_sh"
1919 fi
1920fi
1921echo "$ac_t""$INSTALL" 1>&6
1922
1923# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1924# It thinks the first close brace ends the variable substitution.
1925test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1926
1927test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1928
Alexandre Julliard641ee761997-08-04 16:34:36 +00001929echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001930echo "configure:1931: checking whether ln -s works" >&5
Alexandre Julliard641ee761997-08-04 16:34:36 +00001931if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1932 echo $ac_n "(cached) $ac_c" 1>&6
1933else
1934 rm -f conftestdata
1935if ln -s X conftestdata 2>/dev/null
1936then
1937 rm -f conftestdata
1938 ac_cv_prog_LN_S="ln -s"
1939else
1940 ac_cv_prog_LN_S=ln
1941fi
1942fi
1943LN_S="$ac_cv_prog_LN_S"
1944if test "$ac_cv_prog_LN_S" = "ln -s"; then
1945 echo "$ac_t""yes" 1>&6
1946else
1947 echo "$ac_t""no" 1>&6
1948fi
1949
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00001950# Extract the first word of "c2man", so it can be a program name with args.
1951set dummy c2man; ac_word=$2
1952echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001953echo "configure:1954: checking for $ac_word" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00001954if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
1955 echo $ac_n "(cached) $ac_c" 1>&6
1956else
1957 if test -n "$C2MAN"; then
1958 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
1959else
1960 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1961 for ac_dir in $PATH; do
1962 test -z "$ac_dir" && ac_dir=.
1963 if test -f $ac_dir/$ac_word; then
1964 ac_cv_prog_C2MAN="c2man"
1965 break
1966 fi
1967 done
1968 IFS="$ac_save_ifs"
1969 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="true"
1970fi
1971fi
1972C2MAN="$ac_cv_prog_C2MAN"
1973if test -n "$C2MAN"; then
1974 echo "$ac_t""$C2MAN" 1>&6
1975else
1976 echo "$ac_t""no" 1>&6
1977fi
1978
Alexandre Julliard02e90081998-01-04 17:49:09 +00001979
1980
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001981echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001982echo "configure:1983: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001983ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001984if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliard902da691995-11-05 14:39:02 +00001985 echo $ac_n "(cached) $ac_c" 1>&6
1986else
1987 ac_save_LIBS="$LIBS"
1988LIBS="-li386 $LIBS"
1989cat > conftest.$ac_ext <<EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00001990#line 1991 "configure"
Alexandre Julliard902da691995-11-05 14:39:02 +00001991#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001992/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001993/* We use char because int might match the return type of a gcc2
1994 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001995char i386_set_ldt();
Alexandre Julliard902da691995-11-05 14:39:02 +00001996
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001997int main() {
Alexandre Julliard902da691995-11-05 14:39:02 +00001998i386_set_ldt()
1999; return 0; }
2000EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00002001if { (eval echo configure:2002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Alexandre Julliard902da691995-11-05 14:39:02 +00002002 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002003 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliard902da691995-11-05 14:39:02 +00002004else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002005 echo "configure: failed program was:" >&5
2006 cat conftest.$ac_ext >&5
Alexandre Julliard902da691995-11-05 14:39:02 +00002007 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002008 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliard902da691995-11-05 14:39:02 +00002009fi
2010rm -f conftest*
2011LIBS="$ac_save_LIBS"
2012
2013fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002014if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliard902da691995-11-05 14:39:02 +00002015 echo "$ac_t""yes" 1>&6
Alexandre Julliard02e90081998-01-04 17:49:09 +00002016 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2017 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2018 cat >> confdefs.h <<EOF
2019#define $ac_tr_lib 1
2020EOF
2021
2022 LIBS="-li386 $LIBS"
2023
2024else
2025 echo "$ac_t""no" 1>&6
2026fi
2027
Todd Vierlingecc76691998-12-15 17:49:02 +00002028echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00002029echo "configure:2030: checking for _oss_ioctl in -lossaudio" >&5
Todd Vierlingecc76691998-12-15 17:49:02 +00002030ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2031if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2032 echo $ac_n "(cached) $ac_c" 1>&6
2033else
2034 ac_save_LIBS="$LIBS"
2035LIBS="-lossaudio $LIBS"
2036cat > conftest.$ac_ext <<EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00002037#line 2038 "configure"
Todd Vierlingecc76691998-12-15 17:49:02 +00002038#include "confdefs.h"
2039/* Override any gcc2 internal prototype to avoid an error. */
2040/* We use char because int might match the return type of a gcc2
2041 builtin and then its argument prototype would still apply. */
2042char _oss_ioctl();
2043
2044int main() {
2045_oss_ioctl()
2046; return 0; }
2047EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00002048if { (eval echo configure:2049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Todd Vierlingecc76691998-12-15 17:49:02 +00002049 rm -rf conftest*
2050 eval "ac_cv_lib_$ac_lib_var=yes"
2051else
2052 echo "configure: failed program was:" >&5
2053 cat conftest.$ac_ext >&5
2054 rm -rf conftest*
2055 eval "ac_cv_lib_$ac_lib_var=no"
2056fi
2057rm -f conftest*
2058LIBS="$ac_save_LIBS"
2059
2060fi
2061if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2062 echo "$ac_t""yes" 1>&6
2063 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2064 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2065 cat >> confdefs.h <<EOF
2066#define $ac_tr_lib 1
2067EOF
2068
2069 LIBS="-lossaudio $LIBS"
2070
2071else
2072 echo "$ac_t""no" 1>&6
2073fi
2074
Alexandre Julliard02e90081998-01-04 17:49:09 +00002075echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00002076echo "configure:2077: checking for iswalnum in -lw" >&5
Alexandre Julliard02e90081998-01-04 17:49:09 +00002077ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2078if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2079 echo $ac_n "(cached) $ac_c" 1>&6
2080else
2081 ac_save_LIBS="$LIBS"
2082LIBS="-lw $LIBS"
2083cat > conftest.$ac_ext <<EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00002084#line 2085 "configure"
Alexandre Julliard02e90081998-01-04 17:49:09 +00002085#include "confdefs.h"
2086/* Override any gcc2 internal prototype to avoid an error. */
2087/* We use char because int might match the return type of a gcc2
2088 builtin and then its argument prototype would still apply. */
2089char iswalnum();
2090
2091int main() {
2092iswalnum()
2093; return 0; }
2094EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00002095if { (eval echo configure:2096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Alexandre Julliard02e90081998-01-04 17:49:09 +00002096 rm -rf conftest*
2097 eval "ac_cv_lib_$ac_lib_var=yes"
2098else
2099 echo "configure: failed program was:" >&5
2100 cat conftest.$ac_ext >&5
2101 rm -rf conftest*
2102 eval "ac_cv_lib_$ac_lib_var=no"
2103fi
2104rm -f conftest*
2105LIBS="$ac_save_LIBS"
2106
2107fi
2108if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2109 echo "$ac_t""yes" 1>&6
2110 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2111 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2112 cat >> confdefs.h <<EOF
2113#define $ac_tr_lib 1
2114EOF
2115
2116 LIBS="-lw $LIBS"
2117
2118else
2119 echo "$ac_t""no" 1>&6
2120fi
2121
Patrik Stridvallea584721998-11-01 16:22:07 +00002122for ac_func in gethostbyname
2123do
2124echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00002125echo "configure:2126: checking for $ac_func" >&5
Patrik Stridvallea584721998-11-01 16:22:07 +00002126if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2128else
2129 cat > conftest.$ac_ext <<EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00002130#line 2131 "configure"
Patrik Stridvallea584721998-11-01 16:22:07 +00002131#include "confdefs.h"
2132/* System header to define __stub macros and hopefully few prototypes,
2133 which can conflict with char $ac_func(); below. */
2134#include <assert.h>
2135/* Override any gcc2 internal prototype to avoid an error. */
2136/* We use char because int might match the return type of a gcc2
2137 builtin and then its argument prototype would still apply. */
2138char $ac_func();
2139
2140int main() {
2141
2142/* The GNU C library defines this for functions which it implements
2143 to always fail with ENOSYS. Some functions are actually named
2144 something starting with __ and the normal name is an alias. */
2145#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2146choke me
2147#else
2148$ac_func();
2149#endif
2150
2151; return 0; }
2152EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00002153if { (eval echo configure:2154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Patrik Stridvallea584721998-11-01 16:22:07 +00002154 rm -rf conftest*
2155 eval "ac_cv_func_$ac_func=yes"
2156else
2157 echo "configure: failed program was:" >&5
2158 cat conftest.$ac_ext >&5
2159 rm -rf conftest*
2160 eval "ac_cv_func_$ac_func=no"
2161fi
2162rm -f conftest*
2163fi
2164
2165if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2166 echo "$ac_t""yes" 1>&6
2167 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2168 cat >> confdefs.h <<EOF
2169#define $ac_tr_func 1
2170EOF
2171
2172else
2173 echo "$ac_t""no" 1>&6
2174fi
2175done
2176
2177if test "$ac_cv_func_gethostbyname" = "no"
2178then
2179 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00002180echo "configure:2181: checking for gethostbyname in -lnsl" >&5
Patrik Stridvallea584721998-11-01 16:22:07 +00002181ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2182if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2184else
2185 ac_save_LIBS="$LIBS"
2186LIBS="-lnsl $LIBS"
2187cat > conftest.$ac_ext <<EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00002188#line 2189 "configure"
Patrik Stridvallea584721998-11-01 16:22:07 +00002189#include "confdefs.h"
2190/* Override any gcc2 internal prototype to avoid an error. */
2191/* We use char because int might match the return type of a gcc2
2192 builtin and then its argument prototype would still apply. */
2193char gethostbyname();
2194
2195int main() {
2196gethostbyname()
2197; return 0; }
2198EOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00002199if { (eval echo configure:2200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Patrik Stridvallea584721998-11-01 16:22:07 +00002200 rm -rf conftest*
2201 eval "ac_cv_lib_$ac_lib_var=yes"
2202else
2203 echo "configure: failed program was:" >&5
2204 cat conftest.$ac_ext >&5
2205 rm -rf conftest*
2206 eval "ac_cv_lib_$ac_lib_var=no"
2207fi
2208rm -f conftest*
2209LIBS="$ac_save_LIBS"
2210
2211fi
2212if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2213 echo "$ac_t""yes" 1>&6
2214 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2215 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2216 cat >> confdefs.h <<EOF
2217#define $ac_tr_lib 1
2218EOF
2219
2220 LIBS="-lnsl $LIBS"
2221
2222else
2223 echo "$ac_t""no" 1>&6
2224fi
2225
2226fi
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002227for ac_func in connect
2228do
2229echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2230echo "configure:2231: checking for $ac_func" >&5
2231if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2232 echo $ac_n "(cached) $ac_c" 1>&6
2233else
2234 cat > conftest.$ac_ext <<EOF
2235#line 2236 "configure"
2236#include "confdefs.h"
2237/* System header to define __stub macros and hopefully few prototypes,
2238 which can conflict with char $ac_func(); below. */
2239#include <assert.h>
2240/* Override any gcc2 internal prototype to avoid an error. */
2241/* We use char because int might match the return type of a gcc2
2242 builtin and then its argument prototype would still apply. */
2243char $ac_func();
2244
2245int main() {
2246
2247/* The GNU C library defines this for functions which it implements
2248 to always fail with ENOSYS. Some functions are actually named
2249 something starting with __ and the normal name is an alias. */
2250#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2251choke me
2252#else
2253$ac_func();
2254#endif
2255
2256; return 0; }
2257EOF
2258if { (eval echo configure:2259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2259 rm -rf conftest*
2260 eval "ac_cv_func_$ac_func=yes"
2261else
2262 echo "configure: failed program was:" >&5
2263 cat conftest.$ac_ext >&5
2264 rm -rf conftest*
2265 eval "ac_cv_func_$ac_func=no"
2266fi
2267rm -f conftest*
2268fi
2269
2270if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2271 echo "$ac_t""yes" 1>&6
2272 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2273 cat >> confdefs.h <<EOF
2274#define $ac_tr_func 1
2275EOF
2276
2277else
2278 echo "$ac_t""no" 1>&6
2279fi
2280done
2281
2282if test "$ac_cv_func_connect" = "no"
2283then
2284 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2285echo "configure:2286: checking for connect in -lsocket" >&5
2286ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2287if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2288 echo $ac_n "(cached) $ac_c" 1>&6
2289else
2290 ac_save_LIBS="$LIBS"
2291LIBS="-lsocket $LIBS"
2292cat > conftest.$ac_ext <<EOF
2293#line 2294 "configure"
2294#include "confdefs.h"
2295/* Override any gcc2 internal prototype to avoid an error. */
2296/* We use char because int might match the return type of a gcc2
2297 builtin and then its argument prototype would still apply. */
2298char connect();
2299
2300int main() {
2301connect()
2302; return 0; }
2303EOF
2304if { (eval echo configure:2305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2305 rm -rf conftest*
2306 eval "ac_cv_lib_$ac_lib_var=yes"
2307else
2308 echo "configure: failed program was:" >&5
2309 cat conftest.$ac_ext >&5
2310 rm -rf conftest*
2311 eval "ac_cv_lib_$ac_lib_var=no"
2312fi
2313rm -f conftest*
2314LIBS="$ac_save_LIBS"
2315
2316fi
2317if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2318 echo "$ac_t""yes" 1>&6
2319 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2320 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2321 cat >> confdefs.h <<EOF
2322#define $ac_tr_lib 1
2323EOF
2324
2325 LIBS="-lsocket $LIBS"
2326
2327else
2328 echo "$ac_t""no" 1>&6
2329fi
2330
2331fi
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00002332echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002333echo "configure:2334: checking for setrunelocale in -lxpg4" >&5
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00002334ac_lib_var=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2335if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2336 echo $ac_n "(cached) $ac_c" 1>&6
2337else
2338 ac_save_LIBS="$LIBS"
2339LIBS="-lxpg4 $LIBS"
2340cat > conftest.$ac_ext <<EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002341#line 2342 "configure"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00002342#include "confdefs.h"
2343/* Override any gcc2 internal prototype to avoid an error. */
2344/* We use char because int might match the return type of a gcc2
2345 builtin and then its argument prototype would still apply. */
2346char setrunelocale();
2347
2348int main() {
2349setrunelocale()
2350; return 0; }
2351EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002352if { (eval echo configure:2353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00002353 rm -rf conftest*
2354 eval "ac_cv_lib_$ac_lib_var=yes"
2355else
2356 echo "configure: failed program was:" >&5
2357 cat conftest.$ac_ext >&5
2358 rm -rf conftest*
2359 eval "ac_cv_lib_$ac_lib_var=no"
2360fi
2361rm -f conftest*
2362LIBS="$ac_save_LIBS"
2363
2364fi
2365if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2366 echo "$ac_t""yes" 1>&6
2367 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2368 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2369 cat >> confdefs.h <<EOF
2370#define $ac_tr_lib 1
2371EOF
2372
2373 LIBS="-lxpg4 $LIBS"
2374
2375else
2376 echo "$ac_t""no" 1>&6
2377fi
2378
Marcus Meissner8220bc91998-10-11 11:10:27 +00002379echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002380echo "configure:2381: checking for dlopen in -ldl" >&5
Marcus Meissner8220bc91998-10-11 11:10:27 +00002381ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2382if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2384else
2385 ac_save_LIBS="$LIBS"
2386LIBS="-ldl $LIBS"
2387cat > conftest.$ac_ext <<EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002388#line 2389 "configure"
Marcus Meissner8220bc91998-10-11 11:10:27 +00002389#include "confdefs.h"
2390/* Override any gcc2 internal prototype to avoid an error. */
2391/* We use char because int might match the return type of a gcc2
2392 builtin and then its argument prototype would still apply. */
2393char dlopen();
2394
2395int main() {
2396dlopen()
2397; return 0; }
2398EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002399if { (eval echo configure:2400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Marcus Meissner8220bc91998-10-11 11:10:27 +00002400 rm -rf conftest*
2401 eval "ac_cv_lib_$ac_lib_var=yes"
2402else
2403 echo "configure: failed program was:" >&5
2404 cat conftest.$ac_ext >&5
2405 rm -rf conftest*
2406 eval "ac_cv_lib_$ac_lib_var=no"
2407fi
2408rm -f conftest*
2409LIBS="$ac_save_LIBS"
2410
2411fi
2412if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2413 echo "$ac_t""yes" 1>&6
2414 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2415 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2416 cat >> confdefs.h <<EOF
2417#define $ac_tr_lib 1
2418EOF
2419
2420 LIBS="-ldl $LIBS"
2421
2422else
2423 echo "$ac_t""no" 1>&6
2424fi
2425
Patrik Stridvallea584721998-11-01 16:22:07 +00002426
2427if test "$have_x" = "yes"
2428then
Patrik Stridvall24110281999-02-04 10:09:54 +00002429 XLIB="-lXext -lX11"
Ove Kaaven1eb593c1999-02-14 09:34:46 +00002430 ac_save_CPPFLAGS="$CPPFLAGS"
2431 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Patrik Stridvallea584721998-11-01 16:22:07 +00002432
Patrik Stridvall24110281999-02-04 10:09:54 +00002433 for ac_hdr in X11/xpm.h
Lionel Ulmera1d6d241999-01-30 15:54:43 +00002434do
2435ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2436echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002437echo "configure:2438: checking for $ac_hdr" >&5
Lionel Ulmera1d6d241999-01-30 15:54:43 +00002438if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2439 echo $ac_n "(cached) $ac_c" 1>&6
2440else
2441 cat > conftest.$ac_ext <<EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002442#line 2443 "configure"
Lionel Ulmera1d6d241999-01-30 15:54:43 +00002443#include "confdefs.h"
2444#include <$ac_hdr>
2445EOF
2446ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002447{ (eval echo configure:2448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Lionel Ulmera1d6d241999-01-30 15:54:43 +00002448ac_err=`grep -v '^ *+' conftest.out`
2449if test -z "$ac_err"; then
2450 rm -rf conftest*
2451 eval "ac_cv_header_$ac_safe=yes"
2452else
2453 echo "$ac_err" >&5
2454 echo "configure: failed program was:" >&5
2455 cat conftest.$ac_ext >&5
2456 rm -rf conftest*
2457 eval "ac_cv_header_$ac_safe=no"
2458fi
2459rm -f conftest*
2460fi
2461if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2462 echo "$ac_t""yes" 1>&6
2463 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2464 cat >> confdefs.h <<EOF
2465#define $ac_tr_hdr 1
2466EOF
2467
2468else
2469 echo "$ac_t""no" 1>&6
2470fi
2471done
2472
Patrik Stridvall24110281999-02-04 10:09:54 +00002473 if test "$ac_cv_header_X11_xpm_h" = "yes"
2474 then
2475 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002476echo "configure:2477: checking for XpmCreatePixmapFromData in -lXpm" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00002477ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
2478if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2480else
2481 ac_save_LIBS="$LIBS"
2482LIBS="-lXpm $X_LIBS -lXext -lX11 $LIBS"
2483cat > conftest.$ac_ext <<EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002484#line 2485 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00002485#include "confdefs.h"
2486/* Override any gcc2 internal prototype to avoid an error. */
2487/* We use char because int might match the return type of a gcc2
2488 builtin and then its argument prototype would still apply. */
2489char XpmCreatePixmapFromData();
2490
2491int main() {
2492XpmCreatePixmapFromData()
2493; return 0; }
2494EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002495if { (eval echo configure:2496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Patrik Stridvall24110281999-02-04 10:09:54 +00002496 rm -rf conftest*
2497 eval "ac_cv_lib_$ac_lib_var=yes"
2498else
2499 echo "configure: failed program was:" >&5
2500 cat conftest.$ac_ext >&5
2501 rm -rf conftest*
2502 eval "ac_cv_lib_$ac_lib_var=no"
2503fi
2504rm -f conftest*
2505LIBS="$ac_save_LIBS"
2506
2507fi
2508if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2509 echo "$ac_t""yes" 1>&6
2510 cat >> confdefs.h <<\EOF
2511#define HAVE_LIBXXPM 1
2512EOF
2513 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
2514else
2515 echo "$ac_t""no" 1>&6
2516fi
2517
2518 fi
2519
2520 for ac_hdr in X11/Xlib.h X11/extensions/XShm.h
2521do
2522ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2523echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002524echo "configure:2525: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00002525if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2526 echo $ac_n "(cached) $ac_c" 1>&6
2527else
2528 cat > conftest.$ac_ext <<EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002529#line 2530 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00002530#include "confdefs.h"
2531#include <$ac_hdr>
2532EOF
2533ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002534{ (eval echo configure:2535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Patrik Stridvall24110281999-02-04 10:09:54 +00002535ac_err=`grep -v '^ *+' conftest.out`
2536if test -z "$ac_err"; then
2537 rm -rf conftest*
2538 eval "ac_cv_header_$ac_safe=yes"
2539else
2540 echo "$ac_err" >&5
2541 echo "configure: failed program was:" >&5
2542 cat conftest.$ac_ext >&5
2543 rm -rf conftest*
2544 eval "ac_cv_header_$ac_safe=no"
2545fi
2546rm -f conftest*
2547fi
2548if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2549 echo "$ac_t""yes" 1>&6
2550 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2551 cat >> confdefs.h <<EOF
2552#define $ac_tr_hdr 1
2553EOF
2554
2555else
2556 echo "$ac_t""no" 1>&6
2557fi
2558done
2559
2560 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_XShm_h" = "yes"
2561 then
2562 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002563echo "configure:2564: checking for XShmQueryExtension in -lXext" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00002564ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
2565if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2566 echo $ac_n "(cached) $ac_c" 1>&6
2567else
2568 ac_save_LIBS="$LIBS"
2569LIBS="-lXext $X_LIBS -lXext -lX11 $LIBS"
2570cat > conftest.$ac_ext <<EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002571#line 2572 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00002572#include "confdefs.h"
2573/* Override any gcc2 internal prototype to avoid an error. */
2574/* We use char because int might match the return type of a gcc2
2575 builtin and then its argument prototype would still apply. */
2576char XShmQueryExtension();
2577
2578int main() {
2579XShmQueryExtension()
2580; return 0; }
2581EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002582if { (eval echo configure:2583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Patrik Stridvall24110281999-02-04 10:09:54 +00002583 rm -rf conftest*
2584 eval "ac_cv_lib_$ac_lib_var=yes"
2585else
2586 echo "configure: failed program was:" >&5
2587 cat conftest.$ac_ext >&5
2588 rm -rf conftest*
2589 eval "ac_cv_lib_$ac_lib_var=no"
2590fi
2591rm -f conftest*
2592LIBS="$ac_save_LIBS"
2593
2594fi
2595if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2596 echo "$ac_t""yes" 1>&6
2597 cat >> confdefs.h <<\EOF
2598#define HAVE_LIBXXSHM 1
2599EOF
2600
2601else
2602 echo "$ac_t""no" 1>&6
2603fi
2604
2605 fi
2606 for ac_hdr in X11/Xlib.h X11/extensions/xf86dga.h
2607do
2608ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2609echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002610echo "configure:2611: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00002611if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2612 echo $ac_n "(cached) $ac_c" 1>&6
2613else
2614 cat > conftest.$ac_ext <<EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002615#line 2616 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00002616#include "confdefs.h"
2617#include <$ac_hdr>
2618EOF
2619ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002620{ (eval echo configure:2621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Patrik Stridvall24110281999-02-04 10:09:54 +00002621ac_err=`grep -v '^ *+' conftest.out`
2622if test -z "$ac_err"; then
2623 rm -rf conftest*
2624 eval "ac_cv_header_$ac_safe=yes"
2625else
2626 echo "$ac_err" >&5
2627 echo "configure: failed program was:" >&5
2628 cat conftest.$ac_ext >&5
2629 rm -rf conftest*
2630 eval "ac_cv_header_$ac_safe=no"
2631fi
2632rm -f conftest*
2633fi
2634if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2635 echo "$ac_t""yes" 1>&6
2636 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2637 cat >> confdefs.h <<EOF
2638#define $ac_tr_hdr 1
2639EOF
2640
2641else
2642 echo "$ac_t""no" 1>&6
2643fi
2644done
2645
2646 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
2647 then
2648 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002649echo "configure:2650: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00002650ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
2651if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2652 echo $ac_n "(cached) $ac_c" 1>&6
2653else
2654 ac_save_LIBS="$LIBS"
2655LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $LIBS"
2656cat > conftest.$ac_ext <<EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002657#line 2658 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00002658#include "confdefs.h"
2659/* Override any gcc2 internal prototype to avoid an error. */
2660/* We use char because int might match the return type of a gcc2
2661 builtin and then its argument prototype would still apply. */
2662char XF86DGAQueryExtension();
2663
2664int main() {
2665XF86DGAQueryExtension()
2666; return 0; }
2667EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002668if { (eval echo configure:2669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Patrik Stridvall24110281999-02-04 10:09:54 +00002669 rm -rf conftest*
2670 eval "ac_cv_lib_$ac_lib_var=yes"
2671else
2672 echo "configure: failed program was:" >&5
2673 cat conftest.$ac_ext >&5
2674 rm -rf conftest*
2675 eval "ac_cv_lib_$ac_lib_var=no"
2676fi
2677rm -f conftest*
2678LIBS="$ac_save_LIBS"
2679
2680fi
2681if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2682 echo "$ac_t""yes" 1>&6
2683 cat >> confdefs.h <<\EOF
2684#define HAVE_LIBXXF86DGA 1
2685EOF
2686 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
2687else
2688 echo "$ac_t""no" 1>&6
2689fi
2690
2691 fi
2692
2693 for ac_hdr in X11/Xlib.h X11/extensions/xf86vmode.h
2694do
2695ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2696echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002697echo "configure:2698: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00002698if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2699 echo $ac_n "(cached) $ac_c" 1>&6
2700else
2701 cat > conftest.$ac_ext <<EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002702#line 2703 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00002703#include "confdefs.h"
2704#include <$ac_hdr>
2705EOF
2706ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002707{ (eval echo configure:2708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Patrik Stridvall24110281999-02-04 10:09:54 +00002708ac_err=`grep -v '^ *+' conftest.out`
2709if test -z "$ac_err"; then
2710 rm -rf conftest*
2711 eval "ac_cv_header_$ac_safe=yes"
2712else
2713 echo "$ac_err" >&5
2714 echo "configure: failed program was:" >&5
2715 cat conftest.$ac_ext >&5
2716 rm -rf conftest*
2717 eval "ac_cv_header_$ac_safe=no"
2718fi
2719rm -f conftest*
2720fi
2721if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2722 echo "$ac_t""yes" 1>&6
2723 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2724 cat >> confdefs.h <<EOF
2725#define $ac_tr_hdr 1
2726EOF
2727
2728else
2729 echo "$ac_t""no" 1>&6
2730fi
2731done
2732
2733 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
2734 then
2735 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002736echo "configure:2737: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00002737ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
2738if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2740else
2741 ac_save_LIBS="$LIBS"
2742LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $LIBS"
2743cat > conftest.$ac_ext <<EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002744#line 2745 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00002745#include "confdefs.h"
2746/* Override any gcc2 internal prototype to avoid an error. */
2747/* We use char because int might match the return type of a gcc2
2748 builtin and then its argument prototype would still apply. */
2749char XF86VidModeQueryExtension();
2750
2751int main() {
2752XF86VidModeQueryExtension()
2753; return 0; }
2754EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002755if { (eval echo configure:2756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Patrik Stridvall24110281999-02-04 10:09:54 +00002756 rm -rf conftest*
2757 eval "ac_cv_lib_$ac_lib_var=yes"
2758else
2759 echo "configure: failed program was:" >&5
2760 cat conftest.$ac_ext >&5
2761 rm -rf conftest*
2762 eval "ac_cv_lib_$ac_lib_var=no"
2763fi
2764rm -f conftest*
2765LIBS="$ac_save_LIBS"
2766
2767fi
2768if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2769 echo "$ac_t""yes" 1>&6
2770 cat >> confdefs.h <<\EOF
2771#define HAVE_LIBXXF86VM 1
2772EOF
2773 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
2774else
2775 echo "$ac_t""no" 1>&6
2776fi
2777
2778 fi
Lionel Ulmer5c085701999-02-28 19:48:53 +00002779
Patrik Stridvall24110281999-02-04 10:09:54 +00002780 for ac_hdr in GL/gl.h GL/osmesa.h
2781do
2782ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2783echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002784echo "configure:2785: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00002785if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2786 echo $ac_n "(cached) $ac_c" 1>&6
2787else
2788 cat > conftest.$ac_ext <<EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002789#line 2790 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00002790#include "confdefs.h"
2791#include <$ac_hdr>
2792EOF
2793ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002794{ (eval echo configure:2795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Patrik Stridvall24110281999-02-04 10:09:54 +00002795ac_err=`grep -v '^ *+' conftest.out`
2796if test -z "$ac_err"; then
2797 rm -rf conftest*
2798 eval "ac_cv_header_$ac_safe=yes"
2799else
2800 echo "$ac_err" >&5
2801 echo "configure: failed program was:" >&5
2802 cat conftest.$ac_ext >&5
2803 rm -rf conftest*
2804 eval "ac_cv_header_$ac_safe=no"
2805fi
2806rm -f conftest*
2807fi
2808if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2809 echo "$ac_t""yes" 1>&6
2810 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2811 cat >> confdefs.h <<EOF
2812#define $ac_tr_hdr 1
2813EOF
2814
2815else
2816 echo "$ac_t""no" 1>&6
2817fi
2818done
2819
2820 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_osmesa_h" = "yes"
2821 then
Lionel Ulmer5c085701999-02-28 19:48:53 +00002822 echo $ac_n "checking "for up-to-date Mesa version"""... $ac_c" 1>&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002823echo "configure:2824: checking "for up-to-date Mesa version"" >&5
Lionel Ulmer5c085701999-02-28 19:48:53 +00002824if eval "test \"`echo '$''{'wine_cv_mesa_version_OK'+set}'`\" = set"; then
2825 echo $ac_n "(cached) $ac_c" 1>&6
2826else
2827 cat > conftest.$ac_ext <<EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002828#line 2829 "configure"
Lionel Ulmer5c085701999-02-28 19:48:53 +00002829#include "confdefs.h"
2830#include <GL/gl.h>
2831int main() {
2832GLenum test = GL_UNSIGNED_SHORT_5_6_5;
2833; return 0; }
2834EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002835if { (eval echo configure:2836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Lionel Ulmer5c085701999-02-28 19:48:53 +00002836 rm -rf conftest*
2837 wine_cv_mesa_version_OK="yes"
2838else
2839 echo "configure: failed program was:" >&5
2840 cat conftest.$ac_ext >&5
2841 rm -rf conftest*
2842 wine_cv_mesa_version_OK="no"
2843
2844fi
2845rm -f conftest*
2846
2847fi
2848
2849echo "$ac_t""$wine_cv_mesa_version_OK" 1>&6
2850
2851 if test "$wine_cv_mesa_version_OK" = "yes"
2852 then
2853 echo $ac_n "checking for OSMesaCreateContext in -lMesaGL""... $ac_c" 1>&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002854echo "configure:2855: checking for OSMesaCreateContext in -lMesaGL" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00002855ac_lib_var=`echo MesaGL'_'OSMesaCreateContext | sed 'y%./+-%__p_%'`
2856if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2857 echo $ac_n "(cached) $ac_c" 1>&6
2858else
2859 ac_save_LIBS="$LIBS"
2860LIBS="-lMesaGL $X_LIBS -lXext -lX11 -lm $LIBS"
2861cat > conftest.$ac_ext <<EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002862#line 2863 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00002863#include "confdefs.h"
2864/* Override any gcc2 internal prototype to avoid an error. */
2865/* We use char because int might match the return type of a gcc2
2866 builtin and then its argument prototype would still apply. */
2867char OSMesaCreateContext();
2868
2869int main() {
2870OSMesaCreateContext()
2871; return 0; }
2872EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002873if { (eval echo configure:2874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Patrik Stridvall24110281999-02-04 10:09:54 +00002874 rm -rf conftest*
2875 eval "ac_cv_lib_$ac_lib_var=yes"
2876else
2877 echo "configure: failed program was:" >&5
2878 cat conftest.$ac_ext >&5
2879 rm -rf conftest*
2880 eval "ac_cv_lib_$ac_lib_var=no"
2881fi
2882rm -f conftest*
2883LIBS="$ac_save_LIBS"
2884
2885fi
2886if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2887 echo "$ac_t""yes" 1>&6
2888 cat >> confdefs.h <<\EOF
2889#define HAVE_LIBMESAGL 1
2890EOF
2891 X_PRE_LIBS="$X_PRE_LIBS -lMesaGL"
2892else
2893 echo "$ac_t""no" 1>&6
2894fi
2895
Lionel Ulmer5c085701999-02-28 19:48:53 +00002896 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00002897 fi
Ove Kaaven1eb593c1999-02-14 09:34:46 +00002898
2899 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvallea584721998-11-01 16:22:07 +00002900else
2901 XLIB=""
2902 X_CFLAGS=""
2903 X_LIBS=""
2904fi
Alexandre Julliard902da691995-11-05 14:39:02 +00002905
Patrik Stridvall24110281999-02-04 10:09:54 +00002906for ac_hdr in ncurses.h
2907do
2908ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2909echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002910echo "configure:2911: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00002911if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2913else
2914 cat > conftest.$ac_ext <<EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002915#line 2916 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00002916#include "confdefs.h"
2917#include <$ac_hdr>
2918EOF
2919ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002920{ (eval echo configure:2921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Patrik Stridvall24110281999-02-04 10:09:54 +00002921ac_err=`grep -v '^ *+' conftest.out`
2922if test -z "$ac_err"; then
2923 rm -rf conftest*
2924 eval "ac_cv_header_$ac_safe=yes"
2925else
2926 echo "$ac_err" >&5
2927 echo "configure: failed program was:" >&5
2928 cat conftest.$ac_ext >&5
2929 rm -rf conftest*
2930 eval "ac_cv_header_$ac_safe=no"
2931fi
2932rm -f conftest*
2933fi
2934if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2935 echo "$ac_t""yes" 1>&6
2936 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2937 cat >> confdefs.h <<EOF
2938#define $ac_tr_hdr 1
2939EOF
2940
2941else
2942 echo "$ac_t""no" 1>&6
2943fi
2944done
2945
2946if test "$ac_cv_header_ncurses_h" = "yes"
2947then
2948 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002949echo "configure:2950: checking for waddch in -lncurses" >&5
Joseph Praneviche884f9c1999-01-03 16:14:34 +00002950ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
2951if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2952 echo $ac_n "(cached) $ac_c" 1>&6
2953else
2954 ac_save_LIBS="$LIBS"
2955LIBS="-lncurses $LIBS"
2956cat > conftest.$ac_ext <<EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002957#line 2958 "configure"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00002958#include "confdefs.h"
2959/* Override any gcc2 internal prototype to avoid an error. */
2960/* We use char because int might match the return type of a gcc2
2961 builtin and then its argument prototype would still apply. */
2962char waddch();
2963
2964int main() {
2965waddch()
2966; return 0; }
2967EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002968if { (eval echo configure:2969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00002969 rm -rf conftest*
2970 eval "ac_cv_lib_$ac_lib_var=yes"
2971else
2972 echo "configure: failed program was:" >&5
2973 cat conftest.$ac_ext >&5
2974 rm -rf conftest*
2975 eval "ac_cv_lib_$ac_lib_var=no"
2976fi
2977rm -f conftest*
2978LIBS="$ac_save_LIBS"
2979
2980fi
2981if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2982 echo "$ac_t""yes" 1>&6
2983 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2984 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2985 cat >> confdefs.h <<EOF
2986#define $ac_tr_lib 1
2987EOF
2988
2989 LIBS="-lncurses $LIBS"
2990
2991else
2992 echo "$ac_t""no" 1>&6
2993fi
2994
Patrik Stridvall24110281999-02-04 10:09:54 +00002995fi
Joseph Praneviche884f9c1999-01-03 16:14:34 +00002996if test "$ac_cv_lib_ncurses_waddch" = "yes"
Alexandre Julliard638f1691999-01-17 16:32:32 +00002997then
2998 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002999echo "configure:3000: checking for resizeterm in -lncurses" >&5
Alexandre Julliard638f1691999-01-17 16:32:32 +00003000ac_lib_var=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
3001if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3002 echo $ac_n "(cached) $ac_c" 1>&6
3003else
3004 ac_save_LIBS="$LIBS"
3005LIBS="-lncurses $LIBS"
3006cat > conftest.$ac_ext <<EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003007#line 3008 "configure"
Alexandre Julliard638f1691999-01-17 16:32:32 +00003008#include "confdefs.h"
3009/* Override any gcc2 internal prototype to avoid an error. */
3010/* We use char because int might match the return type of a gcc2
3011 builtin and then its argument prototype would still apply. */
3012char resizeterm();
3013
3014int main() {
3015resizeterm()
3016; return 0; }
3017EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003018if { (eval echo configure:3019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Alexandre Julliard638f1691999-01-17 16:32:32 +00003019 rm -rf conftest*
3020 eval "ac_cv_lib_$ac_lib_var=yes"
3021else
3022 echo "configure: failed program was:" >&5
3023 cat conftest.$ac_ext >&5
3024 rm -rf conftest*
3025 eval "ac_cv_lib_$ac_lib_var=no"
3026fi
3027rm -f conftest*
3028LIBS="$ac_save_LIBS"
3029
3030fi
3031if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3032 echo "$ac_t""yes" 1>&6
3033 cat >> confdefs.h <<\EOF
3034#define HAVE_RESIZETERM 1
3035EOF
3036
3037else
3038 echo "$ac_t""no" 1>&6
3039fi
3040
Michael Vekslerf5445071999-02-25 17:11:05 +00003041 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003042echo "configure:3043: checking for getbkgd in -lncurses" >&5
Michael Vekslerf5445071999-02-25 17:11:05 +00003043ac_lib_var=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
3044if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3045 echo $ac_n "(cached) $ac_c" 1>&6
3046else
3047 ac_save_LIBS="$LIBS"
3048LIBS="-lncurses $LIBS"
3049cat > conftest.$ac_ext <<EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003050#line 3051 "configure"
Michael Vekslerf5445071999-02-25 17:11:05 +00003051#include "confdefs.h"
3052/* Override any gcc2 internal prototype to avoid an error. */
3053/* We use char because int might match the return type of a gcc2
3054 builtin and then its argument prototype would still apply. */
3055char getbkgd();
3056
3057int main() {
3058getbkgd()
3059; return 0; }
3060EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003061if { (eval echo configure:3062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Michael Vekslerf5445071999-02-25 17:11:05 +00003062 rm -rf conftest*
3063 eval "ac_cv_lib_$ac_lib_var=yes"
3064else
3065 echo "configure: failed program was:" >&5
3066 cat conftest.$ac_ext >&5
3067 rm -rf conftest*
3068 eval "ac_cv_lib_$ac_lib_var=no"
3069fi
3070rm -f conftest*
3071LIBS="$ac_save_LIBS"
3072
3073fi
3074if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3075 echo "$ac_t""yes" 1>&6
3076 cat >> confdefs.h <<\EOF
3077#define HAVE_GETBKGD 1
3078EOF
3079
3080else
3081 echo "$ac_t""no" 1>&6
3082fi
3083
Joseph Praneviche884f9c1999-01-03 16:14:34 +00003084else
Patrik Stridvall24110281999-02-04 10:09:54 +00003085 for ac_hdr in curses.h
3086do
3087ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3088echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003089echo "configure:3090: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003090if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3091 echo $ac_n "(cached) $ac_c" 1>&6
3092else
3093 cat > conftest.$ac_ext <<EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003094#line 3095 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003095#include "confdefs.h"
3096#include <$ac_hdr>
3097EOF
3098ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003099{ (eval echo configure:3100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Patrik Stridvall24110281999-02-04 10:09:54 +00003100ac_err=`grep -v '^ *+' conftest.out`
3101if test -z "$ac_err"; then
3102 rm -rf conftest*
3103 eval "ac_cv_header_$ac_safe=yes"
3104else
3105 echo "$ac_err" >&5
3106 echo "configure: failed program was:" >&5
3107 cat conftest.$ac_ext >&5
3108 rm -rf conftest*
3109 eval "ac_cv_header_$ac_safe=no"
3110fi
3111rm -f conftest*
3112fi
3113if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3114 echo "$ac_t""yes" 1>&6
3115 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3116 cat >> confdefs.h <<EOF
3117#define $ac_tr_hdr 1
3118EOF
3119
3120else
3121 echo "$ac_t""no" 1>&6
3122fi
3123done
3124
3125 if test "$ac_cv_header_curses_h" = "yes"
3126 then
3127 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003128echo "configure:3129: checking for waddch in -lcurses" >&5
Joseph Praneviche884f9c1999-01-03 16:14:34 +00003129ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
3130if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3131 echo $ac_n "(cached) $ac_c" 1>&6
3132else
3133 ac_save_LIBS="$LIBS"
3134LIBS="-lcurses $LIBS"
3135cat > conftest.$ac_ext <<EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003136#line 3137 "configure"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00003137#include "confdefs.h"
3138/* Override any gcc2 internal prototype to avoid an error. */
3139/* We use char because int might match the return type of a gcc2
3140 builtin and then its argument prototype would still apply. */
3141char waddch();
3142
3143int main() {
3144waddch()
3145; return 0; }
3146EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003147if { (eval echo configure:3148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00003148 rm -rf conftest*
3149 eval "ac_cv_lib_$ac_lib_var=yes"
3150else
3151 echo "configure: failed program was:" >&5
3152 cat conftest.$ac_ext >&5
3153 rm -rf conftest*
3154 eval "ac_cv_lib_$ac_lib_var=no"
3155fi
3156rm -f conftest*
3157LIBS="$ac_save_LIBS"
3158
3159fi
3160if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3161 echo "$ac_t""yes" 1>&6
3162 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3163 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3164 cat >> confdefs.h <<EOF
3165#define $ac_tr_lib 1
3166EOF
3167
3168 LIBS="-lcurses $LIBS"
3169
3170else
3171 echo "$ac_t""no" 1>&6
3172fi
3173
Patrik Stridvall24110281999-02-04 10:09:54 +00003174 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003175echo "configure:3176: checking for resizeterm in -lcurses" >&5
Alexandre Julliard638f1691999-01-17 16:32:32 +00003176ac_lib_var=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
3177if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3178 echo $ac_n "(cached) $ac_c" 1>&6
3179else
3180 ac_save_LIBS="$LIBS"
3181LIBS="-lcurses $LIBS"
3182cat > conftest.$ac_ext <<EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003183#line 3184 "configure"
Alexandre Julliard638f1691999-01-17 16:32:32 +00003184#include "confdefs.h"
3185/* Override any gcc2 internal prototype to avoid an error. */
3186/* We use char because int might match the return type of a gcc2
3187 builtin and then its argument prototype would still apply. */
3188char resizeterm();
3189
3190int main() {
3191resizeterm()
3192; return 0; }
3193EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003194if { (eval echo configure:3195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Alexandre Julliard638f1691999-01-17 16:32:32 +00003195 rm -rf conftest*
3196 eval "ac_cv_lib_$ac_lib_var=yes"
3197else
3198 echo "configure: failed program was:" >&5
3199 cat conftest.$ac_ext >&5
3200 rm -rf conftest*
3201 eval "ac_cv_lib_$ac_lib_var=no"
3202fi
3203rm -f conftest*
3204LIBS="$ac_save_LIBS"
3205
3206fi
3207if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3208 echo "$ac_t""yes" 1>&6
3209 cat >> confdefs.h <<\EOF
3210#define HAVE_RESIZETERM 1
3211EOF
3212
3213else
3214 echo "$ac_t""no" 1>&6
3215fi
3216
Michael Vekslerf5445071999-02-25 17:11:05 +00003217 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003218echo "configure:3219: checking for getbkgd in -lcurses" >&5
Michael Vekslerf5445071999-02-25 17:11:05 +00003219ac_lib_var=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
3220if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3221 echo $ac_n "(cached) $ac_c" 1>&6
3222else
3223 ac_save_LIBS="$LIBS"
3224LIBS="-lcurses $LIBS"
3225cat > conftest.$ac_ext <<EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003226#line 3227 "configure"
Michael Vekslerf5445071999-02-25 17:11:05 +00003227#include "confdefs.h"
3228/* Override any gcc2 internal prototype to avoid an error. */
3229/* We use char because int might match the return type of a gcc2
3230 builtin and then its argument prototype would still apply. */
3231char getbkgd();
3232
3233int main() {
3234getbkgd()
3235; return 0; }
3236EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003237if { (eval echo configure:3238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Michael Vekslerf5445071999-02-25 17:11:05 +00003238 rm -rf conftest*
3239 eval "ac_cv_lib_$ac_lib_var=yes"
3240else
3241 echo "configure: failed program was:" >&5
3242 cat conftest.$ac_ext >&5
3243 rm -rf conftest*
3244 eval "ac_cv_lib_$ac_lib_var=no"
3245fi
3246rm -f conftest*
3247LIBS="$ac_save_LIBS"
3248
3249fi
3250if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3251 echo "$ac_t""yes" 1>&6
3252 cat >> confdefs.h <<\EOF
3253#define HAVE_GETBKGD 1
3254EOF
3255
3256else
3257 echo "$ac_t""no" 1>&6
3258fi
3259
Patrik Stridvall24110281999-02-04 10:09:54 +00003260 fi
Joseph Praneviche884f9c1999-01-03 16:14:34 +00003261fi
3262
Pavel Roskin94d99641998-12-26 11:52:51 +00003263echo $ac_n "checking "for GNU style IPX support"""... $ac_c" 1>&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003264echo "configure:3265: checking "for GNU style IPX support"" >&5
Pavel Roskin94d99641998-12-26 11:52:51 +00003265if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
3266 echo $ac_n "(cached) $ac_c" 1>&6
3267else
3268 cat > conftest.$ac_ext <<EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003269#line 3270 "configure"
Pavel Roskin94d99641998-12-26 11:52:51 +00003270#include "confdefs.h"
3271#include <sys/socket.h>
3272 #include <netipx/ipx.h>
3273int main() {
3274((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
3275; return 0; }
3276EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003277if { (eval echo configure:3278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Pavel Roskin94d99641998-12-26 11:52:51 +00003278 rm -rf conftest*
3279 cat >> confdefs.h <<\EOF
3280#define HAVE_IPX_GNU 1
3281EOF
3282
3283 ac_cv_c_ipx_gnu="yes"
3284else
3285 echo "configure: failed program was:" >&5
3286 cat conftest.$ac_ext >&5
3287 rm -rf conftest*
3288 ac_cv_c_ipx_gnu="no"
3289fi
3290rm -f conftest*
3291
3292fi
3293
3294echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
3295
3296if test "$ac_cv_c_ipx_gnu" = "no"
3297then
3298 echo $ac_n "checking "for linux style IPX support"""... $ac_c" 1>&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003299echo "configure:3300: checking "for linux style IPX support"" >&5
Pavel Roskin94d99641998-12-26 11:52:51 +00003300if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
3301 echo $ac_n "(cached) $ac_c" 1>&6
3302else
3303 cat > conftest.$ac_ext <<EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003304#line 3305 "configure"
Pavel Roskin94d99641998-12-26 11:52:51 +00003305#include "confdefs.h"
3306#include <sys/socket.h>
3307 #include <asm/types.h>
3308 #include <linux/ipx.h>
3309int main() {
3310((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
3311; return 0; }
3312EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003313if { (eval echo configure:3314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Pavel Roskin94d99641998-12-26 11:52:51 +00003314 rm -rf conftest*
3315 cat >> confdefs.h <<\EOF
3316#define HAVE_IPX_LINUX 1
3317EOF
3318
3319 ac_cv_c_ipx_linux="yes"
3320else
3321 echo "configure: failed program was:" >&5
3322 cat conftest.$ac_ext >&5
3323 rm -rf conftest*
3324 ac_cv_c_ipx_linux="no"
3325fi
3326rm -f conftest*
3327
3328fi
3329
3330echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
3331fi
3332
Todd Vierlingecc76691998-12-15 17:49:02 +00003333for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00003334do
3335ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3336echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003337echo "configure:3338: checking for $ac_hdr" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00003338if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3339 echo $ac_n "(cached) $ac_c" 1>&6
3340else
3341 cat > conftest.$ac_ext <<EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003342#line 3343 "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00003343#include "confdefs.h"
3344#include <$ac_hdr>
3345EOF
3346ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003347{ (eval echo configure:3348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00003348ac_err=`grep -v '^ *+' conftest.out`
3349if test -z "$ac_err"; then
3350 rm -rf conftest*
3351 eval "ac_cv_header_$ac_safe=yes"
3352else
3353 echo "$ac_err" >&5
3354 echo "configure: failed program was:" >&5
3355 cat conftest.$ac_ext >&5
3356 rm -rf conftest*
3357 eval "ac_cv_header_$ac_safe=no"
3358fi
3359rm -f conftest*
3360fi
3361if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3362 echo "$ac_t""yes" 1>&6
3363 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3364 cat >> confdefs.h <<EOF
3365#define $ac_tr_hdr 1
3366EOF
Todd Vierlingecc76691998-12-15 17:49:02 +00003367 break
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00003368else
3369 echo "$ac_t""no" 1>&6
3370fi
3371done
3372
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00003373
3374echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003375echo "configure:3376: checking "for Open Sound System"" >&5
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00003376if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
3377 echo $ac_n "(cached) $ac_c" 1>&6
3378else
3379 cat > conftest.$ac_ext <<EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003380#line 3381 "configure"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00003381#include "confdefs.h"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00003382
Todd Vierlingecc76691998-12-15 17:49:02 +00003383 #if defined(HAVE_SYS_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00003384 #include <sys/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00003385 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00003386 #include <machine/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00003387 #elif defined(HAVE_SOUNDCARD_H)
3388 #include <soundcard.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00003389 #endif
3390
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00003391int main() {
3392
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00003393
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00003394/* check for one of the Open Sound System specific SNDCTL_ defines */
3395#if !defined(SNDCTL_DSP_STEREO)
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00003396#error No open sound system
3397#endif
3398
3399; return 0; }
3400EOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003401if { (eval echo configure:3402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00003402 rm -rf conftest*
3403 ac_cv_c_opensoundsystem="yes"
3404else
3405 echo "configure: failed program was:" >&5
3406 cat conftest.$ac_ext >&5
3407 rm -rf conftest*
3408 ac_cv_c_opensoundsystem="no"
3409fi
3410rm -f conftest*
3411fi
3412
3413echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
3414
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00003415if test "$ac_cv_c_opensoundsystem" = "yes"
3416then
3417 cat >> confdefs.h <<\EOF
3418#define HAVE_OSS 1
3419EOF
3420
3421fi
3422
Alexandre Julliard641ee761997-08-04 16:34:36 +00003423if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
3424
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003425
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00003426if test "x${GCC}" = "xyes"
3427then
3428 CFLAGS="$CFLAGS -Wall"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00003429 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003430echo "configure:3431: checking "for gcc strength-reduce bug"" >&5
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00003431if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
3432 echo $ac_n "(cached) $ac_c" 1>&6
3433else
3434 if test "$cross_compiling" = yes; then
3435 ac_cv_c_gcc_strength_bug="yes"
3436else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003437 cat > conftest.$ac_ext <<EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003438#line 3439 "configure"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00003439#include "confdefs.h"
3440
3441int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +00003442 static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00003443 unsigned int B = 3;
3444 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +00003445 for(i=0; i<B; i++) Array[i] = i - 3;
3446 exit( Array[1] != -2 );
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00003447}
3448EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003449if { (eval echo configure:3450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00003450then
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00003451 ac_cv_c_gcc_strength_bug="no"
3452else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003453 echo "configure: failed program was:" >&5
3454 cat conftest.$ac_ext >&5
3455 rm -fr conftest*
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00003456 ac_cv_c_gcc_strength_bug="yes"
3457fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003458rm -fr conftest*
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00003459fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003460
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00003461fi
3462
3463echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
3464 if test "$ac_cv_c_gcc_strength_bug" = "yes"
3465 then
3466 CFLAGS="$CFLAGS -fno-strength-reduce"
3467 fi
3468fi
3469
3470
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00003471echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003472echo "configure:3473: checking "whether external symbols need an underscore prefix"" >&5
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00003473if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
3474 echo $ac_n "(cached) $ac_c" 1>&6
3475else
3476 saved_libs=$LIBS
3477LIBS="conftest_asm.s $LIBS"
3478cat > conftest_asm.s <<EOF
3479 .globl _ac_test
3480_ac_test:
3481 .long 0
3482EOF
3483cat > conftest.$ac_ext <<EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003484#line 3485 "configure"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00003485#include "confdefs.h"
3486extern int ac_test;
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003487int main() {
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00003488if (ac_test) return 1
3489; return 0; }
3490EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003491if { (eval echo configure:3492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00003492 rm -rf conftest*
3493 ac_cv_c_extern_prefix="yes"
3494else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003495 echo "configure: failed program was:" >&5
3496 cat conftest.$ac_ext >&5
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00003497 rm -rf conftest*
3498 ac_cv_c_extern_prefix="no"
3499fi
3500rm -f conftest*
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00003501LIBS=$saved_libs
3502fi
3503
3504echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
3505if test "$ac_cv_c_extern_prefix" = "yes"
3506then
3507 cat >> confdefs.h <<\EOF
3508#define NEED_UNDERSCORE_PREFIX 1
3509EOF
3510
3511fi
3512
3513
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00003514echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003515echo "configure:3516: checking "whether assembler accepts .string"" >&5
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00003516if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
3517 echo $ac_n "(cached) $ac_c" 1>&6
3518else
3519 saved_libs=$LIBS
3520LIBS="conftest_asm.s $LIBS"
3521cat > conftest_asm.s <<EOF
3522 .string "test"
3523EOF
3524cat > conftest.$ac_ext <<EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003525#line 3526 "configure"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00003526#include "confdefs.h"
3527
3528int main() {
3529
3530; return 0; }
3531EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003532if { (eval echo configure:3533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00003533 rm -rf conftest*
3534 ac_cv_c_asm_string="yes"
3535else
3536 echo "configure: failed program was:" >&5
3537 cat conftest.$ac_ext >&5
3538 rm -rf conftest*
3539 ac_cv_c_asm_string="no"
3540fi
3541rm -f conftest*
3542LIBS=$saved_libs
3543fi
3544
3545echo "$ac_t""$ac_cv_c_asm_string" 1>&6
3546if test "$ac_cv_c_asm_string" = "yes"
3547then
3548 cat >> confdefs.h <<\EOF
3549#define HAVE_ASM_STRING 1
3550EOF
3551
3552fi
3553
3554
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00003555DLLFLAGS=""
Todd Vierling4b992b01998-12-15 15:26:27 +00003556LDSHARED=""
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00003557if test "$LIB_TARGET" = "libwine.so.1.0"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00003558then
Todd Vierling4b992b01998-12-15 15:26:27 +00003559 echo $ac_n "checking "whether we can build a Linux dll"""... $ac_c" 1>&6
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003560echo "configure:3561: checking "whether we can build a Linux dll"" >&5
Todd Vierling4b992b01998-12-15 15:26:27 +00003561if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00003562 echo $ac_n "(cached) $ac_c" 1>&6
3563else
3564 saved_cflags=$CFLAGS
3565 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
3566 cat > conftest.$ac_ext <<EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003567#line 3568 "configure"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00003568#include "confdefs.h"
3569
3570int main() {
3571return 1
3572; return 0; }
3573EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003574if { (eval echo configure:3575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00003575 rm -rf conftest*
Todd Vierling4b992b01998-12-15 15:26:27 +00003576 ac_cv_c_dll_linux="yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00003577else
3578 echo "configure: failed program was:" >&5
3579 cat conftest.$ac_ext >&5
3580 rm -rf conftest*
Todd Vierling4b992b01998-12-15 15:26:27 +00003581 ac_cv_c_dll_linux="no"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00003582fi
3583rm -f conftest*
3584 CFLAGS=$saved_cflags
3585
3586fi
3587
Todd Vierling4b992b01998-12-15 15:26:27 +00003588echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
3589 if test "$ac_cv_c_dll_linux" = "yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00003590 then
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00003591 DLLFLAGS="-fPIC"
Todd Vierling4b992b01998-12-15 15:26:27 +00003592 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00003593 else
Todd Vierling4b992b01998-12-15 15:26:27 +00003594 echo $ac_n "checking "whether we can build a NetBSD dll"""... $ac_c" 1>&6
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003595echo "configure:3596: checking "whether we can build a NetBSD dll"" >&5
Todd Vierling4b992b01998-12-15 15:26:27 +00003596if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
3597 echo $ac_n "(cached) $ac_c" 1>&6
3598else
3599 saved_cflags=$CFLAGS
3600 CFLAGS="$CFLAGS -fPIC -Bshareable -Bforcearchive"
3601 cat > conftest.$ac_ext <<EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003602#line 3603 "configure"
Todd Vierling4b992b01998-12-15 15:26:27 +00003603#include "confdefs.h"
3604
3605int main() {
3606return 1
3607; return 0; }
3608EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003609if { (eval echo configure:3610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Todd Vierling4b992b01998-12-15 15:26:27 +00003610 rm -rf conftest*
3611 ac_cv_c_dll_netbsd="yes"
3612else
3613 echo "configure: failed program was:" >&5
3614 cat conftest.$ac_ext >&5
3615 rm -rf conftest*
3616 ac_cv_c_dll_netbsd="no"
3617fi
3618rm -f conftest*
3619 CFLAGS=$saved_cflags
3620
3621fi
3622
3623echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
3624 if test "$ac_cv_c_dll_netbsd" = "yes"
3625 then
3626 DLLFLAGS="-fPIC"
3627 LDSHARED="ld -Bshareable -Bforcearchive"
3628 fi
3629 fi
3630 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
3631 then
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00003632 LIB_TARGET="libwine.a"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00003633 fi
3634fi
3635
3636
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00003637
Todd Vierling4b992b01998-12-15 15:26:27 +00003638
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003639wine_cv_libc_reentrant=no
3640echo $ac_n "checking "for reentrant libc: __errno_location"""... $ac_c" 1>&6
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003641echo "configure:3642: checking "for reentrant libc: __errno_location"" >&5
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003642if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00003643 echo $ac_n "(cached) $ac_c" 1>&6
3644else
3645 if test "$cross_compiling" = yes; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003646 wine_cv_libc_r__errno_location=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00003647else
3648 cat > conftest.$ac_ext <<EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003649#line 3650 "configure"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00003650#include "confdefs.h"
3651int myerrno = 0;
3652char buf[256];
3653int *__errno_location(){return &myerrno;}
3654main(){connect(0,buf,255); exit(!myerrno);}
3655EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003656if { (eval echo configure:3657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00003657then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003658 wine_cv_libc_r__errno_location=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00003659else
3660 echo "configure: failed program was:" >&5
3661 cat conftest.$ac_ext >&5
3662 rm -fr conftest*
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003663 wine_cv_libc_r__errno_location=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00003664fi
3665rm -fr conftest*
3666fi
Marcus Meissnerc2606381999-04-11 15:20:29 +00003667
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003668
3669fi
3670
3671echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
3672if test "$wine_cv_libc_r__errno_location" = "yes"
3673then
3674 cat >> confdefs.h <<\EOF
3675#define HAVE__ERRNO_LOCATION 1
3676EOF
3677
3678 wine_cv_libc_reentrant=__errno_location
3679fi
3680echo $ac_n "checking "for reentrant libc: __error"""... $ac_c" 1>&6
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003681echo "configure:3682: checking "for reentrant libc: __error"" >&5
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003682if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
3683 echo $ac_n "(cached) $ac_c" 1>&6
3684else
3685 if test "$cross_compiling" = yes; then
3686 wine_cv_libc_r__error=yes
Marcus Meissnerc2606381999-04-11 15:20:29 +00003687else
3688 cat > conftest.$ac_ext <<EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003689#line 3690 "configure"
Marcus Meissnerc2606381999-04-11 15:20:29 +00003690#include "confdefs.h"
3691int myerrno = 0;
3692char buf[256];
3693int *__error(){return &myerrno;}
3694main(){connect(0,buf,255); exit(!myerrno);}
3695EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003696if { (eval echo configure:3697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
Marcus Meissnerc2606381999-04-11 15:20:29 +00003697then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003698 wine_cv_libc_r__error=yes
Marcus Meissnerc2606381999-04-11 15:20:29 +00003699else
3700 echo "configure: failed program was:" >&5
3701 cat conftest.$ac_ext >&5
3702 rm -fr conftest*
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003703 wine_cv_libc_r__error=no
Marcus Meissnerc2606381999-04-11 15:20:29 +00003704fi
3705rm -fr conftest*
3706fi
3707
Marcus Meissnerc2606381999-04-11 15:20:29 +00003708
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00003709fi
3710
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003711echo "$ac_t""$wine_cv_libc_r__error" 1>&6
3712if test "$wine_cv_libc_r__error" = "yes"
3713then
3714 cat >> confdefs.h <<\EOF
3715#define HAVE__ERROR 1
3716EOF
3717
3718 wine_cv_libc_reentrant=__error
3719fi
3720echo $ac_n "checking "for reentrant libc: ___errno"""... $ac_c" 1>&6
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003721echo "configure:3722: checking "for reentrant libc: ___errno"" >&5
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003722if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
3723 echo $ac_n "(cached) $ac_c" 1>&6
3724else
3725 if test "$cross_compiling" = yes; then
3726 wine_cv_libc_r___errno=yes
3727else
3728 cat > conftest.$ac_ext <<EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003729#line 3730 "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003730#include "confdefs.h"
3731int myerrno = 0;
3732char buf[256];
3733int *___errno(){return &myerrno;}
3734main(){connect(0,buf,255); exit(!myerrno);}
3735EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003736if { (eval echo configure:3737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003737then
3738 wine_cv_libc_r___errno=yes
3739else
3740 echo "configure: failed program was:" >&5
3741 cat conftest.$ac_ext >&5
3742 rm -fr conftest*
3743 wine_cv_libc_r___errno=no
3744fi
3745rm -fr conftest*
3746fi
3747
3748
3749fi
3750
3751echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
3752if test "$wine_cv_libc_r___errno" = "yes"
3753then
3754 cat >> confdefs.h <<\EOF
3755#define HAVE___ERRNO 1
3756EOF
3757
3758 wine_cv_libc_reentrant=___errno
3759fi
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00003760if test "$wine_cv_libc_reentrant" = "no"
3761then
3762 cat >> confdefs.h <<\EOF
3763#define NO_REENTRANT_LIBC 1
3764EOF
3765
3766fi
3767
3768
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003769if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
Patrik Stridvall24110281999-02-04 10:09:54 +00003770then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00003771echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003772echo "configure:3773: checking "for reentrant X libraries"" >&5
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00003773if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
3774 echo $ac_n "(cached) $ac_c" 1>&6
3775else
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003776 if test "x$with_reentrant_x" = "xno"
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00003777 then
3778 wine_cv_x_reentrant=no
3779 else
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003780 libX11_check=none
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00003781 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
Alexandre Julliard829fe321998-07-26 14:27:39 +00003782 if test -r $dir/libX11.so; then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00003783 libX11_check="-D $dir/libX11.so"
3784 break 1
3785 fi
Alexandre Julliard829fe321998-07-26 14:27:39 +00003786 if test -r $dir/libX11.a; then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00003787 libX11_check="$dir/libX11.a"
3788 break 1
3789 fi
3790 done
3791 if test "$libX11_check" != "none"; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00003792 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
Alexandre Julliard829fe321998-07-26 14:27:39 +00003793 then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00003794 wine_cv_x_reentrant=yes
3795 else
3796 wine_cv_x_reentrant=no
3797 fi
3798 else
3799 wine_cv_x_reentrant=unknown
3800 fi
3801 fi
3802fi
3803
3804echo "$ac_t""$wine_cv_x_reentrant" 1>&6
Patrik Stridvall24110281999-02-04 10:09:54 +00003805else
3806 wine_cv_x_reentrant=no
3807fi
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00003808if test "$wine_cv_x_reentrant" = "no"
3809then
3810 cat >> confdefs.h <<\EOF
3811#define NO_REENTRANT_X11 1
3812EOF
3813
3814fi
3815
3816
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003817for ac_func in \
3818 _lwp_create \
3819 clone \
3820 getpagesize \
3821 memmove \
3822 rfork \
3823 sendmsg \
3824 sigaltstack \
3825 strerror \
3826 stricmp \
3827 tcgetattr \
3828 timegm \
3829 usleep \
3830 vfscanf \
3831 wait4 \
3832 waitpid \
3833
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003834do
3835echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003836echo "configure:3837: checking for $ac_func" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003837if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3838 echo $ac_n "(cached) $ac_c" 1>&6
3839else
3840 cat > conftest.$ac_ext <<EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003841#line 3842 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003842#include "confdefs.h"
3843/* System header to define __stub macros and hopefully few prototypes,
3844 which can conflict with char $ac_func(); below. */
3845#include <assert.h>
3846/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003847/* We use char because int might match the return type of a gcc2
3848 builtin and then its argument prototype would still apply. */
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003849char $ac_func();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003850
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003851int main() {
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003852
3853/* The GNU C library defines this for functions which it implements
3854 to always fail with ENOSYS. Some functions are actually named
3855 something starting with __ and the normal name is an alias. */
3856#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3857choke me
3858#else
3859$ac_func();
3860#endif
3861
3862; return 0; }
3863EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003864if { (eval echo configure:3865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003865 rm -rf conftest*
3866 eval "ac_cv_func_$ac_func=yes"
3867else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003868 echo "configure: failed program was:" >&5
3869 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003870 rm -rf conftest*
3871 eval "ac_cv_func_$ac_func=no"
3872fi
3873rm -f conftest*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003874fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00003875
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003876if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3877 echo "$ac_t""yes" 1>&6
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003878 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003879 cat >> confdefs.h <<EOF
3880#define $ac_tr_func 1
3881EOF
3882
3883else
3884 echo "$ac_t""no" 1>&6
3885fi
3886done
3887
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003888
3889
3890for ac_hdr in \
3891 arpa/nameser.h \
3892 curses.h \
3893 dlfcn.h \
3894 elf.h \
3895 float.h \
3896 libio.h \
3897 linux/cdrom.h \
3898 linux/ucdrom.h \
3899 ncurses.h \
3900 net/if.h \
3901 netinet/in.h \
3902 resolv.h \
3903 strings.h \
3904 sys/cdio.h \
3905 sys/file.h \
3906 sys/filio.h \
3907 sys/lwp.h \
3908 sys/modem.h \
3909 sys/mount.h \
3910 sys/param.h \
3911 sys/sockio.h \
3912 sys/statfs.h \
3913 sys/strtio.h \
3914 sys/syscall.h \
3915 sys/vfs.h \
3916 syscall.h \
3917 ucontext.h \
3918 unistd.h \
3919 wctype.h \
3920
Alexandre Julliard02e90081998-01-04 17:49:09 +00003921do
3922ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3923echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003924echo "configure:3925: checking for $ac_hdr" >&5
Alexandre Julliard02e90081998-01-04 17:49:09 +00003925if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3926 echo $ac_n "(cached) $ac_c" 1>&6
3927else
3928 cat > conftest.$ac_ext <<EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003929#line 3930 "configure"
Alexandre Julliard02e90081998-01-04 17:49:09 +00003930#include "confdefs.h"
3931#include <$ac_hdr>
3932EOF
3933ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003934{ (eval echo configure:3935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Alexandre Julliard02e90081998-01-04 17:49:09 +00003935ac_err=`grep -v '^ *+' conftest.out`
3936if test -z "$ac_err"; then
3937 rm -rf conftest*
3938 eval "ac_cv_header_$ac_safe=yes"
3939else
3940 echo "$ac_err" >&5
3941 echo "configure: failed program was:" >&5
3942 cat conftest.$ac_ext >&5
3943 rm -rf conftest*
3944 eval "ac_cv_header_$ac_safe=no"
3945fi
3946rm -f conftest*
3947fi
3948if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3949 echo "$ac_t""yes" 1>&6
3950 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3951 cat >> confdefs.h <<EOF
3952#define $ac_tr_hdr 1
3953EOF
3954
3955else
3956 echo "$ac_t""no" 1>&6
3957fi
3958done
3959
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003960echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003961echo "configure:3962: checking whether stat file-mode macros are broken" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003962if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3963 echo $ac_n "(cached) $ac_c" 1>&6
3964else
3965 cat > conftest.$ac_ext <<EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00003966#line 3967 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003967#include "confdefs.h"
3968#include <sys/types.h>
3969#include <sys/stat.h>
3970
3971#if defined(S_ISBLK) && defined(S_IFDIR)
3972# if S_ISBLK (S_IFDIR)
3973You lose.
3974# endif
3975#endif
3976
3977#if defined(S_ISBLK) && defined(S_IFCHR)
3978# if S_ISBLK (S_IFCHR)
3979You lose.
3980# endif
3981#endif
3982
3983#if defined(S_ISLNK) && defined(S_IFREG)
3984# if S_ISLNK (S_IFREG)
3985You lose.
3986# endif
3987#endif
3988
3989#if defined(S_ISSOCK) && defined(S_IFREG)
3990# if S_ISSOCK (S_IFREG)
3991You lose.
3992# endif
3993#endif
3994
3995EOF
3996if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3997 egrep "You lose" >/dev/null 2>&1; then
3998 rm -rf conftest*
3999 ac_cv_header_stat_broken=yes
4000else
4001 rm -rf conftest*
4002 ac_cv_header_stat_broken=no
4003fi
4004rm -f conftest*
4005
4006fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004007
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004008echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
4009if test $ac_cv_header_stat_broken = yes; then
4010 cat >> confdefs.h <<\EOF
4011#define STAT_MACROS_BROKEN 1
4012EOF
4013
4014fi
4015
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004016
4017
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004018echo $ac_n "checking for working const""... $ac_c" 1>&6
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004019echo "configure:4020: checking for working const" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004020if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4021 echo $ac_n "(cached) $ac_c" 1>&6
4022else
4023 cat > conftest.$ac_ext <<EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004024#line 4025 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004025#include "confdefs.h"
4026
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004027int main() {
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004028
4029/* Ultrix mips cc rejects this. */
4030typedef int charset[2]; const charset x;
4031/* SunOS 4.1.1 cc rejects this. */
4032char const *const *ccp;
4033char **p;
4034/* NEC SVR4.0.2 mips cc rejects this. */
4035struct point {int x, y;};
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004036static struct point const zero = {0,0};
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004037/* AIX XL C 1.02.0.0 rejects this.
4038 It does not let you subtract one const X* pointer from another in an arm
4039 of an if-expression whose if-part is not a constant expression */
4040const char *g = "string";
4041ccp = &g + (g ? g-g : 0);
4042/* HPUX 7.0 cc rejects these. */
4043++ccp;
4044p = (char**) ccp;
4045ccp = (char const *const *) p;
4046{ /* SCO 3.2v4 cc rejects this. */
4047 char *t;
4048 char const *s = 0 ? (char *) 0 : (char const *) 0;
4049
4050 *t++ = 0;
4051}
4052{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4053 int x[] = {25, 17};
4054 const int *foo = &x[0];
4055 ++foo;
4056}
4057{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4058 typedef const int *iptr;
4059 iptr p = 0;
4060 ++p;
4061}
4062{ /* AIX XL C 1.02.0.0 rejects this saying
4063 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4064 struct s { int j; const int *ap[3]; };
4065 struct s *b; b->j = 5;
4066}
4067{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4068 const int foo = 10;
4069}
4070
4071; return 0; }
4072EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004073if { (eval echo configure:4074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004074 rm -rf conftest*
4075 ac_cv_c_const=yes
4076else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004077 echo "configure: failed program was:" >&5
4078 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004079 rm -rf conftest*
4080 ac_cv_c_const=no
4081fi
4082rm -f conftest*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004083fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004084
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004085echo "$ac_t""$ac_cv_c_const" 1>&6
4086if test $ac_cv_c_const = no; then
4087 cat >> confdefs.h <<\EOF
4088#define const
4089EOF
4090
4091fi
4092
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004093echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004094echo "configure:4095: checking for ANSI C header files" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004095if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4096 echo $ac_n "(cached) $ac_c" 1>&6
4097else
4098 cat > conftest.$ac_ext <<EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004099#line 4100 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004100#include "confdefs.h"
4101#include <stdlib.h>
4102#include <stdarg.h>
4103#include <string.h>
4104#include <float.h>
4105EOF
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004106ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004107{ (eval echo configure:4108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004108ac_err=`grep -v '^ *+' conftest.out`
4109if test -z "$ac_err"; then
4110 rm -rf conftest*
4111 ac_cv_header_stdc=yes
4112else
4113 echo "$ac_err" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004114 echo "configure: failed program was:" >&5
4115 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004116 rm -rf conftest*
4117 ac_cv_header_stdc=no
4118fi
4119rm -f conftest*
4120
4121if test $ac_cv_header_stdc = yes; then
4122 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4123cat > conftest.$ac_ext <<EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004124#line 4125 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004125#include "confdefs.h"
4126#include <string.h>
4127EOF
4128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4129 egrep "memchr" >/dev/null 2>&1; then
4130 :
4131else
4132 rm -rf conftest*
4133 ac_cv_header_stdc=no
4134fi
4135rm -f conftest*
4136
4137fi
4138
4139if test $ac_cv_header_stdc = yes; then
4140 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4141cat > conftest.$ac_ext <<EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004142#line 4143 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004143#include "confdefs.h"
4144#include <stdlib.h>
4145EOF
4146if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4147 egrep "free" >/dev/null 2>&1; then
4148 :
4149else
4150 rm -rf conftest*
4151 ac_cv_header_stdc=no
4152fi
4153rm -f conftest*
4154
4155fi
4156
4157if test $ac_cv_header_stdc = yes; then
4158 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4159if test "$cross_compiling" = yes; then
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004160 :
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004161else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004162 cat > conftest.$ac_ext <<EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004163#line 4164 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004164#include "confdefs.h"
4165#include <ctype.h>
4166#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4167#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4168#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4169int main () { int i; for (i = 0; i < 256; i++)
4170if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4171exit (0); }
4172
4173EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004174if { (eval echo configure:4175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00004175then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004176 :
4177else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004178 echo "configure: failed program was:" >&5
4179 cat conftest.$ac_ext >&5
4180 rm -fr conftest*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004181 ac_cv_header_stdc=no
4182fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004183rm -fr conftest*
4184fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004185
4186fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004187fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004188
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004189echo "$ac_t""$ac_cv_header_stdc" 1>&6
4190if test $ac_cv_header_stdc = yes; then
4191 cat >> confdefs.h <<\EOF
4192#define STDC_HEADERS 1
4193EOF
4194
4195fi
4196
4197echo $ac_n "checking for size_t""... $ac_c" 1>&6
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004198echo "configure:4199: checking for size_t" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004199if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4200 echo $ac_n "(cached) $ac_c" 1>&6
4201else
4202 cat > conftest.$ac_ext <<EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004203#line 4204 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004204#include "confdefs.h"
4205#include <sys/types.h>
4206#if STDC_HEADERS
4207#include <stdlib.h>
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004208#include <stddef.h>
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004209#endif
4210EOF
4211if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004212 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004213 rm -rf conftest*
4214 ac_cv_type_size_t=yes
4215else
4216 rm -rf conftest*
4217 ac_cv_type_size_t=no
4218fi
4219rm -f conftest*
4220
4221fi
4222echo "$ac_t""$ac_cv_type_size_t" 1>&6
4223if test $ac_cv_type_size_t = no; then
4224 cat >> confdefs.h <<\EOF
4225#define size_t unsigned
4226EOF
4227
4228fi
4229
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004230echo $ac_n "checking size of long long""... $ac_c" 1>&6
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004231echo "configure:4232: checking size of long long" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004232if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4233 echo $ac_n "(cached) $ac_c" 1>&6
4234else
4235 if test "$cross_compiling" = yes; then
4236 ac_cv_sizeof_long_long=0
4237else
4238 cat > conftest.$ac_ext <<EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004239#line 4240 "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004240#include "confdefs.h"
4241#include <stdio.h>
4242main()
4243{
4244 FILE *f=fopen("conftestval", "w");
4245 if (!f) exit(1);
4246 fprintf(f, "%d\n", sizeof(long long));
4247 exit(0);
4248}
4249EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004250if { (eval echo configure:4251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004251then
4252 ac_cv_sizeof_long_long=`cat conftestval`
4253else
4254 echo "configure: failed program was:" >&5
4255 cat conftest.$ac_ext >&5
4256 rm -fr conftest*
4257 ac_cv_sizeof_long_long=0
4258fi
4259rm -fr conftest*
4260fi
4261
4262fi
4263echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4264cat >> confdefs.h <<EOF
4265#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4266EOF
4267
4268
4269
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004270
4271if test "$ac_cv_header_sys_vfs_h" = "yes"
4272then
4273 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004274echo "configure:4275: checking "whether sys/vfs.h defines statfs"" >&5
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004275if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
4276 echo $ac_n "(cached) $ac_c" 1>&6
4277else
4278 cat > conftest.$ac_ext <<EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004279#line 4280 "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004280#include "confdefs.h"
4281
4282 #include <sys/types.h>
4283 #ifdef HAVE_SYS_PARAM_H
4284 # include <sys/param.h>
4285 #endif
4286 #include <sys/vfs.h>
4287
4288int main() {
4289
4290 struct statfs stfs;
4291
4292 memset(&stfs,0,sizeof(stfs));
4293
4294; return 0; }
4295EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004296if { (eval echo configure:4297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004297 rm -rf conftest*
4298 wine_cv_sys_vfs_has_statfs=yes
4299else
4300 echo "configure: failed program was:" >&5
4301 cat conftest.$ac_ext >&5
4302 rm -rf conftest*
4303 wine_cv_sys_vfs_has_statfs=no
4304
4305fi
4306rm -f conftest*
4307
4308fi
4309
4310echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
4311 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
4312 then
4313 cat >> confdefs.h <<\EOF
4314#define STATFS_DEFINED_BY_SYS_VFS 1
4315EOF
4316
4317 fi
4318fi
4319
4320if test "$ac_cv_header_sys_statfs_h" = "yes"
4321then
4322 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004323echo "configure:4324: checking "whether sys/statfs.h defines statfs"" >&5
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004324if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
4325 echo $ac_n "(cached) $ac_c" 1>&6
4326else
4327 cat > conftest.$ac_ext <<EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004328#line 4329 "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004329#include "confdefs.h"
4330
4331 #include <sys/types.h>
4332 #ifdef HAVE_SYS_PARAM_H
4333 # include <sys/param.h>
4334 #endif
4335 #include <sys/statfs.h>
4336
4337int main() {
4338
4339 struct statfs stfs;
4340
4341; return 0; }
4342EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004343if { (eval echo configure:4344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004344 rm -rf conftest*
4345 wine_cv_sys_statfs_has_statfs=yes
4346else
4347 echo "configure: failed program was:" >&5
4348 cat conftest.$ac_ext >&5
4349 rm -rf conftest*
4350 wine_cv_sys_statfs_has_statfs=no
4351
4352fi
4353rm -f conftest*
4354
4355fi
4356
4357echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
4358 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
4359 then
4360 cat >> confdefs.h <<\EOF
4361#define STATFS_DEFINED_BY_SYS_STATFS 1
4362EOF
4363
4364 fi
4365fi
4366
4367if test "$ac_cv_header_sys_mount_h" = "yes"
4368then
4369 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004370echo "configure:4371: checking "whether sys/mount.h defines statfs"" >&5
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004371if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
4372 echo $ac_n "(cached) $ac_c" 1>&6
4373else
4374 cat > conftest.$ac_ext <<EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004375#line 4376 "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004376#include "confdefs.h"
4377
4378 #include <sys/types.h>
4379 #ifdef HAVE_SYS_PARAM_H
4380 # include <sys/param.h>
4381 #endif
4382 #include <sys/mount.h>
4383
4384int main() {
4385
4386 struct statfs stfs;
4387
4388; return 0; }
4389EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004390if { (eval echo configure:4391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004391 rm -rf conftest*
4392 wine_cv_sys_mount_has_statfs=yes
4393else
4394 echo "configure: failed program was:" >&5
4395 cat conftest.$ac_ext >&5
4396 rm -rf conftest*
4397 wine_cv_sys_mount_has_statfs=no
4398
4399fi
4400rm -f conftest*
4401
4402fi
4403
4404echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
4405 if test "$wine_cv_sys_mount_has_statfs" = "yes"
4406 then
4407 cat >> confdefs.h <<\EOF
4408#define STATFS_DEFINED_BY_SYS_MOUNT 1
4409EOF
4410
4411 fi
4412fi
4413
4414
4415echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004416echo "configure:4417: checking "for statfs.f_bfree"" >&5
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004417if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
4418 echo $ac_n "(cached) $ac_c" 1>&6
4419else
4420 if test "x$statfs_bfree" = "xno"
4421 then
4422 wine_cv_statfs_bfree=no
4423 else
4424 cat > conftest.$ac_ext <<EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004425#line 4426 "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004426#include "confdefs.h"
4427
4428 #include <sys/types.h>
4429 #ifdef HAVE_SYS_PARAM_H
4430 # include <sys/param.h>
4431 #endif
4432 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
4433 # include <sys/mount.h>
4434 #else
4435 # ifdef STATFS_DEFINED_BY_SYS_VFS
4436 # include <sys/vfs.h>
4437 # else
4438 # ifdef STATFS_DEFINED_BY_SYS_STATFS
4439 # include <sys/statfs.h>
4440 # endif
4441 # endif
4442 #endif
4443
4444int main() {
4445
4446 struct statfs stfs;
4447
4448 stfs.f_bfree++;
4449
4450; return 0; }
4451EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004452if { (eval echo configure:4453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004453 rm -rf conftest*
4454 wine_cv_statfs_bfree=yes
4455else
4456 echo "configure: failed program was:" >&5
4457 cat conftest.$ac_ext >&5
4458 rm -rf conftest*
4459 wine_cv_statfs_bfree=no
4460
4461fi
4462rm -f conftest*
4463 fi
4464fi
4465
4466echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
4467if test "$wine_cv_statfs_bfree" = "yes"
4468then
4469 cat >> confdefs.h <<\EOF
4470#define STATFS_HAS_BFREE 1
4471EOF
4472
4473fi
4474
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004475echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004476echo "configure:4477: checking "for statfs.f_bavail"" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004477if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
4478 echo $ac_n "(cached) $ac_c" 1>&6
4479else
4480 if test "x$statfs_bavail" = "xno"
4481 then
4482 wine_cv_statfs_bavail=no
4483 else
4484 cat > conftest.$ac_ext <<EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004485#line 4486 "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004486#include "confdefs.h"
4487
Alexandre Julliard46ea8b31998-05-03 19:01:20 +00004488 #include <sys/types.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004489 #ifdef HAVE_SYS_PARAM_H
4490 # include <sys/param.h>
4491 #endif
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004492 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004493 # include <sys/mount.h>
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004494 #else
4495 # ifdef STATFS_DEFINED_BY_SYS_VFS
4496 # include <sys/vfs.h>
4497 # else
4498 # ifdef STATFS_DEFINED_BY_SYS_STATFS
4499 # include <sys/statfs.h>
4500 # endif
4501 # endif
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004502 #endif
4503
4504int main() {
4505
4506 struct statfs stfs;
4507
4508 stfs.f_bavail++;
4509
4510; return 0; }
4511EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004512if { (eval echo configure:4513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004513 rm -rf conftest*
4514 wine_cv_statfs_bavail=yes
4515else
4516 echo "configure: failed program was:" >&5
4517 cat conftest.$ac_ext >&5
4518 rm -rf conftest*
4519 wine_cv_statfs_bavail=no
4520
4521fi
4522rm -f conftest*
4523 fi
4524fi
4525
4526echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
4527if test "$wine_cv_statfs_bavail" = "yes"
4528then
4529 cat >> confdefs.h <<\EOF
4530#define STATFS_HAS_BAVAIL 1
4531EOF
4532
4533fi
4534
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004535
4536echo $ac_n "checking "for working sigaltstack"""... $ac_c" 1>&6
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004537echo "configure:4538: checking "for working sigaltstack"" >&5
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004538if eval "test \"`echo '$''{'ac_cv_c_working_sigaltstack'+set}'`\" = set"; then
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004539 echo $ac_n "(cached) $ac_c" 1>&6
4540else
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004541 if test "$cross_compiling" = yes; then
4542 ac_cv_c_working_sigaltstack="no"
4543
4544else
4545 cat > conftest.$ac_ext <<EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004546#line 4547 "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004547#include "confdefs.h"
4548
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004549 #include <stdio.h>
4550 #include <time.h> /* <sys/time.h> ? bad magic without end */
Alexandre Julliard46ea8b31998-05-03 19:01:20 +00004551 #include <sys/types.h>
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004552 #include <sys/signal.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004553 #ifdef HAVE_SYS_PARAM_H
4554 # include <sys/param.h>
4555 #endif
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004556 #ifdef HAVE_SYSCALL_H
4557 # include <syscall.h>
4558 #else
4559 # ifdef HAVE_SYS_SYSCALL_H
4560 # include <sys/syscall.h>
4561 # endif
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004562 #endif
4563
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004564 unsigned char *xaltstack;
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004565
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004566 int
4567 main(int argc,char **argv) {
4568 struct sigaltstack ss;
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004569
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004570 xaltstack = malloc(16384);
4571 ss.ss_sp = xaltstack;
4572 ss.ss_size = 16384;
4573 ss.ss_flags = 0;
4574 if (sigaltstack(&ss, NULL) < 0) {
4575 /* this catches the glibc case */
4576 perror("sigaltstack");
4577 return (1); /* aka exit(1) aka fail */
4578 }
4579 /* assume it works. */
4580 return 0; /* OK */
4581 }
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004582
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004583EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004584if { (eval echo configure:4585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004585then
4586 ac_cv_c_working_sigaltstack="yes"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004587else
4588 echo "configure: failed program was:" >&5
4589 cat conftest.$ac_ext >&5
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004590 rm -fr conftest*
4591 ac_cv_c_working_sigaltstack="no"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004592fi
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004593rm -fr conftest*
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004594fi
4595
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004596fi
4597
4598echo "$ac_t""$ac_cv_c_working_sigaltstack" 1>&6
4599
4600if test "$ac_cv_c_working_sigaltstack" = "yes"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004601then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004602 cat >> confdefs.h <<\EOF
4603#define HAVE_WORKING_SIGALTSTACK 1
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004604EOF
4605
4606fi
4607
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004608
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004609
Alexandre Julliard829fe321998-07-26 14:27:39 +00004610echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004611echo "configure:4612: checking "for msg_accrights in struct msghdr"" >&5
Alexandre Julliard829fe321998-07-26 14:27:39 +00004612if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
4613 echo $ac_n "(cached) $ac_c" 1>&6
4614else
4615 cat > conftest.$ac_ext <<EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004616#line 4617 "configure"
Alexandre Julliard829fe321998-07-26 14:27:39 +00004617#include "confdefs.h"
4618#include <sys/types.h>
4619#include <sys/socket.h>
4620int main() {
4621struct msghdr hdr; hdr.msg_accrights=0
4622; return 0; }
4623EOF
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004624if { (eval echo configure:4625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliard829fe321998-07-26 14:27:39 +00004625 rm -rf conftest*
4626 ac_cv_c_msg_accrights="yes"
4627else
4628 echo "configure: failed program was:" >&5
4629 cat conftest.$ac_ext >&5
4630 rm -rf conftest*
4631 ac_cv_c_msg_accrights="no"
4632fi
4633rm -f conftest*
4634fi
4635
4636echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
4637if test "$ac_cv_c_msg_accrights" = "yes"
4638then
4639 cat >> confdefs.h <<\EOF
4640#define HAVE_MSGHDR_ACCRIGHTS 1
4641EOF
4642
4643fi
4644
Marcus Meissnera7f5cb51999-04-16 08:47:41 +00004645GCC_NO_BUILTIN=""
4646if test "$GCC" = "yes"
4647then
4648 GCC_NO_BUILTIN="-fno-builtin"
4649fi
4650
4651
Alexandre Julliard829fe321998-07-26 14:27:39 +00004652
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004653MAKE_RULES=Make.rules
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004654
4655
4656trap '' 1 2 15
4657cat > confcache <<\EOF
4658# This file is a shell script that caches the results of configure
4659# tests run on this system so they can be shared between configure
4660# scripts and configure runs. It is not useful on other systems.
4661# If it contains results you don't want to keep, you may remove or edit it.
4662#
4663# By default, configure uses ./config.cache as the cache file,
4664# creating it if it does not exist already. You can give configure
4665# the --cache-file=FILE option to use a different cache file; that is
4666# what configure does when it calls configure scripts in
4667# subdirectories, so they share the cache.
4668# Giving --cache-file=/dev/null disables caching, for debugging configure.
4669# config.status only pays attention to the cache file if you give it the
4670# --recheck option to rerun configure.
4671#
4672EOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00004673# The following way of writing the cache mishandles newlines in values,
4674# but we know of no workaround that is simple, portable, and efficient.
4675# So, don't put newlines in cache variables' values.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004676# Ultrix sh set writes to stderr and can't be redirected directly,
4677# and sets the high bit in the cache file unless we assign to the vars.
4678(set) 2>&1 |
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00004679 case `(ac_space=' '; set) 2>&1` in
4680 *ac_space=\ *)
4681 # `set' does not quote correctly, so add quotes (double-quote substitution
4682 # turns \\\\ into \\, and sed turns \\ into \).
4683 sed -n \
4684 -e "s/'/'\\\\''/g" \
4685 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4686 ;;
4687 *)
4688 # `set' quotes correctly as required by POSIX, so do not add quotes.
4689 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4690 ;;
4691 esac >> confcache
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004692if cmp -s $cache_file confcache; then
4693 :
4694else
4695 if test -w $cache_file; then
4696 echo "updating cache $cache_file"
4697 cat confcache > $cache_file
4698 else
4699 echo "not updating unwritable cache $cache_file"
4700 fi
4701fi
4702rm -f confcache
4703
4704trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4705
4706test "x$prefix" = xNONE && prefix=$ac_default_prefix
4707# Let make expand exec_prefix.
4708test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4709
4710# Any assignment to VPATH causes Sun make to only execute
4711# the first set of double-colon rules, so remove it if not needed.
4712# If there is a colon in the path, we need to keep it.
4713if test "x$srcdir" = x.; then
4714 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4715fi
4716
4717trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4718
Alexandre Julliard18f92e71996-07-17 20:02:21 +00004719DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004720
4721# Without the "./", some shells look in PATH for config.status.
4722: ${CONFIG_STATUS=./config.status}
4723
4724echo creating $CONFIG_STATUS
4725rm -f $CONFIG_STATUS
4726cat > $CONFIG_STATUS <<EOF
4727#! /bin/sh
4728# Generated automatically by configure.
4729# Run this file to recreate the current configuration.
4730# This directory was configured as follows,
4731# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4732#
4733# $0 $ac_configure_args
4734#
4735# Compiler output produced by configure, useful for debugging
4736# configure, is in ./config.log if it exists.
4737
4738ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4739for ac_option
4740do
4741 case "\$ac_option" in
4742 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4743 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4744 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4745 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00004746 echo "$CONFIG_STATUS generated by autoconf version 2.12"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004747 exit 0 ;;
4748 -help | --help | --hel | --he | --h)
4749 echo "\$ac_cs_usage"; exit 0 ;;
4750 *) echo "\$ac_cs_usage"; exit 1 ;;
4751 esac
4752done
4753
4754ac_given_srcdir=$srcdir
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004755ac_given_INSTALL="$INSTALL"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004756
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004757trap 'rm -fr `echo "
4758Make.rules
4759Makefile
Joseph Pranevich791cd6a1998-12-02 19:58:08 +00004760console/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004761controls/Makefile
4762debugger/Makefile
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00004763dlls/Makefile
Juergen Schmiedf7b0de31999-01-03 12:48:29 +00004764dlls/advapi32/Makefile
Marcus Meissnerb3d1a221999-03-13 18:07:44 +00004765dlls/avifil32/Makefile
Alexandre Julliarda0d77311998-09-13 16:32:00 +00004766dlls/comctl32/Makefile
Klaas van Gendc9127491999-02-28 20:05:11 +00004767dlls/commdlg/Makefile
Patrik Stridvall8295c861998-10-11 17:09:05 +00004768dlls/imagehlp/Makefile
4769dlls/msacm/Makefile
4770dlls/msacm32/Makefile
Marcus Meissner51505b11998-11-01 14:00:21 +00004771dlls/ntdll/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00004772dlls/psapi/Makefile
Marcus Meissner30ef8771998-12-11 13:26:26 +00004773dlls/rasapi32/Makefile
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00004774dlls/shell32/Makefile
Andreas Mohr5aa96c11999-03-14 12:34:25 +00004775dlls/tapi32/Makefile
Ulrich Weigandd43a46a1999-01-31 10:11:04 +00004776dlls/ver/Makefile
4777dlls/version/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00004778dlls/winaspi/Makefile
4779dlls/wnaspi32/Makefile
Alexandre Julliardd37eb361997-07-20 16:23:21 +00004780documentation/Makefile
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004781files/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00004782graphics/Makefile
Alexandre Julliardbf9130a1996-10-13 17:45:47 +00004783graphics/metafiledrv/Makefile
Alexandre Julliardebfc0fe1998-06-28 18:40:26 +00004784graphics/psdrv/Makefile
Patrik Stridvall24110281999-02-04 10:09:54 +00004785graphics/ttydrv/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00004786graphics/win16drv/Makefile
4787graphics/x11drv/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004788if1632/Makefile
James Juranc70dc831999-02-13 12:18:33 +00004789include/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004790ipc/Makefile
4791library/Makefile
4792libtest/Makefile
4793loader/Makefile
Alexandre Julliard46ea8b31998-05-03 19:01:20 +00004794loader/ne/Makefile
Alexandre Julliard767e6f61998-08-09 12:47:43 +00004795loader/dos/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004796memory/Makefile
4797misc/Makefile
4798miscemu/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00004799msdos/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004800multimedia/Makefile
4801objects/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00004802ole/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00004803programs/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00004804programs/clock/Makefile
Eric Williams30008a01999-02-05 17:40:47 +00004805programs/cmdlgtst/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00004806programs/control/Makefile
Marcus Meissner32b32d81999-01-29 15:12:10 +00004807programs/avitools/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00004808programs/notepad/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00004809programs/progman/Makefile
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004810programs/regtest/Makefile
Sylvain St.Germain1bb0e661999-03-14 14:00:22 +00004811programs/regapi/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00004812programs/view/Makefile
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00004813programs/winhelp/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00004814programs/winver/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004815rc/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00004816relay32/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004817resources/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00004818scheduler/Makefile
Alexandre Julliard642d3131998-07-12 19:29:36 +00004819server/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004820tools/Makefile
Alexandre Julliarda845b881998-06-01 10:44:35 +00004821tools/wrc/Makefile
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00004822tsx11/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004823win32/Makefile
Patrik Stridvallea584721998-11-01 16:22:07 +00004824windows/Makefile
Patrik Stridvallf638aef1998-12-07 09:36:13 +00004825windows/ttydrv/Makefile
Patrik Stridvallea584721998-11-01 16:22:07 +00004826windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004827EOF
4828cat >> $CONFIG_STATUS <<EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004829
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004830# Protect against being on the right side of a sed subst in config.status.
4831sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4832 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004833$ac_vpsub
4834$extrasub
4835s%@CFLAGS@%$CFLAGS%g
4836s%@CPPFLAGS@%$CPPFLAGS%g
4837s%@CXXFLAGS@%$CXXFLAGS%g
4838s%@DEFS@%$DEFS%g
4839s%@LDFLAGS@%$LDFLAGS%g
4840s%@LIBS@%$LIBS%g
4841s%@exec_prefix@%$exec_prefix%g
4842s%@prefix@%$prefix%g
4843s%@program_transform_name@%$program_transform_name%g
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004844s%@bindir@%$bindir%g
4845s%@sbindir@%$sbindir%g
4846s%@libexecdir@%$libexecdir%g
4847s%@datadir@%$datadir%g
4848s%@sysconfdir@%$sysconfdir%g
4849s%@sharedstatedir@%$sharedstatedir%g
4850s%@localstatedir@%$localstatedir%g
4851s%@libdir@%$libdir%g
4852s%@includedir@%$includedir%g
4853s%@oldincludedir@%$oldincludedir%g
4854s%@infodir@%$infodir%g
4855s%@mandir@%$mandir%g
Alexandre Julliardc6c09441997-01-12 18:32:19 +00004856s%@PROGEXT@%$PROGEXT%g
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004857s%@MAIN_TARGET@%$MAIN_TARGET%g
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00004858s%@LIB_TARGET@%$LIB_TARGET%g
Uwe Bonnes2a4707a1998-10-11 14:57:08 +00004859s%@ALT_LINK@%$ALT_LINK%g
Alexandre Julliard18f92e71996-07-17 20:02:21 +00004860s%@OPTIONS@%$OPTIONS%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004861s%@SET_MAKE@%$SET_MAKE%g
4862s%@CC@%$CC%g
4863s%@CPP@%$CPP%g
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004864s%@X_CFLAGS@%$X_CFLAGS%g
4865s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4866s%@X_LIBS@%$X_LIBS%g
4867s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004868s%@YACC@%$YACC%g
4869s%@LEX@%$LEX%g
4870s%@LEXLIB@%$LEXLIB%g
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004871s%@RANLIB@%$RANLIB%g
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004872s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4873s%@INSTALL_DATA@%$INSTALL_DATA%g
Alexandre Julliard641ee761997-08-04 16:34:36 +00004874s%@LN_S@%$LN_S%g
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004875s%@C2MAN@%$C2MAN%g
Patrik Stridvallea584721998-11-01 16:22:07 +00004876s%@XLIB@%$XLIB%g
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00004877s%@DLLFLAGS@%$DLLFLAGS%g
Todd Vierling4b992b01998-12-15 15:26:27 +00004878s%@LDSHARED@%$LDSHARED%g
Marcus Meissnera7f5cb51999-04-16 08:47:41 +00004879s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004880/@MAKE_RULES@/r $MAKE_RULES
4881s%@MAKE_RULES@%%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004882
4883CEOF
4884EOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004885
4886cat >> $CONFIG_STATUS <<\EOF
4887
4888# Split the substitutions into bite-sized pieces for seds with
4889# small command number limits, like on Digital OSF/1 and HP-UX.
4890ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4891ac_file=1 # Number of current file.
4892ac_beg=1 # First line for current file.
4893ac_end=$ac_max_sed_cmds # Line after last line for current file.
4894ac_more_lines=:
4895ac_sed_cmds=""
4896while $ac_more_lines; do
4897 if test $ac_beg -gt 1; then
4898 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4899 else
4900 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4901 fi
4902 if test ! -s conftest.s$ac_file; then
4903 ac_more_lines=false
4904 rm -f conftest.s$ac_file
4905 else
4906 if test -z "$ac_sed_cmds"; then
4907 ac_sed_cmds="sed -f conftest.s$ac_file"
4908 else
4909 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4910 fi
4911 ac_file=`expr $ac_file + 1`
4912 ac_beg=$ac_end
4913 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4914 fi
4915done
4916if test -z "$ac_sed_cmds"; then
4917 ac_sed_cmds=cat
4918fi
4919EOF
4920
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004921cat >> $CONFIG_STATUS <<EOF
4922
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004923CONFIG_FILES=\${CONFIG_FILES-"Make.rules
4924Makefile
Joseph Pranevich791cd6a1998-12-02 19:58:08 +00004925console/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004926controls/Makefile
4927debugger/Makefile
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00004928dlls/Makefile
Juergen Schmiedf7b0de31999-01-03 12:48:29 +00004929dlls/advapi32/Makefile
Marcus Meissnerb3d1a221999-03-13 18:07:44 +00004930dlls/avifil32/Makefile
Alexandre Julliarda0d77311998-09-13 16:32:00 +00004931dlls/comctl32/Makefile
Klaas van Gendc9127491999-02-28 20:05:11 +00004932dlls/commdlg/Makefile
Patrik Stridvall8295c861998-10-11 17:09:05 +00004933dlls/imagehlp/Makefile
4934dlls/msacm/Makefile
4935dlls/msacm32/Makefile
Marcus Meissner51505b11998-11-01 14:00:21 +00004936dlls/ntdll/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00004937dlls/psapi/Makefile
Marcus Meissner30ef8771998-12-11 13:26:26 +00004938dlls/rasapi32/Makefile
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00004939dlls/shell32/Makefile
Andreas Mohr5aa96c11999-03-14 12:34:25 +00004940dlls/tapi32/Makefile
Ulrich Weigandd43a46a1999-01-31 10:11:04 +00004941dlls/ver/Makefile
4942dlls/version/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00004943dlls/winaspi/Makefile
4944dlls/wnaspi32/Makefile
Alexandre Julliardd37eb361997-07-20 16:23:21 +00004945documentation/Makefile
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004946files/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00004947graphics/Makefile
Alexandre Julliardbf9130a1996-10-13 17:45:47 +00004948graphics/metafiledrv/Makefile
Alexandre Julliardebfc0fe1998-06-28 18:40:26 +00004949graphics/psdrv/Makefile
Patrik Stridvall24110281999-02-04 10:09:54 +00004950graphics/ttydrv/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00004951graphics/win16drv/Makefile
4952graphics/x11drv/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004953if1632/Makefile
James Juranc70dc831999-02-13 12:18:33 +00004954include/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004955ipc/Makefile
4956library/Makefile
4957libtest/Makefile
4958loader/Makefile
Alexandre Julliard46ea8b31998-05-03 19:01:20 +00004959loader/ne/Makefile
Alexandre Julliard767e6f61998-08-09 12:47:43 +00004960loader/dos/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004961memory/Makefile
4962misc/Makefile
4963miscemu/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00004964msdos/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004965multimedia/Makefile
4966objects/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00004967ole/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00004968programs/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00004969programs/clock/Makefile
Eric Williams30008a01999-02-05 17:40:47 +00004970programs/cmdlgtst/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00004971programs/control/Makefile
Marcus Meissner32b32d81999-01-29 15:12:10 +00004972programs/avitools/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00004973programs/notepad/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00004974programs/progman/Makefile
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004975programs/regtest/Makefile
Sylvain St.Germain1bb0e661999-03-14 14:00:22 +00004976programs/regapi/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00004977programs/view/Makefile
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00004978programs/winhelp/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00004979programs/winver/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004980rc/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00004981relay32/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004982resources/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00004983scheduler/Makefile
Alexandre Julliard642d3131998-07-12 19:29:36 +00004984server/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004985tools/Makefile
Alexandre Julliarda845b881998-06-01 10:44:35 +00004986tools/wrc/Makefile
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00004987tsx11/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004988win32/Makefile
Patrik Stridvallea584721998-11-01 16:22:07 +00004989windows/Makefile
Patrik Stridvallf638aef1998-12-07 09:36:13 +00004990windows/ttydrv/Makefile
Patrik Stridvallea584721998-11-01 16:22:07 +00004991windows/x11drv/Makefile "}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004992EOF
4993cat >> $CONFIG_STATUS <<\EOF
4994for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00004995 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004996 case "$ac_file" in
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00004997 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004998 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4999 *) ac_file_in="${ac_file}.in" ;;
5000 esac
5001
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005002 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005003
5004 # Remove last slash and all that follows it. Not all systems have dirname.
5005 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5006 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5007 # The file is in a subdirectory.
5008 test ! -d "$ac_dir" && mkdir "$ac_dir"
5009 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5010 # A "../" for each directory in $ac_dir_suffix.
5011 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5012 else
5013 ac_dir_suffix= ac_dots=
5014 fi
5015
5016 case "$ac_given_srcdir" in
5017 .) srcdir=.
5018 if test -z "$ac_dots"; then top_srcdir=.
5019 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5020 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5021 *) # Relative path.
5022 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5023 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5024 esac
5025
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00005026 case "$ac_given_INSTALL" in
5027 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5028 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5029 esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005030
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005031 echo creating "$ac_file"
5032 rm -f "$ac_file"
5033 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5034 case "$ac_file" in
5035 *Makefile*) ac_comsub="1i\\
5036# $configure_input" ;;
5037 *) ac_comsub= ;;
5038 esac
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005039
5040 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005041 sed -e "$ac_comsub
5042s%@configure_input@%$configure_input%g
5043s%@srcdir@%$srcdir%g
5044s%@top_srcdir@%$top_srcdir%g
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00005045s%@INSTALL@%$INSTALL%g
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005046" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005047fi; done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005048rm -f conftest.s*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005049
Alexandre Julliard18f92e71996-07-17 20:02:21 +00005050# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5051# NAME is the cpp macro being defined and VALUE is the value it is being given.
5052#
5053# ac_d sets the value in "#define NAME VALUE" lines.
5054ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5055ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5056ac_dC='\3'
5057ac_dD='%g'
5058# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5059ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5060ac_uB='\([ ]\)%\1#\2define\3'
5061ac_uC=' '
5062ac_uD='\4%g'
5063# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5064ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5065ac_eB='$%\1#\2define\3'
5066ac_eC=' '
5067ac_eD='%g'
5068
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005069if test "${CONFIG_HEADERS+set}" != set; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005070EOF
5071cat >> $CONFIG_STATUS <<EOF
5072 CONFIG_HEADERS="include/config.h"
5073EOF
5074cat >> $CONFIG_STATUS <<\EOF
5075fi
Alexandre Julliard18f92e71996-07-17 20:02:21 +00005076for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005077 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Alexandre Julliard18f92e71996-07-17 20:02:21 +00005078 case "$ac_file" in
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005079 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Alexandre Julliard18f92e71996-07-17 20:02:21 +00005080 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5081 *) ac_file_in="${ac_file}.in" ;;
5082 esac
5083
5084 echo creating $ac_file
5085
5086 rm -f conftest.frag conftest.in conftest.out
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005087 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5088 cat $ac_file_inputs > conftest.in
Alexandre Julliard18f92e71996-07-17 20:02:21 +00005089
5090EOF
5091
5092# Transform confdefs.h into a sed script conftest.vals that substitutes
5093# the proper values into config.h.in to produce config.h. And first:
5094# Protect against being on the right side of a sed subst in config.status.
5095# Protect against being in an unquoted here document in config.status.
5096rm -f conftest.vals
5097cat > conftest.hdr <<\EOF
5098s/[\\&%]/\\&/g
5099s%[\\$`]%\\&%g
5100s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5101s%ac_d%ac_u%gp
5102s%ac_u%ac_e%gp
5103EOF
5104sed -n -f conftest.hdr confdefs.h > conftest.vals
5105rm -f conftest.hdr
5106
5107# This sed command replaces #undef with comments. This is necessary, for
5108# example, in the case of _POSIX_SOURCE, which is predefined and required
5109# on some systems where configure will not decide to define it.
5110cat >> conftest.vals <<\EOF
5111s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5112EOF
5113
5114# Break up conftest.vals because some shells have a limit on
5115# the size of here documents, and old seds have small limits too.
Alexandre Julliard18f92e71996-07-17 20:02:21 +00005116
5117rm -f conftest.tail
5118while :
5119do
5120 ac_lines=`grep -c . conftest.vals`
5121 # grep -c gives empty output for an empty file on some AIX systems.
5122 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5123 # Write a limited-size here document to conftest.frag.
5124 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5125 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5126 echo 'CEOF
5127 sed -f conftest.frag conftest.in > conftest.out
5128 rm -f conftest.in
5129 mv conftest.out conftest.in
5130' >> $CONFIG_STATUS
5131 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5132 rm -f conftest.vals
5133 mv conftest.tail conftest.vals
5134done
5135rm -f conftest.vals
5136
5137cat >> $CONFIG_STATUS <<\EOF
5138 rm -f conftest.frag conftest.h
5139 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5140 cat conftest.in >> conftest.h
5141 rm -f conftest.in
5142 if cmp -s $ac_file conftest.h 2>/dev/null; then
5143 echo "$ac_file is unchanged"
5144 rm -f conftest.h
5145 else
5146 # Remove last slash and all that follows it. Not all systems have dirname.
5147 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5148 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5149 # The file is in a subdirectory.
5150 test ! -d "$ac_dir" && mkdir "$ac_dir"
5151 fi
5152 rm -f $ac_file
5153 mv conftest.h $ac_file
5154 fi
5155fi; done
5156
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005157EOF
5158cat >> $CONFIG_STATUS <<EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005159
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005160EOF
5161cat >> $CONFIG_STATUS <<\EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005162
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005163exit 0
5164EOF
5165chmod +x $CONFIG_STATUS
5166rm -fr confdefs* $ac_clean_files
5167test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5168
5169
Ove Kaaven8b4431f1999-01-23 13:59:11 +00005170if test "$have_x" = "no"
5171then
5172 echo
5173 echo "*** Warning: X development files not found. Wine will be built without"
5174 echo "*** X support, which currently does not work, and would probably not be"
5175 echo "*** what you want anyway. You will need to install devel packages of"
5176 echo "*** Xlib/Xfree86 and Xpm at the very least."
Ove Kaaven1eb593c1999-02-14 09:34:46 +00005177elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
5178then
5179 echo
5180 echo "*** Warning: Xpm development files not found. Wine will be built without"
5181 echo "*** Xpm support, which currently does not work. You will need to install"
5182 echo "*** devel packages of Xpm."
Ove Kaaven8b4431f1999-01-23 13:59:11 +00005183fi
5184
Alexandre Julliard638f1691999-01-17 16:32:32 +00005185if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
5186then
5187 echo
5188 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
5189 echo "*** terminal resize support. Consider upgrading ncurses."
Alexandre Julliard638f1691999-01-17 16:32:32 +00005190fi
5191
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005192if test "$wine_cv_libc_reentrant" = "no"
5193then
5194 echo
5195 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
5196 echo "*** thread support. Consider upgrading libc to a more recent"
5197 echo "*** reentrant version of libc."
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005198fi
5199
Lionel Ulmer5c085701999-02-28 19:48:53 +00005200if test "$wine_cv_mesa_version_OK" = "no"
5201then
5202 echo
5203 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
5204 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)"
5205fi
5206
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005207echo
Steffen Moeller1511bae1999-02-17 15:27:03 +00005208echo "Configure finished. Do 'make depend && make' to compile Wine."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005209echo
5210