blob: 4e27b0aa47814d7569c9cde59f5670f0b00e46e6 [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.
Eric Pouech18ad24a2000-01-16 22:16:33 +00005# Generated automatically using autoconf version 2.13
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 Julliard0adad952000-01-26 01:45:58 +000018 --disable-dll build static libraries instead of DLLs"
Alexandre Julliard7e56f681996-01-31 19:02:28 +000019ac_help="$ac_help
Alexandre Julliardf90efa91998-06-14 15:24:15 +000020 --disable-debug compile out all debugging messages"
21ac_help="$ac_help
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000022 --enable-opengl force usage of OpenGL even if the latter is thread-safe"
23ac_help="$ac_help
Alexandre Julliardf90efa91998-06-14 15:24:15 +000024 --disable-trace compile out TRACE messages"
25ac_help="$ac_help
Patrik Stridvall5e5ad532000-04-23 20:02:46 +000026 --without-curses do not use curses"
27ac_help="$ac_help
Patrik Stridvallf638aef1998-12-07 09:36:13 +000028 --without-reentrant-x compile for use with non-reentrant X libraries"
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000029ac_help="$ac_help
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000030 --with-x use the X Window System"
31
32# Initialize some variables set by options.
33# The variables have the same names as the options, with
34# dashes changed to underlines.
35build=NONE
36cache_file=./config.cache
37exec_prefix=NONE
38host=NONE
39no_create=
40nonopt=NONE
41no_recursion=
42prefix=NONE
43program_prefix=NONE
44program_suffix=NONE
45program_transform_name=s,x,x,
46silent=
47site=
48srcdir=
49target=NONE
50verbose=
51x_includes=NONE
52x_libraries=NONE
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000053bindir='${exec_prefix}/bin'
54sbindir='${exec_prefix}/sbin'
55libexecdir='${exec_prefix}/libexec'
56datadir='${prefix}/share'
57sysconfdir='${prefix}/etc'
58sharedstatedir='${prefix}/com'
59localstatedir='${prefix}/var'
60libdir='${exec_prefix}/lib'
61includedir='${prefix}/include'
62oldincludedir='/usr/include'
63infodir='${prefix}/info'
64mandir='${prefix}/man'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000065
66# Initialize some other variables.
67subdirs=
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000068MFLAGS= MAKEFLAGS=
Eric Pouech18ad24a2000-01-16 22:16:33 +000069SHELL=${CONFIG_SHELL-/bin/sh}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000070# Maximum number of lines to put in a shell here document.
71ac_max_here_lines=12
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000072
73ac_prev=
74for ac_option
75do
76
77 # If the previous option needs an argument, assign it.
78 if test -n "$ac_prev"; then
79 eval "$ac_prev=\$ac_option"
80 ac_prev=
81 continue
82 fi
83
84 case "$ac_option" in
85 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
86 *) ac_optarg= ;;
87 esac
88
89 # Accept the important Cygnus configure options, so we can diagnose typos.
90
91 case "$ac_option" in
92
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000093 -bindir | --bindir | --bindi | --bind | --bin | --bi)
94 ac_prev=bindir ;;
95 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
96 bindir="$ac_optarg" ;;
97
98 -build | --build | --buil | --bui | --bu)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000099 ac_prev=build ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000100 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000101 build="$ac_optarg" ;;
102
103 -cache-file | --cache-file | --cache-fil | --cache-fi \
104 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
105 ac_prev=cache_file ;;
106 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
107 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
108 cache_file="$ac_optarg" ;;
109
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000110 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
111 ac_prev=datadir ;;
112 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
113 | --da=*)
114 datadir="$ac_optarg" ;;
115
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000116 -disable-* | --disable-*)
117 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121 fi
122 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}=no" ;;
124
125 -enable-* | --enable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 fi
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132 case "$ac_option" in
133 *=*) ;;
134 *) ac_optarg=yes ;;
135 esac
136 eval "enable_${ac_feature}='$ac_optarg'" ;;
137
138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
140 | --exec | --exe | --ex)
141 ac_prev=exec_prefix ;;
142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
144 | --exec=* | --exe=* | --ex=*)
145 exec_prefix="$ac_optarg" ;;
146
147 -gas | --gas | --ga | --g)
148 # Obsolete; use --with-gas.
149 with_gas=yes ;;
150
151 -help | --help | --hel | --he)
152 # Omit some internal or obsolete options to make the list less imposing.
153 # This message is too long to be a string in the A/UX 3.1 sh.
154 cat << EOF
155Usage: configure [options] [host]
156Options: [defaults in brackets after descriptions]
157Configuration:
158 --cache-file=FILE cache test results in FILE
159 --help print this message
160 --no-create do not create output files
161 --quiet, --silent do not print \`checking...' messages
162 --version print the version of autoconf that created configure
163Directory and file names:
164 --prefix=PREFIX install architecture-independent files in PREFIX
165 [$ac_default_prefix]
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000167 [same as prefix]
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000168 --bindir=DIR user executables in DIR [EPREFIX/bin]
169 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
170 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
171 --datadir=DIR read-only architecture-independent data in DIR
172 [PREFIX/share]
173 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
174 --sharedstatedir=DIR modifiable architecture-independent data in DIR
175 [PREFIX/com]
176 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
177 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
178 --includedir=DIR C header files in DIR [PREFIX/include]
179 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
180 --infodir=DIR info documentation in DIR [PREFIX/info]
181 --mandir=DIR man documentation in DIR [PREFIX/man]
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000182 --srcdir=DIR find the sources in DIR [configure dir or ..]
183 --program-prefix=PREFIX prepend PREFIX to installed program names
184 --program-suffix=SUFFIX append SUFFIX to installed program names
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000185 --program-transform-name=PROGRAM
186 run sed PROGRAM on installed program names
187EOF
188 cat << EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000189Host type:
190 --build=BUILD configure for building on BUILD [BUILD=HOST]
191 --host=HOST configure for HOST [guessed]
192 --target=TARGET configure for TARGET [TARGET=HOST]
193Features and packages:
194 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
195 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
196 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
197 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
198 --x-includes=DIR X include files are in DIR
199 --x-libraries=DIR X library files are in DIR
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000200EOF
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000201 if test -n "$ac_help"; then
202 echo "--enable and --with options recognized:$ac_help"
203 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000204 exit 0 ;;
205
206 -host | --host | --hos | --ho)
207 ac_prev=host ;;
208 -host=* | --host=* | --hos=* | --ho=*)
209 host="$ac_optarg" ;;
210
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000211 -includedir | --includedir | --includedi | --included | --include \
212 | --includ | --inclu | --incl | --inc)
213 ac_prev=includedir ;;
214 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
215 | --includ=* | --inclu=* | --incl=* | --inc=*)
216 includedir="$ac_optarg" ;;
217
218 -infodir | --infodir | --infodi | --infod | --info | --inf)
219 ac_prev=infodir ;;
220 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
221 infodir="$ac_optarg" ;;
222
223 -libdir | --libdir | --libdi | --libd)
224 ac_prev=libdir ;;
225 -libdir=* | --libdir=* | --libdi=* | --libd=*)
226 libdir="$ac_optarg" ;;
227
228 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
229 | --libexe | --libex | --libe)
230 ac_prev=libexecdir ;;
231 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
232 | --libexe=* | --libex=* | --libe=*)
233 libexecdir="$ac_optarg" ;;
234
235 -localstatedir | --localstatedir | --localstatedi | --localstated \
236 | --localstate | --localstat | --localsta | --localst \
237 | --locals | --local | --loca | --loc | --lo)
238 ac_prev=localstatedir ;;
239 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
240 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
241 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
242 localstatedir="$ac_optarg" ;;
243
244 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
245 ac_prev=mandir ;;
246 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
247 mandir="$ac_optarg" ;;
248
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000249 -nfp | --nfp | --nf)
250 # Obsolete; use --without-fp.
251 with_fp=no ;;
252
253 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
254 | --no-cr | --no-c)
255 no_create=yes ;;
256
257 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
258 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
259 no_recursion=yes ;;
260
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000261 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
262 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
263 | --oldin | --oldi | --old | --ol | --o)
264 ac_prev=oldincludedir ;;
265 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
266 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
267 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
268 oldincludedir="$ac_optarg" ;;
269
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000270 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
271 ac_prev=prefix ;;
272 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
273 prefix="$ac_optarg" ;;
274
275 -program-prefix | --program-prefix | --program-prefi | --program-pref \
276 | --program-pre | --program-pr | --program-p)
277 ac_prev=program_prefix ;;
278 -program-prefix=* | --program-prefix=* | --program-prefi=* \
279 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
280 program_prefix="$ac_optarg" ;;
281
282 -program-suffix | --program-suffix | --program-suffi | --program-suff \
283 | --program-suf | --program-su | --program-s)
284 ac_prev=program_suffix ;;
285 -program-suffix=* | --program-suffix=* | --program-suffi=* \
286 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
287 program_suffix="$ac_optarg" ;;
288
289 -program-transform-name | --program-transform-name \
290 | --program-transform-nam | --program-transform-na \
291 | --program-transform-n | --program-transform- \
292 | --program-transform | --program-transfor \
293 | --program-transfo | --program-transf \
294 | --program-trans | --program-tran \
295 | --progr-tra | --program-tr | --program-t)
296 ac_prev=program_transform_name ;;
297 -program-transform-name=* | --program-transform-name=* \
298 | --program-transform-nam=* | --program-transform-na=* \
299 | --program-transform-n=* | --program-transform-=* \
300 | --program-transform=* | --program-transfor=* \
301 | --program-transfo=* | --program-transf=* \
302 | --program-trans=* | --program-tran=* \
303 | --progr-tra=* | --program-tr=* | --program-t=*)
304 program_transform_name="$ac_optarg" ;;
305
306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
307 | -silent | --silent | --silen | --sile | --sil)
308 silent=yes ;;
309
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
311 ac_prev=sbindir ;;
312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
313 | --sbi=* | --sb=*)
314 sbindir="$ac_optarg" ;;
315
316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
318 | --sharedst | --shareds | --shared | --share | --shar \
319 | --sha | --sh)
320 ac_prev=sharedstatedir ;;
321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
324 | --sha=* | --sh=*)
325 sharedstatedir="$ac_optarg" ;;
326
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000327 -site | --site | --sit)
328 ac_prev=site ;;
329 -site=* | --site=* | --sit=*)
330 site="$ac_optarg" ;;
331
332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
333 ac_prev=srcdir ;;
334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
335 srcdir="$ac_optarg" ;;
336
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000337 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
338 | --syscon | --sysco | --sysc | --sys | --sy)
339 ac_prev=sysconfdir ;;
340 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
341 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
342 sysconfdir="$ac_optarg" ;;
343
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000344 -target | --target | --targe | --targ | --tar | --ta | --t)
345 ac_prev=target ;;
346 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
347 target="$ac_optarg" ;;
348
349 -v | -verbose | --verbose | --verbos | --verbo | --verb)
350 verbose=yes ;;
351
352 -version | --version | --versio | --versi | --vers)
Eric Pouech18ad24a2000-01-16 22:16:33 +0000353 echo "configure generated by autoconf version 2.13"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000354 exit 0 ;;
355
356 -with-* | --with-*)
357 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361 fi
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
363 case "$ac_option" in
364 *=*) ;;
365 *) ac_optarg=yes ;;
366 esac
367 eval "with_${ac_package}='$ac_optarg'" ;;
368
369 -without-* | --without-*)
370 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 fi
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}=no" ;;
377
378 --x)
379 # Obsolete; use --with-x.
380 with_x=yes ;;
381
382 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
383 | --x-incl | --x-inc | --x-in | --x-i)
384 ac_prev=x_includes ;;
385 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
386 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
387 x_includes="$ac_optarg" ;;
388
389 -x-libraries | --x-libraries | --x-librarie | --x-librari \
390 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
391 ac_prev=x_libraries ;;
392 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
393 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
394 x_libraries="$ac_optarg" ;;
395
396 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
397 ;;
398
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000399 *)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000400 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
401 echo "configure: warning: $ac_option: invalid host type" 1>&2
402 fi
403 if test "x$nonopt" != xNONE; then
404 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
405 fi
406 nonopt="$ac_option"
407 ;;
408
409 esac
410done
411
412if test -n "$ac_prev"; then
413 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
414fi
415
416trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
417
418# File descriptor usage:
419# 0 standard input
420# 1 file creation
421# 2 errors and warnings
422# 3 some systems may open it to /dev/tty
423# 4 used on the Kubota Titan
424# 6 checking for... messages and results
425# 5 compiler messages saved in config.log
426if test "$silent" = yes; then
427 exec 6>/dev/null
428else
429 exec 6>&1
430fi
431exec 5>./config.log
432
433echo "\
434This file contains any messages produced by compilers while
435running configure, to aid debugging if configure makes a mistake.
436" 1>&5
437
438# Strip out --no-create and --no-recursion so they do not pile up.
439# Also quote any args containing shell metacharacters.
440ac_configure_args=
441for ac_arg
442do
443 case "$ac_arg" in
444 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
445 | --no-cr | --no-c) ;;
446 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
447 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
448 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
449 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
450 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
451 esac
452done
453
454# NLS nuisances.
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000455# Only set these to C if already set. These must not be set unconditionally
456# because not all systems understand e.g. LANG=C (notably SCO).
457# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
458# Non-C LC_CTYPE values break the ctype check.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000459if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000460if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
461if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
462if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000463
464# confdefs.h avoids OS command line length limits that DEFS can exceed.
465rm -rf conftest* confdefs.h
466# AIX cpp loses on an empty file, so make sure it contains at least a newline.
467echo > confdefs.h
468
469# A filename unique to this package, relative to the directory that
470# configure is in, which we can look for to find out if srcdir is correct.
471ac_unique_file=controls/edit.c
472
473# Find the source files, if location was not specified.
474if test -z "$srcdir"; then
475 ac_srcdir_defaulted=yes
476 # Try the directory containing this script, then its parent.
477 ac_prog=$0
478 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
480 srcdir=$ac_confdir
481 if test ! -r $srcdir/$ac_unique_file; then
482 srcdir=..
483 fi
484else
485 ac_srcdir_defaulted=no
486fi
487if test ! -r $srcdir/$ac_unique_file; then
488 if test "$ac_srcdir_defaulted" = yes; then
489 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
490 else
491 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
492 fi
493fi
494srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
495
496# Prefer explicitly selected file to automatically selected ones.
497if test -z "$CONFIG_SITE"; then
498 if test "x$prefix" != xNONE; then
499 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
500 else
501 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
502 fi
503fi
504for ac_site_file in $CONFIG_SITE; do
505 if test -r "$ac_site_file"; then
506 echo "loading site script $ac_site_file"
507 . "$ac_site_file"
508 fi
509done
510
511if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
513 . $cache_file
514else
515 echo "creating cache $cache_file"
516 > $cache_file
517fi
518
519ac_ext=c
520# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000521ac_cpp='$CPP $CPPFLAGS'
522ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Eric Pouech18ad24a2000-01-16 22:16:33 +0000523ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000524cross_compiling=$ac_cv_prog_cc_cross
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000525
Eric Pouech18ad24a2000-01-16 22:16:33 +0000526ac_exeext=
527ac_objext=o
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000528if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
529 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
530 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
531 ac_n= ac_c='
532' ac_t=' '
533 else
534 ac_n=-n ac_c= ac_t=
535 fi
536else
537 ac_n= ac_c='\c' ac_t=
538fi
539
540
Alexandre Julliard18f92e71996-07-17 20:02:21 +0000541
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000542ac_aux_dir=
543for ac_dir in tools $srcdir/tools; do
544 if test -f $ac_dir/install-sh; then
545 ac_aux_dir=$ac_dir
546 ac_install_sh="$ac_aux_dir/install-sh -c"
547 break
548 elif test -f $ac_dir/install.sh; then
549 ac_aux_dir=$ac_dir
550 ac_install_sh="$ac_aux_dir/install.sh -c"
551 break
552 fi
553done
554if test -z "$ac_aux_dir"; then
555 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
556fi
557ac_config_guess=$ac_aux_dir/config.guess
558ac_config_sub=$ac_aux_dir/config.sub
559ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
560
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000561
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000562# We want these before the checks, so the checks can modify their values.
Howard Abrams13277481999-07-10 13:16:29 +0000563
Alexandre Julliardc6c09441997-01-12 18:32:19 +0000564test -z "$PROGEXT" && PROGEXT=""
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000565
Alexandre Julliardff8331e1995-09-18 11:19:54 +0000566
Alexandre Julliard318f4ce2000-01-31 05:02:49 +0000567EMU_TARGET=wine
568LIBEXT=so # library type .so or .a
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000569TRACE_MSGS=yes # the TRACE() macro
570DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros.
Patrik Stridvall5e5ad532000-04-23 20:02:46 +0000571CURSES=yes
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000572OPENGL=normal
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +0000573
574# Check whether --enable-emulator or --disable-emulator was given.
575if test "${enable_emulator+set}" = set; then
576 enableval="$enable_emulator"
Alexandre Julliard318f4ce2000-01-31 05:02:49 +0000577 if test "$enableval" = "no"; then EMU_TARGET=""; fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +0000578fi
579
580
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +0000581# Check whether --enable-dll or --disable-dll was given.
582if test "${enable_dll+set}" = set; then
583 enableval="$enable_dll"
Alexandre Julliard318f4ce2000-01-31 05:02:49 +0000584 if test "$enableval" = "no"; then LIBEXT="a"; fi
Alexandre Julliard642d3131998-07-12 19:29:36 +0000585fi
586
587
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000588# Check whether --enable-debug or --disable-debug was given.
589if test "${enable_debug+set}" = set; then
590 enableval="$enable_debug"
591 if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi
592fi
593
594
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000595# Check whether --enable-opengl or --disable-opengl was given.
596if test "${enable_opengl+set}" = set; then
597 enableval="$enable_opengl"
598 if test "$enableval" = "no"; then OPENGL="no"; elif test "$enableval" = "yes"; then OPENGL="yes"; fi
599fi
600
601
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000602# Check whether --enable-trace or --disable-trace was given.
603if test "${enable_trace+set}" = set; then
604 enableval="$enable_trace"
605 if test "$enableval" = "no"; then TRACE_MSGS="no"; fi
606fi
607
608
Patrik Stridvall5e5ad532000-04-23 20:02:46 +0000609# Check whether --with-curses or --without-curses was given.
610if test "${with_curses+set}" = set; then
611 withval="$with_curses"
612 if test "$withval" = "no"; then CURSES="no"; fi
613fi
614
615
Alexandre Julliarda11d7b11998-03-01 20:05:02 +0000616# Check whether --with-reentrant-x or --without-reentrant-x was given.
617if test "${with_reentrant_x+set}" = set; then
618 withval="$with_reentrant_x"
619 :
620fi
621
622
Alexandre Julliardb7258be1995-09-01 15:57:28 +0000623
Alexandre Julliardb7258be1995-09-01 15:57:28 +0000624
625
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000626if test "$DEBUG_MSGS" = "no"
627then
628 cat >> confdefs.h <<\EOF
629#define NO_DEBUG_MSGS 1
630EOF
631
632 cat >> confdefs.h <<\EOF
633#define NO_TRACE_MSGS 1
634EOF
635
636else
637 if test "$TRACE_MSGS" = "no"
638 then
639 cat >> confdefs.h <<\EOF
640#define NO_TRACE_MSGS 1
641EOF
642
643 fi
644fi
645
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +0000646
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000647echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000648echo "configure:649: checking whether ${MAKE-make} sets \${MAKE}" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000649set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000650if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
651 echo $ac_n "(cached) $ac_c" 1>&6
652else
653 cat > conftestmake <<\EOF
654all:
655 @echo 'ac_maketemp="${MAKE}"'
656EOF
657# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
658eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
659if test -n "$ac_maketemp"; then
660 eval ac_cv_prog_make_${ac_make}_set=yes
661else
662 eval ac_cv_prog_make_${ac_make}_set=no
663fi
664rm -f conftestmake
665fi
666if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
667 echo "$ac_t""yes" 1>&6
668 SET_MAKE=
669else
670 echo "$ac_t""no" 1>&6
671 SET_MAKE="MAKE=${MAKE-make}"
672fi
673
674# Extract the first word of "gcc", so it can be a program name with args.
675set dummy gcc; ac_word=$2
676echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000677echo "configure:678: checking for $ac_word" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000678if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
679 echo $ac_n "(cached) $ac_c" 1>&6
680else
681 if test -n "$CC"; then
682 ac_cv_prog_CC="$CC" # Let the user override the test.
683else
Eric Pouech18ad24a2000-01-16 22:16:33 +0000684 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
685 ac_dummy="$PATH"
686 for ac_dir in $ac_dummy; do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000687 test -z "$ac_dir" && ac_dir=.
688 if test -f $ac_dir/$ac_word; then
689 ac_cv_prog_CC="gcc"
690 break
691 fi
692 done
693 IFS="$ac_save_ifs"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000694fi
695fi
696CC="$ac_cv_prog_CC"
697if test -n "$CC"; then
698 echo "$ac_t""$CC" 1>&6
699else
700 echo "$ac_t""no" 1>&6
701fi
702
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000703if test -z "$CC"; then
704 # Extract the first word of "cc", so it can be a program name with args.
705set dummy cc; ac_word=$2
706echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000707echo "configure:708: checking for $ac_word" >&5
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000708if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
709 echo $ac_n "(cached) $ac_c" 1>&6
710else
711 if test -n "$CC"; then
712 ac_cv_prog_CC="$CC" # Let the user override the test.
713else
Eric Pouech18ad24a2000-01-16 22:16:33 +0000714 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000715 ac_prog_rejected=no
Eric Pouech18ad24a2000-01-16 22:16:33 +0000716 ac_dummy="$PATH"
717 for ac_dir in $ac_dummy; do
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000718 test -z "$ac_dir" && ac_dir=.
719 if test -f $ac_dir/$ac_word; then
720 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
721 ac_prog_rejected=yes
722 continue
723 fi
724 ac_cv_prog_CC="cc"
725 break
726 fi
727 done
728 IFS="$ac_save_ifs"
729if test $ac_prog_rejected = yes; then
730 # We found a bogon in the path, so make sure we never use it.
731 set dummy $ac_cv_prog_CC
732 shift
733 if test $# -gt 0; then
734 # We chose a different compiler from the bogus one.
735 # However, it has the same basename, so the bogon will be chosen
736 # first if we set CC to just the basename; use the full file name.
737 shift
738 set dummy "$ac_dir/$ac_word" "$@"
739 shift
740 ac_cv_prog_CC="$@"
741 fi
742fi
743fi
744fi
745CC="$ac_cv_prog_CC"
746if test -n "$CC"; then
747 echo "$ac_t""$CC" 1>&6
748else
749 echo "$ac_t""no" 1>&6
750fi
751
Eric Pouech18ad24a2000-01-16 22:16:33 +0000752 if test -z "$CC"; then
753 case "`uname -s`" in
754 *win32* | *WIN32*)
755 # Extract the first word of "cl", so it can be a program name with args.
756set dummy cl; ac_word=$2
757echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000758echo "configure:759: checking for $ac_word" >&5
Eric Pouech18ad24a2000-01-16 22:16:33 +0000759if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
760 echo $ac_n "(cached) $ac_c" 1>&6
761else
762 if test -n "$CC"; then
763 ac_cv_prog_CC="$CC" # Let the user override the test.
764else
765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
766 ac_dummy="$PATH"
767 for ac_dir in $ac_dummy; do
768 test -z "$ac_dir" && ac_dir=.
769 if test -f $ac_dir/$ac_word; then
770 ac_cv_prog_CC="cl"
771 break
772 fi
773 done
774 IFS="$ac_save_ifs"
775fi
776fi
777CC="$ac_cv_prog_CC"
778if test -n "$CC"; then
779 echo "$ac_t""$CC" 1>&6
780else
781 echo "$ac_t""no" 1>&6
782fi
783 ;;
784 esac
785 fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000786 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
787fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000788
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000789echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000790echo "configure:791: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000791
792ac_ext=c
793# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
794ac_cpp='$CPP $CPPFLAGS'
795ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Eric Pouech18ad24a2000-01-16 22:16:33 +0000796ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000797cross_compiling=$ac_cv_prog_cc_cross
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000798
Eric Pouech18ad24a2000-01-16 22:16:33 +0000799cat > conftest.$ac_ext << EOF
800
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000801#line 802 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000802#include "confdefs.h"
Eric Pouech18ad24a2000-01-16 22:16:33 +0000803
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000804main(){return(0);}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000805EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000806if { (eval echo configure:807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000807 ac_cv_prog_cc_works=yes
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000808 # If we can't run a trivial program, we are probably using a cross compiler.
809 if (./conftest; exit) 2>/dev/null; then
810 ac_cv_prog_cc_cross=no
811 else
812 ac_cv_prog_cc_cross=yes
813 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000814else
815 echo "configure: failed program was:" >&5
816 cat conftest.$ac_ext >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000817 ac_cv_prog_cc_works=no
818fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000819rm -fr conftest*
Eric Pouech18ad24a2000-01-16 22:16:33 +0000820ac_ext=c
821# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
822ac_cpp='$CPP $CPPFLAGS'
823ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
824ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
825cross_compiling=$ac_cv_prog_cc_cross
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000826
827echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
828if test $ac_cv_prog_cc_works = no; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000829 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000830fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000831echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000832echo "configure:833: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000833echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
834cross_compiling=$ac_cv_prog_cc_cross
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000835
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000836echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000837echo "configure:838: checking whether we are using GNU C" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000838if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
839 echo $ac_n "(cached) $ac_c" 1>&6
840else
841 cat > conftest.c <<EOF
842#ifdef __GNUC__
843 yes;
844#endif
845EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000846if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000847 ac_cv_prog_gcc=yes
848else
849 ac_cv_prog_gcc=no
850fi
851fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000852
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000853echo "$ac_t""$ac_cv_prog_gcc" 1>&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000854
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000855if test $ac_cv_prog_gcc = yes; then
856 GCC=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +0000857else
858 GCC=
859fi
860
861ac_test_CFLAGS="${CFLAGS+set}"
862ac_save_CFLAGS="$CFLAGS"
863CFLAGS=
864echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000865echo "configure:866: checking whether ${CC-cc} accepts -g" >&5
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000866if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000867 echo $ac_n "(cached) $ac_c" 1>&6
868else
869 echo 'void f(){}' > conftest.c
870if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000871 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000872else
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000873 ac_cv_prog_cc_g=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000874fi
875rm -f conftest*
876
877fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000878
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000879echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
Eric Pouech18ad24a2000-01-16 22:16:33 +0000880if test "$ac_test_CFLAGS" = set; then
881 CFLAGS="$ac_save_CFLAGS"
882elif test $ac_cv_prog_cc_g = yes; then
883 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000884 CFLAGS="-g -O2"
885 else
Eric Pouech18ad24a2000-01-16 22:16:33 +0000886 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000887 fi
888else
Eric Pouech18ad24a2000-01-16 22:16:33 +0000889 if test "$GCC" = yes; then
890 CFLAGS="-O2"
891 else
892 CFLAGS=
893 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000894fi
895
896echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000897echo "configure:898: checking how to run the C preprocessor" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000898# On Suns, sometimes $CPP names a directory.
899if test -n "$CPP" && test -d "$CPP"; then
900 CPP=
901fi
902if test -z "$CPP"; then
903if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
904 echo $ac_n "(cached) $ac_c" 1>&6
905else
906 # This must be in double quotes, not single quotes, because CPP may get
907 # substituted into the Makefile and "${CC-cc}" will confuse make.
908 CPP="${CC-cc} -E"
909 # On the NeXT, cc -E runs the code through the compiler's parser,
910 # not just through cpp.
911 cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000912#line 913 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000913#include "confdefs.h"
914#include <assert.h>
915Syntax Error
916EOF
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000917ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000918{ (eval echo configure:919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +0000919ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000920if test -z "$ac_err"; then
921 :
922else
923 echo "$ac_err" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000924 echo "configure: failed program was:" >&5
925 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000926 rm -rf conftest*
927 CPP="${CC-cc} -E -traditional-cpp"
928 cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000929#line 930 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000930#include "confdefs.h"
931#include <assert.h>
932Syntax Error
933EOF
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000934ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000935{ (eval echo configure:936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +0000936ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
937if test -z "$ac_err"; then
938 :
939else
940 echo "$ac_err" >&5
941 echo "configure: failed program was:" >&5
942 cat conftest.$ac_ext >&5
943 rm -rf conftest*
944 CPP="${CC-cc} -nologo -E"
945 cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000946#line 947 "configure"
Eric Pouech18ad24a2000-01-16 22:16:33 +0000947#include "confdefs.h"
948#include <assert.h>
949Syntax Error
950EOF
951ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000952{ (eval echo configure:953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +0000953ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000954if test -z "$ac_err"; then
955 :
956else
957 echo "$ac_err" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000958 echo "configure: failed program was:" >&5
959 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000960 rm -rf conftest*
961 CPP=/lib/cpp
962fi
963rm -f conftest*
964fi
965rm -f conftest*
Eric Pouech18ad24a2000-01-16 22:16:33 +0000966fi
967rm -f conftest*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000968 ac_cv_prog_CPP="$CPP"
969fi
970 CPP="$ac_cv_prog_CPP"
971else
972 ac_cv_prog_CPP="$CPP"
973fi
974echo "$ac_t""$CPP" 1>&6
975
976# If we find X, set shell vars x_includes and x_libraries to the
977# paths, otherwise set no_x=yes.
978# Uses ac_ vars as temps to allow command line to override cache and checks.
979# --without-x overrides everything else, but does not touch the cache.
980echo $ac_n "checking for X""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000981echo "configure:982: checking for X" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000982
983# Check whether --with-x or --without-x was given.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000984if test "${with_x+set}" = set; then
985 withval="$with_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000986 :
987fi
988
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000989# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000990if test "x$with_x" = xno; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000991 # The user explicitly disabled X.
992 have_x=disabled
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000993else
994 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000995 # Both variables are already set.
996 have_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000997 else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000998if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000999 echo $ac_n "(cached) $ac_c" 1>&6
1000else
1001 # One or both of the vars are not set, and there is no cached value.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001002ac_x_includes=NO ac_x_libraries=NO
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001003rm -fr conftestdir
1004if mkdir conftestdir; then
1005 cd conftestdir
1006 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1007 cat > Imakefile <<'EOF'
1008acfindx:
1009 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1010EOF
1011 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001012 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001013 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001014 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1015 for ac_extension in a so sl; do
1016 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1017 test -f $ac_im_libdir/libX11.$ac_extension; then
1018 ac_im_usrlibdir=$ac_im_libdir; break
1019 fi
1020 done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001021 # Screen out bogus values from the imake configuration. They are
1022 # bogus both because they are the default anyway, and because
1023 # using them would break gcc on systems where it needs fixed includes.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001024 case "$ac_im_incroot" in
1025 /usr/include) ;;
1026 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1027 esac
1028 case "$ac_im_usrlibdir" in
1029 /usr/lib | /lib) ;;
1030 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1031 esac
1032 fi
1033 cd ..
1034 rm -fr conftestdir
1035fi
1036
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001037if test "$ac_x_includes" = NO; then
1038 # Guess where to find include files, by looking for this one X11 .h file.
1039 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1040
1041 # First, try using that file with no special directory specified.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001042cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001043#line 1044 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001044#include "confdefs.h"
1045#include <$x_direct_test_include>
1046EOF
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001047ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001048{ (eval echo configure:1049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00001049ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001050if test -z "$ac_err"; then
1051 rm -rf conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001052 # We can compile using X headers with no special include directory.
1053ac_x_includes=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001054else
1055 echo "$ac_err" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001056 echo "configure: failed program was:" >&5
1057 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001058 rm -rf conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001059 # Look for the header file in a standard set of common directories.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001060# Check X11 before X11Rn because it is often a symlink to the current release.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001061 for ac_dir in \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001062 /usr/X11/include \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001063 /usr/X11R6/include \
1064 /usr/X11R5/include \
1065 /usr/X11R4/include \
1066 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001067 /usr/include/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001068 /usr/include/X11R6 \
1069 /usr/include/X11R5 \
1070 /usr/include/X11R4 \
1071 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001072 /usr/local/X11/include \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001073 /usr/local/X11R6/include \
1074 /usr/local/X11R5/include \
1075 /usr/local/X11R4/include \
1076 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001077 /usr/local/include/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001078 /usr/local/include/X11R6 \
1079 /usr/local/include/X11R5 \
1080 /usr/local/include/X11R4 \
1081 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001082 /usr/X386/include \
1083 /usr/x386/include \
1084 /usr/XFree86/include/X11 \
1085 \
1086 /usr/include \
1087 /usr/local/include \
1088 /usr/unsupported/include \
1089 /usr/athena/include \
1090 /usr/local/x11r5/include \
1091 /usr/lpp/Xamples/include \
1092 \
1093 /usr/openwin/include \
1094 /usr/openwin/share/include \
1095 ; \
1096 do
1097 if test -r "$ac_dir/$x_direct_test_include"; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001098 ac_x_includes=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001099 break
1100 fi
1101 done
1102fi
1103rm -f conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001104fi # $ac_x_includes = NO
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001105
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001106if test "$ac_x_libraries" = NO; then
1107 # Check for the libraries.
1108
1109 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1110 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1111
1112 # See if we find them without any special options.
1113 # Don't add to $LIBS permanently.
1114 ac_save_LIBS="$LIBS"
1115 LIBS="-l$x_direct_test_library $LIBS"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001116cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001117#line 1118 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001118#include "confdefs.h"
1119
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001120int main() {
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001121${x_direct_test_function}()
1122; return 0; }
1123EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001124if { (eval echo configure:1125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001125 rm -rf conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001126 LIBS="$ac_save_LIBS"
1127# We can link X programs with no special library path.
1128ac_x_libraries=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001129else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001130 echo "configure: failed program was:" >&5
1131 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001132 rm -rf conftest*
1133 LIBS="$ac_save_LIBS"
1134# First see if replacing the include by lib works.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001135# Check X11 before X11Rn because it is often a symlink to the current release.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001136for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001137 /usr/X11/lib \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001138 /usr/X11R6/lib \
1139 /usr/X11R5/lib \
1140 /usr/X11R4/lib \
1141 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001142 /usr/lib/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001143 /usr/lib/X11R6 \
1144 /usr/lib/X11R5 \
1145 /usr/lib/X11R4 \
1146 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001147 /usr/local/X11/lib \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001148 /usr/local/X11R6/lib \
1149 /usr/local/X11R5/lib \
1150 /usr/local/X11R4/lib \
1151 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001152 /usr/local/lib/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001153 /usr/local/lib/X11R6 \
1154 /usr/local/lib/X11R5 \
1155 /usr/local/lib/X11R4 \
1156 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001157 /usr/X386/lib \
1158 /usr/x386/lib \
1159 /usr/XFree86/lib/X11 \
1160 \
1161 /usr/lib \
1162 /usr/local/lib \
1163 /usr/unsupported/lib \
1164 /usr/athena/lib \
1165 /usr/local/x11r5/lib \
1166 /usr/lpp/Xamples/lib \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001167 /lib/usr/lib/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001168 \
1169 /usr/openwin/lib \
1170 /usr/openwin/share/lib \
1171 ; \
1172do
1173 for ac_extension in a so sl; do
1174 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001175 ac_x_libraries=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001176 break 2
1177 fi
1178 done
1179done
1180fi
1181rm -f conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001182fi # $ac_x_libraries = NO
1183
1184if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1185 # Didn't find X anywhere. Cache the known absence of X.
1186 ac_cv_have_x="have_x=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001187else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001188 # Record where we found X for the cache.
1189 ac_cv_have_x="have_x=yes \
1190 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001191fi
1192fi
1193 fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001194 eval "$ac_cv_have_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001195fi # $with_x != no
1196
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001197if test "$have_x" != yes; then
1198 echo "$ac_t""$have_x" 1>&6
1199 no_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001200else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001201 # If each of the values was on the command line, it overrides each guess.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001202 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1203 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001204 # Update the cache value to reflect the command line values.
1205 ac_cv_have_x="have_x=yes \
1206 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001207 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1208fi
1209
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001210if test "$no_x" = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001211 # Not all programs may use this symbol, but it does not hurt to define it.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001212 cat >> confdefs.h <<\EOF
1213#define X_DISPLAY_MISSING 1
1214EOF
1215
1216 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001217else
1218 if test -n "$x_includes"; then
1219 X_CFLAGS="$X_CFLAGS -I$x_includes"
1220 fi
1221
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001222 # It would also be nice to do this for all -L options, not just this one.
1223 if test -n "$x_libraries"; then
1224 X_LIBS="$X_LIBS -L$x_libraries"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001225 # For Solaris; some versions of Sun CC require a space after -R and
1226 # others require no space. Words are not sufficient . . . .
1227 case "`(uname -sr) 2>/dev/null`" in
1228 "SunOS 5"*)
1229 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001230echo "configure:1231: checking whether -R must be followed by a space" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001231 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1232 cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001233#line 1234 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001234#include "confdefs.h"
1235
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001236int main() {
1237
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001238; return 0; }
1239EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001240if { (eval echo configure:1241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001241 rm -rf conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001242 ac_R_nospace=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001243else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001244 echo "configure: failed program was:" >&5
1245 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001246 rm -rf conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001247 ac_R_nospace=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001248fi
1249rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001250 if test $ac_R_nospace = yes; then
1251 echo "$ac_t""no" 1>&6
1252 X_LIBS="$X_LIBS -R$x_libraries"
1253 else
1254 LIBS="$ac_xsave_LIBS -R $x_libraries"
1255 cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001256#line 1257 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001257#include "confdefs.h"
1258
1259int main() {
1260
1261; return 0; }
1262EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001263if { (eval echo configure:1264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001264 rm -rf conftest*
1265 ac_R_space=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001266else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001267 echo "configure: failed program was:" >&5
1268 cat conftest.$ac_ext >&5
1269 rm -rf conftest*
1270 ac_R_space=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001271fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001272rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001273 if test $ac_R_space = yes; then
1274 echo "$ac_t""yes" 1>&6
1275 X_LIBS="$X_LIBS -R $x_libraries"
1276 else
1277 echo "$ac_t""neither works" 1>&6
1278 fi
1279 fi
1280 LIBS="$ac_xsave_LIBS"
1281 esac
1282 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001283
1284 # Check for system-dependent libraries X programs must link with.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001285 # Do this before checking for the system-independent R6 libraries
1286 # (-lICE), since we may need -lsocket or whatever for X linking.
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001287
1288 if test "$ISC" = yes; then
1289 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1290 else
1291 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1292 # libraries were built with DECnet support. And karl@cs.umb.edu says
1293 # the Alpha needs dnet_stub (dnet does not exist).
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001294 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001295echo "configure:1296: checking for dnet_ntoa in -ldnet" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001296ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001297if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001298 echo $ac_n "(cached) $ac_c" 1>&6
1299else
1300 ac_save_LIBS="$LIBS"
1301LIBS="-ldnet $LIBS"
1302cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001303#line 1304 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001304#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001305/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001306/* We use char because int might match the return type of a gcc2
1307 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001308char dnet_ntoa();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001309
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001310int main() {
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001311dnet_ntoa()
1312; return 0; }
1313EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001314if { (eval echo configure:1315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001315 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001316 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001317else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001318 echo "configure: failed program was:" >&5
1319 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001320 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001321 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001322fi
1323rm -f conftest*
1324LIBS="$ac_save_LIBS"
1325
1326fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001327if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001328 echo "$ac_t""yes" 1>&6
1329 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1330else
1331 echo "$ac_t""no" 1>&6
1332fi
1333
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001334 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001335 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001336echo "configure:1337: checking for dnet_ntoa in -ldnet_stub" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001337ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001338if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001339 echo $ac_n "(cached) $ac_c" 1>&6
1340else
1341 ac_save_LIBS="$LIBS"
1342LIBS="-ldnet_stub $LIBS"
1343cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001344#line 1345 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001345#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001346/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001347/* We use char because int might match the return type of a gcc2
1348 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001349char dnet_ntoa();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001350
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001351int main() {
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001352dnet_ntoa()
1353; return 0; }
1354EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001355if { (eval echo configure:1356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001356 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001357 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001358else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001359 echo "configure: failed program was:" >&5
1360 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001361 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001362 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001363fi
1364rm -f conftest*
1365LIBS="$ac_save_LIBS"
1366
1367fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001368if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001369 echo "$ac_t""yes" 1>&6
1370 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1371else
1372 echo "$ac_t""no" 1>&6
1373fi
1374
1375 fi
1376
1377 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1378 # to get the SysV transport functions.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001379 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1380 # needs -lnsl.
1381 # The nsl library prevents programs from opening the X display
1382 # on Irix 5.2, according to dickey@clark.net.
1383 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001384echo "configure:1385: checking for gethostbyname" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001385if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1386 echo $ac_n "(cached) $ac_c" 1>&6
1387else
1388 cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001389#line 1390 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001390#include "confdefs.h"
1391/* System header to define __stub macros and hopefully few prototypes,
1392 which can conflict with char gethostbyname(); below. */
1393#include <assert.h>
1394/* Override any gcc2 internal prototype to avoid an error. */
1395/* We use char because int might match the return type of a gcc2
1396 builtin and then its argument prototype would still apply. */
1397char gethostbyname();
1398
1399int main() {
1400
1401/* The GNU C library defines this for functions which it implements
1402 to always fail with ENOSYS. Some functions are actually named
1403 something starting with __ and the normal name is an alias. */
1404#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1405choke me
1406#else
1407gethostbyname();
1408#endif
1409
1410; return 0; }
1411EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001412if { (eval echo configure:1413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001413 rm -rf conftest*
1414 eval "ac_cv_func_gethostbyname=yes"
1415else
1416 echo "configure: failed program was:" >&5
1417 cat conftest.$ac_ext >&5
1418 rm -rf conftest*
1419 eval "ac_cv_func_gethostbyname=no"
1420fi
1421rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001422fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001423
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001424if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1425 echo "$ac_t""yes" 1>&6
1426 :
1427else
1428 echo "$ac_t""no" 1>&6
1429fi
1430
1431 if test $ac_cv_func_gethostbyname = no; then
1432 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001433echo "configure:1434: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001434ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001435if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001436 echo $ac_n "(cached) $ac_c" 1>&6
1437else
1438 ac_save_LIBS="$LIBS"
1439LIBS="-lnsl $LIBS"
1440cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001441#line 1442 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001442#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001443/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001444/* We use char because int might match the return type of a gcc2
1445 builtin and then its argument prototype would still apply. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001446char gethostbyname();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001447
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001448int main() {
1449gethostbyname()
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001450; return 0; }
1451EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001452if { (eval echo configure:1453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001453 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001454 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001455else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001456 echo "configure: failed program was:" >&5
1457 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001458 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001459 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001460fi
1461rm -f conftest*
1462LIBS="$ac_save_LIBS"
1463
1464fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001465if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001466 echo "$ac_t""yes" 1>&6
1467 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1468else
1469 echo "$ac_t""no" 1>&6
1470fi
1471
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001472 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001473
1474 # lieder@skyler.mavd.honeywell.com says without -lsocket,
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001475 # socket/setsockopt and other routines are undefined under SCO ODT
1476 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1477 # on later versions), says simon@lia.di.epfl.ch: it contains
1478 # gethostby* variants that don't use the nameserver (or something).
1479 # -lsocket must be given before -lnsl if both are needed.
1480 # We assume that if connect needs -lnsl, so does gethostbyname.
1481 echo $ac_n "checking for connect""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001482echo "configure:1483: checking for connect" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001483if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1485else
1486 cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001487#line 1488 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001488#include "confdefs.h"
1489/* System header to define __stub macros and hopefully few prototypes,
1490 which can conflict with char connect(); below. */
1491#include <assert.h>
1492/* Override any gcc2 internal prototype to avoid an error. */
1493/* We use char because int might match the return type of a gcc2
1494 builtin and then its argument prototype would still apply. */
1495char connect();
1496
1497int main() {
1498
1499/* The GNU C library defines this for functions which it implements
1500 to always fail with ENOSYS. Some functions are actually named
1501 something starting with __ and the normal name is an alias. */
1502#if defined (__stub_connect) || defined (__stub___connect)
1503choke me
1504#else
1505connect();
1506#endif
1507
1508; return 0; }
1509EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001510if { (eval echo configure:1511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001511 rm -rf conftest*
1512 eval "ac_cv_func_connect=yes"
1513else
1514 echo "configure: failed program was:" >&5
1515 cat conftest.$ac_ext >&5
1516 rm -rf conftest*
1517 eval "ac_cv_func_connect=no"
1518fi
1519rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001520fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001521
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001522if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1523 echo "$ac_t""yes" 1>&6
1524 :
1525else
1526 echo "$ac_t""no" 1>&6
1527fi
1528
1529 if test $ac_cv_func_connect = no; then
1530 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001531echo "configure:1532: checking for connect in -lsocket" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001532ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001533if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001534 echo $ac_n "(cached) $ac_c" 1>&6
1535else
1536 ac_save_LIBS="$LIBS"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001537LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001538cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001539#line 1540 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001540#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001541/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001542/* We use char because int might match the return type of a gcc2
1543 builtin and then its argument prototype would still apply. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001544char connect();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001545
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001546int main() {
1547connect()
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001548; return 0; }
1549EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001550if { (eval echo configure:1551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001551 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001552 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001553else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001554 echo "configure: failed program was:" >&5
1555 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001556 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001557 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001558fi
1559rm -f conftest*
1560LIBS="$ac_save_LIBS"
1561
1562fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001563if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001564 echo "$ac_t""yes" 1>&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001565 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001566else
1567 echo "$ac_t""no" 1>&6
1568fi
1569
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001570 fi
1571
1572 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1573 echo $ac_n "checking for remove""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001574echo "configure:1575: checking for remove" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001575if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1576 echo $ac_n "(cached) $ac_c" 1>&6
1577else
1578 cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001579#line 1580 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001580#include "confdefs.h"
1581/* System header to define __stub macros and hopefully few prototypes,
1582 which can conflict with char remove(); below. */
1583#include <assert.h>
1584/* Override any gcc2 internal prototype to avoid an error. */
1585/* We use char because int might match the return type of a gcc2
1586 builtin and then its argument prototype would still apply. */
1587char remove();
1588
1589int main() {
1590
1591/* The GNU C library defines this for functions which it implements
1592 to always fail with ENOSYS. Some functions are actually named
1593 something starting with __ and the normal name is an alias. */
1594#if defined (__stub_remove) || defined (__stub___remove)
1595choke me
1596#else
1597remove();
1598#endif
1599
1600; return 0; }
1601EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001602if { (eval echo configure:1603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001603 rm -rf conftest*
1604 eval "ac_cv_func_remove=yes"
1605else
1606 echo "configure: failed program was:" >&5
1607 cat conftest.$ac_ext >&5
1608 rm -rf conftest*
1609 eval "ac_cv_func_remove=no"
1610fi
1611rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001612fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001613
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001614if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1615 echo "$ac_t""yes" 1>&6
1616 :
1617else
1618 echo "$ac_t""no" 1>&6
1619fi
1620
1621 if test $ac_cv_func_remove = no; then
1622 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001623echo "configure:1624: checking for remove in -lposix" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001624ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001625if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1626 echo $ac_n "(cached) $ac_c" 1>&6
1627else
1628 ac_save_LIBS="$LIBS"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001629LIBS="-lposix $LIBS"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001630cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001631#line 1632 "configure"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001632#include "confdefs.h"
1633/* Override any gcc2 internal prototype to avoid an error. */
1634/* We use char because int might match the return type of a gcc2
1635 builtin and then its argument prototype would still apply. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001636char remove();
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001637
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001638int main() {
1639remove()
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001640; return 0; }
1641EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001642if { (eval echo configure:1643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001643 rm -rf conftest*
1644 eval "ac_cv_lib_$ac_lib_var=yes"
1645else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001646 echo "configure: failed program was:" >&5
1647 cat conftest.$ac_ext >&5
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001648 rm -rf conftest*
1649 eval "ac_cv_lib_$ac_lib_var=no"
1650fi
1651rm -f conftest*
1652LIBS="$ac_save_LIBS"
1653
1654fi
1655if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1656 echo "$ac_t""yes" 1>&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001657 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001658else
1659 echo "$ac_t""no" 1>&6
1660fi
1661
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001662 fi
1663
1664 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1665 echo $ac_n "checking for shmat""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001666echo "configure:1667: checking for shmat" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001667if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1668 echo $ac_n "(cached) $ac_c" 1>&6
1669else
1670 cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001671#line 1672 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001672#include "confdefs.h"
1673/* System header to define __stub macros and hopefully few prototypes,
1674 which can conflict with char shmat(); below. */
1675#include <assert.h>
1676/* Override any gcc2 internal prototype to avoid an error. */
1677/* We use char because int might match the return type of a gcc2
1678 builtin and then its argument prototype would still apply. */
1679char shmat();
1680
1681int main() {
1682
1683/* The GNU C library defines this for functions which it implements
1684 to always fail with ENOSYS. Some functions are actually named
1685 something starting with __ and the normal name is an alias. */
1686#if defined (__stub_shmat) || defined (__stub___shmat)
1687choke me
1688#else
1689shmat();
1690#endif
1691
1692; return 0; }
1693EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001694if { (eval echo configure:1695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001695 rm -rf conftest*
1696 eval "ac_cv_func_shmat=yes"
1697else
1698 echo "configure: failed program was:" >&5
1699 cat conftest.$ac_ext >&5
1700 rm -rf conftest*
1701 eval "ac_cv_func_shmat=no"
1702fi
1703rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001704fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001705
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001706if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1707 echo "$ac_t""yes" 1>&6
1708 :
1709else
1710 echo "$ac_t""no" 1>&6
1711fi
1712
1713 if test $ac_cv_func_shmat = no; then
1714 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001715echo "configure:1716: checking for shmat in -lipc" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001716ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1717if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1718 echo $ac_n "(cached) $ac_c" 1>&6
1719else
1720 ac_save_LIBS="$LIBS"
1721LIBS="-lipc $LIBS"
1722cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001723#line 1724 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001724#include "confdefs.h"
1725/* Override any gcc2 internal prototype to avoid an error. */
1726/* We use char because int might match the return type of a gcc2
1727 builtin and then its argument prototype would still apply. */
1728char shmat();
1729
1730int main() {
1731shmat()
1732; return 0; }
1733EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001734if { (eval echo configure:1735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001735 rm -rf conftest*
1736 eval "ac_cv_lib_$ac_lib_var=yes"
1737else
1738 echo "configure: failed program was:" >&5
1739 cat conftest.$ac_ext >&5
1740 rm -rf conftest*
1741 eval "ac_cv_lib_$ac_lib_var=no"
1742fi
1743rm -f conftest*
1744LIBS="$ac_save_LIBS"
1745
1746fi
1747if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1748 echo "$ac_t""yes" 1>&6
1749 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1750else
1751 echo "$ac_t""no" 1>&6
1752fi
1753
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001754 fi
1755 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001756
1757 # Check for libraries that X11R6 Xt/Xaw programs need.
1758 ac_save_LDFLAGS="$LDFLAGS"
1759 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1760 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1761 # check for ICE first), but we must link in the order -lSM -lICE or
1762 # we get undefined symbols. So assume we have SM if we have ICE.
1763 # These have to be linked with before -lX11, unlike the other
1764 # libraries we check for below, so use a different variable.
1765 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1766 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001767echo "configure:1768: checking for IceConnectionNumber in -lICE" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001768ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1769if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1770 echo $ac_n "(cached) $ac_c" 1>&6
1771else
1772 ac_save_LIBS="$LIBS"
Eric Pouech18ad24a2000-01-16 22:16:33 +00001773LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001774cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001775#line 1776 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001776#include "confdefs.h"
1777/* Override any gcc2 internal prototype to avoid an error. */
1778/* We use char because int might match the return type of a gcc2
1779 builtin and then its argument prototype would still apply. */
1780char IceConnectionNumber();
1781
1782int main() {
1783IceConnectionNumber()
1784; return 0; }
1785EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001786if { (eval echo configure:1787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001787 rm -rf conftest*
1788 eval "ac_cv_lib_$ac_lib_var=yes"
1789else
1790 echo "configure: failed program was:" >&5
1791 cat conftest.$ac_ext >&5
1792 rm -rf conftest*
1793 eval "ac_cv_lib_$ac_lib_var=no"
1794fi
1795rm -f conftest*
1796LIBS="$ac_save_LIBS"
1797
1798fi
1799if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1800 echo "$ac_t""yes" 1>&6
1801 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1802else
1803 echo "$ac_t""no" 1>&6
1804fi
1805
1806 LDFLAGS="$ac_save_LDFLAGS"
1807
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001808fi
1809
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001810for ac_prog in 'bison -y' byacc
1811do
1812# Extract the first word of "$ac_prog", so it can be a program name with args.
1813set dummy $ac_prog; ac_word=$2
1814echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001815echo "configure:1816: checking for $ac_word" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001816if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1818else
1819 if test -n "$YACC"; then
1820 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1821else
Eric Pouech18ad24a2000-01-16 22:16:33 +00001822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1823 ac_dummy="$PATH"
1824 for ac_dir in $ac_dummy; do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001825 test -z "$ac_dir" && ac_dir=.
1826 if test -f $ac_dir/$ac_word; then
1827 ac_cv_prog_YACC="$ac_prog"
1828 break
1829 fi
1830 done
1831 IFS="$ac_save_ifs"
1832fi
1833fi
1834YACC="$ac_cv_prog_YACC"
1835if test -n "$YACC"; then
1836 echo "$ac_t""$YACC" 1>&6
1837else
1838 echo "$ac_t""no" 1>&6
1839fi
1840
1841test -n "$YACC" && break
1842done
1843test -n "$YACC" || YACC="yacc"
1844
1845# Extract the first word of "flex", so it can be a program name with args.
1846set dummy flex; ac_word=$2
1847echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001848echo "configure:1849: checking for $ac_word" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001849if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1850 echo $ac_n "(cached) $ac_c" 1>&6
1851else
1852 if test -n "$LEX"; then
1853 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1854else
Eric Pouech18ad24a2000-01-16 22:16:33 +00001855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1856 ac_dummy="$PATH"
1857 for ac_dir in $ac_dummy; do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001858 test -z "$ac_dir" && ac_dir=.
1859 if test -f $ac_dir/$ac_word; then
1860 ac_cv_prog_LEX="flex"
1861 break
1862 fi
1863 done
1864 IFS="$ac_save_ifs"
1865 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1866fi
1867fi
1868LEX="$ac_cv_prog_LEX"
1869if test -n "$LEX"; then
1870 echo "$ac_t""$LEX" 1>&6
1871else
1872 echo "$ac_t""no" 1>&6
1873fi
1874
1875if test -z "$LEXLIB"
1876then
1877 case "$LEX" in
1878 flex*) ac_lib=fl ;;
1879 *) ac_lib=l ;;
1880 esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001881 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001882echo "configure:1883: checking for yywrap in -l$ac_lib" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001883ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001884if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001885 echo $ac_n "(cached) $ac_c" 1>&6
1886else
1887 ac_save_LIBS="$LIBS"
1888LIBS="-l$ac_lib $LIBS"
1889cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001890#line 1891 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001891#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001892/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001893/* We use char because int might match the return type of a gcc2
1894 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001895char yywrap();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001896
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001897int main() {
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001898yywrap()
1899; return 0; }
1900EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001901if { (eval echo configure:1902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001902 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001903 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001904else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001905 echo "configure: failed program was:" >&5
1906 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001907 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001908 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001909fi
1910rm -f conftest*
1911LIBS="$ac_save_LIBS"
1912
1913fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001914if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001915 echo "$ac_t""yes" 1>&6
1916 LEXLIB="-l$ac_lib"
1917else
1918 echo "$ac_t""no" 1>&6
1919fi
1920
1921fi
1922
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001923# Extract the first word of "ranlib", so it can be a program name with args.
1924set dummy ranlib; ac_word=$2
1925echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001926echo "configure:1927: checking for $ac_word" >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001927if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1928 echo $ac_n "(cached) $ac_c" 1>&6
1929else
1930 if test -n "$RANLIB"; then
1931 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1932else
Eric Pouech18ad24a2000-01-16 22:16:33 +00001933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1934 ac_dummy="$PATH"
1935 for ac_dir in $ac_dummy; do
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001936 test -z "$ac_dir" && ac_dir=.
1937 if test -f $ac_dir/$ac_word; then
1938 ac_cv_prog_RANLIB="ranlib"
1939 break
1940 fi
1941 done
1942 IFS="$ac_save_ifs"
1943 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001944fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001945fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001946RANLIB="$ac_cv_prog_RANLIB"
1947if test -n "$RANLIB"; then
1948 echo "$ac_t""$RANLIB" 1>&6
1949else
1950 echo "$ac_t""no" 1>&6
1951fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001952
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001953# Find a good install program. We prefer a C program (faster),
1954# so one script is as good as another. But avoid the broken or
1955# incompatible versions:
1956# SysV /etc/install, /usr/sbin/install
1957# SunOS /usr/etc/install
1958# IRIX /sbin/install
1959# AIX /bin/install
Eric Pouech18ad24a2000-01-16 22:16:33 +00001960# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001961# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1962# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1963# ./install, which can be erroneously created by make from ./install.sh.
1964echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001965echo "configure:1966: checking for a BSD compatible install" >&5
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001966if test -z "$INSTALL"; then
1967if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1968 echo $ac_n "(cached) $ac_c" 1>&6
1969else
Eric Pouech18ad24a2000-01-16 22:16:33 +00001970 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001971 for ac_dir in $PATH; do
1972 # Account for people who put trailing slashes in PATH elements.
1973 case "$ac_dir/" in
1974 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1975 *)
1976 # OSF1 and SCO ODT 3.0 have their own names for install.
Eric Pouech18ad24a2000-01-16 22:16:33 +00001977 # Don't use installbsd from OSF since it installs stuff as root
1978 # by default.
1979 for ac_prog in ginstall scoinst install; do
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001980 if test -f $ac_dir/$ac_prog; then
1981 if test $ac_prog = install &&
1982 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1983 # AIX install. It has an incompatible calling convention.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001984 :
1985 else
1986 ac_cv_path_install="$ac_dir/$ac_prog -c"
1987 break 2
1988 fi
1989 fi
1990 done
1991 ;;
1992 esac
1993 done
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001994 IFS="$ac_save_IFS"
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001995
1996fi
1997 if test "${ac_cv_path_install+set}" = set; then
1998 INSTALL="$ac_cv_path_install"
1999 else
2000 # As a last resort, use the slow shell script. We don't cache a
2001 # path for INSTALL within a source directory, because that will
2002 # break other packages using the cache if that directory is
2003 # removed, or if the path is relative.
2004 INSTALL="$ac_install_sh"
2005 fi
2006fi
2007echo "$ac_t""$INSTALL" 1>&6
2008
2009# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2010# It thinks the first close brace ends the variable substitution.
2011test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2012
Eric Pouech18ad24a2000-01-16 22:16:33 +00002013test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2014
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002015test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2016
Alexandre Julliard641ee761997-08-04 16:34:36 +00002017echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002018echo "configure:2019: checking whether ln -s works" >&5
Alexandre Julliard641ee761997-08-04 16:34:36 +00002019if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2020 echo $ac_n "(cached) $ac_c" 1>&6
2021else
2022 rm -f conftestdata
2023if ln -s X conftestdata 2>/dev/null
2024then
2025 rm -f conftestdata
2026 ac_cv_prog_LN_S="ln -s"
2027else
2028 ac_cv_prog_LN_S=ln
2029fi
2030fi
2031LN_S="$ac_cv_prog_LN_S"
2032if test "$ac_cv_prog_LN_S" = "ln -s"; then
2033 echo "$ac_t""yes" 1>&6
2034else
2035 echo "$ac_t""no" 1>&6
2036fi
2037
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00002038# Extract the first word of "c2man", so it can be a program name with args.
2039set dummy c2man; ac_word=$2
2040echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002041echo "configure:2042: checking for $ac_word" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00002042if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
2043 echo $ac_n "(cached) $ac_c" 1>&6
2044else
2045 if test -n "$C2MAN"; then
2046 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
2047else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002048 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2049 ac_dummy="$PATH"
2050 for ac_dir in $ac_dummy; do
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00002051 test -z "$ac_dir" && ac_dir=.
2052 if test -f $ac_dir/$ac_word; then
2053 ac_cv_prog_C2MAN="c2man"
2054 break
2055 fi
2056 done
2057 IFS="$ac_save_ifs"
2058 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="true"
2059fi
2060fi
2061C2MAN="$ac_cv_prog_C2MAN"
2062if test -n "$C2MAN"; then
2063 echo "$ac_t""$C2MAN" 1>&6
2064else
2065 echo "$ac_t""no" 1>&6
2066fi
2067
James Juranffe6b761999-06-12 08:21:57 +00002068# Extract the first word of "ldconfig", so it can be a program name with args.
2069set dummy ldconfig; ac_word=$2
2070echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002071echo "configure:2072: checking for $ac_word" >&5
James Juranffe6b761999-06-12 08:21:57 +00002072if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2074else
2075 case "$LDCONFIG" in
2076 /*)
2077 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2078 ;;
Eric Pouech18ad24a2000-01-16 22:16:33 +00002079 ?:/*)
2080 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
2081 ;;
James Juranffe6b761999-06-12 08:21:57 +00002082 *)
Eric Pouech18ad24a2000-01-16 22:16:33 +00002083 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2084 ac_dummy="/sbin:/usr/sbin:$PATH"
2085 for ac_dir in $ac_dummy; do
James Juranffe6b761999-06-12 08:21:57 +00002086 test -z "$ac_dir" && ac_dir=.
2087 if test -f $ac_dir/$ac_word; then
2088 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2089 break
2090 fi
2091 done
2092 IFS="$ac_save_ifs"
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00002093 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00002094 ;;
2095esac
2096fi
2097LDCONFIG="$ac_cv_path_LDCONFIG"
2098if test -n "$LDCONFIG"; then
2099 echo "$ac_t""$LDCONFIG" 1>&6
2100else
2101 echo "$ac_t""no" 1>&6
2102fi
2103
Alexandre Julliard02e90081998-01-04 17:49:09 +00002104
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00002105for ac_prog in lclint lint
2106do
2107# Extract the first word of "$ac_prog", so it can be a program name with args.
2108set dummy $ac_prog; ac_word=$2
2109echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002110echo "configure:2111: checking for $ac_word" >&5
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00002111if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2112 echo $ac_n "(cached) $ac_c" 1>&6
2113else
2114 if test -n "$LINT"; then
2115 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2116else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002117 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2118 ac_dummy="$PATH"
2119 for ac_dir in $ac_dummy; do
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00002120 test -z "$ac_dir" && ac_dir=.
2121 if test -f $ac_dir/$ac_word; then
2122 ac_cv_prog_LINT="$ac_prog"
2123 break
2124 fi
2125 done
2126 IFS="$ac_save_ifs"
2127fi
2128fi
2129LINT="$ac_cv_prog_LINT"
2130if test -n "$LINT"; then
2131 echo "$ac_t""$LINT" 1>&6
2132else
2133 echo "$ac_t""no" 1>&6
2134fi
2135
2136test -n "$LINT" && break
2137done
2138
2139if test "$LINT" = "lint"
2140then
2141 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2142 fi
2143
2144
2145
Alexandre Julliard02e90081998-01-04 17:49:09 +00002146
Howard Abrams13277481999-07-10 13:16:29 +00002147echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002148echo "configure:2149: checking for sqrt in -lm" >&5
Howard Abrams13277481999-07-10 13:16:29 +00002149ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2150if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2151 echo $ac_n "(cached) $ac_c" 1>&6
2152else
2153 ac_save_LIBS="$LIBS"
2154LIBS="-lm $LIBS"
2155cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002156#line 2157 "configure"
Howard Abrams13277481999-07-10 13:16:29 +00002157#include "confdefs.h"
2158/* Override any gcc2 internal prototype to avoid an error. */
2159/* We use char because int might match the return type of a gcc2
2160 builtin and then its argument prototype would still apply. */
2161char sqrt();
2162
2163int main() {
2164sqrt()
2165; return 0; }
2166EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002167if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Howard Abrams13277481999-07-10 13:16:29 +00002168 rm -rf conftest*
2169 eval "ac_cv_lib_$ac_lib_var=yes"
2170else
2171 echo "configure: failed program was:" >&5
2172 cat conftest.$ac_ext >&5
2173 rm -rf conftest*
2174 eval "ac_cv_lib_$ac_lib_var=no"
2175fi
2176rm -f conftest*
2177LIBS="$ac_save_LIBS"
2178
2179fi
2180if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2181 echo "$ac_t""yes" 1>&6
2182 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2183 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2184 cat >> confdefs.h <<EOF
2185#define $ac_tr_lib 1
2186EOF
2187
2188 LIBS="-lm $LIBS"
2189
2190else
2191 echo "$ac_t""no" 1>&6
2192fi
2193
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002194echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002195echo "configure:2196: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002196ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002197if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliard902da691995-11-05 14:39:02 +00002198 echo $ac_n "(cached) $ac_c" 1>&6
2199else
2200 ac_save_LIBS="$LIBS"
2201LIBS="-li386 $LIBS"
2202cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002203#line 2204 "configure"
Alexandre Julliard902da691995-11-05 14:39:02 +00002204#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002205/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002206/* We use char because int might match the return type of a gcc2
2207 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002208char i386_set_ldt();
Alexandre Julliard902da691995-11-05 14:39:02 +00002209
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002210int main() {
Alexandre Julliard902da691995-11-05 14:39:02 +00002211i386_set_ldt()
2212; return 0; }
2213EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002214if { (eval echo configure:2215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard902da691995-11-05 14:39:02 +00002215 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002216 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliard902da691995-11-05 14:39:02 +00002217else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002218 echo "configure: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
Alexandre Julliard902da691995-11-05 14:39:02 +00002220 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002221 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliard902da691995-11-05 14:39:02 +00002222fi
2223rm -f conftest*
2224LIBS="$ac_save_LIBS"
2225
2226fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002227if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliard902da691995-11-05 14:39:02 +00002228 echo "$ac_t""yes" 1>&6
Alexandre Julliard02e90081998-01-04 17:49:09 +00002229 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2230 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2231 cat >> confdefs.h <<EOF
2232#define $ac_tr_lib 1
2233EOF
2234
2235 LIBS="-li386 $LIBS"
2236
2237else
2238 echo "$ac_t""no" 1>&6
2239fi
2240
Todd Vierlingecc76691998-12-15 17:49:02 +00002241echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002242echo "configure:2243: checking for _oss_ioctl in -lossaudio" >&5
Todd Vierlingecc76691998-12-15 17:49:02 +00002243ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2244if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2245 echo $ac_n "(cached) $ac_c" 1>&6
2246else
2247 ac_save_LIBS="$LIBS"
2248LIBS="-lossaudio $LIBS"
2249cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002250#line 2251 "configure"
Todd Vierlingecc76691998-12-15 17:49:02 +00002251#include "confdefs.h"
2252/* Override any gcc2 internal prototype to avoid an error. */
2253/* We use char because int might match the return type of a gcc2
2254 builtin and then its argument prototype would still apply. */
2255char _oss_ioctl();
2256
2257int main() {
2258_oss_ioctl()
2259; return 0; }
2260EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002261if { (eval echo configure:2262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Todd Vierlingecc76691998-12-15 17:49:02 +00002262 rm -rf conftest*
2263 eval "ac_cv_lib_$ac_lib_var=yes"
2264else
2265 echo "configure: failed program was:" >&5
2266 cat conftest.$ac_ext >&5
2267 rm -rf conftest*
2268 eval "ac_cv_lib_$ac_lib_var=no"
2269fi
2270rm -f conftest*
2271LIBS="$ac_save_LIBS"
2272
2273fi
2274if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2275 echo "$ac_t""yes" 1>&6
2276 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2277 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2278 cat >> confdefs.h <<EOF
2279#define $ac_tr_lib 1
2280EOF
2281
2282 LIBS="-lossaudio $LIBS"
2283
2284else
2285 echo "$ac_t""no" 1>&6
2286fi
2287
Alexandre Julliard02e90081998-01-04 17:49:09 +00002288echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002289echo "configure:2290: checking for iswalnum in -lw" >&5
Alexandre Julliard02e90081998-01-04 17:49:09 +00002290ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2291if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2292 echo $ac_n "(cached) $ac_c" 1>&6
2293else
2294 ac_save_LIBS="$LIBS"
2295LIBS="-lw $LIBS"
2296cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002297#line 2298 "configure"
Alexandre Julliard02e90081998-01-04 17:49:09 +00002298#include "confdefs.h"
2299/* Override any gcc2 internal prototype to avoid an error. */
2300/* We use char because int might match the return type of a gcc2
2301 builtin and then its argument prototype would still apply. */
2302char iswalnum();
2303
2304int main() {
2305iswalnum()
2306; return 0; }
2307EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002308if { (eval echo configure:2309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard02e90081998-01-04 17:49:09 +00002309 rm -rf conftest*
2310 eval "ac_cv_lib_$ac_lib_var=yes"
2311else
2312 echo "configure: failed program was:" >&5
2313 cat conftest.$ac_ext >&5
2314 rm -rf conftest*
2315 eval "ac_cv_lib_$ac_lib_var=no"
2316fi
2317rm -f conftest*
2318LIBS="$ac_save_LIBS"
2319
2320fi
2321if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2322 echo "$ac_t""yes" 1>&6
2323 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2324 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2325 cat >> confdefs.h <<EOF
2326#define $ac_tr_lib 1
2327EOF
2328
2329 LIBS="-lw $LIBS"
2330
2331else
2332 echo "$ac_t""no" 1>&6
2333fi
2334
Patrik Stridvallea584721998-11-01 16:22:07 +00002335for ac_func in gethostbyname
2336do
2337echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002338echo "configure:2339: checking for $ac_func" >&5
Patrik Stridvallea584721998-11-01 16:22:07 +00002339if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2340 echo $ac_n "(cached) $ac_c" 1>&6
2341else
2342 cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002343#line 2344 "configure"
Patrik Stridvallea584721998-11-01 16:22:07 +00002344#include "confdefs.h"
2345/* System header to define __stub macros and hopefully few prototypes,
2346 which can conflict with char $ac_func(); below. */
2347#include <assert.h>
2348/* Override any gcc2 internal prototype to avoid an error. */
2349/* We use char because int might match the return type of a gcc2
2350 builtin and then its argument prototype would still apply. */
2351char $ac_func();
2352
2353int main() {
2354
2355/* The GNU C library defines this for functions which it implements
2356 to always fail with ENOSYS. Some functions are actually named
2357 something starting with __ and the normal name is an alias. */
2358#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2359choke me
2360#else
2361$ac_func();
2362#endif
2363
2364; return 0; }
2365EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002366if { (eval echo configure:2367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvallea584721998-11-01 16:22:07 +00002367 rm -rf conftest*
2368 eval "ac_cv_func_$ac_func=yes"
2369else
2370 echo "configure: failed program was:" >&5
2371 cat conftest.$ac_ext >&5
2372 rm -rf conftest*
2373 eval "ac_cv_func_$ac_func=no"
2374fi
2375rm -f conftest*
2376fi
2377
2378if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2379 echo "$ac_t""yes" 1>&6
2380 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2381 cat >> confdefs.h <<EOF
2382#define $ac_tr_func 1
2383EOF
2384
2385else
2386 echo "$ac_t""no" 1>&6
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002387echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002388echo "configure:2389: checking for gethostbyname in -lnsl" >&5
Patrik Stridvallea584721998-11-01 16:22:07 +00002389ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2390if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2391 echo $ac_n "(cached) $ac_c" 1>&6
2392else
2393 ac_save_LIBS="$LIBS"
Ron Recorde977d6c1999-09-05 12:32:05 +00002394LIBS="-lnsl -lsocket $LIBS"
Patrik Stridvallea584721998-11-01 16:22:07 +00002395cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002396#line 2397 "configure"
Patrik Stridvallea584721998-11-01 16:22:07 +00002397#include "confdefs.h"
2398/* Override any gcc2 internal prototype to avoid an error. */
2399/* We use char because int might match the return type of a gcc2
2400 builtin and then its argument prototype would still apply. */
2401char gethostbyname();
2402
2403int main() {
2404gethostbyname()
2405; return 0; }
2406EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002407if { (eval echo configure:2408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvallea584721998-11-01 16:22:07 +00002408 rm -rf conftest*
2409 eval "ac_cv_lib_$ac_lib_var=yes"
2410else
2411 echo "configure: failed program was:" >&5
2412 cat conftest.$ac_ext >&5
2413 rm -rf conftest*
2414 eval "ac_cv_lib_$ac_lib_var=no"
2415fi
2416rm -f conftest*
2417LIBS="$ac_save_LIBS"
2418
2419fi
2420if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2421 echo "$ac_t""yes" 1>&6
Ron Recorde977d6c1999-09-05 12:32:05 +00002422 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Patrik Stridvallea584721998-11-01 16:22:07 +00002423else
2424 echo "$ac_t""no" 1>&6
Ron Recorde977d6c1999-09-05 12:32:05 +00002425echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002426echo "configure:2427: checking for gethostbyname in -lsocket" >&5
Ron Recorde977d6c1999-09-05 12:32:05 +00002427ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
2428if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2429 echo $ac_n "(cached) $ac_c" 1>&6
2430else
2431 ac_save_LIBS="$LIBS"
2432LIBS="-lsocket -lnsl $LIBS"
2433cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002434#line 2435 "configure"
Ron Recorde977d6c1999-09-05 12:32:05 +00002435#include "confdefs.h"
2436/* Override any gcc2 internal prototype to avoid an error. */
2437/* We use char because int might match the return type of a gcc2
2438 builtin and then its argument prototype would still apply. */
2439char gethostbyname();
2440
2441int main() {
2442gethostbyname()
2443; return 0; }
2444EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002445if { (eval echo configure:2446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ron Recorde977d6c1999-09-05 12:32:05 +00002446 rm -rf conftest*
2447 eval "ac_cv_lib_$ac_lib_var=yes"
2448else
2449 echo "configure: failed program was:" >&5
2450 cat conftest.$ac_ext >&5
2451 rm -rf conftest*
2452 eval "ac_cv_lib_$ac_lib_var=no"
2453fi
2454rm -f conftest*
2455LIBS="$ac_save_LIBS"
2456
2457fi
2458if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2459 echo "$ac_t""yes" 1>&6
2460 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2461else
2462 echo "$ac_t""no" 1>&6
2463fi
2464
Patrik Stridvallea584721998-11-01 16:22:07 +00002465fi
2466
2467fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002468done
2469
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002470for ac_func in connect
2471do
2472echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002473echo "configure:2474: checking for $ac_func" >&5
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002474if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2476else
2477 cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002478#line 2479 "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002479#include "confdefs.h"
2480/* System header to define __stub macros and hopefully few prototypes,
2481 which can conflict with char $ac_func(); below. */
2482#include <assert.h>
2483/* Override any gcc2 internal prototype to avoid an error. */
2484/* We use char because int might match the return type of a gcc2
2485 builtin and then its argument prototype would still apply. */
2486char $ac_func();
2487
2488int main() {
2489
2490/* The GNU C library defines this for functions which it implements
2491 to always fail with ENOSYS. Some functions are actually named
2492 something starting with __ and the normal name is an alias. */
2493#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2494choke me
2495#else
2496$ac_func();
2497#endif
2498
2499; return 0; }
2500EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002501if { (eval echo configure:2502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002502 rm -rf conftest*
2503 eval "ac_cv_func_$ac_func=yes"
2504else
2505 echo "configure: failed program was:" >&5
2506 cat conftest.$ac_ext >&5
2507 rm -rf conftest*
2508 eval "ac_cv_func_$ac_func=no"
2509fi
2510rm -f conftest*
2511fi
2512
2513if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2514 echo "$ac_t""yes" 1>&6
2515 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2516 cat >> confdefs.h <<EOF
2517#define $ac_tr_func 1
2518EOF
2519
2520else
2521 echo "$ac_t""no" 1>&6
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002522echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002523echo "configure:2524: checking for connect in -lsocket" >&5
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002524ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2525if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2526 echo $ac_n "(cached) $ac_c" 1>&6
2527else
2528 ac_save_LIBS="$LIBS"
2529LIBS="-lsocket $LIBS"
2530cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002531#line 2532 "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002532#include "confdefs.h"
2533/* Override any gcc2 internal prototype to avoid an error. */
2534/* We use char because int might match the return type of a gcc2
2535 builtin and then its argument prototype would still apply. */
2536char connect();
2537
2538int main() {
2539connect()
2540; return 0; }
2541EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002542if { (eval echo configure:2543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002543 rm -rf conftest*
2544 eval "ac_cv_lib_$ac_lib_var=yes"
2545else
2546 echo "configure: failed program was:" >&5
2547 cat conftest.$ac_ext >&5
2548 rm -rf conftest*
2549 eval "ac_cv_lib_$ac_lib_var=no"
2550fi
2551rm -f conftest*
2552LIBS="$ac_save_LIBS"
2553
2554fi
2555if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2556 echo "$ac_t""yes" 1>&6
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002557 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002558 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2559 cat >> confdefs.h <<EOF
2560#define $ac_tr_lib 1
2561EOF
2562
2563 LIBS="-lsocket $LIBS"
2564
2565else
2566 echo "$ac_t""no" 1>&6
2567fi
2568
2569fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002570done
2571
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00002572echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002573echo "configure:2574: checking for setrunelocale in -lxpg4" >&5
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00002574ac_lib_var=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2575if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2576 echo $ac_n "(cached) $ac_c" 1>&6
2577else
2578 ac_save_LIBS="$LIBS"
2579LIBS="-lxpg4 $LIBS"
2580cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002581#line 2582 "configure"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00002582#include "confdefs.h"
2583/* Override any gcc2 internal prototype to avoid an error. */
2584/* We use char because int might match the return type of a gcc2
2585 builtin and then its argument prototype would still apply. */
2586char setrunelocale();
2587
2588int main() {
2589setrunelocale()
2590; return 0; }
2591EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002592if { (eval echo configure:2593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00002593 rm -rf conftest*
2594 eval "ac_cv_lib_$ac_lib_var=yes"
2595else
2596 echo "configure: failed program was:" >&5
2597 cat conftest.$ac_ext >&5
2598 rm -rf conftest*
2599 eval "ac_cv_lib_$ac_lib_var=no"
2600fi
2601rm -f conftest*
2602LIBS="$ac_save_LIBS"
2603
2604fi
2605if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2606 echo "$ac_t""yes" 1>&6
2607 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2608 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2609 cat >> confdefs.h <<EOF
2610#define $ac_tr_lib 1
2611EOF
2612
2613 LIBS="-lxpg4 $LIBS"
2614
2615else
2616 echo "$ac_t""no" 1>&6
2617fi
2618
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00002619echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002620echo "configure:2621: checking for mmap in -lmmap" >&5
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00002621ac_lib_var=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2622if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2623 echo $ac_n "(cached) $ac_c" 1>&6
2624else
2625 ac_save_LIBS="$LIBS"
2626LIBS="-lmmap $LIBS"
2627cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002628#line 2629 "configure"
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00002629#include "confdefs.h"
2630/* Override any gcc2 internal prototype to avoid an error. */
2631/* We use char because int might match the return type of a gcc2
2632 builtin and then its argument prototype would still apply. */
2633char mmap();
2634
2635int main() {
2636mmap()
2637; return 0; }
2638EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002639if { (eval echo configure:2640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00002640 rm -rf conftest*
2641 eval "ac_cv_lib_$ac_lib_var=yes"
2642else
2643 echo "configure: failed program was:" >&5
2644 cat conftest.$ac_ext >&5
2645 rm -rf conftest*
2646 eval "ac_cv_lib_$ac_lib_var=no"
2647fi
2648rm -f conftest*
2649LIBS="$ac_save_LIBS"
2650
2651fi
2652if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2653 echo "$ac_t""yes" 1>&6
2654 ac_tr_lib=HAVE_LIB`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2655 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2656 cat >> confdefs.h <<EOF
2657#define $ac_tr_lib 1
2658EOF
2659
2660 LIBS="-lmmap $LIBS"
2661
2662else
2663 echo "$ac_t""no" 1>&6
2664fi
2665
Marcus Meissner2d7be871999-12-05 23:06:40 +00002666for ac_func in openpty
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002667do
2668echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002669echo "configure:2670: checking for $ac_func" >&5
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002670if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2672else
2673 cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002674#line 2675 "configure"
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002675#include "confdefs.h"
2676/* System header to define __stub macros and hopefully few prototypes,
2677 which can conflict with char $ac_func(); below. */
2678#include <assert.h>
2679/* Override any gcc2 internal prototype to avoid an error. */
2680/* We use char because int might match the return type of a gcc2
2681 builtin and then its argument prototype would still apply. */
2682char $ac_func();
2683
2684int main() {
2685
2686/* The GNU C library defines this for functions which it implements
2687 to always fail with ENOSYS. Some functions are actually named
2688 something starting with __ and the normal name is an alias. */
2689#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2690choke me
2691#else
2692$ac_func();
2693#endif
2694
2695; return 0; }
2696EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002697if { (eval echo configure:2698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissner2d7be871999-12-05 23:06:40 +00002698 rm -rf conftest*
2699 eval "ac_cv_func_$ac_func=yes"
2700else
2701 echo "configure: failed program was:" >&5
2702 cat conftest.$ac_ext >&5
2703 rm -rf conftest*
2704 eval "ac_cv_func_$ac_func=no"
2705fi
2706rm -f conftest*
2707fi
2708
2709if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2710 echo "$ac_t""yes" 1>&6
2711 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2712 cat >> confdefs.h <<EOF
2713#define $ac_tr_func 1
2714EOF
2715
2716else
2717 echo "$ac_t""no" 1>&6
2718echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002719echo "configure:2720: checking for openpty in -lutil" >&5
Marcus Meissner2d7be871999-12-05 23:06:40 +00002720ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2721if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2722 echo $ac_n "(cached) $ac_c" 1>&6
2723else
2724 ac_save_LIBS="$LIBS"
2725LIBS="-lutil $LIBS"
2726cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002727#line 2728 "configure"
Marcus Meissner2d7be871999-12-05 23:06:40 +00002728#include "confdefs.h"
2729/* Override any gcc2 internal prototype to avoid an error. */
2730/* We use char because int might match the return type of a gcc2
2731 builtin and then its argument prototype would still apply. */
2732char openpty();
2733
2734int main() {
2735openpty()
2736; return 0; }
2737EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002738if { (eval echo configure:2739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissner2d7be871999-12-05 23:06:40 +00002739 rm -rf conftest*
2740 eval "ac_cv_lib_$ac_lib_var=yes"
2741else
2742 echo "configure: failed program was:" >&5
2743 cat conftest.$ac_ext >&5
2744 rm -rf conftest*
2745 eval "ac_cv_lib_$ac_lib_var=no"
2746fi
2747rm -f conftest*
2748LIBS="$ac_save_LIBS"
2749
2750fi
2751if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2752 echo "$ac_t""yes" 1>&6
2753 cat >> confdefs.h <<\EOF
2754#define HAVE_OPENPTY 1
2755EOF
2756
2757 LIBS="$LIBS -lutil"
2758
2759else
2760 echo "$ac_t""no" 1>&6
2761fi
2762
2763fi
2764done
2765
2766
2767for ac_hdr in dlfcn.h
2768do
2769ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2770echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002771echo "configure:2772: checking for $ac_hdr" >&5
Marcus Meissner2d7be871999-12-05 23:06:40 +00002772if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2773 echo $ac_n "(cached) $ac_c" 1>&6
2774else
2775 cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002776#line 2777 "configure"
Marcus Meissner2d7be871999-12-05 23:06:40 +00002777#include "confdefs.h"
2778#include <$ac_hdr>
2779EOF
2780ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002781{ (eval echo configure:2782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00002782ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Marcus Meissner2d7be871999-12-05 23:06:40 +00002783if test -z "$ac_err"; then
2784 rm -rf conftest*
2785 eval "ac_cv_header_$ac_safe=yes"
2786else
2787 echo "$ac_err" >&5
2788 echo "configure: failed program was:" >&5
2789 cat conftest.$ac_ext >&5
2790 rm -rf conftest*
2791 eval "ac_cv_header_$ac_safe=no"
2792fi
2793rm -f conftest*
2794fi
2795if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2796 echo "$ac_t""yes" 1>&6
2797 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2798 cat >> confdefs.h <<EOF
2799#define $ac_tr_hdr 1
2800EOF
2801 for ac_func in dlopen
2802do
2803echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002804echo "configure:2805: checking for $ac_func" >&5
Marcus Meissner2d7be871999-12-05 23:06:40 +00002805if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2806 echo $ac_n "(cached) $ac_c" 1>&6
2807else
2808 cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002809#line 2810 "configure"
Marcus Meissner2d7be871999-12-05 23:06:40 +00002810#include "confdefs.h"
2811/* System header to define __stub macros and hopefully few prototypes,
2812 which can conflict with char $ac_func(); below. */
2813#include <assert.h>
2814/* Override any gcc2 internal prototype to avoid an error. */
2815/* We use char because int might match the return type of a gcc2
2816 builtin and then its argument prototype would still apply. */
2817char $ac_func();
2818
2819int main() {
2820
2821/* The GNU C library defines this for functions which it implements
2822 to always fail with ENOSYS. Some functions are actually named
2823 something starting with __ and the normal name is an alias. */
2824#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2825choke me
2826#else
2827$ac_func();
2828#endif
2829
2830; return 0; }
2831EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002832if { (eval echo configure:2833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002833 rm -rf conftest*
2834 eval "ac_cv_func_$ac_func=yes"
2835else
2836 echo "configure: failed program was:" >&5
2837 cat conftest.$ac_ext >&5
2838 rm -rf conftest*
2839 eval "ac_cv_func_$ac_func=no"
2840fi
2841rm -f conftest*
2842fi
2843
2844if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2845 echo "$ac_t""yes" 1>&6
2846 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2847 cat >> confdefs.h <<EOF
2848#define $ac_tr_func 1
2849EOF
2850 cat >> confdefs.h <<\EOF
2851#define HAVE_DL_API 1
2852EOF
2853
2854else
2855 echo "$ac_t""no" 1>&6
Marcus Meissner8220bc91998-10-11 11:10:27 +00002856echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002857echo "configure:2858: checking for dlopen in -ldl" >&5
Marcus Meissner8220bc91998-10-11 11:10:27 +00002858ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2859if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2860 echo $ac_n "(cached) $ac_c" 1>&6
2861else
2862 ac_save_LIBS="$LIBS"
2863LIBS="-ldl $LIBS"
2864cat > conftest.$ac_ext <<EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002865#line 2866 "configure"
Marcus Meissner8220bc91998-10-11 11:10:27 +00002866#include "confdefs.h"
2867/* Override any gcc2 internal prototype to avoid an error. */
2868/* We use char because int might match the return type of a gcc2
2869 builtin and then its argument prototype would still apply. */
2870char dlopen();
2871
2872int main() {
2873dlopen()
2874; return 0; }
2875EOF
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00002876if { (eval echo configure:2877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissner8220bc91998-10-11 11:10:27 +00002877 rm -rf conftest*
2878 eval "ac_cv_lib_$ac_lib_var=yes"
2879else
2880 echo "configure: failed program was:" >&5
2881 cat conftest.$ac_ext >&5
2882 rm -rf conftest*
2883 eval "ac_cv_lib_$ac_lib_var=no"
2884fi
2885rm -f conftest*
2886LIBS="$ac_save_LIBS"
2887
2888fi
2889if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2890 echo "$ac_t""yes" 1>&6
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002891 cat >> confdefs.h <<\EOF
2892#define HAVE_DL_API 1
Marcus Meissner8220bc91998-10-11 11:10:27 +00002893EOF
2894
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002895 LIBS="$LIBS -ldl"
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002896else
2897 echo "$ac_t""no" 1>&6
Alexandre Julliarde1e75372000-04-24 17:17:49 +00002898LIBEXT="a"
2899
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002900fi
2901
2902
2903fi
2904done
2905
Marcus Meissner8220bc91998-10-11 11:10:27 +00002906else
2907 echo "$ac_t""no" 1>&6
Alexandre Julliarde1e75372000-04-24 17:17:49 +00002908LIBEXT="a"
2909
Marcus Meissner8220bc91998-10-11 11:10:27 +00002910fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002911done
Marcus Meissner8220bc91998-10-11 11:10:27 +00002912
Patrik Stridvallea584721998-11-01 16:22:07 +00002913
Marcus Meissner10ad97c2000-04-09 14:30:50 +00002914
Patrik Stridvall2941a212000-04-25 20:34:22 +00002915X_DLLS=""
2916
2917XFILES=""
Marcus Meissner10ad97c2000-04-09 14:30:50 +00002918
2919DGA_SRCS=""
2920
Lionel Ulmer51177f92000-05-01 14:25:49 +00002921DGA2_SRCS=""
2922
Marcus Meissner10ad97c2000-04-09 14:30:50 +00002923MESA_SRCS=""
Patrik Stridvallea584721998-11-01 16:22:07 +00002924if test "$have_x" = "yes"
2925then
Patrik Stridvall24110281999-02-04 10:09:54 +00002926 XLIB="-lXext -lX11"
Ove Kaaven1eb593c1999-02-14 09:34:46 +00002927 ac_save_CPPFLAGS="$CPPFLAGS"
2928 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Patrik Stridvallea584721998-11-01 16:22:07 +00002929
Patrik Stridvall24110281999-02-04 10:09:54 +00002930 for ac_hdr in X11/xpm.h
Lionel Ulmera1d6d241999-01-30 15:54:43 +00002931do
2932ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2933echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00002934echo "configure:2935: checking for $ac_hdr" >&5
Lionel Ulmera1d6d241999-01-30 15:54:43 +00002935if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2936 echo $ac_n "(cached) $ac_c" 1>&6
2937else
2938 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00002939#line 2940 "configure"
Lionel Ulmera1d6d241999-01-30 15:54:43 +00002940#include "confdefs.h"
2941#include <$ac_hdr>
2942EOF
2943ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Lionel Ulmer51177f92000-05-01 14:25:49 +00002944{ (eval echo configure:2945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00002945ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Lionel Ulmera1d6d241999-01-30 15:54:43 +00002946if test -z "$ac_err"; then
2947 rm -rf conftest*
2948 eval "ac_cv_header_$ac_safe=yes"
2949else
2950 echo "$ac_err" >&5
2951 echo "configure: failed program was:" >&5
2952 cat conftest.$ac_ext >&5
2953 rm -rf conftest*
2954 eval "ac_cv_header_$ac_safe=no"
2955fi
2956rm -f conftest*
2957fi
2958if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2959 echo "$ac_t""yes" 1>&6
2960 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2961 cat >> confdefs.h <<EOF
2962#define $ac_tr_hdr 1
2963EOF
2964
2965else
2966 echo "$ac_t""no" 1>&6
2967fi
2968done
2969
Patrik Stridvall24110281999-02-04 10:09:54 +00002970 if test "$ac_cv_header_X11_xpm_h" = "yes"
2971 then
2972 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00002973echo "configure:2974: checking for XpmCreatePixmapFromData in -lXpm" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00002974ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
2975if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2976 echo $ac_n "(cached) $ac_c" 1>&6
2977else
2978 ac_save_LIBS="$LIBS"
Marcus Meissner376ec882000-01-05 03:24:52 +00002979LIBS="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Patrik Stridvall24110281999-02-04 10:09:54 +00002980cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00002981#line 2982 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00002982#include "confdefs.h"
2983/* Override any gcc2 internal prototype to avoid an error. */
2984/* We use char because int might match the return type of a gcc2
2985 builtin and then its argument prototype would still apply. */
2986char XpmCreatePixmapFromData();
2987
2988int main() {
2989XpmCreatePixmapFromData()
2990; return 0; }
2991EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00002992if { (eval echo configure:2993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall24110281999-02-04 10:09:54 +00002993 rm -rf conftest*
2994 eval "ac_cv_lib_$ac_lib_var=yes"
2995else
2996 echo "configure: failed program was:" >&5
2997 cat conftest.$ac_ext >&5
2998 rm -rf conftest*
2999 eval "ac_cv_lib_$ac_lib_var=no"
3000fi
3001rm -f conftest*
3002LIBS="$ac_save_LIBS"
3003
3004fi
3005if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3006 echo "$ac_t""yes" 1>&6
3007 cat >> confdefs.h <<\EOF
3008#define HAVE_LIBXXPM 1
3009EOF
3010 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
3011else
3012 echo "$ac_t""no" 1>&6
3013fi
3014
Marcus Meissnercb99b0e1999-12-20 04:10:06 +00003015 else
3016 echo "When compiling with X support, you need the Xpm library, or"
3017 echo "WINE will not work. This Xpm library is within the following RPM,"
3018 echo "which you need to install:"
3019 echo "Redhat : xpm, xpm-devel"
3020 echo "Caldera OpenLinux : xpm, xpm-devel, xpm-devel-static"
Marcus Meissner284995e2000-03-04 19:21:49 +00003021 echo "SuSE : xpm"
3022 echo "Debian/Corel Linux: xpm4g, xpm4g-dev"
Marcus Meissnercb99b0e1999-12-20 04:10:06 +00003023 echo
3024 echo "Or get the sources from ftp.x.org and all its mirror sites from "
3025 echo "the directory /contrib/libraries."
3026 echo
3027 exit 1
Patrik Stridvall24110281999-02-04 10:09:54 +00003028 fi
3029
Marcus Meissnercb99b0e1999-12-20 04:10:06 +00003030
Patrik Stridvall24110281999-02-04 10:09:54 +00003031 for ac_hdr in X11/Xlib.h X11/extensions/XShm.h
3032do
3033ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3034echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00003035echo "configure:3036: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003036if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3037 echo $ac_n "(cached) $ac_c" 1>&6
3038else
3039 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003040#line 3041 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003041#include "confdefs.h"
3042#include <$ac_hdr>
3043EOF
3044ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Lionel Ulmer51177f92000-05-01 14:25:49 +00003045{ (eval echo configure:3046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003046ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00003047if test -z "$ac_err"; then
3048 rm -rf conftest*
3049 eval "ac_cv_header_$ac_safe=yes"
3050else
3051 echo "$ac_err" >&5
3052 echo "configure: failed program was:" >&5
3053 cat conftest.$ac_ext >&5
3054 rm -rf conftest*
3055 eval "ac_cv_header_$ac_safe=no"
3056fi
3057rm -f conftest*
3058fi
3059if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3060 echo "$ac_t""yes" 1>&6
3061 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3062 cat >> confdefs.h <<EOF
3063#define $ac_tr_hdr 1
3064EOF
3065
3066else
3067 echo "$ac_t""no" 1>&6
3068fi
3069done
3070
3071 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_XShm_h" = "yes"
3072 then
3073 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00003074echo "configure:3075: checking for XShmQueryExtension in -lXext" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003075ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
3076if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3077 echo $ac_n "(cached) $ac_c" 1>&6
3078else
3079 ac_save_LIBS="$LIBS"
Marcus Meissner376ec882000-01-05 03:24:52 +00003080LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Patrik Stridvall24110281999-02-04 10:09:54 +00003081cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003082#line 3083 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003083#include "confdefs.h"
3084/* Override any gcc2 internal prototype to avoid an error. */
3085/* We use char because int might match the return type of a gcc2
3086 builtin and then its argument prototype would still apply. */
3087char XShmQueryExtension();
3088
3089int main() {
3090XShmQueryExtension()
3091; return 0; }
3092EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003093if { (eval echo configure:3094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall24110281999-02-04 10:09:54 +00003094 rm -rf conftest*
3095 eval "ac_cv_lib_$ac_lib_var=yes"
3096else
3097 echo "configure: failed program was:" >&5
3098 cat conftest.$ac_ext >&5
3099 rm -rf conftest*
3100 eval "ac_cv_lib_$ac_lib_var=no"
3101fi
3102rm -f conftest*
3103LIBS="$ac_save_LIBS"
3104
3105fi
3106if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3107 echo "$ac_t""yes" 1>&6
3108 cat >> confdefs.h <<\EOF
3109#define HAVE_LIBXXSHM 1
3110EOF
3111
3112else
3113 echo "$ac_t""no" 1>&6
3114fi
3115
3116 fi
3117 for ac_hdr in X11/Xlib.h X11/extensions/xf86dga.h
3118do
3119ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3120echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00003121echo "configure:3122: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003122if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3123 echo $ac_n "(cached) $ac_c" 1>&6
3124else
3125 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003126#line 3127 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003127#include "confdefs.h"
3128#include <$ac_hdr>
3129EOF
3130ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Lionel Ulmer51177f92000-05-01 14:25:49 +00003131{ (eval echo configure:3132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003132ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00003133if test -z "$ac_err"; then
3134 rm -rf conftest*
3135 eval "ac_cv_header_$ac_safe=yes"
3136else
3137 echo "$ac_err" >&5
3138 echo "configure: failed program was:" >&5
3139 cat conftest.$ac_ext >&5
3140 rm -rf conftest*
3141 eval "ac_cv_header_$ac_safe=no"
3142fi
3143rm -f conftest*
3144fi
3145if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3146 echo "$ac_t""yes" 1>&6
3147 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3148 cat >> confdefs.h <<EOF
3149#define $ac_tr_hdr 1
3150EOF
3151
3152else
3153 echo "$ac_t""no" 1>&6
3154fi
3155done
3156
3157 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
3158 then
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003159 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00003160echo "configure:3161: checking for XDGAQueryExtension in -lXxf86dga" >&5
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003161ac_lib_var=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
Patrik Stridvall24110281999-02-04 10:09:54 +00003162if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3163 echo $ac_n "(cached) $ac_c" 1>&6
3164else
3165 ac_save_LIBS="$LIBS"
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003166LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3167 $LIBS"
Patrik Stridvall24110281999-02-04 10:09:54 +00003168cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003169#line 3170 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003170#include "confdefs.h"
3171/* Override any gcc2 internal prototype to avoid an error. */
3172/* We use char because int might match the return type of a gcc2
3173 builtin and then its argument prototype would still apply. */
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003174char XDGAQueryExtension();
3175
3176int main() {
3177XDGAQueryExtension()
3178; return 0; }
3179EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003180if { (eval echo configure:3181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003181 rm -rf conftest*
3182 eval "ac_cv_lib_$ac_lib_var=yes"
3183else
3184 echo "configure: failed program was:" >&5
3185 cat conftest.$ac_ext >&5
3186 rm -rf conftest*
3187 eval "ac_cv_lib_$ac_lib_var=no"
3188fi
3189rm -f conftest*
3190LIBS="$ac_save_LIBS"
3191
3192fi
3193if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3194 echo "$ac_t""yes" 1>&6
3195 cat >> confdefs.h <<\EOF
3196#define HAVE_LIBXXF86DGA2 1
3197EOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003198
3199 cat >> confdefs.h <<\EOF
Lionel Ulmer7be462d2000-01-15 22:24:47 +00003200#define HAVE_LIBXXF86DGA 1
3201EOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003202
3203 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3204 DGA_SRCS='$(DGA_SRCS)'
Lionel Ulmer51177f92000-05-01 14:25:49 +00003205 DGA2_SRCS='$(DGA2_SRCS)'
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003206
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003207else
3208 echo "$ac_t""no" 1>&6
3209fi
3210
Lionel Ulmer48c08162000-01-05 01:51:02 +00003211 if test "$ac_cv_lib_Xxf86dga_XDGAQueryExtension" = "no"
3212 then
3213 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00003214echo "configure:3215: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003215ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3216if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3217 echo $ac_n "(cached) $ac_c" 1>&6
3218else
3219 ac_save_LIBS="$LIBS"
Marcus Meissner376ec882000-01-05 03:24:52 +00003220LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003221cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003222#line 3223 "configure"
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003223#include "confdefs.h"
3224/* Override any gcc2 internal prototype to avoid an error. */
3225/* We use char because int might match the return type of a gcc2
3226 builtin and then its argument prototype would still apply. */
Patrik Stridvall24110281999-02-04 10:09:54 +00003227char XF86DGAQueryExtension();
3228
3229int main() {
3230XF86DGAQueryExtension()
3231; return 0; }
3232EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003233if { (eval echo configure:3234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall24110281999-02-04 10:09:54 +00003234 rm -rf conftest*
3235 eval "ac_cv_lib_$ac_lib_var=yes"
3236else
3237 echo "configure: failed program was:" >&5
3238 cat conftest.$ac_ext >&5
3239 rm -rf conftest*
3240 eval "ac_cv_lib_$ac_lib_var=no"
3241fi
3242rm -f conftest*
3243LIBS="$ac_save_LIBS"
3244
3245fi
3246if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3247 echo "$ac_t""yes" 1>&6
3248 cat >> confdefs.h <<\EOF
3249#define HAVE_LIBXXF86DGA 1
3250EOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003251
3252 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3253 DGA_SRCS='$(DGA_SRCS)'
3254
Patrik Stridvall24110281999-02-04 10:09:54 +00003255else
3256 echo "$ac_t""no" 1>&6
3257fi
3258
Lionel Ulmer48c08162000-01-05 01:51:02 +00003259 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00003260 fi
3261
3262 for ac_hdr in X11/Xlib.h X11/extensions/xf86vmode.h
3263do
3264ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3265echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00003266echo "configure:3267: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003267if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3269else
3270 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003271#line 3272 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003272#include "confdefs.h"
3273#include <$ac_hdr>
3274EOF
3275ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Lionel Ulmer51177f92000-05-01 14:25:49 +00003276{ (eval echo configure:3277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003277ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00003278if test -z "$ac_err"; then
3279 rm -rf conftest*
3280 eval "ac_cv_header_$ac_safe=yes"
3281else
3282 echo "$ac_err" >&5
3283 echo "configure: failed program was:" >&5
3284 cat conftest.$ac_ext >&5
3285 rm -rf conftest*
3286 eval "ac_cv_header_$ac_safe=no"
3287fi
3288rm -f conftest*
3289fi
3290if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3291 echo "$ac_t""yes" 1>&6
3292 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3293 cat >> confdefs.h <<EOF
3294#define $ac_tr_hdr 1
3295EOF
3296
3297else
3298 echo "$ac_t""no" 1>&6
3299fi
3300done
3301
3302 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
3303 then
3304 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00003305echo "configure:3306: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003306ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3307if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3308 echo $ac_n "(cached) $ac_c" 1>&6
3309else
3310 ac_save_LIBS="$LIBS"
Marcus Meissner376ec882000-01-05 03:24:52 +00003311LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Patrik Stridvall24110281999-02-04 10:09:54 +00003312cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003313#line 3314 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003314#include "confdefs.h"
3315/* Override any gcc2 internal prototype to avoid an error. */
3316/* We use char because int might match the return type of a gcc2
3317 builtin and then its argument prototype would still apply. */
3318char XF86VidModeQueryExtension();
3319
3320int main() {
3321XF86VidModeQueryExtension()
3322; return 0; }
3323EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003324if { (eval echo configure:3325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall24110281999-02-04 10:09:54 +00003325 rm -rf conftest*
3326 eval "ac_cv_lib_$ac_lib_var=yes"
3327else
3328 echo "configure: failed program was:" >&5
3329 cat conftest.$ac_ext >&5
3330 rm -rf conftest*
3331 eval "ac_cv_lib_$ac_lib_var=no"
3332fi
3333rm -f conftest*
3334LIBS="$ac_save_LIBS"
3335
3336fi
3337if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3338 echo "$ac_t""yes" 1>&6
3339 cat >> confdefs.h <<\EOF
3340#define HAVE_LIBXXF86VM 1
3341EOF
3342 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
3343else
3344 echo "$ac_t""no" 1>&6
3345fi
3346
3347 fi
Lionel Ulmer5c085701999-02-28 19:48:53 +00003348
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003349 if test $OPENGL = "yes" -o $OPENGL = "normal"
3350 then
3351 for ac_hdr in GL/gl.h GL/glx.h
Patrik Stridvall24110281999-02-04 10:09:54 +00003352do
3353ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3354echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00003355echo "configure:3356: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003356if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3357 echo $ac_n "(cached) $ac_c" 1>&6
3358else
3359 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003360#line 3361 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003361#include "confdefs.h"
3362#include <$ac_hdr>
3363EOF
3364ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Lionel Ulmer51177f92000-05-01 14:25:49 +00003365{ (eval echo configure:3366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003366ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00003367if test -z "$ac_err"; then
3368 rm -rf conftest*
3369 eval "ac_cv_header_$ac_safe=yes"
3370else
3371 echo "$ac_err" >&5
3372 echo "configure: failed program was:" >&5
3373 cat conftest.$ac_ext >&5
3374 rm -rf conftest*
3375 eval "ac_cv_header_$ac_safe=no"
3376fi
3377rm -f conftest*
3378fi
3379if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3380 echo "$ac_t""yes" 1>&6
3381 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3382 cat >> confdefs.h <<EOF
3383#define $ac_tr_hdr 1
3384EOF
3385
3386else
3387 echo "$ac_t""no" 1>&6
3388fi
3389done
3390
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003391 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
3392 then
3393 echo $ac_n "checking "for up-to-date OpenGL version"""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00003394echo "configure:3395: checking "for up-to-date OpenGL version"" >&5
Lionel Ulmer5c085701999-02-28 19:48:53 +00003395if eval "test \"`echo '$''{'wine_cv_mesa_version_OK'+set}'`\" = set"; then
3396 echo $ac_n "(cached) $ac_c" 1>&6
3397else
3398 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003399#line 3400 "configure"
Lionel Ulmer5c085701999-02-28 19:48:53 +00003400#include "confdefs.h"
3401#include <GL/gl.h>
3402int main() {
3403GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3404; return 0; }
3405EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003406if { (eval echo configure:3407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Lionel Ulmer5c085701999-02-28 19:48:53 +00003407 rm -rf conftest*
3408 wine_cv_mesa_version_OK="yes"
3409else
3410 echo "configure: failed program was:" >&5
3411 cat conftest.$ac_ext >&5
3412 rm -rf conftest*
3413 wine_cv_mesa_version_OK="no"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003414
Lionel Ulmer5c085701999-02-28 19:48:53 +00003415fi
3416rm -f conftest*
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003417
Lionel Ulmer5c085701999-02-28 19:48:53 +00003418fi
3419
3420echo "$ac_t""$wine_cv_mesa_version_OK" 1>&6
3421
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003422 echo $ac_n "checking "for thread-safe OpenGL version"""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00003423echo "configure:3424: checking "for thread-safe OpenGL version"" >&5
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003424if eval "test \"`echo '$''{'wine_cv_mesa_version_threadsafe'+set}'`\" = set"; then
3425 echo $ac_n "(cached) $ac_c" 1>&6
3426else
3427 saved_libs=$LIBS
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003428 LIBS="$X_LIBS -lGL"
3429 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003430#line 3431 "configure"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003431#include "confdefs.h"
3432
3433int main() {
3434pthread_getspecific();
3435; return 0; }
3436EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003437if { (eval echo configure:3438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003438 rm -rf conftest*
3439 wine_cv_mesa_version_threadsafe="yes"
3440else
3441 echo "configure: failed program was:" >&5
3442 cat conftest.$ac_ext >&5
3443 rm -rf conftest*
3444 wine_cv_mesa_version_threadsafe="no"
3445fi
3446rm -f conftest*
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003447 LIBS=$saved_libs
3448
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003449fi
3450
3451echo "$ac_t""$wine_cv_mesa_version_threadsafe" 1>&6
3452
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003453 if test "$wine_cv_mesa_version_OK" = "yes" -a \( "$wine_cv_mesa_version_threadsafe" = "no" -o $OPENGL = "yes" \)
3454 then
3455 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00003456echo "configure:3457: checking for glXCreateContext in -lGL" >&5
Lionel Ulmer5d68f791999-07-23 19:33:24 +00003457ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
Patrik Stridvall24110281999-02-04 10:09:54 +00003458if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3459 echo $ac_n "(cached) $ac_c" 1>&6
3460else
3461 ac_save_LIBS="$LIBS"
Marcus Meissner376ec882000-01-05 03:24:52 +00003462LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Patrik Stridvall24110281999-02-04 10:09:54 +00003463cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003464#line 3465 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003465#include "confdefs.h"
3466/* Override any gcc2 internal prototype to avoid an error. */
3467/* We use char because int might match the return type of a gcc2
3468 builtin and then its argument prototype would still apply. */
Lionel Ulmer5d68f791999-07-23 19:33:24 +00003469char glXCreateContext();
Patrik Stridvall24110281999-02-04 10:09:54 +00003470
3471int main() {
Lionel Ulmer5d68f791999-07-23 19:33:24 +00003472glXCreateContext()
Patrik Stridvall24110281999-02-04 10:09:54 +00003473; return 0; }
3474EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003475if { (eval echo configure:3476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall24110281999-02-04 10:09:54 +00003476 rm -rf conftest*
3477 eval "ac_cv_lib_$ac_lib_var=yes"
3478else
3479 echo "configure: failed program was:" >&5
3480 cat conftest.$ac_ext >&5
3481 rm -rf conftest*
3482 eval "ac_cv_lib_$ac_lib_var=no"
3483fi
3484rm -f conftest*
3485LIBS="$ac_save_LIBS"
3486
3487fi
3488if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3489 echo "$ac_t""yes" 1>&6
3490 cat >> confdefs.h <<\EOF
3491#define HAVE_LIBMESAGL 1
3492EOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003493
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003494 X_PRE_LIBS="$X_PRE_LIBS -lGL"
3495 MESA_SRCS='$(MESA_SRCS)'
3496
Patrik Stridvall24110281999-02-04 10:09:54 +00003497else
3498 echo "$ac_t""no" 1>&6
3499fi
3500
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003501
3502 if test "$ac_cv_lib_GL_glXCreateContext" = "no"
3503 then
3504 echo $ac_n "checking for glXCreateContext in -lMesaGL""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00003505echo "configure:3506: checking for glXCreateContext in -lMesaGL" >&5
Lionel Ulmer5d68f791999-07-23 19:33:24 +00003506ac_lib_var=`echo MesaGL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3507if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3508 echo $ac_n "(cached) $ac_c" 1>&6
3509else
3510 ac_save_LIBS="$LIBS"
Marcus Meissner376ec882000-01-05 03:24:52 +00003511LIBS="-lMesaGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Lionel Ulmer5d68f791999-07-23 19:33:24 +00003512cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003513#line 3514 "configure"
Lionel Ulmer5d68f791999-07-23 19:33:24 +00003514#include "confdefs.h"
3515/* Override any gcc2 internal prototype to avoid an error. */
3516/* We use char because int might match the return type of a gcc2
3517 builtin and then its argument prototype would still apply. */
3518char glXCreateContext();
3519
3520int main() {
3521glXCreateContext()
3522; return 0; }
3523EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003524if { (eval echo configure:3525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Lionel Ulmer5d68f791999-07-23 19:33:24 +00003525 rm -rf conftest*
3526 eval "ac_cv_lib_$ac_lib_var=yes"
3527else
3528 echo "configure: failed program was:" >&5
3529 cat conftest.$ac_ext >&5
3530 rm -rf conftest*
3531 eval "ac_cv_lib_$ac_lib_var=no"
3532fi
3533rm -f conftest*
3534LIBS="$ac_save_LIBS"
3535
3536fi
3537if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3538 echo "$ac_t""yes" 1>&6
3539 cat >> confdefs.h <<\EOF
3540#define HAVE_LIBMESAGL 1
3541EOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003542
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003543 X_PRE_LIBS="$X_PRE_LIBS -lMesaGL"
3544 MESA_SRCS='$(MESA_SRCS)'
3545
Lionel Ulmer5d68f791999-07-23 19:33:24 +00003546else
3547 echo "$ac_t""no" 1>&6
3548fi
3549
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003550 fi
Lionel Ulmer48c08162000-01-05 01:51:02 +00003551
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003552 echo $ac_n "checking "for the OpenGL Color Index extension"""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00003553echo "configure:3554: checking "for the OpenGL Color Index extension"" >&5
Lionel Ulmer48c08162000-01-05 01:51:02 +00003554if eval "test \"`echo '$''{'dummy'+set}'`\" = set"; then
3555 echo $ac_n "(cached) $ac_c" 1>&6
3556else
3557 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003558#line 3559 "configure"
Lionel Ulmer48c08162000-01-05 01:51:02 +00003559#include "confdefs.h"
3560#include <GL/gl.h>
3561int main() {
3562GLenum test = GL_COLOR_INDEX8_EXT;
3563; return 0; }
3564EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003565if { (eval echo configure:3566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Lionel Ulmer48c08162000-01-05 01:51:02 +00003566 rm -rf conftest*
3567 cat >> confdefs.h <<\EOF
3568#define HAVE_GL_COLOR_TABLE 1
3569EOF
3570
3571else
3572 echo "configure: failed program was:" >&5
3573 cat conftest.$ac_ext >&5
3574fi
3575rm -f conftest*
Lionel Ulmer48c08162000-01-05 01:51:02 +00003576fi
3577
3578echo "$ac_t""$dummy" 1>&6
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003579
3580 if test "$ac_cv_lib_GL_glXCreateContext" = "no"
3581 then
3582 echo $ac_n "checking for glColorTableEXT in -lMesaGL""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00003583echo "configure:3584: checking for glColorTableEXT in -lMesaGL" >&5
Lionel Ulmer48c08162000-01-05 01:51:02 +00003584ac_lib_var=`echo MesaGL'_'glColorTableEXT | sed 'y%./+-%__p_%'`
3585if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3586 echo $ac_n "(cached) $ac_c" 1>&6
3587else
3588 ac_save_LIBS="$LIBS"
Marcus Meissner376ec882000-01-05 03:24:52 +00003589LIBS="-lMesaGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Lionel Ulmer48c08162000-01-05 01:51:02 +00003590cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003591#line 3592 "configure"
Lionel Ulmer48c08162000-01-05 01:51:02 +00003592#include "confdefs.h"
3593/* Override any gcc2 internal prototype to avoid an error. */
3594/* We use char because int might match the return type of a gcc2
3595 builtin and then its argument prototype would still apply. */
3596char glColorTableEXT();
3597
3598int main() {
3599glColorTableEXT()
3600; return 0; }
3601EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003602if { (eval echo configure:3603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Lionel Ulmer48c08162000-01-05 01:51:02 +00003603 rm -rf conftest*
3604 eval "ac_cv_lib_$ac_lib_var=yes"
3605else
3606 echo "configure: failed program was:" >&5
3607 cat conftest.$ac_ext >&5
3608 rm -rf conftest*
3609 eval "ac_cv_lib_$ac_lib_var=no"
3610fi
3611rm -f conftest*
3612LIBS="$ac_save_LIBS"
3613
3614fi
3615if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3616 echo "$ac_t""yes" 1>&6
3617 cat >> confdefs.h <<\EOF
3618#define HAVE_GL_PALETTED_TEXTURE 1
3619EOF
3620
3621else
3622 echo "$ac_t""no" 1>&6
3623fi
3624
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003625 else
3626 echo $ac_n "checking for glColorTableEXT in -lGL""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00003627echo "configure:3628: checking for glColorTableEXT in -lGL" >&5
Lionel Ulmer48c08162000-01-05 01:51:02 +00003628ac_lib_var=`echo GL'_'glColorTableEXT | sed 'y%./+-%__p_%'`
3629if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3630 echo $ac_n "(cached) $ac_c" 1>&6
3631else
3632 ac_save_LIBS="$LIBS"
Marcus Meissner376ec882000-01-05 03:24:52 +00003633LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Lionel Ulmer48c08162000-01-05 01:51:02 +00003634cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003635#line 3636 "configure"
Lionel Ulmer48c08162000-01-05 01:51:02 +00003636#include "confdefs.h"
3637/* Override any gcc2 internal prototype to avoid an error. */
3638/* We use char because int might match the return type of a gcc2
3639 builtin and then its argument prototype would still apply. */
3640char glColorTableEXT();
3641
3642int main() {
3643glColorTableEXT()
3644; return 0; }
3645EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003646if { (eval echo configure:3647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Lionel Ulmer48c08162000-01-05 01:51:02 +00003647 rm -rf conftest*
3648 eval "ac_cv_lib_$ac_lib_var=yes"
3649else
3650 echo "configure: failed program was:" >&5
3651 cat conftest.$ac_ext >&5
3652 rm -rf conftest*
3653 eval "ac_cv_lib_$ac_lib_var=no"
3654fi
3655rm -f conftest*
3656LIBS="$ac_save_LIBS"
3657
3658fi
3659if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3660 echo "$ac_t""yes" 1>&6
3661 cat >> confdefs.h <<\EOF
3662#define HAVE_GL_PALETTED_TEXTURE 1
3663EOF
3664
3665else
3666 echo "$ac_t""no" 1>&6
3667fi
3668
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003669 fi
3670 fi
3671 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00003672 fi
Ove Kaaven1eb593c1999-02-14 09:34:46 +00003673
3674 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvall2941a212000-04-25 20:34:22 +00003675 X_DLLS='$(X_DLLS)'
3676 XFILES='$(XFILES)'
Patrik Stridvallea584721998-11-01 16:22:07 +00003677else
3678 XLIB=""
3679 X_CFLAGS=""
3680 X_LIBS=""
3681fi
Alexandre Julliard902da691995-11-05 14:39:02 +00003682
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00003683if test "$CURSES" = "yes"
3684then
3685 for ac_hdr in ncurses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00003686do
3687ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3688echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00003689echo "configure:3690: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003690if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3691 echo $ac_n "(cached) $ac_c" 1>&6
3692else
3693 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003694#line 3695 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003695#include "confdefs.h"
3696#include <$ac_hdr>
3697EOF
3698ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Lionel Ulmer51177f92000-05-01 14:25:49 +00003699{ (eval echo configure:3700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003700ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00003701if test -z "$ac_err"; then
3702 rm -rf conftest*
3703 eval "ac_cv_header_$ac_safe=yes"
3704else
3705 echo "$ac_err" >&5
3706 echo "configure: failed program was:" >&5
3707 cat conftest.$ac_ext >&5
3708 rm -rf conftest*
3709 eval "ac_cv_header_$ac_safe=no"
3710fi
3711rm -f conftest*
3712fi
3713if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3714 echo "$ac_t""yes" 1>&6
3715 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3716 cat >> confdefs.h <<EOF
3717#define $ac_tr_hdr 1
3718EOF
3719
3720else
3721 echo "$ac_t""no" 1>&6
3722fi
3723done
3724
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00003725 if test "$ac_cv_header_ncurses_h" = "yes"
3726 then
3727 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00003728echo "configure:3729: checking for waddch in -lncurses" >&5
Joseph Praneviche884f9c1999-01-03 16:14:34 +00003729ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
3730if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3731 echo $ac_n "(cached) $ac_c" 1>&6
3732else
3733 ac_save_LIBS="$LIBS"
3734LIBS="-lncurses $LIBS"
3735cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003736#line 3737 "configure"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00003737#include "confdefs.h"
3738/* Override any gcc2 internal prototype to avoid an error. */
3739/* We use char because int might match the return type of a gcc2
3740 builtin and then its argument prototype would still apply. */
3741char waddch();
3742
3743int main() {
3744waddch()
3745; return 0; }
3746EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003747if { (eval echo configure:3748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00003748 rm -rf conftest*
3749 eval "ac_cv_lib_$ac_lib_var=yes"
3750else
3751 echo "configure: failed program was:" >&5
3752 cat conftest.$ac_ext >&5
3753 rm -rf conftest*
3754 eval "ac_cv_lib_$ac_lib_var=no"
3755fi
3756rm -f conftest*
3757LIBS="$ac_save_LIBS"
3758
3759fi
3760if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3761 echo "$ac_t""yes" 1>&6
3762 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3763 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3764 cat >> confdefs.h <<EOF
3765#define $ac_tr_lib 1
3766EOF
3767
3768 LIBS="-lncurses $LIBS"
3769
3770else
3771 echo "$ac_t""no" 1>&6
3772fi
3773
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00003774 fi
3775 if test "$ac_cv_lib_ncurses_waddch" = "yes"
3776 then
3777 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00003778echo "configure:3779: checking for resizeterm in -lncurses" >&5
Alexandre Julliard638f1691999-01-17 16:32:32 +00003779ac_lib_var=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
3780if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3781 echo $ac_n "(cached) $ac_c" 1>&6
3782else
3783 ac_save_LIBS="$LIBS"
3784LIBS="-lncurses $LIBS"
3785cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003786#line 3787 "configure"
Alexandre Julliard638f1691999-01-17 16:32:32 +00003787#include "confdefs.h"
3788/* Override any gcc2 internal prototype to avoid an error. */
3789/* We use char because int might match the return type of a gcc2
3790 builtin and then its argument prototype would still apply. */
3791char resizeterm();
3792
3793int main() {
3794resizeterm()
3795; return 0; }
3796EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003797if { (eval echo configure:3798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard638f1691999-01-17 16:32:32 +00003798 rm -rf conftest*
3799 eval "ac_cv_lib_$ac_lib_var=yes"
3800else
3801 echo "configure: failed program was:" >&5
3802 cat conftest.$ac_ext >&5
3803 rm -rf conftest*
3804 eval "ac_cv_lib_$ac_lib_var=no"
3805fi
3806rm -f conftest*
3807LIBS="$ac_save_LIBS"
3808
3809fi
3810if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3811 echo "$ac_t""yes" 1>&6
3812 cat >> confdefs.h <<\EOF
3813#define HAVE_RESIZETERM 1
3814EOF
3815
3816else
3817 echo "$ac_t""no" 1>&6
3818fi
3819
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00003820 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00003821echo "configure:3822: checking for getbkgd in -lncurses" >&5
Michael Vekslerf5445071999-02-25 17:11:05 +00003822ac_lib_var=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
3823if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3824 echo $ac_n "(cached) $ac_c" 1>&6
3825else
3826 ac_save_LIBS="$LIBS"
3827LIBS="-lncurses $LIBS"
3828cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003829#line 3830 "configure"
Michael Vekslerf5445071999-02-25 17:11:05 +00003830#include "confdefs.h"
3831/* Override any gcc2 internal prototype to avoid an error. */
3832/* We use char because int might match the return type of a gcc2
3833 builtin and then its argument prototype would still apply. */
3834char getbkgd();
3835
3836int main() {
3837getbkgd()
3838; return 0; }
3839EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003840if { (eval echo configure:3841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Michael Vekslerf5445071999-02-25 17:11:05 +00003841 rm -rf conftest*
3842 eval "ac_cv_lib_$ac_lib_var=yes"
3843else
3844 echo "configure: failed program was:" >&5
3845 cat conftest.$ac_ext >&5
3846 rm -rf conftest*
3847 eval "ac_cv_lib_$ac_lib_var=no"
3848fi
3849rm -f conftest*
3850LIBS="$ac_save_LIBS"
3851
3852fi
3853if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3854 echo "$ac_t""yes" 1>&6
3855 cat >> confdefs.h <<\EOF
3856#define HAVE_GETBKGD 1
3857EOF
3858
3859else
3860 echo "$ac_t""no" 1>&6
3861fi
3862
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00003863 else
3864 for ac_hdr in curses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00003865do
3866ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3867echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00003868echo "configure:3869: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003869if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3870 echo $ac_n "(cached) $ac_c" 1>&6
3871else
3872 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003873#line 3874 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003874#include "confdefs.h"
3875#include <$ac_hdr>
3876EOF
3877ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Lionel Ulmer51177f92000-05-01 14:25:49 +00003878{ (eval echo configure:3879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003879ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00003880if test -z "$ac_err"; then
3881 rm -rf conftest*
3882 eval "ac_cv_header_$ac_safe=yes"
3883else
3884 echo "$ac_err" >&5
3885 echo "configure: failed program was:" >&5
3886 cat conftest.$ac_ext >&5
3887 rm -rf conftest*
3888 eval "ac_cv_header_$ac_safe=no"
3889fi
3890rm -f conftest*
3891fi
3892if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3893 echo "$ac_t""yes" 1>&6
3894 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3895 cat >> confdefs.h <<EOF
3896#define $ac_tr_hdr 1
3897EOF
3898
3899else
3900 echo "$ac_t""no" 1>&6
3901fi
3902done
3903
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00003904 if test "$ac_cv_header_curses_h" = "yes"
3905 then
3906 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00003907echo "configure:3908: checking for waddch in -lcurses" >&5
Joseph Praneviche884f9c1999-01-03 16:14:34 +00003908ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
3909if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3910 echo $ac_n "(cached) $ac_c" 1>&6
3911else
3912 ac_save_LIBS="$LIBS"
3913LIBS="-lcurses $LIBS"
3914cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003915#line 3916 "configure"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00003916#include "confdefs.h"
3917/* Override any gcc2 internal prototype to avoid an error. */
3918/* We use char because int might match the return type of a gcc2
3919 builtin and then its argument prototype would still apply. */
3920char waddch();
3921
3922int main() {
3923waddch()
3924; return 0; }
3925EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003926if { (eval echo configure:3927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00003927 rm -rf conftest*
3928 eval "ac_cv_lib_$ac_lib_var=yes"
3929else
3930 echo "configure: failed program was:" >&5
3931 cat conftest.$ac_ext >&5
3932 rm -rf conftest*
3933 eval "ac_cv_lib_$ac_lib_var=no"
3934fi
3935rm -f conftest*
3936LIBS="$ac_save_LIBS"
3937
3938fi
3939if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3940 echo "$ac_t""yes" 1>&6
3941 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3942 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3943 cat >> confdefs.h <<EOF
3944#define $ac_tr_lib 1
3945EOF
3946
3947 LIBS="-lcurses $LIBS"
3948
3949else
3950 echo "$ac_t""no" 1>&6
3951fi
3952
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00003953 if test "$ac_cv_lib_curses_waddch" = "yes"
3954 then
3955 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00003956echo "configure:3957: checking for resizeterm in -lcurses" >&5
Alexandre Julliard638f1691999-01-17 16:32:32 +00003957ac_lib_var=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
3958if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3959 echo $ac_n "(cached) $ac_c" 1>&6
3960else
3961 ac_save_LIBS="$LIBS"
3962LIBS="-lcurses $LIBS"
3963cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003964#line 3965 "configure"
Alexandre Julliard638f1691999-01-17 16:32:32 +00003965#include "confdefs.h"
3966/* Override any gcc2 internal prototype to avoid an error. */
3967/* We use char because int might match the return type of a gcc2
3968 builtin and then its argument prototype would still apply. */
3969char resizeterm();
3970
3971int main() {
3972resizeterm()
3973; return 0; }
3974EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00003975if { (eval echo configure:3976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard638f1691999-01-17 16:32:32 +00003976 rm -rf conftest*
3977 eval "ac_cv_lib_$ac_lib_var=yes"
3978else
3979 echo "configure: failed program was:" >&5
3980 cat conftest.$ac_ext >&5
3981 rm -rf conftest*
3982 eval "ac_cv_lib_$ac_lib_var=no"
3983fi
3984rm -f conftest*
3985LIBS="$ac_save_LIBS"
3986
3987fi
3988if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3989 echo "$ac_t""yes" 1>&6
3990 cat >> confdefs.h <<\EOF
3991#define HAVE_RESIZETERM 1
3992EOF
3993
3994else
3995 echo "$ac_t""no" 1>&6
3996fi
3997
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00003998 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00003999echo "configure:4000: checking for getbkgd in -lcurses" >&5
Michael Vekslerf5445071999-02-25 17:11:05 +00004000ac_lib_var=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
4001if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4002 echo $ac_n "(cached) $ac_c" 1>&6
4003else
4004 ac_save_LIBS="$LIBS"
4005LIBS="-lcurses $LIBS"
4006cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004007#line 4008 "configure"
Michael Vekslerf5445071999-02-25 17:11:05 +00004008#include "confdefs.h"
4009/* Override any gcc2 internal prototype to avoid an error. */
4010/* We use char because int might match the return type of a gcc2
4011 builtin and then its argument prototype would still apply. */
4012char getbkgd();
4013
4014int main() {
4015getbkgd()
4016; return 0; }
4017EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004018if { (eval echo configure:4019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Michael Vekslerf5445071999-02-25 17:11:05 +00004019 rm -rf conftest*
4020 eval "ac_cv_lib_$ac_lib_var=yes"
4021else
4022 echo "configure: failed program was:" >&5
4023 cat conftest.$ac_ext >&5
4024 rm -rf conftest*
4025 eval "ac_cv_lib_$ac_lib_var=no"
4026fi
4027rm -f conftest*
4028LIBS="$ac_save_LIBS"
4029
4030fi
4031if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4032 echo "$ac_t""yes" 1>&6
4033 cat >> confdefs.h <<\EOF
4034#define HAVE_GETBKGD 1
4035EOF
4036
4037else
4038 echo "$ac_t""no" 1>&6
4039fi
4040
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00004041 fi
4042 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00004043 fi
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004044fi
4045
Pavel Roskin94d99641998-12-26 11:52:51 +00004046echo $ac_n "checking "for GNU style IPX support"""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00004047echo "configure:4048: checking "for GNU style IPX support"" >&5
Pavel Roskin94d99641998-12-26 11:52:51 +00004048if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
4049 echo $ac_n "(cached) $ac_c" 1>&6
4050else
4051 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004052#line 4053 "configure"
Pavel Roskin94d99641998-12-26 11:52:51 +00004053#include "confdefs.h"
4054#include <sys/socket.h>
4055 #include <netipx/ipx.h>
4056int main() {
4057((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4058; return 0; }
4059EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004060if { (eval echo configure:4061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Pavel Roskin94d99641998-12-26 11:52:51 +00004061 rm -rf conftest*
Aaron Hopec23872d2000-01-15 23:43:21 +00004062 ac_cv_c_ipx_gnu="yes"
Pavel Roskin94d99641998-12-26 11:52:51 +00004063else
4064 echo "configure: failed program was:" >&5
4065 cat conftest.$ac_ext >&5
4066 rm -rf conftest*
4067 ac_cv_c_ipx_gnu="no"
4068fi
4069rm -f conftest*
4070
4071fi
4072
4073echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
Aaron Hopec23872d2000-01-15 23:43:21 +00004074if test "$ac_cv_c_ipx_gnu" = "yes"
4075then
4076 cat >> confdefs.h <<\EOF
4077#define HAVE_IPX_GNU 1
4078EOF
4079
4080fi
Pavel Roskin94d99641998-12-26 11:52:51 +00004081
4082if test "$ac_cv_c_ipx_gnu" = "no"
4083then
4084 echo $ac_n "checking "for linux style IPX support"""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00004085echo "configure:4086: checking "for linux style IPX support"" >&5
Pavel Roskin94d99641998-12-26 11:52:51 +00004086if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4087 echo $ac_n "(cached) $ac_c" 1>&6
4088else
4089 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004090#line 4091 "configure"
Pavel Roskin94d99641998-12-26 11:52:51 +00004091#include "confdefs.h"
4092#include <sys/socket.h>
4093 #include <asm/types.h>
4094 #include <linux/ipx.h>
4095int main() {
4096((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4097; return 0; }
4098EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004099if { (eval echo configure:4100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Pavel Roskin94d99641998-12-26 11:52:51 +00004100 rm -rf conftest*
Aaron Hopec23872d2000-01-15 23:43:21 +00004101 ac_cv_c_ipx_linux="yes"
Pavel Roskin94d99641998-12-26 11:52:51 +00004102else
4103 echo "configure: failed program was:" >&5
4104 cat conftest.$ac_ext >&5
4105 rm -rf conftest*
4106 ac_cv_c_ipx_linux="no"
4107fi
4108rm -f conftest*
4109
4110fi
4111
4112echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
Aaron Hopec23872d2000-01-15 23:43:21 +00004113 if test "$ac_cv_c_ipx_linux" = "yes"
4114 then
4115 cat >> confdefs.h <<\EOF
4116#define HAVE_IPX_LINUX 1
4117EOF
4118
4119 fi
Pavel Roskin94d99641998-12-26 11:52:51 +00004120fi
4121
Todd Vierlingecc76691998-12-15 17:49:02 +00004122for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004123do
4124ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4125echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00004126echo "configure:4127: checking for $ac_hdr" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004127if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4128 echo $ac_n "(cached) $ac_c" 1>&6
4129else
4130 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004131#line 4132 "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004132#include "confdefs.h"
4133#include <$ac_hdr>
4134EOF
4135ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Lionel Ulmer51177f92000-05-01 14:25:49 +00004136{ (eval echo configure:4137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00004137ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004138if test -z "$ac_err"; then
4139 rm -rf conftest*
4140 eval "ac_cv_header_$ac_safe=yes"
4141else
4142 echo "$ac_err" >&5
4143 echo "configure: failed program was:" >&5
4144 cat conftest.$ac_ext >&5
4145 rm -rf conftest*
4146 eval "ac_cv_header_$ac_safe=no"
4147fi
4148rm -f conftest*
4149fi
4150if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4151 echo "$ac_t""yes" 1>&6
4152 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4153 cat >> confdefs.h <<EOF
4154#define $ac_tr_hdr 1
4155EOF
Todd Vierlingecc76691998-12-15 17:49:02 +00004156 break
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004157else
4158 echo "$ac_t""no" 1>&6
4159fi
4160done
4161
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004162
4163echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00004164echo "configure:4165: checking "for Open Sound System"" >&5
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004165if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4166 echo $ac_n "(cached) $ac_c" 1>&6
4167else
4168 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004169#line 4170 "configure"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004170#include "confdefs.h"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004171
Todd Vierlingecc76691998-12-15 17:49:02 +00004172 #if defined(HAVE_SYS_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004173 #include <sys/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00004174 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004175 #include <machine/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00004176 #elif defined(HAVE_SOUNDCARD_H)
4177 #include <soundcard.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004178 #endif
4179
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004180int main() {
4181
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004182
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00004183/* check for one of the Open Sound System specific SNDCTL_ defines */
4184#if !defined(SNDCTL_DSP_STEREO)
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004185#error No open sound system
4186#endif
4187
4188; return 0; }
4189EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004190if { (eval echo configure:4191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004191 rm -rf conftest*
4192 ac_cv_c_opensoundsystem="yes"
4193else
4194 echo "configure: failed program was:" >&5
4195 cat conftest.$ac_ext >&5
4196 rm -rf conftest*
4197 ac_cv_c_opensoundsystem="no"
4198fi
4199rm -f conftest*
4200fi
4201
4202echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4203
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004204if test "$ac_cv_c_opensoundsystem" = "yes"
4205then
4206 cat >> confdefs.h <<\EOF
4207#define HAVE_OSS 1
4208EOF
4209
4210fi
4211
Eric Pouech338d3b21999-05-22 18:52:21 +00004212echo $ac_n "checking "for Open Sound System/MIDI interface"""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00004213echo "configure:4214: checking "for Open Sound System/MIDI interface"" >&5
Eric Pouech338d3b21999-05-22 18:52:21 +00004214if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4215 echo $ac_n "(cached) $ac_c" 1>&6
4216else
4217 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004218#line 4219 "configure"
Eric Pouech338d3b21999-05-22 18:52:21 +00004219#include "confdefs.h"
4220
4221 #if defined(HAVE_SYS_SOUNDCARD_H)
4222 #include <sys/soundcard.h>
4223 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4224 #include <machine/soundcard.h>
4225 #elif defined(HAVE_SOUNDCARD_H)
4226 #include <soundcard.h>
4227 #endif
4228
4229int main() {
4230
4231
4232/* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4233#if !defined(SNDCTL_SEQ_SYNC)
4234#error No open sound system MIDI interface
4235#endif
4236
4237; return 0; }
4238EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004239if { (eval echo configure:4240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Eric Pouech338d3b21999-05-22 18:52:21 +00004240 rm -rf conftest*
4241 ac_cv_c_opensoundsystem_midi="yes"
4242else
4243 echo "configure: failed program was:" >&5
4244 cat conftest.$ac_ext >&5
4245 rm -rf conftest*
4246 ac_cv_c_opensoundsystem_midi="no"
4247fi
4248rm -f conftest*
4249fi
4250
4251echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4252
4253if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4254then
4255 cat >> confdefs.h <<\EOF
4256#define HAVE_OSS_MIDI 1
4257EOF
4258
4259fi
4260
Alexandre Julliard641ee761997-08-04 16:34:36 +00004261if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
4262
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004263
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004264if test "x${GCC}" = "xyes"
4265then
4266 CFLAGS="$CFLAGS -Wall"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004267 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00004268echo "configure:4269: checking "for gcc strength-reduce bug"" >&5
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004269if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
4270 echo $ac_n "(cached) $ac_c" 1>&6
4271else
4272 if test "$cross_compiling" = yes; then
4273 ac_cv_c_gcc_strength_bug="yes"
4274else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004275 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004276#line 4277 "configure"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004277#include "confdefs.h"
4278
4279int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +00004280 static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004281 unsigned int B = 3;
4282 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +00004283 for(i=0; i<B; i++) Array[i] = i - 3;
4284 exit( Array[1] != -2 );
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004285}
4286EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004287if { (eval echo configure:4288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00004288then
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004289 ac_cv_c_gcc_strength_bug="no"
4290else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004291 echo "configure: failed program was:" >&5
4292 cat conftest.$ac_ext >&5
4293 rm -fr conftest*
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004294 ac_cv_c_gcc_strength_bug="yes"
4295fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004296rm -fr conftest*
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004297fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004298
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004299fi
4300
4301echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
4302 if test "$ac_cv_c_gcc_strength_bug" = "yes"
4303 then
4304 CFLAGS="$CFLAGS -fno-strength-reduce"
4305 fi
4306fi
4307
4308
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00004309echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00004310echo "configure:4311: checking "whether external symbols need an underscore prefix"" >&5
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00004311if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
4312 echo $ac_n "(cached) $ac_c" 1>&6
4313else
4314 saved_libs=$LIBS
4315LIBS="conftest_asm.s $LIBS"
4316cat > conftest_asm.s <<EOF
4317 .globl _ac_test
4318_ac_test:
4319 .long 0
4320EOF
4321cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004322#line 4323 "configure"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00004323#include "confdefs.h"
4324extern int ac_test;
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004325int main() {
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00004326if (ac_test) return 1
4327; return 0; }
4328EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004329if { (eval echo configure:4330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00004330 rm -rf conftest*
4331 ac_cv_c_extern_prefix="yes"
4332else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004333 echo "configure: failed program was:" >&5
4334 cat conftest.$ac_ext >&5
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00004335 rm -rf conftest*
4336 ac_cv_c_extern_prefix="no"
4337fi
4338rm -f conftest*
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00004339LIBS=$saved_libs
4340fi
4341
4342echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
4343if test "$ac_cv_c_extern_prefix" = "yes"
4344then
4345 cat >> confdefs.h <<\EOF
4346#define NEED_UNDERSCORE_PREFIX 1
4347EOF
4348
4349fi
4350
4351
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004352echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00004353echo "configure:4354: checking "whether assembler accepts .string"" >&5
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004354if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
4355 echo $ac_n "(cached) $ac_c" 1>&6
4356else
4357 saved_libs=$LIBS
4358LIBS="conftest_asm.s $LIBS"
4359cat > conftest_asm.s <<EOF
4360 .string "test"
4361EOF
4362cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004363#line 4364 "configure"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004364#include "confdefs.h"
4365
4366int main() {
4367
4368; return 0; }
4369EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004370if { (eval echo configure:4371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004371 rm -rf conftest*
4372 ac_cv_c_asm_string="yes"
4373else
4374 echo "configure: failed program was:" >&5
4375 cat conftest.$ac_ext >&5
4376 rm -rf conftest*
4377 ac_cv_c_asm_string="no"
4378fi
4379rm -f conftest*
4380LIBS=$saved_libs
4381fi
4382
4383echo "$ac_t""$ac_cv_c_asm_string" 1>&6
4384if test "$ac_cv_c_asm_string" = "yes"
4385then
4386 cat >> confdefs.h <<\EOF
4387#define HAVE_ASM_STRING 1
4388EOF
4389
4390fi
4391
4392
Todd Vierling4b992b01998-12-15 15:26:27 +00004393LDSHARED=""
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004394if test "$LIBEXT" = "so"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00004395then
Todd Vierling4b992b01998-12-15 15:26:27 +00004396 echo $ac_n "checking "whether we can build a Linux dll"""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00004397echo "configure:4398: checking "whether we can build a Linux dll"" >&5
Todd Vierling4b992b01998-12-15 15:26:27 +00004398if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00004399 echo $ac_n "(cached) $ac_c" 1>&6
4400else
4401 saved_cflags=$CFLAGS
4402 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
4403 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004404#line 4405 "configure"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00004405#include "confdefs.h"
4406
4407int main() {
4408return 1
4409; return 0; }
4410EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004411if { (eval echo configure:4412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00004412 rm -rf conftest*
Todd Vierling4b992b01998-12-15 15:26:27 +00004413 ac_cv_c_dll_linux="yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00004414else
4415 echo "configure: failed program was:" >&5
4416 cat conftest.$ac_ext >&5
4417 rm -rf conftest*
Todd Vierling4b992b01998-12-15 15:26:27 +00004418 ac_cv_c_dll_linux="no"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00004419fi
4420rm -f conftest*
4421 CFLAGS=$saved_cflags
4422
4423fi
4424
Todd Vierling4b992b01998-12-15 15:26:27 +00004425echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
4426 if test "$ac_cv_c_dll_linux" = "yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00004427 then
Alexandre Julliard0adad952000-01-26 01:45:58 +00004428 LDSHARED="\$(CC) -shared -Wl,-soname,\$(SONAME),-rpath,\$(libdir)"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00004429 else
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00004430 echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00004431echo "configure:4432: checking whether we can build a UnixWare (Solaris) dll" >&5
Ron Recorde977d6c1999-09-05 12:32:05 +00004432if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
Todd Vierling4b992b01998-12-15 15:26:27 +00004433 echo $ac_n "(cached) $ac_c" 1>&6
4434else
4435 saved_cflags=$CFLAGS
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00004436 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0"
Todd Vierling4b992b01998-12-15 15:26:27 +00004437 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004438#line 4439 "configure"
Todd Vierling4b992b01998-12-15 15:26:27 +00004439#include "confdefs.h"
4440
4441int main() {
4442return 1
4443; return 0; }
4444EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004445if { (eval echo configure:4446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ron Recorde977d6c1999-09-05 12:32:05 +00004446 rm -rf conftest*
4447 ac_cv_c_dll_unixware="yes"
4448else
4449 echo "configure: failed program was:" >&5
4450 cat conftest.$ac_ext >&5
4451 rm -rf conftest*
4452 ac_cv_c_dll_unixware="no"
4453fi
4454rm -f conftest*
4455 CFLAGS=$saved_cflags
4456
4457fi
4458
4459echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
4460 if test "$ac_cv_c_dll_unixware" = "yes"
4461 then
Alexandre Julliard0adad952000-01-26 01:45:58 +00004462 LDSHARED="\$(CC) -Wl,-G,-h,\$(libdir)/\$(SONAME)"
Ron Recorde977d6c1999-09-05 12:32:05 +00004463 else
4464 echo $ac_n "checking "whether we can build a NetBSD dll"""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00004465echo "configure:4466: checking "whether we can build a NetBSD dll"" >&5
Ron Recorde977d6c1999-09-05 12:32:05 +00004466if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
4467 echo $ac_n "(cached) $ac_c" 1>&6
4468else
4469 saved_cflags=$CFLAGS
4470 CFLAGS="$CFLAGS -fPIC -Bshareable -Bforcearchive"
4471 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004472#line 4473 "configure"
Ron Recorde977d6c1999-09-05 12:32:05 +00004473#include "confdefs.h"
4474
4475int main() {
4476return 1
4477; return 0; }
4478EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004479if { (eval echo configure:4480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Todd Vierling4b992b01998-12-15 15:26:27 +00004480 rm -rf conftest*
4481 ac_cv_c_dll_netbsd="yes"
4482else
4483 echo "configure: failed program was:" >&5
4484 cat conftest.$ac_ext >&5
4485 rm -rf conftest*
4486 ac_cv_c_dll_netbsd="no"
4487fi
4488rm -f conftest*
Ron Recorde977d6c1999-09-05 12:32:05 +00004489 CFLAGS=$saved_cflags
4490
Todd Vierling4b992b01998-12-15 15:26:27 +00004491fi
4492
4493echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
Ron Recorde977d6c1999-09-05 12:32:05 +00004494 if test "$ac_cv_c_dll_netbsd" = "yes"
4495 then
Ron Recorde977d6c1999-09-05 12:32:05 +00004496 LDSHARED="ld -Bshareable -Bforcearchive"
4497 fi
Todd Vierling4b992b01998-12-15 15:26:27 +00004498 fi
4499 fi
Ron Recorde977d6c1999-09-05 12:32:05 +00004500 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_unixware" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
Todd Vierling4b992b01998-12-15 15:26:27 +00004501 then
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004502 LIBEXT="a"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00004503 fi
4504fi
4505
Alexandre Julliard0adad952000-01-26 01:45:58 +00004506DLLFLAGS=""
4507BUILDFLAGS=""
Alexandre Julliard0adad952000-01-26 01:45:58 +00004508
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004509if test "$LIBEXT" = "so"; then
4510 BUILDFLAGS="-pic"
4511 DLLFLAGS="-fPIC"
Alexandre Julliarde1e75372000-04-24 17:17:49 +00004512 DLL_LINK="-L\$(DLLDIR) \$(IMPORTS:%=-l%) -L\$(TOPOBJDIR) -lwine"
Alexandre Julliard0adad952000-01-26 01:45:58 +00004513else
Alexandre Julliarde1e75372000-04-24 17:17:49 +00004514 DLL_LINK="-L\$(DLLDIR) \$(DLLS:%=-l%) -L\$(TOPOBJDIR) -lwine \$(X_LIBS) \$(XLIB)"
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004515 echo $ac_n "checking whether the linker supports --[no]-whole-archive (Linux)""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00004516echo "configure:4517: checking whether the linker supports --[no]-whole-archive (Linux)" >&5
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00004517if eval "test \"`echo '$''{'ac_cv_c_whole_archive'+set}'`\" = set"; then
4518 echo $ac_n "(cached) $ac_c" 1>&6
4519else
4520 saved_cflags=$CFLAGS
4521 CFLAGS="$CFLAGS -Wl,--whole-archive -Wl,--no-whole-archive"
4522 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004523#line 4524 "configure"
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00004524#include "confdefs.h"
4525
4526int main() {
4527return 1
4528; return 0; }
4529EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004530if { (eval echo configure:4531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00004531 rm -rf conftest*
4532 ac_cv_c_whole_archive="yes"
4533else
4534 echo "configure: failed program was:" >&5
4535 cat conftest.$ac_ext >&5
4536 rm -rf conftest*
4537 ac_cv_c_whole_archive="no"
4538fi
4539rm -f conftest*
4540 CFLAGS=$saved_cflags
4541
4542fi
4543
4544echo "$ac_t""$ac_cv_c_whole_archive" 1>&6
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004545 if test "$ac_cv_c_whole_archive" = "yes"
4546 then
4547 DLL_LINK="-Wl,--whole-archive $DLL_LINK -Wl,--no-whole-archive"
4548 else
4549 echo $ac_n "checking whether the linker supports -z {all,default}extract (Linux)""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00004550echo "configure:4551: checking whether the linker supports -z {all,default}extract (Linux)" >&5
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00004551if eval "test \"`echo '$''{'ac_cv_c_allextract'+set}'`\" = set"; then
4552 echo $ac_n "(cached) $ac_c" 1>&6
4553else
4554 saved_cflags=$CFLAGS
4555 CFLAGS="$CFLAGS -Wl,-z,allextract -Wl,-z,defaultextract"
4556 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004557#line 4558 "configure"
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00004558#include "confdefs.h"
4559
4560int main() {
4561return 1
4562; return 0; }
4563EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004564if { (eval echo configure:4565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00004565 rm -rf conftest*
4566 ac_cv_c_allextract="yes"
4567else
4568 echo "configure: failed program was:" >&5
4569 cat conftest.$ac_ext >&5
4570 rm -rf conftest*
4571 ac_cv_c_allextract="no"
4572fi
4573rm -f conftest*
4574 CFLAGS=$saved_cflags
4575
4576fi
4577
4578echo "$ac_t""$ac_cv_c_allextract" 1>&6
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004579 if test "$ac_cv_c_allextract" = "yes"
4580 then
4581 DLL_LINK="-Wl,-z,allextract $DLL_LINK -Wl,-z,defaultextract"
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00004582 fi
Alexandre Julliard0adad952000-01-26 01:45:58 +00004583 fi
4584fi
4585
4586
4587
4588
4589
4590
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00004591
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00004592
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004593wine_cv_libc_reentrant=no
4594echo $ac_n "checking "for reentrant libc: __errno_location"""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00004595echo "configure:4596: checking "for reentrant libc: __errno_location"" >&5
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004596if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00004597 echo $ac_n "(cached) $ac_c" 1>&6
4598else
4599 if test "$cross_compiling" = yes; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004600 wine_cv_libc_r__errno_location=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00004601else
4602 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004603#line 4604 "configure"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00004604#include "confdefs.h"
4605int myerrno = 0;
4606char buf[256];
4607int *__errno_location(){return &myerrno;}
4608main(){connect(0,buf,255); exit(!myerrno);}
4609EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004610if { (eval echo configure:4611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00004611then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004612 wine_cv_libc_r__errno_location=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00004613else
4614 echo "configure: failed program was:" >&5
4615 cat conftest.$ac_ext >&5
4616 rm -fr conftest*
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004617 wine_cv_libc_r__errno_location=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00004618fi
4619rm -fr conftest*
4620fi
Marcus Meissnerc2606381999-04-11 15:20:29 +00004621
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004622
4623fi
4624
4625echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
4626if test "$wine_cv_libc_r__errno_location" = "yes"
4627then
4628 cat >> confdefs.h <<\EOF
4629#define HAVE__ERRNO_LOCATION 1
4630EOF
4631
4632 wine_cv_libc_reentrant=__errno_location
4633fi
4634echo $ac_n "checking "for reentrant libc: __error"""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00004635echo "configure:4636: checking "for reentrant libc: __error"" >&5
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004636if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
4637 echo $ac_n "(cached) $ac_c" 1>&6
4638else
4639 if test "$cross_compiling" = yes; then
4640 wine_cv_libc_r__error=yes
Marcus Meissnerc2606381999-04-11 15:20:29 +00004641else
4642 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004643#line 4644 "configure"
Marcus Meissnerc2606381999-04-11 15:20:29 +00004644#include "confdefs.h"
4645int myerrno = 0;
4646char buf[256];
4647int *__error(){return &myerrno;}
4648main(){connect(0,buf,255); exit(!myerrno);}
4649EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004650if { (eval echo configure:4651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Marcus Meissnerc2606381999-04-11 15:20:29 +00004651then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004652 wine_cv_libc_r__error=yes
Marcus Meissnerc2606381999-04-11 15:20:29 +00004653else
4654 echo "configure: failed program was:" >&5
4655 cat conftest.$ac_ext >&5
4656 rm -fr conftest*
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004657 wine_cv_libc_r__error=no
Marcus Meissnerc2606381999-04-11 15:20:29 +00004658fi
4659rm -fr conftest*
4660fi
4661
Marcus Meissnerc2606381999-04-11 15:20:29 +00004662
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00004663fi
4664
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004665echo "$ac_t""$wine_cv_libc_r__error" 1>&6
4666if test "$wine_cv_libc_r__error" = "yes"
4667then
4668 cat >> confdefs.h <<\EOF
4669#define HAVE__ERROR 1
4670EOF
4671
4672 wine_cv_libc_reentrant=__error
4673fi
4674echo $ac_n "checking "for reentrant libc: ___errno"""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00004675echo "configure:4676: checking "for reentrant libc: ___errno"" >&5
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004676if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
4677 echo $ac_n "(cached) $ac_c" 1>&6
4678else
4679 if test "$cross_compiling" = yes; then
4680 wine_cv_libc_r___errno=yes
4681else
4682 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004683#line 4684 "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004684#include "confdefs.h"
4685int myerrno = 0;
4686char buf[256];
4687int *___errno(){return &myerrno;}
4688main(){connect(0,buf,255); exit(!myerrno);}
4689EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004690if { (eval echo configure:4691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004691then
4692 wine_cv_libc_r___errno=yes
4693else
4694 echo "configure: failed program was:" >&5
4695 cat conftest.$ac_ext >&5
4696 rm -fr conftest*
4697 wine_cv_libc_r___errno=no
4698fi
4699rm -fr conftest*
4700fi
4701
4702
4703fi
4704
4705echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
4706if test "$wine_cv_libc_r___errno" = "yes"
4707then
4708 cat >> confdefs.h <<\EOF
4709#define HAVE___ERRNO 1
4710EOF
4711
4712 wine_cv_libc_reentrant=___errno
4713fi
Ron Recorde977d6c1999-09-05 12:32:05 +00004714echo $ac_n "checking "for reentrant libc: __thr_errno"""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00004715echo "configure:4716: checking "for reentrant libc: __thr_errno"" >&5
Ron Recorde977d6c1999-09-05 12:32:05 +00004716if eval "test \"`echo '$''{'wine_cv_libc_r__thr_errno'+set}'`\" = set"; then
4717 echo $ac_n "(cached) $ac_c" 1>&6
4718else
4719 if test "$cross_compiling" = yes; then
4720 wine_cv_libc_r__thr_errno=yes
4721else
4722 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004723#line 4724 "configure"
Ron Recorde977d6c1999-09-05 12:32:05 +00004724#include "confdefs.h"
4725int myerrno = 0;
4726char buf[256];
4727int *__thr_errno(){return &myerrno;}
4728main(){connect(0,buf,255); exit(!myerrno);}
4729EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004730if { (eval echo configure:4731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Ron Recorde977d6c1999-09-05 12:32:05 +00004731then
4732 wine_cv_libc_r__thr_errno=yes
4733else
4734 echo "configure: failed program was:" >&5
4735 cat conftest.$ac_ext >&5
4736 rm -fr conftest*
4737 wine_cv_libc_r__thr_errno=no
4738fi
4739rm -fr conftest*
4740fi
4741
4742
4743fi
4744
4745echo "$ac_t""$wine_cv_libc_r__thr_errno" 1>&6
4746if test "$wine_cv_libc_r__thr_errno" = "yes"
4747then
4748 cat >> confdefs.h <<\EOF
4749#define HAVE__THR_ERRNO 1
4750EOF
4751
4752 wine_cv_libc_reentrant=__thr_errno
4753fi
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00004754if test "$wine_cv_libc_reentrant" = "no"
4755then
4756 cat >> confdefs.h <<\EOF
4757#define NO_REENTRANT_LIBC 1
4758EOF
4759
4760fi
4761
4762
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004763if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
Patrik Stridvall24110281999-02-04 10:09:54 +00004764then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00004765echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00004766echo "configure:4767: checking "for reentrant X libraries"" >&5
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00004767if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
4768 echo $ac_n "(cached) $ac_c" 1>&6
4769else
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004770 if test "x$with_reentrant_x" = "xno"
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00004771 then
4772 wine_cv_x_reentrant=no
4773 else
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004774 libX11_check=none
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00004775 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
Alexandre Julliard829fe321998-07-26 14:27:39 +00004776 if test -r $dir/libX11.so; then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00004777 libX11_check="-D $dir/libX11.so"
4778 break 1
4779 fi
Alexandre Julliard829fe321998-07-26 14:27:39 +00004780 if test -r $dir/libX11.a; then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00004781 libX11_check="$dir/libX11.a"
4782 break 1
4783 fi
4784 done
4785 if test "$libX11_check" != "none"; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004786 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
Alexandre Julliard829fe321998-07-26 14:27:39 +00004787 then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00004788 wine_cv_x_reentrant=yes
4789 else
4790 wine_cv_x_reentrant=no
4791 fi
4792 else
4793 wine_cv_x_reentrant=unknown
4794 fi
4795 fi
4796fi
4797
4798echo "$ac_t""$wine_cv_x_reentrant" 1>&6
Patrik Stridvall24110281999-02-04 10:09:54 +00004799else
4800 wine_cv_x_reentrant=no
4801fi
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00004802if test "$wine_cv_x_reentrant" = "no"
4803then
4804 cat >> confdefs.h <<\EOF
4805#define NO_REENTRANT_X11 1
4806EOF
4807
4808fi
4809
4810
Francois Gougetae5e93e1999-11-13 23:02:06 +00004811echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00004812echo "configure:4813: checking whether byte ordering is bigendian" >&5
Francois Gougetae5e93e1999-11-13 23:02:06 +00004813if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4814 echo $ac_n "(cached) $ac_c" 1>&6
4815else
4816 ac_cv_c_bigendian=unknown
4817# See if sys/param.h defines the BYTE_ORDER macro.
4818cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004819#line 4820 "configure"
Francois Gougetae5e93e1999-11-13 23:02:06 +00004820#include "confdefs.h"
4821#include <sys/types.h>
4822#include <sys/param.h>
4823int main() {
4824
4825#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4826 bogus endian macros
4827#endif
4828; return 0; }
4829EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004830if { (eval echo configure:4831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Francois Gougetae5e93e1999-11-13 23:02:06 +00004831 rm -rf conftest*
4832 # It does; now see whether it defined to BIG_ENDIAN or not.
4833cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004834#line 4835 "configure"
Francois Gougetae5e93e1999-11-13 23:02:06 +00004835#include "confdefs.h"
4836#include <sys/types.h>
4837#include <sys/param.h>
4838int main() {
4839
4840#if BYTE_ORDER != BIG_ENDIAN
4841 not big endian
4842#endif
4843; return 0; }
4844EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004845if { (eval echo configure:4846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Francois Gougetae5e93e1999-11-13 23:02:06 +00004846 rm -rf conftest*
4847 ac_cv_c_bigendian=yes
4848else
4849 echo "configure: failed program was:" >&5
4850 cat conftest.$ac_ext >&5
4851 rm -rf conftest*
4852 ac_cv_c_bigendian=no
4853fi
4854rm -f conftest*
4855else
4856 echo "configure: failed program was:" >&5
4857 cat conftest.$ac_ext >&5
4858fi
4859rm -f conftest*
4860if test $ac_cv_c_bigendian = unknown; then
4861if test "$cross_compiling" = yes; then
4862 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4863else
4864 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004865#line 4866 "configure"
Francois Gougetae5e93e1999-11-13 23:02:06 +00004866#include "confdefs.h"
4867main () {
4868 /* Are we little or big endian? From Harbison&Steele. */
4869 union
4870 {
4871 long l;
4872 char c[sizeof (long)];
4873 } u;
4874 u.l = 1;
4875 exit (u.c[sizeof (long) - 1] == 1);
4876}
4877EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004878if { (eval echo configure:4879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Francois Gougetae5e93e1999-11-13 23:02:06 +00004879then
4880 ac_cv_c_bigendian=no
4881else
4882 echo "configure: failed program was:" >&5
4883 cat conftest.$ac_ext >&5
4884 rm -fr conftest*
4885 ac_cv_c_bigendian=yes
4886fi
4887rm -fr conftest*
4888fi
4889
4890fi
4891fi
4892
4893echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4894if test $ac_cv_c_bigendian = yes; then
4895 cat >> confdefs.h <<\EOF
4896#define WORDS_BIGENDIAN 1
4897EOF
4898
4899fi
4900
4901
4902
Patrik Stridvall1bb94031999-05-08 15:47:44 +00004903# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4904# for constant arguments. Useless!
4905echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00004906echo "configure:4907: checking for working alloca.h" >&5
Patrik Stridvall1bb94031999-05-08 15:47:44 +00004907if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4908 echo $ac_n "(cached) $ac_c" 1>&6
4909else
4910 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004911#line 4912 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00004912#include "confdefs.h"
4913#include <alloca.h>
4914int main() {
Eric Pouech18ad24a2000-01-16 22:16:33 +00004915void *p = alloca(2 * sizeof(int));
Patrik Stridvall1bb94031999-05-08 15:47:44 +00004916; return 0; }
4917EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004918if { (eval echo configure:4919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +00004919 rm -rf conftest*
4920 ac_cv_header_alloca_h=yes
4921else
4922 echo "configure: failed program was:" >&5
4923 cat conftest.$ac_ext >&5
4924 rm -rf conftest*
4925 ac_cv_header_alloca_h=no
4926fi
4927rm -f conftest*
4928fi
Alexandre Julliard2487cce1999-04-18 14:43:16 +00004929
Patrik Stridvall1bb94031999-05-08 15:47:44 +00004930echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4931if test $ac_cv_header_alloca_h = yes; then
4932 cat >> confdefs.h <<\EOF
4933#define HAVE_ALLOCA_H 1
4934EOF
4935
4936fi
4937
4938echo $ac_n "checking for alloca""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00004939echo "configure:4940: checking for alloca" >&5
Patrik Stridvall1bb94031999-05-08 15:47:44 +00004940if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4941 echo $ac_n "(cached) $ac_c" 1>&6
4942else
4943 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004944#line 4945 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00004945#include "confdefs.h"
4946
4947#ifdef __GNUC__
4948# define alloca __builtin_alloca
4949#else
Eric Pouech18ad24a2000-01-16 22:16:33 +00004950# ifdef _MSC_VER
4951# include <malloc.h>
4952# define alloca _alloca
Patrik Stridvall1bb94031999-05-08 15:47:44 +00004953# else
Eric Pouech18ad24a2000-01-16 22:16:33 +00004954# if HAVE_ALLOCA_H
4955# include <alloca.h>
Patrik Stridvall1bb94031999-05-08 15:47:44 +00004956# else
Eric Pouech18ad24a2000-01-16 22:16:33 +00004957# ifdef _AIX
4958 #pragma alloca
4959# else
4960# ifndef alloca /* predefined by HP cc +Olibcalls */
Patrik Stridvall1bb94031999-05-08 15:47:44 +00004961char *alloca ();
Eric Pouech18ad24a2000-01-16 22:16:33 +00004962# endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +00004963# endif
4964# endif
4965# endif
4966#endif
4967
4968int main() {
4969char *p = (char *) alloca(1);
4970; return 0; }
4971EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00004972if { (eval echo configure:4973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +00004973 rm -rf conftest*
4974 ac_cv_func_alloca_works=yes
4975else
4976 echo "configure: failed program was:" >&5
4977 cat conftest.$ac_ext >&5
4978 rm -rf conftest*
4979 ac_cv_func_alloca_works=no
4980fi
4981rm -f conftest*
4982fi
4983
4984echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4985if test $ac_cv_func_alloca_works = yes; then
4986 cat >> confdefs.h <<\EOF
4987#define HAVE_ALLOCA 1
4988EOF
4989
4990fi
4991
4992if test $ac_cv_func_alloca_works = no; then
4993 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4994 # that cause trouble. Some versions do not even contain alloca or
4995 # contain a buggy version. If you still want to use their alloca,
4996 # use ar to extract alloca.o from them instead of compiling alloca.c.
Eric Pouech18ad24a2000-01-16 22:16:33 +00004997 ALLOCA=alloca.${ac_objext}
Patrik Stridvall1bb94031999-05-08 15:47:44 +00004998 cat >> confdefs.h <<\EOF
4999#define C_ALLOCA 1
5000EOF
5001
5002
5003echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00005004echo "configure:5005: checking whether alloca needs Cray hooks" >&5
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005005if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5006 echo $ac_n "(cached) $ac_c" 1>&6
5007else
5008 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005009#line 5010 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005010#include "confdefs.h"
5011#if defined(CRAY) && ! defined(CRAY2)
5012webecray
5013#else
5014wenotbecray
5015#endif
5016
5017EOF
5018if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5019 egrep "webecray" >/dev/null 2>&1; then
5020 rm -rf conftest*
5021 ac_cv_os_cray=yes
5022else
5023 rm -rf conftest*
5024 ac_cv_os_cray=no
5025fi
5026rm -f conftest*
5027
5028fi
5029
5030echo "$ac_t""$ac_cv_os_cray" 1>&6
5031if test $ac_cv_os_cray = yes; then
5032for ac_func in _getb67 GETB67 getb67; do
5033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00005034echo "configure:5035: checking for $ac_func" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005035if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5036 echo $ac_n "(cached) $ac_c" 1>&6
5037else
5038 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005039#line 5040 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005040#include "confdefs.h"
5041/* System header to define __stub macros and hopefully few prototypes,
5042 which can conflict with char $ac_func(); below. */
5043#include <assert.h>
5044/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005045/* We use char because int might match the return type of a gcc2
5046 builtin and then its argument prototype would still apply. */
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00005047char $ac_func();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005048
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005049int main() {
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005050
5051/* The GNU C library defines this for functions which it implements
5052 to always fail with ENOSYS. Some functions are actually named
5053 something starting with __ and the normal name is an alias. */
5054#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5055choke me
5056#else
5057$ac_func();
5058#endif
5059
5060; return 0; }
5061EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005062if { (eval echo configure:5063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005063 rm -rf conftest*
5064 eval "ac_cv_func_$ac_func=yes"
5065else
5066 echo "configure: failed program was:" >&5
5067 cat conftest.$ac_ext >&5
5068 rm -rf conftest*
5069 eval "ac_cv_func_$ac_func=no"
5070fi
5071rm -f conftest*
5072fi
5073
5074if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5075 echo "$ac_t""yes" 1>&6
5076 cat >> confdefs.h <<EOF
5077#define CRAY_STACKSEG_END $ac_func
5078EOF
5079
5080 break
5081else
5082 echo "$ac_t""no" 1>&6
5083fi
5084
5085done
5086fi
5087
5088echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00005089echo "configure:5090: checking stack direction for C alloca" >&5
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005090if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5091 echo $ac_n "(cached) $ac_c" 1>&6
5092else
5093 if test "$cross_compiling" = yes; then
5094 ac_cv_c_stack_direction=0
5095else
5096 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005097#line 5098 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005098#include "confdefs.h"
5099find_stack_direction ()
5100{
5101 static char *addr = 0;
5102 auto char dummy;
5103 if (addr == 0)
5104 {
5105 addr = &dummy;
5106 return find_stack_direction ();
5107 }
5108 else
5109 return (&dummy > addr) ? 1 : -1;
5110}
5111main ()
5112{
5113 exit (find_stack_direction() < 0);
5114}
5115EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005116if { (eval echo configure:5117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005117then
5118 ac_cv_c_stack_direction=1
5119else
5120 echo "configure: failed program was:" >&5
5121 cat conftest.$ac_ext >&5
5122 rm -fr conftest*
5123 ac_cv_c_stack_direction=-1
5124fi
5125rm -fr conftest*
5126fi
5127
5128fi
5129
5130echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5131cat >> confdefs.h <<EOF
5132#define STACK_DIRECTION $ac_cv_c_stack_direction
5133EOF
5134
5135fi
5136
5137for ac_func in \
Eric Pouechf61d7e02000-04-29 16:44:19 +00005138 __libc_fork \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005139 _lwp_create \
5140 clone \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005141 getnetbyaddr \
5142 getnetbyname \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005143 getpagesize \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005144 getprotobyname \
5145 getprotobynumber \
5146 getservbyport \
5147 getsockopt \
5148 inet_network \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005149 memmove \
5150 rfork \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005151 select \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005152 sendmsg \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005153 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005154 sigaltstack \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005155 statfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +00005156 strcasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005157 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +00005158 strncasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005159 tcgetattr \
5160 timegm \
5161 usleep \
5162 vfscanf \
5163 wait4 \
5164 waitpid \
5165
5166do
5167echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00005168echo "configure:5169: checking for $ac_func" >&5
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005169if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5170 echo $ac_n "(cached) $ac_c" 1>&6
5171else
5172 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005173#line 5174 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005174#include "confdefs.h"
5175/* System header to define __stub macros and hopefully few prototypes,
5176 which can conflict with char $ac_func(); below. */
5177#include <assert.h>
5178/* Override any gcc2 internal prototype to avoid an error. */
5179/* We use char because int might match the return type of a gcc2
5180 builtin and then its argument prototype would still apply. */
5181char $ac_func();
5182
5183int main() {
5184
5185/* The GNU C library defines this for functions which it implements
5186 to always fail with ENOSYS. Some functions are actually named
5187 something starting with __ and the normal name is an alias. */
5188#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5189choke me
5190#else
5191$ac_func();
5192#endif
5193
5194; return 0; }
5195EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005196if { (eval echo configure:5197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005197 rm -rf conftest*
5198 eval "ac_cv_func_$ac_func=yes"
5199else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005200 echo "configure: failed program was:" >&5
5201 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005202 rm -rf conftest*
5203 eval "ac_cv_func_$ac_func=no"
5204fi
5205rm -f conftest*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005206fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005207
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005208if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5209 echo "$ac_t""yes" 1>&6
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00005210 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005211 cat >> confdefs.h <<EOF
5212#define $ac_tr_func 1
5213EOF
5214
5215else
5216 echo "$ac_t""no" 1>&6
5217fi
5218done
5219
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005220
5221
5222for ac_hdr in \
Patrik Stridvall96336321999-10-24 22:13:47 +00005223 a.out.h \
5224 a_out.h \
5225 arpa/inet.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005226 arpa/nameser.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005227 elf.h \
5228 float.h \
5229 libio.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005230 link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005231 linux/cdrom.h \
Marcus Meissner028e9a11999-08-04 15:07:56 +00005232 linux/joystick.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005233 linux/ucdrom.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005234 net/if.h \
5235 netinet/in.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005236 netinet/tcp.h \
Marcus Meissner2d7be871999-12-05 23:06:40 +00005237 pty.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005238 resolv.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005239 sched.h \
5240 socket.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005241 strings.h \
5242 sys/cdio.h \
Howard Abrams13277481999-07-10 13:16:29 +00005243 sys/errno.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005244 sys/file.h \
5245 sys/filio.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005246 sys/ipc.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005247 sys/lwp.h \
Howard Abrams13277481999-07-10 13:16:29 +00005248 sys/mman.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005249 sys/modem.h \
5250 sys/mount.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005251 sys/msg.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005252 sys/param.h \
Ulrich Weigand8a1bdb32000-01-30 22:22:22 +00005253 sys/reg.h \
Howard Abrams13277481999-07-10 13:16:29 +00005254 sys/signal.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005255 sys/shm.h \
5256 sys/socket.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005257 sys/sockio.h \
5258 sys/statfs.h \
5259 sys/strtio.h \
5260 sys/syscall.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005261 sys/wait.h \
5262 sys/v86.h \
5263 sys/v86intr.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005264 sys/vfs.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005265 sys/vm86.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005266 syscall.h \
5267 ucontext.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005268 wctype.h \
5269
Alexandre Julliard02e90081998-01-04 17:49:09 +00005270do
5271ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5272echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00005273echo "configure:5274: checking for $ac_hdr" >&5
Alexandre Julliard02e90081998-01-04 17:49:09 +00005274if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5275 echo $ac_n "(cached) $ac_c" 1>&6
5276else
5277 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005278#line 5279 "configure"
Alexandre Julliard02e90081998-01-04 17:49:09 +00005279#include "confdefs.h"
5280#include <$ac_hdr>
5281EOF
5282ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Lionel Ulmer51177f92000-05-01 14:25:49 +00005283{ (eval echo configure:5284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00005284ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliard02e90081998-01-04 17:49:09 +00005285if test -z "$ac_err"; then
5286 rm -rf conftest*
5287 eval "ac_cv_header_$ac_safe=yes"
5288else
5289 echo "$ac_err" >&5
5290 echo "configure: failed program was:" >&5
5291 cat conftest.$ac_ext >&5
5292 rm -rf conftest*
5293 eval "ac_cv_header_$ac_safe=no"
5294fi
5295rm -f conftest*
5296fi
5297if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5298 echo "$ac_t""yes" 1>&6
5299 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5300 cat >> confdefs.h <<EOF
5301#define $ac_tr_hdr 1
5302EOF
5303
5304else
5305 echo "$ac_t""no" 1>&6
5306fi
5307done
5308
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005309echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00005310echo "configure:5311: checking whether stat file-mode macros are broken" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005311if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5312 echo $ac_n "(cached) $ac_c" 1>&6
5313else
5314 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005315#line 5316 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005316#include "confdefs.h"
5317#include <sys/types.h>
5318#include <sys/stat.h>
5319
5320#if defined(S_ISBLK) && defined(S_IFDIR)
5321# if S_ISBLK (S_IFDIR)
5322You lose.
5323# endif
5324#endif
5325
5326#if defined(S_ISBLK) && defined(S_IFCHR)
5327# if S_ISBLK (S_IFCHR)
5328You lose.
5329# endif
5330#endif
5331
5332#if defined(S_ISLNK) && defined(S_IFREG)
5333# if S_ISLNK (S_IFREG)
5334You lose.
5335# endif
5336#endif
5337
5338#if defined(S_ISSOCK) && defined(S_IFREG)
5339# if S_ISSOCK (S_IFREG)
5340You lose.
5341# endif
5342#endif
5343
5344EOF
5345if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5346 egrep "You lose" >/dev/null 2>&1; then
5347 rm -rf conftest*
5348 ac_cv_header_stat_broken=yes
5349else
5350 rm -rf conftest*
5351 ac_cv_header_stat_broken=no
5352fi
5353rm -f conftest*
5354
5355fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00005356
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005357echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5358if test $ac_cv_header_stat_broken = yes; then
5359 cat >> confdefs.h <<\EOF
5360#define STAT_MACROS_BROKEN 1
5361EOF
5362
5363fi
5364
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005365
5366
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005367echo $ac_n "checking for working const""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00005368echo "configure:5369: checking for working const" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005369if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5370 echo $ac_n "(cached) $ac_c" 1>&6
5371else
5372 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005373#line 5374 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005374#include "confdefs.h"
5375
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005376int main() {
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005377
5378/* Ultrix mips cc rejects this. */
Eric Pouech18ad24a2000-01-16 22:16:33 +00005379typedef int charset[2]; const charset x = {0,0};
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005380/* SunOS 4.1.1 cc rejects this. */
5381char const *const *ccp;
5382char **p;
5383/* NEC SVR4.0.2 mips cc rejects this. */
5384struct point {int x, y;};
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00005385static struct point const zero = {0,0};
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005386/* AIX XL C 1.02.0.0 rejects this.
5387 It does not let you subtract one const X* pointer from another in an arm
5388 of an if-expression whose if-part is not a constant expression */
5389const char *g = "string";
5390ccp = &g + (g ? g-g : 0);
5391/* HPUX 7.0 cc rejects these. */
5392++ccp;
5393p = (char**) ccp;
5394ccp = (char const *const *) p;
5395{ /* SCO 3.2v4 cc rejects this. */
5396 char *t;
5397 char const *s = 0 ? (char *) 0 : (char const *) 0;
5398
5399 *t++ = 0;
5400}
5401{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5402 int x[] = {25, 17};
5403 const int *foo = &x[0];
5404 ++foo;
5405}
5406{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5407 typedef const int *iptr;
5408 iptr p = 0;
5409 ++p;
5410}
5411{ /* AIX XL C 1.02.0.0 rejects this saying
5412 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5413 struct s { int j; const int *ap[3]; };
5414 struct s *b; b->j = 5;
5415}
5416{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5417 const int foo = 10;
5418}
5419
5420; return 0; }
5421EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005422if { (eval echo configure:5423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005423 rm -rf conftest*
5424 ac_cv_c_const=yes
5425else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005426 echo "configure: failed program was:" >&5
5427 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005428 rm -rf conftest*
5429 ac_cv_c_const=no
5430fi
5431rm -f conftest*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005432fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00005433
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005434echo "$ac_t""$ac_cv_c_const" 1>&6
5435if test $ac_cv_c_const = no; then
5436 cat >> confdefs.h <<\EOF
5437#define const
5438EOF
5439
5440fi
5441
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00005442echo $ac_n "checking for inline""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00005443echo "configure:5444: checking for inline" >&5
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00005444if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5445 echo $ac_n "(cached) $ac_c" 1>&6
5446else
5447 ac_cv_c_inline=no
5448for ac_kw in inline __inline__ __inline; do
5449 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005450#line 5451 "configure"
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00005451#include "confdefs.h"
5452
5453int main() {
Eric Pouech18ad24a2000-01-16 22:16:33 +00005454} int $ac_kw foo() {
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00005455; return 0; }
5456EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005457if { (eval echo configure:5458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00005458 rm -rf conftest*
5459 ac_cv_c_inline=$ac_kw; break
5460else
5461 echo "configure: failed program was:" >&5
5462 cat conftest.$ac_ext >&5
5463fi
5464rm -f conftest*
5465done
5466
5467fi
5468
5469echo "$ac_t""$ac_cv_c_inline" 1>&6
5470case "$ac_cv_c_inline" in
5471 inline | yes) ;;
5472 no) cat >> confdefs.h <<\EOF
5473#define inline
5474EOF
5475 ;;
5476 *) cat >> confdefs.h <<EOF
5477#define inline $ac_cv_c_inline
5478EOF
5479 ;;
5480esac
5481
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005482echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00005483echo "configure:5484: checking for ANSI C header files" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005484if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5485 echo $ac_n "(cached) $ac_c" 1>&6
5486else
5487 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005488#line 5489 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005489#include "confdefs.h"
5490#include <stdlib.h>
5491#include <stdarg.h>
5492#include <string.h>
5493#include <float.h>
5494EOF
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00005495ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Lionel Ulmer51177f92000-05-01 14:25:49 +00005496{ (eval echo configure:5497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00005497ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005498if test -z "$ac_err"; then
5499 rm -rf conftest*
5500 ac_cv_header_stdc=yes
5501else
5502 echo "$ac_err" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005503 echo "configure: failed program was:" >&5
5504 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005505 rm -rf conftest*
5506 ac_cv_header_stdc=no
5507fi
5508rm -f conftest*
5509
5510if test $ac_cv_header_stdc = yes; then
5511 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5512cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005513#line 5514 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005514#include "confdefs.h"
5515#include <string.h>
5516EOF
5517if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5518 egrep "memchr" >/dev/null 2>&1; then
5519 :
5520else
5521 rm -rf conftest*
5522 ac_cv_header_stdc=no
5523fi
5524rm -f conftest*
5525
5526fi
5527
5528if test $ac_cv_header_stdc = yes; then
5529 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5530cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005531#line 5532 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005532#include "confdefs.h"
5533#include <stdlib.h>
5534EOF
5535if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5536 egrep "free" >/dev/null 2>&1; then
5537 :
5538else
5539 rm -rf conftest*
5540 ac_cv_header_stdc=no
5541fi
5542rm -f conftest*
5543
5544fi
5545
5546if test $ac_cv_header_stdc = yes; then
5547 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5548if test "$cross_compiling" = yes; then
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00005549 :
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005550else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005551 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005552#line 5553 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005553#include "confdefs.h"
5554#include <ctype.h>
5555#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5556#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5557#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5558int main () { int i; for (i = 0; i < 256; i++)
5559if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5560exit (0); }
5561
5562EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005563if { (eval echo configure:5564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005564then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005565 :
5566else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005567 echo "configure: failed program was:" >&5
5568 cat conftest.$ac_ext >&5
5569 rm -fr conftest*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005570 ac_cv_header_stdc=no
5571fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005572rm -fr conftest*
5573fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005574
5575fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005576fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00005577
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005578echo "$ac_t""$ac_cv_header_stdc" 1>&6
5579if test $ac_cv_header_stdc = yes; then
5580 cat >> confdefs.h <<\EOF
5581#define STDC_HEADERS 1
5582EOF
5583
5584fi
5585
5586echo $ac_n "checking for size_t""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00005587echo "configure:5588: checking for size_t" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005588if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5589 echo $ac_n "(cached) $ac_c" 1>&6
5590else
5591 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005592#line 5593 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005593#include "confdefs.h"
5594#include <sys/types.h>
5595#if STDC_HEADERS
5596#include <stdlib.h>
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005597#include <stddef.h>
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005598#endif
5599EOF
5600if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Eric Pouech18ad24a2000-01-16 22:16:33 +00005601 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005602 rm -rf conftest*
5603 ac_cv_type_size_t=yes
5604else
5605 rm -rf conftest*
5606 ac_cv_type_size_t=no
5607fi
5608rm -f conftest*
5609
5610fi
5611echo "$ac_t""$ac_cv_type_size_t" 1>&6
5612if test $ac_cv_type_size_t = no; then
5613 cat >> confdefs.h <<\EOF
5614#define size_t unsigned
5615EOF
5616
5617fi
5618
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00005619echo $ac_n "checking size of long long""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00005620echo "configure:5621: checking size of long long" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00005621if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
5622 echo $ac_n "(cached) $ac_c" 1>&6
5623else
5624 if test "$cross_compiling" = yes; then
5625 ac_cv_sizeof_long_long=0
5626else
5627 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005628#line 5629 "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00005629#include "confdefs.h"
5630#include <stdio.h>
5631main()
5632{
5633 FILE *f=fopen("conftestval", "w");
5634 if (!f) exit(1);
5635 fprintf(f, "%d\n", sizeof(long long));
5636 exit(0);
5637}
5638EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005639if { (eval echo configure:5640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00005640then
5641 ac_cv_sizeof_long_long=`cat conftestval`
5642else
5643 echo "configure: failed program was:" >&5
5644 cat conftest.$ac_ext >&5
5645 rm -fr conftest*
5646 ac_cv_sizeof_long_long=0
5647fi
5648rm -fr conftest*
5649fi
5650
5651fi
5652echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
5653cat >> confdefs.h <<EOF
5654#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5655EOF
5656
5657
5658
Marcus Meissner028e9a11999-08-04 15:07:56 +00005659if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00005660then
Marcus Meissner028e9a11999-08-04 15:07:56 +00005661 echo $ac_n "checking "whether linux/joystick.h uses the Linux 2.2+ API"""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00005662echo "configure:5663: checking "whether linux/joystick.h uses the Linux 2.2+ API"" >&5
Marcus Meissner028e9a11999-08-04 15:07:56 +00005663if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00005664 echo $ac_n "(cached) $ac_c" 1>&6
5665else
5666 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005667#line 5668 "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00005668#include "confdefs.h"
5669
Marcus Meissner028e9a11999-08-04 15:07:56 +00005670 #include <sys/ioctl.h>
5671 #include <linux/joystick.h>
5672
5673 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +00005674 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
5675 #error "no 2.2 header"
5676 #endif
Marcus Meissner028e9a11999-08-04 15:07:56 +00005677
5678int main() {
5679/*empty*/
5680; return 0; }
5681EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005682if { (eval echo configure:5683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Marcus Meissner028e9a11999-08-04 15:07:56 +00005683 rm -rf conftest*
5684 wine_cv_linux_joystick_22_api=yes
5685else
5686 echo "configure: failed program was:" >&5
5687 cat conftest.$ac_ext >&5
5688 rm -rf conftest*
5689 wine_cv_linux_joystick_22_api=no
5690fi
5691rm -f conftest*
5692
5693fi
5694
5695echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
Rein Klazes87d224a2000-04-24 17:33:49 +00005696 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +00005697 then
5698 cat >> confdefs.h <<\EOF
5699#define HAVE_LINUX_22_JOYSTICK_API 1
5700EOF
5701
5702 fi
5703fi
5704
5705
5706if test "$ac_cv_header_sys_vfs_h" = "yes"
5707then
5708 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00005709echo "configure:5710: checking "whether sys/vfs.h defines statfs"" >&5
Marcus Meissner028e9a11999-08-04 15:07:56 +00005710if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
5711 echo $ac_n "(cached) $ac_c" 1>&6
5712else
5713 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005714#line 5715 "configure"
Marcus Meissner028e9a11999-08-04 15:07:56 +00005715#include "confdefs.h"
5716
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00005717 #include <sys/types.h>
5718 #ifdef HAVE_SYS_PARAM_H
5719 # include <sys/param.h>
5720 #endif
5721 #include <sys/vfs.h>
5722
5723int main() {
5724
5725 struct statfs stfs;
5726
5727 memset(&stfs,0,sizeof(stfs));
5728
5729; return 0; }
5730EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005731if { (eval echo configure:5732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00005732 rm -rf conftest*
5733 wine_cv_sys_vfs_has_statfs=yes
5734else
5735 echo "configure: failed program was:" >&5
5736 cat conftest.$ac_ext >&5
5737 rm -rf conftest*
5738 wine_cv_sys_vfs_has_statfs=no
5739
5740fi
5741rm -f conftest*
5742
5743fi
5744
5745echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
5746 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
5747 then
5748 cat >> confdefs.h <<\EOF
5749#define STATFS_DEFINED_BY_SYS_VFS 1
5750EOF
5751
5752 fi
5753fi
5754
5755if test "$ac_cv_header_sys_statfs_h" = "yes"
5756then
5757 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00005758echo "configure:5759: checking "whether sys/statfs.h defines statfs"" >&5
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00005759if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
5760 echo $ac_n "(cached) $ac_c" 1>&6
5761else
5762 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005763#line 5764 "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00005764#include "confdefs.h"
5765
5766 #include <sys/types.h>
5767 #ifdef HAVE_SYS_PARAM_H
5768 # include <sys/param.h>
5769 #endif
5770 #include <sys/statfs.h>
5771
5772int main() {
5773
5774 struct statfs stfs;
5775
5776; return 0; }
5777EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005778if { (eval echo configure:5779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00005779 rm -rf conftest*
5780 wine_cv_sys_statfs_has_statfs=yes
5781else
5782 echo "configure: failed program was:" >&5
5783 cat conftest.$ac_ext >&5
5784 rm -rf conftest*
5785 wine_cv_sys_statfs_has_statfs=no
5786
5787fi
5788rm -f conftest*
5789
5790fi
5791
5792echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
5793 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
5794 then
5795 cat >> confdefs.h <<\EOF
5796#define STATFS_DEFINED_BY_SYS_STATFS 1
5797EOF
5798
5799 fi
5800fi
5801
5802if test "$ac_cv_header_sys_mount_h" = "yes"
5803then
5804 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00005805echo "configure:5806: checking "whether sys/mount.h defines statfs"" >&5
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00005806if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
5807 echo $ac_n "(cached) $ac_c" 1>&6
5808else
5809 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005810#line 5811 "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00005811#include "confdefs.h"
5812
5813 #include <sys/types.h>
5814 #ifdef HAVE_SYS_PARAM_H
5815 # include <sys/param.h>
5816 #endif
5817 #include <sys/mount.h>
5818
5819int main() {
5820
5821 struct statfs stfs;
5822
5823; return 0; }
5824EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005825if { (eval echo configure:5826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00005826 rm -rf conftest*
5827 wine_cv_sys_mount_has_statfs=yes
5828else
5829 echo "configure: failed program was:" >&5
5830 cat conftest.$ac_ext >&5
5831 rm -rf conftest*
5832 wine_cv_sys_mount_has_statfs=no
5833
5834fi
5835rm -f conftest*
5836
5837fi
5838
5839echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
5840 if test "$wine_cv_sys_mount_has_statfs" = "yes"
5841 then
5842 cat >> confdefs.h <<\EOF
5843#define STATFS_DEFINED_BY_SYS_MOUNT 1
5844EOF
5845
5846 fi
5847fi
5848
5849
5850echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00005851echo "configure:5852: checking "for statfs.f_bfree"" >&5
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00005852if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
5853 echo $ac_n "(cached) $ac_c" 1>&6
5854else
5855 if test "x$statfs_bfree" = "xno"
5856 then
5857 wine_cv_statfs_bfree=no
5858 else
5859 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005860#line 5861 "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00005861#include "confdefs.h"
5862
5863 #include <sys/types.h>
5864 #ifdef HAVE_SYS_PARAM_H
5865 # include <sys/param.h>
5866 #endif
5867 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5868 # include <sys/mount.h>
5869 #else
5870 # ifdef STATFS_DEFINED_BY_SYS_VFS
5871 # include <sys/vfs.h>
5872 # else
5873 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5874 # include <sys/statfs.h>
5875 # endif
5876 # endif
5877 #endif
5878
5879int main() {
5880
5881 struct statfs stfs;
5882
5883 stfs.f_bfree++;
5884
5885; return 0; }
5886EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005887if { (eval echo configure:5888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00005888 rm -rf conftest*
5889 wine_cv_statfs_bfree=yes
5890else
5891 echo "configure: failed program was:" >&5
5892 cat conftest.$ac_ext >&5
5893 rm -rf conftest*
5894 wine_cv_statfs_bfree=no
5895
5896fi
5897rm -f conftest*
5898 fi
5899fi
5900
5901echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
5902if test "$wine_cv_statfs_bfree" = "yes"
5903then
5904 cat >> confdefs.h <<\EOF
5905#define STATFS_HAS_BFREE 1
5906EOF
5907
5908fi
5909
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00005910echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00005911echo "configure:5912: checking "for statfs.f_bavail"" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00005912if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
5913 echo $ac_n "(cached) $ac_c" 1>&6
5914else
5915 if test "x$statfs_bavail" = "xno"
5916 then
5917 wine_cv_statfs_bavail=no
5918 else
5919 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005920#line 5921 "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00005921#include "confdefs.h"
5922
Alexandre Julliard46ea8b31998-05-03 19:01:20 +00005923 #include <sys/types.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00005924 #ifdef HAVE_SYS_PARAM_H
5925 # include <sys/param.h>
5926 #endif
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00005927 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00005928 # include <sys/mount.h>
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00005929 #else
5930 # ifdef STATFS_DEFINED_BY_SYS_VFS
5931 # include <sys/vfs.h>
5932 # else
5933 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5934 # include <sys/statfs.h>
5935 # endif
5936 # endif
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00005937 #endif
5938
5939int main() {
5940
5941 struct statfs stfs;
5942
5943 stfs.f_bavail++;
5944
5945; return 0; }
5946EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005947if { (eval echo configure:5948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00005948 rm -rf conftest*
5949 wine_cv_statfs_bavail=yes
5950else
5951 echo "configure: failed program was:" >&5
5952 cat conftest.$ac_ext >&5
5953 rm -rf conftest*
5954 wine_cv_statfs_bavail=no
5955
5956fi
5957rm -f conftest*
5958 fi
5959fi
5960
5961echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
5962if test "$wine_cv_statfs_bavail" = "yes"
5963then
5964 cat >> confdefs.h <<\EOF
5965#define STATFS_HAS_BAVAIL 1
5966EOF
5967
5968fi
5969
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00005970
Alexandre Julliard829fe321998-07-26 14:27:39 +00005971echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00005972echo "configure:5973: checking "for msg_accrights in struct msghdr"" >&5
Alexandre Julliard829fe321998-07-26 14:27:39 +00005973if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
5974 echo $ac_n "(cached) $ac_c" 1>&6
5975else
5976 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005977#line 5978 "configure"
Alexandre Julliard829fe321998-07-26 14:27:39 +00005978#include "confdefs.h"
5979#include <sys/types.h>
5980#include <sys/socket.h>
5981int main() {
5982struct msghdr hdr; hdr.msg_accrights=0
5983; return 0; }
5984EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00005985if { (eval echo configure:5986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliard829fe321998-07-26 14:27:39 +00005986 rm -rf conftest*
5987 ac_cv_c_msg_accrights="yes"
5988else
5989 echo "configure: failed program was:" >&5
5990 cat conftest.$ac_ext >&5
5991 rm -rf conftest*
5992 ac_cv_c_msg_accrights="no"
5993fi
5994rm -f conftest*
5995fi
5996
5997echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
5998if test "$ac_cv_c_msg_accrights" = "yes"
5999then
6000 cat >> confdefs.h <<\EOF
6001#define HAVE_MSGHDR_ACCRIGHTS 1
6002EOF
6003
6004fi
6005
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00006006
Juergen Lock2d33ab92000-02-13 16:03:29 +00006007echo $ac_n "checking "for sun_len in struct sockaddr_un"""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00006008echo "configure:6009: checking "for sun_len in struct sockaddr_un"" >&5
Juergen Lock2d33ab92000-02-13 16:03:29 +00006009if eval "test \"`echo '$''{'ac_cv_c_sun_len'+set}'`\" = set"; then
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00006010 echo $ac_n "(cached) $ac_c" 1>&6
6011else
6012 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00006013#line 6014 "configure"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00006014#include "confdefs.h"
Juergen Lock2d33ab92000-02-13 16:03:29 +00006015#include <sys/types.h>
6016#include <sys/socket.h>
6017#include <sys/un.h>
6018int main() {
6019static struct sockaddr_un addr; addr.sun_len = 1
6020; return 0; }
6021EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00006022if { (eval echo configure:6023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Juergen Lock2d33ab92000-02-13 16:03:29 +00006023 rm -rf conftest*
6024 ac_cv_c_sun_len="yes"
6025else
6026 echo "configure: failed program was:" >&5
6027 cat conftest.$ac_ext >&5
6028 rm -rf conftest*
6029 ac_cv_c_sun_len="no"
6030fi
6031rm -f conftest*
6032fi
6033
6034echo "$ac_t""$ac_cv_c_sun_len" 1>&6
6035if test "$ac_cv_c_sun_len" = "yes"
6036then
6037 cat >> confdefs.h <<\EOF
6038#define HAVE_SOCKADDR_SUN_LEN 1
6039EOF
6040
6041fi
6042
6043
6044echo $ac_n "checking "whether we need to define __i386__"""... $ac_c" 1>&6
Lionel Ulmer51177f92000-05-01 14:25:49 +00006045echo "configure:6046: checking "whether we need to define __i386__"" >&5
Juergen Lock2d33ab92000-02-13 16:03:29 +00006046if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6047 echo $ac_n "(cached) $ac_c" 1>&6
6048else
6049 cat > conftest.$ac_ext <<EOF
Lionel Ulmer51177f92000-05-01 14:25:49 +00006050#line 6051 "configure"
Juergen Lock2d33ab92000-02-13 16:03:29 +00006051#include "confdefs.h"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00006052#if (defined(i386) || defined(__i386)) && !defined(__i386__)
6053yes
6054#endif
6055EOF
6056if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6057 egrep "yes" >/dev/null 2>&1; then
6058 rm -rf conftest*
6059 ac_cv_cpp_def_i386="yes"
6060else
6061 rm -rf conftest*
6062 ac_cv_cpp_def_i386="no"
6063fi
6064rm -f conftest*
6065
6066fi
6067
6068echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
6069if test "$ac_cv_cpp_def_i386" = "yes"
6070then
6071 CFLAGS="$CFLAGS -D__i386__"
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006072 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00006073fi
6074
Marcus Meissnera7f5cb51999-04-16 08:47:41 +00006075GCC_NO_BUILTIN=""
6076if test "$GCC" = "yes"
6077then
6078 GCC_NO_BUILTIN="-fno-builtin"
6079fi
6080
6081
Alexandre Julliard829fe321998-07-26 14:27:39 +00006082
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +00006083
6084
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006085MAKE_RULES=Make.rules
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006086
6087
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +00006088MAKE_DLL_RULES=dlls/Makedll.rules
6089
6090
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006091trap '' 1 2 15
6092cat > confcache <<\EOF
6093# This file is a shell script that caches the results of configure
6094# tests run on this system so they can be shared between configure
6095# scripts and configure runs. It is not useful on other systems.
6096# If it contains results you don't want to keep, you may remove or edit it.
6097#
6098# By default, configure uses ./config.cache as the cache file,
6099# creating it if it does not exist already. You can give configure
6100# the --cache-file=FILE option to use a different cache file; that is
6101# what configure does when it calls configure scripts in
6102# subdirectories, so they share the cache.
6103# Giving --cache-file=/dev/null disables caching, for debugging configure.
6104# config.status only pays attention to the cache file if you give it the
6105# --recheck option to rerun configure.
6106#
6107EOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006108# The following way of writing the cache mishandles newlines in values,
6109# but we know of no workaround that is simple, portable, and efficient.
6110# So, don't put newlines in cache variables' values.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006111# Ultrix sh set writes to stderr and can't be redirected directly,
6112# and sets the high bit in the cache file unless we assign to the vars.
6113(set) 2>&1 |
Eric Pouech18ad24a2000-01-16 22:16:33 +00006114 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006115 *ac_space=\ *)
6116 # `set' does not quote correctly, so add quotes (double-quote substitution
6117 # turns \\\\ into \\, and sed turns \\ into \).
6118 sed -n \
6119 -e "s/'/'\\\\''/g" \
6120 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6121 ;;
6122 *)
6123 # `set' quotes correctly as required by POSIX, so do not add quotes.
6124 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6125 ;;
6126 esac >> confcache
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006127if cmp -s $cache_file confcache; then
6128 :
6129else
6130 if test -w $cache_file; then
6131 echo "updating cache $cache_file"
6132 cat confcache > $cache_file
6133 else
6134 echo "not updating unwritable cache $cache_file"
6135 fi
6136fi
6137rm -f confcache
6138
6139trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6140
6141test "x$prefix" = xNONE && prefix=$ac_default_prefix
6142# Let make expand exec_prefix.
6143test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6144
6145# Any assignment to VPATH causes Sun make to only execute
6146# the first set of double-colon rules, so remove it if not needed.
6147# If there is a colon in the path, we need to keep it.
6148if test "x$srcdir" = x.; then
6149 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6150fi
6151
6152trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6153
Alexandre Julliard18f92e71996-07-17 20:02:21 +00006154DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006155
6156# Without the "./", some shells look in PATH for config.status.
6157: ${CONFIG_STATUS=./config.status}
6158
6159echo creating $CONFIG_STATUS
6160rm -f $CONFIG_STATUS
6161cat > $CONFIG_STATUS <<EOF
6162#! /bin/sh
6163# Generated automatically by configure.
6164# Run this file to recreate the current configuration.
6165# This directory was configured as follows,
6166# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6167#
6168# $0 $ac_configure_args
6169#
6170# Compiler output produced by configure, useful for debugging
6171# configure, is in ./config.log if it exists.
6172
6173ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6174for ac_option
6175do
6176 case "\$ac_option" in
6177 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6178 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6179 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6180 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Eric Pouech18ad24a2000-01-16 22:16:33 +00006181 echo "$CONFIG_STATUS generated by autoconf version 2.13"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006182 exit 0 ;;
6183 -help | --help | --hel | --he | --h)
6184 echo "\$ac_cs_usage"; exit 0 ;;
6185 *) echo "\$ac_cs_usage"; exit 1 ;;
6186 esac
6187done
6188
6189ac_given_srcdir=$srcdir
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006190ac_given_INSTALL="$INSTALL"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006191
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006192trap 'rm -fr `echo "
6193Make.rules
6194Makefile
Joseph Pranevich791cd6a1998-12-02 19:58:08 +00006195console/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006196controls/Makefile
6197debugger/Makefile
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +00006198dlls/Makedll.rules
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00006199dlls/Makefile
Juergen Schmiedf7b0de31999-01-03 12:48:29 +00006200dlls/advapi32/Makefile
Marcus Meissnerb3d1a221999-03-13 18:07:44 +00006201dlls/avifil32/Makefile
Alexandre Julliarda0d77311998-09-13 16:32:00 +00006202dlls/comctl32/Makefile
Klaas van Gendc9127491999-02-28 20:05:11 +00006203dlls/commdlg/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00006204dlls/crtdll/Makefile
6205dlls/dciman32/Makefile
Alexandre Julliardddce6522000-03-17 16:58:10 +00006206dlls/ddraw/Makefile
6207dlls/dinput/Makefile
Andreas Mohra2da8681999-12-06 01:20:00 +00006208dlls/display/Makefile
Peter Hunnisett22b861c1999-09-28 16:35:32 +00006209dlls/dplayx/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00006210dlls/dsound/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00006211dlls/gdi/Makefile
Francois Gougetedf3e431999-11-07 21:22:17 +00006212dlls/icmp/Makefile
Patrik Stridvall8295c861998-10-11 17:09:05 +00006213dlls/imagehlp/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00006214dlls/imm32/Makefile
6215dlls/lzexpand/Makefile
Andreas Mohra2da8681999-12-06 01:20:00 +00006216dlls/mouse/Makefile
Ulrich Weigandbb1984e1999-08-07 14:32:33 +00006217dlls/mpr/Makefile
Patrik Stridvall8295c861998-10-11 17:09:05 +00006218dlls/msacm/Makefile
6219dlls/msacm32/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00006220dlls/msnet32/Makefile
6221dlls/msvideo/Makefile
Marcus Meissner51505b11998-11-01 14:00:21 +00006222dlls/ntdll/Makefile
Alexandre Julliard8551f8c1999-12-11 23:56:46 +00006223dlls/odbc32/Makefile
Ulrich Weigand2a722f41999-09-19 18:36:53 +00006224dlls/ole32/Makefile
6225dlls/oleaut32/Makefile
6226dlls/olecli/Makefile
6227dlls/oledlg/Makefile
Sean Langley58c71d42000-02-07 16:26:56 +00006228dlls/olepro32/Makefile
Ulrich Weigand2a722f41999-09-19 18:36:53 +00006229dlls/olesvr/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006230dlls/psapi/Makefile
Marcus Meissner30ef8771998-12-11 13:26:26 +00006231dlls/rasapi32/Makefile
Hidenori Takeshimae75f9fb2000-05-03 18:12:19 +00006232dlls/richedit/Makefile
Andreas Mohr027187d2000-01-29 21:09:02 +00006233dlls/setupx/Makefile
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00006234dlls/shell32/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00006235dlls/sound/Makefile
6236dlls/stress/Makefile
Andreas Mohr5aa96c11999-03-14 12:34:25 +00006237dlls/tapi32/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00006238dlls/ttydrv/Makefile
Alexandre Julliard819fa8c2000-04-11 20:07:00 +00006239dlls/urlmon/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00006240dlls/user/Makefile
Ulrich Weigandd43a46a1999-01-31 10:11:04 +00006241dlls/version/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00006242dlls/win32s/Makefile
Ulrich Weigand4b32fd01999-07-15 14:51:40 +00006243dlls/win87em/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006244dlls/winaspi/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00006245dlls/windebug/Makefile
6246dlls/wing/Makefile
Alexandre Julliard819fa8c2000-04-11 20:07:00 +00006247dlls/wininet/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00006248dlls/winmm/Makefile
Eric Pouech2a3b0a12000-02-26 13:14:04 +00006249dlls/winmm/joystick/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00006250dlls/winmm/mcianim/Makefile
6251dlls/winmm/mciavi/Makefile
6252dlls/winmm/mcicda/Makefile
6253dlls/winmm/mciseq/Makefile
6254dlls/winmm/mciwave/Makefile
Eric Pouechabe72271999-10-31 02:23:49 +00006255dlls/winmm/midimap/Makefile
6256dlls/winmm/wavemap/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00006257dlls/winmm/wineoss/Makefile
Alexandre Julliardde078692000-01-23 22:07:15 +00006258dlls/winsock/Makefile
Huw D M Daviese39b6761999-05-17 16:20:51 +00006259dlls/winspool/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00006260dlls/ttydrv/Makefile
6261dlls/x11drv/Makefile
Alexandre Julliardd37eb361997-07-20 16:23:21 +00006262documentation/Makefile
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +00006263documentation/wine.conf.man
Marcus Meissner5a70c971999-06-05 09:00:21 +00006264documentation/wine.man
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00006265files/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00006266graphics/Makefile
Huw D M Davies3a24f3f1999-05-02 10:15:16 +00006267graphics/enhmetafiledrv/Makefile
Alexandre Julliardbf9130a1996-10-13 17:45:47 +00006268graphics/metafiledrv/Makefile
Alexandre Julliardebfc0fe1998-06-28 18:40:26 +00006269graphics/psdrv/Makefile
Patrik Stridvall24110281999-02-04 10:09:54 +00006270graphics/ttydrv/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00006271graphics/win16drv/Makefile
6272graphics/x11drv/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006273if1632/Makefile
James Juranc70dc831999-02-13 12:18:33 +00006274include/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006275library/Makefile
6276libtest/Makefile
6277loader/Makefile
Alexandre Julliard46ea8b31998-05-03 19:01:20 +00006278loader/ne/Makefile
Alexandre Julliard767e6f61998-08-09 12:47:43 +00006279loader/dos/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006280memory/Makefile
6281misc/Makefile
6282miscemu/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00006283msdos/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006284objects/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00006285ole/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00006286programs/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00006287programs/clock/Makefile
Eric Williams30008a01999-02-05 17:40:47 +00006288programs/cmdlgtst/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006289programs/control/Makefile
Marcus Meissner32b32d81999-01-29 15:12:10 +00006290programs/avitools/Makefile
Morten Eriksen55bcda81999-09-22 15:22:58 +00006291programs/osversioncheck/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00006292programs/notepad/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00006293programs/progman/Makefile
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006294programs/regtest/Makefile
Sylvain St.Germain1bb0e661999-03-14 14:00:22 +00006295programs/regapi/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00006296programs/view/Makefile
Dave Pickles74f440e1999-06-06 15:24:04 +00006297programs/wcmd/Makefile
Joshua Thielena3f23802000-03-15 19:06:39 +00006298programs/winemine/Makefile
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00006299programs/winhelp/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00006300programs/winver/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00006301relay32/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006302resources/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00006303scheduler/Makefile
Alexandre Julliard642d3131998-07-12 19:29:36 +00006304server/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006305tools/Makefile
John R. Sheetse61d33b2000-03-26 20:25:23 +00006306tools/cvdump/Makefile
Alexandre Julliarda845b881998-06-01 10:44:35 +00006307tools/wrc/Makefile
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00006308tsx11/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006309win32/Makefile
Patrik Stridvallea584721998-11-01 16:22:07 +00006310windows/Makefile
Patrik Stridvallf638aef1998-12-07 09:36:13 +00006311windows/ttydrv/Makefile
Patrik Stridvallea584721998-11-01 16:22:07 +00006312windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006313EOF
6314cat >> $CONFIG_STATUS <<EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006315
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006316# Protect against being on the right side of a sed subst in config.status.
6317sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6318 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006319$ac_vpsub
6320$extrasub
Eric Pouech18ad24a2000-01-16 22:16:33 +00006321s%@SHELL@%$SHELL%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006322s%@CFLAGS@%$CFLAGS%g
6323s%@CPPFLAGS@%$CPPFLAGS%g
6324s%@CXXFLAGS@%$CXXFLAGS%g
Eric Pouech18ad24a2000-01-16 22:16:33 +00006325s%@FFLAGS@%$FFLAGS%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006326s%@DEFS@%$DEFS%g
6327s%@LDFLAGS@%$LDFLAGS%g
6328s%@LIBS@%$LIBS%g
6329s%@exec_prefix@%$exec_prefix%g
6330s%@prefix@%$prefix%g
6331s%@program_transform_name@%$program_transform_name%g
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006332s%@bindir@%$bindir%g
6333s%@sbindir@%$sbindir%g
6334s%@libexecdir@%$libexecdir%g
6335s%@datadir@%$datadir%g
6336s%@sysconfdir@%$sysconfdir%g
6337s%@sharedstatedir@%$sharedstatedir%g
6338s%@localstatedir@%$localstatedir%g
6339s%@libdir@%$libdir%g
6340s%@includedir@%$includedir%g
6341s%@oldincludedir@%$oldincludedir%g
6342s%@infodir@%$infodir%g
6343s%@mandir@%$mandir%g
Alexandre Julliardc6c09441997-01-12 18:32:19 +00006344s%@PROGEXT@%$PROGEXT%g
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00006345s%@EMU_TARGET@%$EMU_TARGET%g
Alexandre Julliard18f92e71996-07-17 20:02:21 +00006346s%@OPTIONS@%$OPTIONS%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006347s%@SET_MAKE@%$SET_MAKE%g
6348s%@CC@%$CC%g
6349s%@CPP@%$CPP%g
Alexandre Julliardff8331e1995-09-18 11:19:54 +00006350s%@X_CFLAGS@%$X_CFLAGS%g
6351s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6352s%@X_LIBS@%$X_LIBS%g
6353s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006354s%@YACC@%$YACC%g
6355s%@LEX@%$LEX%g
6356s%@LEXLIB@%$LEXLIB%g
Alexandre Julliardff8331e1995-09-18 11:19:54 +00006357s%@RANLIB@%$RANLIB%g
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006358s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
Eric Pouech18ad24a2000-01-16 22:16:33 +00006359s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006360s%@INSTALL_DATA@%$INSTALL_DATA%g
Alexandre Julliard641ee761997-08-04 16:34:36 +00006361s%@LN_S@%$LN_S%g
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006362s%@C2MAN@%$C2MAN%g
James Juranffe6b761999-06-12 08:21:57 +00006363s%@LDCONFIG@%$LDCONFIG%g
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006364s%@LINT@%$LINT%g
6365s%@LINTFLAGS@%$LINTFLAGS%g
Patrik Stridvallea584721998-11-01 16:22:07 +00006366s%@XLIB@%$XLIB%g
Patrik Stridvall2941a212000-04-25 20:34:22 +00006367s%@X_DLLS@%$X_DLLS%g
6368s%@XFILES@%$XFILES%g
Marcus Meissner10ad97c2000-04-09 14:30:50 +00006369s%@DGA_SRCS@%$DGA_SRCS%g
Lionel Ulmer51177f92000-05-01 14:25:49 +00006370s%@DGA2_SRCS@%$DGA2_SRCS%g
Marcus Meissner10ad97c2000-04-09 14:30:50 +00006371s%@MESA_SRCS@%$MESA_SRCS%g
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00006372s%@DLL_LINK@%$DLL_LINK%g
Ulrich Weigand4b32fd01999-07-15 14:51:40 +00006373s%@BUILDFLAGS@%$BUILDFLAGS%g
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00006374s%@DLLFLAGS@%$DLLFLAGS%g
Todd Vierling4b992b01998-12-15 15:26:27 +00006375s%@LDSHARED@%$LDSHARED%g
Alexandre Julliard0adad952000-01-26 01:45:58 +00006376s%@LIBEXT@%$LIBEXT%g
Patrik Stridvall1bb94031999-05-08 15:47:44 +00006377s%@ALLOCA@%$ALLOCA%g
Marcus Meissnera7f5cb51999-04-16 08:47:41 +00006378s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
Alexandre Julliardff8331e1995-09-18 11:19:54 +00006379/@MAKE_RULES@/r $MAKE_RULES
6380s%@MAKE_RULES@%%g
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +00006381/@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
6382s%@MAKE_DLL_RULES@%%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006383
6384CEOF
6385EOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006386
6387cat >> $CONFIG_STATUS <<\EOF
6388
6389# Split the substitutions into bite-sized pieces for seds with
6390# small command number limits, like on Digital OSF/1 and HP-UX.
6391ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6392ac_file=1 # Number of current file.
6393ac_beg=1 # First line for current file.
6394ac_end=$ac_max_sed_cmds # Line after last line for current file.
6395ac_more_lines=:
6396ac_sed_cmds=""
6397while $ac_more_lines; do
6398 if test $ac_beg -gt 1; then
6399 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6400 else
6401 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6402 fi
6403 if test ! -s conftest.s$ac_file; then
6404 ac_more_lines=false
6405 rm -f conftest.s$ac_file
6406 else
6407 if test -z "$ac_sed_cmds"; then
6408 ac_sed_cmds="sed -f conftest.s$ac_file"
6409 else
6410 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6411 fi
6412 ac_file=`expr $ac_file + 1`
6413 ac_beg=$ac_end
6414 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6415 fi
6416done
6417if test -z "$ac_sed_cmds"; then
6418 ac_sed_cmds=cat
6419fi
6420EOF
6421
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006422cat >> $CONFIG_STATUS <<EOF
6423
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006424CONFIG_FILES=\${CONFIG_FILES-"Make.rules
6425Makefile
Joseph Pranevich791cd6a1998-12-02 19:58:08 +00006426console/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006427controls/Makefile
6428debugger/Makefile
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +00006429dlls/Makedll.rules
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00006430dlls/Makefile
Juergen Schmiedf7b0de31999-01-03 12:48:29 +00006431dlls/advapi32/Makefile
Marcus Meissnerb3d1a221999-03-13 18:07:44 +00006432dlls/avifil32/Makefile
Alexandre Julliarda0d77311998-09-13 16:32:00 +00006433dlls/comctl32/Makefile
Klaas van Gendc9127491999-02-28 20:05:11 +00006434dlls/commdlg/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00006435dlls/crtdll/Makefile
6436dlls/dciman32/Makefile
Alexandre Julliardddce6522000-03-17 16:58:10 +00006437dlls/ddraw/Makefile
6438dlls/dinput/Makefile
Andreas Mohra2da8681999-12-06 01:20:00 +00006439dlls/display/Makefile
Peter Hunnisett22b861c1999-09-28 16:35:32 +00006440dlls/dplayx/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00006441dlls/dsound/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00006442dlls/gdi/Makefile
Francois Gougetedf3e431999-11-07 21:22:17 +00006443dlls/icmp/Makefile
Patrik Stridvall8295c861998-10-11 17:09:05 +00006444dlls/imagehlp/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00006445dlls/imm32/Makefile
6446dlls/lzexpand/Makefile
Andreas Mohra2da8681999-12-06 01:20:00 +00006447dlls/mouse/Makefile
Ulrich Weigandbb1984e1999-08-07 14:32:33 +00006448dlls/mpr/Makefile
Patrik Stridvall8295c861998-10-11 17:09:05 +00006449dlls/msacm/Makefile
6450dlls/msacm32/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00006451dlls/msnet32/Makefile
6452dlls/msvideo/Makefile
Marcus Meissner51505b11998-11-01 14:00:21 +00006453dlls/ntdll/Makefile
Alexandre Julliard8551f8c1999-12-11 23:56:46 +00006454dlls/odbc32/Makefile
Ulrich Weigand2a722f41999-09-19 18:36:53 +00006455dlls/ole32/Makefile
6456dlls/oleaut32/Makefile
6457dlls/olecli/Makefile
6458dlls/oledlg/Makefile
Sean Langley58c71d42000-02-07 16:26:56 +00006459dlls/olepro32/Makefile
Ulrich Weigand2a722f41999-09-19 18:36:53 +00006460dlls/olesvr/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006461dlls/psapi/Makefile
Marcus Meissner30ef8771998-12-11 13:26:26 +00006462dlls/rasapi32/Makefile
Hidenori Takeshimae75f9fb2000-05-03 18:12:19 +00006463dlls/richedit/Makefile
Andreas Mohr027187d2000-01-29 21:09:02 +00006464dlls/setupx/Makefile
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00006465dlls/shell32/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00006466dlls/sound/Makefile
6467dlls/stress/Makefile
Andreas Mohr5aa96c11999-03-14 12:34:25 +00006468dlls/tapi32/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00006469dlls/ttydrv/Makefile
Alexandre Julliard819fa8c2000-04-11 20:07:00 +00006470dlls/urlmon/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00006471dlls/user/Makefile
Ulrich Weigandd43a46a1999-01-31 10:11:04 +00006472dlls/version/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00006473dlls/win32s/Makefile
Ulrich Weigand4b32fd01999-07-15 14:51:40 +00006474dlls/win87em/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006475dlls/winaspi/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00006476dlls/windebug/Makefile
6477dlls/wing/Makefile
Alexandre Julliard819fa8c2000-04-11 20:07:00 +00006478dlls/wininet/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00006479dlls/winmm/Makefile
Eric Pouech2a3b0a12000-02-26 13:14:04 +00006480dlls/winmm/joystick/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00006481dlls/winmm/mcianim/Makefile
6482dlls/winmm/mciavi/Makefile
6483dlls/winmm/mcicda/Makefile
6484dlls/winmm/mciseq/Makefile
6485dlls/winmm/mciwave/Makefile
Eric Pouechabe72271999-10-31 02:23:49 +00006486dlls/winmm/midimap/Makefile
6487dlls/winmm/wavemap/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00006488dlls/winmm/wineoss/Makefile
Alexandre Julliardde078692000-01-23 22:07:15 +00006489dlls/winsock/Makefile
Huw D M Daviese39b6761999-05-17 16:20:51 +00006490dlls/winspool/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00006491dlls/ttydrv/Makefile
6492dlls/x11drv/Makefile
Alexandre Julliardd37eb361997-07-20 16:23:21 +00006493documentation/Makefile
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +00006494documentation/wine.conf.man
Marcus Meissner5a70c971999-06-05 09:00:21 +00006495documentation/wine.man
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00006496files/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00006497graphics/Makefile
Huw D M Davies3a24f3f1999-05-02 10:15:16 +00006498graphics/enhmetafiledrv/Makefile
Alexandre Julliardbf9130a1996-10-13 17:45:47 +00006499graphics/metafiledrv/Makefile
Alexandre Julliardebfc0fe1998-06-28 18:40:26 +00006500graphics/psdrv/Makefile
Patrik Stridvall24110281999-02-04 10:09:54 +00006501graphics/ttydrv/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00006502graphics/win16drv/Makefile
6503graphics/x11drv/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006504if1632/Makefile
James Juranc70dc831999-02-13 12:18:33 +00006505include/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006506library/Makefile
6507libtest/Makefile
6508loader/Makefile
Alexandre Julliard46ea8b31998-05-03 19:01:20 +00006509loader/ne/Makefile
Alexandre Julliard767e6f61998-08-09 12:47:43 +00006510loader/dos/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006511memory/Makefile
6512misc/Makefile
6513miscemu/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00006514msdos/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006515objects/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00006516ole/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00006517programs/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00006518programs/clock/Makefile
Eric Williams30008a01999-02-05 17:40:47 +00006519programs/cmdlgtst/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006520programs/control/Makefile
Marcus Meissner32b32d81999-01-29 15:12:10 +00006521programs/avitools/Makefile
Morten Eriksen55bcda81999-09-22 15:22:58 +00006522programs/osversioncheck/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00006523programs/notepad/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00006524programs/progman/Makefile
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006525programs/regtest/Makefile
Sylvain St.Germain1bb0e661999-03-14 14:00:22 +00006526programs/regapi/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00006527programs/view/Makefile
Dave Pickles74f440e1999-06-06 15:24:04 +00006528programs/wcmd/Makefile
Joshua Thielena3f23802000-03-15 19:06:39 +00006529programs/winemine/Makefile
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00006530programs/winhelp/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00006531programs/winver/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00006532relay32/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006533resources/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00006534scheduler/Makefile
Alexandre Julliard642d3131998-07-12 19:29:36 +00006535server/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006536tools/Makefile
John R. Sheetse61d33b2000-03-26 20:25:23 +00006537tools/cvdump/Makefile
Alexandre Julliarda845b881998-06-01 10:44:35 +00006538tools/wrc/Makefile
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00006539tsx11/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006540win32/Makefile
Patrik Stridvallea584721998-11-01 16:22:07 +00006541windows/Makefile
Patrik Stridvallf638aef1998-12-07 09:36:13 +00006542windows/ttydrv/Makefile
Patrik Stridvallea584721998-11-01 16:22:07 +00006543windows/x11drv/Makefile "}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006544EOF
6545cat >> $CONFIG_STATUS <<\EOF
6546for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006547 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006548 case "$ac_file" in
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006549 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006550 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6551 *) ac_file_in="${ac_file}.in" ;;
6552 esac
6553
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006554 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006555
6556 # Remove last slash and all that follows it. Not all systems have dirname.
6557 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6558 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6559 # The file is in a subdirectory.
6560 test ! -d "$ac_dir" && mkdir "$ac_dir"
6561 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6562 # A "../" for each directory in $ac_dir_suffix.
6563 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6564 else
6565 ac_dir_suffix= ac_dots=
6566 fi
6567
6568 case "$ac_given_srcdir" in
6569 .) srcdir=.
6570 if test -z "$ac_dots"; then top_srcdir=.
6571 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6572 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6573 *) # Relative path.
6574 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6575 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6576 esac
6577
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006578 case "$ac_given_INSTALL" in
6579 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6580 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6581 esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006582
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006583 echo creating "$ac_file"
6584 rm -f "$ac_file"
6585 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6586 case "$ac_file" in
6587 *Makefile*) ac_comsub="1i\\
6588# $configure_input" ;;
6589 *) ac_comsub= ;;
6590 esac
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006591
6592 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 +00006593 sed -e "$ac_comsub
6594s%@configure_input@%$configure_input%g
6595s%@srcdir@%$srcdir%g
6596s%@top_srcdir@%$top_srcdir%g
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006597s%@INSTALL@%$INSTALL%g
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006598" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006599fi; done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006600rm -f conftest.s*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006601
Alexandre Julliard18f92e71996-07-17 20:02:21 +00006602# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6603# NAME is the cpp macro being defined and VALUE is the value it is being given.
6604#
6605# ac_d sets the value in "#define NAME VALUE" lines.
6606ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6607ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6608ac_dC='\3'
6609ac_dD='%g'
6610# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6611ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6612ac_uB='\([ ]\)%\1#\2define\3'
6613ac_uC=' '
6614ac_uD='\4%g'
6615# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6616ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6617ac_eB='$%\1#\2define\3'
6618ac_eC=' '
6619ac_eD='%g'
6620
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006621if test "${CONFIG_HEADERS+set}" != set; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006622EOF
6623cat >> $CONFIG_STATUS <<EOF
6624 CONFIG_HEADERS="include/config.h"
6625EOF
6626cat >> $CONFIG_STATUS <<\EOF
6627fi
Alexandre Julliard18f92e71996-07-17 20:02:21 +00006628for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006629 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Alexandre Julliard18f92e71996-07-17 20:02:21 +00006630 case "$ac_file" in
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006631 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Alexandre Julliard18f92e71996-07-17 20:02:21 +00006632 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6633 *) ac_file_in="${ac_file}.in" ;;
6634 esac
6635
6636 echo creating $ac_file
6637
6638 rm -f conftest.frag conftest.in conftest.out
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006639 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6640 cat $ac_file_inputs > conftest.in
Alexandre Julliard18f92e71996-07-17 20:02:21 +00006641
6642EOF
6643
6644# Transform confdefs.h into a sed script conftest.vals that substitutes
6645# the proper values into config.h.in to produce config.h. And first:
6646# Protect against being on the right side of a sed subst in config.status.
6647# Protect against being in an unquoted here document in config.status.
6648rm -f conftest.vals
6649cat > conftest.hdr <<\EOF
6650s/[\\&%]/\\&/g
6651s%[\\$`]%\\&%g
6652s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6653s%ac_d%ac_u%gp
6654s%ac_u%ac_e%gp
6655EOF
6656sed -n -f conftest.hdr confdefs.h > conftest.vals
6657rm -f conftest.hdr
6658
6659# This sed command replaces #undef with comments. This is necessary, for
6660# example, in the case of _POSIX_SOURCE, which is predefined and required
6661# on some systems where configure will not decide to define it.
6662cat >> conftest.vals <<\EOF
6663s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6664EOF
6665
6666# Break up conftest.vals because some shells have a limit on
6667# the size of here documents, and old seds have small limits too.
Alexandre Julliard18f92e71996-07-17 20:02:21 +00006668
6669rm -f conftest.tail
6670while :
6671do
6672 ac_lines=`grep -c . conftest.vals`
6673 # grep -c gives empty output for an empty file on some AIX systems.
6674 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6675 # Write a limited-size here document to conftest.frag.
6676 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6677 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6678 echo 'CEOF
6679 sed -f conftest.frag conftest.in > conftest.out
6680 rm -f conftest.in
6681 mv conftest.out conftest.in
6682' >> $CONFIG_STATUS
6683 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6684 rm -f conftest.vals
6685 mv conftest.tail conftest.vals
6686done
6687rm -f conftest.vals
6688
6689cat >> $CONFIG_STATUS <<\EOF
6690 rm -f conftest.frag conftest.h
6691 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6692 cat conftest.in >> conftest.h
6693 rm -f conftest.in
6694 if cmp -s $ac_file conftest.h 2>/dev/null; then
6695 echo "$ac_file is unchanged"
6696 rm -f conftest.h
6697 else
6698 # Remove last slash and all that follows it. Not all systems have dirname.
6699 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6700 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6701 # The file is in a subdirectory.
6702 test ! -d "$ac_dir" && mkdir "$ac_dir"
6703 fi
6704 rm -f $ac_file
6705 mv conftest.h $ac_file
6706 fi
6707fi; done
6708
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006709EOF
6710cat >> $CONFIG_STATUS <<EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006711
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +00006712
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006713EOF
6714cat >> $CONFIG_STATUS <<\EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006715
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +00006716extra_subdirs="\
6717dlls/ddraw/d3ddevice \
6718dlls/ddraw/dclipper \
6719dlls/ddraw/ddraw \
6720dlls/ddraw/direct3d \
6721dlls/ddraw/dpalette \
6722dlls/ddraw/dsurface \
6723"
6724for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done
6725
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006726exit 0
6727EOF
6728chmod +x $CONFIG_STATUS
6729rm -fr confdefs* $ac_clean_files
6730test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6731
6732
Ove Kaaven8b4431f1999-01-23 13:59:11 +00006733if test "$have_x" = "no"
6734then
6735 echo
6736 echo "*** Warning: X development files not found. Wine will be built without"
6737 echo "*** X support, which currently does not work, and would probably not be"
6738 echo "*** what you want anyway. You will need to install devel packages of"
6739 echo "*** Xlib/Xfree86 and Xpm at the very least."
Ove Kaaven1eb593c1999-02-14 09:34:46 +00006740elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
6741then
6742 echo
6743 echo "*** Warning: Xpm development files not found. Wine will be built without"
6744 echo "*** Xpm support, which currently does not work. You will need to install"
6745 echo "*** devel packages of Xpm."
Ove Kaaven8b4431f1999-01-23 13:59:11 +00006746fi
6747
Alexandre Julliard638f1691999-01-17 16:32:32 +00006748if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
6749then
6750 echo
6751 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
6752 echo "*** terminal resize support. Consider upgrading ncurses."
Alexandre Julliard638f1691999-01-17 16:32:32 +00006753fi
6754
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006755if test "$wine_cv_libc_reentrant" = "no"
6756then
6757 echo
6758 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
6759 echo "*** thread support. Consider upgrading libc to a more recent"
6760 echo "*** reentrant version of libc."
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006761fi
6762
Lionel Ulmer5c085701999-02-28 19:48:53 +00006763if test "$wine_cv_mesa_version_OK" = "no"
6764then
6765 echo
6766 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00006767 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
6768fi
6769
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00006770if test "$wine_cv_mesa_version_threadsafe" = "yes" -a $OPENGL = "normal"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00006771then
6772 echo
6773 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00006774 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
6775 echo "*** A fix for glibc 2.1.3 that seem to work is included in this version of Wine,"
6776 echo "*** start configure with '--enable-opengl' to force OpenGL support."
Lionel Ulmer5c085701999-02-28 19:48:53 +00006777fi
6778
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00006779if test "$wine_cv_mesa_version_threadsafe" = "yes" -a $OPENGL = "yes"
6780then
6781 echo
6782 echo "*** Warning: you explicitely linked in a thread-safe OpenGL version. If you"
6783 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
6784 echo "*** support before reporting bugs."
6785fi
6786
6787
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006788echo
Steffen Moeller1511bae1999-02-17 15:27:03 +00006789echo "Configure finished. Do 'make depend && make' to compile Wine."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006790echo
6791