blob: bf602472853bb3f2a76f5ec5a5864bd018f84e03 [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 Julliardf90efa91998-06-14 15:24:15 +000016 --disable-debug compile out all debugging messages"
17ac_help="$ac_help
Andreas Mohr18a9d742001-01-17 21:52:42 +000018 --enable-opengl force usage of OpenGL even if the latter is thread-safe via pthread"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000019ac_help="$ac_help
Alexandre Julliardf90efa91998-06-14 15:24:15 +000020 --disable-trace compile out TRACE messages"
21ac_help="$ac_help
Patrik Stridvall5e5ad532000-04-23 20:02:46 +000022 --without-curses do not use curses"
23ac_help="$ac_help
Patrik Stridvallf638aef1998-12-07 09:36:13 +000024 --without-reentrant-x compile for use with non-reentrant X libraries"
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000025ac_help="$ac_help
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000026 --with-x use the X Window System"
27
28# Initialize some variables set by options.
29# The variables have the same names as the options, with
30# dashes changed to underlines.
31build=NONE
32cache_file=./config.cache
33exec_prefix=NONE
34host=NONE
35no_create=
36nonopt=NONE
37no_recursion=
38prefix=NONE
39program_prefix=NONE
40program_suffix=NONE
41program_transform_name=s,x,x,
42silent=
43site=
44srcdir=
45target=NONE
46verbose=
47x_includes=NONE
48x_libraries=NONE
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000049bindir='${exec_prefix}/bin'
50sbindir='${exec_prefix}/sbin'
51libexecdir='${exec_prefix}/libexec'
52datadir='${prefix}/share'
53sysconfdir='${prefix}/etc'
54sharedstatedir='${prefix}/com'
55localstatedir='${prefix}/var'
56libdir='${exec_prefix}/lib'
57includedir='${prefix}/include'
58oldincludedir='/usr/include'
59infodir='${prefix}/info'
60mandir='${prefix}/man'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000061
62# Initialize some other variables.
63subdirs=
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000064MFLAGS= MAKEFLAGS=
Eric Pouech18ad24a2000-01-16 22:16:33 +000065SHELL=${CONFIG_SHELL-/bin/sh}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000066# Maximum number of lines to put in a shell here document.
67ac_max_here_lines=12
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000068
69ac_prev=
70for ac_option
71do
72
73 # If the previous option needs an argument, assign it.
74 if test -n "$ac_prev"; then
75 eval "$ac_prev=\$ac_option"
76 ac_prev=
77 continue
78 fi
79
80 case "$ac_option" in
81 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82 *) ac_optarg= ;;
83 esac
84
85 # Accept the important Cygnus configure options, so we can diagnose typos.
86
87 case "$ac_option" in
88
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000089 -bindir | --bindir | --bindi | --bind | --bin | --bi)
90 ac_prev=bindir ;;
91 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
92 bindir="$ac_optarg" ;;
93
94 -build | --build | --buil | --bui | --bu)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000095 ac_prev=build ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000096 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000097 build="$ac_optarg" ;;
98
99 -cache-file | --cache-file | --cache-fil | --cache-fi \
100 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
101 ac_prev=cache_file ;;
102 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
103 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
104 cache_file="$ac_optarg" ;;
105
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000106 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
107 ac_prev=datadir ;;
108 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
109 | --da=*)
110 datadir="$ac_optarg" ;;
111
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000112 -disable-* | --disable-*)
113 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117 fi
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}=no" ;;
120
121 -enable-* | --enable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 fi
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 case "$ac_option" in
129 *=*) ;;
130 *) ac_optarg=yes ;;
131 esac
132 eval "enable_${ac_feature}='$ac_optarg'" ;;
133
134 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
135 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
136 | --exec | --exe | --ex)
137 ac_prev=exec_prefix ;;
138 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
139 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
140 | --exec=* | --exe=* | --ex=*)
141 exec_prefix="$ac_optarg" ;;
142
143 -gas | --gas | --ga | --g)
144 # Obsolete; use --with-gas.
145 with_gas=yes ;;
146
147 -help | --help | --hel | --he)
148 # Omit some internal or obsolete options to make the list less imposing.
149 # This message is too long to be a string in the A/UX 3.1 sh.
150 cat << EOF
151Usage: configure [options] [host]
152Options: [defaults in brackets after descriptions]
153Configuration:
154 --cache-file=FILE cache test results in FILE
155 --help print this message
156 --no-create do not create output files
157 --quiet, --silent do not print \`checking...' messages
158 --version print the version of autoconf that created configure
159Directory and file names:
160 --prefix=PREFIX install architecture-independent files in PREFIX
161 [$ac_default_prefix]
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000162 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000163 [same as prefix]
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000164 --bindir=DIR user executables in DIR [EPREFIX/bin]
165 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
166 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
167 --datadir=DIR read-only architecture-independent data in DIR
168 [PREFIX/share]
169 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
170 --sharedstatedir=DIR modifiable architecture-independent data in DIR
171 [PREFIX/com]
172 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
173 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
174 --includedir=DIR C header files in DIR [PREFIX/include]
175 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
176 --infodir=DIR info documentation in DIR [PREFIX/info]
177 --mandir=DIR man documentation in DIR [PREFIX/man]
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000178 --srcdir=DIR find the sources in DIR [configure dir or ..]
179 --program-prefix=PREFIX prepend PREFIX to installed program names
180 --program-suffix=SUFFIX append SUFFIX to installed program names
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000181 --program-transform-name=PROGRAM
182 run sed PROGRAM on installed program names
183EOF
184 cat << EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000185Host type:
186 --build=BUILD configure for building on BUILD [BUILD=HOST]
187 --host=HOST configure for HOST [guessed]
188 --target=TARGET configure for TARGET [TARGET=HOST]
189Features and packages:
190 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
191 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
192 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
193 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
194 --x-includes=DIR X include files are in DIR
195 --x-libraries=DIR X library files are in DIR
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000196EOF
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000197 if test -n "$ac_help"; then
198 echo "--enable and --with options recognized:$ac_help"
199 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000200 exit 0 ;;
201
202 -host | --host | --hos | --ho)
203 ac_prev=host ;;
204 -host=* | --host=* | --hos=* | --ho=*)
205 host="$ac_optarg" ;;
206
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000207 -includedir | --includedir | --includedi | --included | --include \
208 | --includ | --inclu | --incl | --inc)
209 ac_prev=includedir ;;
210 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
211 | --includ=* | --inclu=* | --incl=* | --inc=*)
212 includedir="$ac_optarg" ;;
213
214 -infodir | --infodir | --infodi | --infod | --info | --inf)
215 ac_prev=infodir ;;
216 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
217 infodir="$ac_optarg" ;;
218
219 -libdir | --libdir | --libdi | --libd)
220 ac_prev=libdir ;;
221 -libdir=* | --libdir=* | --libdi=* | --libd=*)
222 libdir="$ac_optarg" ;;
223
224 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
225 | --libexe | --libex | --libe)
226 ac_prev=libexecdir ;;
227 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
228 | --libexe=* | --libex=* | --libe=*)
229 libexecdir="$ac_optarg" ;;
230
231 -localstatedir | --localstatedir | --localstatedi | --localstated \
232 | --localstate | --localstat | --localsta | --localst \
233 | --locals | --local | --loca | --loc | --lo)
234 ac_prev=localstatedir ;;
235 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
236 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
237 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
238 localstatedir="$ac_optarg" ;;
239
240 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
241 ac_prev=mandir ;;
242 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
243 mandir="$ac_optarg" ;;
244
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000245 -nfp | --nfp | --nf)
246 # Obsolete; use --without-fp.
247 with_fp=no ;;
248
249 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
250 | --no-cr | --no-c)
251 no_create=yes ;;
252
253 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
254 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
255 no_recursion=yes ;;
256
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000257 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
258 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
259 | --oldin | --oldi | --old | --ol | --o)
260 ac_prev=oldincludedir ;;
261 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
262 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
263 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
264 oldincludedir="$ac_optarg" ;;
265
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000266 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
267 ac_prev=prefix ;;
268 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
269 prefix="$ac_optarg" ;;
270
271 -program-prefix | --program-prefix | --program-prefi | --program-pref \
272 | --program-pre | --program-pr | --program-p)
273 ac_prev=program_prefix ;;
274 -program-prefix=* | --program-prefix=* | --program-prefi=* \
275 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
276 program_prefix="$ac_optarg" ;;
277
278 -program-suffix | --program-suffix | --program-suffi | --program-suff \
279 | --program-suf | --program-su | --program-s)
280 ac_prev=program_suffix ;;
281 -program-suffix=* | --program-suffix=* | --program-suffi=* \
282 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
283 program_suffix="$ac_optarg" ;;
284
285 -program-transform-name | --program-transform-name \
286 | --program-transform-nam | --program-transform-na \
287 | --program-transform-n | --program-transform- \
288 | --program-transform | --program-transfor \
289 | --program-transfo | --program-transf \
290 | --program-trans | --program-tran \
291 | --progr-tra | --program-tr | --program-t)
292 ac_prev=program_transform_name ;;
293 -program-transform-name=* | --program-transform-name=* \
294 | --program-transform-nam=* | --program-transform-na=* \
295 | --program-transform-n=* | --program-transform-=* \
296 | --program-transform=* | --program-transfor=* \
297 | --program-transfo=* | --program-transf=* \
298 | --program-trans=* | --program-tran=* \
299 | --progr-tra=* | --program-tr=* | --program-t=*)
300 program_transform_name="$ac_optarg" ;;
301
302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
303 | -silent | --silent | --silen | --sile | --sil)
304 silent=yes ;;
305
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000306 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
307 ac_prev=sbindir ;;
308 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
309 | --sbi=* | --sb=*)
310 sbindir="$ac_optarg" ;;
311
312 -sharedstatedir | --sharedstatedir | --sharedstatedi \
313 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
314 | --sharedst | --shareds | --shared | --share | --shar \
315 | --sha | --sh)
316 ac_prev=sharedstatedir ;;
317 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
318 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
319 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
320 | --sha=* | --sh=*)
321 sharedstatedir="$ac_optarg" ;;
322
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000323 -site | --site | --sit)
324 ac_prev=site ;;
325 -site=* | --site=* | --sit=*)
326 site="$ac_optarg" ;;
327
328 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
329 ac_prev=srcdir ;;
330 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
331 srcdir="$ac_optarg" ;;
332
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000333 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
334 | --syscon | --sysco | --sysc | --sys | --sy)
335 ac_prev=sysconfdir ;;
336 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
337 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
338 sysconfdir="$ac_optarg" ;;
339
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000340 -target | --target | --targe | --targ | --tar | --ta | --t)
341 ac_prev=target ;;
342 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
343 target="$ac_optarg" ;;
344
345 -v | -verbose | --verbose | --verbos | --verbo | --verb)
346 verbose=yes ;;
347
348 -version | --version | --versio | --versi | --vers)
Eric Pouech18ad24a2000-01-16 22:16:33 +0000349 echo "configure generated by autoconf version 2.13"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000350 exit 0 ;;
351
352 -with-* | --with-*)
353 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357 fi
358 ac_package=`echo $ac_package| sed 's/-/_/g'`
359 case "$ac_option" in
360 *=*) ;;
361 *) ac_optarg=yes ;;
362 esac
363 eval "with_${ac_package}='$ac_optarg'" ;;
364
365 -without-* | --without-*)
366 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 fi
371 ac_package=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}=no" ;;
373
374 --x)
375 # Obsolete; use --with-x.
376 with_x=yes ;;
377
378 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
379 | --x-incl | --x-inc | --x-in | --x-i)
380 ac_prev=x_includes ;;
381 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
382 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
383 x_includes="$ac_optarg" ;;
384
385 -x-libraries | --x-libraries | --x-librarie | --x-librari \
386 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
387 ac_prev=x_libraries ;;
388 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
389 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
390 x_libraries="$ac_optarg" ;;
391
392 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
393 ;;
394
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000395 *)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000396 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397 echo "configure: warning: $ac_option: invalid host type" 1>&2
398 fi
399 if test "x$nonopt" != xNONE; then
400 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
401 fi
402 nonopt="$ac_option"
403 ;;
404
405 esac
406done
407
408if test -n "$ac_prev"; then
409 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
410fi
411
412trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
413
414# File descriptor usage:
415# 0 standard input
416# 1 file creation
417# 2 errors and warnings
418# 3 some systems may open it to /dev/tty
419# 4 used on the Kubota Titan
420# 6 checking for... messages and results
421# 5 compiler messages saved in config.log
422if test "$silent" = yes; then
423 exec 6>/dev/null
424else
425 exec 6>&1
426fi
427exec 5>./config.log
428
429echo "\
430This file contains any messages produced by compilers while
431running configure, to aid debugging if configure makes a mistake.
432" 1>&5
433
434# Strip out --no-create and --no-recursion so they do not pile up.
435# Also quote any args containing shell metacharacters.
436ac_configure_args=
437for ac_arg
438do
439 case "$ac_arg" in
440 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
441 | --no-cr | --no-c) ;;
442 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
443 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
444 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
446 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
447 esac
448done
449
450# NLS nuisances.
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000451# Only set these to C if already set. These must not be set unconditionally
452# because not all systems understand e.g. LANG=C (notably SCO).
453# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
454# Non-C LC_CTYPE values break the ctype check.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000455if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000456if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
457if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
458if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000459
460# confdefs.h avoids OS command line length limits that DEFS can exceed.
461rm -rf conftest* confdefs.h
462# AIX cpp loses on an empty file, so make sure it contains at least a newline.
463echo > confdefs.h
464
465# A filename unique to this package, relative to the directory that
466# configure is in, which we can look for to find out if srcdir is correct.
467ac_unique_file=controls/edit.c
468
469# Find the source files, if location was not specified.
470if test -z "$srcdir"; then
471 ac_srcdir_defaulted=yes
472 # Try the directory containing this script, then its parent.
473 ac_prog=$0
474 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
476 srcdir=$ac_confdir
477 if test ! -r $srcdir/$ac_unique_file; then
478 srcdir=..
479 fi
480else
481 ac_srcdir_defaulted=no
482fi
483if test ! -r $srcdir/$ac_unique_file; then
484 if test "$ac_srcdir_defaulted" = yes; then
485 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
486 else
487 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
488 fi
489fi
490srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
491
492# Prefer explicitly selected file to automatically selected ones.
493if test -z "$CONFIG_SITE"; then
494 if test "x$prefix" != xNONE; then
495 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
496 else
497 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
498 fi
499fi
500for ac_site_file in $CONFIG_SITE; do
501 if test -r "$ac_site_file"; then
502 echo "loading site script $ac_site_file"
503 . "$ac_site_file"
504 fi
505done
506
507if test -r "$cache_file"; then
508 echo "loading cache $cache_file"
509 . $cache_file
510else
511 echo "creating cache $cache_file"
512 > $cache_file
513fi
514
515ac_ext=c
516# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000517ac_cpp='$CPP $CPPFLAGS'
518ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Eric Pouech18ad24a2000-01-16 22:16:33 +0000519ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000520cross_compiling=$ac_cv_prog_cc_cross
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000521
Eric Pouech18ad24a2000-01-16 22:16:33 +0000522ac_exeext=
523ac_objext=o
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000524if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
525 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
526 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
527 ac_n= ac_c='
528' ac_t=' '
529 else
530 ac_n=-n ac_c= ac_t=
531 fi
532else
533 ac_n= ac_c='\c' ac_t=
534fi
535
536
Alexandre Julliard18f92e71996-07-17 20:02:21 +0000537
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000538ac_aux_dir=
539for ac_dir in tools $srcdir/tools; do
540 if test -f $ac_dir/install-sh; then
541 ac_aux_dir=$ac_dir
542 ac_install_sh="$ac_aux_dir/install-sh -c"
543 break
544 elif 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 fi
549done
550if test -z "$ac_aux_dir"; then
551 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
552fi
553ac_config_guess=$ac_aux_dir/config.guess
554ac_config_sub=$ac_aux_dir/config.sub
555ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
556
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000557
Howard Abrams13277481999-07-10 13:16:29 +0000558
Alexandre Julliard318f4ce2000-01-31 05:02:49 +0000559LIBEXT=so # library type .so or .a
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000560TRACE_MSGS=yes # the TRACE() macro
561DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros.
Patrik Stridvall5e5ad532000-04-23 20:02:46 +0000562CURSES=yes
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000563OPENGL=normal
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +0000564
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000565# Check whether --enable-debug or --disable-debug was given.
566if test "${enable_debug+set}" = set; then
567 enableval="$enable_debug"
568 if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi
569fi
570
571
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000572# Check whether --enable-opengl or --disable-opengl was given.
573if test "${enable_opengl+set}" = set; then
574 enableval="$enable_opengl"
575 if test "$enableval" = "no"; then OPENGL="no"; elif test "$enableval" = "yes"; then OPENGL="yes"; fi
576fi
577
578
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000579# Check whether --enable-trace or --disable-trace was given.
580if test "${enable_trace+set}" = set; then
581 enableval="$enable_trace"
582 if test "$enableval" = "no"; then TRACE_MSGS="no"; fi
583fi
584
585
Patrik Stridvall5e5ad532000-04-23 20:02:46 +0000586# Check whether --with-curses or --without-curses was given.
587if test "${with_curses+set}" = set; then
588 withval="$with_curses"
589 if test "$withval" = "no"; then CURSES="no"; fi
590fi
591
592
Alexandre Julliarda11d7b11998-03-01 20:05:02 +0000593# Check whether --with-reentrant-x or --without-reentrant-x was given.
594if test "${with_reentrant_x+set}" = set; then
595 withval="$with_reentrant_x"
596 :
597fi
598
599
Alexandre Julliardb7258be1995-09-01 15:57:28 +0000600
Alexandre Julliardb7258be1995-09-01 15:57:28 +0000601
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000602if test "$DEBUG_MSGS" = "no"
603then
604 cat >> confdefs.h <<\EOF
605#define NO_DEBUG_MSGS 1
606EOF
607
608 cat >> confdefs.h <<\EOF
609#define NO_TRACE_MSGS 1
610EOF
611
612else
613 if test "$TRACE_MSGS" = "no"
614 then
615 cat >> confdefs.h <<\EOF
616#define NO_TRACE_MSGS 1
617EOF
618
619 fi
620fi
621
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +0000622
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000623echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +0000624echo "configure:625: checking whether ${MAKE-make} sets \${MAKE}" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000625set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000626if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
627 echo $ac_n "(cached) $ac_c" 1>&6
628else
629 cat > conftestmake <<\EOF
630all:
631 @echo 'ac_maketemp="${MAKE}"'
632EOF
633# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
634eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
635if test -n "$ac_maketemp"; then
636 eval ac_cv_prog_make_${ac_make}_set=yes
637else
638 eval ac_cv_prog_make_${ac_make}_set=no
639fi
640rm -f conftestmake
641fi
642if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
643 echo "$ac_t""yes" 1>&6
644 SET_MAKE=
645else
646 echo "$ac_t""no" 1>&6
647 SET_MAKE="MAKE=${MAKE-make}"
648fi
649
650# Extract the first word of "gcc", so it can be a program name with args.
651set dummy gcc; ac_word=$2
652echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +0000653echo "configure:654: checking for $ac_word" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000654if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
655 echo $ac_n "(cached) $ac_c" 1>&6
656else
657 if test -n "$CC"; then
658 ac_cv_prog_CC="$CC" # Let the user override the test.
659else
Eric Pouech18ad24a2000-01-16 22:16:33 +0000660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
661 ac_dummy="$PATH"
662 for ac_dir in $ac_dummy; do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000663 test -z "$ac_dir" && ac_dir=.
664 if test -f $ac_dir/$ac_word; then
665 ac_cv_prog_CC="gcc"
666 break
667 fi
668 done
669 IFS="$ac_save_ifs"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000670fi
671fi
672CC="$ac_cv_prog_CC"
673if test -n "$CC"; then
674 echo "$ac_t""$CC" 1>&6
675else
676 echo "$ac_t""no" 1>&6
677fi
678
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000679if test -z "$CC"; then
680 # Extract the first word of "cc", so it can be a program name with args.
681set dummy cc; ac_word=$2
682echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +0000683echo "configure:684: checking for $ac_word" >&5
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000684if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
685 echo $ac_n "(cached) $ac_c" 1>&6
686else
687 if test -n "$CC"; then
688 ac_cv_prog_CC="$CC" # Let the user override the test.
689else
Eric Pouech18ad24a2000-01-16 22:16:33 +0000690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000691 ac_prog_rejected=no
Eric Pouech18ad24a2000-01-16 22:16:33 +0000692 ac_dummy="$PATH"
693 for ac_dir in $ac_dummy; do
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000694 test -z "$ac_dir" && ac_dir=.
695 if test -f $ac_dir/$ac_word; then
696 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
697 ac_prog_rejected=yes
698 continue
699 fi
700 ac_cv_prog_CC="cc"
701 break
702 fi
703 done
704 IFS="$ac_save_ifs"
705if test $ac_prog_rejected = yes; then
706 # We found a bogon in the path, so make sure we never use it.
707 set dummy $ac_cv_prog_CC
708 shift
709 if test $# -gt 0; then
710 # We chose a different compiler from the bogus one.
711 # However, it has the same basename, so the bogon will be chosen
712 # first if we set CC to just the basename; use the full file name.
713 shift
714 set dummy "$ac_dir/$ac_word" "$@"
715 shift
716 ac_cv_prog_CC="$@"
717 fi
718fi
719fi
720fi
721CC="$ac_cv_prog_CC"
722if test -n "$CC"; then
723 echo "$ac_t""$CC" 1>&6
724else
725 echo "$ac_t""no" 1>&6
726fi
727
Eric Pouech18ad24a2000-01-16 22:16:33 +0000728 if test -z "$CC"; then
729 case "`uname -s`" in
730 *win32* | *WIN32*)
731 # Extract the first word of "cl", so it can be a program name with args.
732set dummy cl; ac_word=$2
733echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +0000734echo "configure:735: checking for $ac_word" >&5
Eric Pouech18ad24a2000-01-16 22:16:33 +0000735if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
736 echo $ac_n "(cached) $ac_c" 1>&6
737else
738 if test -n "$CC"; then
739 ac_cv_prog_CC="$CC" # Let the user override the test.
740else
741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
742 ac_dummy="$PATH"
743 for ac_dir in $ac_dummy; do
744 test -z "$ac_dir" && ac_dir=.
745 if test -f $ac_dir/$ac_word; then
746 ac_cv_prog_CC="cl"
747 break
748 fi
749 done
750 IFS="$ac_save_ifs"
751fi
752fi
753CC="$ac_cv_prog_CC"
754if test -n "$CC"; then
755 echo "$ac_t""$CC" 1>&6
756else
757 echo "$ac_t""no" 1>&6
758fi
759 ;;
760 esac
761 fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000762 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
763fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000764
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000765echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +0000766echo "configure:767: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000767
768ac_ext=c
769# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
770ac_cpp='$CPP $CPPFLAGS'
771ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Eric Pouech18ad24a2000-01-16 22:16:33 +0000772ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000773cross_compiling=$ac_cv_prog_cc_cross
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000774
Eric Pouech18ad24a2000-01-16 22:16:33 +0000775cat > conftest.$ac_ext << EOF
776
Marcus Meissner45d31de2000-11-13 04:14:05 +0000777#line 778 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000778#include "confdefs.h"
Eric Pouech18ad24a2000-01-16 22:16:33 +0000779
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000780main(){return(0);}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000781EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +0000782if { (eval echo configure:783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000783 ac_cv_prog_cc_works=yes
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000784 # If we can't run a trivial program, we are probably using a cross compiler.
785 if (./conftest; exit) 2>/dev/null; then
786 ac_cv_prog_cc_cross=no
787 else
788 ac_cv_prog_cc_cross=yes
789 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000790else
791 echo "configure: failed program was:" >&5
792 cat conftest.$ac_ext >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000793 ac_cv_prog_cc_works=no
794fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000795rm -fr conftest*
Eric Pouech18ad24a2000-01-16 22:16:33 +0000796ac_ext=c
797# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
798ac_cpp='$CPP $CPPFLAGS'
799ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
800ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
801cross_compiling=$ac_cv_prog_cc_cross
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000802
803echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
804if test $ac_cv_prog_cc_works = no; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000805 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000806fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000807echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +0000808echo "configure:809: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000809echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
810cross_compiling=$ac_cv_prog_cc_cross
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000811
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000812echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +0000813echo "configure:814: checking whether we are using GNU C" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000814if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
816else
817 cat > conftest.c <<EOF
818#ifdef __GNUC__
819 yes;
820#endif
821EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +0000822if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000823 ac_cv_prog_gcc=yes
824else
825 ac_cv_prog_gcc=no
826fi
827fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000828
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000829echo "$ac_t""$ac_cv_prog_gcc" 1>&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000830
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000831if test $ac_cv_prog_gcc = yes; then
832 GCC=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +0000833else
834 GCC=
835fi
836
837ac_test_CFLAGS="${CFLAGS+set}"
838ac_save_CFLAGS="$CFLAGS"
839CFLAGS=
840echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +0000841echo "configure:842: checking whether ${CC-cc} accepts -g" >&5
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000842if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000843 echo $ac_n "(cached) $ac_c" 1>&6
844else
845 echo 'void f(){}' > conftest.c
846if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000847 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000848else
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000849 ac_cv_prog_cc_g=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000850fi
851rm -f conftest*
852
853fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000854
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000855echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
Eric Pouech18ad24a2000-01-16 22:16:33 +0000856if test "$ac_test_CFLAGS" = set; then
857 CFLAGS="$ac_save_CFLAGS"
858elif test $ac_cv_prog_cc_g = yes; then
859 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000860 CFLAGS="-g -O2"
861 else
Eric Pouech18ad24a2000-01-16 22:16:33 +0000862 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000863 fi
864else
Eric Pouech18ad24a2000-01-16 22:16:33 +0000865 if test "$GCC" = yes; then
866 CFLAGS="-O2"
867 else
868 CFLAGS=
869 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000870fi
871
872echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +0000873echo "configure:874: checking how to run the C preprocessor" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000874# On Suns, sometimes $CPP names a directory.
875if test -n "$CPP" && test -d "$CPP"; then
876 CPP=
877fi
878if test -z "$CPP"; then
879if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
880 echo $ac_n "(cached) $ac_c" 1>&6
881else
882 # This must be in double quotes, not single quotes, because CPP may get
883 # substituted into the Makefile and "${CC-cc}" will confuse make.
884 CPP="${CC-cc} -E"
885 # On the NeXT, cc -E runs the code through the compiler's parser,
886 # not just through cpp.
887 cat > conftest.$ac_ext <<EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +0000888#line 889 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000889#include "confdefs.h"
890#include <assert.h>
891Syntax Error
892EOF
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000893ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner45d31de2000-11-13 04:14:05 +0000894{ (eval echo configure:895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +0000895ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000896if test -z "$ac_err"; then
897 :
898else
899 echo "$ac_err" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000900 echo "configure: failed program was:" >&5
901 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000902 rm -rf conftest*
903 CPP="${CC-cc} -E -traditional-cpp"
904 cat > conftest.$ac_ext <<EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +0000905#line 906 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000906#include "confdefs.h"
907#include <assert.h>
908Syntax Error
909EOF
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000910ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner45d31de2000-11-13 04:14:05 +0000911{ (eval echo configure:912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +0000912ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
913if test -z "$ac_err"; then
914 :
915else
916 echo "$ac_err" >&5
917 echo "configure: failed program was:" >&5
918 cat conftest.$ac_ext >&5
919 rm -rf conftest*
920 CPP="${CC-cc} -nologo -E"
921 cat > conftest.$ac_ext <<EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +0000922#line 923 "configure"
Eric Pouech18ad24a2000-01-16 22:16:33 +0000923#include "confdefs.h"
924#include <assert.h>
925Syntax Error
926EOF
927ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner45d31de2000-11-13 04:14:05 +0000928{ (eval echo configure:929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +0000929ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000930if test -z "$ac_err"; then
931 :
932else
933 echo "$ac_err" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000934 echo "configure: failed program was:" >&5
935 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000936 rm -rf conftest*
937 CPP=/lib/cpp
938fi
939rm -f conftest*
940fi
941rm -f conftest*
Eric Pouech18ad24a2000-01-16 22:16:33 +0000942fi
943rm -f conftest*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000944 ac_cv_prog_CPP="$CPP"
945fi
946 CPP="$ac_cv_prog_CPP"
947else
948 ac_cv_prog_CPP="$CPP"
949fi
950echo "$ac_t""$CPP" 1>&6
951
952# If we find X, set shell vars x_includes and x_libraries to the
953# paths, otherwise set no_x=yes.
954# Uses ac_ vars as temps to allow command line to override cache and checks.
955# --without-x overrides everything else, but does not touch the cache.
956echo $ac_n "checking for X""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +0000957echo "configure:958: checking for X" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000958
959# Check whether --with-x or --without-x was given.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000960if test "${with_x+set}" = set; then
961 withval="$with_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000962 :
963fi
964
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000965# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000966if test "x$with_x" = xno; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000967 # The user explicitly disabled X.
968 have_x=disabled
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000969else
970 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000971 # Both variables are already set.
972 have_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000973 else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000974if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000975 echo $ac_n "(cached) $ac_c" 1>&6
976else
977 # One or both of the vars are not set, and there is no cached value.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000978ac_x_includes=NO ac_x_libraries=NO
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000979rm -fr conftestdir
980if mkdir conftestdir; then
981 cd conftestdir
982 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
983 cat > Imakefile <<'EOF'
984acfindx:
985 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
986EOF
987 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000988 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000989 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000990 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
991 for ac_extension in a so sl; do
992 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
993 test -f $ac_im_libdir/libX11.$ac_extension; then
994 ac_im_usrlibdir=$ac_im_libdir; break
995 fi
996 done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000997 # Screen out bogus values from the imake configuration. They are
998 # bogus both because they are the default anyway, and because
999 # using them would break gcc on systems where it needs fixed includes.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001000 case "$ac_im_incroot" in
1001 /usr/include) ;;
1002 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1003 esac
1004 case "$ac_im_usrlibdir" in
1005 /usr/lib | /lib) ;;
1006 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1007 esac
1008 fi
1009 cd ..
1010 rm -fr conftestdir
1011fi
1012
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001013if test "$ac_x_includes" = NO; then
1014 # Guess where to find include files, by looking for this one X11 .h file.
1015 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1016
1017 # First, try using that file with no special directory specified.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001018cat > conftest.$ac_ext <<EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001019#line 1020 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001020#include "confdefs.h"
1021#include <$x_direct_test_include>
1022EOF
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001023ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner45d31de2000-11-13 04:14:05 +00001024{ (eval echo configure:1025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00001025ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001026if test -z "$ac_err"; then
1027 rm -rf conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001028 # We can compile using X headers with no special include directory.
1029ac_x_includes=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001030else
1031 echo "$ac_err" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001032 echo "configure: failed program was:" >&5
1033 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001034 rm -rf conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001035 # Look for the header file in a standard set of common directories.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001036# Check X11 before X11Rn because it is often a symlink to the current release.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001037 for ac_dir in \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001038 /usr/X11/include \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001039 /usr/X11R6/include \
1040 /usr/X11R5/include \
1041 /usr/X11R4/include \
1042 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001043 /usr/include/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001044 /usr/include/X11R6 \
1045 /usr/include/X11R5 \
1046 /usr/include/X11R4 \
1047 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001048 /usr/local/X11/include \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001049 /usr/local/X11R6/include \
1050 /usr/local/X11R5/include \
1051 /usr/local/X11R4/include \
1052 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001053 /usr/local/include/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001054 /usr/local/include/X11R6 \
1055 /usr/local/include/X11R5 \
1056 /usr/local/include/X11R4 \
1057 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001058 /usr/X386/include \
1059 /usr/x386/include \
1060 /usr/XFree86/include/X11 \
1061 \
1062 /usr/include \
1063 /usr/local/include \
1064 /usr/unsupported/include \
1065 /usr/athena/include \
1066 /usr/local/x11r5/include \
1067 /usr/lpp/Xamples/include \
1068 \
1069 /usr/openwin/include \
1070 /usr/openwin/share/include \
1071 ; \
1072 do
1073 if test -r "$ac_dir/$x_direct_test_include"; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001074 ac_x_includes=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001075 break
1076 fi
1077 done
1078fi
1079rm -f conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001080fi # $ac_x_includes = NO
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001081
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001082if test "$ac_x_libraries" = NO; then
1083 # Check for the libraries.
1084
1085 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1086 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1087
1088 # See if we find them without any special options.
1089 # Don't add to $LIBS permanently.
1090 ac_save_LIBS="$LIBS"
1091 LIBS="-l$x_direct_test_library $LIBS"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001092cat > conftest.$ac_ext <<EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001093#line 1094 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001094#include "confdefs.h"
1095
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001096int main() {
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001097${x_direct_test_function}()
1098; return 0; }
1099EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001100if { (eval echo configure:1101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001101 rm -rf conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001102 LIBS="$ac_save_LIBS"
1103# We can link X programs with no special library path.
1104ac_x_libraries=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001105else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001106 echo "configure: failed program was:" >&5
1107 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001108 rm -rf conftest*
1109 LIBS="$ac_save_LIBS"
1110# First see if replacing the include by lib works.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001111# Check X11 before X11Rn because it is often a symlink to the current release.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001112for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001113 /usr/X11/lib \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001114 /usr/X11R6/lib \
1115 /usr/X11R5/lib \
1116 /usr/X11R4/lib \
1117 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001118 /usr/lib/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001119 /usr/lib/X11R6 \
1120 /usr/lib/X11R5 \
1121 /usr/lib/X11R4 \
1122 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001123 /usr/local/X11/lib \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001124 /usr/local/X11R6/lib \
1125 /usr/local/X11R5/lib \
1126 /usr/local/X11R4/lib \
1127 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001128 /usr/local/lib/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001129 /usr/local/lib/X11R6 \
1130 /usr/local/lib/X11R5 \
1131 /usr/local/lib/X11R4 \
1132 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001133 /usr/X386/lib \
1134 /usr/x386/lib \
1135 /usr/XFree86/lib/X11 \
1136 \
1137 /usr/lib \
1138 /usr/local/lib \
1139 /usr/unsupported/lib \
1140 /usr/athena/lib \
1141 /usr/local/x11r5/lib \
1142 /usr/lpp/Xamples/lib \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001143 /lib/usr/lib/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001144 \
1145 /usr/openwin/lib \
1146 /usr/openwin/share/lib \
1147 ; \
1148do
1149 for ac_extension in a so sl; do
1150 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001151 ac_x_libraries=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001152 break 2
1153 fi
1154 done
1155done
1156fi
1157rm -f conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001158fi # $ac_x_libraries = NO
1159
1160if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1161 # Didn't find X anywhere. Cache the known absence of X.
1162 ac_cv_have_x="have_x=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001163else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001164 # Record where we found X for the cache.
1165 ac_cv_have_x="have_x=yes \
1166 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001167fi
1168fi
1169 fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001170 eval "$ac_cv_have_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001171fi # $with_x != no
1172
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001173if test "$have_x" != yes; then
1174 echo "$ac_t""$have_x" 1>&6
1175 no_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001176else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001177 # If each of the values was on the command line, it overrides each guess.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001178 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1179 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001180 # Update the cache value to reflect the command line values.
1181 ac_cv_have_x="have_x=yes \
1182 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001183 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1184fi
1185
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001186if test "$no_x" = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001187 # Not all programs may use this symbol, but it does not hurt to define it.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001188 cat >> confdefs.h <<\EOF
1189#define X_DISPLAY_MISSING 1
1190EOF
1191
1192 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001193else
1194 if test -n "$x_includes"; then
1195 X_CFLAGS="$X_CFLAGS -I$x_includes"
1196 fi
1197
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001198 # It would also be nice to do this for all -L options, not just this one.
1199 if test -n "$x_libraries"; then
1200 X_LIBS="$X_LIBS -L$x_libraries"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001201 # For Solaris; some versions of Sun CC require a space after -R and
1202 # others require no space. Words are not sufficient . . . .
1203 case "`(uname -sr) 2>/dev/null`" in
1204 "SunOS 5"*)
1205 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +00001206echo "configure:1207: checking whether -R must be followed by a space" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001207 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1208 cat > conftest.$ac_ext <<EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001209#line 1210 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001210#include "confdefs.h"
1211
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001212int main() {
1213
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001214; return 0; }
1215EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001216if { (eval echo configure:1217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001217 rm -rf conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001218 ac_R_nospace=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001219else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001220 echo "configure: failed program was:" >&5
1221 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001222 rm -rf conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001223 ac_R_nospace=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001224fi
1225rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001226 if test $ac_R_nospace = yes; then
1227 echo "$ac_t""no" 1>&6
1228 X_LIBS="$X_LIBS -R$x_libraries"
1229 else
1230 LIBS="$ac_xsave_LIBS -R $x_libraries"
1231 cat > conftest.$ac_ext <<EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001232#line 1233 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001233#include "confdefs.h"
1234
1235int main() {
1236
1237; return 0; }
1238EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001239if { (eval echo configure:1240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001240 rm -rf conftest*
1241 ac_R_space=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001242else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001243 echo "configure: failed program was:" >&5
1244 cat conftest.$ac_ext >&5
1245 rm -rf conftest*
1246 ac_R_space=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001247fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001248rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001249 if test $ac_R_space = yes; then
1250 echo "$ac_t""yes" 1>&6
1251 X_LIBS="$X_LIBS -R $x_libraries"
1252 else
1253 echo "$ac_t""neither works" 1>&6
1254 fi
1255 fi
1256 LIBS="$ac_xsave_LIBS"
1257 esac
1258 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001259
1260 # Check for system-dependent libraries X programs must link with.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001261 # Do this before checking for the system-independent R6 libraries
1262 # (-lICE), since we may need -lsocket or whatever for X linking.
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001263
1264 if test "$ISC" = yes; then
1265 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1266 else
1267 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1268 # libraries were built with DECnet support. And karl@cs.umb.edu says
1269 # the Alpha needs dnet_stub (dnet does not exist).
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001270 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +00001271echo "configure:1272: checking for dnet_ntoa in -ldnet" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001272ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001273if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001274 echo $ac_n "(cached) $ac_c" 1>&6
1275else
1276 ac_save_LIBS="$LIBS"
1277LIBS="-ldnet $LIBS"
1278cat > conftest.$ac_ext <<EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001279#line 1280 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001280#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001281/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001282/* We use char because int might match the return type of a gcc2
1283 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001284char dnet_ntoa();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001285
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001286int main() {
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001287dnet_ntoa()
1288; return 0; }
1289EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001290if { (eval echo configure:1291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001291 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001292 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001293else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001294 echo "configure: failed program was:" >&5
1295 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001296 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001297 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001298fi
1299rm -f conftest*
1300LIBS="$ac_save_LIBS"
1301
1302fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001303if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001304 echo "$ac_t""yes" 1>&6
1305 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1306else
1307 echo "$ac_t""no" 1>&6
1308fi
1309
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001310 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001311 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +00001312echo "configure:1313: checking for dnet_ntoa in -ldnet_stub" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001313ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001314if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001315 echo $ac_n "(cached) $ac_c" 1>&6
1316else
1317 ac_save_LIBS="$LIBS"
1318LIBS="-ldnet_stub $LIBS"
1319cat > conftest.$ac_ext <<EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001320#line 1321 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001321#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001322/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001323/* We use char because int might match the return type of a gcc2
1324 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001325char dnet_ntoa();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001326
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001327int main() {
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001328dnet_ntoa()
1329; return 0; }
1330EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001331if { (eval echo configure:1332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001332 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001333 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001334else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001335 echo "configure: failed program was:" >&5
1336 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001337 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001338 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001339fi
1340rm -f conftest*
1341LIBS="$ac_save_LIBS"
1342
1343fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001344if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001345 echo "$ac_t""yes" 1>&6
1346 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1347else
1348 echo "$ac_t""no" 1>&6
1349fi
1350
1351 fi
1352
1353 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1354 # to get the SysV transport functions.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001355 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1356 # needs -lnsl.
1357 # The nsl library prevents programs from opening the X display
1358 # on Irix 5.2, according to dickey@clark.net.
1359 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +00001360echo "configure:1361: checking for gethostbyname" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001361if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1363else
1364 cat > conftest.$ac_ext <<EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001365#line 1366 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001366#include "confdefs.h"
1367/* System header to define __stub macros and hopefully few prototypes,
1368 which can conflict with char gethostbyname(); below. */
1369#include <assert.h>
1370/* Override any gcc2 internal prototype to avoid an error. */
1371/* We use char because int might match the return type of a gcc2
1372 builtin and then its argument prototype would still apply. */
1373char gethostbyname();
1374
1375int main() {
1376
1377/* The GNU C library defines this for functions which it implements
1378 to always fail with ENOSYS. Some functions are actually named
1379 something starting with __ and the normal name is an alias. */
1380#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1381choke me
1382#else
1383gethostbyname();
1384#endif
1385
1386; return 0; }
1387EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001388if { (eval echo configure:1389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001389 rm -rf conftest*
1390 eval "ac_cv_func_gethostbyname=yes"
1391else
1392 echo "configure: failed program was:" >&5
1393 cat conftest.$ac_ext >&5
1394 rm -rf conftest*
1395 eval "ac_cv_func_gethostbyname=no"
1396fi
1397rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001398fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001399
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001400if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1401 echo "$ac_t""yes" 1>&6
1402 :
1403else
1404 echo "$ac_t""no" 1>&6
1405fi
1406
1407 if test $ac_cv_func_gethostbyname = no; then
1408 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +00001409echo "configure:1410: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001410ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001411if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001412 echo $ac_n "(cached) $ac_c" 1>&6
1413else
1414 ac_save_LIBS="$LIBS"
1415LIBS="-lnsl $LIBS"
1416cat > conftest.$ac_ext <<EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001417#line 1418 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001418#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001419/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001420/* We use char because int might match the return type of a gcc2
1421 builtin and then its argument prototype would still apply. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001422char gethostbyname();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001423
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001424int main() {
1425gethostbyname()
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001426; return 0; }
1427EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001428if { (eval echo configure:1429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001429 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001430 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001431else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001432 echo "configure: failed program was:" >&5
1433 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001434 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001435 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001436fi
1437rm -f conftest*
1438LIBS="$ac_save_LIBS"
1439
1440fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001441if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001442 echo "$ac_t""yes" 1>&6
1443 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1444else
1445 echo "$ac_t""no" 1>&6
1446fi
1447
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001448 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001449
1450 # lieder@skyler.mavd.honeywell.com says without -lsocket,
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001451 # socket/setsockopt and other routines are undefined under SCO ODT
1452 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1453 # on later versions), says simon@lia.di.epfl.ch: it contains
1454 # gethostby* variants that don't use the nameserver (or something).
1455 # -lsocket must be given before -lnsl if both are needed.
1456 # We assume that if connect needs -lnsl, so does gethostbyname.
1457 echo $ac_n "checking for connect""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +00001458echo "configure:1459: checking for connect" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001459if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1461else
1462 cat > conftest.$ac_ext <<EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001463#line 1464 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001464#include "confdefs.h"
1465/* System header to define __stub macros and hopefully few prototypes,
1466 which can conflict with char connect(); below. */
1467#include <assert.h>
1468/* Override any gcc2 internal prototype to avoid an error. */
1469/* We use char because int might match the return type of a gcc2
1470 builtin and then its argument prototype would still apply. */
1471char connect();
1472
1473int main() {
1474
1475/* The GNU C library defines this for functions which it implements
1476 to always fail with ENOSYS. Some functions are actually named
1477 something starting with __ and the normal name is an alias. */
1478#if defined (__stub_connect) || defined (__stub___connect)
1479choke me
1480#else
1481connect();
1482#endif
1483
1484; return 0; }
1485EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001486if { (eval echo configure:1487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001487 rm -rf conftest*
1488 eval "ac_cv_func_connect=yes"
1489else
1490 echo "configure: failed program was:" >&5
1491 cat conftest.$ac_ext >&5
1492 rm -rf conftest*
1493 eval "ac_cv_func_connect=no"
1494fi
1495rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001496fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001497
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001498if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1499 echo "$ac_t""yes" 1>&6
1500 :
1501else
1502 echo "$ac_t""no" 1>&6
1503fi
1504
1505 if test $ac_cv_func_connect = no; then
1506 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +00001507echo "configure:1508: checking for connect in -lsocket" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001508ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001509if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001510 echo $ac_n "(cached) $ac_c" 1>&6
1511else
1512 ac_save_LIBS="$LIBS"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001513LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001514cat > conftest.$ac_ext <<EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001515#line 1516 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001516#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001517/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001518/* We use char because int might match the return type of a gcc2
1519 builtin and then its argument prototype would still apply. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001520char connect();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001521
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001522int main() {
1523connect()
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001524; return 0; }
1525EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001526if { (eval echo configure:1527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001527 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001528 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001529else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001530 echo "configure: failed program was:" >&5
1531 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001532 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001533 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001534fi
1535rm -f conftest*
1536LIBS="$ac_save_LIBS"
1537
1538fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001539if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001540 echo "$ac_t""yes" 1>&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001541 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001542else
1543 echo "$ac_t""no" 1>&6
1544fi
1545
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001546 fi
1547
1548 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1549 echo $ac_n "checking for remove""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +00001550echo "configure:1551: checking for remove" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001551if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
1553else
1554 cat > conftest.$ac_ext <<EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001555#line 1556 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001556#include "confdefs.h"
1557/* System header to define __stub macros and hopefully few prototypes,
1558 which can conflict with char remove(); below. */
1559#include <assert.h>
1560/* Override any gcc2 internal prototype to avoid an error. */
1561/* We use char because int might match the return type of a gcc2
1562 builtin and then its argument prototype would still apply. */
1563char remove();
1564
1565int main() {
1566
1567/* The GNU C library defines this for functions which it implements
1568 to always fail with ENOSYS. Some functions are actually named
1569 something starting with __ and the normal name is an alias. */
1570#if defined (__stub_remove) || defined (__stub___remove)
1571choke me
1572#else
1573remove();
1574#endif
1575
1576; return 0; }
1577EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001578if { (eval echo configure:1579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001579 rm -rf conftest*
1580 eval "ac_cv_func_remove=yes"
1581else
1582 echo "configure: failed program was:" >&5
1583 cat conftest.$ac_ext >&5
1584 rm -rf conftest*
1585 eval "ac_cv_func_remove=no"
1586fi
1587rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001588fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001589
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001590if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1591 echo "$ac_t""yes" 1>&6
1592 :
1593else
1594 echo "$ac_t""no" 1>&6
1595fi
1596
1597 if test $ac_cv_func_remove = no; then
1598 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +00001599echo "configure:1600: checking for remove in -lposix" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001600ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001601if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1602 echo $ac_n "(cached) $ac_c" 1>&6
1603else
1604 ac_save_LIBS="$LIBS"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001605LIBS="-lposix $LIBS"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001606cat > conftest.$ac_ext <<EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001607#line 1608 "configure"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001608#include "confdefs.h"
1609/* Override any gcc2 internal prototype to avoid an error. */
1610/* We use char because int might match the return type of a gcc2
1611 builtin and then its argument prototype would still apply. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001612char remove();
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001613
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001614int main() {
1615remove()
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001616; return 0; }
1617EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001618if { (eval echo configure:1619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001619 rm -rf conftest*
1620 eval "ac_cv_lib_$ac_lib_var=yes"
1621else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001622 echo "configure: failed program was:" >&5
1623 cat conftest.$ac_ext >&5
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001624 rm -rf conftest*
1625 eval "ac_cv_lib_$ac_lib_var=no"
1626fi
1627rm -f conftest*
1628LIBS="$ac_save_LIBS"
1629
1630fi
1631if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1632 echo "$ac_t""yes" 1>&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001633 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001634else
1635 echo "$ac_t""no" 1>&6
1636fi
1637
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001638 fi
1639
1640 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1641 echo $ac_n "checking for shmat""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +00001642echo "configure:1643: checking for shmat" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001643if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1645else
1646 cat > conftest.$ac_ext <<EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001647#line 1648 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001648#include "confdefs.h"
1649/* System header to define __stub macros and hopefully few prototypes,
1650 which can conflict with char shmat(); below. */
1651#include <assert.h>
1652/* Override any gcc2 internal prototype to avoid an error. */
1653/* We use char because int might match the return type of a gcc2
1654 builtin and then its argument prototype would still apply. */
1655char shmat();
1656
1657int main() {
1658
1659/* The GNU C library defines this for functions which it implements
1660 to always fail with ENOSYS. Some functions are actually named
1661 something starting with __ and the normal name is an alias. */
1662#if defined (__stub_shmat) || defined (__stub___shmat)
1663choke me
1664#else
1665shmat();
1666#endif
1667
1668; return 0; }
1669EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001670if { (eval echo configure:1671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001671 rm -rf conftest*
1672 eval "ac_cv_func_shmat=yes"
1673else
1674 echo "configure: failed program was:" >&5
1675 cat conftest.$ac_ext >&5
1676 rm -rf conftest*
1677 eval "ac_cv_func_shmat=no"
1678fi
1679rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001680fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001681
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001682if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1683 echo "$ac_t""yes" 1>&6
1684 :
1685else
1686 echo "$ac_t""no" 1>&6
1687fi
1688
1689 if test $ac_cv_func_shmat = no; then
1690 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +00001691echo "configure:1692: checking for shmat in -lipc" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001692ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1693if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1694 echo $ac_n "(cached) $ac_c" 1>&6
1695else
1696 ac_save_LIBS="$LIBS"
1697LIBS="-lipc $LIBS"
1698cat > conftest.$ac_ext <<EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001699#line 1700 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001700#include "confdefs.h"
1701/* Override any gcc2 internal prototype to avoid an error. */
1702/* We use char because int might match the return type of a gcc2
1703 builtin and then its argument prototype would still apply. */
1704char shmat();
1705
1706int main() {
1707shmat()
1708; return 0; }
1709EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001710if { (eval echo configure:1711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001711 rm -rf conftest*
1712 eval "ac_cv_lib_$ac_lib_var=yes"
1713else
1714 echo "configure: failed program was:" >&5
1715 cat conftest.$ac_ext >&5
1716 rm -rf conftest*
1717 eval "ac_cv_lib_$ac_lib_var=no"
1718fi
1719rm -f conftest*
1720LIBS="$ac_save_LIBS"
1721
1722fi
1723if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1724 echo "$ac_t""yes" 1>&6
1725 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1726else
1727 echo "$ac_t""no" 1>&6
1728fi
1729
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001730 fi
1731 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001732
1733 # Check for libraries that X11R6 Xt/Xaw programs need.
1734 ac_save_LDFLAGS="$LDFLAGS"
1735 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1736 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1737 # check for ICE first), but we must link in the order -lSM -lICE or
1738 # we get undefined symbols. So assume we have SM if we have ICE.
1739 # These have to be linked with before -lX11, unlike the other
1740 # libraries we check for below, so use a different variable.
1741 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1742 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +00001743echo "configure:1744: checking for IceConnectionNumber in -lICE" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001744ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1745if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1746 echo $ac_n "(cached) $ac_c" 1>&6
1747else
1748 ac_save_LIBS="$LIBS"
Eric Pouech18ad24a2000-01-16 22:16:33 +00001749LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001750cat > conftest.$ac_ext <<EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001751#line 1752 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001752#include "confdefs.h"
1753/* Override any gcc2 internal prototype to avoid an error. */
1754/* We use char because int might match the return type of a gcc2
1755 builtin and then its argument prototype would still apply. */
1756char IceConnectionNumber();
1757
1758int main() {
1759IceConnectionNumber()
1760; return 0; }
1761EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001762if { (eval echo configure:1763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001763 rm -rf conftest*
1764 eval "ac_cv_lib_$ac_lib_var=yes"
1765else
1766 echo "configure: failed program was:" >&5
1767 cat conftest.$ac_ext >&5
1768 rm -rf conftest*
1769 eval "ac_cv_lib_$ac_lib_var=no"
1770fi
1771rm -f conftest*
1772LIBS="$ac_save_LIBS"
1773
1774fi
1775if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1776 echo "$ac_t""yes" 1>&6
1777 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1778else
1779 echo "$ac_t""no" 1>&6
1780fi
1781
1782 LDFLAGS="$ac_save_LDFLAGS"
1783
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001784fi
1785
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001786for ac_prog in 'bison -y' byacc
1787do
1788# Extract the first word of "$ac_prog", so it can be a program name with args.
1789set dummy $ac_prog; ac_word=$2
1790echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +00001791echo "configure:1792: checking for $ac_word" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001792if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1793 echo $ac_n "(cached) $ac_c" 1>&6
1794else
1795 if test -n "$YACC"; then
1796 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1797else
Eric Pouech18ad24a2000-01-16 22:16:33 +00001798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1799 ac_dummy="$PATH"
1800 for ac_dir in $ac_dummy; do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001801 test -z "$ac_dir" && ac_dir=.
1802 if test -f $ac_dir/$ac_word; then
1803 ac_cv_prog_YACC="$ac_prog"
1804 break
1805 fi
1806 done
1807 IFS="$ac_save_ifs"
1808fi
1809fi
1810YACC="$ac_cv_prog_YACC"
1811if test -n "$YACC"; then
1812 echo "$ac_t""$YACC" 1>&6
1813else
1814 echo "$ac_t""no" 1>&6
1815fi
1816
1817test -n "$YACC" && break
1818done
1819test -n "$YACC" || YACC="yacc"
1820
1821# Extract the first word of "flex", so it can be a program name with args.
1822set dummy flex; ac_word=$2
1823echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +00001824echo "configure:1825: checking for $ac_word" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001825if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1826 echo $ac_n "(cached) $ac_c" 1>&6
1827else
1828 if test -n "$LEX"; then
1829 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1830else
Eric Pouech18ad24a2000-01-16 22:16:33 +00001831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1832 ac_dummy="$PATH"
1833 for ac_dir in $ac_dummy; do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001834 test -z "$ac_dir" && ac_dir=.
1835 if test -f $ac_dir/$ac_word; then
1836 ac_cv_prog_LEX="flex"
1837 break
1838 fi
1839 done
1840 IFS="$ac_save_ifs"
1841 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1842fi
1843fi
1844LEX="$ac_cv_prog_LEX"
1845if test -n "$LEX"; then
1846 echo "$ac_t""$LEX" 1>&6
1847else
1848 echo "$ac_t""no" 1>&6
1849fi
1850
1851if test -z "$LEXLIB"
1852then
1853 case "$LEX" in
1854 flex*) ac_lib=fl ;;
1855 *) ac_lib=l ;;
1856 esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001857 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +00001858echo "configure:1859: checking for yywrap in -l$ac_lib" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001859ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001860if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001861 echo $ac_n "(cached) $ac_c" 1>&6
1862else
1863 ac_save_LIBS="$LIBS"
1864LIBS="-l$ac_lib $LIBS"
1865cat > conftest.$ac_ext <<EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001866#line 1867 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001867#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001868/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001869/* We use char because int might match the return type of a gcc2
1870 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001871char yywrap();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001872
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001873int main() {
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001874yywrap()
1875; return 0; }
1876EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001877if { (eval echo configure:1878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001878 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001879 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001880else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001881 echo "configure: failed program was:" >&5
1882 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001883 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001884 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001885fi
1886rm -f conftest*
1887LIBS="$ac_save_LIBS"
1888
1889fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001890if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001891 echo "$ac_t""yes" 1>&6
1892 LEXLIB="-l$ac_lib"
1893else
1894 echo "$ac_t""no" 1>&6
1895fi
1896
1897fi
1898
Marcus Meissnerb53bb412000-07-23 13:41:51 +00001899for ac_prog in $LEX flex lex
1900do
1901# Extract the first word of "$ac_prog", so it can be a program name with args.
1902set dummy $ac_prog; ac_word=$2
1903echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +00001904echo "configure:1905: checking for $ac_word" >&5
Marcus Meissnerb53bb412000-07-23 13:41:51 +00001905if eval "test \"`echo '$''{'ac_cv_prog_XLEX'+set}'`\" = set"; then
1906 echo $ac_n "(cached) $ac_c" 1>&6
1907else
1908 if test -n "$XLEX"; then
1909 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
1910else
1911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1912 ac_dummy="$PATH"
1913 for ac_dir in $ac_dummy; do
1914 test -z "$ac_dir" && ac_dir=.
1915 if test -f $ac_dir/$ac_word; then
1916 ac_cv_prog_XLEX="$ac_prog"
1917 break
1918 fi
1919 done
1920 IFS="$ac_save_ifs"
1921fi
1922fi
1923XLEX="$ac_cv_prog_XLEX"
1924if test -n "$XLEX"; then
1925 echo "$ac_t""$XLEX" 1>&6
1926else
1927 echo "$ac_t""no" 1>&6
1928fi
1929
1930test -n "$XLEX" && break
1931done
1932test -n "$XLEX" || XLEX="none"
1933
1934if test "$XLEX" = "none"
1935then
1936 echo "*** Error: No suitable lex found. ***"
1937 echo " Please install the 'flex' package."
1938 exit 1
1939fi
1940echo $ac_n "checking lex output file root""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +00001941echo "configure:1942: checking lex output file root" >&5
Marcus Meissnerb53bb412000-07-23 13:41:51 +00001942if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1943 echo $ac_n "(cached) $ac_c" 1>&6
1944else
1945 # The minimal lex program is just a single line: %%. But some broken lexes
1946# (Solaris, I think it was) want two %% lines, so accommodate them.
1947echo '%%
1948%%' | $LEX
1949if test -f lex.yy.c; then
1950 ac_cv_prog_lex_root=lex.yy
1951elif test -f lexyy.c; then
1952 ac_cv_prog_lex_root=lexyy
1953else
1954 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1955fi
1956fi
1957
1958echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1959LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1960
1961echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +00001962echo "configure:1963: checking whether yytext is a pointer" >&5
Marcus Meissnerb53bb412000-07-23 13:41:51 +00001963if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1965else
1966 # POSIX says lex can declare yytext either as a pointer or an array; the
1967# default is implementation-dependent. Figure out which it is, since
1968# not all implementations provide the %pointer and %array declarations.
1969ac_cv_prog_lex_yytext_pointer=no
1970echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1971ac_save_LIBS="$LIBS"
1972LIBS="$LIBS $LEXLIB"
1973cat > conftest.$ac_ext <<EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001974#line 1975 "configure"
Marcus Meissnerb53bb412000-07-23 13:41:51 +00001975#include "confdefs.h"
1976`cat $LEX_OUTPUT_ROOT.c`
1977int main() {
1978
1979; return 0; }
1980EOF
Marcus Meissner45d31de2000-11-13 04:14:05 +00001981if { (eval echo configure:1982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissnerb53bb412000-07-23 13:41:51 +00001982 rm -rf conftest*
1983 ac_cv_prog_lex_yytext_pointer=yes
1984else
1985 echo "configure: failed program was:" >&5
1986 cat conftest.$ac_ext >&5
1987fi
1988rm -f conftest*
1989LIBS="$ac_save_LIBS"
1990rm -f "${LEX_OUTPUT_ROOT}.c"
1991
1992fi
1993
1994echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1995if test $ac_cv_prog_lex_yytext_pointer = yes; then
1996 cat >> confdefs.h <<\EOF
1997#define YYTEXT_POINTER 1
1998EOF
1999
2000fi
2001
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002002# Extract the first word of "ranlib", so it can be a program name with args.
2003set dummy ranlib; ac_word=$2
2004echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +00002005echo "configure:2006: checking for $ac_word" >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002006if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2007 echo $ac_n "(cached) $ac_c" 1>&6
2008else
2009 if test -n "$RANLIB"; then
2010 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2011else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002012 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2013 ac_dummy="$PATH"
2014 for ac_dir in $ac_dummy; do
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002015 test -z "$ac_dir" && ac_dir=.
2016 if test -f $ac_dir/$ac_word; then
2017 ac_cv_prog_RANLIB="ranlib"
2018 break
2019 fi
2020 done
2021 IFS="$ac_save_ifs"
2022 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002023fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002024fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002025RANLIB="$ac_cv_prog_RANLIB"
2026if test -n "$RANLIB"; then
2027 echo "$ac_t""$RANLIB" 1>&6
2028else
2029 echo "$ac_t""no" 1>&6
2030fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002031
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002032# Find a good install program. We prefer a C program (faster),
2033# so one script is as good as another. But avoid the broken or
2034# incompatible versions:
2035# SysV /etc/install, /usr/sbin/install
2036# SunOS /usr/etc/install
2037# IRIX /sbin/install
2038# AIX /bin/install
Eric Pouech18ad24a2000-01-16 22:16:33 +00002039# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002040# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2041# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2042# ./install, which can be erroneously created by make from ./install.sh.
2043echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +00002044echo "configure:2045: checking for a BSD compatible install" >&5
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002045if test -z "$INSTALL"; then
2046if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2048else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002049 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002050 for ac_dir in $PATH; do
2051 # Account for people who put trailing slashes in PATH elements.
2052 case "$ac_dir/" in
2053 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2054 *)
2055 # OSF1 and SCO ODT 3.0 have their own names for install.
Eric Pouech18ad24a2000-01-16 22:16:33 +00002056 # Don't use installbsd from OSF since it installs stuff as root
2057 # by default.
2058 for ac_prog in ginstall scoinst install; do
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002059 if test -f $ac_dir/$ac_prog; then
2060 if test $ac_prog = install &&
2061 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2062 # AIX install. It has an incompatible calling convention.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002063 :
2064 else
2065 ac_cv_path_install="$ac_dir/$ac_prog -c"
2066 break 2
2067 fi
2068 fi
2069 done
2070 ;;
2071 esac
2072 done
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00002073 IFS="$ac_save_IFS"
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002074
2075fi
2076 if test "${ac_cv_path_install+set}" = set; then
2077 INSTALL="$ac_cv_path_install"
2078 else
2079 # As a last resort, use the slow shell script. We don't cache a
2080 # path for INSTALL within a source directory, because that will
2081 # break other packages using the cache if that directory is
2082 # removed, or if the path is relative.
2083 INSTALL="$ac_install_sh"
2084 fi
2085fi
2086echo "$ac_t""$INSTALL" 1>&6
2087
2088# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2089# It thinks the first close brace ends the variable substitution.
2090test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2091
Eric Pouech18ad24a2000-01-16 22:16:33 +00002092test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2093
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002094test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2095
Alexandre Julliard641ee761997-08-04 16:34:36 +00002096echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +00002097echo "configure:2098: checking whether ln -s works" >&5
Alexandre Julliard641ee761997-08-04 16:34:36 +00002098if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2100else
2101 rm -f conftestdata
2102if ln -s X conftestdata 2>/dev/null
2103then
2104 rm -f conftestdata
2105 ac_cv_prog_LN_S="ln -s"
2106else
2107 ac_cv_prog_LN_S=ln
2108fi
2109fi
2110LN_S="$ac_cv_prog_LN_S"
2111if test "$ac_cv_prog_LN_S" = "ln -s"; then
2112 echo "$ac_t""yes" 1>&6
2113else
2114 echo "$ac_t""no" 1>&6
2115fi
2116
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00002117# Extract the first word of "c2man", so it can be a program name with args.
2118set dummy c2man; ac_word=$2
2119echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +00002120echo "configure:2121: checking for $ac_word" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00002121if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2123else
2124 if test -n "$C2MAN"; then
2125 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
2126else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2128 ac_dummy="$PATH"
2129 for ac_dir in $ac_dummy; do
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00002130 test -z "$ac_dir" && ac_dir=.
2131 if test -f $ac_dir/$ac_word; then
2132 ac_cv_prog_C2MAN="c2man"
2133 break
2134 fi
2135 done
2136 IFS="$ac_save_ifs"
Mike McCormacke0df32f2000-08-11 21:15:21 +00002137 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00002138fi
2139fi
2140C2MAN="$ac_cv_prog_C2MAN"
2141if test -n "$C2MAN"; then
2142 echo "$ac_t""$C2MAN" 1>&6
2143else
2144 echo "$ac_t""no" 1>&6
2145fi
2146
James Juranffe6b761999-06-12 08:21:57 +00002147# Extract the first word of "ldconfig", so it can be a program name with args.
2148set dummy ldconfig; ac_word=$2
2149echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marcus Meissner45d31de2000-11-13 04:14:05 +00002150echo "configure:2151: checking for $ac_word" >&5
James Juranffe6b761999-06-12 08:21:57 +00002151if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&6
2153else
2154 case "$LDCONFIG" in
2155 /*)
2156 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2157 ;;
Eric Pouech18ad24a2000-01-16 22:16:33 +00002158 ?:/*)
2159 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
2160 ;;
James Juranffe6b761999-06-12 08:21:57 +00002161 *)
Eric Pouech18ad24a2000-01-16 22:16:33 +00002162 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2163 ac_dummy="/sbin:/usr/sbin:$PATH"
2164 for ac_dir in $ac_dummy; do
James Juranffe6b761999-06-12 08:21:57 +00002165 test -z "$ac_dir" && ac_dir=.
2166 if test -f $ac_dir/$ac_word; then
2167 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2168 break
2169 fi
2170 done
2171 IFS="$ac_save_ifs"
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00002172 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00002173 ;;
2174esac
2175fi
2176LDCONFIG="$ac_cv_path_LDCONFIG"
2177if test -n "$LDCONFIG"; then
2178 echo "$ac_t""$LDCONFIG" 1>&6
2179else
2180 echo "$ac_t""no" 1>&6
2181fi
2182
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +00002183echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2184echo "configure:2185: checking for Cygwin environment" >&5
2185if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2186 echo $ac_n "(cached) $ac_c" 1>&6
2187else
2188 cat > conftest.$ac_ext <<EOF
2189#line 2190 "configure"
2190#include "confdefs.h"
2191
2192int main() {
2193
2194#ifndef __CYGWIN__
2195#define __CYGWIN__ __CYGWIN32__
2196#endif
2197return __CYGWIN__;
2198; return 0; }
2199EOF
2200if { (eval echo configure:2201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2201 rm -rf conftest*
2202 ac_cv_cygwin=yes
2203else
2204 echo "configure: failed program was:" >&5
2205 cat conftest.$ac_ext >&5
2206 rm -rf conftest*
2207 ac_cv_cygwin=no
2208fi
2209rm -f conftest*
2210rm -f conftest*
2211fi
2212
2213echo "$ac_t""$ac_cv_cygwin" 1>&6
2214CYGWIN=
2215test "$ac_cv_cygwin" = yes && CYGWIN=yes
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00002216# Extract the first word of "dllwrap", so it can be a program name with args.
2217set dummy dllwrap; ac_word=$2
2218echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2219echo "configure:2220: checking for $ac_word" >&5
2220if eval "test \"`echo '$''{'ac_cv_prog_DLLWRAP'+set}'`\" = set"; then
2221 echo $ac_n "(cached) $ac_c" 1>&6
2222else
2223 if test -n "$DLLWRAP"; then
2224 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
2225else
2226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2227 ac_dummy="$PATH"
2228 for ac_dir in $ac_dummy; do
2229 test -z "$ac_dir" && ac_dir=.
2230 if test -f $ac_dir/$ac_word; then
2231 ac_cv_prog_DLLWRAP="dllwrap"
2232 break
2233 fi
2234 done
2235 IFS="$ac_save_ifs"
2236 test -z "$ac_cv_prog_DLLWRAP" && ac_cv_prog_DLLWRAP="false"
2237fi
2238fi
2239DLLWRAP="$ac_cv_prog_DLLWRAP"
2240if test -n "$DLLWRAP"; then
2241 echo "$ac_t""$DLLWRAP" 1>&6
2242else
2243 echo "$ac_t""no" 1>&6
2244fi
2245
Alexandre Julliard02e90081998-01-04 17:49:09 +00002246
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00002247for ac_prog in lclint lint
2248do
2249# Extract the first word of "$ac_prog", so it can be a program name with args.
2250set dummy $ac_prog; ac_word=$2
2251echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00002252echo "configure:2253: checking for $ac_word" >&5
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00002253if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2255else
2256 if test -n "$LINT"; then
2257 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2258else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002259 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2260 ac_dummy="$PATH"
2261 for ac_dir in $ac_dummy; do
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00002262 test -z "$ac_dir" && ac_dir=.
2263 if test -f $ac_dir/$ac_word; then
2264 ac_cv_prog_LINT="$ac_prog"
2265 break
2266 fi
2267 done
2268 IFS="$ac_save_ifs"
2269fi
2270fi
2271LINT="$ac_cv_prog_LINT"
2272if test -n "$LINT"; then
2273 echo "$ac_t""$LINT" 1>&6
2274else
2275 echo "$ac_t""no" 1>&6
2276fi
2277
2278test -n "$LINT" && break
2279done
2280
2281if test "$LINT" = "lint"
2282then
2283 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2284 fi
2285
2286
2287
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +00002288if test "$CYGWIN" = "yes"
2289then
2290 LDCOMBINE="ld -r --enable-stdcall-fixup"
2291else
2292 LDCOMBINE="ld -r"
2293fi
2294
2295
Alexandre Julliard02e90081998-01-04 17:49:09 +00002296
Howard Abrams13277481999-07-10 13:16:29 +00002297echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00002298echo "configure:2299: checking for sqrt in -lm" >&5
Howard Abrams13277481999-07-10 13:16:29 +00002299ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2300if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2302else
2303 ac_save_LIBS="$LIBS"
2304LIBS="-lm $LIBS"
2305cat > conftest.$ac_ext <<EOF
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00002306#line 2307 "configure"
Howard Abrams13277481999-07-10 13:16:29 +00002307#include "confdefs.h"
2308/* Override any gcc2 internal prototype to avoid an error. */
2309/* We use char because int might match the return type of a gcc2
2310 builtin and then its argument prototype would still apply. */
2311char sqrt();
2312
2313int main() {
2314sqrt()
2315; return 0; }
2316EOF
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00002317if { (eval echo configure:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Howard Abrams13277481999-07-10 13:16:29 +00002318 rm -rf conftest*
2319 eval "ac_cv_lib_$ac_lib_var=yes"
2320else
2321 echo "configure: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2323 rm -rf conftest*
2324 eval "ac_cv_lib_$ac_lib_var=no"
2325fi
2326rm -f conftest*
2327LIBS="$ac_save_LIBS"
2328
2329fi
2330if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2331 echo "$ac_t""yes" 1>&6
2332 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2333 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2334 cat >> confdefs.h <<EOF
2335#define $ac_tr_lib 1
2336EOF
2337
2338 LIBS="-lm $LIBS"
2339
2340else
2341 echo "$ac_t""no" 1>&6
2342fi
2343
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002344echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00002345echo "configure:2346: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002346ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002347if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliard902da691995-11-05 14:39:02 +00002348 echo $ac_n "(cached) $ac_c" 1>&6
2349else
2350 ac_save_LIBS="$LIBS"
2351LIBS="-li386 $LIBS"
2352cat > conftest.$ac_ext <<EOF
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00002353#line 2354 "configure"
Alexandre Julliard902da691995-11-05 14:39:02 +00002354#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002355/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002356/* We use char because int might match the return type of a gcc2
2357 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002358char i386_set_ldt();
Alexandre Julliard902da691995-11-05 14:39:02 +00002359
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002360int main() {
Alexandre Julliard902da691995-11-05 14:39:02 +00002361i386_set_ldt()
2362; return 0; }
2363EOF
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00002364if { (eval echo configure:2365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard902da691995-11-05 14:39:02 +00002365 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002366 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliard902da691995-11-05 14:39:02 +00002367else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002368 echo "configure: failed program was:" >&5
2369 cat conftest.$ac_ext >&5
Alexandre Julliard902da691995-11-05 14:39:02 +00002370 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002371 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliard902da691995-11-05 14:39:02 +00002372fi
2373rm -f conftest*
2374LIBS="$ac_save_LIBS"
2375
2376fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002377if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliard902da691995-11-05 14:39:02 +00002378 echo "$ac_t""yes" 1>&6
Alexandre Julliard02e90081998-01-04 17:49:09 +00002379 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2380 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2381 cat >> confdefs.h <<EOF
2382#define $ac_tr_lib 1
2383EOF
2384
2385 LIBS="-li386 $LIBS"
2386
2387else
2388 echo "$ac_t""no" 1>&6
2389fi
2390
Todd Vierlingecc76691998-12-15 17:49:02 +00002391echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00002392echo "configure:2393: checking for _oss_ioctl in -lossaudio" >&5
Todd Vierlingecc76691998-12-15 17:49:02 +00002393ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2394if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2395 echo $ac_n "(cached) $ac_c" 1>&6
2396else
2397 ac_save_LIBS="$LIBS"
2398LIBS="-lossaudio $LIBS"
2399cat > conftest.$ac_ext <<EOF
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00002400#line 2401 "configure"
Todd Vierlingecc76691998-12-15 17:49:02 +00002401#include "confdefs.h"
2402/* Override any gcc2 internal prototype to avoid an error. */
2403/* We use char because int might match the return type of a gcc2
2404 builtin and then its argument prototype would still apply. */
2405char _oss_ioctl();
2406
2407int main() {
2408_oss_ioctl()
2409; return 0; }
2410EOF
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00002411if { (eval echo configure:2412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Todd Vierlingecc76691998-12-15 17:49:02 +00002412 rm -rf conftest*
2413 eval "ac_cv_lib_$ac_lib_var=yes"
2414else
2415 echo "configure: failed program was:" >&5
2416 cat conftest.$ac_ext >&5
2417 rm -rf conftest*
2418 eval "ac_cv_lib_$ac_lib_var=no"
2419fi
2420rm -f conftest*
2421LIBS="$ac_save_LIBS"
2422
2423fi
2424if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2425 echo "$ac_t""yes" 1>&6
2426 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2427 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2428 cat >> confdefs.h <<EOF
2429#define $ac_tr_lib 1
2430EOF
2431
2432 LIBS="-lossaudio $LIBS"
2433
2434else
2435 echo "$ac_t""no" 1>&6
2436fi
2437
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002438for ac_func in iswalnum
Patrik Stridvallea584721998-11-01 16:22:07 +00002439do
2440echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002441echo "configure:2442: checking for $ac_func" >&5
Patrik Stridvallea584721998-11-01 16:22:07 +00002442if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2443 echo $ac_n "(cached) $ac_c" 1>&6
2444else
2445 cat > conftest.$ac_ext <<EOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002446#line 2447 "configure"
Patrik Stridvallea584721998-11-01 16:22:07 +00002447#include "confdefs.h"
2448/* System header to define __stub macros and hopefully few prototypes,
2449 which can conflict with char $ac_func(); below. */
2450#include <assert.h>
2451/* Override any gcc2 internal prototype to avoid an error. */
2452/* We use char because int might match the return type of a gcc2
2453 builtin and then its argument prototype would still apply. */
2454char $ac_func();
2455
2456int main() {
2457
2458/* The GNU C library defines this for functions which it implements
2459 to always fail with ENOSYS. Some functions are actually named
2460 something starting with __ and the normal name is an alias. */
2461#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2462choke me
2463#else
2464$ac_func();
2465#endif
2466
2467; return 0; }
2468EOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002469if { (eval echo configure:2470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2470 rm -rf conftest*
2471 eval "ac_cv_func_$ac_func=yes"
2472else
2473 echo "configure: failed program was:" >&5
2474 cat conftest.$ac_ext >&5
2475 rm -rf conftest*
2476 eval "ac_cv_func_$ac_func=no"
2477fi
2478rm -f conftest*
2479fi
2480
2481if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2482 echo "$ac_t""yes" 1>&6
2483 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2484 cat >> confdefs.h <<EOF
2485#define $ac_tr_func 1
2486EOF
2487
2488else
2489 echo "$ac_t""no" 1>&6
2490echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2491echo "configure:2492: checking for iswalnum in -lw" >&5
2492ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2493if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2494 echo $ac_n "(cached) $ac_c" 1>&6
2495else
2496 ac_save_LIBS="$LIBS"
2497LIBS="-lw $LIBS"
2498cat > conftest.$ac_ext <<EOF
2499#line 2500 "configure"
2500#include "confdefs.h"
2501/* Override any gcc2 internal prototype to avoid an error. */
2502/* We use char because int might match the return type of a gcc2
2503 builtin and then its argument prototype would still apply. */
2504char iswalnum();
2505
2506int main() {
2507iswalnum()
2508; return 0; }
2509EOF
2510if { (eval echo configure:2511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2511 rm -rf conftest*
2512 eval "ac_cv_lib_$ac_lib_var=yes"
2513else
2514 echo "configure: failed program was:" >&5
2515 cat conftest.$ac_ext >&5
2516 rm -rf conftest*
2517 eval "ac_cv_lib_$ac_lib_var=no"
2518fi
2519rm -f conftest*
2520LIBS="$ac_save_LIBS"
2521
2522fi
2523if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2524 echo "$ac_t""yes" 1>&6
2525 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
2526 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2527 cat >> confdefs.h <<EOF
2528#define $ac_tr_lib 1
2529EOF
2530
2531 LIBS="-lw $LIBS"
2532
2533else
2534 echo "$ac_t""no" 1>&6
2535fi
2536
2537fi
2538done
2539
2540for ac_func in gethostbyname
2541do
2542echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2543echo "configure:2544: checking for $ac_func" >&5
2544if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2546else
2547 cat > conftest.$ac_ext <<EOF
2548#line 2549 "configure"
2549#include "confdefs.h"
2550/* System header to define __stub macros and hopefully few prototypes,
2551 which can conflict with char $ac_func(); below. */
2552#include <assert.h>
2553/* Override any gcc2 internal prototype to avoid an error. */
2554/* We use char because int might match the return type of a gcc2
2555 builtin and then its argument prototype would still apply. */
2556char $ac_func();
2557
2558int main() {
2559
2560/* The GNU C library defines this for functions which it implements
2561 to always fail with ENOSYS. Some functions are actually named
2562 something starting with __ and the normal name is an alias. */
2563#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2564choke me
2565#else
2566$ac_func();
2567#endif
2568
2569; return 0; }
2570EOF
2571if { (eval echo configure:2572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvallea584721998-11-01 16:22:07 +00002572 rm -rf conftest*
2573 eval "ac_cv_func_$ac_func=yes"
2574else
2575 echo "configure: failed program was:" >&5
2576 cat conftest.$ac_ext >&5
2577 rm -rf conftest*
2578 eval "ac_cv_func_$ac_func=no"
2579fi
2580rm -f conftest*
2581fi
2582
2583if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2584 echo "$ac_t""yes" 1>&6
2585 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2586 cat >> confdefs.h <<EOF
2587#define $ac_tr_func 1
2588EOF
2589
2590else
2591 echo "$ac_t""no" 1>&6
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002592echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002593echo "configure:2594: checking for gethostbyname in -lnsl" >&5
Patrik Stridvallea584721998-11-01 16:22:07 +00002594ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2595if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2597else
2598 ac_save_LIBS="$LIBS"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002599LIBS="-lnsl $LIBS"
Patrik Stridvallea584721998-11-01 16:22:07 +00002600cat > conftest.$ac_ext <<EOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002601#line 2602 "configure"
Patrik Stridvallea584721998-11-01 16:22:07 +00002602#include "confdefs.h"
2603/* Override any gcc2 internal prototype to avoid an error. */
2604/* We use char because int might match the return type of a gcc2
2605 builtin and then its argument prototype would still apply. */
2606char gethostbyname();
2607
2608int main() {
2609gethostbyname()
2610; return 0; }
2611EOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002612if { (eval echo configure:2613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvallea584721998-11-01 16:22:07 +00002613 rm -rf conftest*
2614 eval "ac_cv_lib_$ac_lib_var=yes"
2615else
2616 echo "configure: failed program was:" >&5
2617 cat conftest.$ac_ext >&5
2618 rm -rf conftest*
2619 eval "ac_cv_lib_$ac_lib_var=no"
2620fi
2621rm -f conftest*
2622LIBS="$ac_save_LIBS"
2623
2624fi
2625if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2626 echo "$ac_t""yes" 1>&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002627 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2628 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2629 cat >> confdefs.h <<EOF
2630#define $ac_tr_lib 1
Ron Recorde977d6c1999-09-05 12:32:05 +00002631EOF
Ron Recorde977d6c1999-09-05 12:32:05 +00002632
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002633 LIBS="-lnsl $LIBS"
2634
Ron Recorde977d6c1999-09-05 12:32:05 +00002635else
2636 echo "$ac_t""no" 1>&6
2637fi
2638
Patrik Stridvallea584721998-11-01 16:22:07 +00002639fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002640done
2641
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002642for ac_func in connect
2643do
2644echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002645echo "configure:2646: checking for $ac_func" >&5
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002646if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2647 echo $ac_n "(cached) $ac_c" 1>&6
2648else
2649 cat > conftest.$ac_ext <<EOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002650#line 2651 "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002651#include "confdefs.h"
2652/* System header to define __stub macros and hopefully few prototypes,
2653 which can conflict with char $ac_func(); below. */
2654#include <assert.h>
2655/* Override any gcc2 internal prototype to avoid an error. */
2656/* We use char because int might match the return type of a gcc2
2657 builtin and then its argument prototype would still apply. */
2658char $ac_func();
2659
2660int main() {
2661
2662/* The GNU C library defines this for functions which it implements
2663 to always fail with ENOSYS. Some functions are actually named
2664 something starting with __ and the normal name is an alias. */
2665#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2666choke me
2667#else
2668$ac_func();
2669#endif
2670
2671; return 0; }
2672EOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002673if { (eval echo configure:2674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002674 rm -rf conftest*
2675 eval "ac_cv_func_$ac_func=yes"
2676else
2677 echo "configure: failed program was:" >&5
2678 cat conftest.$ac_ext >&5
2679 rm -rf conftest*
2680 eval "ac_cv_func_$ac_func=no"
2681fi
2682rm -f conftest*
2683fi
2684
2685if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2686 echo "$ac_t""yes" 1>&6
2687 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2688 cat >> confdefs.h <<EOF
2689#define $ac_tr_func 1
2690EOF
2691
2692else
2693 echo "$ac_t""no" 1>&6
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002694echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002695echo "configure:2696: checking for connect in -lsocket" >&5
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002696ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2697if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2699else
2700 ac_save_LIBS="$LIBS"
2701LIBS="-lsocket $LIBS"
2702cat > conftest.$ac_ext <<EOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002703#line 2704 "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002704#include "confdefs.h"
2705/* Override any gcc2 internal prototype to avoid an error. */
2706/* We use char because int might match the return type of a gcc2
2707 builtin and then its argument prototype would still apply. */
2708char connect();
2709
2710int main() {
2711connect()
2712; return 0; }
2713EOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002714if { (eval echo configure:2715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002715 rm -rf conftest*
2716 eval "ac_cv_lib_$ac_lib_var=yes"
2717else
2718 echo "configure: failed program was:" >&5
2719 cat conftest.$ac_ext >&5
2720 rm -rf conftest*
2721 eval "ac_cv_lib_$ac_lib_var=no"
2722fi
2723rm -f conftest*
2724LIBS="$ac_save_LIBS"
2725
2726fi
2727if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2728 echo "$ac_t""yes" 1>&6
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002729 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002730 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2731 cat >> confdefs.h <<EOF
2732#define $ac_tr_lib 1
2733EOF
2734
2735 LIBS="-lsocket $LIBS"
2736
2737else
2738 echo "$ac_t""no" 1>&6
2739fi
2740
2741fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002742done
2743
Satsuki Fujishima66fb6072001-03-19 19:19:59 +00002744echo $ac_n "checking for _xpg4_setrunelocale in -lxpg4""... $ac_c" 1>&6
2745echo "configure:2746: checking for _xpg4_setrunelocale in -lxpg4" >&5
2746ac_lib_var=`echo xpg4'_'_xpg4_setrunelocale | sed 'y%./+-%__p_%'`
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00002747if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2748 echo $ac_n "(cached) $ac_c" 1>&6
2749else
2750 ac_save_LIBS="$LIBS"
2751LIBS="-lxpg4 $LIBS"
2752cat > conftest.$ac_ext <<EOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002753#line 2754 "configure"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00002754#include "confdefs.h"
2755/* Override any gcc2 internal prototype to avoid an error. */
2756/* We use char because int might match the return type of a gcc2
2757 builtin and then its argument prototype would still apply. */
Satsuki Fujishima66fb6072001-03-19 19:19:59 +00002758char _xpg4_setrunelocale();
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00002759
2760int main() {
Satsuki Fujishima66fb6072001-03-19 19:19:59 +00002761_xpg4_setrunelocale()
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00002762; return 0; }
2763EOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002764if { (eval echo configure:2765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00002765 rm -rf conftest*
2766 eval "ac_cv_lib_$ac_lib_var=yes"
2767else
2768 echo "configure: failed program was:" >&5
2769 cat conftest.$ac_ext >&5
2770 rm -rf conftest*
2771 eval "ac_cv_lib_$ac_lib_var=no"
2772fi
2773rm -f conftest*
2774LIBS="$ac_save_LIBS"
2775
2776fi
2777if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2778 echo "$ac_t""yes" 1>&6
2779 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2780 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2781 cat >> confdefs.h <<EOF
2782#define $ac_tr_lib 1
2783EOF
2784
2785 LIBS="-lxpg4 $LIBS"
2786
2787else
2788 echo "$ac_t""no" 1>&6
2789fi
2790
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00002791echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002792echo "configure:2793: checking for mmap in -lmmap" >&5
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00002793ac_lib_var=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2794if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2795 echo $ac_n "(cached) $ac_c" 1>&6
2796else
2797 ac_save_LIBS="$LIBS"
2798LIBS="-lmmap $LIBS"
2799cat > conftest.$ac_ext <<EOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002800#line 2801 "configure"
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00002801#include "confdefs.h"
2802/* Override any gcc2 internal prototype to avoid an error. */
2803/* We use char because int might match the return type of a gcc2
2804 builtin and then its argument prototype would still apply. */
2805char mmap();
2806
2807int main() {
2808mmap()
2809; return 0; }
2810EOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002811if { (eval echo configure:2812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00002812 rm -rf conftest*
2813 eval "ac_cv_lib_$ac_lib_var=yes"
2814else
2815 echo "configure: failed program was:" >&5
2816 cat conftest.$ac_ext >&5
2817 rm -rf conftest*
2818 eval "ac_cv_lib_$ac_lib_var=no"
2819fi
2820rm -f conftest*
2821LIBS="$ac_save_LIBS"
2822
2823fi
2824if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2825 echo "$ac_t""yes" 1>&6
2826 ac_tr_lib=HAVE_LIB`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2827 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2828 cat >> confdefs.h <<EOF
2829#define $ac_tr_lib 1
2830EOF
2831
2832 LIBS="-lmmap $LIBS"
2833
2834else
2835 echo "$ac_t""no" 1>&6
2836fi
2837
Marcus Meissner2d7be871999-12-05 23:06:40 +00002838for ac_func in openpty
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002839do
2840echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002841echo "configure:2842: checking for $ac_func" >&5
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002842if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2843 echo $ac_n "(cached) $ac_c" 1>&6
2844else
2845 cat > conftest.$ac_ext <<EOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002846#line 2847 "configure"
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002847#include "confdefs.h"
2848/* System header to define __stub macros and hopefully few prototypes,
2849 which can conflict with char $ac_func(); below. */
2850#include <assert.h>
2851/* Override any gcc2 internal prototype to avoid an error. */
2852/* We use char because int might match the return type of a gcc2
2853 builtin and then its argument prototype would still apply. */
2854char $ac_func();
2855
2856int main() {
2857
2858/* The GNU C library defines this for functions which it implements
2859 to always fail with ENOSYS. Some functions are actually named
2860 something starting with __ and the normal name is an alias. */
2861#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2862choke me
2863#else
2864$ac_func();
2865#endif
2866
2867; return 0; }
2868EOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002869if { (eval echo configure:2870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissner2d7be871999-12-05 23:06:40 +00002870 rm -rf conftest*
2871 eval "ac_cv_func_$ac_func=yes"
2872else
2873 echo "configure: failed program was:" >&5
2874 cat conftest.$ac_ext >&5
2875 rm -rf conftest*
2876 eval "ac_cv_func_$ac_func=no"
2877fi
2878rm -f conftest*
2879fi
2880
2881if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2882 echo "$ac_t""yes" 1>&6
2883 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2884 cat >> confdefs.h <<EOF
2885#define $ac_tr_func 1
2886EOF
2887
2888else
2889 echo "$ac_t""no" 1>&6
2890echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002891echo "configure:2892: checking for openpty in -lutil" >&5
Marcus Meissner2d7be871999-12-05 23:06:40 +00002892ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2893if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2894 echo $ac_n "(cached) $ac_c" 1>&6
2895else
2896 ac_save_LIBS="$LIBS"
2897LIBS="-lutil $LIBS"
2898cat > conftest.$ac_ext <<EOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002899#line 2900 "configure"
Marcus Meissner2d7be871999-12-05 23:06:40 +00002900#include "confdefs.h"
2901/* Override any gcc2 internal prototype to avoid an error. */
2902/* We use char because int might match the return type of a gcc2
2903 builtin and then its argument prototype would still apply. */
2904char openpty();
2905
2906int main() {
2907openpty()
2908; return 0; }
2909EOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002910if { (eval echo configure:2911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissner2d7be871999-12-05 23:06:40 +00002911 rm -rf conftest*
2912 eval "ac_cv_lib_$ac_lib_var=yes"
2913else
2914 echo "configure: failed program was:" >&5
2915 cat conftest.$ac_ext >&5
2916 rm -rf conftest*
2917 eval "ac_cv_lib_$ac_lib_var=no"
2918fi
2919rm -f conftest*
2920LIBS="$ac_save_LIBS"
2921
2922fi
2923if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2924 echo "$ac_t""yes" 1>&6
2925 cat >> confdefs.h <<\EOF
2926#define HAVE_OPENPTY 1
2927EOF
2928
2929 LIBS="$LIBS -lutil"
2930
2931else
2932 echo "$ac_t""no" 1>&6
2933fi
2934
2935fi
2936done
2937
2938
2939for ac_hdr in dlfcn.h
2940do
2941ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2942echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002943echo "configure:2944: checking for $ac_hdr" >&5
Marcus Meissner2d7be871999-12-05 23:06:40 +00002944if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2945 echo $ac_n "(cached) $ac_c" 1>&6
2946else
2947 cat > conftest.$ac_ext <<EOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002948#line 2949 "configure"
Marcus Meissner2d7be871999-12-05 23:06:40 +00002949#include "confdefs.h"
2950#include <$ac_hdr>
2951EOF
2952ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002953{ (eval echo configure:2954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00002954ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Marcus Meissner2d7be871999-12-05 23:06:40 +00002955if test -z "$ac_err"; then
2956 rm -rf conftest*
2957 eval "ac_cv_header_$ac_safe=yes"
2958else
2959 echo "$ac_err" >&5
2960 echo "configure: failed program was:" >&5
2961 cat conftest.$ac_ext >&5
2962 rm -rf conftest*
2963 eval "ac_cv_header_$ac_safe=no"
2964fi
2965rm -f conftest*
2966fi
2967if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2968 echo "$ac_t""yes" 1>&6
2969 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2970 cat >> confdefs.h <<EOF
2971#define $ac_tr_hdr 1
2972EOF
2973 for ac_func in dlopen
2974do
2975echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002976echo "configure:2977: checking for $ac_func" >&5
Marcus Meissner2d7be871999-12-05 23:06:40 +00002977if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2979else
2980 cat > conftest.$ac_ext <<EOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002981#line 2982 "configure"
Marcus Meissner2d7be871999-12-05 23:06:40 +00002982#include "confdefs.h"
2983/* System header to define __stub macros and hopefully few prototypes,
2984 which can conflict with char $ac_func(); below. */
2985#include <assert.h>
2986/* Override any gcc2 internal prototype to avoid an error. */
2987/* We use char because int might match the return type of a gcc2
2988 builtin and then its argument prototype would still apply. */
2989char $ac_func();
2990
2991int main() {
2992
2993/* The GNU C library defines this for functions which it implements
2994 to always fail with ENOSYS. Some functions are actually named
2995 something starting with __ and the normal name is an alias. */
2996#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2997choke me
2998#else
2999$ac_func();
3000#endif
3001
3002; return 0; }
3003EOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00003004if { (eval echo configure:3005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissnerf070fda1999-04-24 12:02:14 +00003005 rm -rf conftest*
3006 eval "ac_cv_func_$ac_func=yes"
3007else
3008 echo "configure: failed program was:" >&5
3009 cat conftest.$ac_ext >&5
3010 rm -rf conftest*
3011 eval "ac_cv_func_$ac_func=no"
3012fi
3013rm -f conftest*
3014fi
3015
3016if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3017 echo "$ac_t""yes" 1>&6
3018 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3019 cat >> confdefs.h <<EOF
3020#define $ac_tr_func 1
3021EOF
3022 cat >> confdefs.h <<\EOF
3023#define HAVE_DL_API 1
3024EOF
3025
3026else
3027 echo "$ac_t""no" 1>&6
Marcus Meissner8220bc91998-10-11 11:10:27 +00003028echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00003029echo "configure:3030: checking for dlopen in -ldl" >&5
Marcus Meissner8220bc91998-10-11 11:10:27 +00003030ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3031if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3033else
3034 ac_save_LIBS="$LIBS"
3035LIBS="-ldl $LIBS"
3036cat > conftest.$ac_ext <<EOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00003037#line 3038 "configure"
Marcus Meissner8220bc91998-10-11 11:10:27 +00003038#include "confdefs.h"
3039/* Override any gcc2 internal prototype to avoid an error. */
3040/* We use char because int might match the return type of a gcc2
3041 builtin and then its argument prototype would still apply. */
3042char dlopen();
3043
3044int main() {
3045dlopen()
3046; return 0; }
3047EOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00003048if { (eval echo configure:3049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissner8220bc91998-10-11 11:10:27 +00003049 rm -rf conftest*
3050 eval "ac_cv_lib_$ac_lib_var=yes"
3051else
3052 echo "configure: failed program was:" >&5
3053 cat conftest.$ac_ext >&5
3054 rm -rf conftest*
3055 eval "ac_cv_lib_$ac_lib_var=no"
3056fi
3057rm -f conftest*
3058LIBS="$ac_save_LIBS"
3059
3060fi
3061if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3062 echo "$ac_t""yes" 1>&6
Marcus Meissnerf070fda1999-04-24 12:02:14 +00003063 cat >> confdefs.h <<\EOF
3064#define HAVE_DL_API 1
Marcus Meissner8220bc91998-10-11 11:10:27 +00003065EOF
3066
Marcus Meissnerf070fda1999-04-24 12:02:14 +00003067 LIBS="$LIBS -ldl"
Marcus Meissnerf070fda1999-04-24 12:02:14 +00003068else
3069 echo "$ac_t""no" 1>&6
Alexandre Julliarde1e75372000-04-24 17:17:49 +00003070LIBEXT="a"
3071
Marcus Meissnerf070fda1999-04-24 12:02:14 +00003072fi
3073
3074
3075fi
3076done
3077
Marcus Meissner8220bc91998-10-11 11:10:27 +00003078else
3079 echo "$ac_t""no" 1>&6
Alexandre Julliarde1e75372000-04-24 17:17:49 +00003080LIBEXT="a"
3081
Marcus Meissner8220bc91998-10-11 11:10:27 +00003082fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00003083done
Marcus Meissner8220bc91998-10-11 11:10:27 +00003084
Patrik Stridvallea584721998-11-01 16:22:07 +00003085
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003086
Patrik Stridvall2941a212000-04-25 20:34:22 +00003087X_DLLS=""
3088
3089XFILES=""
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003090
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003091OPENGLFILES=""
3092
Hidenori Takeshima4615e292000-05-23 23:36:41 +00003093OPENGL32_DLL=""
Patrik Stridvallea584721998-11-01 16:22:07 +00003094if test "$have_x" = "yes"
3095then
Patrik Stridvall24110281999-02-04 10:09:54 +00003096 XLIB="-lXext -lX11"
Ove Kaaven1eb593c1999-02-14 09:34:46 +00003097 ac_save_CPPFLAGS="$CPPFLAGS"
3098 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Patrik Stridvallea584721998-11-01 16:22:07 +00003099
Patrik Stridvall24110281999-02-04 10:09:54 +00003100 for ac_hdr in X11/xpm.h
Lionel Ulmera1d6d241999-01-30 15:54:43 +00003101do
3102ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3103echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003104echo "configure:3105: checking for $ac_hdr" >&5
Lionel Ulmera1d6d241999-01-30 15:54:43 +00003105if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3106 echo $ac_n "(cached) $ac_c" 1>&6
3107else
3108 cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003109#line 3110 "configure"
Lionel Ulmera1d6d241999-01-30 15:54:43 +00003110#include "confdefs.h"
3111#include <$ac_hdr>
3112EOF
3113ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003114{ (eval echo configure:3115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003115ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Lionel Ulmera1d6d241999-01-30 15:54:43 +00003116if test -z "$ac_err"; then
3117 rm -rf conftest*
3118 eval "ac_cv_header_$ac_safe=yes"
3119else
3120 echo "$ac_err" >&5
3121 echo "configure: failed program was:" >&5
3122 cat conftest.$ac_ext >&5
3123 rm -rf conftest*
3124 eval "ac_cv_header_$ac_safe=no"
3125fi
3126rm -f conftest*
3127fi
3128if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3129 echo "$ac_t""yes" 1>&6
3130 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3131 cat >> confdefs.h <<EOF
3132#define $ac_tr_hdr 1
3133EOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003134 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003135echo "configure:3136: checking for XpmCreatePixmapFromData in -lXpm" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003136ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
3137if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3138 echo $ac_n "(cached) $ac_c" 1>&6
3139else
3140 ac_save_LIBS="$LIBS"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003141LIBS="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3142 $LIBS"
Patrik Stridvall24110281999-02-04 10:09:54 +00003143cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003144#line 3145 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003145#include "confdefs.h"
3146/* Override any gcc2 internal prototype to avoid an error. */
3147/* We use char because int might match the return type of a gcc2
3148 builtin and then its argument prototype would still apply. */
3149char XpmCreatePixmapFromData();
3150
3151int main() {
3152XpmCreatePixmapFromData()
3153; return 0; }
3154EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003155if { (eval echo configure:3156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall24110281999-02-04 10:09:54 +00003156 rm -rf conftest*
3157 eval "ac_cv_lib_$ac_lib_var=yes"
3158else
3159 echo "configure: failed program was:" >&5
3160 cat conftest.$ac_ext >&5
3161 rm -rf conftest*
3162 eval "ac_cv_lib_$ac_lib_var=no"
3163fi
3164rm -f conftest*
3165LIBS="$ac_save_LIBS"
3166
3167fi
3168if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3169 echo "$ac_t""yes" 1>&6
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003170 cat >> confdefs.h <<\EOF
Patrik Stridvall24110281999-02-04 10:09:54 +00003171#define HAVE_LIBXXPM 1
3172EOF
3173 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
3174else
3175 echo "$ac_t""no" 1>&6
3176fi
3177
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003178
3179else
3180 echo "$ac_t""no" 1>&6
3181 echo "Redhat : xpm xpm-devel"
3182 echo "Caldera OpenLinux : xpm xpm-devel xpm-devel-static"
Marcus Meissner284995e2000-03-04 19:21:49 +00003183 echo "SuSE : xpm"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003184 echo "Debian/Corel Linux: xpm4g xpm4g-dev"
Marcus Meissnercb99b0e1999-12-20 04:10:06 +00003185 echo
3186 echo "Or get the sources from ftp.x.org and all its mirror sites from "
3187 echo "the directory /contrib/libraries."
3188 echo
3189 exit 1
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003190
3191
3192fi
3193done
Patrik Stridvall24110281999-02-04 10:09:54 +00003194
Marcus Meissnercb99b0e1999-12-20 04:10:06 +00003195
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003196 for ac_hdr in X11/Xlib.h
Patrik Stridvall24110281999-02-04 10:09:54 +00003197do
3198ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3199echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003200echo "configure:3201: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003201if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3202 echo $ac_n "(cached) $ac_c" 1>&6
3203else
3204 cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003205#line 3206 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003206#include "confdefs.h"
3207#include <$ac_hdr>
3208EOF
3209ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003210{ (eval echo configure:3211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003211ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00003212if test -z "$ac_err"; then
3213 rm -rf conftest*
3214 eval "ac_cv_header_$ac_safe=yes"
3215else
3216 echo "$ac_err" >&5
3217 echo "configure: failed program was:" >&5
3218 cat conftest.$ac_ext >&5
3219 rm -rf conftest*
3220 eval "ac_cv_header_$ac_safe=no"
3221fi
3222rm -f conftest*
3223fi
3224if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3225 echo "$ac_t""yes" 1>&6
3226 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3227 cat >> confdefs.h <<EOF
3228#define $ac_tr_hdr 1
3229EOF
3230
Ove Kaavenc90fb252001-01-02 22:39:14 +00003231 for ac_hdr in X11/XKBlib.h
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003232do
3233ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3234echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003235echo "configure:3236: checking for $ac_hdr" >&5
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003236if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3237 echo $ac_n "(cached) $ac_c" 1>&6
Patrik Stridvall24110281999-02-04 10:09:54 +00003238else
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003239 cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003240#line 3241 "configure"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003241#include "confdefs.h"
3242#include <$ac_hdr>
3243EOF
3244ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003245{ (eval echo configure:3246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003246ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3247if test -z "$ac_err"; then
3248 rm -rf conftest*
3249 eval "ac_cv_header_$ac_safe=yes"
3250else
3251 echo "$ac_err" >&5
3252 echo "configure: failed program was:" >&5
3253 cat conftest.$ac_ext >&5
3254 rm -rf conftest*
3255 eval "ac_cv_header_$ac_safe=no"
Patrik Stridvall24110281999-02-04 10:09:54 +00003256fi
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003257rm -f conftest*
3258fi
3259if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3260 echo "$ac_t""yes" 1>&6
3261 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3262 cat >> confdefs.h <<EOF
3263#define $ac_tr_hdr 1
3264EOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00003265 echo $ac_n "checking for XkbQueryExtension in -lX11""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003266echo "configure:3267: checking for XkbQueryExtension in -lX11" >&5
Ove Kaavenc90fb252001-01-02 22:39:14 +00003267ac_lib_var=`echo X11'_'XkbQueryExtension | sed 'y%./+-%__p_%'`
Patrik Stridvall24110281999-02-04 10:09:54 +00003268if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3269 echo $ac_n "(cached) $ac_c" 1>&6
3270else
3271 ac_save_LIBS="$LIBS"
Ove Kaavenc90fb252001-01-02 22:39:14 +00003272LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Patrik Stridvall24110281999-02-04 10:09:54 +00003273cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003274#line 3275 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003275#include "confdefs.h"
3276/* Override any gcc2 internal prototype to avoid an error. */
3277/* We use char because int might match the return type of a gcc2
3278 builtin and then its argument prototype would still apply. */
Ove Kaavenc90fb252001-01-02 22:39:14 +00003279char XkbQueryExtension();
Patrik Stridvall24110281999-02-04 10:09:54 +00003280
3281int main() {
Ove Kaavenc90fb252001-01-02 22:39:14 +00003282XkbQueryExtension()
Patrik Stridvall24110281999-02-04 10:09:54 +00003283; return 0; }
3284EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003285if { (eval echo configure:3286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall24110281999-02-04 10:09:54 +00003286 rm -rf conftest*
3287 eval "ac_cv_lib_$ac_lib_var=yes"
3288else
3289 echo "configure: failed program was:" >&5
3290 cat conftest.$ac_ext >&5
3291 rm -rf conftest*
3292 eval "ac_cv_lib_$ac_lib_var=no"
3293fi
3294rm -f conftest*
3295LIBS="$ac_save_LIBS"
3296
3297fi
3298if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3299 echo "$ac_t""yes" 1>&6
3300 cat >> confdefs.h <<\EOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00003301#define HAVE_XKB 1
Patrik Stridvall24110281999-02-04 10:09:54 +00003302EOF
3303
3304else
3305 echo "$ac_t""no" 1>&6
3306fi
3307
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003308
3309else
3310 echo "$ac_t""no" 1>&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00003311echo "configure: warning: XKB extension not found!!" 1>&2
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003312
3313fi
3314done
3315
3316
Ove Kaavenc90fb252001-01-02 22:39:14 +00003317 for ac_hdr in X11/extensions/XShm.h
Patrik Stridvall24110281999-02-04 10:09:54 +00003318do
3319ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3320echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003321echo "configure:3322: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003322if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3323 echo $ac_n "(cached) $ac_c" 1>&6
3324else
3325 cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003326#line 3327 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003327#include "confdefs.h"
3328#include <$ac_hdr>
3329EOF
3330ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003331{ (eval echo configure:3332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003332ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00003333if test -z "$ac_err"; then
3334 rm -rf conftest*
3335 eval "ac_cv_header_$ac_safe=yes"
3336else
3337 echo "$ac_err" >&5
3338 echo "configure: failed program was:" >&5
3339 cat conftest.$ac_ext >&5
3340 rm -rf conftest*
3341 eval "ac_cv_header_$ac_safe=no"
3342fi
3343rm -f conftest*
3344fi
3345if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3346 echo "$ac_t""yes" 1>&6
3347 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3348 cat >> confdefs.h <<EOF
3349#define $ac_tr_hdr 1
3350EOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00003351 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003352echo "configure:3353: checking for XShmQueryExtension in -lXext" >&5
Ove Kaavenc90fb252001-01-02 22:39:14 +00003353ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
Francois Jacques5b6879c2000-07-28 23:04:54 +00003354if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3355 echo $ac_n "(cached) $ac_c" 1>&6
3356else
3357 ac_save_LIBS="$LIBS"
3358LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3359cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003360#line 3361 "configure"
Francois Jacques5b6879c2000-07-28 23:04:54 +00003361#include "confdefs.h"
3362/* Override any gcc2 internal prototype to avoid an error. */
3363/* We use char because int might match the return type of a gcc2
3364 builtin and then its argument prototype would still apply. */
Ove Kaavenc90fb252001-01-02 22:39:14 +00003365char XShmQueryExtension();
Francois Jacques5b6879c2000-07-28 23:04:54 +00003366
3367int main() {
Ove Kaavenc90fb252001-01-02 22:39:14 +00003368XShmQueryExtension()
Francois Jacques5b6879c2000-07-28 23:04:54 +00003369; return 0; }
3370EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003371if { (eval echo configure:3372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Francois Jacques5b6879c2000-07-28 23:04:54 +00003372 rm -rf conftest*
3373 eval "ac_cv_lib_$ac_lib_var=yes"
3374else
3375 echo "configure: failed program was:" >&5
3376 cat conftest.$ac_ext >&5
3377 rm -rf conftest*
3378 eval "ac_cv_lib_$ac_lib_var=no"
3379fi
3380rm -f conftest*
3381LIBS="$ac_save_LIBS"
3382
3383fi
3384if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3385 echo "$ac_t""yes" 1>&6
3386 cat >> confdefs.h <<\EOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00003387#define HAVE_LIBXXSHM 1
Francois Jacques5b6879c2000-07-28 23:04:54 +00003388EOF
3389
3390else
3391 echo "$ac_t""no" 1>&6
3392fi
3393
Ove Kaavenc90fb252001-01-02 22:39:14 +00003394
Francois Jacques5b6879c2000-07-28 23:04:54 +00003395else
3396 echo "$ac_t""no" 1>&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00003397echo "configure: warning: Xshm extension not found!!" 1>&2
3398
Francois Jacques5b6879c2000-07-28 23:04:54 +00003399fi
3400done
3401
Ove Kaavenc90fb252001-01-02 22:39:14 +00003402
3403 for ac_hdr in X11/extensions/shape.h
Francois Jacques5b6879c2000-07-28 23:04:54 +00003404do
3405ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3406echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003407echo "configure:3408: checking for $ac_hdr" >&5
Francois Jacques5b6879c2000-07-28 23:04:54 +00003408if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3409 echo $ac_n "(cached) $ac_c" 1>&6
3410else
3411 cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003412#line 3413 "configure"
Francois Jacques5b6879c2000-07-28 23:04:54 +00003413#include "confdefs.h"
3414#include <$ac_hdr>
3415EOF
3416ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003417{ (eval echo configure:3418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Francois Jacques5b6879c2000-07-28 23:04:54 +00003418ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3419if test -z "$ac_err"; then
3420 rm -rf conftest*
3421 eval "ac_cv_header_$ac_safe=yes"
3422else
3423 echo "$ac_err" >&5
3424 echo "configure: failed program was:" >&5
3425 cat conftest.$ac_ext >&5
3426 rm -rf conftest*
3427 eval "ac_cv_header_$ac_safe=no"
3428fi
3429rm -f conftest*
3430fi
3431if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3432 echo "$ac_t""yes" 1>&6
3433 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3434 cat >> confdefs.h <<EOF
3435#define $ac_tr_hdr 1
3436EOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00003437 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003438echo "configure:3439: checking for XShapeQueryExtension in -lXext" >&5
Ove Kaavenc90fb252001-01-02 22:39:14 +00003439ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
3440if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3441 echo $ac_n "(cached) $ac_c" 1>&6
3442else
3443 ac_save_LIBS="$LIBS"
3444LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3445cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003446#line 3447 "configure"
Ove Kaavenc90fb252001-01-02 22:39:14 +00003447#include "confdefs.h"
3448/* Override any gcc2 internal prototype to avoid an error. */
3449/* We use char because int might match the return type of a gcc2
3450 builtin and then its argument prototype would still apply. */
3451char XShapeQueryExtension();
3452
3453int main() {
3454XShapeQueryExtension()
3455; return 0; }
3456EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003457if { (eval echo configure:3458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ove Kaavenc90fb252001-01-02 22:39:14 +00003458 rm -rf conftest*
3459 eval "ac_cv_lib_$ac_lib_var=yes"
3460else
3461 echo "configure: failed program was:" >&5
3462 cat conftest.$ac_ext >&5
3463 rm -rf conftest*
3464 eval "ac_cv_lib_$ac_lib_var=no"
3465fi
3466rm -f conftest*
3467LIBS="$ac_save_LIBS"
3468
3469fi
3470if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3471 echo "$ac_t""yes" 1>&6
3472 cat >> confdefs.h <<\EOF
3473#define HAVE_LIBXSHAPE 1
3474EOF
3475
3476else
3477 echo "$ac_t""no" 1>&6
3478fi
3479
3480
3481else
3482 echo "$ac_t""no" 1>&6
3483echo "configure: warning: XShape extension not found!!" 1>&2
3484
3485fi
3486done
3487
3488
3489 for ac_hdr in X11/extensions/xf86dga.h
3490do
3491ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3492echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003493echo "configure:3494: checking for $ac_hdr" >&5
Ove Kaavenc90fb252001-01-02 22:39:14 +00003494if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3495 echo $ac_n "(cached) $ac_c" 1>&6
3496else
3497 cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003498#line 3499 "configure"
Ove Kaavenc90fb252001-01-02 22:39:14 +00003499#include "confdefs.h"
3500#include <$ac_hdr>
3501EOF
3502ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003503{ (eval echo configure:3504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Ove Kaavenc90fb252001-01-02 22:39:14 +00003504ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3505if test -z "$ac_err"; then
3506 rm -rf conftest*
3507 eval "ac_cv_header_$ac_safe=yes"
3508else
3509 echo "$ac_err" >&5
3510 echo "configure: failed program was:" >&5
3511 cat conftest.$ac_ext >&5
3512 rm -rf conftest*
3513 eval "ac_cv_header_$ac_safe=no"
3514fi
3515rm -f conftest*
3516fi
3517if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3518 echo "$ac_t""yes" 1>&6
3519 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3520 cat >> confdefs.h <<EOF
3521#define $ac_tr_hdr 1
3522EOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003523 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003524echo "configure:3525: checking for XDGAQueryExtension in -lXxf86dga" >&5
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003525ac_lib_var=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
Patrik Stridvall24110281999-02-04 10:09:54 +00003526if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3527 echo $ac_n "(cached) $ac_c" 1>&6
3528else
3529 ac_save_LIBS="$LIBS"
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003530LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003531 $LIBS"
Patrik Stridvall24110281999-02-04 10:09:54 +00003532cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003533#line 3534 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003534#include "confdefs.h"
3535/* Override any gcc2 internal prototype to avoid an error. */
3536/* We use char because int might match the return type of a gcc2
3537 builtin and then its argument prototype would still apply. */
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003538char XDGAQueryExtension();
3539
3540int main() {
3541XDGAQueryExtension()
3542; return 0; }
3543EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003544if { (eval echo configure:3545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003545 rm -rf conftest*
3546 eval "ac_cv_lib_$ac_lib_var=yes"
3547else
3548 echo "configure: failed program was:" >&5
3549 cat conftest.$ac_ext >&5
3550 rm -rf conftest*
3551 eval "ac_cv_lib_$ac_lib_var=no"
3552fi
3553rm -f conftest*
3554LIBS="$ac_save_LIBS"
3555
3556fi
3557if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3558 echo "$ac_t""yes" 1>&6
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003559 cat >> confdefs.h <<\EOF
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003560#define HAVE_LIBXXF86DGA2 1
3561EOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003562
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003563 cat >> confdefs.h <<\EOF
Lionel Ulmer7be462d2000-01-15 22:24:47 +00003564#define HAVE_LIBXXF86DGA 1
3565EOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003566
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003567 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003568
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003569else
3570 echo "$ac_t""no" 1>&6
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003571 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003572echo "configure:3573: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003573ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3574if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3575 echo $ac_n "(cached) $ac_c" 1>&6
3576else
3577 ac_save_LIBS="$LIBS"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003578LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3579 $LIBS"
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003580cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003581#line 3582 "configure"
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003582#include "confdefs.h"
3583/* Override any gcc2 internal prototype to avoid an error. */
3584/* We use char because int might match the return type of a gcc2
3585 builtin and then its argument prototype would still apply. */
Patrik Stridvall24110281999-02-04 10:09:54 +00003586char XF86DGAQueryExtension();
3587
3588int main() {
3589XF86DGAQueryExtension()
3590; return 0; }
3591EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003592if { (eval echo configure:3593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall24110281999-02-04 10:09:54 +00003593 rm -rf conftest*
3594 eval "ac_cv_lib_$ac_lib_var=yes"
3595else
3596 echo "configure: failed program was:" >&5
3597 cat conftest.$ac_ext >&5
3598 rm -rf conftest*
3599 eval "ac_cv_lib_$ac_lib_var=no"
3600fi
3601rm -f conftest*
3602LIBS="$ac_save_LIBS"
3603
3604fi
3605if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3606 echo "$ac_t""yes" 1>&6
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003607 cat >> confdefs.h <<\EOF
Patrik Stridvall24110281999-02-04 10:09:54 +00003608#define HAVE_LIBXXF86DGA 1
3609EOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003610
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003611 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003612
Patrik Stridvall24110281999-02-04 10:09:54 +00003613else
3614 echo "$ac_t""no" 1>&6
3615fi
3616
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003617
3618fi
Patrik Stridvall24110281999-02-04 10:09:54 +00003619
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003620
3621else
3622 echo "$ac_t""no" 1>&6
3623echo "configure: warning: DGA extension not found!!" 1>&2
3624
3625fi
3626done
3627
3628
3629 for ac_hdr in X11/extensions/xf86vmode.h
Patrik Stridvall24110281999-02-04 10:09:54 +00003630do
3631ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3632echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003633echo "configure:3634: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003634if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3635 echo $ac_n "(cached) $ac_c" 1>&6
3636else
3637 cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003638#line 3639 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003639#include "confdefs.h"
3640#include <$ac_hdr>
3641EOF
3642ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003643{ (eval echo configure:3644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003644ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00003645if test -z "$ac_err"; then
3646 rm -rf conftest*
3647 eval "ac_cv_header_$ac_safe=yes"
3648else
3649 echo "$ac_err" >&5
3650 echo "configure: failed program was:" >&5
3651 cat conftest.$ac_ext >&5
3652 rm -rf conftest*
3653 eval "ac_cv_header_$ac_safe=no"
3654fi
3655rm -f conftest*
3656fi
3657if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3658 echo "$ac_t""yes" 1>&6
3659 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3660 cat >> confdefs.h <<EOF
3661#define $ac_tr_hdr 1
3662EOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003663 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003664echo "configure:3665: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003665ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3666if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3667 echo $ac_n "(cached) $ac_c" 1>&6
3668else
3669 ac_save_LIBS="$LIBS"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003670LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3671 $LIBS"
Patrik Stridvall24110281999-02-04 10:09:54 +00003672cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003673#line 3674 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003674#include "confdefs.h"
3675/* Override any gcc2 internal prototype to avoid an error. */
3676/* We use char because int might match the return type of a gcc2
3677 builtin and then its argument prototype would still apply. */
3678char XF86VidModeQueryExtension();
3679
3680int main() {
3681XF86VidModeQueryExtension()
3682; return 0; }
3683EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003684if { (eval echo configure:3685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall24110281999-02-04 10:09:54 +00003685 rm -rf conftest*
3686 eval "ac_cv_lib_$ac_lib_var=yes"
3687else
3688 echo "configure: failed program was:" >&5
3689 cat conftest.$ac_ext >&5
3690 rm -rf conftest*
3691 eval "ac_cv_lib_$ac_lib_var=no"
3692fi
3693rm -f conftest*
3694LIBS="$ac_save_LIBS"
3695
3696fi
3697if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3698 echo "$ac_t""yes" 1>&6
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003699 cat >> confdefs.h <<\EOF
Patrik Stridvall24110281999-02-04 10:09:54 +00003700#define HAVE_LIBXXF86VM 1
3701EOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003702
3703 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
3704
Patrik Stridvall24110281999-02-04 10:09:54 +00003705else
3706 echo "$ac_t""no" 1>&6
3707fi
3708
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003709
3710else
3711 echo "$ac_t""no" 1>&6
3712echo "configure: warning: XFree86 VMODE extension not found!!" 1>&2
3713
3714fi
3715done
Lionel Ulmer5c085701999-02-28 19:48:53 +00003716
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003717
3718 for ac_hdr in X11/extensions/Xvlib.h
3719do
3720ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3721echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003722echo "configure:3723: checking for $ac_hdr" >&5
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003723if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3724 echo $ac_n "(cached) $ac_c" 1>&6
3725else
3726 cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003727#line 3728 "configure"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003728#include "confdefs.h"
3729#include <$ac_hdr>
3730EOF
3731ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003732{ (eval echo configure:3733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003733ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3734if test -z "$ac_err"; then
3735 rm -rf conftest*
3736 eval "ac_cv_header_$ac_safe=yes"
3737else
3738 echo "$ac_err" >&5
3739 echo "configure: failed program was:" >&5
3740 cat conftest.$ac_ext >&5
3741 rm -rf conftest*
3742 eval "ac_cv_header_$ac_safe=no"
3743fi
3744rm -f conftest*
3745fi
3746if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3747 echo "$ac_t""yes" 1>&6
3748 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3749 cat >> confdefs.h <<EOF
3750#define $ac_tr_hdr 1
3751EOF
3752 echo $ac_n "checking for XvShmCreateImage in -lXv""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003753echo "configure:3754: checking for XvShmCreateImage in -lXv" >&5
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003754ac_lib_var=`echo Xv'_'XvShmCreateImage | sed 'y%./+-%__p_%'`
3755if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3756 echo $ac_n "(cached) $ac_c" 1>&6
3757else
3758 ac_save_LIBS="$LIBS"
3759LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3760 $LIBS"
3761cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003762#line 3763 "configure"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003763#include "confdefs.h"
3764/* Override any gcc2 internal prototype to avoid an error. */
3765/* We use char because int might match the return type of a gcc2
3766 builtin and then its argument prototype would still apply. */
3767char XvShmCreateImage();
3768
3769int main() {
3770XvShmCreateImage()
3771; return 0; }
3772EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003773if { (eval echo configure:3774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003774 rm -rf conftest*
3775 eval "ac_cv_lib_$ac_lib_var=yes"
3776else
3777 echo "configure: failed program was:" >&5
3778 cat conftest.$ac_ext >&5
3779 rm -rf conftest*
3780 eval "ac_cv_lib_$ac_lib_var=no"
3781fi
3782rm -f conftest*
3783LIBS="$ac_save_LIBS"
3784
3785fi
3786if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3787 echo "$ac_t""yes" 1>&6
3788 cat >> confdefs.h <<\EOF
3789#define HAVE_XVIDEO 1
3790EOF
3791
3792 X_PRE_LIBS="$X_PRE_LIBS -lXv"
3793
3794else
3795 echo "$ac_t""no" 1>&6
3796fi
3797
3798
3799else
3800 echo "$ac_t""no" 1>&6
3801echo "configure: warning: XVideo extension not found !!" 1>&2
3802
3803fi
3804done
3805
3806
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003807
3808
3809else
3810 echo "$ac_t""no" 1>&6
3811fi
3812done
3813
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003814 if test $OPENGL = "yes" -o $OPENGL = "normal"
3815 then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003816 for ac_hdr in GL/gl.h GL/glx.h GL/glext.h
Patrik Stridvall24110281999-02-04 10:09:54 +00003817do
3818ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3819echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003820echo "configure:3821: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003821if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3822 echo $ac_n "(cached) $ac_c" 1>&6
3823else
3824 cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003825#line 3826 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003826#include "confdefs.h"
3827#include <$ac_hdr>
3828EOF
3829ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003830{ (eval echo configure:3831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003831ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00003832if test -z "$ac_err"; then
3833 rm -rf conftest*
3834 eval "ac_cv_header_$ac_safe=yes"
3835else
3836 echo "$ac_err" >&5
3837 echo "configure: failed program was:" >&5
3838 cat conftest.$ac_ext >&5
3839 rm -rf conftest*
3840 eval "ac_cv_header_$ac_safe=no"
3841fi
3842rm -f conftest*
3843fi
3844if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3845 echo "$ac_t""yes" 1>&6
3846 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3847 cat >> confdefs.h <<EOF
3848#define $ac_tr_hdr 1
3849EOF
3850
3851else
3852 echo "$ac_t""no" 1>&6
3853fi
3854done
3855
Marcus Meissner22a969b2000-08-08 20:46:50 +00003856 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003857 then
3858 echo $ac_n "checking "for up-to-date OpenGL version"""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003859echo "configure:3860: checking "for up-to-date OpenGL version"" >&5
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003860if eval "test \"`echo '$''{'wine_cv_opengl_version_OK'+set}'`\" = set"; then
Lionel Ulmer5c085701999-02-28 19:48:53 +00003861 echo $ac_n "(cached) $ac_c" 1>&6
3862else
3863 cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003864#line 3865 "configure"
Lionel Ulmer5c085701999-02-28 19:48:53 +00003865#include "confdefs.h"
3866#include <GL/gl.h>
3867int main() {
3868GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3869; return 0; }
3870EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003871if { (eval echo configure:3872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Lionel Ulmer5c085701999-02-28 19:48:53 +00003872 rm -rf conftest*
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003873 wine_cv_opengl_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00003874else
3875 echo "configure: failed program was:" >&5
3876 cat conftest.$ac_ext >&5
3877 rm -rf conftest*
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003878 wine_cv_opengl_version_OK="no"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003879
Lionel Ulmer5c085701999-02-28 19:48:53 +00003880fi
3881rm -f conftest*
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003882
Lionel Ulmer5c085701999-02-28 19:48:53 +00003883fi
3884
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003885echo "$ac_t""$wine_cv_opengl_version_OK" 1>&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00003886
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003887 echo $ac_n "checking "for thread-safe OpenGL version"""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003888echo "configure:3889: checking "for thread-safe OpenGL version"" >&5
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003889if eval "test \"`echo '$''{'wine_cv_opengl_version_threadsafe'+set}'`\" = set"; then
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003890 echo $ac_n "(cached) $ac_c" 1>&6
3891else
3892 saved_libs=$LIBS
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003893 LIBS="$X_LIBS -lGL"
3894 cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003895#line 3896 "configure"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003896#include "confdefs.h"
3897
3898int main() {
3899pthread_getspecific();
3900; return 0; }
3901EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003902if { (eval echo configure:3903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003903 rm -rf conftest*
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003904 wine_cv_opengl_version_threadsafe="yes"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003905else
3906 echo "configure: failed program was:" >&5
3907 cat conftest.$ac_ext >&5
3908 rm -rf conftest*
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003909 wine_cv_opengl_version_threadsafe="no"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003910fi
3911rm -f conftest*
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003912 LIBS=$saved_libs
3913
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003914fi
3915
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003916echo "$ac_t""$wine_cv_opengl_version_threadsafe" 1>&6
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003917
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003918 if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o $OPENGL = "yes" \)
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003919 then
3920 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003921echo "configure:3922: checking for glXCreateContext in -lGL" >&5
Lionel Ulmer5d68f791999-07-23 19:33:24 +00003922ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
Patrik Stridvall24110281999-02-04 10:09:54 +00003923if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3924 echo $ac_n "(cached) $ac_c" 1>&6
3925else
3926 ac_save_LIBS="$LIBS"
Marcus Meissner376ec882000-01-05 03:24:52 +00003927LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Patrik Stridvall24110281999-02-04 10:09:54 +00003928cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003929#line 3930 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003930#include "confdefs.h"
3931/* Override any gcc2 internal prototype to avoid an error. */
3932/* We use char because int might match the return type of a gcc2
3933 builtin and then its argument prototype would still apply. */
Lionel Ulmer5d68f791999-07-23 19:33:24 +00003934char glXCreateContext();
Patrik Stridvall24110281999-02-04 10:09:54 +00003935
3936int main() {
Lionel Ulmer5d68f791999-07-23 19:33:24 +00003937glXCreateContext()
Patrik Stridvall24110281999-02-04 10:09:54 +00003938; return 0; }
3939EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003940if { (eval echo configure:3941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall24110281999-02-04 10:09:54 +00003941 rm -rf conftest*
3942 eval "ac_cv_lib_$ac_lib_var=yes"
3943else
3944 echo "configure: failed program was:" >&5
3945 cat conftest.$ac_ext >&5
3946 rm -rf conftest*
3947 eval "ac_cv_lib_$ac_lib_var=no"
3948fi
3949rm -f conftest*
3950LIBS="$ac_save_LIBS"
3951
3952fi
3953if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3954 echo "$ac_t""yes" 1>&6
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003955 X_PRE_LIBS="$X_PRE_LIBS -lGL"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003956
Patrik Stridvall24110281999-02-04 10:09:54 +00003957else
3958 echo "$ac_t""no" 1>&6
3959fi
3960
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003961
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00003962 if test $ac_cv_lib_GL_glXCreateContext = "yes"
3963 then
Marcus Meissner22a969b2000-08-08 20:46:50 +00003964
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00003965 OPENGLFILES='$(OPENGLFILES)'
3966 cat >> confdefs.h <<\EOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00003967#define HAVE_OPENGL 1
3968EOF
3969
Marcus Meissner22a969b2000-08-08 20:46:50 +00003970
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003971 echo $ac_n "checking for glXGetProcAddressARB in -lGL""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003972echo "configure:3973: checking for glXGetProcAddressARB in -lGL" >&5
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003973ac_lib_var=`echo GL'_'glXGetProcAddressARB | sed 'y%./+-%__p_%'`
3974if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3975 echo $ac_n "(cached) $ac_c" 1>&6
3976else
3977 ac_save_LIBS="$LIBS"
3978LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3979cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003980#line 3981 "configure"
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003981#include "confdefs.h"
3982/* Override any gcc2 internal prototype to avoid an error. */
3983/* We use char because int might match the return type of a gcc2
3984 builtin and then its argument prototype would still apply. */
3985char glXGetProcAddressARB();
3986
3987int main() {
3988glXGetProcAddressARB()
3989; return 0; }
3990EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00003991if { (eval echo configure:3992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003992 rm -rf conftest*
3993 eval "ac_cv_lib_$ac_lib_var=yes"
3994else
3995 echo "configure: failed program was:" >&5
3996 cat conftest.$ac_ext >&5
3997 rm -rf conftest*
3998 eval "ac_cv_lib_$ac_lib_var=no"
3999fi
4000rm -f conftest*
4001LIBS="$ac_save_LIBS"
4002
4003fi
4004if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4005 echo "$ac_t""yes" 1>&6
4006 cat >> confdefs.h <<\EOF
4007#define HAVE_GLX_GETPROCADDRESS 1
4008EOF
4009
4010else
4011 echo "$ac_t""no" 1>&6
4012fi
4013
4014
4015 if test $ac_cv_lib_GL_glXGetProcAddressARB = "yes"
4016 then
Lionel Ulmer1434d872000-07-23 14:23:31 +00004017 echo $ac_n "checking "for OpenGL extension functions prototypes"""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004018echo "configure:4019: checking "for OpenGL extension functions prototypes"" >&5
Lionel Ulmer1434d872000-07-23 14:23:31 +00004019if eval "test \"`echo '$''{'wine_cv_extension_prototypes'+set}'`\" = set"; then
4020 echo $ac_n "(cached) $ac_c" 1>&6
4021else
4022 cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004023#line 4024 "configure"
Lionel Ulmer1434d872000-07-23 14:23:31 +00004024#include "confdefs.h"
4025#include <GL/gl.h>
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00004026 #ifdef HAVE_GL_GLEXT_H
4027 # include <GL/glext.h>
4028 #endif
4029
Lionel Ulmer1434d872000-07-23 14:23:31 +00004030int main() {
4031PFNGLCOLORTABLEEXTPROC test_proc;
4032; return 0; }
4033EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004034if { (eval echo configure:4035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Lionel Ulmer1434d872000-07-23 14:23:31 +00004035 rm -rf conftest*
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00004036 wine_cv_extension_prototypes="yes"
Lionel Ulmer1434d872000-07-23 14:23:31 +00004037else
4038 echo "configure: failed program was:" >&5
4039 cat conftest.$ac_ext >&5
4040 rm -rf conftest*
4041 wine_cv_extension_prototypes="no"
4042
4043fi
4044rm -f conftest*
4045
4046fi
4047
4048echo "$ac_t""$wine_cv_extension_prototypes" 1>&6
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00004049 if test $wine_cv_extension_prototypes = "yes"
4050 then
4051 cat >> confdefs.h <<\EOF
4052#define HAVE_GLEXT_PROTOTYPES 1
4053EOF
4054
4055 fi
Lionel Ulmer1434d872000-07-23 14:23:31 +00004056
Hidenori Takeshima4615e292000-05-23 23:36:41 +00004057 OPENGL32_DLL=opengl32
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00004058 fi
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004059
4060 for ac_hdr in GL/osmesa.h
4061do
4062ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4063echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4064echo "configure:4065: checking for $ac_hdr" >&5
4065if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4066 echo $ac_n "(cached) $ac_c" 1>&6
4067else
4068 cat > conftest.$ac_ext <<EOF
4069#line 4070 "configure"
4070#include "confdefs.h"
4071#include <$ac_hdr>
4072EOF
4073ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4074{ (eval echo configure:4075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4075ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4076if test -z "$ac_err"; then
4077 rm -rf conftest*
4078 eval "ac_cv_header_$ac_safe=yes"
4079else
4080 echo "$ac_err" >&5
4081 echo "configure: failed program was:" >&5
4082 cat conftest.$ac_ext >&5
4083 rm -rf conftest*
4084 eval "ac_cv_header_$ac_safe=no"
4085fi
4086rm -f conftest*
4087fi
4088if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4089 echo "$ac_t""yes" 1>&6
4090 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4091 cat >> confdefs.h <<EOF
4092#define $ac_tr_hdr 1
4093EOF
4094 echo $ac_n "checking for OSMesaCreateContext in -lGL""... $ac_c" 1>&6
4095echo "configure:4096: checking for OSMesaCreateContext in -lGL" >&5
4096ac_lib_var=`echo GL'_'OSMesaCreateContext | sed 'y%./+-%__p_%'`
4097if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4098 echo $ac_n "(cached) $ac_c" 1>&6
4099else
4100 ac_save_LIBS="$LIBS"
4101LIBS="-lGL $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
4102 $LIBS"
4103cat > conftest.$ac_ext <<EOF
4104#line 4105 "configure"
4105#include "confdefs.h"
4106/* Override any gcc2 internal prototype to avoid an error. */
4107/* We use char because int might match the return type of a gcc2
4108 builtin and then its argument prototype would still apply. */
4109char OSMesaCreateContext();
4110
4111int main() {
4112OSMesaCreateContext()
4113; return 0; }
4114EOF
4115if { (eval echo configure:4116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4116 rm -rf conftest*
4117 eval "ac_cv_lib_$ac_lib_var=yes"
4118else
4119 echo "configure: failed program was:" >&5
4120 cat conftest.$ac_ext >&5
4121 rm -rf conftest*
4122 eval "ac_cv_lib_$ac_lib_var=no"
4123fi
4124rm -f conftest*
4125LIBS="$ac_save_LIBS"
4126
4127fi
4128if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4129 echo "$ac_t""yes" 1>&6
4130 cat >> confdefs.h <<\EOF
4131#define HAVE_OSMESA 1
4132EOF
4133
4134else
4135 echo "$ac_t""no" 1>&6
4136echo $ac_n "checking for OSMesaCreateContext in -lOSMesa""... $ac_c" 1>&6
4137echo "configure:4138: checking for OSMesaCreateContext in -lOSMesa" >&5
4138ac_lib_var=`echo OSMesa'_'OSMesaCreateContext | sed 'y%./+-%__p_%'`
4139if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4140 echo $ac_n "(cached) $ac_c" 1>&6
4141else
4142 ac_save_LIBS="$LIBS"
4143LIBS="-lOSMesa $LIBS"
4144cat > conftest.$ac_ext <<EOF
4145#line 4146 "configure"
4146#include "confdefs.h"
4147/* Override any gcc2 internal prototype to avoid an error. */
4148/* We use char because int might match the return type of a gcc2
4149 builtin and then its argument prototype would still apply. */
4150char OSMesaCreateContext();
4151
4152int main() {
4153OSMesaCreateContext()
4154; return 0; }
4155EOF
4156if { (eval echo configure:4157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4157 rm -rf conftest*
4158 eval "ac_cv_lib_$ac_lib_var=yes"
4159else
4160 echo "configure: failed program was:" >&5
4161 cat conftest.$ac_ext >&5
4162 rm -rf conftest*
4163 eval "ac_cv_lib_$ac_lib_var=no"
4164fi
4165rm -f conftest*
4166LIBS="$ac_save_LIBS"
4167
4168fi
4169if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4170 echo "$ac_t""yes" 1>&6
4171 cat >> confdefs.h <<\EOF
4172#define HAVE_OSMESA 1
4173EOF
4174
4175 X_PRE_LIBS="$X_PRE_LIBS -lOSMesa"
4176
4177else
4178 echo "$ac_t""no" 1>&6
4179fi
4180
4181fi
4182
4183
4184else
4185 echo "$ac_t""no" 1>&6
4186echo "configure: warning: OSMesa not found!!" 1>&2
4187
4188fi
4189done
4190
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00004191 fi
4192 fi
4193 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00004194 fi
Ove Kaaven1eb593c1999-02-14 09:34:46 +00004195
4196 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvall2941a212000-04-25 20:34:22 +00004197 X_DLLS='$(X_DLLS)'
4198 XFILES='$(XFILES)'
Patrik Stridvallea584721998-11-01 16:22:07 +00004199else
4200 XLIB=""
4201 X_CFLAGS=""
4202 X_LIBS=""
4203fi
Alexandre Julliard902da691995-11-05 14:39:02 +00004204
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00004205if test "$CURSES" = "yes"
4206then
4207 for ac_hdr in ncurses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00004208do
4209ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4210echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004211echo "configure:4212: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00004212if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4213 echo $ac_n "(cached) $ac_c" 1>&6
4214else
4215 cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004216#line 4217 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00004217#include "confdefs.h"
4218#include <$ac_hdr>
4219EOF
4220ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004221{ (eval echo configure:4222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00004222ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00004223if test -z "$ac_err"; then
4224 rm -rf conftest*
4225 eval "ac_cv_header_$ac_safe=yes"
4226else
4227 echo "$ac_err" >&5
4228 echo "configure: failed program was:" >&5
4229 cat conftest.$ac_ext >&5
4230 rm -rf conftest*
4231 eval "ac_cv_header_$ac_safe=no"
4232fi
4233rm -f conftest*
4234fi
4235if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4236 echo "$ac_t""yes" 1>&6
4237 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4238 cat >> confdefs.h <<EOF
4239#define $ac_tr_hdr 1
4240EOF
4241
4242else
4243 echo "$ac_t""no" 1>&6
4244fi
4245done
4246
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00004247 if test "$ac_cv_header_ncurses_h" = "yes"
4248 then
4249 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004250echo "configure:4251: checking for waddch in -lncurses" >&5
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004251ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
4252if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4253 echo $ac_n "(cached) $ac_c" 1>&6
4254else
4255 ac_save_LIBS="$LIBS"
4256LIBS="-lncurses $LIBS"
4257cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004258#line 4259 "configure"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004259#include "confdefs.h"
4260/* Override any gcc2 internal prototype to avoid an error. */
4261/* We use char because int might match the return type of a gcc2
4262 builtin and then its argument prototype would still apply. */
4263char waddch();
4264
4265int main() {
4266waddch()
4267; return 0; }
4268EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004269if { (eval echo configure:4270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004270 rm -rf conftest*
4271 eval "ac_cv_lib_$ac_lib_var=yes"
4272else
4273 echo "configure: failed program was:" >&5
4274 cat conftest.$ac_ext >&5
4275 rm -rf conftest*
4276 eval "ac_cv_lib_$ac_lib_var=no"
4277fi
4278rm -f conftest*
4279LIBS="$ac_save_LIBS"
4280
4281fi
4282if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4283 echo "$ac_t""yes" 1>&6
4284 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4285 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4286 cat >> confdefs.h <<EOF
4287#define $ac_tr_lib 1
4288EOF
4289
4290 LIBS="-lncurses $LIBS"
4291
4292else
4293 echo "$ac_t""no" 1>&6
4294fi
4295
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00004296 fi
4297 if test "$ac_cv_lib_ncurses_waddch" = "yes"
4298 then
4299 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004300echo "configure:4301: checking for resizeterm in -lncurses" >&5
Alexandre Julliard638f1691999-01-17 16:32:32 +00004301ac_lib_var=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
4302if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4303 echo $ac_n "(cached) $ac_c" 1>&6
4304else
4305 ac_save_LIBS="$LIBS"
4306LIBS="-lncurses $LIBS"
4307cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004308#line 4309 "configure"
Alexandre Julliard638f1691999-01-17 16:32:32 +00004309#include "confdefs.h"
4310/* Override any gcc2 internal prototype to avoid an error. */
4311/* We use char because int might match the return type of a gcc2
4312 builtin and then its argument prototype would still apply. */
4313char resizeterm();
4314
4315int main() {
4316resizeterm()
4317; return 0; }
4318EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004319if { (eval echo configure:4320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard638f1691999-01-17 16:32:32 +00004320 rm -rf conftest*
4321 eval "ac_cv_lib_$ac_lib_var=yes"
4322else
4323 echo "configure: failed program was:" >&5
4324 cat conftest.$ac_ext >&5
4325 rm -rf conftest*
4326 eval "ac_cv_lib_$ac_lib_var=no"
4327fi
4328rm -f conftest*
4329LIBS="$ac_save_LIBS"
4330
4331fi
4332if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4333 echo "$ac_t""yes" 1>&6
4334 cat >> confdefs.h <<\EOF
4335#define HAVE_RESIZETERM 1
4336EOF
4337
4338else
4339 echo "$ac_t""no" 1>&6
4340fi
4341
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00004342 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004343echo "configure:4344: checking for getbkgd in -lncurses" >&5
Michael Vekslerf5445071999-02-25 17:11:05 +00004344ac_lib_var=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
4345if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4346 echo $ac_n "(cached) $ac_c" 1>&6
4347else
4348 ac_save_LIBS="$LIBS"
4349LIBS="-lncurses $LIBS"
4350cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004351#line 4352 "configure"
Michael Vekslerf5445071999-02-25 17:11:05 +00004352#include "confdefs.h"
4353/* Override any gcc2 internal prototype to avoid an error. */
4354/* We use char because int might match the return type of a gcc2
4355 builtin and then its argument prototype would still apply. */
4356char getbkgd();
4357
4358int main() {
4359getbkgd()
4360; return 0; }
4361EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004362if { (eval echo configure:4363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Michael Vekslerf5445071999-02-25 17:11:05 +00004363 rm -rf conftest*
4364 eval "ac_cv_lib_$ac_lib_var=yes"
4365else
4366 echo "configure: failed program was:" >&5
4367 cat conftest.$ac_ext >&5
4368 rm -rf conftest*
4369 eval "ac_cv_lib_$ac_lib_var=no"
4370fi
4371rm -f conftest*
4372LIBS="$ac_save_LIBS"
4373
4374fi
4375if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4376 echo "$ac_t""yes" 1>&6
4377 cat >> confdefs.h <<\EOF
4378#define HAVE_GETBKGD 1
4379EOF
4380
4381else
4382 echo "$ac_t""no" 1>&6
4383fi
4384
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00004385 else
4386 for ac_hdr in curses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00004387do
4388ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4389echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004390echo "configure:4391: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00004391if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4392 echo $ac_n "(cached) $ac_c" 1>&6
4393else
4394 cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004395#line 4396 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00004396#include "confdefs.h"
4397#include <$ac_hdr>
4398EOF
4399ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004400{ (eval echo configure:4401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00004401ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00004402if test -z "$ac_err"; then
4403 rm -rf conftest*
4404 eval "ac_cv_header_$ac_safe=yes"
4405else
4406 echo "$ac_err" >&5
4407 echo "configure: failed program was:" >&5
4408 cat conftest.$ac_ext >&5
4409 rm -rf conftest*
4410 eval "ac_cv_header_$ac_safe=no"
4411fi
4412rm -f conftest*
4413fi
4414if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4415 echo "$ac_t""yes" 1>&6
4416 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4417 cat >> confdefs.h <<EOF
4418#define $ac_tr_hdr 1
4419EOF
4420
4421else
4422 echo "$ac_t""no" 1>&6
4423fi
4424done
4425
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00004426 if test "$ac_cv_header_curses_h" = "yes"
4427 then
4428 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004429echo "configure:4430: checking for waddch in -lcurses" >&5
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004430ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
4431if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4432 echo $ac_n "(cached) $ac_c" 1>&6
4433else
4434 ac_save_LIBS="$LIBS"
4435LIBS="-lcurses $LIBS"
4436cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004437#line 4438 "configure"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004438#include "confdefs.h"
4439/* Override any gcc2 internal prototype to avoid an error. */
4440/* We use char because int might match the return type of a gcc2
4441 builtin and then its argument prototype would still apply. */
4442char waddch();
4443
4444int main() {
4445waddch()
4446; return 0; }
4447EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004448if { (eval echo configure:4449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004449 rm -rf conftest*
4450 eval "ac_cv_lib_$ac_lib_var=yes"
4451else
4452 echo "configure: failed program was:" >&5
4453 cat conftest.$ac_ext >&5
4454 rm -rf conftest*
4455 eval "ac_cv_lib_$ac_lib_var=no"
4456fi
4457rm -f conftest*
4458LIBS="$ac_save_LIBS"
4459
4460fi
4461if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4462 echo "$ac_t""yes" 1>&6
4463 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4464 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4465 cat >> confdefs.h <<EOF
4466#define $ac_tr_lib 1
4467EOF
4468
4469 LIBS="-lcurses $LIBS"
4470
4471else
4472 echo "$ac_t""no" 1>&6
4473fi
4474
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00004475 if test "$ac_cv_lib_curses_waddch" = "yes"
4476 then
4477 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004478echo "configure:4479: checking for resizeterm in -lcurses" >&5
Alexandre Julliard638f1691999-01-17 16:32:32 +00004479ac_lib_var=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
4480if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4481 echo $ac_n "(cached) $ac_c" 1>&6
4482else
4483 ac_save_LIBS="$LIBS"
4484LIBS="-lcurses $LIBS"
4485cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004486#line 4487 "configure"
Alexandre Julliard638f1691999-01-17 16:32:32 +00004487#include "confdefs.h"
4488/* Override any gcc2 internal prototype to avoid an error. */
4489/* We use char because int might match the return type of a gcc2
4490 builtin and then its argument prototype would still apply. */
4491char resizeterm();
4492
4493int main() {
4494resizeterm()
4495; return 0; }
4496EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004497if { (eval echo configure:4498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard638f1691999-01-17 16:32:32 +00004498 rm -rf conftest*
4499 eval "ac_cv_lib_$ac_lib_var=yes"
4500else
4501 echo "configure: failed program was:" >&5
4502 cat conftest.$ac_ext >&5
4503 rm -rf conftest*
4504 eval "ac_cv_lib_$ac_lib_var=no"
4505fi
4506rm -f conftest*
4507LIBS="$ac_save_LIBS"
4508
4509fi
4510if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4511 echo "$ac_t""yes" 1>&6
4512 cat >> confdefs.h <<\EOF
4513#define HAVE_RESIZETERM 1
4514EOF
4515
4516else
4517 echo "$ac_t""no" 1>&6
4518fi
4519
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00004520 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004521echo "configure:4522: checking for getbkgd in -lcurses" >&5
Michael Vekslerf5445071999-02-25 17:11:05 +00004522ac_lib_var=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
4523if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4524 echo $ac_n "(cached) $ac_c" 1>&6
4525else
4526 ac_save_LIBS="$LIBS"
4527LIBS="-lcurses $LIBS"
4528cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004529#line 4530 "configure"
Michael Vekslerf5445071999-02-25 17:11:05 +00004530#include "confdefs.h"
4531/* Override any gcc2 internal prototype to avoid an error. */
4532/* We use char because int might match the return type of a gcc2
4533 builtin and then its argument prototype would still apply. */
4534char getbkgd();
4535
4536int main() {
4537getbkgd()
4538; return 0; }
4539EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004540if { (eval echo configure:4541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Michael Vekslerf5445071999-02-25 17:11:05 +00004541 rm -rf conftest*
4542 eval "ac_cv_lib_$ac_lib_var=yes"
4543else
4544 echo "configure: failed program was:" >&5
4545 cat conftest.$ac_ext >&5
4546 rm -rf conftest*
4547 eval "ac_cv_lib_$ac_lib_var=no"
4548fi
4549rm -f conftest*
4550LIBS="$ac_save_LIBS"
4551
4552fi
4553if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4554 echo "$ac_t""yes" 1>&6
4555 cat >> confdefs.h <<\EOF
4556#define HAVE_GETBKGD 1
4557EOF
4558
4559else
4560 echo "$ac_t""no" 1>&6
4561fi
4562
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00004563 fi
4564 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00004565 fi
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004566fi
4567
Pavel Roskin94d99641998-12-26 11:52:51 +00004568echo $ac_n "checking "for GNU style IPX support"""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004569echo "configure:4570: checking "for GNU style IPX support"" >&5
Pavel Roskin94d99641998-12-26 11:52:51 +00004570if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
4571 echo $ac_n "(cached) $ac_c" 1>&6
4572else
4573 cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004574#line 4575 "configure"
Pavel Roskin94d99641998-12-26 11:52:51 +00004575#include "confdefs.h"
4576#include <sys/socket.h>
4577 #include <netipx/ipx.h>
4578int main() {
4579((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4580; return 0; }
4581EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004582if { (eval echo configure:4583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Pavel Roskin94d99641998-12-26 11:52:51 +00004583 rm -rf conftest*
Aaron Hopec23872d2000-01-15 23:43:21 +00004584 ac_cv_c_ipx_gnu="yes"
Pavel Roskin94d99641998-12-26 11:52:51 +00004585else
4586 echo "configure: failed program was:" >&5
4587 cat conftest.$ac_ext >&5
4588 rm -rf conftest*
4589 ac_cv_c_ipx_gnu="no"
4590fi
4591rm -f conftest*
4592
4593fi
4594
4595echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
Aaron Hopec23872d2000-01-15 23:43:21 +00004596if test "$ac_cv_c_ipx_gnu" = "yes"
4597then
4598 cat >> confdefs.h <<\EOF
4599#define HAVE_IPX_GNU 1
4600EOF
4601
4602fi
Pavel Roskin94d99641998-12-26 11:52:51 +00004603
4604if test "$ac_cv_c_ipx_gnu" = "no"
4605then
4606 echo $ac_n "checking "for linux style IPX support"""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004607echo "configure:4608: checking "for linux style IPX support"" >&5
Pavel Roskin94d99641998-12-26 11:52:51 +00004608if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4609 echo $ac_n "(cached) $ac_c" 1>&6
4610else
4611 cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004612#line 4613 "configure"
Pavel Roskin94d99641998-12-26 11:52:51 +00004613#include "confdefs.h"
4614#include <sys/socket.h>
4615 #include <asm/types.h>
4616 #include <linux/ipx.h>
4617int main() {
4618((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4619; return 0; }
4620EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004621if { (eval echo configure:4622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Pavel Roskin94d99641998-12-26 11:52:51 +00004622 rm -rf conftest*
Aaron Hopec23872d2000-01-15 23:43:21 +00004623 ac_cv_c_ipx_linux="yes"
Pavel Roskin94d99641998-12-26 11:52:51 +00004624else
4625 echo "configure: failed program was:" >&5
4626 cat conftest.$ac_ext >&5
4627 rm -rf conftest*
4628 ac_cv_c_ipx_linux="no"
4629fi
4630rm -f conftest*
4631
4632fi
4633
4634echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
Aaron Hopec23872d2000-01-15 23:43:21 +00004635 if test "$ac_cv_c_ipx_linux" = "yes"
4636 then
4637 cat >> confdefs.h <<\EOF
4638#define HAVE_IPX_LINUX 1
4639EOF
4640
4641 fi
Pavel Roskin94d99641998-12-26 11:52:51 +00004642fi
4643
Todd Vierlingecc76691998-12-15 17:49:02 +00004644for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004645do
4646ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4647echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004648echo "configure:4649: checking for $ac_hdr" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004649if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4650 echo $ac_n "(cached) $ac_c" 1>&6
4651else
4652 cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004653#line 4654 "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004654#include "confdefs.h"
4655#include <$ac_hdr>
4656EOF
4657ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004658{ (eval echo configure:4659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00004659ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004660if test -z "$ac_err"; then
4661 rm -rf conftest*
4662 eval "ac_cv_header_$ac_safe=yes"
4663else
4664 echo "$ac_err" >&5
4665 echo "configure: failed program was:" >&5
4666 cat conftest.$ac_ext >&5
4667 rm -rf conftest*
4668 eval "ac_cv_header_$ac_safe=no"
4669fi
4670rm -f conftest*
4671fi
4672if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4673 echo "$ac_t""yes" 1>&6
4674 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4675 cat >> confdefs.h <<EOF
4676#define $ac_tr_hdr 1
4677EOF
Todd Vierlingecc76691998-12-15 17:49:02 +00004678 break
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004679else
4680 echo "$ac_t""no" 1>&6
4681fi
4682done
4683
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004684
4685echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004686echo "configure:4687: checking "for Open Sound System"" >&5
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004687if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4688 echo $ac_n "(cached) $ac_c" 1>&6
4689else
4690 cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004691#line 4692 "configure"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004692#include "confdefs.h"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004693
Todd Vierlingecc76691998-12-15 17:49:02 +00004694 #if defined(HAVE_SYS_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004695 #include <sys/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00004696 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004697 #include <machine/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00004698 #elif defined(HAVE_SOUNDCARD_H)
4699 #include <soundcard.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004700 #endif
4701
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004702int main() {
4703
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004704
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00004705/* check for one of the Open Sound System specific SNDCTL_ defines */
4706#if !defined(SNDCTL_DSP_STEREO)
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004707#error No open sound system
4708#endif
4709
4710; return 0; }
4711EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004712if { (eval echo configure:4713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004713 rm -rf conftest*
4714 ac_cv_c_opensoundsystem="yes"
4715else
4716 echo "configure: failed program was:" >&5
4717 cat conftest.$ac_ext >&5
4718 rm -rf conftest*
4719 ac_cv_c_opensoundsystem="no"
4720fi
4721rm -f conftest*
4722fi
4723
4724echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4725
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004726if test "$ac_cv_c_opensoundsystem" = "yes"
4727then
4728 cat >> confdefs.h <<\EOF
4729#define HAVE_OSS 1
4730EOF
4731
4732fi
4733
Eric Pouech338d3b21999-05-22 18:52:21 +00004734echo $ac_n "checking "for Open Sound System/MIDI interface"""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004735echo "configure:4736: checking "for Open Sound System/MIDI interface"" >&5
Eric Pouech338d3b21999-05-22 18:52:21 +00004736if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4737 echo $ac_n "(cached) $ac_c" 1>&6
4738else
4739 cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004740#line 4741 "configure"
Eric Pouech338d3b21999-05-22 18:52:21 +00004741#include "confdefs.h"
4742
4743 #if defined(HAVE_SYS_SOUNDCARD_H)
4744 #include <sys/soundcard.h>
4745 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4746 #include <machine/soundcard.h>
4747 #elif defined(HAVE_SOUNDCARD_H)
4748 #include <soundcard.h>
4749 #endif
4750
4751int main() {
4752
4753
4754/* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4755#if !defined(SNDCTL_SEQ_SYNC)
4756#error No open sound system MIDI interface
4757#endif
4758
4759; return 0; }
4760EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004761if { (eval echo configure:4762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Eric Pouech338d3b21999-05-22 18:52:21 +00004762 rm -rf conftest*
4763 ac_cv_c_opensoundsystem_midi="yes"
4764else
4765 echo "configure: failed program was:" >&5
4766 cat conftest.$ac_ext >&5
4767 rm -rf conftest*
4768 ac_cv_c_opensoundsystem_midi="no"
4769fi
4770rm -f conftest*
4771fi
4772
4773echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4774
4775if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4776then
4777 cat >> confdefs.h <<\EOF
4778#define HAVE_OSS_MIDI 1
4779EOF
4780
4781fi
4782
Alexandre Julliard641ee761997-08-04 16:34:36 +00004783if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
4784
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004785
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004786if test "x${GCC}" = "xyes"
4787then
4788 CFLAGS="$CFLAGS -Wall"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004789 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004790echo "configure:4791: checking "for gcc strength-reduce bug"" >&5
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004791if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
4792 echo $ac_n "(cached) $ac_c" 1>&6
4793else
4794 if test "$cross_compiling" = yes; then
4795 ac_cv_c_gcc_strength_bug="yes"
4796else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004797 cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004798#line 4799 "configure"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004799#include "confdefs.h"
4800
Eric Pouech5aee80f2000-11-11 00:31:39 +00004801int L[4] = {0,1,2,3};
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004802int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +00004803 static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004804 unsigned int B = 3;
4805 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +00004806 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +00004807 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
4808 L[i] = 4;
4809
4810 exit( Array[1] != -2 || L[2] != 3);
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004811}
4812EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004813if { (eval echo configure:4814: \"$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 +00004814then
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004815 ac_cv_c_gcc_strength_bug="no"
4816else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004817 echo "configure: failed program was:" >&5
4818 cat conftest.$ac_ext >&5
4819 rm -fr conftest*
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004820 ac_cv_c_gcc_strength_bug="yes"
4821fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004822rm -fr conftest*
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004823fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004824
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004825fi
4826
4827echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
4828 if test "$ac_cv_c_gcc_strength_bug" = "yes"
4829 then
4830 CFLAGS="$CFLAGS -fno-strength-reduce"
4831 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00004832
4833 echo $ac_n "checking "for gcc -mpreferred-stack-boundary=2 support"""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004834echo "configure:4835: checking "for gcc -mpreferred-stack-boundary=2 support"" >&5
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00004835if eval "test \"`echo '$''{'ac_cv_c_gcc_stack_boundary'+set}'`\" = set"; then
4836 echo $ac_n "(cached) $ac_c" 1>&6
4837else
4838 saved_cflags=$CFLAGS
4839 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
4840 cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004841#line 4842 "configure"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00004842#include "confdefs.h"
4843
4844int main() {
4845return 0
4846; return 0; }
4847EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004848if { (eval echo configure:4849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00004849 rm -rf conftest*
4850 ac_cv_c_gcc_stack_boundary="yes"
4851else
4852 echo "configure: failed program was:" >&5
4853 cat conftest.$ac_ext >&5
4854 rm -rf conftest*
4855 ac_cv_c_gcc_stack_boundary="no"
4856fi
4857rm -f conftest*
4858 CFLAGS=$saved_cflags
4859
4860fi
4861
4862echo "$ac_t""$ac_cv_c_gcc_stack_boundary" 1>&6
4863 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
4864 then
4865 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
4866 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004867fi
4868
4869
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00004870echo $ac_n "checking "whether .type must sit inside a .def directive"""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004871echo "configure:4872: checking "whether .type must sit inside a .def directive"" >&5
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00004872if eval "test \"`echo '$''{'ac_cv_c_type_in_def'+set}'`\" = set"; then
4873 echo $ac_n "(cached) $ac_c" 1>&6
4874else
4875 saved_libs=$LIBS
4876LIBS="conftest_asm.s $LIBS"
4877cat > conftest_asm.s <<EOF
4878 .globl _ac_test
4879 .def _ac_test; .scl 2; .type 32; .endef
4880_ac_test:
4881 .long 0
4882EOF
4883cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004884#line 4885 "configure"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00004885#include "confdefs.h"
4886
4887int main() {
4888
4889; return 0; }
4890EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004891if { (eval echo configure:4892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00004892 rm -rf conftest*
4893 ac_cv_c_type_in_def="yes"
4894else
4895 echo "configure: failed program was:" >&5
4896 cat conftest.$ac_ext >&5
4897 rm -rf conftest*
4898 ac_cv_c_type_in_def="no"
4899fi
4900rm -f conftest*
4901LIBS=$saved_libs
4902fi
4903
4904echo "$ac_t""$ac_cv_c_type_in_def" 1>&6
4905if test "$ac_cv_c_type_in_def" = "yes"
4906then
4907 cat >> confdefs.h <<\EOF
4908#define NEED_TYPE_IN_DEF 1
4909EOF
4910
4911fi
4912
4913
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00004914echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004915echo "configure:4916: checking "whether external symbols need an underscore prefix"" >&5
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00004916if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
4917 echo $ac_n "(cached) $ac_c" 1>&6
4918else
4919 saved_libs=$LIBS
4920LIBS="conftest_asm.s $LIBS"
4921cat > conftest_asm.s <<EOF
4922 .globl _ac_test
4923_ac_test:
4924 .long 0
4925EOF
4926cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004927#line 4928 "configure"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00004928#include "confdefs.h"
4929extern int ac_test;
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004930int main() {
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00004931if (ac_test) return 1
4932; return 0; }
4933EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004934if { (eval echo configure:4935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00004935 rm -rf conftest*
4936 ac_cv_c_extern_prefix="yes"
4937else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004938 echo "configure: failed program was:" >&5
4939 cat conftest.$ac_ext >&5
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00004940 rm -rf conftest*
4941 ac_cv_c_extern_prefix="no"
4942fi
4943rm -f conftest*
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00004944LIBS=$saved_libs
4945fi
4946
4947echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
4948if test "$ac_cv_c_extern_prefix" = "yes"
4949then
4950 cat >> confdefs.h <<\EOF
4951#define NEED_UNDERSCORE_PREFIX 1
4952EOF
4953
4954fi
4955
4956
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004957echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004958echo "configure:4959: checking "whether assembler accepts .string"" >&5
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004959if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
4960 echo $ac_n "(cached) $ac_c" 1>&6
4961else
4962 saved_libs=$LIBS
4963LIBS="conftest_asm.s $LIBS"
4964cat > conftest_asm.s <<EOF
4965 .string "test"
4966EOF
4967cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004968#line 4969 "configure"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004969#include "confdefs.h"
4970
4971int main() {
4972
4973; return 0; }
4974EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004975if { (eval echo configure:4976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004976 rm -rf conftest*
4977 ac_cv_c_asm_string="yes"
4978else
4979 echo "configure: failed program was:" >&5
4980 cat conftest.$ac_ext >&5
4981 rm -rf conftest*
4982 ac_cv_c_asm_string="no"
4983fi
4984rm -f conftest*
4985LIBS=$saved_libs
4986fi
4987
4988echo "$ac_t""$ac_cv_c_asm_string" 1>&6
4989if test "$ac_cv_c_asm_string" = "yes"
4990then
4991 cat >> confdefs.h <<\EOF
4992#define HAVE_ASM_STRING 1
4993EOF
4994
4995fi
4996
4997
Todd Vierling4b992b01998-12-15 15:26:27 +00004998LDSHARED=""
Alexandre Julliard4354cda2000-11-09 20:27:45 +00004999LDDLLFLAGS=""
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00005000if test "$LIBEXT" = "so"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005001then
Todd Vierling4b992b01998-12-15 15:26:27 +00005002 echo $ac_n "checking "whether we can build a Linux dll"""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00005003echo "configure:5004: checking "whether we can build a Linux dll"" >&5
Todd Vierling4b992b01998-12-15 15:26:27 +00005004if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005005 echo $ac_n "(cached) $ac_c" 1>&6
5006else
5007 saved_cflags=$CFLAGS
Alexandre Julliard4354cda2000-11-09 20:27:45 +00005008 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005009 cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00005010#line 5011 "configure"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005011#include "confdefs.h"
5012
5013int main() {
5014return 1
5015; return 0; }
5016EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00005017if { (eval echo configure:5018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005018 rm -rf conftest*
Todd Vierling4b992b01998-12-15 15:26:27 +00005019 ac_cv_c_dll_linux="yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005020else
5021 echo "configure: failed program was:" >&5
5022 cat conftest.$ac_ext >&5
5023 rm -rf conftest*
Todd Vierling4b992b01998-12-15 15:26:27 +00005024 ac_cv_c_dll_linux="no"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005025fi
5026rm -f conftest*
5027 CFLAGS=$saved_cflags
5028
5029fi
5030
Todd Vierling4b992b01998-12-15 15:26:27 +00005031echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
5032 if test "$ac_cv_c_dll_linux" = "yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005033 then
Alexandre Julliard4354cda2000-11-09 20:27:45 +00005034 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%) -Wl,-rpath,\$(libdir)"
5035 LDDLLFLAGS="-Wl,-Bsymbolic"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005036 else
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00005037 echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00005038echo "configure:5039: checking whether we can build a UnixWare (Solaris) dll" >&5
Ron Recorde977d6c1999-09-05 12:32:05 +00005039if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
Todd Vierling4b992b01998-12-15 15:26:27 +00005040 echo $ac_n "(cached) $ac_c" 1>&6
5041else
5042 saved_cflags=$CFLAGS
Alexandre Julliard4354cda2000-11-09 20:27:45 +00005043 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
Todd Vierling4b992b01998-12-15 15:26:27 +00005044 cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00005045#line 5046 "configure"
Todd Vierling4b992b01998-12-15 15:26:27 +00005046#include "confdefs.h"
5047
5048int main() {
5049return 1
5050; return 0; }
5051EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00005052if { (eval echo configure:5053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ron Recorde977d6c1999-09-05 12:32:05 +00005053 rm -rf conftest*
5054 ac_cv_c_dll_unixware="yes"
5055else
5056 echo "configure: failed program was:" >&5
5057 cat conftest.$ac_ext >&5
5058 rm -rf conftest*
5059 ac_cv_c_dll_unixware="no"
5060fi
5061rm -f conftest*
5062 CFLAGS=$saved_cflags
5063
5064fi
5065
5066echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
5067 if test "$ac_cv_c_dll_unixware" = "yes"
5068 then
Patrik Stridvall35d288b2000-12-18 03:13:52 +00005069 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,\$(libdir)/%)"
Alexandre Julliard4354cda2000-11-09 20:27:45 +00005070 LDDLLFLAGS="-Wl,-B,symbolic"
Ron Recorde977d6c1999-09-05 12:32:05 +00005071 else
5072 echo $ac_n "checking "whether we can build a NetBSD dll"""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00005073echo "configure:5074: checking "whether we can build a NetBSD dll"" >&5
Ron Recorde977d6c1999-09-05 12:32:05 +00005074if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
5075 echo $ac_n "(cached) $ac_c" 1>&6
5076else
5077 saved_cflags=$CFLAGS
Alexandre Julliard4354cda2000-11-09 20:27:45 +00005078 CFLAGS="$CFLAGS -fPIC -Wl,-Bshareable,-Bforcearchive"
Ron Recorde977d6c1999-09-05 12:32:05 +00005079 cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00005080#line 5081 "configure"
Ron Recorde977d6c1999-09-05 12:32:05 +00005081#include "confdefs.h"
5082
5083int main() {
5084return 1
5085; return 0; }
5086EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00005087if { (eval echo configure:5088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Todd Vierling4b992b01998-12-15 15:26:27 +00005088 rm -rf conftest*
5089 ac_cv_c_dll_netbsd="yes"
5090else
5091 echo "configure: failed program was:" >&5
5092 cat conftest.$ac_ext >&5
5093 rm -rf conftest*
5094 ac_cv_c_dll_netbsd="no"
5095fi
5096rm -f conftest*
Ron Recorde977d6c1999-09-05 12:32:05 +00005097 CFLAGS=$saved_cflags
5098
Todd Vierling4b992b01998-12-15 15:26:27 +00005099fi
5100
5101echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
Ron Recorde977d6c1999-09-05 12:32:05 +00005102 if test "$ac_cv_c_dll_netbsd" = "yes"
5103 then
Alexandre Julliard4354cda2000-11-09 20:27:45 +00005104 LDSHARED="\$(CC) -Wl,-Bshareable,-Bforcearchive"
5105 LDDLLFLAGS="" #FIXME
Ron Recorde977d6c1999-09-05 12:32:05 +00005106 fi
Todd Vierling4b992b01998-12-15 15:26:27 +00005107 fi
5108 fi
Ron Recorde977d6c1999-09-05 12:32:05 +00005109 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 +00005110 then
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00005111 LIBEXT="a"
5112 if test "$DLLWRAP" = "dllwrap"; then
5113 if test "$CYGWIN" = "yes"; then
5114 echo "*** use dllwrap for building shared library."
5115 LIBEXT="dll"
5116 fi
5117 fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005118 fi
5119fi
5120
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00005121if test "$LIBEXT" = "a"; then
5122 echo "*** It is currently not possible to build WINE without shared"
5123 echo "*** library (.so) support to allow transparent switch between .so"
5124 echo "*** and .dll files."
5125 echo "*** If you are using Linux, you will need a newer binutils."
5126 exit 1
5127fi
5128
Alexandre Julliard0adad952000-01-26 01:45:58 +00005129DLLFLAGS=""
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00005130LDPATH=""
Alexandre Julliard0adad952000-01-26 01:45:58 +00005131
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00005132if test "$LIBEXT" = "so"; then
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00005133 DLLFLAGS="-fPIC"
Alexandre Julliardb0182392000-12-06 00:04:10 +00005134 DLL_LINK="-L\$(DLLDIR) \$(IMPORTS:%=-l%) \$(LIBWINE) \$(LIBUNICODE)"
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00005135 LDPATH="LD_LIBRARY_PATH=\"\$(TOPOBJDIR)/unicode:\$\$LD_LIBRARY_PATH\""
5136elif test "$LIBEXT" = "dll"; then
5137 #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME
5138 DLL_LINK="-L\$(DLLDIR) \$(IMPORTS:%=-l%) \$(LIBWINE) \$(LIBUNICODE)"
5139 LDPATH="PATH=\"\$(TOPOBJDIR)/unicode:\$\$PATH\""
Alexandre Julliard0adad952000-01-26 01:45:58 +00005140else
Alexandre Julliardb0182392000-12-06 00:04:10 +00005141 DLL_LINK="-L\$(DLLDIR) \$(DLLS:%=-l%) \$(LIBWINE) \$(LIBUNICODE) \$(X_LIBS) \$(XLIB)"
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00005142 echo $ac_n "checking whether the linker supports --[no]-whole-archive (Linux)""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00005143echo "configure:5144: checking whether the linker supports --[no]-whole-archive (Linux)" >&5
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00005144if eval "test \"`echo '$''{'ac_cv_c_whole_archive'+set}'`\" = set"; then
5145 echo $ac_n "(cached) $ac_c" 1>&6
5146else
5147 saved_cflags=$CFLAGS
5148 CFLAGS="$CFLAGS -Wl,--whole-archive -Wl,--no-whole-archive"
5149 cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00005150#line 5151 "configure"
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00005151#include "confdefs.h"
5152
5153int main() {
5154return 1
5155; return 0; }
5156EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00005157if { (eval echo configure:5158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00005158 rm -rf conftest*
5159 ac_cv_c_whole_archive="yes"
5160else
5161 echo "configure: failed program was:" >&5
5162 cat conftest.$ac_ext >&5
5163 rm -rf conftest*
5164 ac_cv_c_whole_archive="no"
5165fi
5166rm -f conftest*
5167 CFLAGS=$saved_cflags
5168
5169fi
5170
5171echo "$ac_t""$ac_cv_c_whole_archive" 1>&6
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00005172 if test "$ac_cv_c_whole_archive" = "yes"
5173 then
5174 DLL_LINK="-Wl,--whole-archive $DLL_LINK -Wl,--no-whole-archive"
5175 else
5176 echo $ac_n "checking whether the linker supports -z {all,default}extract (Linux)""... $ac_c" 1>&6
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00005177echo "configure:5178: checking whether the linker supports -z {all,default}extract (Linux)" >&5
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00005178if eval "test \"`echo '$''{'ac_cv_c_allextract'+set}'`\" = set"; then
5179 echo $ac_n "(cached) $ac_c" 1>&6
5180else
5181 saved_cflags=$CFLAGS
5182 CFLAGS="$CFLAGS -Wl,-z,allextract -Wl,-z,defaultextract"
5183 cat > conftest.$ac_ext <<EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00005184#line 5185 "configure"
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00005185#include "confdefs.h"
5186
5187int main() {
5188return 1
5189; return 0; }
5190EOF
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00005191if { (eval echo configure:5192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00005192 rm -rf conftest*
5193 ac_cv_c_allextract="yes"
5194else
5195 echo "configure: failed program was:" >&5
5196 cat conftest.$ac_ext >&5
5197 rm -rf conftest*
5198 ac_cv_c_allextract="no"
5199fi
5200rm -f conftest*
5201 CFLAGS=$saved_cflags
5202
5203fi
5204
5205echo "$ac_t""$ac_cv_c_allextract" 1>&6
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00005206 if test "$ac_cv_c_allextract" = "yes"
5207 then
5208 DLL_LINK="-Wl,-z,allextract $DLL_LINK -Wl,-z,defaultextract"
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00005209 fi
Alexandre Julliard0adad952000-01-26 01:45:58 +00005210 fi
5211fi
5212
5213
5214
5215
5216
5217
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005218
Alexandre Julliard4354cda2000-11-09 20:27:45 +00005219
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00005220
Alexandre Julliard598412e2001-01-17 20:22:22 +00005221
5222
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005223wine_cv_libc_reentrant=no
Alexandre Julliard598412e2001-01-17 20:22:22 +00005224
5225 echo $ac_n "checking for reentrant libc: __errno_location""... $ac_c" 1>&6
5226echo "configure:5227: checking for reentrant libc: __errno_location" >&5
5227if eval "test \"`echo '$''{'wine_cv_libc_r___errno_location'+set}'`\" = set"; then
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005228 echo $ac_n "(cached) $ac_c" 1>&6
5229else
5230 if test "$cross_compiling" = yes; then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005231 wine_cv_libc_r___errno_location=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005232else
5233 cat > conftest.$ac_ext <<EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00005234#line 5235 "configure"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005235#include "confdefs.h"
5236int myerrno = 0;
5237char buf[256];
5238int *__errno_location(){return &myerrno;}
5239main(){connect(0,buf,255); exit(!myerrno);}
5240EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00005241if { (eval echo configure:5242: \"$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 +00005242then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005243 wine_cv_libc_r___errno_location=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005244else
5245 echo "configure: failed program was:" >&5
5246 cat conftest.$ac_ext >&5
5247 rm -fr conftest*
Alexandre Julliard598412e2001-01-17 20:22:22 +00005248 wine_cv_libc_r___errno_location=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005249fi
5250rm -fr conftest*
5251fi
Marcus Meissnerc2606381999-04-11 15:20:29 +00005252
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005253
5254fi
5255
Alexandre Julliard598412e2001-01-17 20:22:22 +00005256echo "$ac_t""$wine_cv_libc_r___errno_location" 1>&6
5257if test "$wine_cv_libc_r___errno_location" = "yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005258then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005259 wine_cv_libc_reentrant=__errno_location
5260fi
Alexandre Julliard598412e2001-01-17 20:22:22 +00005261
5262
5263 echo $ac_n "checking for reentrant libc: __error""... $ac_c" 1>&6
5264echo "configure:5265: checking for reentrant libc: __error" >&5
5265if eval "test \"`echo '$''{'wine_cv_libc_r___error'+set}'`\" = set"; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005266 echo $ac_n "(cached) $ac_c" 1>&6
5267else
5268 if test "$cross_compiling" = yes; then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005269 wine_cv_libc_r___error=yes
Marcus Meissnerc2606381999-04-11 15:20:29 +00005270else
5271 cat > conftest.$ac_ext <<EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00005272#line 5273 "configure"
Marcus Meissnerc2606381999-04-11 15:20:29 +00005273#include "confdefs.h"
5274int myerrno = 0;
5275char buf[256];
5276int *__error(){return &myerrno;}
5277main(){connect(0,buf,255); exit(!myerrno);}
5278EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00005279if { (eval echo configure:5280: \"$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 +00005280then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005281 wine_cv_libc_r___error=yes
Marcus Meissnerc2606381999-04-11 15:20:29 +00005282else
5283 echo "configure: failed program was:" >&5
5284 cat conftest.$ac_ext >&5
5285 rm -fr conftest*
Alexandre Julliard598412e2001-01-17 20:22:22 +00005286 wine_cv_libc_r___error=no
Marcus Meissnerc2606381999-04-11 15:20:29 +00005287fi
5288rm -fr conftest*
5289fi
5290
Marcus Meissnerc2606381999-04-11 15:20:29 +00005291
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005292fi
5293
Alexandre Julliard598412e2001-01-17 20:22:22 +00005294echo "$ac_t""$wine_cv_libc_r___error" 1>&6
5295if test "$wine_cv_libc_r___error" = "yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005296then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005297 wine_cv_libc_reentrant=__error
5298fi
Alexandre Julliard598412e2001-01-17 20:22:22 +00005299
5300
5301 echo $ac_n "checking for reentrant libc: ___errno""... $ac_c" 1>&6
5302echo "configure:5303: checking for reentrant libc: ___errno" >&5
5303if eval "test \"`echo '$''{'wine_cv_libc_r____errno'+set}'`\" = set"; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005304 echo $ac_n "(cached) $ac_c" 1>&6
5305else
5306 if test "$cross_compiling" = yes; then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005307 wine_cv_libc_r____errno=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005308else
5309 cat > conftest.$ac_ext <<EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00005310#line 5311 "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005311#include "confdefs.h"
5312int myerrno = 0;
5313char buf[256];
5314int *___errno(){return &myerrno;}
5315main(){connect(0,buf,255); exit(!myerrno);}
5316EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00005317if { (eval echo configure:5318: \"$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 +00005318then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005319 wine_cv_libc_r____errno=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005320else
5321 echo "configure: failed program was:" >&5
5322 cat conftest.$ac_ext >&5
5323 rm -fr conftest*
Alexandre Julliard598412e2001-01-17 20:22:22 +00005324 wine_cv_libc_r____errno=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005325fi
5326rm -fr conftest*
5327fi
5328
5329
5330fi
5331
Alexandre Julliard598412e2001-01-17 20:22:22 +00005332echo "$ac_t""$wine_cv_libc_r____errno" 1>&6
5333if test "$wine_cv_libc_r____errno" = "yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005334then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005335 wine_cv_libc_reentrant=___errno
5336fi
Alexandre Julliard598412e2001-01-17 20:22:22 +00005337
5338
5339 echo $ac_n "checking for reentrant libc: __thr_errno""... $ac_c" 1>&6
5340echo "configure:5341: checking for reentrant libc: __thr_errno" >&5
5341if eval "test \"`echo '$''{'wine_cv_libc_r___thr_errno'+set}'`\" = set"; then
Ron Recorde977d6c1999-09-05 12:32:05 +00005342 echo $ac_n "(cached) $ac_c" 1>&6
5343else
5344 if test "$cross_compiling" = yes; then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005345 wine_cv_libc_r___thr_errno=yes
Ron Recorde977d6c1999-09-05 12:32:05 +00005346else
5347 cat > conftest.$ac_ext <<EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00005348#line 5349 "configure"
Ron Recorde977d6c1999-09-05 12:32:05 +00005349#include "confdefs.h"
5350int myerrno = 0;
5351char buf[256];
5352int *__thr_errno(){return &myerrno;}
5353main(){connect(0,buf,255); exit(!myerrno);}
5354EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00005355if { (eval echo configure:5356: \"$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 +00005356then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005357 wine_cv_libc_r___thr_errno=yes
Ron Recorde977d6c1999-09-05 12:32:05 +00005358else
5359 echo "configure: failed program was:" >&5
5360 cat conftest.$ac_ext >&5
5361 rm -fr conftest*
Alexandre Julliard598412e2001-01-17 20:22:22 +00005362 wine_cv_libc_r___thr_errno=no
Ron Recorde977d6c1999-09-05 12:32:05 +00005363fi
5364rm -fr conftest*
5365fi
5366
5367
5368fi
5369
Alexandre Julliard598412e2001-01-17 20:22:22 +00005370echo "$ac_t""$wine_cv_libc_r___thr_errno" 1>&6
5371if test "$wine_cv_libc_r___thr_errno" = "yes"
Ron Recorde977d6c1999-09-05 12:32:05 +00005372then
Ron Recorde977d6c1999-09-05 12:32:05 +00005373 wine_cv_libc_reentrant=__thr_errno
5374fi
Alexandre Julliard598412e2001-01-17 20:22:22 +00005375
5376
5377if test "$wine_cv_libc_reentrant" != "no"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005378then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005379 cat >> confdefs.h <<EOF
5380#define ERRNO_LOCATION $wine_cv_libc_reentrant
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005381EOF
5382
5383fi
5384
5385
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005386if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
Patrik Stridvall24110281999-02-04 10:09:54 +00005387then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005388echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
Alexandre Julliard598412e2001-01-17 20:22:22 +00005389echo "configure:5390: checking "for reentrant X libraries"" >&5
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005390if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
5391 echo $ac_n "(cached) $ac_c" 1>&6
5392else
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005393 if test "x$with_reentrant_x" = "xno"
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005394 then
5395 wine_cv_x_reentrant=no
5396 else
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005397 libX11_check=none
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005398 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
Alexandre Julliard829fe321998-07-26 14:27:39 +00005399 if test -r $dir/libX11.so; then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005400 libX11_check="-D $dir/libX11.so"
5401 break 1
5402 fi
Alexandre Julliard829fe321998-07-26 14:27:39 +00005403 if test -r $dir/libX11.a; then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005404 libX11_check="$dir/libX11.a"
5405 break 1
5406 fi
5407 done
5408 if test "$libX11_check" != "none"; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005409 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
Alexandre Julliard829fe321998-07-26 14:27:39 +00005410 then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005411 wine_cv_x_reentrant=yes
5412 else
5413 wine_cv_x_reentrant=no
5414 fi
5415 else
5416 wine_cv_x_reentrant=unknown
5417 fi
5418 fi
5419fi
5420
5421echo "$ac_t""$wine_cv_x_reentrant" 1>&6
Patrik Stridvall24110281999-02-04 10:09:54 +00005422else
5423 wine_cv_x_reentrant=no
5424fi
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005425if test "$wine_cv_x_reentrant" = "no"
5426then
5427 cat >> confdefs.h <<\EOF
5428#define NO_REENTRANT_X11 1
5429EOF
5430
5431fi
5432
5433
Francois Gougetae5e93e1999-11-13 23:02:06 +00005434
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005435# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5436# for constant arguments. Useless!
5437echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
Alexandre Julliard598412e2001-01-17 20:22:22 +00005438echo "configure:5439: checking for working alloca.h" >&5
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005439if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5440 echo $ac_n "(cached) $ac_c" 1>&6
5441else
5442 cat > conftest.$ac_ext <<EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00005443#line 5444 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005444#include "confdefs.h"
5445#include <alloca.h>
5446int main() {
Eric Pouech18ad24a2000-01-16 22:16:33 +00005447void *p = alloca(2 * sizeof(int));
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005448; return 0; }
5449EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00005450if { (eval echo configure:5451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005451 rm -rf conftest*
5452 ac_cv_header_alloca_h=yes
5453else
5454 echo "configure: failed program was:" >&5
5455 cat conftest.$ac_ext >&5
5456 rm -rf conftest*
5457 ac_cv_header_alloca_h=no
5458fi
5459rm -f conftest*
5460fi
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005461
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005462echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5463if test $ac_cv_header_alloca_h = yes; then
5464 cat >> confdefs.h <<\EOF
5465#define HAVE_ALLOCA_H 1
5466EOF
5467
5468fi
5469
5470echo $ac_n "checking for alloca""... $ac_c" 1>&6
Alexandre Julliard598412e2001-01-17 20:22:22 +00005471echo "configure:5472: checking for alloca" >&5
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005472if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5473 echo $ac_n "(cached) $ac_c" 1>&6
5474else
5475 cat > conftest.$ac_ext <<EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00005476#line 5477 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005477#include "confdefs.h"
5478
5479#ifdef __GNUC__
5480# define alloca __builtin_alloca
5481#else
Eric Pouech18ad24a2000-01-16 22:16:33 +00005482# ifdef _MSC_VER
5483# include <malloc.h>
5484# define alloca _alloca
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005485# else
Eric Pouech18ad24a2000-01-16 22:16:33 +00005486# if HAVE_ALLOCA_H
5487# include <alloca.h>
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005488# else
Eric Pouech18ad24a2000-01-16 22:16:33 +00005489# ifdef _AIX
5490 #pragma alloca
5491# else
5492# ifndef alloca /* predefined by HP cc +Olibcalls */
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005493char *alloca ();
Eric Pouech18ad24a2000-01-16 22:16:33 +00005494# endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005495# endif
5496# endif
5497# endif
5498#endif
5499
5500int main() {
5501char *p = (char *) alloca(1);
5502; return 0; }
5503EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00005504if { (eval echo configure:5505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005505 rm -rf conftest*
5506 ac_cv_func_alloca_works=yes
5507else
5508 echo "configure: failed program was:" >&5
5509 cat conftest.$ac_ext >&5
5510 rm -rf conftest*
5511 ac_cv_func_alloca_works=no
5512fi
5513rm -f conftest*
5514fi
5515
5516echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5517if test $ac_cv_func_alloca_works = yes; then
5518 cat >> confdefs.h <<\EOF
5519#define HAVE_ALLOCA 1
5520EOF
5521
5522fi
5523
5524if test $ac_cv_func_alloca_works = no; then
5525 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5526 # that cause trouble. Some versions do not even contain alloca or
5527 # contain a buggy version. If you still want to use their alloca,
5528 # use ar to extract alloca.o from them instead of compiling alloca.c.
Eric Pouech18ad24a2000-01-16 22:16:33 +00005529 ALLOCA=alloca.${ac_objext}
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005530 cat >> confdefs.h <<\EOF
5531#define C_ALLOCA 1
5532EOF
5533
5534
5535echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
Alexandre Julliard598412e2001-01-17 20:22:22 +00005536echo "configure:5537: checking whether alloca needs Cray hooks" >&5
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005537if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5538 echo $ac_n "(cached) $ac_c" 1>&6
5539else
5540 cat > conftest.$ac_ext <<EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00005541#line 5542 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005542#include "confdefs.h"
5543#if defined(CRAY) && ! defined(CRAY2)
5544webecray
5545#else
5546wenotbecray
5547#endif
5548
5549EOF
5550if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5551 egrep "webecray" >/dev/null 2>&1; then
5552 rm -rf conftest*
5553 ac_cv_os_cray=yes
5554else
5555 rm -rf conftest*
5556 ac_cv_os_cray=no
5557fi
5558rm -f conftest*
5559
5560fi
5561
5562echo "$ac_t""$ac_cv_os_cray" 1>&6
5563if test $ac_cv_os_cray = yes; then
5564for ac_func in _getb67 GETB67 getb67; do
5565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Alexandre Julliard598412e2001-01-17 20:22:22 +00005566echo "configure:5567: checking for $ac_func" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005567if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5568 echo $ac_n "(cached) $ac_c" 1>&6
5569else
5570 cat > conftest.$ac_ext <<EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00005571#line 5572 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005572#include "confdefs.h"
5573/* System header to define __stub macros and hopefully few prototypes,
5574 which can conflict with char $ac_func(); below. */
5575#include <assert.h>
5576/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005577/* We use char because int might match the return type of a gcc2
5578 builtin and then its argument prototype would still apply. */
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00005579char $ac_func();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005580
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005581int main() {
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005582
5583/* The GNU C library defines this for functions which it implements
5584 to always fail with ENOSYS. Some functions are actually named
5585 something starting with __ and the normal name is an alias. */
5586#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5587choke me
5588#else
5589$ac_func();
5590#endif
5591
5592; return 0; }
5593EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00005594if { (eval echo configure:5595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005595 rm -rf conftest*
5596 eval "ac_cv_func_$ac_func=yes"
5597else
5598 echo "configure: failed program was:" >&5
5599 cat conftest.$ac_ext >&5
5600 rm -rf conftest*
5601 eval "ac_cv_func_$ac_func=no"
5602fi
5603rm -f conftest*
5604fi
5605
5606if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5607 echo "$ac_t""yes" 1>&6
5608 cat >> confdefs.h <<EOF
5609#define CRAY_STACKSEG_END $ac_func
5610EOF
5611
5612 break
5613else
5614 echo "$ac_t""no" 1>&6
5615fi
5616
5617done
5618fi
5619
5620echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
Alexandre Julliard598412e2001-01-17 20:22:22 +00005621echo "configure:5622: checking stack direction for C alloca" >&5
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005622if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5623 echo $ac_n "(cached) $ac_c" 1>&6
5624else
5625 if test "$cross_compiling" = yes; then
5626 ac_cv_c_stack_direction=0
5627else
5628 cat > conftest.$ac_ext <<EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00005629#line 5630 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005630#include "confdefs.h"
5631find_stack_direction ()
5632{
5633 static char *addr = 0;
5634 auto char dummy;
5635 if (addr == 0)
5636 {
5637 addr = &dummy;
5638 return find_stack_direction ();
5639 }
5640 else
5641 return (&dummy > addr) ? 1 : -1;
5642}
5643main ()
5644{
5645 exit (find_stack_direction() < 0);
5646}
5647EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00005648if { (eval echo configure:5649: \"$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 +00005649then
5650 ac_cv_c_stack_direction=1
5651else
5652 echo "configure: failed program was:" >&5
5653 cat conftest.$ac_ext >&5
5654 rm -fr conftest*
5655 ac_cv_c_stack_direction=-1
5656fi
5657rm -fr conftest*
5658fi
5659
5660fi
5661
5662echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5663cat >> confdefs.h <<EOF
5664#define STACK_DIRECTION $ac_cv_c_stack_direction
5665EOF
5666
5667fi
5668
5669for ac_func in \
Eric Pouechf61d7e02000-04-29 16:44:19 +00005670 __libc_fork \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005671 _lwp_create \
5672 clone \
Andreas Mohra7ca2ba2001-01-12 23:07:11 +00005673 ecvt \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +00005674 finite \
5675 fpclass \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005676 getnetbyaddr \
5677 getnetbyname \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005678 getpagesize \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005679 getprotobyname \
5680 getprotobynumber \
Dimitrie O. Paun1ec253d2000-12-01 20:47:11 +00005681 getrlimit \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005682 getservbyport \
5683 getsockopt \
5684 inet_network \
Alexandre Julliard27bb3112000-11-29 17:48:06 +00005685 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005686 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +00005687 mmap \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005688 rfork \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005689 select \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005690 sendmsg \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005691 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005692 sigaltstack \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005693 statfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +00005694 strcasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005695 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +00005696 strncasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005697 tcgetattr \
5698 timegm \
5699 usleep \
5700 vfscanf \
5701 wait4 \
5702 waitpid \
5703
5704do
5705echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Alexandre Julliard598412e2001-01-17 20:22:22 +00005706echo "configure:5707: checking for $ac_func" >&5
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005707if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5708 echo $ac_n "(cached) $ac_c" 1>&6
5709else
5710 cat > conftest.$ac_ext <<EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00005711#line 5712 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005712#include "confdefs.h"
5713/* System header to define __stub macros and hopefully few prototypes,
5714 which can conflict with char $ac_func(); below. */
5715#include <assert.h>
5716/* Override any gcc2 internal prototype to avoid an error. */
5717/* We use char because int might match the return type of a gcc2
5718 builtin and then its argument prototype would still apply. */
5719char $ac_func();
5720
5721int main() {
5722
5723/* The GNU C library defines this for functions which it implements
5724 to always fail with ENOSYS. Some functions are actually named
5725 something starting with __ and the normal name is an alias. */
5726#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5727choke me
5728#else
5729$ac_func();
5730#endif
5731
5732; return 0; }
5733EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00005734if { (eval echo configure:5735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005735 rm -rf conftest*
5736 eval "ac_cv_func_$ac_func=yes"
5737else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005738 echo "configure: failed program was:" >&5
5739 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005740 rm -rf conftest*
5741 eval "ac_cv_func_$ac_func=no"
5742fi
5743rm -f conftest*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005744fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005745
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005746if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5747 echo "$ac_t""yes" 1>&6
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00005748 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005749 cat >> confdefs.h <<EOF
5750#define $ac_tr_func 1
5751EOF
5752
5753else
5754 echo "$ac_t""no" 1>&6
5755fi
5756done
5757
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005758
5759
5760for ac_hdr in \
Patrik Stridvall96336321999-10-24 22:13:47 +00005761 arpa/inet.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005762 arpa/nameser.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005763 elf.h \
5764 float.h \
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005765 ieeefp.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005766 libio.h \
Hidenori Takeshima01f78aa2000-07-09 12:19:09 +00005767 libutil.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005768 link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005769 linux/cdrom.h \
Marcus Meissnerc9b3b2e2000-12-12 00:38:58 +00005770 linux/input.h \
Marcus Meissner028e9a11999-08-04 15:07:56 +00005771 linux/joystick.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005772 linux/ucdrom.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005773 net/if.h \
Hidenori Takeshima5d1a6382000-11-26 04:00:53 +00005774 netdb.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005775 netinet/in.h \
Patrik Stridvall7a4e5992000-12-01 23:53:46 +00005776 netinet/in_systm.h \
5777 netinet/ip.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005778 netinet/tcp.h \
Marcus Meissner2d7be871999-12-05 23:06:40 +00005779 pty.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005780 resolv.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005781 sched.h \
5782 socket.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005783 strings.h \
5784 sys/cdio.h \
Howard Abrams13277481999-07-10 13:16:29 +00005785 sys/errno.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005786 sys/file.h \
5787 sys/filio.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005788 sys/ipc.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005789 sys/lwp.h \
Howard Abrams13277481999-07-10 13:16:29 +00005790 sys/mman.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005791 sys/modem.h \
5792 sys/mount.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005793 sys/msg.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005794 sys/param.h \
Dimitrie O. Paun2af03e42000-11-29 20:04:09 +00005795 sys/ptrace.h \
Ulrich Weigand8a1bdb32000-01-30 22:22:22 +00005796 sys/reg.h \
Howard Abrams13277481999-07-10 13:16:29 +00005797 sys/signal.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005798 sys/shm.h \
5799 sys/socket.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005800 sys/sockio.h \
5801 sys/statfs.h \
5802 sys/strtio.h \
5803 sys/syscall.h \
Dimitrie O. Paun2af03e42000-11-29 20:04:09 +00005804 sys/user.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005805 sys/wait.h \
5806 sys/v86.h \
5807 sys/v86intr.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005808 sys/vfs.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005809 sys/vm86.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005810 syscall.h \
Patrik Stridvall7a4e5992000-12-01 23:53:46 +00005811 ucontext.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005812
Alexandre Julliard02e90081998-01-04 17:49:09 +00005813do
5814ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5815echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Alexandre Julliard598412e2001-01-17 20:22:22 +00005816echo "configure:5817: checking for $ac_hdr" >&5
Alexandre Julliard02e90081998-01-04 17:49:09 +00005817if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5818 echo $ac_n "(cached) $ac_c" 1>&6
5819else
5820 cat > conftest.$ac_ext <<EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00005821#line 5822 "configure"
Alexandre Julliard02e90081998-01-04 17:49:09 +00005822#include "confdefs.h"
5823#include <$ac_hdr>
5824EOF
5825ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliard598412e2001-01-17 20:22:22 +00005826{ (eval echo configure:5827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00005827ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliard02e90081998-01-04 17:49:09 +00005828if test -z "$ac_err"; then
5829 rm -rf conftest*
5830 eval "ac_cv_header_$ac_safe=yes"
5831else
5832 echo "$ac_err" >&5
5833 echo "configure: failed program was:" >&5
5834 cat conftest.$ac_ext >&5
5835 rm -rf conftest*
5836 eval "ac_cv_header_$ac_safe=no"
5837fi
5838rm -f conftest*
5839fi
5840if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5841 echo "$ac_t""yes" 1>&6
5842 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5843 cat >> confdefs.h <<EOF
5844#define $ac_tr_hdr 1
5845EOF
5846
5847else
5848 echo "$ac_t""no" 1>&6
5849fi
5850done
5851
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005852echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
Alexandre Julliard598412e2001-01-17 20:22:22 +00005853echo "configure:5854: checking whether stat file-mode macros are broken" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005854if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5855 echo $ac_n "(cached) $ac_c" 1>&6
5856else
5857 cat > conftest.$ac_ext <<EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00005858#line 5859 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005859#include "confdefs.h"
5860#include <sys/types.h>
5861#include <sys/stat.h>
5862
5863#if defined(S_ISBLK) && defined(S_IFDIR)
5864# if S_ISBLK (S_IFDIR)
5865You lose.
5866# endif
5867#endif
5868
5869#if defined(S_ISBLK) && defined(S_IFCHR)
5870# if S_ISBLK (S_IFCHR)
5871You lose.
5872# endif
5873#endif
5874
5875#if defined(S_ISLNK) && defined(S_IFREG)
5876# if S_ISLNK (S_IFREG)
5877You lose.
5878# endif
5879#endif
5880
5881#if defined(S_ISSOCK) && defined(S_IFREG)
5882# if S_ISSOCK (S_IFREG)
5883You lose.
5884# endif
5885#endif
5886
5887EOF
5888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5889 egrep "You lose" >/dev/null 2>&1; then
5890 rm -rf conftest*
5891 ac_cv_header_stat_broken=yes
5892else
5893 rm -rf conftest*
5894 ac_cv_header_stat_broken=no
5895fi
5896rm -f conftest*
5897
5898fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00005899
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005900echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5901if test $ac_cv_header_stat_broken = yes; then
5902 cat >> confdefs.h <<\EOF
5903#define STAT_MACROS_BROKEN 1
5904EOF
5905
5906fi
5907
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005908
5909
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005910echo $ac_n "checking for working const""... $ac_c" 1>&6
Alexandre Julliard598412e2001-01-17 20:22:22 +00005911echo "configure:5912: checking for working const" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005912if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5913 echo $ac_n "(cached) $ac_c" 1>&6
5914else
5915 cat > conftest.$ac_ext <<EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00005916#line 5917 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005917#include "confdefs.h"
5918
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005919int main() {
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005920
5921/* Ultrix mips cc rejects this. */
Eric Pouech18ad24a2000-01-16 22:16:33 +00005922typedef int charset[2]; const charset x = {0,0};
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005923/* SunOS 4.1.1 cc rejects this. */
5924char const *const *ccp;
5925char **p;
5926/* NEC SVR4.0.2 mips cc rejects this. */
5927struct point {int x, y;};
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00005928static struct point const zero = {0,0};
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005929/* AIX XL C 1.02.0.0 rejects this.
5930 It does not let you subtract one const X* pointer from another in an arm
5931 of an if-expression whose if-part is not a constant expression */
5932const char *g = "string";
5933ccp = &g + (g ? g-g : 0);
5934/* HPUX 7.0 cc rejects these. */
5935++ccp;
5936p = (char**) ccp;
5937ccp = (char const *const *) p;
5938{ /* SCO 3.2v4 cc rejects this. */
5939 char *t;
5940 char const *s = 0 ? (char *) 0 : (char const *) 0;
5941
5942 *t++ = 0;
5943}
5944{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5945 int x[] = {25, 17};
5946 const int *foo = &x[0];
5947 ++foo;
5948}
5949{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5950 typedef const int *iptr;
5951 iptr p = 0;
5952 ++p;
5953}
5954{ /* AIX XL C 1.02.0.0 rejects this saying
5955 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5956 struct s { int j; const int *ap[3]; };
5957 struct s *b; b->j = 5;
5958}
5959{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5960 const int foo = 10;
5961}
5962
5963; return 0; }
5964EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00005965if { (eval echo configure:5966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005966 rm -rf conftest*
5967 ac_cv_c_const=yes
5968else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005969 echo "configure: failed program was:" >&5
5970 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005971 rm -rf conftest*
5972 ac_cv_c_const=no
5973fi
5974rm -f conftest*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005975fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00005976
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005977echo "$ac_t""$ac_cv_c_const" 1>&6
5978if test $ac_cv_c_const = no; then
5979 cat >> confdefs.h <<\EOF
5980#define const
5981EOF
5982
5983fi
5984
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00005985echo $ac_n "checking for inline""... $ac_c" 1>&6
Alexandre Julliard598412e2001-01-17 20:22:22 +00005986echo "configure:5987: checking for inline" >&5
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00005987if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5988 echo $ac_n "(cached) $ac_c" 1>&6
5989else
5990 ac_cv_c_inline=no
5991for ac_kw in inline __inline__ __inline; do
5992 cat > conftest.$ac_ext <<EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00005993#line 5994 "configure"
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00005994#include "confdefs.h"
5995
5996int main() {
Eric Pouech18ad24a2000-01-16 22:16:33 +00005997} int $ac_kw foo() {
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00005998; return 0; }
5999EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00006000if { (eval echo configure:6001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00006001 rm -rf conftest*
6002 ac_cv_c_inline=$ac_kw; break
6003else
6004 echo "configure: failed program was:" >&5
6005 cat conftest.$ac_ext >&5
6006fi
6007rm -f conftest*
6008done
6009
6010fi
6011
6012echo "$ac_t""$ac_cv_c_inline" 1>&6
6013case "$ac_cv_c_inline" in
6014 inline | yes) ;;
6015 no) cat >> confdefs.h <<\EOF
6016#define inline
6017EOF
6018 ;;
6019 *) cat >> confdefs.h <<EOF
6020#define inline $ac_cv_c_inline
6021EOF
6022 ;;
6023esac
6024
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006025echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Alexandre Julliard598412e2001-01-17 20:22:22 +00006026echo "configure:6027: checking for ANSI C header files" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006027if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6028 echo $ac_n "(cached) $ac_c" 1>&6
6029else
6030 cat > conftest.$ac_ext <<EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00006031#line 6032 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006032#include "confdefs.h"
6033#include <stdlib.h>
6034#include <stdarg.h>
6035#include <string.h>
6036#include <float.h>
6037EOF
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00006038ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliard598412e2001-01-17 20:22:22 +00006039{ (eval echo configure:6040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00006040ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006041if test -z "$ac_err"; then
6042 rm -rf conftest*
6043 ac_cv_header_stdc=yes
6044else
6045 echo "$ac_err" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006046 echo "configure: failed program was:" >&5
6047 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006048 rm -rf conftest*
6049 ac_cv_header_stdc=no
6050fi
6051rm -f conftest*
6052
6053if test $ac_cv_header_stdc = yes; then
6054 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6055cat > conftest.$ac_ext <<EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00006056#line 6057 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006057#include "confdefs.h"
6058#include <string.h>
6059EOF
6060if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6061 egrep "memchr" >/dev/null 2>&1; then
6062 :
6063else
6064 rm -rf conftest*
6065 ac_cv_header_stdc=no
6066fi
6067rm -f conftest*
6068
6069fi
6070
6071if test $ac_cv_header_stdc = yes; then
6072 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6073cat > conftest.$ac_ext <<EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00006074#line 6075 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006075#include "confdefs.h"
6076#include <stdlib.h>
6077EOF
6078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6079 egrep "free" >/dev/null 2>&1; then
6080 :
6081else
6082 rm -rf conftest*
6083 ac_cv_header_stdc=no
6084fi
6085rm -f conftest*
6086
6087fi
6088
6089if test $ac_cv_header_stdc = yes; then
6090 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6091if test "$cross_compiling" = yes; then
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006092 :
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006093else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006094 cat > conftest.$ac_ext <<EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00006095#line 6096 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006096#include "confdefs.h"
6097#include <ctype.h>
6098#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6099#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6100#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6101int main () { int i; for (i = 0; i < 256; i++)
6102if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6103exit (0); }
6104
6105EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00006106if { (eval echo configure:6107: \"$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 +00006107then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006108 :
6109else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006110 echo "configure: failed program was:" >&5
6111 cat conftest.$ac_ext >&5
6112 rm -fr conftest*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006113 ac_cv_header_stdc=no
6114fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006115rm -fr conftest*
6116fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006117
6118fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006119fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006120
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006121echo "$ac_t""$ac_cv_header_stdc" 1>&6
6122if test $ac_cv_header_stdc = yes; then
6123 cat >> confdefs.h <<\EOF
6124#define STDC_HEADERS 1
6125EOF
6126
6127fi
6128
6129echo $ac_n "checking for size_t""... $ac_c" 1>&6
Alexandre Julliard598412e2001-01-17 20:22:22 +00006130echo "configure:6131: checking for size_t" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006131if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6132 echo $ac_n "(cached) $ac_c" 1>&6
6133else
6134 cat > conftest.$ac_ext <<EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00006135#line 6136 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006136#include "confdefs.h"
6137#include <sys/types.h>
6138#if STDC_HEADERS
6139#include <stdlib.h>
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006140#include <stddef.h>
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006141#endif
6142EOF
6143if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Eric Pouech18ad24a2000-01-16 22:16:33 +00006144 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 +00006145 rm -rf conftest*
6146 ac_cv_type_size_t=yes
6147else
6148 rm -rf conftest*
6149 ac_cv_type_size_t=no
6150fi
6151rm -f conftest*
6152
6153fi
6154echo "$ac_t""$ac_cv_type_size_t" 1>&6
6155if test $ac_cv_type_size_t = no; then
6156 cat >> confdefs.h <<\EOF
6157#define size_t unsigned
6158EOF
6159
6160fi
6161
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006162echo $ac_n "checking size of long long""... $ac_c" 1>&6
Alexandre Julliard598412e2001-01-17 20:22:22 +00006163echo "configure:6164: checking size of long long" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006164if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
6165 echo $ac_n "(cached) $ac_c" 1>&6
6166else
6167 if test "$cross_compiling" = yes; then
6168 ac_cv_sizeof_long_long=0
6169else
6170 cat > conftest.$ac_ext <<EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00006171#line 6172 "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006172#include "confdefs.h"
6173#include <stdio.h>
6174main()
6175{
6176 FILE *f=fopen("conftestval", "w");
6177 if (!f) exit(1);
6178 fprintf(f, "%d\n", sizeof(long long));
6179 exit(0);
6180}
6181EOF
Alexandre Julliard598412e2001-01-17 20:22:22 +00006182if { (eval echo configure:6183: \"$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 +00006183then
6184 ac_cv_sizeof_long_long=`cat conftestval`
6185else
6186 echo "configure: failed program was:" >&5
6187 cat conftest.$ac_ext >&5
6188 rm -fr conftest*
6189 ac_cv_sizeof_long_long=0
6190fi
6191rm -fr conftest*
6192fi
6193
6194fi
6195echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
6196cat >> confdefs.h <<EOF
6197#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6198EOF
6199
6200
6201
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006202echo $ac_n "checking "whether linux/input.h is for real"""... $ac_c" 1>&6
6203echo "configure:6204: checking "whether linux/input.h is for real"" >&5
6204if eval "test \"`echo '$''{'wine_cv_linux_input_h'+set}'`\" = set"; then
6205 echo $ac_n "(cached) $ac_c" 1>&6
6206else
6207 cat > conftest.$ac_ext <<EOF
6208#line 6209 "configure"
6209#include "confdefs.h"
6210
6211 #include <linux/input.h>
6212
6213int main() {
6214
6215 int foo = EVIOCGBIT(EV_ABS,42);
6216 int bar = BTN_PINKIE;
6217 int fortytwo = 42;
6218
6219; return 0; }
6220EOF
6221if { (eval echo configure:6222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6222 rm -rf conftest*
6223 wine_cv_linux_input_h=yes
6224else
6225 echo "configure: failed program was:" >&5
6226 cat conftest.$ac_ext >&5
6227 rm -rf conftest*
6228 wine_cv_linux_input_h=no
6229fi
6230rm -f conftest*
6231
6232fi
6233
6234echo "$ac_t""$wine_cv_linux_input_h" 1>&6
6235 if test "$wine_cv_linux_input_h" = "yes"
6236 then
6237 cat >> confdefs.h <<\EOF
6238#define HAVE_CORRECT_LINUXINPUT_H 1
6239EOF
6240
6241 fi
6242
Rein Klazesff7a61f2000-09-24 19:41:57 +00006243
6244echo $ac_n "checking "whether we can use re-entrant gethostbyname_r Linux style"""... $ac_c" 1>&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006245echo "configure:6246: checking "whether we can use re-entrant gethostbyname_r Linux style"" >&5
Rein Klazesff7a61f2000-09-24 19:41:57 +00006246if eval "test \"`echo '$''{'wine_cv_linux_gethostbyname_r_6'+set}'`\" = set"; then
6247 echo $ac_n "(cached) $ac_c" 1>&6
6248else
6249 cat > conftest.$ac_ext <<EOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006250#line 6251 "configure"
Rein Klazesff7a61f2000-09-24 19:41:57 +00006251#include "confdefs.h"
6252
6253#include <netdb.h>
6254
6255int main() {
6256
6257 char *name=NULL;
6258 struct hostent he;
6259 struct hostent *result;
6260 char *buf=NULL;
6261 int bufsize=0;
6262 int res,errnr;
6263 char *addr=NULL;
6264 int addrlen=0;
6265 int addrtype=0;
6266 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
6267 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
6268
6269; return 0; }
6270EOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006271if { (eval echo configure:6272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Rein Klazesff7a61f2000-09-24 19:41:57 +00006272 rm -rf conftest*
6273 wine_cv_linux_gethostbyname_r_6=yes
6274else
6275 echo "configure: failed program was:" >&5
6276 cat conftest.$ac_ext >&5
6277 rm -rf conftest*
6278 wine_cv_linux_gethostbyname_r_6=no
6279
6280fi
6281rm -f conftest*
6282
6283fi
6284
6285echo "$ac_t""$wine_cv_linux_gethostbyname_r_6" 1>&6
6286 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
6287 then
6288 cat >> confdefs.h <<\EOF
6289#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
6290EOF
6291
6292 fi
6293
Marcus Meissner028e9a11999-08-04 15:07:56 +00006294if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006295then
Marcus Meissner028e9a11999-08-04 15:07:56 +00006296 echo $ac_n "checking "whether linux/joystick.h uses the Linux 2.2+ API"""... $ac_c" 1>&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006297echo "configure:6298: checking "whether linux/joystick.h uses the Linux 2.2+ API"" >&5
Marcus Meissner028e9a11999-08-04 15:07:56 +00006298if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006299 echo $ac_n "(cached) $ac_c" 1>&6
6300else
6301 cat > conftest.$ac_ext <<EOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006302#line 6303 "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006303#include "confdefs.h"
6304
Marcus Meissner028e9a11999-08-04 15:07:56 +00006305 #include <sys/ioctl.h>
6306 #include <linux/joystick.h>
6307
6308 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +00006309 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
6310 #error "no 2.2 header"
6311 #endif
Marcus Meissner028e9a11999-08-04 15:07:56 +00006312
6313int main() {
6314/*empty*/
6315; return 0; }
6316EOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006317if { (eval echo configure:6318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Marcus Meissner028e9a11999-08-04 15:07:56 +00006318 rm -rf conftest*
6319 wine_cv_linux_joystick_22_api=yes
6320else
6321 echo "configure: failed program was:" >&5
6322 cat conftest.$ac_ext >&5
6323 rm -rf conftest*
6324 wine_cv_linux_joystick_22_api=no
6325fi
6326rm -f conftest*
6327
6328fi
6329
6330echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
Rein Klazes87d224a2000-04-24 17:33:49 +00006331 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +00006332 then
6333 cat >> confdefs.h <<\EOF
6334#define HAVE_LINUX_22_JOYSTICK_API 1
6335EOF
6336
6337 fi
6338fi
6339
6340
6341if test "$ac_cv_header_sys_vfs_h" = "yes"
6342then
6343 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006344echo "configure:6345: checking "whether sys/vfs.h defines statfs"" >&5
Marcus Meissner028e9a11999-08-04 15:07:56 +00006345if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
6346 echo $ac_n "(cached) $ac_c" 1>&6
6347else
6348 cat > conftest.$ac_ext <<EOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006349#line 6350 "configure"
Marcus Meissner028e9a11999-08-04 15:07:56 +00006350#include "confdefs.h"
6351
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006352 #include <sys/types.h>
6353 #ifdef HAVE_SYS_PARAM_H
6354 # include <sys/param.h>
6355 #endif
6356 #include <sys/vfs.h>
6357
6358int main() {
6359
6360 struct statfs stfs;
6361
6362 memset(&stfs,0,sizeof(stfs));
6363
6364; return 0; }
6365EOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006366if { (eval echo configure:6367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006367 rm -rf conftest*
6368 wine_cv_sys_vfs_has_statfs=yes
6369else
6370 echo "configure: failed program was:" >&5
6371 cat conftest.$ac_ext >&5
6372 rm -rf conftest*
6373 wine_cv_sys_vfs_has_statfs=no
6374
6375fi
6376rm -f conftest*
6377
6378fi
6379
6380echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
6381 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
6382 then
6383 cat >> confdefs.h <<\EOF
6384#define STATFS_DEFINED_BY_SYS_VFS 1
6385EOF
6386
6387 fi
6388fi
6389
6390if test "$ac_cv_header_sys_statfs_h" = "yes"
6391then
6392 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006393echo "configure:6394: checking "whether sys/statfs.h defines statfs"" >&5
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006394if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
6395 echo $ac_n "(cached) $ac_c" 1>&6
6396else
6397 cat > conftest.$ac_ext <<EOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006398#line 6399 "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006399#include "confdefs.h"
6400
6401 #include <sys/types.h>
6402 #ifdef HAVE_SYS_PARAM_H
6403 # include <sys/param.h>
6404 #endif
6405 #include <sys/statfs.h>
6406
6407int main() {
6408
6409 struct statfs stfs;
6410
6411; return 0; }
6412EOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006413if { (eval echo configure:6414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006414 rm -rf conftest*
6415 wine_cv_sys_statfs_has_statfs=yes
6416else
6417 echo "configure: failed program was:" >&5
6418 cat conftest.$ac_ext >&5
6419 rm -rf conftest*
6420 wine_cv_sys_statfs_has_statfs=no
6421
6422fi
6423rm -f conftest*
6424
6425fi
6426
6427echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
6428 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
6429 then
6430 cat >> confdefs.h <<\EOF
6431#define STATFS_DEFINED_BY_SYS_STATFS 1
6432EOF
6433
6434 fi
6435fi
6436
6437if test "$ac_cv_header_sys_mount_h" = "yes"
6438then
6439 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006440echo "configure:6441: checking "whether sys/mount.h defines statfs"" >&5
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006441if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
6442 echo $ac_n "(cached) $ac_c" 1>&6
6443else
6444 cat > conftest.$ac_ext <<EOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006445#line 6446 "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006446#include "confdefs.h"
6447
6448 #include <sys/types.h>
6449 #ifdef HAVE_SYS_PARAM_H
6450 # include <sys/param.h>
6451 #endif
6452 #include <sys/mount.h>
6453
6454int main() {
6455
6456 struct statfs stfs;
6457
6458; return 0; }
6459EOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006460if { (eval echo configure:6461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006461 rm -rf conftest*
6462 wine_cv_sys_mount_has_statfs=yes
6463else
6464 echo "configure: failed program was:" >&5
6465 cat conftest.$ac_ext >&5
6466 rm -rf conftest*
6467 wine_cv_sys_mount_has_statfs=no
6468
6469fi
6470rm -f conftest*
6471
6472fi
6473
6474echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
6475 if test "$wine_cv_sys_mount_has_statfs" = "yes"
6476 then
6477 cat >> confdefs.h <<\EOF
6478#define STATFS_DEFINED_BY_SYS_MOUNT 1
6479EOF
6480
6481 fi
6482fi
6483
6484
6485echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006486echo "configure:6487: checking "for statfs.f_bfree"" >&5
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006487if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
6488 echo $ac_n "(cached) $ac_c" 1>&6
6489else
6490 if test "x$statfs_bfree" = "xno"
6491 then
6492 wine_cv_statfs_bfree=no
6493 else
6494 cat > conftest.$ac_ext <<EOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006495#line 6496 "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006496#include "confdefs.h"
6497
6498 #include <sys/types.h>
6499 #ifdef HAVE_SYS_PARAM_H
6500 # include <sys/param.h>
6501 #endif
6502 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6503 # include <sys/mount.h>
6504 #else
6505 # ifdef STATFS_DEFINED_BY_SYS_VFS
6506 # include <sys/vfs.h>
6507 # else
6508 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6509 # include <sys/statfs.h>
6510 # endif
6511 # endif
6512 #endif
6513
6514int main() {
6515
6516 struct statfs stfs;
6517
6518 stfs.f_bfree++;
6519
6520; return 0; }
6521EOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006522if { (eval echo configure:6523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006523 rm -rf conftest*
6524 wine_cv_statfs_bfree=yes
6525else
6526 echo "configure: failed program was:" >&5
6527 cat conftest.$ac_ext >&5
6528 rm -rf conftest*
6529 wine_cv_statfs_bfree=no
6530
6531fi
6532rm -f conftest*
6533 fi
6534fi
6535
6536echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
6537if test "$wine_cv_statfs_bfree" = "yes"
6538then
6539 cat >> confdefs.h <<\EOF
6540#define STATFS_HAS_BFREE 1
6541EOF
6542
6543fi
6544
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006545echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006546echo "configure:6547: checking "for statfs.f_bavail"" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006547if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
6548 echo $ac_n "(cached) $ac_c" 1>&6
6549else
6550 if test "x$statfs_bavail" = "xno"
6551 then
6552 wine_cv_statfs_bavail=no
6553 else
6554 cat > conftest.$ac_ext <<EOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006555#line 6556 "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006556#include "confdefs.h"
6557
Alexandre Julliard46ea8b31998-05-03 19:01:20 +00006558 #include <sys/types.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006559 #ifdef HAVE_SYS_PARAM_H
6560 # include <sys/param.h>
6561 #endif
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006562 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006563 # include <sys/mount.h>
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006564 #else
6565 # ifdef STATFS_DEFINED_BY_SYS_VFS
6566 # include <sys/vfs.h>
6567 # else
6568 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6569 # include <sys/statfs.h>
6570 # endif
6571 # endif
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006572 #endif
6573
6574int main() {
6575
6576 struct statfs stfs;
6577
6578 stfs.f_bavail++;
6579
6580; return 0; }
6581EOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006582if { (eval echo configure:6583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006583 rm -rf conftest*
6584 wine_cv_statfs_bavail=yes
6585else
6586 echo "configure: failed program was:" >&5
6587 cat conftest.$ac_ext >&5
6588 rm -rf conftest*
6589 wine_cv_statfs_bavail=no
6590
6591fi
6592rm -f conftest*
6593 fi
6594fi
6595
6596echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
6597if test "$wine_cv_statfs_bavail" = "yes"
6598then
6599 cat >> confdefs.h <<\EOF
6600#define STATFS_HAS_BAVAIL 1
6601EOF
6602
6603fi
6604
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006605
Alexandre Julliard829fe321998-07-26 14:27:39 +00006606echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006607echo "configure:6608: checking "for msg_accrights in struct msghdr"" >&5
Alexandre Julliard829fe321998-07-26 14:27:39 +00006608if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
6609 echo $ac_n "(cached) $ac_c" 1>&6
6610else
6611 cat > conftest.$ac_ext <<EOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006612#line 6613 "configure"
Alexandre Julliard829fe321998-07-26 14:27:39 +00006613#include "confdefs.h"
6614#include <sys/types.h>
6615#include <sys/socket.h>
6616int main() {
6617struct msghdr hdr; hdr.msg_accrights=0
6618; return 0; }
6619EOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006620if { (eval echo configure:6621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliard829fe321998-07-26 14:27:39 +00006621 rm -rf conftest*
6622 ac_cv_c_msg_accrights="yes"
6623else
6624 echo "configure: failed program was:" >&5
6625 cat conftest.$ac_ext >&5
6626 rm -rf conftest*
6627 ac_cv_c_msg_accrights="no"
6628fi
6629rm -f conftest*
6630fi
6631
6632echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
6633if test "$ac_cv_c_msg_accrights" = "yes"
6634then
6635 cat >> confdefs.h <<\EOF
6636#define HAVE_MSGHDR_ACCRIGHTS 1
6637EOF
6638
6639fi
6640
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00006641
Juergen Lock2d33ab92000-02-13 16:03:29 +00006642echo $ac_n "checking "for sun_len in struct sockaddr_un"""... $ac_c" 1>&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006643echo "configure:6644: checking "for sun_len in struct sockaddr_un"" >&5
Juergen Lock2d33ab92000-02-13 16:03:29 +00006644if eval "test \"`echo '$''{'ac_cv_c_sun_len'+set}'`\" = set"; then
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00006645 echo $ac_n "(cached) $ac_c" 1>&6
6646else
6647 cat > conftest.$ac_ext <<EOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006648#line 6649 "configure"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00006649#include "confdefs.h"
Juergen Lock2d33ab92000-02-13 16:03:29 +00006650#include <sys/types.h>
6651#include <sys/socket.h>
6652#include <sys/un.h>
6653int main() {
6654static struct sockaddr_un addr; addr.sun_len = 1
6655; return 0; }
6656EOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006657if { (eval echo configure:6658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Juergen Lock2d33ab92000-02-13 16:03:29 +00006658 rm -rf conftest*
6659 ac_cv_c_sun_len="yes"
6660else
6661 echo "configure: failed program was:" >&5
6662 cat conftest.$ac_ext >&5
6663 rm -rf conftest*
6664 ac_cv_c_sun_len="no"
6665fi
6666rm -f conftest*
6667fi
6668
6669echo "$ac_t""$ac_cv_c_sun_len" 1>&6
6670if test "$ac_cv_c_sun_len" = "yes"
6671then
6672 cat >> confdefs.h <<\EOF
6673#define HAVE_SOCKADDR_SUN_LEN 1
6674EOF
6675
6676fi
6677
6678
6679echo $ac_n "checking "whether we need to define __i386__"""... $ac_c" 1>&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006680echo "configure:6681: checking "whether we need to define __i386__"" >&5
Juergen Lock2d33ab92000-02-13 16:03:29 +00006681if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6682 echo $ac_n "(cached) $ac_c" 1>&6
6683else
6684 cat > conftest.$ac_ext <<EOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006685#line 6686 "configure"
Juergen Lock2d33ab92000-02-13 16:03:29 +00006686#include "confdefs.h"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00006687#if (defined(i386) || defined(__i386)) && !defined(__i386__)
6688yes
6689#endif
6690EOF
6691if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6692 egrep "yes" >/dev/null 2>&1; then
6693 rm -rf conftest*
6694 ac_cv_cpp_def_i386="yes"
6695else
6696 rm -rf conftest*
6697 ac_cv_cpp_def_i386="no"
6698fi
6699rm -f conftest*
6700
6701fi
6702
6703echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
6704if test "$ac_cv_cpp_def_i386" = "yes"
6705then
6706 CFLAGS="$CFLAGS -D__i386__"
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006707 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00006708fi
6709
Marcus Meissnera7f5cb51999-04-16 08:47:41 +00006710GCC_NO_BUILTIN=""
6711if test "$GCC" = "yes"
6712then
6713 GCC_NO_BUILTIN="-fno-builtin"
6714fi
6715
6716
Alexandre Julliard829fe321998-07-26 14:27:39 +00006717
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +00006718
6719
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006720MAKE_RULES=Make.rules
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006721
6722
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +00006723MAKE_DLL_RULES=dlls/Makedll.rules
6724
6725
Alexandre Julliard626f4252000-11-10 23:35:20 +00006726MAKE_PROG_RULES=programs/Makeprog.rules
6727
6728
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006729trap '' 1 2 15
6730cat > confcache <<\EOF
6731# This file is a shell script that caches the results of configure
6732# tests run on this system so they can be shared between configure
6733# scripts and configure runs. It is not useful on other systems.
6734# If it contains results you don't want to keep, you may remove or edit it.
6735#
6736# By default, configure uses ./config.cache as the cache file,
6737# creating it if it does not exist already. You can give configure
6738# the --cache-file=FILE option to use a different cache file; that is
6739# what configure does when it calls configure scripts in
6740# subdirectories, so they share the cache.
6741# Giving --cache-file=/dev/null disables caching, for debugging configure.
6742# config.status only pays attention to the cache file if you give it the
6743# --recheck option to rerun configure.
6744#
6745EOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006746# The following way of writing the cache mishandles newlines in values,
6747# but we know of no workaround that is simple, portable, and efficient.
6748# So, don't put newlines in cache variables' values.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006749# Ultrix sh set writes to stderr and can't be redirected directly,
6750# and sets the high bit in the cache file unless we assign to the vars.
6751(set) 2>&1 |
Eric Pouech18ad24a2000-01-16 22:16:33 +00006752 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006753 *ac_space=\ *)
6754 # `set' does not quote correctly, so add quotes (double-quote substitution
6755 # turns \\\\ into \\, and sed turns \\ into \).
6756 sed -n \
6757 -e "s/'/'\\\\''/g" \
6758 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6759 ;;
6760 *)
6761 # `set' quotes correctly as required by POSIX, so do not add quotes.
6762 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6763 ;;
6764 esac >> confcache
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006765if cmp -s $cache_file confcache; then
6766 :
6767else
6768 if test -w $cache_file; then
6769 echo "updating cache $cache_file"
6770 cat confcache > $cache_file
6771 else
6772 echo "not updating unwritable cache $cache_file"
6773 fi
6774fi
6775rm -f confcache
6776
6777trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6778
6779test "x$prefix" = xNONE && prefix=$ac_default_prefix
6780# Let make expand exec_prefix.
6781test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6782
6783# Any assignment to VPATH causes Sun make to only execute
6784# the first set of double-colon rules, so remove it if not needed.
6785# If there is a colon in the path, we need to keep it.
6786if test "x$srcdir" = x.; then
6787 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6788fi
6789
6790trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6791
Alexandre Julliard18f92e71996-07-17 20:02:21 +00006792DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006793
6794# Without the "./", some shells look in PATH for config.status.
6795: ${CONFIG_STATUS=./config.status}
6796
6797echo creating $CONFIG_STATUS
6798rm -f $CONFIG_STATUS
6799cat > $CONFIG_STATUS <<EOF
6800#! /bin/sh
6801# Generated automatically by configure.
6802# Run this file to recreate the current configuration.
6803# This directory was configured as follows,
6804# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6805#
6806# $0 $ac_configure_args
6807#
6808# Compiler output produced by configure, useful for debugging
6809# configure, is in ./config.log if it exists.
6810
6811ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6812for ac_option
6813do
6814 case "\$ac_option" in
6815 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6816 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6817 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6818 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Eric Pouech18ad24a2000-01-16 22:16:33 +00006819 echo "$CONFIG_STATUS generated by autoconf version 2.13"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006820 exit 0 ;;
6821 -help | --help | --hel | --he | --h)
6822 echo "\$ac_cs_usage"; exit 0 ;;
6823 *) echo "\$ac_cs_usage"; exit 1 ;;
6824 esac
6825done
6826
6827ac_given_srcdir=$srcdir
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006828ac_given_INSTALL="$INSTALL"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006829
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006830trap 'rm -fr `echo "
6831Make.rules
Alexandre Julliard626f4252000-11-10 23:35:20 +00006832dlls/Makedll.rules
6833programs/Makeprog.rules
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006834Makefile
Joseph Pranevich791cd6a1998-12-02 19:58:08 +00006835console/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006836controls/Makefile
6837debugger/Makefile
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00006838dlls/Makefile
Juergen Schmiedf7b0de31999-01-03 12:48:29 +00006839dlls/advapi32/Makefile
Marcus Meissnerb3d1a221999-03-13 18:07:44 +00006840dlls/avifil32/Makefile
Alexandre Julliarda0d77311998-09-13 16:32:00 +00006841dlls/comctl32/Makefile
Klaas van Gendc9127491999-02-28 20:05:11 +00006842dlls/commdlg/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00006843dlls/crtdll/Makefile
6844dlls/dciman32/Makefile
Alexandre Julliardddce6522000-03-17 16:58:10 +00006845dlls/ddraw/Makefile
6846dlls/dinput/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00006847dlls/dplay/Makefile
Peter Hunnisett22b861c1999-09-28 16:35:32 +00006848dlls/dplayx/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00006849dlls/dsound/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00006850dlls/gdi/Makefile
Francois Gougetedf3e431999-11-07 21:22:17 +00006851dlls/icmp/Makefile
Patrik Stridvall8295c861998-10-11 17:09:05 +00006852dlls/imagehlp/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00006853dlls/imm32/Makefile
Dimitrie O. Paun36b5b6b2000-06-03 00:07:44 +00006854dlls/kernel/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00006855dlls/lzexpand/Makefile
Ulrich Weigandbb1984e1999-08-07 14:32:33 +00006856dlls/mpr/Makefile
Patrik Stridvall8295c861998-10-11 17:09:05 +00006857dlls/msacm/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00006858dlls/msnet32/Makefile
Jon Griffiths1db20bf2001-01-10 23:59:25 +00006859dlls/msvcrt/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00006860dlls/msvideo/Makefile
Marcus Meissner51505b11998-11-01 14:00:21 +00006861dlls/ntdll/Makefile
Alexandre Julliard8551f8c1999-12-11 23:56:46 +00006862dlls/odbc32/Makefile
Ulrich Weigand2a722f41999-09-19 18:36:53 +00006863dlls/ole32/Makefile
6864dlls/oleaut32/Makefile
6865dlls/olecli/Makefile
6866dlls/oledlg/Makefile
Sean Langley58c71d42000-02-07 16:26:56 +00006867dlls/olepro32/Makefile
Ulrich Weigand2a722f41999-09-19 18:36:53 +00006868dlls/olesvr/Makefile
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00006869dlls/opengl32/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006870dlls/psapi/Makefile
Marcus Meissner30ef8771998-12-11 13:26:26 +00006871dlls/rasapi32/Makefile
Hidenori Takeshimae75f9fb2000-05-03 18:12:19 +00006872dlls/richedit/Makefile
Huw D M Davies10b1b232000-07-15 19:53:50 +00006873dlls/rpcrt4/Makefile
Mike McCormackdc2461e2000-07-15 21:35:55 +00006874dlls/serialui/Makefile
Francois Jacquesdf5e5792000-07-08 18:27:03 +00006875dlls/setupapi/Makefile
John R. Sheetsbc80a3b2001-01-11 22:32:44 +00006876dlls/shdocvw/Makefile
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00006877dlls/shell32/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00006878dlls/shfolder/Makefile
6879dlls/shlwapi/Makefile
Andreas Mohr5aa96c11999-03-14 12:34:25 +00006880dlls/tapi32/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00006881dlls/ttydrv/Makefile
Alexandre Julliard819fa8c2000-04-11 20:07:00 +00006882dlls/urlmon/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00006883dlls/user/Makefile
Ulrich Weigandd43a46a1999-01-31 10:11:04 +00006884dlls/version/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00006885dlls/win32s/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006886dlls/winaspi/Makefile
Ove Kaavene5557b32000-12-26 00:22:45 +00006887dlls/winedos/Makefile
Dimitrie O. Paun84bde6a2000-05-30 20:27:23 +00006888dlls/wineps/Makefile
Alexandre Julliard819fa8c2000-04-11 20:07:00 +00006889dlls/wininet/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00006890dlls/winmm/Makefile
Eric Pouech2a3b0a12000-02-26 13:14:04 +00006891dlls/winmm/joystick/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00006892dlls/winmm/mcianim/Makefile
6893dlls/winmm/mciavi/Makefile
6894dlls/winmm/mcicda/Makefile
6895dlls/winmm/mciseq/Makefile
6896dlls/winmm/mciwave/Makefile
Eric Pouechabe72271999-10-31 02:23:49 +00006897dlls/winmm/midimap/Makefile
6898dlls/winmm/wavemap/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00006899dlls/winmm/wineoss/Makefile
Hidenori Takeshima9c672132000-12-14 21:56:18 +00006900dlls/winnls/Makefile
Alexandre Julliardde078692000-01-23 22:07:15 +00006901dlls/winsock/Makefile
Huw D M Daviese39b6761999-05-17 16:20:51 +00006902dlls/winspool/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00006903dlls/wow32/Makefile
6904dlls/wsock32/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00006905dlls/x11drv/Makefile
Alexandre Julliardd37eb361997-07-20 16:23:21 +00006906documentation/Makefile
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +00006907documentation/wine.conf.man
Marcus Meissner5a70c971999-06-05 09:00:21 +00006908documentation/wine.man
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00006909files/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00006910graphics/Makefile
Huw D M Davies3a24f3f1999-05-02 10:15:16 +00006911graphics/enhmetafiledrv/Makefile
Alexandre Julliardbf9130a1996-10-13 17:45:47 +00006912graphics/metafiledrv/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00006913graphics/win16drv/Makefile
6914graphics/x11drv/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006915if1632/Makefile
James Juranc70dc831999-02-13 12:18:33 +00006916include/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006917library/Makefile
6918libtest/Makefile
6919loader/Makefile
Alexandre Julliard767e6f61998-08-09 12:47:43 +00006920loader/dos/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00006921loader/ne/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006922memory/Makefile
6923misc/Makefile
6924miscemu/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00006925msdos/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006926objects/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00006927ole/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00006928programs/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00006929programs/avitools/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00006930programs/clock/Makefile
Eric Williams30008a01999-02-05 17:40:47 +00006931programs/cmdlgtst/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006932programs/control/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00006933programs/notepad/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00006934programs/osversioncheck/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00006935programs/progman/Makefile
Sylvain St.Germain1bb0e661999-03-14 14:00:22 +00006936programs/regapi/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00006937programs/regtest/Makefile
6938programs/uninstaller/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00006939programs/view/Makefile
Dave Pickles74f440e1999-06-06 15:24:04 +00006940programs/wcmd/Makefile
Joshua Thielena3f23802000-03-15 19:06:39 +00006941programs/winemine/Makefile
Alexandre Julliardfc684342001-03-21 21:41:27 +00006942programs/winetest/Makefile
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00006943programs/winhelp/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00006944programs/winver/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00006945relay32/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00006946scheduler/Makefile
Alexandre Julliard642d3131998-07-12 19:29:36 +00006947server/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006948tools/Makefile
John R. Sheetse61d33b2000-03-26 20:25:23 +00006949tools/cvdump/Makefile
Jon Griffithsc7a3fec2001-01-04 19:45:49 +00006950tools/specmaker/Makefile
Alexandre Julliarde482eeb2000-06-23 20:15:35 +00006951tools/winebuild/Makefile
Jeremy Whitef9f030b2000-11-05 20:06:56 +00006952tools/winelauncher
Bertho Stultiens30855912000-06-13 04:34:41 +00006953tools/wmc/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00006954tools/wrc/Makefile
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00006955tsx11/Makefile
Alexandre Julliardfb270dd2000-06-09 05:27:21 +00006956unicode/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006957win32/Makefile
Patrik Stridvallea584721998-11-01 16:22:07 +00006958windows/Makefile
6959windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006960EOF
6961cat >> $CONFIG_STATUS <<EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006962
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006963# Protect against being on the right side of a sed subst in config.status.
6964sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6965 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006966$ac_vpsub
6967$extrasub
Eric Pouech18ad24a2000-01-16 22:16:33 +00006968s%@SHELL@%$SHELL%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006969s%@CFLAGS@%$CFLAGS%g
6970s%@CPPFLAGS@%$CPPFLAGS%g
6971s%@CXXFLAGS@%$CXXFLAGS%g
Eric Pouech18ad24a2000-01-16 22:16:33 +00006972s%@FFLAGS@%$FFLAGS%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006973s%@DEFS@%$DEFS%g
6974s%@LDFLAGS@%$LDFLAGS%g
6975s%@LIBS@%$LIBS%g
6976s%@exec_prefix@%$exec_prefix%g
6977s%@prefix@%$prefix%g
6978s%@program_transform_name@%$program_transform_name%g
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006979s%@bindir@%$bindir%g
6980s%@sbindir@%$sbindir%g
6981s%@libexecdir@%$libexecdir%g
6982s%@datadir@%$datadir%g
6983s%@sysconfdir@%$sysconfdir%g
6984s%@sharedstatedir@%$sharedstatedir%g
6985s%@localstatedir@%$localstatedir%g
6986s%@libdir@%$libdir%g
6987s%@includedir@%$includedir%g
6988s%@oldincludedir@%$oldincludedir%g
6989s%@infodir@%$infodir%g
6990s%@mandir@%$mandir%g
Alexandre Julliard18f92e71996-07-17 20:02:21 +00006991s%@OPTIONS@%$OPTIONS%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006992s%@SET_MAKE@%$SET_MAKE%g
6993s%@CC@%$CC%g
6994s%@CPP@%$CPP%g
Alexandre Julliardff8331e1995-09-18 11:19:54 +00006995s%@X_CFLAGS@%$X_CFLAGS%g
6996s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6997s%@X_LIBS@%$X_LIBS%g
6998s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006999s%@YACC@%$YACC%g
7000s%@LEX@%$LEX%g
7001s%@LEXLIB@%$LEXLIB%g
Marcus Meissnerb53bb412000-07-23 13:41:51 +00007002s%@XLEX@%$XLEX%g
7003s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
Alexandre Julliardff8331e1995-09-18 11:19:54 +00007004s%@RANLIB@%$RANLIB%g
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007005s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
Eric Pouech18ad24a2000-01-16 22:16:33 +00007006s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007007s%@INSTALL_DATA@%$INSTALL_DATA%g
Alexandre Julliard641ee761997-08-04 16:34:36 +00007008s%@LN_S@%$LN_S%g
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00007009s%@C2MAN@%$C2MAN%g
James Juranffe6b761999-06-12 08:21:57 +00007010s%@LDCONFIG@%$LDCONFIG%g
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00007011s%@DLLWRAP@%$DLLWRAP%g
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00007012s%@LINT@%$LINT%g
7013s%@LINTFLAGS@%$LINTFLAGS%g
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +00007014s%@LDCOMBINE@%$LDCOMBINE%g
Patrik Stridvallea584721998-11-01 16:22:07 +00007015s%@XLIB@%$XLIB%g
Patrik Stridvall2941a212000-04-25 20:34:22 +00007016s%@X_DLLS@%$X_DLLS%g
7017s%@XFILES@%$XFILES%g
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007018s%@OPENGLFILES@%$OPENGLFILES%g
Hidenori Takeshima4615e292000-05-23 23:36:41 +00007019s%@OPENGL32_DLL@%$OPENGL32_DLL%g
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00007020s%@DLL_LINK@%$DLL_LINK%g
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00007021s%@DLLFLAGS@%$DLLFLAGS%g
Todd Vierling4b992b01998-12-15 15:26:27 +00007022s%@LDSHARED@%$LDSHARED%g
Alexandre Julliard4354cda2000-11-09 20:27:45 +00007023s%@LDDLLFLAGS@%$LDDLLFLAGS%g
Alexandre Julliard0adad952000-01-26 01:45:58 +00007024s%@LIBEXT@%$LIBEXT%g
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00007025s%@LDPATH@%$LDPATH%g
Patrik Stridvall1bb94031999-05-08 15:47:44 +00007026s%@ALLOCA@%$ALLOCA%g
Marcus Meissnera7f5cb51999-04-16 08:47:41 +00007027s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
Alexandre Julliardff8331e1995-09-18 11:19:54 +00007028/@MAKE_RULES@/r $MAKE_RULES
7029s%@MAKE_RULES@%%g
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +00007030/@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
7031s%@MAKE_DLL_RULES@%%g
Alexandre Julliard626f4252000-11-10 23:35:20 +00007032/@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
7033s%@MAKE_PROG_RULES@%%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007034
7035CEOF
7036EOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00007037
7038cat >> $CONFIG_STATUS <<\EOF
7039
7040# Split the substitutions into bite-sized pieces for seds with
7041# small command number limits, like on Digital OSF/1 and HP-UX.
7042ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7043ac_file=1 # Number of current file.
7044ac_beg=1 # First line for current file.
7045ac_end=$ac_max_sed_cmds # Line after last line for current file.
7046ac_more_lines=:
7047ac_sed_cmds=""
7048while $ac_more_lines; do
7049 if test $ac_beg -gt 1; then
7050 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7051 else
7052 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7053 fi
7054 if test ! -s conftest.s$ac_file; then
7055 ac_more_lines=false
7056 rm -f conftest.s$ac_file
7057 else
7058 if test -z "$ac_sed_cmds"; then
7059 ac_sed_cmds="sed -f conftest.s$ac_file"
7060 else
7061 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7062 fi
7063 ac_file=`expr $ac_file + 1`
7064 ac_beg=$ac_end
7065 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7066 fi
7067done
7068if test -z "$ac_sed_cmds"; then
7069 ac_sed_cmds=cat
7070fi
7071EOF
7072
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007073cat >> $CONFIG_STATUS <<EOF
7074
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007075CONFIG_FILES=\${CONFIG_FILES-"Make.rules
Alexandre Julliard626f4252000-11-10 23:35:20 +00007076dlls/Makedll.rules
7077programs/Makeprog.rules
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007078Makefile
Joseph Pranevich791cd6a1998-12-02 19:58:08 +00007079console/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007080controls/Makefile
7081debugger/Makefile
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00007082dlls/Makefile
Juergen Schmiedf7b0de31999-01-03 12:48:29 +00007083dlls/advapi32/Makefile
Marcus Meissnerb3d1a221999-03-13 18:07:44 +00007084dlls/avifil32/Makefile
Alexandre Julliarda0d77311998-09-13 16:32:00 +00007085dlls/comctl32/Makefile
Klaas van Gendc9127491999-02-28 20:05:11 +00007086dlls/commdlg/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007087dlls/crtdll/Makefile
7088dlls/dciman32/Makefile
Alexandre Julliardddce6522000-03-17 16:58:10 +00007089dlls/ddraw/Makefile
7090dlls/dinput/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00007091dlls/dplay/Makefile
Peter Hunnisett22b861c1999-09-28 16:35:32 +00007092dlls/dplayx/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00007093dlls/dsound/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00007094dlls/gdi/Makefile
Francois Gougetedf3e431999-11-07 21:22:17 +00007095dlls/icmp/Makefile
Patrik Stridvall8295c861998-10-11 17:09:05 +00007096dlls/imagehlp/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007097dlls/imm32/Makefile
Dimitrie O. Paun36b5b6b2000-06-03 00:07:44 +00007098dlls/kernel/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007099dlls/lzexpand/Makefile
Ulrich Weigandbb1984e1999-08-07 14:32:33 +00007100dlls/mpr/Makefile
Patrik Stridvall8295c861998-10-11 17:09:05 +00007101dlls/msacm/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007102dlls/msnet32/Makefile
Jon Griffiths1db20bf2001-01-10 23:59:25 +00007103dlls/msvcrt/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007104dlls/msvideo/Makefile
Marcus Meissner51505b11998-11-01 14:00:21 +00007105dlls/ntdll/Makefile
Alexandre Julliard8551f8c1999-12-11 23:56:46 +00007106dlls/odbc32/Makefile
Ulrich Weigand2a722f41999-09-19 18:36:53 +00007107dlls/ole32/Makefile
7108dlls/oleaut32/Makefile
7109dlls/olecli/Makefile
7110dlls/oledlg/Makefile
Sean Langley58c71d42000-02-07 16:26:56 +00007111dlls/olepro32/Makefile
Ulrich Weigand2a722f41999-09-19 18:36:53 +00007112dlls/olesvr/Makefile
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007113dlls/opengl32/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007114dlls/psapi/Makefile
Marcus Meissner30ef8771998-12-11 13:26:26 +00007115dlls/rasapi32/Makefile
Hidenori Takeshimae75f9fb2000-05-03 18:12:19 +00007116dlls/richedit/Makefile
Huw D M Davies10b1b232000-07-15 19:53:50 +00007117dlls/rpcrt4/Makefile
Mike McCormackdc2461e2000-07-15 21:35:55 +00007118dlls/serialui/Makefile
Francois Jacquesdf5e5792000-07-08 18:27:03 +00007119dlls/setupapi/Makefile
John R. Sheetsbc80a3b2001-01-11 22:32:44 +00007120dlls/shdocvw/Makefile
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00007121dlls/shell32/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00007122dlls/shfolder/Makefile
7123dlls/shlwapi/Makefile
Andreas Mohr5aa96c11999-03-14 12:34:25 +00007124dlls/tapi32/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00007125dlls/ttydrv/Makefile
Alexandre Julliard819fa8c2000-04-11 20:07:00 +00007126dlls/urlmon/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00007127dlls/user/Makefile
Ulrich Weigandd43a46a1999-01-31 10:11:04 +00007128dlls/version/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007129dlls/win32s/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007130dlls/winaspi/Makefile
Ove Kaavene5557b32000-12-26 00:22:45 +00007131dlls/winedos/Makefile
Dimitrie O. Paun84bde6a2000-05-30 20:27:23 +00007132dlls/wineps/Makefile
Alexandre Julliard819fa8c2000-04-11 20:07:00 +00007133dlls/wininet/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00007134dlls/winmm/Makefile
Eric Pouech2a3b0a12000-02-26 13:14:04 +00007135dlls/winmm/joystick/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00007136dlls/winmm/mcianim/Makefile
7137dlls/winmm/mciavi/Makefile
7138dlls/winmm/mcicda/Makefile
7139dlls/winmm/mciseq/Makefile
7140dlls/winmm/mciwave/Makefile
Eric Pouechabe72271999-10-31 02:23:49 +00007141dlls/winmm/midimap/Makefile
7142dlls/winmm/wavemap/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00007143dlls/winmm/wineoss/Makefile
Hidenori Takeshima9c672132000-12-14 21:56:18 +00007144dlls/winnls/Makefile
Alexandre Julliardde078692000-01-23 22:07:15 +00007145dlls/winsock/Makefile
Huw D M Daviese39b6761999-05-17 16:20:51 +00007146dlls/winspool/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00007147dlls/wow32/Makefile
7148dlls/wsock32/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00007149dlls/x11drv/Makefile
Alexandre Julliardd37eb361997-07-20 16:23:21 +00007150documentation/Makefile
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +00007151documentation/wine.conf.man
Marcus Meissner5a70c971999-06-05 09:00:21 +00007152documentation/wine.man
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00007153files/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00007154graphics/Makefile
Huw D M Davies3a24f3f1999-05-02 10:15:16 +00007155graphics/enhmetafiledrv/Makefile
Alexandre Julliardbf9130a1996-10-13 17:45:47 +00007156graphics/metafiledrv/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00007157graphics/win16drv/Makefile
7158graphics/x11drv/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007159if1632/Makefile
James Juranc70dc831999-02-13 12:18:33 +00007160include/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007161library/Makefile
7162libtest/Makefile
7163loader/Makefile
Alexandre Julliard767e6f61998-08-09 12:47:43 +00007164loader/dos/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007165loader/ne/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007166memory/Makefile
7167misc/Makefile
7168miscemu/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00007169msdos/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007170objects/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00007171ole/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00007172programs/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007173programs/avitools/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00007174programs/clock/Makefile
Eric Williams30008a01999-02-05 17:40:47 +00007175programs/cmdlgtst/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007176programs/control/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00007177programs/notepad/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007178programs/osversioncheck/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00007179programs/progman/Makefile
Sylvain St.Germain1bb0e661999-03-14 14:00:22 +00007180programs/regapi/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007181programs/regtest/Makefile
7182programs/uninstaller/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00007183programs/view/Makefile
Dave Pickles74f440e1999-06-06 15:24:04 +00007184programs/wcmd/Makefile
Joshua Thielena3f23802000-03-15 19:06:39 +00007185programs/winemine/Makefile
Alexandre Julliardfc684342001-03-21 21:41:27 +00007186programs/winetest/Makefile
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00007187programs/winhelp/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00007188programs/winver/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00007189relay32/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00007190scheduler/Makefile
Alexandre Julliard642d3131998-07-12 19:29:36 +00007191server/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007192tools/Makefile
John R. Sheetse61d33b2000-03-26 20:25:23 +00007193tools/cvdump/Makefile
Jon Griffithsc7a3fec2001-01-04 19:45:49 +00007194tools/specmaker/Makefile
Alexandre Julliarde482eeb2000-06-23 20:15:35 +00007195tools/winebuild/Makefile
Jeremy Whitef9f030b2000-11-05 20:06:56 +00007196tools/winelauncher
Bertho Stultiens30855912000-06-13 04:34:41 +00007197tools/wmc/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007198tools/wrc/Makefile
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00007199tsx11/Makefile
Alexandre Julliardfb270dd2000-06-09 05:27:21 +00007200unicode/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007201win32/Makefile
Patrik Stridvallea584721998-11-01 16:22:07 +00007202windows/Makefile
7203windows/x11drv/Makefile "}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007204EOF
7205cat >> $CONFIG_STATUS <<\EOF
7206for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007207 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007208 case "$ac_file" in
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007209 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007210 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7211 *) ac_file_in="${ac_file}.in" ;;
7212 esac
7213
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00007214 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007215
7216 # Remove last slash and all that follows it. Not all systems have dirname.
7217 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7218 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7219 # The file is in a subdirectory.
7220 test ! -d "$ac_dir" && mkdir "$ac_dir"
7221 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7222 # A "../" for each directory in $ac_dir_suffix.
7223 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7224 else
7225 ac_dir_suffix= ac_dots=
7226 fi
7227
7228 case "$ac_given_srcdir" in
7229 .) srcdir=.
7230 if test -z "$ac_dots"; then top_srcdir=.
7231 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7232 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7233 *) # Relative path.
7234 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7235 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7236 esac
7237
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007238 case "$ac_given_INSTALL" in
7239 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7240 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7241 esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00007242
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007243 echo creating "$ac_file"
7244 rm -f "$ac_file"
7245 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7246 case "$ac_file" in
7247 *Makefile*) ac_comsub="1i\\
7248# $configure_input" ;;
7249 *) ac_comsub= ;;
7250 esac
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007251
7252 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 +00007253 sed -e "$ac_comsub
7254s%@configure_input@%$configure_input%g
7255s%@srcdir@%$srcdir%g
7256s%@top_srcdir@%$top_srcdir%g
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007257s%@INSTALL@%$INSTALL%g
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007258" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007259fi; done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00007260rm -f conftest.s*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007261
Alexandre Julliard18f92e71996-07-17 20:02:21 +00007262# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7263# NAME is the cpp macro being defined and VALUE is the value it is being given.
7264#
7265# ac_d sets the value in "#define NAME VALUE" lines.
7266ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7267ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7268ac_dC='\3'
7269ac_dD='%g'
7270# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7271ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7272ac_uB='\([ ]\)%\1#\2define\3'
7273ac_uC=' '
7274ac_uD='\4%g'
7275# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7276ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7277ac_eB='$%\1#\2define\3'
7278ac_eC=' '
7279ac_eD='%g'
7280
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007281if test "${CONFIG_HEADERS+set}" != set; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00007282EOF
7283cat >> $CONFIG_STATUS <<EOF
7284 CONFIG_HEADERS="include/config.h"
7285EOF
7286cat >> $CONFIG_STATUS <<\EOF
7287fi
Alexandre Julliard18f92e71996-07-17 20:02:21 +00007288for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007289 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Alexandre Julliard18f92e71996-07-17 20:02:21 +00007290 case "$ac_file" in
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007291 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Alexandre Julliard18f92e71996-07-17 20:02:21 +00007292 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7293 *) ac_file_in="${ac_file}.in" ;;
7294 esac
7295
7296 echo creating $ac_file
7297
7298 rm -f conftest.frag conftest.in conftest.out
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007299 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7300 cat $ac_file_inputs > conftest.in
Alexandre Julliard18f92e71996-07-17 20:02:21 +00007301
7302EOF
7303
7304# Transform confdefs.h into a sed script conftest.vals that substitutes
7305# the proper values into config.h.in to produce config.h. And first:
7306# Protect against being on the right side of a sed subst in config.status.
7307# Protect against being in an unquoted here document in config.status.
7308rm -f conftest.vals
7309cat > conftest.hdr <<\EOF
7310s/[\\&%]/\\&/g
7311s%[\\$`]%\\&%g
7312s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7313s%ac_d%ac_u%gp
7314s%ac_u%ac_e%gp
7315EOF
7316sed -n -f conftest.hdr confdefs.h > conftest.vals
7317rm -f conftest.hdr
7318
7319# This sed command replaces #undef with comments. This is necessary, for
7320# example, in the case of _POSIX_SOURCE, which is predefined and required
7321# on some systems where configure will not decide to define it.
7322cat >> conftest.vals <<\EOF
7323s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7324EOF
7325
7326# Break up conftest.vals because some shells have a limit on
7327# the size of here documents, and old seds have small limits too.
Alexandre Julliard18f92e71996-07-17 20:02:21 +00007328
7329rm -f conftest.tail
7330while :
7331do
7332 ac_lines=`grep -c . conftest.vals`
7333 # grep -c gives empty output for an empty file on some AIX systems.
7334 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7335 # Write a limited-size here document to conftest.frag.
7336 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7337 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7338 echo 'CEOF
7339 sed -f conftest.frag conftest.in > conftest.out
7340 rm -f conftest.in
7341 mv conftest.out conftest.in
7342' >> $CONFIG_STATUS
7343 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7344 rm -f conftest.vals
7345 mv conftest.tail conftest.vals
7346done
7347rm -f conftest.vals
7348
7349cat >> $CONFIG_STATUS <<\EOF
7350 rm -f conftest.frag conftest.h
7351 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7352 cat conftest.in >> conftest.h
7353 rm -f conftest.in
7354 if cmp -s $ac_file conftest.h 2>/dev/null; then
7355 echo "$ac_file is unchanged"
7356 rm -f conftest.h
7357 else
7358 # Remove last slash and all that follows it. Not all systems have dirname.
7359 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7360 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7361 # The file is in a subdirectory.
7362 test ! -d "$ac_dir" && mkdir "$ac_dir"
7363 fi
7364 rm -f $ac_file
7365 mv conftest.h $ac_file
7366 fi
7367fi; done
7368
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007369EOF
7370cat >> $CONFIG_STATUS <<EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007371
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +00007372
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007373EOF
7374cat >> $CONFIG_STATUS <<\EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007375
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +00007376extra_subdirs="\
7377dlls/ddraw/d3ddevice \
7378dlls/ddraw/dclipper \
7379dlls/ddraw/ddraw \
7380dlls/ddraw/direct3d \
7381dlls/ddraw/dpalette \
7382dlls/ddraw/dsurface \
Lionel Ulmer6301e942000-11-05 20:25:02 +00007383dlls/dinput/joystick \
7384dlls/dinput/keyboard \
7385dlls/dinput/mouse \
Alexandre Julliardd1d09052000-07-30 13:39:52 +00007386dlls/kernel/messages \
Alexandre Julliard2affae52000-10-23 21:32:05 +00007387dlls/user/resources \
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +00007388"
7389for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done
7390
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007391exit 0
7392EOF
7393chmod +x $CONFIG_STATUS
7394rm -fr confdefs* $ac_clean_files
7395test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7396
7397
Ove Kaaven8b4431f1999-01-23 13:59:11 +00007398if test "$have_x" = "no"
7399then
7400 echo
7401 echo "*** Warning: X development files not found. Wine will be built without"
7402 echo "*** X support, which currently does not work, and would probably not be"
7403 echo "*** what you want anyway. You will need to install devel packages of"
7404 echo "*** Xlib/Xfree86 and Xpm at the very least."
Ove Kaaven1eb593c1999-02-14 09:34:46 +00007405elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
7406then
7407 echo
7408 echo "*** Warning: Xpm development files not found. Wine will be built without"
7409 echo "*** Xpm support, which currently does not work. You will need to install"
7410 echo "*** devel packages of Xpm."
Ove Kaaven8b4431f1999-01-23 13:59:11 +00007411fi
7412
Alexandre Julliard638f1691999-01-17 16:32:32 +00007413if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
7414then
7415 echo
7416 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
7417 echo "*** terminal resize support. Consider upgrading ncurses."
Alexandre Julliard638f1691999-01-17 16:32:32 +00007418fi
7419
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007420if test "$wine_cv_libc_reentrant" = "no"
7421then
7422 echo
7423 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
7424 echo "*** thread support. Consider upgrading libc to a more recent"
7425 echo "*** reentrant version of libc."
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007426fi
7427
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007428if test "$wine_cv_opengl_version_OK" = "no"
Lionel Ulmer5c085701999-02-28 19:48:53 +00007429then
7430 echo
7431 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00007432 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
7433fi
7434
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007435if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00007436then
7437 echo
7438 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007439 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
Andreas Mohr18a9d742001-01-17 21:52:42 +00007440 echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine,"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007441 echo "*** start configure with '--enable-opengl' to force OpenGL support."
Lionel Ulmer5c085701999-02-28 19:48:53 +00007442fi
7443
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007444if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007445then
7446 echo
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00007447 echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007448 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
7449 echo "*** support before reporting bugs."
7450fi
7451
7452
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007453echo
Steffen Moeller1511bae1999-02-17 15:27:03 +00007454echo "Configure finished. Do 'make depend && make' to compile Wine."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007455echo
7456