blob: 2cff43cf0718b298778083ced801861b5d1c4ffd [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 Julliard0adad952000-01-26 01:45:58 +000016 --disable-dll build static libraries instead of DLLs"
Alexandre Julliard7e56f681996-01-31 19:02:28 +000017ac_help="$ac_help
Alexandre Julliardf90efa91998-06-14 15:24:15 +000018 --disable-debug compile out all debugging messages"
19ac_help="$ac_help
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000020 --enable-opengl force usage of OpenGL even if the latter is thread-safe"
21ac_help="$ac_help
Alexandre Julliardf90efa91998-06-14 15:24:15 +000022 --disable-trace compile out TRACE messages"
23ac_help="$ac_help
Patrik Stridvall5e5ad532000-04-23 20:02:46 +000024 --without-curses do not use curses"
25ac_help="$ac_help
Patrik Stridvallf638aef1998-12-07 09:36:13 +000026 --without-reentrant-x compile for use with non-reentrant X libraries"
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000027ac_help="$ac_help
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000028 --with-x use the X Window System"
29
30# Initialize some variables set by options.
31# The variables have the same names as the options, with
32# dashes changed to underlines.
33build=NONE
34cache_file=./config.cache
35exec_prefix=NONE
36host=NONE
37no_create=
38nonopt=NONE
39no_recursion=
40prefix=NONE
41program_prefix=NONE
42program_suffix=NONE
43program_transform_name=s,x,x,
44silent=
45site=
46srcdir=
47target=NONE
48verbose=
49x_includes=NONE
50x_libraries=NONE
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000051bindir='${exec_prefix}/bin'
52sbindir='${exec_prefix}/sbin'
53libexecdir='${exec_prefix}/libexec'
54datadir='${prefix}/share'
55sysconfdir='${prefix}/etc'
56sharedstatedir='${prefix}/com'
57localstatedir='${prefix}/var'
58libdir='${exec_prefix}/lib'
59includedir='${prefix}/include'
60oldincludedir='/usr/include'
61infodir='${prefix}/info'
62mandir='${prefix}/man'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000063
64# Initialize some other variables.
65subdirs=
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000066MFLAGS= MAKEFLAGS=
Eric Pouech18ad24a2000-01-16 22:16:33 +000067SHELL=${CONFIG_SHELL-/bin/sh}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000068# Maximum number of lines to put in a shell here document.
69ac_max_here_lines=12
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000070
71ac_prev=
72for ac_option
73do
74
75 # If the previous option needs an argument, assign it.
76 if test -n "$ac_prev"; then
77 eval "$ac_prev=\$ac_option"
78 ac_prev=
79 continue
80 fi
81
82 case "$ac_option" in
83 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
84 *) ac_optarg= ;;
85 esac
86
87 # Accept the important Cygnus configure options, so we can diagnose typos.
88
89 case "$ac_option" in
90
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000091 -bindir | --bindir | --bindi | --bind | --bin | --bi)
92 ac_prev=bindir ;;
93 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
94 bindir="$ac_optarg" ;;
95
96 -build | --build | --buil | --bui | --bu)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000097 ac_prev=build ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000098 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000099 build="$ac_optarg" ;;
100
101 -cache-file | --cache-file | --cache-fil | --cache-fi \
102 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
103 ac_prev=cache_file ;;
104 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
105 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
106 cache_file="$ac_optarg" ;;
107
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000108 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
109 ac_prev=datadir ;;
110 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
111 | --da=*)
112 datadir="$ac_optarg" ;;
113
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000114 -disable-* | --disable-*)
115 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119 fi
120 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121 eval "enable_${ac_feature}=no" ;;
122
123 -enable-* | --enable-*)
124 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128 fi
129 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130 case "$ac_option" in
131 *=*) ;;
132 *) ac_optarg=yes ;;
133 esac
134 eval "enable_${ac_feature}='$ac_optarg'" ;;
135
136 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
137 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
138 | --exec | --exe | --ex)
139 ac_prev=exec_prefix ;;
140 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
141 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
142 | --exec=* | --exe=* | --ex=*)
143 exec_prefix="$ac_optarg" ;;
144
145 -gas | --gas | --ga | --g)
146 # Obsolete; use --with-gas.
147 with_gas=yes ;;
148
149 -help | --help | --hel | --he)
150 # Omit some internal or obsolete options to make the list less imposing.
151 # This message is too long to be a string in the A/UX 3.1 sh.
152 cat << EOF
153Usage: configure [options] [host]
154Options: [defaults in brackets after descriptions]
155Configuration:
156 --cache-file=FILE cache test results in FILE
157 --help print this message
158 --no-create do not create output files
159 --quiet, --silent do not print \`checking...' messages
160 --version print the version of autoconf that created configure
161Directory and file names:
162 --prefix=PREFIX install architecture-independent files in PREFIX
163 [$ac_default_prefix]
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000164 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000165 [same as prefix]
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000166 --bindir=DIR user executables in DIR [EPREFIX/bin]
167 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
168 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
169 --datadir=DIR read-only architecture-independent data in DIR
170 [PREFIX/share]
171 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
172 --sharedstatedir=DIR modifiable architecture-independent data in DIR
173 [PREFIX/com]
174 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
175 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
176 --includedir=DIR C header files in DIR [PREFIX/include]
177 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
178 --infodir=DIR info documentation in DIR [PREFIX/info]
179 --mandir=DIR man documentation in DIR [PREFIX/man]
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000180 --srcdir=DIR find the sources in DIR [configure dir or ..]
181 --program-prefix=PREFIX prepend PREFIX to installed program names
182 --program-suffix=SUFFIX append SUFFIX to installed program names
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000183 --program-transform-name=PROGRAM
184 run sed PROGRAM on installed program names
185EOF
186 cat << EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000187Host type:
188 --build=BUILD configure for building on BUILD [BUILD=HOST]
189 --host=HOST configure for HOST [guessed]
190 --target=TARGET configure for TARGET [TARGET=HOST]
191Features and packages:
192 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
193 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
194 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
195 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
196 --x-includes=DIR X include files are in DIR
197 --x-libraries=DIR X library files are in DIR
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000198EOF
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000199 if test -n "$ac_help"; then
200 echo "--enable and --with options recognized:$ac_help"
201 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000202 exit 0 ;;
203
204 -host | --host | --hos | --ho)
205 ac_prev=host ;;
206 -host=* | --host=* | --hos=* | --ho=*)
207 host="$ac_optarg" ;;
208
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000209 -includedir | --includedir | --includedi | --included | --include \
210 | --includ | --inclu | --incl | --inc)
211 ac_prev=includedir ;;
212 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
213 | --includ=* | --inclu=* | --incl=* | --inc=*)
214 includedir="$ac_optarg" ;;
215
216 -infodir | --infodir | --infodi | --infod | --info | --inf)
217 ac_prev=infodir ;;
218 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
219 infodir="$ac_optarg" ;;
220
221 -libdir | --libdir | --libdi | --libd)
222 ac_prev=libdir ;;
223 -libdir=* | --libdir=* | --libdi=* | --libd=*)
224 libdir="$ac_optarg" ;;
225
226 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
227 | --libexe | --libex | --libe)
228 ac_prev=libexecdir ;;
229 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
230 | --libexe=* | --libex=* | --libe=*)
231 libexecdir="$ac_optarg" ;;
232
233 -localstatedir | --localstatedir | --localstatedi | --localstated \
234 | --localstate | --localstat | --localsta | --localst \
235 | --locals | --local | --loca | --loc | --lo)
236 ac_prev=localstatedir ;;
237 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
238 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
239 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
240 localstatedir="$ac_optarg" ;;
241
242 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
243 ac_prev=mandir ;;
244 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
245 mandir="$ac_optarg" ;;
246
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000247 -nfp | --nfp | --nf)
248 # Obsolete; use --without-fp.
249 with_fp=no ;;
250
251 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
252 | --no-cr | --no-c)
253 no_create=yes ;;
254
255 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
256 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
257 no_recursion=yes ;;
258
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000259 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
260 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
261 | --oldin | --oldi | --old | --ol | --o)
262 ac_prev=oldincludedir ;;
263 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
264 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
265 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
266 oldincludedir="$ac_optarg" ;;
267
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000268 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
269 ac_prev=prefix ;;
270 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
271 prefix="$ac_optarg" ;;
272
273 -program-prefix | --program-prefix | --program-prefi | --program-pref \
274 | --program-pre | --program-pr | --program-p)
275 ac_prev=program_prefix ;;
276 -program-prefix=* | --program-prefix=* | --program-prefi=* \
277 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
278 program_prefix="$ac_optarg" ;;
279
280 -program-suffix | --program-suffix | --program-suffi | --program-suff \
281 | --program-suf | --program-su | --program-s)
282 ac_prev=program_suffix ;;
283 -program-suffix=* | --program-suffix=* | --program-suffi=* \
284 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
285 program_suffix="$ac_optarg" ;;
286
287 -program-transform-name | --program-transform-name \
288 | --program-transform-nam | --program-transform-na \
289 | --program-transform-n | --program-transform- \
290 | --program-transform | --program-transfor \
291 | --program-transfo | --program-transf \
292 | --program-trans | --program-tran \
293 | --progr-tra | --program-tr | --program-t)
294 ac_prev=program_transform_name ;;
295 -program-transform-name=* | --program-transform-name=* \
296 | --program-transform-nam=* | --program-transform-na=* \
297 | --program-transform-n=* | --program-transform-=* \
298 | --program-transform=* | --program-transfor=* \
299 | --program-transfo=* | --program-transf=* \
300 | --program-trans=* | --program-tran=* \
301 | --progr-tra=* | --program-tr=* | --program-t=*)
302 program_transform_name="$ac_optarg" ;;
303
304 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
305 | -silent | --silent | --silen | --sile | --sil)
306 silent=yes ;;
307
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000308 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
309 ac_prev=sbindir ;;
310 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
311 | --sbi=* | --sb=*)
312 sbindir="$ac_optarg" ;;
313
314 -sharedstatedir | --sharedstatedir | --sharedstatedi \
315 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
316 | --sharedst | --shareds | --shared | --share | --shar \
317 | --sha | --sh)
318 ac_prev=sharedstatedir ;;
319 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
320 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
321 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
322 | --sha=* | --sh=*)
323 sharedstatedir="$ac_optarg" ;;
324
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000325 -site | --site | --sit)
326 ac_prev=site ;;
327 -site=* | --site=* | --sit=*)
328 site="$ac_optarg" ;;
329
330 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
331 ac_prev=srcdir ;;
332 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
333 srcdir="$ac_optarg" ;;
334
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000335 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
336 | --syscon | --sysco | --sysc | --sys | --sy)
337 ac_prev=sysconfdir ;;
338 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
339 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
340 sysconfdir="$ac_optarg" ;;
341
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000342 -target | --target | --targe | --targ | --tar | --ta | --t)
343 ac_prev=target ;;
344 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
345 target="$ac_optarg" ;;
346
347 -v | -verbose | --verbose | --verbos | --verbo | --verb)
348 verbose=yes ;;
349
350 -version | --version | --versio | --versi | --vers)
Eric Pouech18ad24a2000-01-16 22:16:33 +0000351 echo "configure generated by autoconf version 2.13"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000352 exit 0 ;;
353
354 -with-* | --with-*)
355 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359 fi
360 ac_package=`echo $ac_package| sed 's/-/_/g'`
361 case "$ac_option" in
362 *=*) ;;
363 *) ac_optarg=yes ;;
364 esac
365 eval "with_${ac_package}='$ac_optarg'" ;;
366
367 -without-* | --without-*)
368 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 fi
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}=no" ;;
375
376 --x)
377 # Obsolete; use --with-x.
378 with_x=yes ;;
379
380 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
381 | --x-incl | --x-inc | --x-in | --x-i)
382 ac_prev=x_includes ;;
383 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
384 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
385 x_includes="$ac_optarg" ;;
386
387 -x-libraries | --x-libraries | --x-librarie | --x-librari \
388 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
389 ac_prev=x_libraries ;;
390 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
391 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
392 x_libraries="$ac_optarg" ;;
393
394 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
395 ;;
396
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000397 *)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000398 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
399 echo "configure: warning: $ac_option: invalid host type" 1>&2
400 fi
401 if test "x$nonopt" != xNONE; then
402 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
403 fi
404 nonopt="$ac_option"
405 ;;
406
407 esac
408done
409
410if test -n "$ac_prev"; then
411 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
412fi
413
414trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
415
416# File descriptor usage:
417# 0 standard input
418# 1 file creation
419# 2 errors and warnings
420# 3 some systems may open it to /dev/tty
421# 4 used on the Kubota Titan
422# 6 checking for... messages and results
423# 5 compiler messages saved in config.log
424if test "$silent" = yes; then
425 exec 6>/dev/null
426else
427 exec 6>&1
428fi
429exec 5>./config.log
430
431echo "\
432This file contains any messages produced by compilers while
433running configure, to aid debugging if configure makes a mistake.
434" 1>&5
435
436# Strip out --no-create and --no-recursion so they do not pile up.
437# Also quote any args containing shell metacharacters.
438ac_configure_args=
439for ac_arg
440do
441 case "$ac_arg" in
442 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
443 | --no-cr | --no-c) ;;
444 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
445 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
446 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
447 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
448 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
449 esac
450done
451
452# NLS nuisances.
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000453# Only set these to C if already set. These must not be set unconditionally
454# because not all systems understand e.g. LANG=C (notably SCO).
455# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
456# Non-C LC_CTYPE values break the ctype check.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000457if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000458if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
459if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
460if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000461
462# confdefs.h avoids OS command line length limits that DEFS can exceed.
463rm -rf conftest* confdefs.h
464# AIX cpp loses on an empty file, so make sure it contains at least a newline.
465echo > confdefs.h
466
467# A filename unique to this package, relative to the directory that
468# configure is in, which we can look for to find out if srcdir is correct.
469ac_unique_file=controls/edit.c
470
471# Find the source files, if location was not specified.
472if test -z "$srcdir"; then
473 ac_srcdir_defaulted=yes
474 # Try the directory containing this script, then its parent.
475 ac_prog=$0
476 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
477 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
478 srcdir=$ac_confdir
479 if test ! -r $srcdir/$ac_unique_file; then
480 srcdir=..
481 fi
482else
483 ac_srcdir_defaulted=no
484fi
485if test ! -r $srcdir/$ac_unique_file; then
486 if test "$ac_srcdir_defaulted" = yes; then
487 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
488 else
489 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
490 fi
491fi
492srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
493
494# Prefer explicitly selected file to automatically selected ones.
495if test -z "$CONFIG_SITE"; then
496 if test "x$prefix" != xNONE; then
497 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
498 else
499 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
500 fi
501fi
502for ac_site_file in $CONFIG_SITE; do
503 if test -r "$ac_site_file"; then
504 echo "loading site script $ac_site_file"
505 . "$ac_site_file"
506 fi
507done
508
509if test -r "$cache_file"; then
510 echo "loading cache $cache_file"
511 . $cache_file
512else
513 echo "creating cache $cache_file"
514 > $cache_file
515fi
516
517ac_ext=c
518# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000519ac_cpp='$CPP $CPPFLAGS'
520ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Eric Pouech18ad24a2000-01-16 22:16:33 +0000521ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000522cross_compiling=$ac_cv_prog_cc_cross
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000523
Eric Pouech18ad24a2000-01-16 22:16:33 +0000524ac_exeext=
525ac_objext=o
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000526if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
527 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
528 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
529 ac_n= ac_c='
530' ac_t=' '
531 else
532 ac_n=-n ac_c= ac_t=
533 fi
534else
535 ac_n= ac_c='\c' ac_t=
536fi
537
538
Alexandre Julliard18f92e71996-07-17 20:02:21 +0000539
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000540ac_aux_dir=
541for ac_dir in tools $srcdir/tools; do
542 if test -f $ac_dir/install-sh; then
543 ac_aux_dir=$ac_dir
544 ac_install_sh="$ac_aux_dir/install-sh -c"
545 break
546 elif test -f $ac_dir/install.sh; then
547 ac_aux_dir=$ac_dir
548 ac_install_sh="$ac_aux_dir/install.sh -c"
549 break
550 fi
551done
552if test -z "$ac_aux_dir"; then
553 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
554fi
555ac_config_guess=$ac_aux_dir/config.guess
556ac_config_sub=$ac_aux_dir/config.sub
557ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
558
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000559
Howard Abrams13277481999-07-10 13:16:29 +0000560
Alexandre Julliard318f4ce2000-01-31 05:02:49 +0000561LIBEXT=so # library type .so or .a
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000562TRACE_MSGS=yes # the TRACE() macro
563DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros.
Patrik Stridvall5e5ad532000-04-23 20:02:46 +0000564CURSES=yes
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000565OPENGL=normal
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +0000566
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +0000567# Check whether --enable-dll or --disable-dll was given.
568if test "${enable_dll+set}" = set; then
569 enableval="$enable_dll"
Alexandre Julliard318f4ce2000-01-31 05:02:49 +0000570 if test "$enableval" = "no"; then LIBEXT="a"; fi
Alexandre Julliard642d3131998-07-12 19:29:36 +0000571fi
572
573
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000574# Check whether --enable-debug or --disable-debug was given.
575if test "${enable_debug+set}" = set; then
576 enableval="$enable_debug"
577 if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi
578fi
579
580
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000581# Check whether --enable-opengl or --disable-opengl was given.
582if test "${enable_opengl+set}" = set; then
583 enableval="$enable_opengl"
584 if test "$enableval" = "no"; then OPENGL="no"; elif test "$enableval" = "yes"; then OPENGL="yes"; fi
585fi
586
587
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000588# Check whether --enable-trace or --disable-trace was given.
589if test "${enable_trace+set}" = set; then
590 enableval="$enable_trace"
591 if test "$enableval" = "no"; then TRACE_MSGS="no"; fi
592fi
593
594
Patrik Stridvall5e5ad532000-04-23 20:02:46 +0000595# Check whether --with-curses or --without-curses was given.
596if test "${with_curses+set}" = set; then
597 withval="$with_curses"
598 if test "$withval" = "no"; then CURSES="no"; fi
599fi
600
601
Alexandre Julliarda11d7b11998-03-01 20:05:02 +0000602# Check whether --with-reentrant-x or --without-reentrant-x was given.
603if test "${with_reentrant_x+set}" = set; then
604 withval="$with_reentrant_x"
605 :
606fi
607
608
Alexandre Julliardb7258be1995-09-01 15:57:28 +0000609
Alexandre Julliardb7258be1995-09-01 15:57:28 +0000610
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000611if test "$DEBUG_MSGS" = "no"
612then
613 cat >> confdefs.h <<\EOF
614#define NO_DEBUG_MSGS 1
615EOF
616
617 cat >> confdefs.h <<\EOF
618#define NO_TRACE_MSGS 1
619EOF
620
621else
622 if test "$TRACE_MSGS" = "no"
623 then
624 cat >> confdefs.h <<\EOF
625#define NO_TRACE_MSGS 1
626EOF
627
628 fi
629fi
630
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +0000631
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000632echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Alexandre Julliard2f158c22000-06-14 21:45:38 +0000633echo "configure:634: checking whether ${MAKE-make} sets \${MAKE}" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000634set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000635if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
636 echo $ac_n "(cached) $ac_c" 1>&6
637else
638 cat > conftestmake <<\EOF
639all:
640 @echo 'ac_maketemp="${MAKE}"'
641EOF
642# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
643eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
644if test -n "$ac_maketemp"; then
645 eval ac_cv_prog_make_${ac_make}_set=yes
646else
647 eval ac_cv_prog_make_${ac_make}_set=no
648fi
649rm -f conftestmake
650fi
651if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
652 echo "$ac_t""yes" 1>&6
653 SET_MAKE=
654else
655 echo "$ac_t""no" 1>&6
656 SET_MAKE="MAKE=${MAKE-make}"
657fi
658
659# Extract the first word of "gcc", so it can be a program name with args.
660set dummy gcc; ac_word=$2
661echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Alexandre Julliard2f158c22000-06-14 21:45:38 +0000662echo "configure:663: checking for $ac_word" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000663if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
664 echo $ac_n "(cached) $ac_c" 1>&6
665else
666 if test -n "$CC"; then
667 ac_cv_prog_CC="$CC" # Let the user override the test.
668else
Eric Pouech18ad24a2000-01-16 22:16:33 +0000669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
670 ac_dummy="$PATH"
671 for ac_dir in $ac_dummy; do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000672 test -z "$ac_dir" && ac_dir=.
673 if test -f $ac_dir/$ac_word; then
674 ac_cv_prog_CC="gcc"
675 break
676 fi
677 done
678 IFS="$ac_save_ifs"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000679fi
680fi
681CC="$ac_cv_prog_CC"
682if test -n "$CC"; then
683 echo "$ac_t""$CC" 1>&6
684else
685 echo "$ac_t""no" 1>&6
686fi
687
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000688if test -z "$CC"; then
689 # Extract the first word of "cc", so it can be a program name with args.
690set dummy cc; ac_word=$2
691echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Alexandre Julliard2f158c22000-06-14 21:45:38 +0000692echo "configure:693: checking for $ac_word" >&5
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000693if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
694 echo $ac_n "(cached) $ac_c" 1>&6
695else
696 if test -n "$CC"; then
697 ac_cv_prog_CC="$CC" # Let the user override the test.
698else
Eric Pouech18ad24a2000-01-16 22:16:33 +0000699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000700 ac_prog_rejected=no
Eric Pouech18ad24a2000-01-16 22:16:33 +0000701 ac_dummy="$PATH"
702 for ac_dir in $ac_dummy; do
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000703 test -z "$ac_dir" && ac_dir=.
704 if test -f $ac_dir/$ac_word; then
705 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
706 ac_prog_rejected=yes
707 continue
708 fi
709 ac_cv_prog_CC="cc"
710 break
711 fi
712 done
713 IFS="$ac_save_ifs"
714if test $ac_prog_rejected = yes; then
715 # We found a bogon in the path, so make sure we never use it.
716 set dummy $ac_cv_prog_CC
717 shift
718 if test $# -gt 0; then
719 # We chose a different compiler from the bogus one.
720 # However, it has the same basename, so the bogon will be chosen
721 # first if we set CC to just the basename; use the full file name.
722 shift
723 set dummy "$ac_dir/$ac_word" "$@"
724 shift
725 ac_cv_prog_CC="$@"
726 fi
727fi
728fi
729fi
730CC="$ac_cv_prog_CC"
731if test -n "$CC"; then
732 echo "$ac_t""$CC" 1>&6
733else
734 echo "$ac_t""no" 1>&6
735fi
736
Eric Pouech18ad24a2000-01-16 22:16:33 +0000737 if test -z "$CC"; then
738 case "`uname -s`" in
739 *win32* | *WIN32*)
740 # Extract the first word of "cl", so it can be a program name with args.
741set dummy cl; ac_word=$2
742echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Alexandre Julliard2f158c22000-06-14 21:45:38 +0000743echo "configure:744: checking for $ac_word" >&5
Eric Pouech18ad24a2000-01-16 22:16:33 +0000744if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
745 echo $ac_n "(cached) $ac_c" 1>&6
746else
747 if test -n "$CC"; then
748 ac_cv_prog_CC="$CC" # Let the user override the test.
749else
750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
751 ac_dummy="$PATH"
752 for ac_dir in $ac_dummy; do
753 test -z "$ac_dir" && ac_dir=.
754 if test -f $ac_dir/$ac_word; then
755 ac_cv_prog_CC="cl"
756 break
757 fi
758 done
759 IFS="$ac_save_ifs"
760fi
761fi
762CC="$ac_cv_prog_CC"
763if test -n "$CC"; then
764 echo "$ac_t""$CC" 1>&6
765else
766 echo "$ac_t""no" 1>&6
767fi
768 ;;
769 esac
770 fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000771 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
772fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000773
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000774echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Alexandre Julliard2f158c22000-06-14 21:45:38 +0000775echo "configure:776: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000776
777ac_ext=c
778# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
779ac_cpp='$CPP $CPPFLAGS'
780ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Eric Pouech18ad24a2000-01-16 22:16:33 +0000781ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000782cross_compiling=$ac_cv_prog_cc_cross
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000783
Eric Pouech18ad24a2000-01-16 22:16:33 +0000784cat > conftest.$ac_ext << EOF
785
Alexandre Julliard2f158c22000-06-14 21:45:38 +0000786#line 787 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000787#include "confdefs.h"
Eric Pouech18ad24a2000-01-16 22:16:33 +0000788
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000789main(){return(0);}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000790EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +0000791if { (eval echo configure:792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000792 ac_cv_prog_cc_works=yes
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000793 # If we can't run a trivial program, we are probably using a cross compiler.
794 if (./conftest; exit) 2>/dev/null; then
795 ac_cv_prog_cc_cross=no
796 else
797 ac_cv_prog_cc_cross=yes
798 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000799else
800 echo "configure: failed program was:" >&5
801 cat conftest.$ac_ext >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000802 ac_cv_prog_cc_works=no
803fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000804rm -fr conftest*
Eric Pouech18ad24a2000-01-16 22:16:33 +0000805ac_ext=c
806# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
807ac_cpp='$CPP $CPPFLAGS'
808ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
809ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
810cross_compiling=$ac_cv_prog_cc_cross
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000811
812echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
813if test $ac_cv_prog_cc_works = no; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000814 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000815fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000816echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Alexandre Julliard2f158c22000-06-14 21:45:38 +0000817echo "configure:818: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000818echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
819cross_compiling=$ac_cv_prog_cc_cross
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000820
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000821echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Alexandre Julliard2f158c22000-06-14 21:45:38 +0000822echo "configure:823: checking whether we are using GNU C" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000823if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
824 echo $ac_n "(cached) $ac_c" 1>&6
825else
826 cat > conftest.c <<EOF
827#ifdef __GNUC__
828 yes;
829#endif
830EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +0000831if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000832 ac_cv_prog_gcc=yes
833else
834 ac_cv_prog_gcc=no
835fi
836fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000837
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000838echo "$ac_t""$ac_cv_prog_gcc" 1>&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000839
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000840if test $ac_cv_prog_gcc = yes; then
841 GCC=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +0000842else
843 GCC=
844fi
845
846ac_test_CFLAGS="${CFLAGS+set}"
847ac_save_CFLAGS="$CFLAGS"
848CFLAGS=
849echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Alexandre Julliard2f158c22000-06-14 21:45:38 +0000850echo "configure:851: checking whether ${CC-cc} accepts -g" >&5
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000851if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000852 echo $ac_n "(cached) $ac_c" 1>&6
853else
854 echo 'void f(){}' > conftest.c
855if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000856 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000857else
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000858 ac_cv_prog_cc_g=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000859fi
860rm -f conftest*
861
862fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000863
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000864echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
Eric Pouech18ad24a2000-01-16 22:16:33 +0000865if test "$ac_test_CFLAGS" = set; then
866 CFLAGS="$ac_save_CFLAGS"
867elif test $ac_cv_prog_cc_g = yes; then
868 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000869 CFLAGS="-g -O2"
870 else
Eric Pouech18ad24a2000-01-16 22:16:33 +0000871 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000872 fi
873else
Eric Pouech18ad24a2000-01-16 22:16:33 +0000874 if test "$GCC" = yes; then
875 CFLAGS="-O2"
876 else
877 CFLAGS=
878 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000879fi
880
881echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Alexandre Julliard2f158c22000-06-14 21:45:38 +0000882echo "configure:883: checking how to run the C preprocessor" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000883# On Suns, sometimes $CPP names a directory.
884if test -n "$CPP" && test -d "$CPP"; then
885 CPP=
886fi
887if test -z "$CPP"; then
888if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
889 echo $ac_n "(cached) $ac_c" 1>&6
890else
891 # This must be in double quotes, not single quotes, because CPP may get
892 # substituted into the Makefile and "${CC-cc}" will confuse make.
893 CPP="${CC-cc} -E"
894 # On the NeXT, cc -E runs the code through the compiler's parser,
895 # not just through cpp.
896 cat > conftest.$ac_ext <<EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +0000897#line 898 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000898#include "confdefs.h"
899#include <assert.h>
900Syntax Error
901EOF
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000902ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliard2f158c22000-06-14 21:45:38 +0000903{ (eval echo configure:904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +0000904ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000905if test -z "$ac_err"; then
906 :
907else
908 echo "$ac_err" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000909 echo "configure: failed program was:" >&5
910 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000911 rm -rf conftest*
912 CPP="${CC-cc} -E -traditional-cpp"
913 cat > conftest.$ac_ext <<EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +0000914#line 915 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000915#include "confdefs.h"
916#include <assert.h>
917Syntax Error
918EOF
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000919ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliard2f158c22000-06-14 21:45:38 +0000920{ (eval echo configure:921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +0000921ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
922if test -z "$ac_err"; then
923 :
924else
925 echo "$ac_err" >&5
926 echo "configure: failed program was:" >&5
927 cat conftest.$ac_ext >&5
928 rm -rf conftest*
929 CPP="${CC-cc} -nologo -E"
930 cat > conftest.$ac_ext <<EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +0000931#line 932 "configure"
Eric Pouech18ad24a2000-01-16 22:16:33 +0000932#include "confdefs.h"
933#include <assert.h>
934Syntax Error
935EOF
936ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliard2f158c22000-06-14 21:45:38 +0000937{ (eval echo configure:938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +0000938ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000939if test -z "$ac_err"; then
940 :
941else
942 echo "$ac_err" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000943 echo "configure: failed program was:" >&5
944 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000945 rm -rf conftest*
946 CPP=/lib/cpp
947fi
948rm -f conftest*
949fi
950rm -f conftest*
Eric Pouech18ad24a2000-01-16 22:16:33 +0000951fi
952rm -f conftest*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000953 ac_cv_prog_CPP="$CPP"
954fi
955 CPP="$ac_cv_prog_CPP"
956else
957 ac_cv_prog_CPP="$CPP"
958fi
959echo "$ac_t""$CPP" 1>&6
960
961# If we find X, set shell vars x_includes and x_libraries to the
962# paths, otherwise set no_x=yes.
963# Uses ac_ vars as temps to allow command line to override cache and checks.
964# --without-x overrides everything else, but does not touch the cache.
965echo $ac_n "checking for X""... $ac_c" 1>&6
Alexandre Julliard2f158c22000-06-14 21:45:38 +0000966echo "configure:967: checking for X" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000967
968# Check whether --with-x or --without-x was given.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000969if test "${with_x+set}" = set; then
970 withval="$with_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000971 :
972fi
973
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000974# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000975if test "x$with_x" = xno; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000976 # The user explicitly disabled X.
977 have_x=disabled
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000978else
979 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000980 # Both variables are already set.
981 have_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000982 else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000983if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000984 echo $ac_n "(cached) $ac_c" 1>&6
985else
986 # One or both of the vars are not set, and there is no cached value.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000987ac_x_includes=NO ac_x_libraries=NO
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000988rm -fr conftestdir
989if mkdir conftestdir; then
990 cd conftestdir
991 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
992 cat > Imakefile <<'EOF'
993acfindx:
994 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
995EOF
996 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000997 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000998 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000999 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1000 for ac_extension in a so sl; do
1001 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1002 test -f $ac_im_libdir/libX11.$ac_extension; then
1003 ac_im_usrlibdir=$ac_im_libdir; break
1004 fi
1005 done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001006 # Screen out bogus values from the imake configuration. They are
1007 # bogus both because they are the default anyway, and because
1008 # using them would break gcc on systems where it needs fixed includes.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001009 case "$ac_im_incroot" in
1010 /usr/include) ;;
1011 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1012 esac
1013 case "$ac_im_usrlibdir" in
1014 /usr/lib | /lib) ;;
1015 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1016 esac
1017 fi
1018 cd ..
1019 rm -fr conftestdir
1020fi
1021
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001022if test "$ac_x_includes" = NO; then
1023 # Guess where to find include files, by looking for this one X11 .h file.
1024 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1025
1026 # First, try using that file with no special directory specified.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001027cat > conftest.$ac_ext <<EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001028#line 1029 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001029#include "confdefs.h"
1030#include <$x_direct_test_include>
1031EOF
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001032ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001033{ (eval echo configure:1034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00001034ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001035if test -z "$ac_err"; then
1036 rm -rf conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001037 # We can compile using X headers with no special include directory.
1038ac_x_includes=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001039else
1040 echo "$ac_err" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001041 echo "configure: failed program was:" >&5
1042 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001043 rm -rf conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001044 # Look for the header file in a standard set of common directories.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001045# Check X11 before X11Rn because it is often a symlink to the current release.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001046 for ac_dir in \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001047 /usr/X11/include \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001048 /usr/X11R6/include \
1049 /usr/X11R5/include \
1050 /usr/X11R4/include \
1051 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001052 /usr/include/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001053 /usr/include/X11R6 \
1054 /usr/include/X11R5 \
1055 /usr/include/X11R4 \
1056 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001057 /usr/local/X11/include \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001058 /usr/local/X11R6/include \
1059 /usr/local/X11R5/include \
1060 /usr/local/X11R4/include \
1061 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001062 /usr/local/include/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001063 /usr/local/include/X11R6 \
1064 /usr/local/include/X11R5 \
1065 /usr/local/include/X11R4 \
1066 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001067 /usr/X386/include \
1068 /usr/x386/include \
1069 /usr/XFree86/include/X11 \
1070 \
1071 /usr/include \
1072 /usr/local/include \
1073 /usr/unsupported/include \
1074 /usr/athena/include \
1075 /usr/local/x11r5/include \
1076 /usr/lpp/Xamples/include \
1077 \
1078 /usr/openwin/include \
1079 /usr/openwin/share/include \
1080 ; \
1081 do
1082 if test -r "$ac_dir/$x_direct_test_include"; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001083 ac_x_includes=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001084 break
1085 fi
1086 done
1087fi
1088rm -f conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001089fi # $ac_x_includes = NO
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001090
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001091if test "$ac_x_libraries" = NO; then
1092 # Check for the libraries.
1093
1094 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1095 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1096
1097 # See if we find them without any special options.
1098 # Don't add to $LIBS permanently.
1099 ac_save_LIBS="$LIBS"
1100 LIBS="-l$x_direct_test_library $LIBS"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001101cat > conftest.$ac_ext <<EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001102#line 1103 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001103#include "confdefs.h"
1104
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001105int main() {
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001106${x_direct_test_function}()
1107; return 0; }
1108EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001109if { (eval echo configure:1110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001110 rm -rf conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001111 LIBS="$ac_save_LIBS"
1112# We can link X programs with no special library path.
1113ac_x_libraries=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001114else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001115 echo "configure: failed program was:" >&5
1116 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001117 rm -rf conftest*
1118 LIBS="$ac_save_LIBS"
1119# First see if replacing the include by lib works.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001120# Check X11 before X11Rn because it is often a symlink to the current release.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001121for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001122 /usr/X11/lib \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001123 /usr/X11R6/lib \
1124 /usr/X11R5/lib \
1125 /usr/X11R4/lib \
1126 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001127 /usr/lib/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001128 /usr/lib/X11R6 \
1129 /usr/lib/X11R5 \
1130 /usr/lib/X11R4 \
1131 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001132 /usr/local/X11/lib \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001133 /usr/local/X11R6/lib \
1134 /usr/local/X11R5/lib \
1135 /usr/local/X11R4/lib \
1136 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001137 /usr/local/lib/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001138 /usr/local/lib/X11R6 \
1139 /usr/local/lib/X11R5 \
1140 /usr/local/lib/X11R4 \
1141 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001142 /usr/X386/lib \
1143 /usr/x386/lib \
1144 /usr/XFree86/lib/X11 \
1145 \
1146 /usr/lib \
1147 /usr/local/lib \
1148 /usr/unsupported/lib \
1149 /usr/athena/lib \
1150 /usr/local/x11r5/lib \
1151 /usr/lpp/Xamples/lib \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001152 /lib/usr/lib/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001153 \
1154 /usr/openwin/lib \
1155 /usr/openwin/share/lib \
1156 ; \
1157do
1158 for ac_extension in a so sl; do
1159 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001160 ac_x_libraries=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001161 break 2
1162 fi
1163 done
1164done
1165fi
1166rm -f conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001167fi # $ac_x_libraries = NO
1168
1169if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1170 # Didn't find X anywhere. Cache the known absence of X.
1171 ac_cv_have_x="have_x=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001172else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001173 # Record where we found X for the cache.
1174 ac_cv_have_x="have_x=yes \
1175 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001176fi
1177fi
1178 fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001179 eval "$ac_cv_have_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001180fi # $with_x != no
1181
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001182if test "$have_x" != yes; then
1183 echo "$ac_t""$have_x" 1>&6
1184 no_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001185else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001186 # If each of the values was on the command line, it overrides each guess.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001187 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1188 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001189 # Update the cache value to reflect the command line values.
1190 ac_cv_have_x="have_x=yes \
1191 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001192 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1193fi
1194
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001195if test "$no_x" = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001196 # Not all programs may use this symbol, but it does not hurt to define it.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001197 cat >> confdefs.h <<\EOF
1198#define X_DISPLAY_MISSING 1
1199EOF
1200
1201 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001202else
1203 if test -n "$x_includes"; then
1204 X_CFLAGS="$X_CFLAGS -I$x_includes"
1205 fi
1206
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001207 # It would also be nice to do this for all -L options, not just this one.
1208 if test -n "$x_libraries"; then
1209 X_LIBS="$X_LIBS -L$x_libraries"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001210 # For Solaris; some versions of Sun CC require a space after -R and
1211 # others require no space. Words are not sufficient . . . .
1212 case "`(uname -sr) 2>/dev/null`" in
1213 "SunOS 5"*)
1214 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001215echo "configure:1216: checking whether -R must be followed by a space" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001216 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1217 cat > conftest.$ac_ext <<EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001218#line 1219 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001219#include "confdefs.h"
1220
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001221int main() {
1222
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001223; return 0; }
1224EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001225if { (eval echo configure:1226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001226 rm -rf conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001227 ac_R_nospace=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001228else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001229 echo "configure: failed program was:" >&5
1230 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001231 rm -rf conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001232 ac_R_nospace=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001233fi
1234rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001235 if test $ac_R_nospace = yes; then
1236 echo "$ac_t""no" 1>&6
1237 X_LIBS="$X_LIBS -R$x_libraries"
1238 else
1239 LIBS="$ac_xsave_LIBS -R $x_libraries"
1240 cat > conftest.$ac_ext <<EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001241#line 1242 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001242#include "confdefs.h"
1243
1244int main() {
1245
1246; return 0; }
1247EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001248if { (eval echo configure:1249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001249 rm -rf conftest*
1250 ac_R_space=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001251else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001252 echo "configure: failed program was:" >&5
1253 cat conftest.$ac_ext >&5
1254 rm -rf conftest*
1255 ac_R_space=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001256fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001257rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001258 if test $ac_R_space = yes; then
1259 echo "$ac_t""yes" 1>&6
1260 X_LIBS="$X_LIBS -R $x_libraries"
1261 else
1262 echo "$ac_t""neither works" 1>&6
1263 fi
1264 fi
1265 LIBS="$ac_xsave_LIBS"
1266 esac
1267 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001268
1269 # Check for system-dependent libraries X programs must link with.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001270 # Do this before checking for the system-independent R6 libraries
1271 # (-lICE), since we may need -lsocket or whatever for X linking.
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001272
1273 if test "$ISC" = yes; then
1274 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1275 else
1276 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1277 # libraries were built with DECnet support. And karl@cs.umb.edu says
1278 # the Alpha needs dnet_stub (dnet does not exist).
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001279 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001280echo "configure:1281: checking for dnet_ntoa in -ldnet" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001281ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001282if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001283 echo $ac_n "(cached) $ac_c" 1>&6
1284else
1285 ac_save_LIBS="$LIBS"
1286LIBS="-ldnet $LIBS"
1287cat > conftest.$ac_ext <<EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001288#line 1289 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001289#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001290/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001291/* We use char because int might match the return type of a gcc2
1292 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001293char dnet_ntoa();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001294
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001295int main() {
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001296dnet_ntoa()
1297; return 0; }
1298EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001299if { (eval echo configure:1300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001300 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001301 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001302else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001303 echo "configure: failed program was:" >&5
1304 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001305 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001306 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001307fi
1308rm -f conftest*
1309LIBS="$ac_save_LIBS"
1310
1311fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001312if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001313 echo "$ac_t""yes" 1>&6
1314 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1315else
1316 echo "$ac_t""no" 1>&6
1317fi
1318
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001319 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001320 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001321echo "configure:1322: checking for dnet_ntoa in -ldnet_stub" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001322ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001323if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001324 echo $ac_n "(cached) $ac_c" 1>&6
1325else
1326 ac_save_LIBS="$LIBS"
1327LIBS="-ldnet_stub $LIBS"
1328cat > conftest.$ac_ext <<EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001329#line 1330 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001330#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001331/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001332/* We use char because int might match the return type of a gcc2
1333 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001334char dnet_ntoa();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001335
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001336int main() {
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001337dnet_ntoa()
1338; return 0; }
1339EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001340if { (eval echo configure:1341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001341 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001342 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001343else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001344 echo "configure: failed program was:" >&5
1345 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001346 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001347 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001348fi
1349rm -f conftest*
1350LIBS="$ac_save_LIBS"
1351
1352fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001353if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001354 echo "$ac_t""yes" 1>&6
1355 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1356else
1357 echo "$ac_t""no" 1>&6
1358fi
1359
1360 fi
1361
1362 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1363 # to get the SysV transport functions.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001364 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1365 # needs -lnsl.
1366 # The nsl library prevents programs from opening the X display
1367 # on Irix 5.2, according to dickey@clark.net.
1368 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001369echo "configure:1370: checking for gethostbyname" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001370if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1371 echo $ac_n "(cached) $ac_c" 1>&6
1372else
1373 cat > conftest.$ac_ext <<EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001374#line 1375 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001375#include "confdefs.h"
1376/* System header to define __stub macros and hopefully few prototypes,
1377 which can conflict with char gethostbyname(); below. */
1378#include <assert.h>
1379/* Override any gcc2 internal prototype to avoid an error. */
1380/* We use char because int might match the return type of a gcc2
1381 builtin and then its argument prototype would still apply. */
1382char gethostbyname();
1383
1384int main() {
1385
1386/* The GNU C library defines this for functions which it implements
1387 to always fail with ENOSYS. Some functions are actually named
1388 something starting with __ and the normal name is an alias. */
1389#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1390choke me
1391#else
1392gethostbyname();
1393#endif
1394
1395; return 0; }
1396EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001397if { (eval echo configure:1398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001398 rm -rf conftest*
1399 eval "ac_cv_func_gethostbyname=yes"
1400else
1401 echo "configure: failed program was:" >&5
1402 cat conftest.$ac_ext >&5
1403 rm -rf conftest*
1404 eval "ac_cv_func_gethostbyname=no"
1405fi
1406rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001407fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001408
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001409if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1410 echo "$ac_t""yes" 1>&6
1411 :
1412else
1413 echo "$ac_t""no" 1>&6
1414fi
1415
1416 if test $ac_cv_func_gethostbyname = no; then
1417 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001418echo "configure:1419: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001419ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001420if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001421 echo $ac_n "(cached) $ac_c" 1>&6
1422else
1423 ac_save_LIBS="$LIBS"
1424LIBS="-lnsl $LIBS"
1425cat > conftest.$ac_ext <<EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001426#line 1427 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001427#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001428/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001429/* We use char because int might match the return type of a gcc2
1430 builtin and then its argument prototype would still apply. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001431char gethostbyname();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001432
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001433int main() {
1434gethostbyname()
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001435; return 0; }
1436EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001437if { (eval echo configure:1438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001438 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001439 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001440else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001441 echo "configure: failed program was:" >&5
1442 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001443 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001444 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001445fi
1446rm -f conftest*
1447LIBS="$ac_save_LIBS"
1448
1449fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001450if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001451 echo "$ac_t""yes" 1>&6
1452 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1453else
1454 echo "$ac_t""no" 1>&6
1455fi
1456
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001457 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001458
1459 # lieder@skyler.mavd.honeywell.com says without -lsocket,
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001460 # socket/setsockopt and other routines are undefined under SCO ODT
1461 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1462 # on later versions), says simon@lia.di.epfl.ch: it contains
1463 # gethostby* variants that don't use the nameserver (or something).
1464 # -lsocket must be given before -lnsl if both are needed.
1465 # We assume that if connect needs -lnsl, so does gethostbyname.
1466 echo $ac_n "checking for connect""... $ac_c" 1>&6
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001467echo "configure:1468: checking for connect" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001468if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1470else
1471 cat > conftest.$ac_ext <<EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001472#line 1473 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001473#include "confdefs.h"
1474/* System header to define __stub macros and hopefully few prototypes,
1475 which can conflict with char connect(); below. */
1476#include <assert.h>
1477/* Override any gcc2 internal prototype to avoid an error. */
1478/* We use char because int might match the return type of a gcc2
1479 builtin and then its argument prototype would still apply. */
1480char connect();
1481
1482int main() {
1483
1484/* The GNU C library defines this for functions which it implements
1485 to always fail with ENOSYS. Some functions are actually named
1486 something starting with __ and the normal name is an alias. */
1487#if defined (__stub_connect) || defined (__stub___connect)
1488choke me
1489#else
1490connect();
1491#endif
1492
1493; return 0; }
1494EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001495if { (eval echo configure:1496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001496 rm -rf conftest*
1497 eval "ac_cv_func_connect=yes"
1498else
1499 echo "configure: failed program was:" >&5
1500 cat conftest.$ac_ext >&5
1501 rm -rf conftest*
1502 eval "ac_cv_func_connect=no"
1503fi
1504rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001505fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001506
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001507if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1508 echo "$ac_t""yes" 1>&6
1509 :
1510else
1511 echo "$ac_t""no" 1>&6
1512fi
1513
1514 if test $ac_cv_func_connect = no; then
1515 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001516echo "configure:1517: checking for connect in -lsocket" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001517ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001518if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001519 echo $ac_n "(cached) $ac_c" 1>&6
1520else
1521 ac_save_LIBS="$LIBS"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001522LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001523cat > conftest.$ac_ext <<EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001524#line 1525 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001525#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001526/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001527/* We use char because int might match the return type of a gcc2
1528 builtin and then its argument prototype would still apply. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001529char connect();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001530
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001531int main() {
1532connect()
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001533; return 0; }
1534EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001535if { (eval echo configure:1536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001536 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001537 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001538else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001539 echo "configure: failed program was:" >&5
1540 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001541 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001542 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001543fi
1544rm -f conftest*
1545LIBS="$ac_save_LIBS"
1546
1547fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001548if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001549 echo "$ac_t""yes" 1>&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001550 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001551else
1552 echo "$ac_t""no" 1>&6
1553fi
1554
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001555 fi
1556
1557 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1558 echo $ac_n "checking for remove""... $ac_c" 1>&6
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001559echo "configure:1560: checking for remove" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001560if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1561 echo $ac_n "(cached) $ac_c" 1>&6
1562else
1563 cat > conftest.$ac_ext <<EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001564#line 1565 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001565#include "confdefs.h"
1566/* System header to define __stub macros and hopefully few prototypes,
1567 which can conflict with char remove(); below. */
1568#include <assert.h>
1569/* Override any gcc2 internal prototype to avoid an error. */
1570/* We use char because int might match the return type of a gcc2
1571 builtin and then its argument prototype would still apply. */
1572char remove();
1573
1574int main() {
1575
1576/* The GNU C library defines this for functions which it implements
1577 to always fail with ENOSYS. Some functions are actually named
1578 something starting with __ and the normal name is an alias. */
1579#if defined (__stub_remove) || defined (__stub___remove)
1580choke me
1581#else
1582remove();
1583#endif
1584
1585; return 0; }
1586EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001587if { (eval echo configure:1588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001588 rm -rf conftest*
1589 eval "ac_cv_func_remove=yes"
1590else
1591 echo "configure: failed program was:" >&5
1592 cat conftest.$ac_ext >&5
1593 rm -rf conftest*
1594 eval "ac_cv_func_remove=no"
1595fi
1596rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001597fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001598
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001599if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1600 echo "$ac_t""yes" 1>&6
1601 :
1602else
1603 echo "$ac_t""no" 1>&6
1604fi
1605
1606 if test $ac_cv_func_remove = no; then
1607 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001608echo "configure:1609: checking for remove in -lposix" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001609ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001610if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1611 echo $ac_n "(cached) $ac_c" 1>&6
1612else
1613 ac_save_LIBS="$LIBS"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001614LIBS="-lposix $LIBS"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001615cat > conftest.$ac_ext <<EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001616#line 1617 "configure"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001617#include "confdefs.h"
1618/* Override any gcc2 internal prototype to avoid an error. */
1619/* We use char because int might match the return type of a gcc2
1620 builtin and then its argument prototype would still apply. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001621char remove();
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001622
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001623int main() {
1624remove()
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001625; return 0; }
1626EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001627if { (eval echo configure:1628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001628 rm -rf conftest*
1629 eval "ac_cv_lib_$ac_lib_var=yes"
1630else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001631 echo "configure: failed program was:" >&5
1632 cat conftest.$ac_ext >&5
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001633 rm -rf conftest*
1634 eval "ac_cv_lib_$ac_lib_var=no"
1635fi
1636rm -f conftest*
1637LIBS="$ac_save_LIBS"
1638
1639fi
1640if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1641 echo "$ac_t""yes" 1>&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001642 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001643else
1644 echo "$ac_t""no" 1>&6
1645fi
1646
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001647 fi
1648
1649 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1650 echo $ac_n "checking for shmat""... $ac_c" 1>&6
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001651echo "configure:1652: checking for shmat" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001652if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1653 echo $ac_n "(cached) $ac_c" 1>&6
1654else
1655 cat > conftest.$ac_ext <<EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001656#line 1657 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001657#include "confdefs.h"
1658/* System header to define __stub macros and hopefully few prototypes,
1659 which can conflict with char shmat(); below. */
1660#include <assert.h>
1661/* Override any gcc2 internal prototype to avoid an error. */
1662/* We use char because int might match the return type of a gcc2
1663 builtin and then its argument prototype would still apply. */
1664char shmat();
1665
1666int main() {
1667
1668/* The GNU C library defines this for functions which it implements
1669 to always fail with ENOSYS. Some functions are actually named
1670 something starting with __ and the normal name is an alias. */
1671#if defined (__stub_shmat) || defined (__stub___shmat)
1672choke me
1673#else
1674shmat();
1675#endif
1676
1677; return 0; }
1678EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001679if { (eval echo configure:1680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001680 rm -rf conftest*
1681 eval "ac_cv_func_shmat=yes"
1682else
1683 echo "configure: failed program was:" >&5
1684 cat conftest.$ac_ext >&5
1685 rm -rf conftest*
1686 eval "ac_cv_func_shmat=no"
1687fi
1688rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001689fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001690
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001691if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1692 echo "$ac_t""yes" 1>&6
1693 :
1694else
1695 echo "$ac_t""no" 1>&6
1696fi
1697
1698 if test $ac_cv_func_shmat = no; then
1699 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001700echo "configure:1701: checking for shmat in -lipc" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001701ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1702if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1703 echo $ac_n "(cached) $ac_c" 1>&6
1704else
1705 ac_save_LIBS="$LIBS"
1706LIBS="-lipc $LIBS"
1707cat > conftest.$ac_ext <<EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001708#line 1709 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001709#include "confdefs.h"
1710/* Override any gcc2 internal prototype to avoid an error. */
1711/* We use char because int might match the return type of a gcc2
1712 builtin and then its argument prototype would still apply. */
1713char shmat();
1714
1715int main() {
1716shmat()
1717; return 0; }
1718EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001719if { (eval echo configure:1720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001720 rm -rf conftest*
1721 eval "ac_cv_lib_$ac_lib_var=yes"
1722else
1723 echo "configure: failed program was:" >&5
1724 cat conftest.$ac_ext >&5
1725 rm -rf conftest*
1726 eval "ac_cv_lib_$ac_lib_var=no"
1727fi
1728rm -f conftest*
1729LIBS="$ac_save_LIBS"
1730
1731fi
1732if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1733 echo "$ac_t""yes" 1>&6
1734 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1735else
1736 echo "$ac_t""no" 1>&6
1737fi
1738
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001739 fi
1740 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001741
1742 # Check for libraries that X11R6 Xt/Xaw programs need.
1743 ac_save_LDFLAGS="$LDFLAGS"
1744 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1745 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1746 # check for ICE first), but we must link in the order -lSM -lICE or
1747 # we get undefined symbols. So assume we have SM if we have ICE.
1748 # These have to be linked with before -lX11, unlike the other
1749 # libraries we check for below, so use a different variable.
1750 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1751 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001752echo "configure:1753: checking for IceConnectionNumber in -lICE" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001753ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1754if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1755 echo $ac_n "(cached) $ac_c" 1>&6
1756else
1757 ac_save_LIBS="$LIBS"
Eric Pouech18ad24a2000-01-16 22:16:33 +00001758LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001759cat > conftest.$ac_ext <<EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001760#line 1761 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001761#include "confdefs.h"
1762/* Override any gcc2 internal prototype to avoid an error. */
1763/* We use char because int might match the return type of a gcc2
1764 builtin and then its argument prototype would still apply. */
1765char IceConnectionNumber();
1766
1767int main() {
1768IceConnectionNumber()
1769; return 0; }
1770EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001771if { (eval echo configure:1772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001772 rm -rf conftest*
1773 eval "ac_cv_lib_$ac_lib_var=yes"
1774else
1775 echo "configure: failed program was:" >&5
1776 cat conftest.$ac_ext >&5
1777 rm -rf conftest*
1778 eval "ac_cv_lib_$ac_lib_var=no"
1779fi
1780rm -f conftest*
1781LIBS="$ac_save_LIBS"
1782
1783fi
1784if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1785 echo "$ac_t""yes" 1>&6
1786 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1787else
1788 echo "$ac_t""no" 1>&6
1789fi
1790
1791 LDFLAGS="$ac_save_LDFLAGS"
1792
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001793fi
1794
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001795for ac_prog in 'bison -y' byacc
1796do
1797# Extract the first word of "$ac_prog", so it can be a program name with args.
1798set dummy $ac_prog; ac_word=$2
1799echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001800echo "configure:1801: checking for $ac_word" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001801if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1802 echo $ac_n "(cached) $ac_c" 1>&6
1803else
1804 if test -n "$YACC"; then
1805 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1806else
Eric Pouech18ad24a2000-01-16 22:16:33 +00001807 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1808 ac_dummy="$PATH"
1809 for ac_dir in $ac_dummy; do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001810 test -z "$ac_dir" && ac_dir=.
1811 if test -f $ac_dir/$ac_word; then
1812 ac_cv_prog_YACC="$ac_prog"
1813 break
1814 fi
1815 done
1816 IFS="$ac_save_ifs"
1817fi
1818fi
1819YACC="$ac_cv_prog_YACC"
1820if test -n "$YACC"; then
1821 echo "$ac_t""$YACC" 1>&6
1822else
1823 echo "$ac_t""no" 1>&6
1824fi
1825
1826test -n "$YACC" && break
1827done
1828test -n "$YACC" || YACC="yacc"
1829
1830# Extract the first word of "flex", so it can be a program name with args.
1831set dummy flex; ac_word=$2
1832echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001833echo "configure:1834: checking for $ac_word" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001834if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1835 echo $ac_n "(cached) $ac_c" 1>&6
1836else
1837 if test -n "$LEX"; then
1838 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1839else
Eric Pouech18ad24a2000-01-16 22:16:33 +00001840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1841 ac_dummy="$PATH"
1842 for ac_dir in $ac_dummy; do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001843 test -z "$ac_dir" && ac_dir=.
1844 if test -f $ac_dir/$ac_word; then
1845 ac_cv_prog_LEX="flex"
1846 break
1847 fi
1848 done
1849 IFS="$ac_save_ifs"
1850 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1851fi
1852fi
1853LEX="$ac_cv_prog_LEX"
1854if test -n "$LEX"; then
1855 echo "$ac_t""$LEX" 1>&6
1856else
1857 echo "$ac_t""no" 1>&6
1858fi
1859
1860if test -z "$LEXLIB"
1861then
1862 case "$LEX" in
1863 flex*) ac_lib=fl ;;
1864 *) ac_lib=l ;;
1865 esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001866 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001867echo "configure:1868: checking for yywrap in -l$ac_lib" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001868ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001869if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001870 echo $ac_n "(cached) $ac_c" 1>&6
1871else
1872 ac_save_LIBS="$LIBS"
1873LIBS="-l$ac_lib $LIBS"
1874cat > conftest.$ac_ext <<EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001875#line 1876 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001876#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001877/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001878/* We use char because int might match the return type of a gcc2
1879 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001880char yywrap();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001881
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001882int main() {
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001883yywrap()
1884; return 0; }
1885EOF
Alexandre Julliard2f158c22000-06-14 21:45:38 +00001886if { (eval echo configure:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001887 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001888 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001889else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001890 echo "configure: failed program was:" >&5
1891 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001892 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001893 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001894fi
1895rm -f conftest*
1896LIBS="$ac_save_LIBS"
1897
1898fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001899if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001900 echo "$ac_t""yes" 1>&6
1901 LEXLIB="-l$ac_lib"
1902else
1903 echo "$ac_t""no" 1>&6
1904fi
1905
1906fi
1907
Marcus Meissnerb53bb412000-07-23 13:41:51 +00001908for ac_prog in $LEX flex lex
1909do
1910# Extract the first word of "$ac_prog", so it can be a program name with args.
1911set dummy $ac_prog; ac_word=$2
1912echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1913echo "configure:1914: checking for $ac_word" >&5
1914if eval "test \"`echo '$''{'ac_cv_prog_XLEX'+set}'`\" = set"; then
1915 echo $ac_n "(cached) $ac_c" 1>&6
1916else
1917 if test -n "$XLEX"; then
1918 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
1919else
1920 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1921 ac_dummy="$PATH"
1922 for ac_dir in $ac_dummy; do
1923 test -z "$ac_dir" && ac_dir=.
1924 if test -f $ac_dir/$ac_word; then
1925 ac_cv_prog_XLEX="$ac_prog"
1926 break
1927 fi
1928 done
1929 IFS="$ac_save_ifs"
1930fi
1931fi
1932XLEX="$ac_cv_prog_XLEX"
1933if test -n "$XLEX"; then
1934 echo "$ac_t""$XLEX" 1>&6
1935else
1936 echo "$ac_t""no" 1>&6
1937fi
1938
1939test -n "$XLEX" && break
1940done
1941test -n "$XLEX" || XLEX="none"
1942
1943if test "$XLEX" = "none"
1944then
1945 echo "*** Error: No suitable lex found. ***"
1946 echo " Please install the 'flex' package."
1947 exit 1
1948fi
1949echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1950echo "configure:1951: checking lex output file root" >&5
1951if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1952 echo $ac_n "(cached) $ac_c" 1>&6
1953else
1954 # The minimal lex program is just a single line: %%. But some broken lexes
1955# (Solaris, I think it was) want two %% lines, so accommodate them.
1956echo '%%
1957%%' | $LEX
1958if test -f lex.yy.c; then
1959 ac_cv_prog_lex_root=lex.yy
1960elif test -f lexyy.c; then
1961 ac_cv_prog_lex_root=lexyy
1962else
1963 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1964fi
1965fi
1966
1967echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1968LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1969
1970echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1971echo "configure:1972: checking whether yytext is a pointer" >&5
1972if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1973 echo $ac_n "(cached) $ac_c" 1>&6
1974else
1975 # POSIX says lex can declare yytext either as a pointer or an array; the
1976# default is implementation-dependent. Figure out which it is, since
1977# not all implementations provide the %pointer and %array declarations.
1978ac_cv_prog_lex_yytext_pointer=no
1979echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1980ac_save_LIBS="$LIBS"
1981LIBS="$LIBS $LEXLIB"
1982cat > conftest.$ac_ext <<EOF
1983#line 1984 "configure"
1984#include "confdefs.h"
1985`cat $LEX_OUTPUT_ROOT.c`
1986int main() {
1987
1988; return 0; }
1989EOF
1990if { (eval echo configure:1991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1991 rm -rf conftest*
1992 ac_cv_prog_lex_yytext_pointer=yes
1993else
1994 echo "configure: failed program was:" >&5
1995 cat conftest.$ac_ext >&5
1996fi
1997rm -f conftest*
1998LIBS="$ac_save_LIBS"
1999rm -f "${LEX_OUTPUT_ROOT}.c"
2000
2001fi
2002
2003echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2004if test $ac_cv_prog_lex_yytext_pointer = yes; then
2005 cat >> confdefs.h <<\EOF
2006#define YYTEXT_POINTER 1
2007EOF
2008
2009fi
2010
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002011# Extract the first word of "ranlib", so it can be a program name with args.
2012set dummy ranlib; ac_word=$2
2013echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002014echo "configure:2015: checking for $ac_word" >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002015if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2016 echo $ac_n "(cached) $ac_c" 1>&6
2017else
2018 if test -n "$RANLIB"; then
2019 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2020else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002021 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2022 ac_dummy="$PATH"
2023 for ac_dir in $ac_dummy; do
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002024 test -z "$ac_dir" && ac_dir=.
2025 if test -f $ac_dir/$ac_word; then
2026 ac_cv_prog_RANLIB="ranlib"
2027 break
2028 fi
2029 done
2030 IFS="$ac_save_ifs"
2031 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002032fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002033fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002034RANLIB="$ac_cv_prog_RANLIB"
2035if test -n "$RANLIB"; then
2036 echo "$ac_t""$RANLIB" 1>&6
2037else
2038 echo "$ac_t""no" 1>&6
2039fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002040
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002041# Find a good install program. We prefer a C program (faster),
2042# so one script is as good as another. But avoid the broken or
2043# incompatible versions:
2044# SysV /etc/install, /usr/sbin/install
2045# SunOS /usr/etc/install
2046# IRIX /sbin/install
2047# AIX /bin/install
Eric Pouech18ad24a2000-01-16 22:16:33 +00002048# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002049# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2050# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2051# ./install, which can be erroneously created by make from ./install.sh.
2052echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002053echo "configure:2054: checking for a BSD compatible install" >&5
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002054if test -z "$INSTALL"; then
2055if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2056 echo $ac_n "(cached) $ac_c" 1>&6
2057else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002058 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002059 for ac_dir in $PATH; do
2060 # Account for people who put trailing slashes in PATH elements.
2061 case "$ac_dir/" in
2062 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2063 *)
2064 # OSF1 and SCO ODT 3.0 have their own names for install.
Eric Pouech18ad24a2000-01-16 22:16:33 +00002065 # Don't use installbsd from OSF since it installs stuff as root
2066 # by default.
2067 for ac_prog in ginstall scoinst install; do
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002068 if test -f $ac_dir/$ac_prog; then
2069 if test $ac_prog = install &&
2070 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2071 # AIX install. It has an incompatible calling convention.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002072 :
2073 else
2074 ac_cv_path_install="$ac_dir/$ac_prog -c"
2075 break 2
2076 fi
2077 fi
2078 done
2079 ;;
2080 esac
2081 done
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00002082 IFS="$ac_save_IFS"
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002083
2084fi
2085 if test "${ac_cv_path_install+set}" = set; then
2086 INSTALL="$ac_cv_path_install"
2087 else
2088 # As a last resort, use the slow shell script. We don't cache a
2089 # path for INSTALL within a source directory, because that will
2090 # break other packages using the cache if that directory is
2091 # removed, or if the path is relative.
2092 INSTALL="$ac_install_sh"
2093 fi
2094fi
2095echo "$ac_t""$INSTALL" 1>&6
2096
2097# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2098# It thinks the first close brace ends the variable substitution.
2099test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2100
Eric Pouech18ad24a2000-01-16 22:16:33 +00002101test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2102
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002103test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2104
Alexandre Julliard641ee761997-08-04 16:34:36 +00002105echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002106echo "configure:2107: checking whether ln -s works" >&5
Alexandre Julliard641ee761997-08-04 16:34:36 +00002107if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2108 echo $ac_n "(cached) $ac_c" 1>&6
2109else
2110 rm -f conftestdata
2111if ln -s X conftestdata 2>/dev/null
2112then
2113 rm -f conftestdata
2114 ac_cv_prog_LN_S="ln -s"
2115else
2116 ac_cv_prog_LN_S=ln
2117fi
2118fi
2119LN_S="$ac_cv_prog_LN_S"
2120if test "$ac_cv_prog_LN_S" = "ln -s"; then
2121 echo "$ac_t""yes" 1>&6
2122else
2123 echo "$ac_t""no" 1>&6
2124fi
2125
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00002126# Extract the first word of "c2man", so it can be a program name with args.
2127set dummy c2man; ac_word=$2
2128echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002129echo "configure:2130: checking for $ac_word" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00002130if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
2131 echo $ac_n "(cached) $ac_c" 1>&6
2132else
2133 if test -n "$C2MAN"; then
2134 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
2135else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2137 ac_dummy="$PATH"
2138 for ac_dir in $ac_dummy; do
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00002139 test -z "$ac_dir" && ac_dir=.
2140 if test -f $ac_dir/$ac_word; then
2141 ac_cv_prog_C2MAN="c2man"
2142 break
2143 fi
2144 done
2145 IFS="$ac_save_ifs"
Mike McCormacke0df32f2000-08-11 21:15:21 +00002146 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00002147fi
2148fi
2149C2MAN="$ac_cv_prog_C2MAN"
2150if test -n "$C2MAN"; then
2151 echo "$ac_t""$C2MAN" 1>&6
2152else
2153 echo "$ac_t""no" 1>&6
2154fi
2155
James Juranffe6b761999-06-12 08:21:57 +00002156# Extract the first word of "ldconfig", so it can be a program name with args.
2157set dummy ldconfig; ac_word=$2
2158echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002159echo "configure:2160: checking for $ac_word" >&5
James Juranffe6b761999-06-12 08:21:57 +00002160if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
2161 echo $ac_n "(cached) $ac_c" 1>&6
2162else
2163 case "$LDCONFIG" in
2164 /*)
2165 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2166 ;;
Eric Pouech18ad24a2000-01-16 22:16:33 +00002167 ?:/*)
2168 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
2169 ;;
James Juranffe6b761999-06-12 08:21:57 +00002170 *)
Eric Pouech18ad24a2000-01-16 22:16:33 +00002171 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2172 ac_dummy="/sbin:/usr/sbin:$PATH"
2173 for ac_dir in $ac_dummy; do
James Juranffe6b761999-06-12 08:21:57 +00002174 test -z "$ac_dir" && ac_dir=.
2175 if test -f $ac_dir/$ac_word; then
2176 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2177 break
2178 fi
2179 done
2180 IFS="$ac_save_ifs"
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00002181 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00002182 ;;
2183esac
2184fi
2185LDCONFIG="$ac_cv_path_LDCONFIG"
2186if test -n "$LDCONFIG"; then
2187 echo "$ac_t""$LDCONFIG" 1>&6
2188else
2189 echo "$ac_t""no" 1>&6
2190fi
2191
Alexandre Julliard02e90081998-01-04 17:49:09 +00002192
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00002193for ac_prog in lclint lint
2194do
2195# Extract the first word of "$ac_prog", so it can be a program name with args.
2196set dummy $ac_prog; ac_word=$2
2197echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002198echo "configure:2199: checking for $ac_word" >&5
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00002199if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2200 echo $ac_n "(cached) $ac_c" 1>&6
2201else
2202 if test -n "$LINT"; then
2203 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2204else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2206 ac_dummy="$PATH"
2207 for ac_dir in $ac_dummy; do
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00002208 test -z "$ac_dir" && ac_dir=.
2209 if test -f $ac_dir/$ac_word; then
2210 ac_cv_prog_LINT="$ac_prog"
2211 break
2212 fi
2213 done
2214 IFS="$ac_save_ifs"
2215fi
2216fi
2217LINT="$ac_cv_prog_LINT"
2218if test -n "$LINT"; then
2219 echo "$ac_t""$LINT" 1>&6
2220else
2221 echo "$ac_t""no" 1>&6
2222fi
2223
2224test -n "$LINT" && break
2225done
2226
2227if test "$LINT" = "lint"
2228then
2229 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2230 fi
2231
2232
2233
Alexandre Julliard02e90081998-01-04 17:49:09 +00002234
Howard Abrams13277481999-07-10 13:16:29 +00002235echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002236echo "configure:2237: checking for sqrt in -lm" >&5
Howard Abrams13277481999-07-10 13:16:29 +00002237ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2238if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2239 echo $ac_n "(cached) $ac_c" 1>&6
2240else
2241 ac_save_LIBS="$LIBS"
2242LIBS="-lm $LIBS"
2243cat > conftest.$ac_ext <<EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002244#line 2245 "configure"
Howard Abrams13277481999-07-10 13:16:29 +00002245#include "confdefs.h"
2246/* Override any gcc2 internal prototype to avoid an error. */
2247/* We use char because int might match the return type of a gcc2
2248 builtin and then its argument prototype would still apply. */
2249char sqrt();
2250
2251int main() {
2252sqrt()
2253; return 0; }
2254EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002255if { (eval echo configure:2256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Howard Abrams13277481999-07-10 13:16:29 +00002256 rm -rf conftest*
2257 eval "ac_cv_lib_$ac_lib_var=yes"
2258else
2259 echo "configure: failed program was:" >&5
2260 cat conftest.$ac_ext >&5
2261 rm -rf conftest*
2262 eval "ac_cv_lib_$ac_lib_var=no"
2263fi
2264rm -f conftest*
2265LIBS="$ac_save_LIBS"
2266
2267fi
2268if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2269 echo "$ac_t""yes" 1>&6
2270 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2271 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2272 cat >> confdefs.h <<EOF
2273#define $ac_tr_lib 1
2274EOF
2275
2276 LIBS="-lm $LIBS"
2277
2278else
2279 echo "$ac_t""no" 1>&6
2280fi
2281
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002282echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002283echo "configure:2284: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002284ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002285if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliard902da691995-11-05 14:39:02 +00002286 echo $ac_n "(cached) $ac_c" 1>&6
2287else
2288 ac_save_LIBS="$LIBS"
2289LIBS="-li386 $LIBS"
2290cat > conftest.$ac_ext <<EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002291#line 2292 "configure"
Alexandre Julliard902da691995-11-05 14:39:02 +00002292#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002293/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002294/* We use char because int might match the return type of a gcc2
2295 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002296char i386_set_ldt();
Alexandre Julliard902da691995-11-05 14:39:02 +00002297
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002298int main() {
Alexandre Julliard902da691995-11-05 14:39:02 +00002299i386_set_ldt()
2300; return 0; }
2301EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002302if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard902da691995-11-05 14:39:02 +00002303 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002304 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliard902da691995-11-05 14:39:02 +00002305else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002306 echo "configure: failed program was:" >&5
2307 cat conftest.$ac_ext >&5
Alexandre Julliard902da691995-11-05 14:39:02 +00002308 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002309 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliard902da691995-11-05 14:39:02 +00002310fi
2311rm -f conftest*
2312LIBS="$ac_save_LIBS"
2313
2314fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002315if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliard902da691995-11-05 14:39:02 +00002316 echo "$ac_t""yes" 1>&6
Alexandre Julliard02e90081998-01-04 17:49:09 +00002317 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2318 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2319 cat >> confdefs.h <<EOF
2320#define $ac_tr_lib 1
2321EOF
2322
2323 LIBS="-li386 $LIBS"
2324
2325else
2326 echo "$ac_t""no" 1>&6
2327fi
2328
Todd Vierlingecc76691998-12-15 17:49:02 +00002329echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002330echo "configure:2331: checking for _oss_ioctl in -lossaudio" >&5
Todd Vierlingecc76691998-12-15 17:49:02 +00002331ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2332if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2334else
2335 ac_save_LIBS="$LIBS"
2336LIBS="-lossaudio $LIBS"
2337cat > conftest.$ac_ext <<EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002338#line 2339 "configure"
Todd Vierlingecc76691998-12-15 17:49:02 +00002339#include "confdefs.h"
2340/* Override any gcc2 internal prototype to avoid an error. */
2341/* We use char because int might match the return type of a gcc2
2342 builtin and then its argument prototype would still apply. */
2343char _oss_ioctl();
2344
2345int main() {
2346_oss_ioctl()
2347; return 0; }
2348EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002349if { (eval echo configure:2350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Todd Vierlingecc76691998-12-15 17:49:02 +00002350 rm -rf conftest*
2351 eval "ac_cv_lib_$ac_lib_var=yes"
2352else
2353 echo "configure: failed program was:" >&5
2354 cat conftest.$ac_ext >&5
2355 rm -rf conftest*
2356 eval "ac_cv_lib_$ac_lib_var=no"
2357fi
2358rm -f conftest*
2359LIBS="$ac_save_LIBS"
2360
2361fi
2362if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2363 echo "$ac_t""yes" 1>&6
2364 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2365 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2366 cat >> confdefs.h <<EOF
2367#define $ac_tr_lib 1
2368EOF
2369
2370 LIBS="-lossaudio $LIBS"
2371
2372else
2373 echo "$ac_t""no" 1>&6
2374fi
2375
Alexandre Julliard02e90081998-01-04 17:49:09 +00002376echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002377echo "configure:2378: checking for iswalnum in -lw" >&5
Alexandre Julliard02e90081998-01-04 17:49:09 +00002378ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2379if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2380 echo $ac_n "(cached) $ac_c" 1>&6
2381else
2382 ac_save_LIBS="$LIBS"
2383LIBS="-lw $LIBS"
2384cat > conftest.$ac_ext <<EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002385#line 2386 "configure"
Alexandre Julliard02e90081998-01-04 17:49:09 +00002386#include "confdefs.h"
2387/* Override any gcc2 internal prototype to avoid an error. */
2388/* We use char because int might match the return type of a gcc2
2389 builtin and then its argument prototype would still apply. */
2390char iswalnum();
2391
2392int main() {
2393iswalnum()
2394; return 0; }
2395EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002396if { (eval echo configure:2397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard02e90081998-01-04 17:49:09 +00002397 rm -rf conftest*
2398 eval "ac_cv_lib_$ac_lib_var=yes"
2399else
2400 echo "configure: failed program was:" >&5
2401 cat conftest.$ac_ext >&5
2402 rm -rf conftest*
2403 eval "ac_cv_lib_$ac_lib_var=no"
2404fi
2405rm -f conftest*
2406LIBS="$ac_save_LIBS"
2407
2408fi
2409if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2410 echo "$ac_t""yes" 1>&6
2411 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2412 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2413 cat >> confdefs.h <<EOF
2414#define $ac_tr_lib 1
2415EOF
2416
2417 LIBS="-lw $LIBS"
2418
2419else
2420 echo "$ac_t""no" 1>&6
2421fi
2422
Patrik Stridvallea584721998-11-01 16:22:07 +00002423for ac_func in gethostbyname
2424do
2425echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002426echo "configure:2427: checking for $ac_func" >&5
Patrik Stridvallea584721998-11-01 16:22:07 +00002427if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2429else
2430 cat > conftest.$ac_ext <<EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002431#line 2432 "configure"
Patrik Stridvallea584721998-11-01 16:22:07 +00002432#include "confdefs.h"
2433/* System header to define __stub macros and hopefully few prototypes,
2434 which can conflict with char $ac_func(); below. */
2435#include <assert.h>
2436/* Override any gcc2 internal prototype to avoid an error. */
2437/* We use char because int might match the return type of a gcc2
2438 builtin and then its argument prototype would still apply. */
2439char $ac_func();
2440
2441int main() {
2442
2443/* The GNU C library defines this for functions which it implements
2444 to always fail with ENOSYS. Some functions are actually named
2445 something starting with __ and the normal name is an alias. */
2446#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2447choke me
2448#else
2449$ac_func();
2450#endif
2451
2452; return 0; }
2453EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002454if { (eval echo configure:2455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvallea584721998-11-01 16:22:07 +00002455 rm -rf conftest*
2456 eval "ac_cv_func_$ac_func=yes"
2457else
2458 echo "configure: failed program was:" >&5
2459 cat conftest.$ac_ext >&5
2460 rm -rf conftest*
2461 eval "ac_cv_func_$ac_func=no"
2462fi
2463rm -f conftest*
2464fi
2465
2466if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2467 echo "$ac_t""yes" 1>&6
2468 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2469 cat >> confdefs.h <<EOF
2470#define $ac_tr_func 1
2471EOF
2472
2473else
2474 echo "$ac_t""no" 1>&6
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002475echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002476echo "configure:2477: checking for gethostbyname in -lnsl" >&5
Patrik Stridvallea584721998-11-01 16:22:07 +00002477ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2478if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2480else
2481 ac_save_LIBS="$LIBS"
Ron Recorde977d6c1999-09-05 12:32:05 +00002482LIBS="-lnsl -lsocket $LIBS"
Patrik Stridvallea584721998-11-01 16:22:07 +00002483cat > conftest.$ac_ext <<EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002484#line 2485 "configure"
Patrik Stridvallea584721998-11-01 16:22:07 +00002485#include "confdefs.h"
2486/* Override any gcc2 internal prototype to avoid an error. */
2487/* We use char because int might match the return type of a gcc2
2488 builtin and then its argument prototype would still apply. */
2489char gethostbyname();
2490
2491int main() {
2492gethostbyname()
2493; return 0; }
2494EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002495if { (eval echo configure:2496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvallea584721998-11-01 16:22:07 +00002496 rm -rf conftest*
2497 eval "ac_cv_lib_$ac_lib_var=yes"
2498else
2499 echo "configure: failed program was:" >&5
2500 cat conftest.$ac_ext >&5
2501 rm -rf conftest*
2502 eval "ac_cv_lib_$ac_lib_var=no"
2503fi
2504rm -f conftest*
2505LIBS="$ac_save_LIBS"
2506
2507fi
2508if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2509 echo "$ac_t""yes" 1>&6
Ron Recorde977d6c1999-09-05 12:32:05 +00002510 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Patrik Stridvallea584721998-11-01 16:22:07 +00002511else
2512 echo "$ac_t""no" 1>&6
Ron Recorde977d6c1999-09-05 12:32:05 +00002513echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002514echo "configure:2515: checking for gethostbyname in -lsocket" >&5
Ron Recorde977d6c1999-09-05 12:32:05 +00002515ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
2516if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2517 echo $ac_n "(cached) $ac_c" 1>&6
2518else
2519 ac_save_LIBS="$LIBS"
2520LIBS="-lsocket -lnsl $LIBS"
2521cat > conftest.$ac_ext <<EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002522#line 2523 "configure"
Ron Recorde977d6c1999-09-05 12:32:05 +00002523#include "confdefs.h"
2524/* Override any gcc2 internal prototype to avoid an error. */
2525/* We use char because int might match the return type of a gcc2
2526 builtin and then its argument prototype would still apply. */
2527char gethostbyname();
2528
2529int main() {
2530gethostbyname()
2531; return 0; }
2532EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002533if { (eval echo configure:2534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ron Recorde977d6c1999-09-05 12:32:05 +00002534 rm -rf conftest*
2535 eval "ac_cv_lib_$ac_lib_var=yes"
2536else
2537 echo "configure: failed program was:" >&5
2538 cat conftest.$ac_ext >&5
2539 rm -rf conftest*
2540 eval "ac_cv_lib_$ac_lib_var=no"
2541fi
2542rm -f conftest*
2543LIBS="$ac_save_LIBS"
2544
2545fi
2546if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2547 echo "$ac_t""yes" 1>&6
2548 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2549else
2550 echo "$ac_t""no" 1>&6
2551fi
2552
Patrik Stridvallea584721998-11-01 16:22:07 +00002553fi
2554
2555fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002556done
2557
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002558for ac_func in connect
2559do
2560echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002561echo "configure:2562: checking for $ac_func" >&5
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002562if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2564else
2565 cat > conftest.$ac_ext <<EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002566#line 2567 "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002567#include "confdefs.h"
2568/* System header to define __stub macros and hopefully few prototypes,
2569 which can conflict with char $ac_func(); below. */
2570#include <assert.h>
2571/* Override any gcc2 internal prototype to avoid an error. */
2572/* We use char because int might match the return type of a gcc2
2573 builtin and then its argument prototype would still apply. */
2574char $ac_func();
2575
2576int main() {
2577
2578/* The GNU C library defines this for functions which it implements
2579 to always fail with ENOSYS. Some functions are actually named
2580 something starting with __ and the normal name is an alias. */
2581#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2582choke me
2583#else
2584$ac_func();
2585#endif
2586
2587; return 0; }
2588EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002589if { (eval echo configure:2590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002590 rm -rf conftest*
2591 eval "ac_cv_func_$ac_func=yes"
2592else
2593 echo "configure: failed program was:" >&5
2594 cat conftest.$ac_ext >&5
2595 rm -rf conftest*
2596 eval "ac_cv_func_$ac_func=no"
2597fi
2598rm -f conftest*
2599fi
2600
2601if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2602 echo "$ac_t""yes" 1>&6
2603 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2604 cat >> confdefs.h <<EOF
2605#define $ac_tr_func 1
2606EOF
2607
2608else
2609 echo "$ac_t""no" 1>&6
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002610echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002611echo "configure:2612: checking for connect in -lsocket" >&5
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002612ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2613if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2614 echo $ac_n "(cached) $ac_c" 1>&6
2615else
2616 ac_save_LIBS="$LIBS"
2617LIBS="-lsocket $LIBS"
2618cat > conftest.$ac_ext <<EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002619#line 2620 "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002620#include "confdefs.h"
2621/* Override any gcc2 internal prototype to avoid an error. */
2622/* We use char because int might match the return type of a gcc2
2623 builtin and then its argument prototype would still apply. */
2624char connect();
2625
2626int main() {
2627connect()
2628; return 0; }
2629EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002630if { (eval echo configure:2631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002631 rm -rf conftest*
2632 eval "ac_cv_lib_$ac_lib_var=yes"
2633else
2634 echo "configure: failed program was:" >&5
2635 cat conftest.$ac_ext >&5
2636 rm -rf conftest*
2637 eval "ac_cv_lib_$ac_lib_var=no"
2638fi
2639rm -f conftest*
2640LIBS="$ac_save_LIBS"
2641
2642fi
2643if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2644 echo "$ac_t""yes" 1>&6
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002645 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002646 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2647 cat >> confdefs.h <<EOF
2648#define $ac_tr_lib 1
2649EOF
2650
2651 LIBS="-lsocket $LIBS"
2652
2653else
2654 echo "$ac_t""no" 1>&6
2655fi
2656
2657fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002658done
2659
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00002660echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002661echo "configure:2662: checking for setrunelocale in -lxpg4" >&5
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00002662ac_lib_var=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2663if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2664 echo $ac_n "(cached) $ac_c" 1>&6
2665else
2666 ac_save_LIBS="$LIBS"
2667LIBS="-lxpg4 $LIBS"
2668cat > conftest.$ac_ext <<EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002669#line 2670 "configure"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00002670#include "confdefs.h"
2671/* Override any gcc2 internal prototype to avoid an error. */
2672/* We use char because int might match the return type of a gcc2
2673 builtin and then its argument prototype would still apply. */
2674char setrunelocale();
2675
2676int main() {
2677setrunelocale()
2678; return 0; }
2679EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002680if { (eval echo configure:2681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00002681 rm -rf conftest*
2682 eval "ac_cv_lib_$ac_lib_var=yes"
2683else
2684 echo "configure: failed program was:" >&5
2685 cat conftest.$ac_ext >&5
2686 rm -rf conftest*
2687 eval "ac_cv_lib_$ac_lib_var=no"
2688fi
2689rm -f conftest*
2690LIBS="$ac_save_LIBS"
2691
2692fi
2693if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2694 echo "$ac_t""yes" 1>&6
2695 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2696 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2697 cat >> confdefs.h <<EOF
2698#define $ac_tr_lib 1
2699EOF
2700
2701 LIBS="-lxpg4 $LIBS"
2702
2703else
2704 echo "$ac_t""no" 1>&6
2705fi
2706
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00002707echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002708echo "configure:2709: checking for mmap in -lmmap" >&5
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00002709ac_lib_var=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2710if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6
2712else
2713 ac_save_LIBS="$LIBS"
2714LIBS="-lmmap $LIBS"
2715cat > conftest.$ac_ext <<EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002716#line 2717 "configure"
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00002717#include "confdefs.h"
2718/* Override any gcc2 internal prototype to avoid an error. */
2719/* We use char because int might match the return type of a gcc2
2720 builtin and then its argument prototype would still apply. */
2721char mmap();
2722
2723int main() {
2724mmap()
2725; return 0; }
2726EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002727if { (eval echo configure:2728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00002728 rm -rf conftest*
2729 eval "ac_cv_lib_$ac_lib_var=yes"
2730else
2731 echo "configure: failed program was:" >&5
2732 cat conftest.$ac_ext >&5
2733 rm -rf conftest*
2734 eval "ac_cv_lib_$ac_lib_var=no"
2735fi
2736rm -f conftest*
2737LIBS="$ac_save_LIBS"
2738
2739fi
2740if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2741 echo "$ac_t""yes" 1>&6
2742 ac_tr_lib=HAVE_LIB`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2743 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2744 cat >> confdefs.h <<EOF
2745#define $ac_tr_lib 1
2746EOF
2747
2748 LIBS="-lmmap $LIBS"
2749
2750else
2751 echo "$ac_t""no" 1>&6
2752fi
2753
Marcus Meissner2d7be871999-12-05 23:06:40 +00002754for ac_func in openpty
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002755do
2756echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002757echo "configure:2758: checking for $ac_func" >&5
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002758if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6
2760else
2761 cat > conftest.$ac_ext <<EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002762#line 2763 "configure"
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002763#include "confdefs.h"
2764/* System header to define __stub macros and hopefully few prototypes,
2765 which can conflict with char $ac_func(); below. */
2766#include <assert.h>
2767/* Override any gcc2 internal prototype to avoid an error. */
2768/* We use char because int might match the return type of a gcc2
2769 builtin and then its argument prototype would still apply. */
2770char $ac_func();
2771
2772int main() {
2773
2774/* The GNU C library defines this for functions which it implements
2775 to always fail with ENOSYS. Some functions are actually named
2776 something starting with __ and the normal name is an alias. */
2777#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2778choke me
2779#else
2780$ac_func();
2781#endif
2782
2783; return 0; }
2784EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002785if { (eval echo configure:2786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissner2d7be871999-12-05 23:06:40 +00002786 rm -rf conftest*
2787 eval "ac_cv_func_$ac_func=yes"
2788else
2789 echo "configure: failed program was:" >&5
2790 cat conftest.$ac_ext >&5
2791 rm -rf conftest*
2792 eval "ac_cv_func_$ac_func=no"
2793fi
2794rm -f conftest*
2795fi
2796
2797if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2798 echo "$ac_t""yes" 1>&6
2799 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2800 cat >> confdefs.h <<EOF
2801#define $ac_tr_func 1
2802EOF
2803
2804else
2805 echo "$ac_t""no" 1>&6
2806echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002807echo "configure:2808: checking for openpty in -lutil" >&5
Marcus Meissner2d7be871999-12-05 23:06:40 +00002808ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2809if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2810 echo $ac_n "(cached) $ac_c" 1>&6
2811else
2812 ac_save_LIBS="$LIBS"
2813LIBS="-lutil $LIBS"
2814cat > conftest.$ac_ext <<EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002815#line 2816 "configure"
Marcus Meissner2d7be871999-12-05 23:06:40 +00002816#include "confdefs.h"
2817/* Override any gcc2 internal prototype to avoid an error. */
2818/* We use char because int might match the return type of a gcc2
2819 builtin and then its argument prototype would still apply. */
2820char openpty();
2821
2822int main() {
2823openpty()
2824; return 0; }
2825EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002826if { (eval echo configure:2827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissner2d7be871999-12-05 23:06:40 +00002827 rm -rf conftest*
2828 eval "ac_cv_lib_$ac_lib_var=yes"
2829else
2830 echo "configure: failed program was:" >&5
2831 cat conftest.$ac_ext >&5
2832 rm -rf conftest*
2833 eval "ac_cv_lib_$ac_lib_var=no"
2834fi
2835rm -f conftest*
2836LIBS="$ac_save_LIBS"
2837
2838fi
2839if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2840 echo "$ac_t""yes" 1>&6
2841 cat >> confdefs.h <<\EOF
2842#define HAVE_OPENPTY 1
2843EOF
2844
2845 LIBS="$LIBS -lutil"
2846
2847else
2848 echo "$ac_t""no" 1>&6
2849fi
2850
2851fi
2852done
2853
2854
2855for ac_hdr in dlfcn.h
2856do
2857ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2858echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002859echo "configure:2860: checking for $ac_hdr" >&5
Marcus Meissner2d7be871999-12-05 23:06:40 +00002860if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2861 echo $ac_n "(cached) $ac_c" 1>&6
2862else
2863 cat > conftest.$ac_ext <<EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002864#line 2865 "configure"
Marcus Meissner2d7be871999-12-05 23:06:40 +00002865#include "confdefs.h"
2866#include <$ac_hdr>
2867EOF
2868ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002869{ (eval echo configure:2870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00002870ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Marcus Meissner2d7be871999-12-05 23:06:40 +00002871if test -z "$ac_err"; then
2872 rm -rf conftest*
2873 eval "ac_cv_header_$ac_safe=yes"
2874else
2875 echo "$ac_err" >&5
2876 echo "configure: failed program was:" >&5
2877 cat conftest.$ac_ext >&5
2878 rm -rf conftest*
2879 eval "ac_cv_header_$ac_safe=no"
2880fi
2881rm -f conftest*
2882fi
2883if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2884 echo "$ac_t""yes" 1>&6
2885 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2886 cat >> confdefs.h <<EOF
2887#define $ac_tr_hdr 1
2888EOF
2889 for ac_func in dlopen
2890do
2891echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002892echo "configure:2893: checking for $ac_func" >&5
Marcus Meissner2d7be871999-12-05 23:06:40 +00002893if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2894 echo $ac_n "(cached) $ac_c" 1>&6
2895else
2896 cat > conftest.$ac_ext <<EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002897#line 2898 "configure"
Marcus Meissner2d7be871999-12-05 23:06:40 +00002898#include "confdefs.h"
2899/* System header to define __stub macros and hopefully few prototypes,
2900 which can conflict with char $ac_func(); below. */
2901#include <assert.h>
2902/* Override any gcc2 internal prototype to avoid an error. */
2903/* We use char because int might match the return type of a gcc2
2904 builtin and then its argument prototype would still apply. */
2905char $ac_func();
2906
2907int main() {
2908
2909/* The GNU C library defines this for functions which it implements
2910 to always fail with ENOSYS. Some functions are actually named
2911 something starting with __ and the normal name is an alias. */
2912#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2913choke me
2914#else
2915$ac_func();
2916#endif
2917
2918; return 0; }
2919EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002920if { (eval echo configure:2921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002921 rm -rf conftest*
2922 eval "ac_cv_func_$ac_func=yes"
2923else
2924 echo "configure: failed program was:" >&5
2925 cat conftest.$ac_ext >&5
2926 rm -rf conftest*
2927 eval "ac_cv_func_$ac_func=no"
2928fi
2929rm -f conftest*
2930fi
2931
2932if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2933 echo "$ac_t""yes" 1>&6
2934 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2935 cat >> confdefs.h <<EOF
2936#define $ac_tr_func 1
2937EOF
2938 cat >> confdefs.h <<\EOF
2939#define HAVE_DL_API 1
2940EOF
2941
2942else
2943 echo "$ac_t""no" 1>&6
Marcus Meissner8220bc91998-10-11 11:10:27 +00002944echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002945echo "configure:2946: checking for dlopen in -ldl" >&5
Marcus Meissner8220bc91998-10-11 11:10:27 +00002946ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2947if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2948 echo $ac_n "(cached) $ac_c" 1>&6
2949else
2950 ac_save_LIBS="$LIBS"
2951LIBS="-ldl $LIBS"
2952cat > conftest.$ac_ext <<EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002953#line 2954 "configure"
Marcus Meissner8220bc91998-10-11 11:10:27 +00002954#include "confdefs.h"
2955/* Override any gcc2 internal prototype to avoid an error. */
2956/* We use char because int might match the return type of a gcc2
2957 builtin and then its argument prototype would still apply. */
2958char dlopen();
2959
2960int main() {
2961dlopen()
2962; return 0; }
2963EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00002964if { (eval echo configure:2965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissner8220bc91998-10-11 11:10:27 +00002965 rm -rf conftest*
2966 eval "ac_cv_lib_$ac_lib_var=yes"
2967else
2968 echo "configure: failed program was:" >&5
2969 cat conftest.$ac_ext >&5
2970 rm -rf conftest*
2971 eval "ac_cv_lib_$ac_lib_var=no"
2972fi
2973rm -f conftest*
2974LIBS="$ac_save_LIBS"
2975
2976fi
2977if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2978 echo "$ac_t""yes" 1>&6
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002979 cat >> confdefs.h <<\EOF
2980#define HAVE_DL_API 1
Marcus Meissner8220bc91998-10-11 11:10:27 +00002981EOF
2982
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002983 LIBS="$LIBS -ldl"
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002984else
2985 echo "$ac_t""no" 1>&6
Alexandre Julliarde1e75372000-04-24 17:17:49 +00002986LIBEXT="a"
2987
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002988fi
2989
2990
2991fi
2992done
2993
Marcus Meissner8220bc91998-10-11 11:10:27 +00002994else
2995 echo "$ac_t""no" 1>&6
Alexandre Julliarde1e75372000-04-24 17:17:49 +00002996LIBEXT="a"
2997
Marcus Meissner8220bc91998-10-11 11:10:27 +00002998fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002999done
Marcus Meissner8220bc91998-10-11 11:10:27 +00003000
Patrik Stridvallea584721998-11-01 16:22:07 +00003001
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003002
Patrik Stridvall2941a212000-04-25 20:34:22 +00003003X_DLLS=""
3004
3005XFILES=""
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003006
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003007OPENGLFILES=""
3008
Hidenori Takeshima4615e292000-05-23 23:36:41 +00003009OPENGL32_DLL=""
3010
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003011DGA_SRCS=""
3012
Lionel Ulmer51177f92000-05-01 14:25:49 +00003013DGA2_SRCS=""
3014
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003015MESA_SRCS=""
Patrik Stridvallea584721998-11-01 16:22:07 +00003016if test "$have_x" = "yes"
3017then
Patrik Stridvall24110281999-02-04 10:09:54 +00003018 XLIB="-lXext -lX11"
Ove Kaaven1eb593c1999-02-14 09:34:46 +00003019 ac_save_CPPFLAGS="$CPPFLAGS"
3020 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Patrik Stridvallea584721998-11-01 16:22:07 +00003021
Patrik Stridvall24110281999-02-04 10:09:54 +00003022 for ac_hdr in X11/xpm.h
Lionel Ulmera1d6d241999-01-30 15:54:43 +00003023do
3024ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3025echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003026echo "configure:3027: checking for $ac_hdr" >&5
Lionel Ulmera1d6d241999-01-30 15:54:43 +00003027if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3028 echo $ac_n "(cached) $ac_c" 1>&6
3029else
3030 cat > conftest.$ac_ext <<EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003031#line 3032 "configure"
Lionel Ulmera1d6d241999-01-30 15:54:43 +00003032#include "confdefs.h"
3033#include <$ac_hdr>
3034EOF
3035ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003036{ (eval echo configure:3037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003037ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Lionel Ulmera1d6d241999-01-30 15:54:43 +00003038if test -z "$ac_err"; then
3039 rm -rf conftest*
3040 eval "ac_cv_header_$ac_safe=yes"
3041else
3042 echo "$ac_err" >&5
3043 echo "configure: failed program was:" >&5
3044 cat conftest.$ac_ext >&5
3045 rm -rf conftest*
3046 eval "ac_cv_header_$ac_safe=no"
3047fi
3048rm -f conftest*
3049fi
3050if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3051 echo "$ac_t""yes" 1>&6
3052 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3053 cat >> confdefs.h <<EOF
3054#define $ac_tr_hdr 1
3055EOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003056 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003057echo "configure:3058: checking for XpmCreatePixmapFromData in -lXpm" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003058ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
3059if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3061else
3062 ac_save_LIBS="$LIBS"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003063LIBS="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3064 $LIBS"
Patrik Stridvall24110281999-02-04 10:09:54 +00003065cat > conftest.$ac_ext <<EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003066#line 3067 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003067#include "confdefs.h"
3068/* Override any gcc2 internal prototype to avoid an error. */
3069/* We use char because int might match the return type of a gcc2
3070 builtin and then its argument prototype would still apply. */
3071char XpmCreatePixmapFromData();
3072
3073int main() {
3074XpmCreatePixmapFromData()
3075; return 0; }
3076EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003077if { (eval echo configure:3078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall24110281999-02-04 10:09:54 +00003078 rm -rf conftest*
3079 eval "ac_cv_lib_$ac_lib_var=yes"
3080else
3081 echo "configure: failed program was:" >&5
3082 cat conftest.$ac_ext >&5
3083 rm -rf conftest*
3084 eval "ac_cv_lib_$ac_lib_var=no"
3085fi
3086rm -f conftest*
3087LIBS="$ac_save_LIBS"
3088
3089fi
3090if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3091 echo "$ac_t""yes" 1>&6
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003092 cat >> confdefs.h <<\EOF
Patrik Stridvall24110281999-02-04 10:09:54 +00003093#define HAVE_LIBXXPM 1
3094EOF
3095 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
3096else
3097 echo "$ac_t""no" 1>&6
3098fi
3099
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003100
3101else
3102 echo "$ac_t""no" 1>&6
3103 echo "Redhat : xpm xpm-devel"
3104 echo "Caldera OpenLinux : xpm xpm-devel xpm-devel-static"
Marcus Meissner284995e2000-03-04 19:21:49 +00003105 echo "SuSE : xpm"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003106 echo "Debian/Corel Linux: xpm4g xpm4g-dev"
Marcus Meissnercb99b0e1999-12-20 04:10:06 +00003107 echo
3108 echo "Or get the sources from ftp.x.org and all its mirror sites from "
3109 echo "the directory /contrib/libraries."
3110 echo
3111 exit 1
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003112
3113
3114fi
3115done
Patrik Stridvall24110281999-02-04 10:09:54 +00003116
Marcus Meissnercb99b0e1999-12-20 04:10:06 +00003117
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003118 for ac_hdr in X11/Xlib.h
Patrik Stridvall24110281999-02-04 10:09:54 +00003119do
3120ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3121echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003122echo "configure:3123: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003123if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3124 echo $ac_n "(cached) $ac_c" 1>&6
3125else
3126 cat > conftest.$ac_ext <<EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003127#line 3128 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003128#include "confdefs.h"
3129#include <$ac_hdr>
3130EOF
3131ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003132{ (eval echo configure:3133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003133ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00003134if test -z "$ac_err"; then
3135 rm -rf conftest*
3136 eval "ac_cv_header_$ac_safe=yes"
3137else
3138 echo "$ac_err" >&5
3139 echo "configure: failed program was:" >&5
3140 cat conftest.$ac_ext >&5
3141 rm -rf conftest*
3142 eval "ac_cv_header_$ac_safe=no"
3143fi
3144rm -f conftest*
3145fi
3146if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3147 echo "$ac_t""yes" 1>&6
3148 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3149 cat >> confdefs.h <<EOF
3150#define $ac_tr_hdr 1
3151EOF
3152
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003153 for ac_hdr in X11/extensions/XShm.h
3154do
3155ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3156echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003157echo "configure:3158: checking for $ac_hdr" >&5
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003158if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3159 echo $ac_n "(cached) $ac_c" 1>&6
Patrik Stridvall24110281999-02-04 10:09:54 +00003160else
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003161 cat > conftest.$ac_ext <<EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003162#line 3163 "configure"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003163#include "confdefs.h"
3164#include <$ac_hdr>
3165EOF
3166ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003167{ (eval echo configure:3168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003168ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3169if test -z "$ac_err"; then
3170 rm -rf conftest*
3171 eval "ac_cv_header_$ac_safe=yes"
3172else
3173 echo "$ac_err" >&5
3174 echo "configure: failed program was:" >&5
3175 cat conftest.$ac_ext >&5
3176 rm -rf conftest*
3177 eval "ac_cv_header_$ac_safe=no"
Patrik Stridvall24110281999-02-04 10:09:54 +00003178fi
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003179rm -f conftest*
3180fi
3181if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3182 echo "$ac_t""yes" 1>&6
3183 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3184 cat >> confdefs.h <<EOF
3185#define $ac_tr_hdr 1
3186EOF
3187 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003188echo "configure:3189: checking for XShmQueryExtension in -lXext" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003189ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
3190if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3191 echo $ac_n "(cached) $ac_c" 1>&6
3192else
3193 ac_save_LIBS="$LIBS"
Marcus Meissner376ec882000-01-05 03:24:52 +00003194LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Patrik Stridvall24110281999-02-04 10:09:54 +00003195cat > conftest.$ac_ext <<EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003196#line 3197 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003197#include "confdefs.h"
3198/* Override any gcc2 internal prototype to avoid an error. */
3199/* We use char because int might match the return type of a gcc2
3200 builtin and then its argument prototype would still apply. */
3201char XShmQueryExtension();
3202
3203int main() {
3204XShmQueryExtension()
3205; return 0; }
3206EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003207if { (eval echo configure:3208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall24110281999-02-04 10:09:54 +00003208 rm -rf conftest*
3209 eval "ac_cv_lib_$ac_lib_var=yes"
3210else
3211 echo "configure: failed program was:" >&5
3212 cat conftest.$ac_ext >&5
3213 rm -rf conftest*
3214 eval "ac_cv_lib_$ac_lib_var=no"
3215fi
3216rm -f conftest*
3217LIBS="$ac_save_LIBS"
3218
3219fi
3220if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3221 echo "$ac_t""yes" 1>&6
3222 cat >> confdefs.h <<\EOF
3223#define HAVE_LIBXXSHM 1
3224EOF
3225
3226else
3227 echo "$ac_t""no" 1>&6
3228fi
3229
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003230
3231else
3232 echo "$ac_t""no" 1>&6
3233echo "configure: warning: Xshm extension not found!!" 1>&2
3234
3235fi
3236done
3237
3238
Francois Jacques5b6879c2000-07-28 23:04:54 +00003239 for ac_hdr in X11/Xlib.h X11/extensions/shape.h
Patrik Stridvall24110281999-02-04 10:09:54 +00003240do
3241ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3242echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003243echo "configure:3244: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003244if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3245 echo $ac_n "(cached) $ac_c" 1>&6
3246else
3247 cat > conftest.$ac_ext <<EOF
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003248#line 3249 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003249#include "confdefs.h"
3250#include <$ac_hdr>
3251EOF
3252ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003253{ (eval echo configure:3254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003254ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00003255if test -z "$ac_err"; then
3256 rm -rf conftest*
3257 eval "ac_cv_header_$ac_safe=yes"
3258else
3259 echo "$ac_err" >&5
3260 echo "configure: failed program was:" >&5
3261 cat conftest.$ac_ext >&5
3262 rm -rf conftest*
3263 eval "ac_cv_header_$ac_safe=no"
3264fi
3265rm -f conftest*
3266fi
3267if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3268 echo "$ac_t""yes" 1>&6
3269 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3270 cat >> confdefs.h <<EOF
3271#define $ac_tr_hdr 1
3272EOF
Francois Jacques5b6879c2000-07-28 23:04:54 +00003273 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
3274echo "configure:3275: checking for XShapeQueryExtension in -lXext" >&5
3275ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
3276if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3277 echo $ac_n "(cached) $ac_c" 1>&6
3278else
3279 ac_save_LIBS="$LIBS"
3280LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3281cat > conftest.$ac_ext <<EOF
3282#line 3283 "configure"
3283#include "confdefs.h"
3284/* Override any gcc2 internal prototype to avoid an error. */
3285/* We use char because int might match the return type of a gcc2
3286 builtin and then its argument prototype would still apply. */
3287char XShapeQueryExtension();
3288
3289int main() {
3290XShapeQueryExtension()
3291; return 0; }
3292EOF
3293if { (eval echo configure:3294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3294 rm -rf conftest*
3295 eval "ac_cv_lib_$ac_lib_var=yes"
3296else
3297 echo "configure: failed program was:" >&5
3298 cat conftest.$ac_ext >&5
3299 rm -rf conftest*
3300 eval "ac_cv_lib_$ac_lib_var=no"
3301fi
3302rm -f conftest*
3303LIBS="$ac_save_LIBS"
3304
3305fi
3306if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3307 echo "$ac_t""yes" 1>&6
3308 cat >> confdefs.h <<\EOF
3309#define HAVE_LIBXSHAPE 1
3310EOF
3311
3312else
3313 echo "$ac_t""no" 1>&6
3314fi
3315
3316
3317else
3318 echo "$ac_t""no" 1>&6
3319echo "configure: warning: XShape extension found!!" 1>&2
3320
3321fi
3322done
3323
3324
3325 for ac_hdr in X11/extensions/xf86dga.h
3326do
3327ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3328echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3329echo "configure:3330: checking for $ac_hdr" >&5
3330if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3331 echo $ac_n "(cached) $ac_c" 1>&6
3332else
3333 cat > conftest.$ac_ext <<EOF
3334#line 3335 "configure"
3335#include "confdefs.h"
3336#include <$ac_hdr>
3337EOF
3338ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3339{ (eval echo configure:3340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3340ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3341if test -z "$ac_err"; then
3342 rm -rf conftest*
3343 eval "ac_cv_header_$ac_safe=yes"
3344else
3345 echo "$ac_err" >&5
3346 echo "configure: failed program was:" >&5
3347 cat conftest.$ac_ext >&5
3348 rm -rf conftest*
3349 eval "ac_cv_header_$ac_safe=no"
3350fi
3351rm -f conftest*
3352fi
3353if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3354 echo "$ac_t""yes" 1>&6
3355 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3356 cat >> confdefs.h <<EOF
3357#define $ac_tr_hdr 1
3358EOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003359 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00003360echo "configure:3361: checking for XDGAQueryExtension in -lXxf86dga" >&5
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003361ac_lib_var=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
Patrik Stridvall24110281999-02-04 10:09:54 +00003362if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3363 echo $ac_n "(cached) $ac_c" 1>&6
3364else
3365 ac_save_LIBS="$LIBS"
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003366LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003367 $LIBS"
Patrik Stridvall24110281999-02-04 10:09:54 +00003368cat > conftest.$ac_ext <<EOF
Francois Jacques5b6879c2000-07-28 23:04:54 +00003369#line 3370 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003370#include "confdefs.h"
3371/* Override any gcc2 internal prototype to avoid an error. */
3372/* We use char because int might match the return type of a gcc2
3373 builtin and then its argument prototype would still apply. */
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003374char XDGAQueryExtension();
3375
3376int main() {
3377XDGAQueryExtension()
3378; return 0; }
3379EOF
Francois Jacques5b6879c2000-07-28 23:04:54 +00003380if { (eval echo configure:3381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003381 rm -rf conftest*
3382 eval "ac_cv_lib_$ac_lib_var=yes"
3383else
3384 echo "configure: failed program was:" >&5
3385 cat conftest.$ac_ext >&5
3386 rm -rf conftest*
3387 eval "ac_cv_lib_$ac_lib_var=no"
3388fi
3389rm -f conftest*
3390LIBS="$ac_save_LIBS"
3391
3392fi
3393if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3394 echo "$ac_t""yes" 1>&6
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003395 cat >> confdefs.h <<\EOF
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003396#define HAVE_LIBXXF86DGA2 1
3397EOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003398
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003399 cat >> confdefs.h <<\EOF
Lionel Ulmer7be462d2000-01-15 22:24:47 +00003400#define HAVE_LIBXXF86DGA 1
3401EOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003402
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003403 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3404 DGA_SRCS='$(DGA_SRCS)'
3405 DGA2_SRCS='$(DGA2_SRCS)'
3406
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003407else
3408 echo "$ac_t""no" 1>&6
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003409 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00003410echo "configure:3411: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003411ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3412if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3413 echo $ac_n "(cached) $ac_c" 1>&6
3414else
3415 ac_save_LIBS="$LIBS"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003416LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3417 $LIBS"
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003418cat > conftest.$ac_ext <<EOF
Francois Jacques5b6879c2000-07-28 23:04:54 +00003419#line 3420 "configure"
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003420#include "confdefs.h"
3421/* Override any gcc2 internal prototype to avoid an error. */
3422/* We use char because int might match the return type of a gcc2
3423 builtin and then its argument prototype would still apply. */
Patrik Stridvall24110281999-02-04 10:09:54 +00003424char XF86DGAQueryExtension();
3425
3426int main() {
3427XF86DGAQueryExtension()
3428; return 0; }
3429EOF
Francois Jacques5b6879c2000-07-28 23:04:54 +00003430if { (eval echo configure:3431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall24110281999-02-04 10:09:54 +00003431 rm -rf conftest*
3432 eval "ac_cv_lib_$ac_lib_var=yes"
3433else
3434 echo "configure: failed program was:" >&5
3435 cat conftest.$ac_ext >&5
3436 rm -rf conftest*
3437 eval "ac_cv_lib_$ac_lib_var=no"
3438fi
3439rm -f conftest*
3440LIBS="$ac_save_LIBS"
3441
3442fi
3443if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3444 echo "$ac_t""yes" 1>&6
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003445 cat >> confdefs.h <<\EOF
Patrik Stridvall24110281999-02-04 10:09:54 +00003446#define HAVE_LIBXXF86DGA 1
3447EOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003448
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003449 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3450 DGA_SRCS='$(DGA_SRCS)'
3451
Patrik Stridvall24110281999-02-04 10:09:54 +00003452else
3453 echo "$ac_t""no" 1>&6
3454fi
3455
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003456
3457fi
Patrik Stridvall24110281999-02-04 10:09:54 +00003458
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003459
3460else
3461 echo "$ac_t""no" 1>&6
3462echo "configure: warning: DGA extension not found!!" 1>&2
3463
3464fi
3465done
3466
3467
3468 for ac_hdr in X11/extensions/xf86vmode.h
Patrik Stridvall24110281999-02-04 10:09:54 +00003469do
3470ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3471echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00003472echo "configure:3473: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003473if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3474 echo $ac_n "(cached) $ac_c" 1>&6
3475else
3476 cat > conftest.$ac_ext <<EOF
Francois Jacques5b6879c2000-07-28 23:04:54 +00003477#line 3478 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003478#include "confdefs.h"
3479#include <$ac_hdr>
3480EOF
3481ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Francois Jacques5b6879c2000-07-28 23:04:54 +00003482{ (eval echo configure:3483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003483ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00003484if test -z "$ac_err"; then
3485 rm -rf conftest*
3486 eval "ac_cv_header_$ac_safe=yes"
3487else
3488 echo "$ac_err" >&5
3489 echo "configure: failed program was:" >&5
3490 cat conftest.$ac_ext >&5
3491 rm -rf conftest*
3492 eval "ac_cv_header_$ac_safe=no"
3493fi
3494rm -f conftest*
3495fi
3496if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3497 echo "$ac_t""yes" 1>&6
3498 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3499 cat >> confdefs.h <<EOF
3500#define $ac_tr_hdr 1
3501EOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003502 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00003503echo "configure:3504: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003504ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3505if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3506 echo $ac_n "(cached) $ac_c" 1>&6
3507else
3508 ac_save_LIBS="$LIBS"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003509LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3510 $LIBS"
Patrik Stridvall24110281999-02-04 10:09:54 +00003511cat > conftest.$ac_ext <<EOF
Francois Jacques5b6879c2000-07-28 23:04:54 +00003512#line 3513 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003513#include "confdefs.h"
3514/* Override any gcc2 internal prototype to avoid an error. */
3515/* We use char because int might match the return type of a gcc2
3516 builtin and then its argument prototype would still apply. */
3517char XF86VidModeQueryExtension();
3518
3519int main() {
3520XF86VidModeQueryExtension()
3521; return 0; }
3522EOF
Francois Jacques5b6879c2000-07-28 23:04:54 +00003523if { (eval echo configure:3524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall24110281999-02-04 10:09:54 +00003524 rm -rf conftest*
3525 eval "ac_cv_lib_$ac_lib_var=yes"
3526else
3527 echo "configure: failed program was:" >&5
3528 cat conftest.$ac_ext >&5
3529 rm -rf conftest*
3530 eval "ac_cv_lib_$ac_lib_var=no"
3531fi
3532rm -f conftest*
3533LIBS="$ac_save_LIBS"
3534
3535fi
3536if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3537 echo "$ac_t""yes" 1>&6
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003538 cat >> confdefs.h <<\EOF
Patrik Stridvall24110281999-02-04 10:09:54 +00003539#define HAVE_LIBXXF86VM 1
3540EOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003541
3542 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
3543
Patrik Stridvall24110281999-02-04 10:09:54 +00003544else
3545 echo "$ac_t""no" 1>&6
3546fi
3547
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003548
3549else
3550 echo "$ac_t""no" 1>&6
3551echo "configure: warning: XFree86 VMODE extension not found!!" 1>&2
3552
3553fi
3554done
Lionel Ulmer5c085701999-02-28 19:48:53 +00003555
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003556
3557 for ac_hdr in X11/extensions/Xvlib.h
3558do
3559ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3560echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3561echo "configure:3562: checking for $ac_hdr" >&5
3562if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3563 echo $ac_n "(cached) $ac_c" 1>&6
3564else
3565 cat > conftest.$ac_ext <<EOF
3566#line 3567 "configure"
3567#include "confdefs.h"
3568#include <$ac_hdr>
3569EOF
3570ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3571{ (eval echo configure:3572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3572ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3573if test -z "$ac_err"; then
3574 rm -rf conftest*
3575 eval "ac_cv_header_$ac_safe=yes"
3576else
3577 echo "$ac_err" >&5
3578 echo "configure: failed program was:" >&5
3579 cat conftest.$ac_ext >&5
3580 rm -rf conftest*
3581 eval "ac_cv_header_$ac_safe=no"
3582fi
3583rm -f conftest*
3584fi
3585if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3586 echo "$ac_t""yes" 1>&6
3587 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3588 cat >> confdefs.h <<EOF
3589#define $ac_tr_hdr 1
3590EOF
3591 echo $ac_n "checking for XvShmCreateImage in -lXv""... $ac_c" 1>&6
3592echo "configure:3593: checking for XvShmCreateImage in -lXv" >&5
3593ac_lib_var=`echo Xv'_'XvShmCreateImage | sed 'y%./+-%__p_%'`
3594if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3595 echo $ac_n "(cached) $ac_c" 1>&6
3596else
3597 ac_save_LIBS="$LIBS"
3598LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3599 $LIBS"
3600cat > conftest.$ac_ext <<EOF
3601#line 3602 "configure"
3602#include "confdefs.h"
3603/* Override any gcc2 internal prototype to avoid an error. */
3604/* We use char because int might match the return type of a gcc2
3605 builtin and then its argument prototype would still apply. */
3606char XvShmCreateImage();
3607
3608int main() {
3609XvShmCreateImage()
3610; return 0; }
3611EOF
3612if { (eval echo configure:3613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3613 rm -rf conftest*
3614 eval "ac_cv_lib_$ac_lib_var=yes"
3615else
3616 echo "configure: failed program was:" >&5
3617 cat conftest.$ac_ext >&5
3618 rm -rf conftest*
3619 eval "ac_cv_lib_$ac_lib_var=no"
3620fi
3621rm -f conftest*
3622LIBS="$ac_save_LIBS"
3623
3624fi
3625if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3626 echo "$ac_t""yes" 1>&6
3627 cat >> confdefs.h <<\EOF
3628#define HAVE_XVIDEO 1
3629EOF
3630
3631 X_PRE_LIBS="$X_PRE_LIBS -lXv"
3632
3633else
3634 echo "$ac_t""no" 1>&6
3635fi
3636
3637
3638else
3639 echo "$ac_t""no" 1>&6
3640echo "configure: warning: XVideo extension not found !!" 1>&2
3641
3642fi
3643done
3644
3645
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003646
3647
3648else
3649 echo "$ac_t""no" 1>&6
3650fi
3651done
3652
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003653 if test $OPENGL = "yes" -o $OPENGL = "normal"
3654 then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003655 for ac_hdr in GL/gl.h GL/glx.h GL/glext.h
Patrik Stridvall24110281999-02-04 10:09:54 +00003656do
3657ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3658echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003659echo "configure:3660: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003660if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3661 echo $ac_n "(cached) $ac_c" 1>&6
3662else
3663 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003664#line 3665 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003665#include "confdefs.h"
3666#include <$ac_hdr>
3667EOF
3668ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003669{ (eval echo configure:3670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003670ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00003671if test -z "$ac_err"; then
3672 rm -rf conftest*
3673 eval "ac_cv_header_$ac_safe=yes"
3674else
3675 echo "$ac_err" >&5
3676 echo "configure: failed program was:" >&5
3677 cat conftest.$ac_ext >&5
3678 rm -rf conftest*
3679 eval "ac_cv_header_$ac_safe=no"
3680fi
3681rm -f conftest*
3682fi
3683if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3684 echo "$ac_t""yes" 1>&6
3685 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3686 cat >> confdefs.h <<EOF
3687#define $ac_tr_hdr 1
3688EOF
3689
3690else
3691 echo "$ac_t""no" 1>&6
3692fi
3693done
3694
Marcus Meissner22a969b2000-08-08 20:46:50 +00003695 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003696 then
3697 echo $ac_n "checking "for up-to-date OpenGL version"""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003698echo "configure:3699: checking "for up-to-date OpenGL version"" >&5
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003699if eval "test \"`echo '$''{'wine_cv_opengl_version_OK'+set}'`\" = set"; then
Lionel Ulmer5c085701999-02-28 19:48:53 +00003700 echo $ac_n "(cached) $ac_c" 1>&6
3701else
3702 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003703#line 3704 "configure"
Lionel Ulmer5c085701999-02-28 19:48:53 +00003704#include "confdefs.h"
3705#include <GL/gl.h>
3706int main() {
3707GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3708; return 0; }
3709EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003710if { (eval echo configure:3711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Lionel Ulmer5c085701999-02-28 19:48:53 +00003711 rm -rf conftest*
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003712 wine_cv_opengl_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00003713else
3714 echo "configure: failed program was:" >&5
3715 cat conftest.$ac_ext >&5
3716 rm -rf conftest*
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003717 wine_cv_opengl_version_OK="no"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003718
Lionel Ulmer5c085701999-02-28 19:48:53 +00003719fi
3720rm -f conftest*
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003721
Lionel Ulmer5c085701999-02-28 19:48:53 +00003722fi
3723
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003724echo "$ac_t""$wine_cv_opengl_version_OK" 1>&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00003725
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003726 echo $ac_n "checking "for thread-safe OpenGL version"""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003727echo "configure:3728: checking "for thread-safe OpenGL version"" >&5
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003728if eval "test \"`echo '$''{'wine_cv_opengl_version_threadsafe'+set}'`\" = set"; then
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003729 echo $ac_n "(cached) $ac_c" 1>&6
3730else
3731 saved_libs=$LIBS
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003732 LIBS="$X_LIBS -lGL"
3733 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003734#line 3735 "configure"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003735#include "confdefs.h"
3736
3737int main() {
3738pthread_getspecific();
3739; return 0; }
3740EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003741if { (eval echo configure:3742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003742 rm -rf conftest*
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003743 wine_cv_opengl_version_threadsafe="yes"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003744else
3745 echo "configure: failed program was:" >&5
3746 cat conftest.$ac_ext >&5
3747 rm -rf conftest*
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003748 wine_cv_opengl_version_threadsafe="no"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003749fi
3750rm -f conftest*
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003751 LIBS=$saved_libs
3752
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003753fi
3754
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003755echo "$ac_t""$wine_cv_opengl_version_threadsafe" 1>&6
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003756
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003757 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 +00003758 then
3759 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003760echo "configure:3761: checking for glXCreateContext in -lGL" >&5
Lionel Ulmer5d68f791999-07-23 19:33:24 +00003761ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
Patrik Stridvall24110281999-02-04 10:09:54 +00003762if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3763 echo $ac_n "(cached) $ac_c" 1>&6
3764else
3765 ac_save_LIBS="$LIBS"
Marcus Meissner376ec882000-01-05 03:24:52 +00003766LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Patrik Stridvall24110281999-02-04 10:09:54 +00003767cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003768#line 3769 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003769#include "confdefs.h"
3770/* Override any gcc2 internal prototype to avoid an error. */
3771/* We use char because int might match the return type of a gcc2
3772 builtin and then its argument prototype would still apply. */
Lionel Ulmer5d68f791999-07-23 19:33:24 +00003773char glXCreateContext();
Patrik Stridvall24110281999-02-04 10:09:54 +00003774
3775int main() {
Lionel Ulmer5d68f791999-07-23 19:33:24 +00003776glXCreateContext()
Patrik Stridvall24110281999-02-04 10:09:54 +00003777; return 0; }
3778EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003779if { (eval echo configure:3780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall24110281999-02-04 10:09:54 +00003780 rm -rf conftest*
3781 eval "ac_cv_lib_$ac_lib_var=yes"
3782else
3783 echo "configure: failed program was:" >&5
3784 cat conftest.$ac_ext >&5
3785 rm -rf conftest*
3786 eval "ac_cv_lib_$ac_lib_var=no"
3787fi
3788rm -f conftest*
3789LIBS="$ac_save_LIBS"
3790
3791fi
3792if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3793 echo "$ac_t""yes" 1>&6
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003794 X_PRE_LIBS="$X_PRE_LIBS -lGL"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003795 MESA_SRCS='$(MESA_SRCS)'
3796
Patrik Stridvall24110281999-02-04 10:09:54 +00003797else
3798 echo "$ac_t""no" 1>&6
3799fi
3800
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003801
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00003802 if test $ac_cv_lib_GL_glXCreateContext = "yes"
3803 then
Marcus Meissner22a969b2000-08-08 20:46:50 +00003804
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00003805 OPENGLFILES='$(OPENGLFILES)'
3806 cat >> confdefs.h <<\EOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00003807#define HAVE_OPENGL 1
3808EOF
3809
Marcus Meissner22a969b2000-08-08 20:46:50 +00003810
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003811 echo $ac_n "checking for glXGetProcAddressARB in -lGL""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003812echo "configure:3813: checking for glXGetProcAddressARB in -lGL" >&5
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003813ac_lib_var=`echo GL'_'glXGetProcAddressARB | sed 'y%./+-%__p_%'`
3814if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3815 echo $ac_n "(cached) $ac_c" 1>&6
3816else
3817 ac_save_LIBS="$LIBS"
3818LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3819cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003820#line 3821 "configure"
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003821#include "confdefs.h"
3822/* Override any gcc2 internal prototype to avoid an error. */
3823/* We use char because int might match the return type of a gcc2
3824 builtin and then its argument prototype would still apply. */
3825char glXGetProcAddressARB();
3826
3827int main() {
3828glXGetProcAddressARB()
3829; return 0; }
3830EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003831if { (eval echo configure:3832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003832 rm -rf conftest*
3833 eval "ac_cv_lib_$ac_lib_var=yes"
3834else
3835 echo "configure: failed program was:" >&5
3836 cat conftest.$ac_ext >&5
3837 rm -rf conftest*
3838 eval "ac_cv_lib_$ac_lib_var=no"
3839fi
3840rm -f conftest*
3841LIBS="$ac_save_LIBS"
3842
3843fi
3844if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3845 echo "$ac_t""yes" 1>&6
3846 cat >> confdefs.h <<\EOF
3847#define HAVE_GLX_GETPROCADDRESS 1
3848EOF
3849
3850else
3851 echo "$ac_t""no" 1>&6
3852fi
3853
3854
3855 if test $ac_cv_lib_GL_glXGetProcAddressARB = "yes"
3856 then
Lionel Ulmer1434d872000-07-23 14:23:31 +00003857 echo $ac_n "checking "for OpenGL extension functions prototypes"""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003858echo "configure:3859: checking "for OpenGL extension functions prototypes"" >&5
Lionel Ulmer1434d872000-07-23 14:23:31 +00003859if eval "test \"`echo '$''{'wine_cv_extension_prototypes'+set}'`\" = set"; then
3860 echo $ac_n "(cached) $ac_c" 1>&6
3861else
3862 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003863#line 3864 "configure"
Lionel Ulmer1434d872000-07-23 14:23:31 +00003864#include "confdefs.h"
3865#include <GL/gl.h>
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00003866 #ifdef HAVE_GL_GLEXT_H
3867 # include <GL/glext.h>
3868 #endif
3869
Lionel Ulmer1434d872000-07-23 14:23:31 +00003870int main() {
3871PFNGLCOLORTABLEEXTPROC test_proc;
3872; return 0; }
3873EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003874if { (eval echo configure:3875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Lionel Ulmer1434d872000-07-23 14:23:31 +00003875 rm -rf conftest*
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00003876 wine_cv_extension_prototypes="yes"
Lionel Ulmer1434d872000-07-23 14:23:31 +00003877else
3878 echo "configure: failed program was:" >&5
3879 cat conftest.$ac_ext >&5
3880 rm -rf conftest*
3881 wine_cv_extension_prototypes="no"
3882
3883fi
3884rm -f conftest*
3885
3886fi
3887
3888echo "$ac_t""$wine_cv_extension_prototypes" 1>&6
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00003889 if test $wine_cv_extension_prototypes = "yes"
3890 then
3891 cat >> confdefs.h <<\EOF
3892#define HAVE_GLEXT_PROTOTYPES 1
3893EOF
3894
3895 fi
Lionel Ulmer1434d872000-07-23 14:23:31 +00003896
Hidenori Takeshima4615e292000-05-23 23:36:41 +00003897 OPENGL32_DLL=opengl32
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003898 fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003899 fi
3900 fi
3901 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00003902 fi
Ove Kaaven1eb593c1999-02-14 09:34:46 +00003903
3904 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvall2941a212000-04-25 20:34:22 +00003905 X_DLLS='$(X_DLLS)'
3906 XFILES='$(XFILES)'
Patrik Stridvallea584721998-11-01 16:22:07 +00003907else
3908 XLIB=""
3909 X_CFLAGS=""
3910 X_LIBS=""
3911fi
Alexandre Julliard902da691995-11-05 14:39:02 +00003912
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00003913if test "$CURSES" = "yes"
3914then
3915 for ac_hdr in ncurses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00003916do
3917ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3918echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003919echo "configure:3920: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003920if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3921 echo $ac_n "(cached) $ac_c" 1>&6
3922else
3923 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003924#line 3925 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003925#include "confdefs.h"
3926#include <$ac_hdr>
3927EOF
3928ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003929{ (eval echo configure:3930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003930ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00003931if test -z "$ac_err"; then
3932 rm -rf conftest*
3933 eval "ac_cv_header_$ac_safe=yes"
3934else
3935 echo "$ac_err" >&5
3936 echo "configure: failed program was:" >&5
3937 cat conftest.$ac_ext >&5
3938 rm -rf conftest*
3939 eval "ac_cv_header_$ac_safe=no"
3940fi
3941rm -f conftest*
3942fi
3943if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3944 echo "$ac_t""yes" 1>&6
3945 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3946 cat >> confdefs.h <<EOF
3947#define $ac_tr_hdr 1
3948EOF
3949
3950else
3951 echo "$ac_t""no" 1>&6
3952fi
3953done
3954
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00003955 if test "$ac_cv_header_ncurses_h" = "yes"
3956 then
3957 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003958echo "configure:3959: checking for waddch in -lncurses" >&5
Joseph Praneviche884f9c1999-01-03 16:14:34 +00003959ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
3960if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3961 echo $ac_n "(cached) $ac_c" 1>&6
3962else
3963 ac_save_LIBS="$LIBS"
3964LIBS="-lncurses $LIBS"
3965cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003966#line 3967 "configure"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00003967#include "confdefs.h"
3968/* Override any gcc2 internal prototype to avoid an error. */
3969/* We use char because int might match the return type of a gcc2
3970 builtin and then its argument prototype would still apply. */
3971char waddch();
3972
3973int main() {
3974waddch()
3975; return 0; }
3976EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003977if { (eval echo configure:3978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00003978 rm -rf conftest*
3979 eval "ac_cv_lib_$ac_lib_var=yes"
3980else
3981 echo "configure: failed program was:" >&5
3982 cat conftest.$ac_ext >&5
3983 rm -rf conftest*
3984 eval "ac_cv_lib_$ac_lib_var=no"
3985fi
3986rm -f conftest*
3987LIBS="$ac_save_LIBS"
3988
3989fi
3990if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3991 echo "$ac_t""yes" 1>&6
3992 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3993 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3994 cat >> confdefs.h <<EOF
3995#define $ac_tr_lib 1
3996EOF
3997
3998 LIBS="-lncurses $LIBS"
3999
4000else
4001 echo "$ac_t""no" 1>&6
4002fi
4003
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00004004 fi
4005 if test "$ac_cv_lib_ncurses_waddch" = "yes"
4006 then
4007 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004008echo "configure:4009: checking for resizeterm in -lncurses" >&5
Alexandre Julliard638f1691999-01-17 16:32:32 +00004009ac_lib_var=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
4010if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4011 echo $ac_n "(cached) $ac_c" 1>&6
4012else
4013 ac_save_LIBS="$LIBS"
4014LIBS="-lncurses $LIBS"
4015cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004016#line 4017 "configure"
Alexandre Julliard638f1691999-01-17 16:32:32 +00004017#include "confdefs.h"
4018/* Override any gcc2 internal prototype to avoid an error. */
4019/* We use char because int might match the return type of a gcc2
4020 builtin and then its argument prototype would still apply. */
4021char resizeterm();
4022
4023int main() {
4024resizeterm()
4025; return 0; }
4026EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004027if { (eval echo configure:4028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard638f1691999-01-17 16:32:32 +00004028 rm -rf conftest*
4029 eval "ac_cv_lib_$ac_lib_var=yes"
4030else
4031 echo "configure: failed program was:" >&5
4032 cat conftest.$ac_ext >&5
4033 rm -rf conftest*
4034 eval "ac_cv_lib_$ac_lib_var=no"
4035fi
4036rm -f conftest*
4037LIBS="$ac_save_LIBS"
4038
4039fi
4040if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4041 echo "$ac_t""yes" 1>&6
4042 cat >> confdefs.h <<\EOF
4043#define HAVE_RESIZETERM 1
4044EOF
4045
4046else
4047 echo "$ac_t""no" 1>&6
4048fi
4049
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00004050 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004051echo "configure:4052: checking for getbkgd in -lncurses" >&5
Michael Vekslerf5445071999-02-25 17:11:05 +00004052ac_lib_var=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
4053if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4054 echo $ac_n "(cached) $ac_c" 1>&6
4055else
4056 ac_save_LIBS="$LIBS"
4057LIBS="-lncurses $LIBS"
4058cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004059#line 4060 "configure"
Michael Vekslerf5445071999-02-25 17:11:05 +00004060#include "confdefs.h"
4061/* Override any gcc2 internal prototype to avoid an error. */
4062/* We use char because int might match the return type of a gcc2
4063 builtin and then its argument prototype would still apply. */
4064char getbkgd();
4065
4066int main() {
4067getbkgd()
4068; return 0; }
4069EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004070if { (eval echo configure:4071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Michael Vekslerf5445071999-02-25 17:11:05 +00004071 rm -rf conftest*
4072 eval "ac_cv_lib_$ac_lib_var=yes"
4073else
4074 echo "configure: failed program was:" >&5
4075 cat conftest.$ac_ext >&5
4076 rm -rf conftest*
4077 eval "ac_cv_lib_$ac_lib_var=no"
4078fi
4079rm -f conftest*
4080LIBS="$ac_save_LIBS"
4081
4082fi
4083if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4084 echo "$ac_t""yes" 1>&6
4085 cat >> confdefs.h <<\EOF
4086#define HAVE_GETBKGD 1
4087EOF
4088
4089else
4090 echo "$ac_t""no" 1>&6
4091fi
4092
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00004093 else
4094 for ac_hdr in curses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00004095do
4096ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4097echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004098echo "configure:4099: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00004099if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4100 echo $ac_n "(cached) $ac_c" 1>&6
4101else
4102 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004103#line 4104 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00004104#include "confdefs.h"
4105#include <$ac_hdr>
4106EOF
4107ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004108{ (eval echo configure:4109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00004109ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00004110if test -z "$ac_err"; then
4111 rm -rf conftest*
4112 eval "ac_cv_header_$ac_safe=yes"
4113else
4114 echo "$ac_err" >&5
4115 echo "configure: failed program was:" >&5
4116 cat conftest.$ac_ext >&5
4117 rm -rf conftest*
4118 eval "ac_cv_header_$ac_safe=no"
4119fi
4120rm -f conftest*
4121fi
4122if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4123 echo "$ac_t""yes" 1>&6
4124 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4125 cat >> confdefs.h <<EOF
4126#define $ac_tr_hdr 1
4127EOF
4128
4129else
4130 echo "$ac_t""no" 1>&6
4131fi
4132done
4133
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00004134 if test "$ac_cv_header_curses_h" = "yes"
4135 then
4136 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004137echo "configure:4138: checking for waddch in -lcurses" >&5
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004138ac_lib_var=`echo curses'_'waddch | 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="-lcurses $LIBS"
4144cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004145#line 4146 "configure"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004146#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 waddch();
4151
4152int main() {
4153waddch()
4154; return 0; }
4155EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004156if { (eval echo configure:4157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004157 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 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4172 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4173 cat >> confdefs.h <<EOF
4174#define $ac_tr_lib 1
4175EOF
4176
4177 LIBS="-lcurses $LIBS"
4178
4179else
4180 echo "$ac_t""no" 1>&6
4181fi
4182
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00004183 if test "$ac_cv_lib_curses_waddch" = "yes"
4184 then
4185 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004186echo "configure:4187: checking for resizeterm in -lcurses" >&5
Alexandre Julliard638f1691999-01-17 16:32:32 +00004187ac_lib_var=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
4188if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4189 echo $ac_n "(cached) $ac_c" 1>&6
4190else
4191 ac_save_LIBS="$LIBS"
4192LIBS="-lcurses $LIBS"
4193cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004194#line 4195 "configure"
Alexandre Julliard638f1691999-01-17 16:32:32 +00004195#include "confdefs.h"
4196/* Override any gcc2 internal prototype to avoid an error. */
4197/* We use char because int might match the return type of a gcc2
4198 builtin and then its argument prototype would still apply. */
4199char resizeterm();
4200
4201int main() {
4202resizeterm()
4203; return 0; }
4204EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004205if { (eval echo configure:4206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard638f1691999-01-17 16:32:32 +00004206 rm -rf conftest*
4207 eval "ac_cv_lib_$ac_lib_var=yes"
4208else
4209 echo "configure: failed program was:" >&5
4210 cat conftest.$ac_ext >&5
4211 rm -rf conftest*
4212 eval "ac_cv_lib_$ac_lib_var=no"
4213fi
4214rm -f conftest*
4215LIBS="$ac_save_LIBS"
4216
4217fi
4218if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4219 echo "$ac_t""yes" 1>&6
4220 cat >> confdefs.h <<\EOF
4221#define HAVE_RESIZETERM 1
4222EOF
4223
4224else
4225 echo "$ac_t""no" 1>&6
4226fi
4227
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00004228 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004229echo "configure:4230: checking for getbkgd in -lcurses" >&5
Michael Vekslerf5445071999-02-25 17:11:05 +00004230ac_lib_var=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
4231if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4232 echo $ac_n "(cached) $ac_c" 1>&6
4233else
4234 ac_save_LIBS="$LIBS"
4235LIBS="-lcurses $LIBS"
4236cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004237#line 4238 "configure"
Michael Vekslerf5445071999-02-25 17:11:05 +00004238#include "confdefs.h"
4239/* Override any gcc2 internal prototype to avoid an error. */
4240/* We use char because int might match the return type of a gcc2
4241 builtin and then its argument prototype would still apply. */
4242char getbkgd();
4243
4244int main() {
4245getbkgd()
4246; return 0; }
4247EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004248if { (eval echo configure:4249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Michael Vekslerf5445071999-02-25 17:11:05 +00004249 rm -rf conftest*
4250 eval "ac_cv_lib_$ac_lib_var=yes"
4251else
4252 echo "configure: failed program was:" >&5
4253 cat conftest.$ac_ext >&5
4254 rm -rf conftest*
4255 eval "ac_cv_lib_$ac_lib_var=no"
4256fi
4257rm -f conftest*
4258LIBS="$ac_save_LIBS"
4259
4260fi
4261if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4262 echo "$ac_t""yes" 1>&6
4263 cat >> confdefs.h <<\EOF
4264#define HAVE_GETBKGD 1
4265EOF
4266
4267else
4268 echo "$ac_t""no" 1>&6
4269fi
4270
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00004271 fi
4272 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00004273 fi
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004274fi
4275
Pavel Roskin94d99641998-12-26 11:52:51 +00004276echo $ac_n "checking "for GNU style IPX support"""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004277echo "configure:4278: checking "for GNU style IPX support"" >&5
Pavel Roskin94d99641998-12-26 11:52:51 +00004278if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
4279 echo $ac_n "(cached) $ac_c" 1>&6
4280else
4281 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004282#line 4283 "configure"
Pavel Roskin94d99641998-12-26 11:52:51 +00004283#include "confdefs.h"
4284#include <sys/socket.h>
4285 #include <netipx/ipx.h>
4286int main() {
4287((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4288; return 0; }
4289EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004290if { (eval echo configure:4291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Pavel Roskin94d99641998-12-26 11:52:51 +00004291 rm -rf conftest*
Aaron Hopec23872d2000-01-15 23:43:21 +00004292 ac_cv_c_ipx_gnu="yes"
Pavel Roskin94d99641998-12-26 11:52:51 +00004293else
4294 echo "configure: failed program was:" >&5
4295 cat conftest.$ac_ext >&5
4296 rm -rf conftest*
4297 ac_cv_c_ipx_gnu="no"
4298fi
4299rm -f conftest*
4300
4301fi
4302
4303echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
Aaron Hopec23872d2000-01-15 23:43:21 +00004304if test "$ac_cv_c_ipx_gnu" = "yes"
4305then
4306 cat >> confdefs.h <<\EOF
4307#define HAVE_IPX_GNU 1
4308EOF
4309
4310fi
Pavel Roskin94d99641998-12-26 11:52:51 +00004311
4312if test "$ac_cv_c_ipx_gnu" = "no"
4313then
4314 echo $ac_n "checking "for linux style IPX support"""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004315echo "configure:4316: checking "for linux style IPX support"" >&5
Pavel Roskin94d99641998-12-26 11:52:51 +00004316if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4317 echo $ac_n "(cached) $ac_c" 1>&6
4318else
4319 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004320#line 4321 "configure"
Pavel Roskin94d99641998-12-26 11:52:51 +00004321#include "confdefs.h"
4322#include <sys/socket.h>
4323 #include <asm/types.h>
4324 #include <linux/ipx.h>
4325int main() {
4326((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4327; return 0; }
4328EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004329if { (eval echo configure:4330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Pavel Roskin94d99641998-12-26 11:52:51 +00004330 rm -rf conftest*
Aaron Hopec23872d2000-01-15 23:43:21 +00004331 ac_cv_c_ipx_linux="yes"
Pavel Roskin94d99641998-12-26 11:52:51 +00004332else
4333 echo "configure: failed program was:" >&5
4334 cat conftest.$ac_ext >&5
4335 rm -rf conftest*
4336 ac_cv_c_ipx_linux="no"
4337fi
4338rm -f conftest*
4339
4340fi
4341
4342echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
Aaron Hopec23872d2000-01-15 23:43:21 +00004343 if test "$ac_cv_c_ipx_linux" = "yes"
4344 then
4345 cat >> confdefs.h <<\EOF
4346#define HAVE_IPX_LINUX 1
4347EOF
4348
4349 fi
Pavel Roskin94d99641998-12-26 11:52:51 +00004350fi
4351
Todd Vierlingecc76691998-12-15 17:49:02 +00004352for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004353do
4354ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4355echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004356echo "configure:4357: checking for $ac_hdr" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004357if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4358 echo $ac_n "(cached) $ac_c" 1>&6
4359else
4360 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004361#line 4362 "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004362#include "confdefs.h"
4363#include <$ac_hdr>
4364EOF
4365ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004366{ (eval echo configure:4367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00004367ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004368if test -z "$ac_err"; then
4369 rm -rf conftest*
4370 eval "ac_cv_header_$ac_safe=yes"
4371else
4372 echo "$ac_err" >&5
4373 echo "configure: failed program was:" >&5
4374 cat conftest.$ac_ext >&5
4375 rm -rf conftest*
4376 eval "ac_cv_header_$ac_safe=no"
4377fi
4378rm -f conftest*
4379fi
4380if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4381 echo "$ac_t""yes" 1>&6
4382 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4383 cat >> confdefs.h <<EOF
4384#define $ac_tr_hdr 1
4385EOF
Todd Vierlingecc76691998-12-15 17:49:02 +00004386 break
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004387else
4388 echo "$ac_t""no" 1>&6
4389fi
4390done
4391
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004392
4393echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004394echo "configure:4395: checking "for Open Sound System"" >&5
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004395if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4396 echo $ac_n "(cached) $ac_c" 1>&6
4397else
4398 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004399#line 4400 "configure"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004400#include "confdefs.h"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004401
Todd Vierlingecc76691998-12-15 17:49:02 +00004402 #if defined(HAVE_SYS_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004403 #include <sys/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00004404 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004405 #include <machine/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00004406 #elif defined(HAVE_SOUNDCARD_H)
4407 #include <soundcard.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004408 #endif
4409
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004410int main() {
4411
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004412
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00004413/* check for one of the Open Sound System specific SNDCTL_ defines */
4414#if !defined(SNDCTL_DSP_STEREO)
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004415#error No open sound system
4416#endif
4417
4418; return 0; }
4419EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004420if { (eval echo configure:4421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004421 rm -rf conftest*
4422 ac_cv_c_opensoundsystem="yes"
4423else
4424 echo "configure: failed program was:" >&5
4425 cat conftest.$ac_ext >&5
4426 rm -rf conftest*
4427 ac_cv_c_opensoundsystem="no"
4428fi
4429rm -f conftest*
4430fi
4431
4432echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4433
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004434if test "$ac_cv_c_opensoundsystem" = "yes"
4435then
4436 cat >> confdefs.h <<\EOF
4437#define HAVE_OSS 1
4438EOF
4439
4440fi
4441
Eric Pouech338d3b21999-05-22 18:52:21 +00004442echo $ac_n "checking "for Open Sound System/MIDI interface"""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004443echo "configure:4444: checking "for Open Sound System/MIDI interface"" >&5
Eric Pouech338d3b21999-05-22 18:52:21 +00004444if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4445 echo $ac_n "(cached) $ac_c" 1>&6
4446else
4447 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004448#line 4449 "configure"
Eric Pouech338d3b21999-05-22 18:52:21 +00004449#include "confdefs.h"
4450
4451 #if defined(HAVE_SYS_SOUNDCARD_H)
4452 #include <sys/soundcard.h>
4453 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4454 #include <machine/soundcard.h>
4455 #elif defined(HAVE_SOUNDCARD_H)
4456 #include <soundcard.h>
4457 #endif
4458
4459int main() {
4460
4461
4462/* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4463#if !defined(SNDCTL_SEQ_SYNC)
4464#error No open sound system MIDI interface
4465#endif
4466
4467; return 0; }
4468EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004469if { (eval echo configure:4470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Eric Pouech338d3b21999-05-22 18:52:21 +00004470 rm -rf conftest*
4471 ac_cv_c_opensoundsystem_midi="yes"
4472else
4473 echo "configure: failed program was:" >&5
4474 cat conftest.$ac_ext >&5
4475 rm -rf conftest*
4476 ac_cv_c_opensoundsystem_midi="no"
4477fi
4478rm -f conftest*
4479fi
4480
4481echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4482
4483if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4484then
4485 cat >> confdefs.h <<\EOF
4486#define HAVE_OSS_MIDI 1
4487EOF
4488
4489fi
4490
Alexandre Julliard641ee761997-08-04 16:34:36 +00004491if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
4492
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004493
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004494if test "x${GCC}" = "xyes"
4495then
4496 CFLAGS="$CFLAGS -Wall"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004497 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004498echo "configure:4499: checking "for gcc strength-reduce bug"" >&5
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004499if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
4500 echo $ac_n "(cached) $ac_c" 1>&6
4501else
4502 if test "$cross_compiling" = yes; then
4503 ac_cv_c_gcc_strength_bug="yes"
4504else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004505 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004506#line 4507 "configure"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004507#include "confdefs.h"
4508
4509int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +00004510 static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004511 unsigned int B = 3;
4512 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +00004513 for(i=0; i<B; i++) Array[i] = i - 3;
4514 exit( Array[1] != -2 );
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004515}
4516EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004517if { (eval echo configure:4518: \"$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 +00004518then
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004519 ac_cv_c_gcc_strength_bug="no"
4520else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004521 echo "configure: failed program was:" >&5
4522 cat conftest.$ac_ext >&5
4523 rm -fr conftest*
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004524 ac_cv_c_gcc_strength_bug="yes"
4525fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004526rm -fr conftest*
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004527fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004528
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004529fi
4530
4531echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
4532 if test "$ac_cv_c_gcc_strength_bug" = "yes"
4533 then
4534 CFLAGS="$CFLAGS -fno-strength-reduce"
4535 fi
4536fi
4537
4538
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00004539echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004540echo "configure:4541: checking "whether external symbols need an underscore prefix"" >&5
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00004541if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
4542 echo $ac_n "(cached) $ac_c" 1>&6
4543else
4544 saved_libs=$LIBS
4545LIBS="conftest_asm.s $LIBS"
4546cat > conftest_asm.s <<EOF
4547 .globl _ac_test
4548_ac_test:
4549 .long 0
4550EOF
4551cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004552#line 4553 "configure"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00004553#include "confdefs.h"
4554extern int ac_test;
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004555int main() {
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00004556if (ac_test) return 1
4557; return 0; }
4558EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004559if { (eval echo configure:4560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00004560 rm -rf conftest*
4561 ac_cv_c_extern_prefix="yes"
4562else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004563 echo "configure: failed program was:" >&5
4564 cat conftest.$ac_ext >&5
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00004565 rm -rf conftest*
4566 ac_cv_c_extern_prefix="no"
4567fi
4568rm -f conftest*
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00004569LIBS=$saved_libs
4570fi
4571
4572echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
4573if test "$ac_cv_c_extern_prefix" = "yes"
4574then
4575 cat >> confdefs.h <<\EOF
4576#define NEED_UNDERSCORE_PREFIX 1
4577EOF
4578
4579fi
4580
4581
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004582echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004583echo "configure:4584: checking "whether assembler accepts .string"" >&5
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004584if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
4585 echo $ac_n "(cached) $ac_c" 1>&6
4586else
4587 saved_libs=$LIBS
4588LIBS="conftest_asm.s $LIBS"
4589cat > conftest_asm.s <<EOF
4590 .string "test"
4591EOF
4592cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004593#line 4594 "configure"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004594#include "confdefs.h"
4595
4596int main() {
4597
4598; return 0; }
4599EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004600if { (eval echo configure:4601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004601 rm -rf conftest*
4602 ac_cv_c_asm_string="yes"
4603else
4604 echo "configure: failed program was:" >&5
4605 cat conftest.$ac_ext >&5
4606 rm -rf conftest*
4607 ac_cv_c_asm_string="no"
4608fi
4609rm -f conftest*
4610LIBS=$saved_libs
4611fi
4612
4613echo "$ac_t""$ac_cv_c_asm_string" 1>&6
4614if test "$ac_cv_c_asm_string" = "yes"
4615then
4616 cat >> confdefs.h <<\EOF
4617#define HAVE_ASM_STRING 1
4618EOF
4619
4620fi
4621
4622
Todd Vierling4b992b01998-12-15 15:26:27 +00004623LDSHARED=""
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004624if test "$LIBEXT" = "so"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00004625then
Todd Vierling4b992b01998-12-15 15:26:27 +00004626 echo $ac_n "checking "whether we can build a Linux dll"""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004627echo "configure:4628: checking "whether we can build a Linux dll"" >&5
Todd Vierling4b992b01998-12-15 15:26:27 +00004628if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00004629 echo $ac_n "(cached) $ac_c" 1>&6
4630else
4631 saved_cflags=$CFLAGS
4632 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
4633 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004634#line 4635 "configure"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00004635#include "confdefs.h"
4636
4637int main() {
4638return 1
4639; return 0; }
4640EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004641if { (eval echo configure:4642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00004642 rm -rf conftest*
Todd Vierling4b992b01998-12-15 15:26:27 +00004643 ac_cv_c_dll_linux="yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00004644else
4645 echo "configure: failed program was:" >&5
4646 cat conftest.$ac_ext >&5
4647 rm -rf conftest*
Todd Vierling4b992b01998-12-15 15:26:27 +00004648 ac_cv_c_dll_linux="no"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00004649fi
4650rm -f conftest*
4651 CFLAGS=$saved_cflags
4652
4653fi
4654
Todd Vierling4b992b01998-12-15 15:26:27 +00004655echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
4656 if test "$ac_cv_c_dll_linux" = "yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00004657 then
Alexandre Julliard0adad952000-01-26 01:45:58 +00004658 LDSHARED="\$(CC) -shared -Wl,-soname,\$(SONAME),-rpath,\$(libdir)"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00004659 else
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00004660 echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004661echo "configure:4662: checking whether we can build a UnixWare (Solaris) dll" >&5
Ron Recorde977d6c1999-09-05 12:32:05 +00004662if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
Todd Vierling4b992b01998-12-15 15:26:27 +00004663 echo $ac_n "(cached) $ac_c" 1>&6
4664else
4665 saved_cflags=$CFLAGS
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00004666 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0"
Todd Vierling4b992b01998-12-15 15:26:27 +00004667 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004668#line 4669 "configure"
Todd Vierling4b992b01998-12-15 15:26:27 +00004669#include "confdefs.h"
4670
4671int main() {
4672return 1
4673; return 0; }
4674EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004675if { (eval echo configure:4676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ron Recorde977d6c1999-09-05 12:32:05 +00004676 rm -rf conftest*
4677 ac_cv_c_dll_unixware="yes"
4678else
4679 echo "configure: failed program was:" >&5
4680 cat conftest.$ac_ext >&5
4681 rm -rf conftest*
4682 ac_cv_c_dll_unixware="no"
4683fi
4684rm -f conftest*
4685 CFLAGS=$saved_cflags
4686
4687fi
4688
4689echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
4690 if test "$ac_cv_c_dll_unixware" = "yes"
4691 then
Alexandre Julliard0adad952000-01-26 01:45:58 +00004692 LDSHARED="\$(CC) -Wl,-G,-h,\$(libdir)/\$(SONAME)"
Ron Recorde977d6c1999-09-05 12:32:05 +00004693 else
4694 echo $ac_n "checking "whether we can build a NetBSD dll"""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004695echo "configure:4696: checking "whether we can build a NetBSD dll"" >&5
Ron Recorde977d6c1999-09-05 12:32:05 +00004696if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
4697 echo $ac_n "(cached) $ac_c" 1>&6
4698else
4699 saved_cflags=$CFLAGS
4700 CFLAGS="$CFLAGS -fPIC -Bshareable -Bforcearchive"
4701 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004702#line 4703 "configure"
Ron Recorde977d6c1999-09-05 12:32:05 +00004703#include "confdefs.h"
4704
4705int main() {
4706return 1
4707; return 0; }
4708EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004709if { (eval echo configure:4710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Todd Vierling4b992b01998-12-15 15:26:27 +00004710 rm -rf conftest*
4711 ac_cv_c_dll_netbsd="yes"
4712else
4713 echo "configure: failed program was:" >&5
4714 cat conftest.$ac_ext >&5
4715 rm -rf conftest*
4716 ac_cv_c_dll_netbsd="no"
4717fi
4718rm -f conftest*
Ron Recorde977d6c1999-09-05 12:32:05 +00004719 CFLAGS=$saved_cflags
4720
Todd Vierling4b992b01998-12-15 15:26:27 +00004721fi
4722
4723echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
Ron Recorde977d6c1999-09-05 12:32:05 +00004724 if test "$ac_cv_c_dll_netbsd" = "yes"
4725 then
Ron Recorde977d6c1999-09-05 12:32:05 +00004726 LDSHARED="ld -Bshareable -Bforcearchive"
4727 fi
Todd Vierling4b992b01998-12-15 15:26:27 +00004728 fi
4729 fi
Ron Recorde977d6c1999-09-05 12:32:05 +00004730 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 +00004731 then
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004732 LIBEXT="a"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00004733 fi
4734fi
4735
Alexandre Julliard0adad952000-01-26 01:45:58 +00004736DLLFLAGS=""
Alexandre Julliard0adad952000-01-26 01:45:58 +00004737
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004738if test "$LIBEXT" = "so"; then
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004739 DLLFLAGS="-fPIC"
Alexandre Julliard7e495e12000-07-25 21:01:59 +00004740 DLL_LINK="-L\$(DLLDIR) \$(IMPORTS:%=-l%) -L\$(TOPOBJDIR) -lwine -lwine_unicode"
Alexandre Julliard0adad952000-01-26 01:45:58 +00004741else
Alexandre Julliard7e495e12000-07-25 21:01:59 +00004742 DLL_LINK="-L\$(DLLDIR) \$(DLLS:%=-l%) -L\$(TOPOBJDIR) -lwine -lwine_unicode \$(X_LIBS) \$(XLIB)"
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004743 echo $ac_n "checking whether the linker supports --[no]-whole-archive (Linux)""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004744echo "configure:4745: checking whether the linker supports --[no]-whole-archive (Linux)" >&5
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00004745if eval "test \"`echo '$''{'ac_cv_c_whole_archive'+set}'`\" = set"; then
4746 echo $ac_n "(cached) $ac_c" 1>&6
4747else
4748 saved_cflags=$CFLAGS
4749 CFLAGS="$CFLAGS -Wl,--whole-archive -Wl,--no-whole-archive"
4750 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004751#line 4752 "configure"
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00004752#include "confdefs.h"
4753
4754int main() {
4755return 1
4756; return 0; }
4757EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004758if { (eval echo configure:4759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00004759 rm -rf conftest*
4760 ac_cv_c_whole_archive="yes"
4761else
4762 echo "configure: failed program was:" >&5
4763 cat conftest.$ac_ext >&5
4764 rm -rf conftest*
4765 ac_cv_c_whole_archive="no"
4766fi
4767rm -f conftest*
4768 CFLAGS=$saved_cflags
4769
4770fi
4771
4772echo "$ac_t""$ac_cv_c_whole_archive" 1>&6
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004773 if test "$ac_cv_c_whole_archive" = "yes"
4774 then
4775 DLL_LINK="-Wl,--whole-archive $DLL_LINK -Wl,--no-whole-archive"
4776 else
4777 echo $ac_n "checking whether the linker supports -z {all,default}extract (Linux)""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004778echo "configure:4779: checking whether the linker supports -z {all,default}extract (Linux)" >&5
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00004779if eval "test \"`echo '$''{'ac_cv_c_allextract'+set}'`\" = set"; then
4780 echo $ac_n "(cached) $ac_c" 1>&6
4781else
4782 saved_cflags=$CFLAGS
4783 CFLAGS="$CFLAGS -Wl,-z,allextract -Wl,-z,defaultextract"
4784 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004785#line 4786 "configure"
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00004786#include "confdefs.h"
4787
4788int main() {
4789return 1
4790; return 0; }
4791EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004792if { (eval echo configure:4793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00004793 rm -rf conftest*
4794 ac_cv_c_allextract="yes"
4795else
4796 echo "configure: failed program was:" >&5
4797 cat conftest.$ac_ext >&5
4798 rm -rf conftest*
4799 ac_cv_c_allextract="no"
4800fi
4801rm -f conftest*
4802 CFLAGS=$saved_cflags
4803
4804fi
4805
4806echo "$ac_t""$ac_cv_c_allextract" 1>&6
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004807 if test "$ac_cv_c_allextract" = "yes"
4808 then
4809 DLL_LINK="-Wl,-z,allextract $DLL_LINK -Wl,-z,defaultextract"
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00004810 fi
Alexandre Julliard0adad952000-01-26 01:45:58 +00004811 fi
4812fi
4813
4814
4815
4816
4817
4818
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00004819
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004820wine_cv_libc_reentrant=no
4821echo $ac_n "checking "for reentrant libc: __errno_location"""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004822echo "configure:4823: checking "for reentrant libc: __errno_location"" >&5
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004823if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00004824 echo $ac_n "(cached) $ac_c" 1>&6
4825else
4826 if test "$cross_compiling" = yes; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004827 wine_cv_libc_r__errno_location=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00004828else
4829 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004830#line 4831 "configure"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00004831#include "confdefs.h"
4832int myerrno = 0;
4833char buf[256];
4834int *__errno_location(){return &myerrno;}
4835main(){connect(0,buf,255); exit(!myerrno);}
4836EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004837if { (eval echo configure:4838: \"$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 +00004838then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004839 wine_cv_libc_r__errno_location=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00004840else
4841 echo "configure: failed program was:" >&5
4842 cat conftest.$ac_ext >&5
4843 rm -fr conftest*
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004844 wine_cv_libc_r__errno_location=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00004845fi
4846rm -fr conftest*
4847fi
Marcus Meissnerc2606381999-04-11 15:20:29 +00004848
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004849
4850fi
4851
4852echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
4853if test "$wine_cv_libc_r__errno_location" = "yes"
4854then
4855 cat >> confdefs.h <<\EOF
4856#define HAVE__ERRNO_LOCATION 1
4857EOF
4858
4859 wine_cv_libc_reentrant=__errno_location
4860fi
4861echo $ac_n "checking "for reentrant libc: __error"""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004862echo "configure:4863: checking "for reentrant libc: __error"" >&5
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004863if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
4864 echo $ac_n "(cached) $ac_c" 1>&6
4865else
4866 if test "$cross_compiling" = yes; then
4867 wine_cv_libc_r__error=yes
Marcus Meissnerc2606381999-04-11 15:20:29 +00004868else
4869 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004870#line 4871 "configure"
Marcus Meissnerc2606381999-04-11 15:20:29 +00004871#include "confdefs.h"
4872int myerrno = 0;
4873char buf[256];
4874int *__error(){return &myerrno;}
4875main(){connect(0,buf,255); exit(!myerrno);}
4876EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004877if { (eval echo configure:4878: \"$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 +00004878then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004879 wine_cv_libc_r__error=yes
Marcus Meissnerc2606381999-04-11 15:20:29 +00004880else
4881 echo "configure: failed program was:" >&5
4882 cat conftest.$ac_ext >&5
4883 rm -fr conftest*
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004884 wine_cv_libc_r__error=no
Marcus Meissnerc2606381999-04-11 15:20:29 +00004885fi
4886rm -fr conftest*
4887fi
4888
Marcus Meissnerc2606381999-04-11 15:20:29 +00004889
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00004890fi
4891
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004892echo "$ac_t""$wine_cv_libc_r__error" 1>&6
4893if test "$wine_cv_libc_r__error" = "yes"
4894then
4895 cat >> confdefs.h <<\EOF
4896#define HAVE__ERROR 1
4897EOF
4898
4899 wine_cv_libc_reentrant=__error
4900fi
4901echo $ac_n "checking "for reentrant libc: ___errno"""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004902echo "configure:4903: checking "for reentrant libc: ___errno"" >&5
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004903if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
4904 echo $ac_n "(cached) $ac_c" 1>&6
4905else
4906 if test "$cross_compiling" = yes; then
4907 wine_cv_libc_r___errno=yes
4908else
4909 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004910#line 4911 "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004911#include "confdefs.h"
4912int myerrno = 0;
4913char buf[256];
4914int *___errno(){return &myerrno;}
4915main(){connect(0,buf,255); exit(!myerrno);}
4916EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004917if { (eval echo configure:4918: \"$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 +00004918then
4919 wine_cv_libc_r___errno=yes
4920else
4921 echo "configure: failed program was:" >&5
4922 cat conftest.$ac_ext >&5
4923 rm -fr conftest*
4924 wine_cv_libc_r___errno=no
4925fi
4926rm -fr conftest*
4927fi
4928
4929
4930fi
4931
4932echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
4933if test "$wine_cv_libc_r___errno" = "yes"
4934then
4935 cat >> confdefs.h <<\EOF
4936#define HAVE___ERRNO 1
4937EOF
4938
4939 wine_cv_libc_reentrant=___errno
4940fi
Ron Recorde977d6c1999-09-05 12:32:05 +00004941echo $ac_n "checking "for reentrant libc: __thr_errno"""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004942echo "configure:4943: checking "for reentrant libc: __thr_errno"" >&5
Ron Recorde977d6c1999-09-05 12:32:05 +00004943if eval "test \"`echo '$''{'wine_cv_libc_r__thr_errno'+set}'`\" = set"; then
4944 echo $ac_n "(cached) $ac_c" 1>&6
4945else
4946 if test "$cross_compiling" = yes; then
4947 wine_cv_libc_r__thr_errno=yes
4948else
4949 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004950#line 4951 "configure"
Ron Recorde977d6c1999-09-05 12:32:05 +00004951#include "confdefs.h"
4952int myerrno = 0;
4953char buf[256];
4954int *__thr_errno(){return &myerrno;}
4955main(){connect(0,buf,255); exit(!myerrno);}
4956EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004957if { (eval echo configure:4958: \"$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 +00004958then
4959 wine_cv_libc_r__thr_errno=yes
4960else
4961 echo "configure: failed program was:" >&5
4962 cat conftest.$ac_ext >&5
4963 rm -fr conftest*
4964 wine_cv_libc_r__thr_errno=no
4965fi
4966rm -fr conftest*
4967fi
4968
4969
4970fi
4971
4972echo "$ac_t""$wine_cv_libc_r__thr_errno" 1>&6
4973if test "$wine_cv_libc_r__thr_errno" = "yes"
4974then
4975 cat >> confdefs.h <<\EOF
4976#define HAVE__THR_ERRNO 1
4977EOF
4978
4979 wine_cv_libc_reentrant=__thr_errno
4980fi
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00004981if test "$wine_cv_libc_reentrant" = "no"
4982then
4983 cat >> confdefs.h <<\EOF
4984#define NO_REENTRANT_LIBC 1
4985EOF
4986
4987fi
4988
4989
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004990if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
Patrik Stridvall24110281999-02-04 10:09:54 +00004991then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00004992echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00004993echo "configure:4994: checking "for reentrant X libraries"" >&5
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00004994if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
4995 echo $ac_n "(cached) $ac_c" 1>&6
4996else
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004997 if test "x$with_reentrant_x" = "xno"
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00004998 then
4999 wine_cv_x_reentrant=no
5000 else
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005001 libX11_check=none
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005002 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
Alexandre Julliard829fe321998-07-26 14:27:39 +00005003 if test -r $dir/libX11.so; then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005004 libX11_check="-D $dir/libX11.so"
5005 break 1
5006 fi
Alexandre Julliard829fe321998-07-26 14:27:39 +00005007 if test -r $dir/libX11.a; then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005008 libX11_check="$dir/libX11.a"
5009 break 1
5010 fi
5011 done
5012 if test "$libX11_check" != "none"; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005013 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
Alexandre Julliard829fe321998-07-26 14:27:39 +00005014 then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005015 wine_cv_x_reentrant=yes
5016 else
5017 wine_cv_x_reentrant=no
5018 fi
5019 else
5020 wine_cv_x_reentrant=unknown
5021 fi
5022 fi
5023fi
5024
5025echo "$ac_t""$wine_cv_x_reentrant" 1>&6
Patrik Stridvall24110281999-02-04 10:09:54 +00005026else
5027 wine_cv_x_reentrant=no
5028fi
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005029if test "$wine_cv_x_reentrant" = "no"
5030then
5031 cat >> confdefs.h <<\EOF
5032#define NO_REENTRANT_X11 1
5033EOF
5034
5035fi
5036
5037
Francois Gougetae5e93e1999-11-13 23:02:06 +00005038echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005039echo "configure:5040: checking whether byte ordering is bigendian" >&5
Francois Gougetae5e93e1999-11-13 23:02:06 +00005040if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
5041 echo $ac_n "(cached) $ac_c" 1>&6
5042else
5043 ac_cv_c_bigendian=unknown
5044# See if sys/param.h defines the BYTE_ORDER macro.
5045cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005046#line 5047 "configure"
Francois Gougetae5e93e1999-11-13 23:02:06 +00005047#include "confdefs.h"
5048#include <sys/types.h>
5049#include <sys/param.h>
5050int main() {
5051
5052#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5053 bogus endian macros
5054#endif
5055; return 0; }
5056EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005057if { (eval echo configure:5058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Francois Gougetae5e93e1999-11-13 23:02:06 +00005058 rm -rf conftest*
5059 # It does; now see whether it defined to BIG_ENDIAN or not.
5060cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005061#line 5062 "configure"
Francois Gougetae5e93e1999-11-13 23:02:06 +00005062#include "confdefs.h"
5063#include <sys/types.h>
5064#include <sys/param.h>
5065int main() {
5066
5067#if BYTE_ORDER != BIG_ENDIAN
5068 not big endian
5069#endif
5070; return 0; }
5071EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005072if { (eval echo configure:5073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Francois Gougetae5e93e1999-11-13 23:02:06 +00005073 rm -rf conftest*
5074 ac_cv_c_bigendian=yes
5075else
5076 echo "configure: failed program was:" >&5
5077 cat conftest.$ac_ext >&5
5078 rm -rf conftest*
5079 ac_cv_c_bigendian=no
5080fi
5081rm -f conftest*
5082else
5083 echo "configure: failed program was:" >&5
5084 cat conftest.$ac_ext >&5
5085fi
5086rm -f conftest*
5087if test $ac_cv_c_bigendian = unknown; then
5088if test "$cross_compiling" = yes; then
5089 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5090else
5091 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005092#line 5093 "configure"
Francois Gougetae5e93e1999-11-13 23:02:06 +00005093#include "confdefs.h"
5094main () {
5095 /* Are we little or big endian? From Harbison&Steele. */
5096 union
5097 {
5098 long l;
5099 char c[sizeof (long)];
5100 } u;
5101 u.l = 1;
5102 exit (u.c[sizeof (long) - 1] == 1);
5103}
5104EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005105if { (eval echo configure:5106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Francois Gougetae5e93e1999-11-13 23:02:06 +00005106then
5107 ac_cv_c_bigendian=no
5108else
5109 echo "configure: failed program was:" >&5
5110 cat conftest.$ac_ext >&5
5111 rm -fr conftest*
5112 ac_cv_c_bigendian=yes
5113fi
5114rm -fr conftest*
5115fi
5116
5117fi
5118fi
5119
5120echo "$ac_t""$ac_cv_c_bigendian" 1>&6
5121if test $ac_cv_c_bigendian = yes; then
5122 cat >> confdefs.h <<\EOF
5123#define WORDS_BIGENDIAN 1
5124EOF
5125
5126fi
5127
5128
5129
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005130# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5131# for constant arguments. Useless!
5132echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005133echo "configure:5134: checking for working alloca.h" >&5
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005134if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5135 echo $ac_n "(cached) $ac_c" 1>&6
5136else
5137 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005138#line 5139 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005139#include "confdefs.h"
5140#include <alloca.h>
5141int main() {
Eric Pouech18ad24a2000-01-16 22:16:33 +00005142void *p = alloca(2 * sizeof(int));
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005143; return 0; }
5144EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005145if { (eval echo configure:5146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005146 rm -rf conftest*
5147 ac_cv_header_alloca_h=yes
5148else
5149 echo "configure: failed program was:" >&5
5150 cat conftest.$ac_ext >&5
5151 rm -rf conftest*
5152 ac_cv_header_alloca_h=no
5153fi
5154rm -f conftest*
5155fi
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005156
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005157echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5158if test $ac_cv_header_alloca_h = yes; then
5159 cat >> confdefs.h <<\EOF
5160#define HAVE_ALLOCA_H 1
5161EOF
5162
5163fi
5164
5165echo $ac_n "checking for alloca""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005166echo "configure:5167: checking for alloca" >&5
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005167if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5168 echo $ac_n "(cached) $ac_c" 1>&6
5169else
5170 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005171#line 5172 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005172#include "confdefs.h"
5173
5174#ifdef __GNUC__
5175# define alloca __builtin_alloca
5176#else
Eric Pouech18ad24a2000-01-16 22:16:33 +00005177# ifdef _MSC_VER
5178# include <malloc.h>
5179# define alloca _alloca
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005180# else
Eric Pouech18ad24a2000-01-16 22:16:33 +00005181# if HAVE_ALLOCA_H
5182# include <alloca.h>
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005183# else
Eric Pouech18ad24a2000-01-16 22:16:33 +00005184# ifdef _AIX
5185 #pragma alloca
5186# else
5187# ifndef alloca /* predefined by HP cc +Olibcalls */
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005188char *alloca ();
Eric Pouech18ad24a2000-01-16 22:16:33 +00005189# endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005190# endif
5191# endif
5192# endif
5193#endif
5194
5195int main() {
5196char *p = (char *) alloca(1);
5197; return 0; }
5198EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005199if { (eval echo configure:5200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005200 rm -rf conftest*
5201 ac_cv_func_alloca_works=yes
5202else
5203 echo "configure: failed program was:" >&5
5204 cat conftest.$ac_ext >&5
5205 rm -rf conftest*
5206 ac_cv_func_alloca_works=no
5207fi
5208rm -f conftest*
5209fi
5210
5211echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5212if test $ac_cv_func_alloca_works = yes; then
5213 cat >> confdefs.h <<\EOF
5214#define HAVE_ALLOCA 1
5215EOF
5216
5217fi
5218
5219if test $ac_cv_func_alloca_works = no; then
5220 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5221 # that cause trouble. Some versions do not even contain alloca or
5222 # contain a buggy version. If you still want to use their alloca,
5223 # use ar to extract alloca.o from them instead of compiling alloca.c.
Eric Pouech18ad24a2000-01-16 22:16:33 +00005224 ALLOCA=alloca.${ac_objext}
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005225 cat >> confdefs.h <<\EOF
5226#define C_ALLOCA 1
5227EOF
5228
5229
5230echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005231echo "configure:5232: checking whether alloca needs Cray hooks" >&5
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005232if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5233 echo $ac_n "(cached) $ac_c" 1>&6
5234else
5235 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005236#line 5237 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005237#include "confdefs.h"
5238#if defined(CRAY) && ! defined(CRAY2)
5239webecray
5240#else
5241wenotbecray
5242#endif
5243
5244EOF
5245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5246 egrep "webecray" >/dev/null 2>&1; then
5247 rm -rf conftest*
5248 ac_cv_os_cray=yes
5249else
5250 rm -rf conftest*
5251 ac_cv_os_cray=no
5252fi
5253rm -f conftest*
5254
5255fi
5256
5257echo "$ac_t""$ac_cv_os_cray" 1>&6
5258if test $ac_cv_os_cray = yes; then
5259for ac_func in _getb67 GETB67 getb67; do
5260 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005261echo "configure:5262: checking for $ac_func" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005262if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5263 echo $ac_n "(cached) $ac_c" 1>&6
5264else
5265 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005266#line 5267 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005267#include "confdefs.h"
5268/* System header to define __stub macros and hopefully few prototypes,
5269 which can conflict with char $ac_func(); below. */
5270#include <assert.h>
5271/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005272/* We use char because int might match the return type of a gcc2
5273 builtin and then its argument prototype would still apply. */
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00005274char $ac_func();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005275
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005276int main() {
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005277
5278/* The GNU C library defines this for functions which it implements
5279 to always fail with ENOSYS. Some functions are actually named
5280 something starting with __ and the normal name is an alias. */
5281#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5282choke me
5283#else
5284$ac_func();
5285#endif
5286
5287; return 0; }
5288EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005289if { (eval echo configure:5290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005290 rm -rf conftest*
5291 eval "ac_cv_func_$ac_func=yes"
5292else
5293 echo "configure: failed program was:" >&5
5294 cat conftest.$ac_ext >&5
5295 rm -rf conftest*
5296 eval "ac_cv_func_$ac_func=no"
5297fi
5298rm -f conftest*
5299fi
5300
5301if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5302 echo "$ac_t""yes" 1>&6
5303 cat >> confdefs.h <<EOF
5304#define CRAY_STACKSEG_END $ac_func
5305EOF
5306
5307 break
5308else
5309 echo "$ac_t""no" 1>&6
5310fi
5311
5312done
5313fi
5314
5315echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005316echo "configure:5317: checking stack direction for C alloca" >&5
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005317if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5318 echo $ac_n "(cached) $ac_c" 1>&6
5319else
5320 if test "$cross_compiling" = yes; then
5321 ac_cv_c_stack_direction=0
5322else
5323 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005324#line 5325 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005325#include "confdefs.h"
5326find_stack_direction ()
5327{
5328 static char *addr = 0;
5329 auto char dummy;
5330 if (addr == 0)
5331 {
5332 addr = &dummy;
5333 return find_stack_direction ();
5334 }
5335 else
5336 return (&dummy > addr) ? 1 : -1;
5337}
5338main ()
5339{
5340 exit (find_stack_direction() < 0);
5341}
5342EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005343if { (eval echo configure:5344: \"$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 +00005344then
5345 ac_cv_c_stack_direction=1
5346else
5347 echo "configure: failed program was:" >&5
5348 cat conftest.$ac_ext >&5
5349 rm -fr conftest*
5350 ac_cv_c_stack_direction=-1
5351fi
5352rm -fr conftest*
5353fi
5354
5355fi
5356
5357echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5358cat >> confdefs.h <<EOF
5359#define STACK_DIRECTION $ac_cv_c_stack_direction
5360EOF
5361
5362fi
5363
5364for ac_func in \
Eric Pouechf61d7e02000-04-29 16:44:19 +00005365 __libc_fork \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005366 _lwp_create \
5367 clone \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005368 getnetbyaddr \
5369 getnetbyname \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005370 getpagesize \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005371 getprotobyname \
5372 getprotobynumber \
5373 getservbyport \
5374 getsockopt \
5375 inet_network \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005376 memmove \
5377 rfork \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005378 select \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005379 sendmsg \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005380 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005381 sigaltstack \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005382 statfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +00005383 strcasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005384 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +00005385 strncasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005386 tcgetattr \
5387 timegm \
5388 usleep \
5389 vfscanf \
5390 wait4 \
5391 waitpid \
5392
5393do
5394echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005395echo "configure:5396: checking for $ac_func" >&5
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005396if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5397 echo $ac_n "(cached) $ac_c" 1>&6
5398else
5399 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005400#line 5401 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005401#include "confdefs.h"
5402/* System header to define __stub macros and hopefully few prototypes,
5403 which can conflict with char $ac_func(); below. */
5404#include <assert.h>
5405/* Override any gcc2 internal prototype to avoid an error. */
5406/* We use char because int might match the return type of a gcc2
5407 builtin and then its argument prototype would still apply. */
5408char $ac_func();
5409
5410int main() {
5411
5412/* The GNU C library defines this for functions which it implements
5413 to always fail with ENOSYS. Some functions are actually named
5414 something starting with __ and the normal name is an alias. */
5415#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5416choke me
5417#else
5418$ac_func();
5419#endif
5420
5421; return 0; }
5422EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005423if { (eval echo configure:5424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005424 rm -rf conftest*
5425 eval "ac_cv_func_$ac_func=yes"
5426else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005427 echo "configure: failed program was:" >&5
5428 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005429 rm -rf conftest*
5430 eval "ac_cv_func_$ac_func=no"
5431fi
5432rm -f conftest*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005433fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005434
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005435if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5436 echo "$ac_t""yes" 1>&6
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00005437 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005438 cat >> confdefs.h <<EOF
5439#define $ac_tr_func 1
5440EOF
5441
5442else
5443 echo "$ac_t""no" 1>&6
5444fi
5445done
5446
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005447
5448
5449for ac_hdr in \
Patrik Stridvall96336321999-10-24 22:13:47 +00005450 a.out.h \
5451 a_out.h \
5452 arpa/inet.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005453 arpa/nameser.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005454 elf.h \
5455 float.h \
5456 libio.h \
Hidenori Takeshima01f78aa2000-07-09 12:19:09 +00005457 libutil.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005458 link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005459 linux/cdrom.h \
Marcus Meissner028e9a11999-08-04 15:07:56 +00005460 linux/joystick.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005461 linux/ucdrom.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005462 net/if.h \
5463 netinet/in.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005464 netinet/tcp.h \
Marcus Meissner2d7be871999-12-05 23:06:40 +00005465 pty.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005466 resolv.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005467 sched.h \
5468 socket.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005469 strings.h \
5470 sys/cdio.h \
Howard Abrams13277481999-07-10 13:16:29 +00005471 sys/errno.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005472 sys/file.h \
5473 sys/filio.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005474 sys/ipc.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005475 sys/lwp.h \
Howard Abrams13277481999-07-10 13:16:29 +00005476 sys/mman.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005477 sys/modem.h \
5478 sys/mount.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005479 sys/msg.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005480 sys/param.h \
Ulrich Weigand8a1bdb32000-01-30 22:22:22 +00005481 sys/reg.h \
Howard Abrams13277481999-07-10 13:16:29 +00005482 sys/signal.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005483 sys/shm.h \
5484 sys/socket.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005485 sys/sockio.h \
5486 sys/statfs.h \
5487 sys/strtio.h \
5488 sys/syscall.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005489 sys/wait.h \
5490 sys/v86.h \
5491 sys/v86intr.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005492 sys/vfs.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005493 sys/vm86.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005494 syscall.h \
Alexandre Julliardc97bb4c2000-08-11 20:53:40 +00005495 ucontext.h
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005496
Alexandre Julliard02e90081998-01-04 17:49:09 +00005497do
5498ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5499echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005500echo "configure:5501: checking for $ac_hdr" >&5
Alexandre Julliard02e90081998-01-04 17:49:09 +00005501if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5502 echo $ac_n "(cached) $ac_c" 1>&6
5503else
5504 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005505#line 5506 "configure"
Alexandre Julliard02e90081998-01-04 17:49:09 +00005506#include "confdefs.h"
5507#include <$ac_hdr>
5508EOF
5509ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005510{ (eval echo configure:5511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00005511ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliard02e90081998-01-04 17:49:09 +00005512if test -z "$ac_err"; then
5513 rm -rf conftest*
5514 eval "ac_cv_header_$ac_safe=yes"
5515else
5516 echo "$ac_err" >&5
5517 echo "configure: failed program was:" >&5
5518 cat conftest.$ac_ext >&5
5519 rm -rf conftest*
5520 eval "ac_cv_header_$ac_safe=no"
5521fi
5522rm -f conftest*
5523fi
5524if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5525 echo "$ac_t""yes" 1>&6
5526 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5527 cat >> confdefs.h <<EOF
5528#define $ac_tr_hdr 1
5529EOF
5530
5531else
5532 echo "$ac_t""no" 1>&6
5533fi
5534done
5535
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005536echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005537echo "configure:5538: checking whether stat file-mode macros are broken" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005538if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5539 echo $ac_n "(cached) $ac_c" 1>&6
5540else
5541 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005542#line 5543 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005543#include "confdefs.h"
5544#include <sys/types.h>
5545#include <sys/stat.h>
5546
5547#if defined(S_ISBLK) && defined(S_IFDIR)
5548# if S_ISBLK (S_IFDIR)
5549You lose.
5550# endif
5551#endif
5552
5553#if defined(S_ISBLK) && defined(S_IFCHR)
5554# if S_ISBLK (S_IFCHR)
5555You lose.
5556# endif
5557#endif
5558
5559#if defined(S_ISLNK) && defined(S_IFREG)
5560# if S_ISLNK (S_IFREG)
5561You lose.
5562# endif
5563#endif
5564
5565#if defined(S_ISSOCK) && defined(S_IFREG)
5566# if S_ISSOCK (S_IFREG)
5567You lose.
5568# endif
5569#endif
5570
5571EOF
5572if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5573 egrep "You lose" >/dev/null 2>&1; then
5574 rm -rf conftest*
5575 ac_cv_header_stat_broken=yes
5576else
5577 rm -rf conftest*
5578 ac_cv_header_stat_broken=no
5579fi
5580rm -f conftest*
5581
5582fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00005583
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005584echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5585if test $ac_cv_header_stat_broken = yes; then
5586 cat >> confdefs.h <<\EOF
5587#define STAT_MACROS_BROKEN 1
5588EOF
5589
5590fi
5591
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005592
5593
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005594echo $ac_n "checking for working const""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005595echo "configure:5596: checking for working const" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005596if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5597 echo $ac_n "(cached) $ac_c" 1>&6
5598else
5599 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005600#line 5601 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005601#include "confdefs.h"
5602
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005603int main() {
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005604
5605/* Ultrix mips cc rejects this. */
Eric Pouech18ad24a2000-01-16 22:16:33 +00005606typedef int charset[2]; const charset x = {0,0};
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005607/* SunOS 4.1.1 cc rejects this. */
5608char const *const *ccp;
5609char **p;
5610/* NEC SVR4.0.2 mips cc rejects this. */
5611struct point {int x, y;};
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00005612static struct point const zero = {0,0};
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005613/* AIX XL C 1.02.0.0 rejects this.
5614 It does not let you subtract one const X* pointer from another in an arm
5615 of an if-expression whose if-part is not a constant expression */
5616const char *g = "string";
5617ccp = &g + (g ? g-g : 0);
5618/* HPUX 7.0 cc rejects these. */
5619++ccp;
5620p = (char**) ccp;
5621ccp = (char const *const *) p;
5622{ /* SCO 3.2v4 cc rejects this. */
5623 char *t;
5624 char const *s = 0 ? (char *) 0 : (char const *) 0;
5625
5626 *t++ = 0;
5627}
5628{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5629 int x[] = {25, 17};
5630 const int *foo = &x[0];
5631 ++foo;
5632}
5633{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5634 typedef const int *iptr;
5635 iptr p = 0;
5636 ++p;
5637}
5638{ /* AIX XL C 1.02.0.0 rejects this saying
5639 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5640 struct s { int j; const int *ap[3]; };
5641 struct s *b; b->j = 5;
5642}
5643{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5644 const int foo = 10;
5645}
5646
5647; return 0; }
5648EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005649if { (eval echo configure:5650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005650 rm -rf conftest*
5651 ac_cv_c_const=yes
5652else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005653 echo "configure: failed program was:" >&5
5654 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005655 rm -rf conftest*
5656 ac_cv_c_const=no
5657fi
5658rm -f conftest*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005659fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00005660
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005661echo "$ac_t""$ac_cv_c_const" 1>&6
5662if test $ac_cv_c_const = no; then
5663 cat >> confdefs.h <<\EOF
5664#define const
5665EOF
5666
5667fi
5668
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00005669echo $ac_n "checking for inline""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005670echo "configure:5671: checking for inline" >&5
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00005671if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5672 echo $ac_n "(cached) $ac_c" 1>&6
5673else
5674 ac_cv_c_inline=no
5675for ac_kw in inline __inline__ __inline; do
5676 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005677#line 5678 "configure"
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00005678#include "confdefs.h"
5679
5680int main() {
Eric Pouech18ad24a2000-01-16 22:16:33 +00005681} int $ac_kw foo() {
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00005682; return 0; }
5683EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005684if { (eval echo configure:5685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00005685 rm -rf conftest*
5686 ac_cv_c_inline=$ac_kw; break
5687else
5688 echo "configure: failed program was:" >&5
5689 cat conftest.$ac_ext >&5
5690fi
5691rm -f conftest*
5692done
5693
5694fi
5695
5696echo "$ac_t""$ac_cv_c_inline" 1>&6
5697case "$ac_cv_c_inline" in
5698 inline | yes) ;;
5699 no) cat >> confdefs.h <<\EOF
5700#define inline
5701EOF
5702 ;;
5703 *) cat >> confdefs.h <<EOF
5704#define inline $ac_cv_c_inline
5705EOF
5706 ;;
5707esac
5708
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005709echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005710echo "configure:5711: checking for ANSI C header files" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005711if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5712 echo $ac_n "(cached) $ac_c" 1>&6
5713else
5714 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005715#line 5716 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005716#include "confdefs.h"
5717#include <stdlib.h>
5718#include <stdarg.h>
5719#include <string.h>
5720#include <float.h>
5721EOF
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00005722ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005723{ (eval echo configure:5724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00005724ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005725if test -z "$ac_err"; then
5726 rm -rf conftest*
5727 ac_cv_header_stdc=yes
5728else
5729 echo "$ac_err" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005730 echo "configure: failed program was:" >&5
5731 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005732 rm -rf conftest*
5733 ac_cv_header_stdc=no
5734fi
5735rm -f conftest*
5736
5737if test $ac_cv_header_stdc = yes; then
5738 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5739cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005740#line 5741 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005741#include "confdefs.h"
5742#include <string.h>
5743EOF
5744if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5745 egrep "memchr" >/dev/null 2>&1; then
5746 :
5747else
5748 rm -rf conftest*
5749 ac_cv_header_stdc=no
5750fi
5751rm -f conftest*
5752
5753fi
5754
5755if test $ac_cv_header_stdc = yes; then
5756 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5757cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005758#line 5759 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005759#include "confdefs.h"
5760#include <stdlib.h>
5761EOF
5762if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5763 egrep "free" >/dev/null 2>&1; then
5764 :
5765else
5766 rm -rf conftest*
5767 ac_cv_header_stdc=no
5768fi
5769rm -f conftest*
5770
5771fi
5772
5773if test $ac_cv_header_stdc = yes; then
5774 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5775if test "$cross_compiling" = yes; then
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00005776 :
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005777else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005778 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005779#line 5780 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005780#include "confdefs.h"
5781#include <ctype.h>
5782#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5783#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5784#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5785int main () { int i; for (i = 0; i < 256; i++)
5786if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5787exit (0); }
5788
5789EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005790if { (eval echo configure:5791: \"$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 +00005791then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005792 :
5793else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005794 echo "configure: failed program was:" >&5
5795 cat conftest.$ac_ext >&5
5796 rm -fr conftest*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005797 ac_cv_header_stdc=no
5798fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005799rm -fr conftest*
5800fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005801
5802fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005803fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00005804
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005805echo "$ac_t""$ac_cv_header_stdc" 1>&6
5806if test $ac_cv_header_stdc = yes; then
5807 cat >> confdefs.h <<\EOF
5808#define STDC_HEADERS 1
5809EOF
5810
5811fi
5812
5813echo $ac_n "checking for size_t""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005814echo "configure:5815: checking for size_t" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005815if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5816 echo $ac_n "(cached) $ac_c" 1>&6
5817else
5818 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005819#line 5820 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005820#include "confdefs.h"
5821#include <sys/types.h>
5822#if STDC_HEADERS
5823#include <stdlib.h>
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005824#include <stddef.h>
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005825#endif
5826EOF
5827if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Eric Pouech18ad24a2000-01-16 22:16:33 +00005828 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 +00005829 rm -rf conftest*
5830 ac_cv_type_size_t=yes
5831else
5832 rm -rf conftest*
5833 ac_cv_type_size_t=no
5834fi
5835rm -f conftest*
5836
5837fi
5838echo "$ac_t""$ac_cv_type_size_t" 1>&6
5839if test $ac_cv_type_size_t = no; then
5840 cat >> confdefs.h <<\EOF
5841#define size_t unsigned
5842EOF
5843
5844fi
5845
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00005846echo $ac_n "checking size of long long""... $ac_c" 1>&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005847echo "configure:5848: checking size of long long" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00005848if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
5849 echo $ac_n "(cached) $ac_c" 1>&6
5850else
5851 if test "$cross_compiling" = yes; then
5852 ac_cv_sizeof_long_long=0
5853else
5854 cat > conftest.$ac_ext <<EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005855#line 5856 "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00005856#include "confdefs.h"
5857#include <stdio.h>
5858main()
5859{
5860 FILE *f=fopen("conftestval", "w");
5861 if (!f) exit(1);
5862 fprintf(f, "%d\n", sizeof(long long));
5863 exit(0);
5864}
5865EOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00005866if { (eval echo configure:5867: \"$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 +00005867then
5868 ac_cv_sizeof_long_long=`cat conftestval`
5869else
5870 echo "configure: failed program was:" >&5
5871 cat conftest.$ac_ext >&5
5872 rm -fr conftest*
5873 ac_cv_sizeof_long_long=0
5874fi
5875rm -fr conftest*
5876fi
5877
5878fi
5879echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
5880cat >> confdefs.h <<EOF
5881#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5882EOF
5883
5884
5885
Rein Klazesff7a61f2000-09-24 19:41:57 +00005886
5887echo $ac_n "checking "whether we can use re-entrant gethostbyname_r Linux style"""... $ac_c" 1>&6
5888echo "configure:5889: checking "whether we can use re-entrant gethostbyname_r Linux style"" >&5
5889if eval "test \"`echo '$''{'wine_cv_linux_gethostbyname_r_6'+set}'`\" = set"; then
5890 echo $ac_n "(cached) $ac_c" 1>&6
5891else
5892 cat > conftest.$ac_ext <<EOF
5893#line 5894 "configure"
5894#include "confdefs.h"
5895
5896#include <netdb.h>
5897
5898int main() {
5899
5900 char *name=NULL;
5901 struct hostent he;
5902 struct hostent *result;
5903 char *buf=NULL;
5904 int bufsize=0;
5905 int res,errnr;
5906 char *addr=NULL;
5907 int addrlen=0;
5908 int addrtype=0;
5909 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
5910 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
5911
5912; return 0; }
5913EOF
5914if { (eval echo configure:5915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5915 rm -rf conftest*
5916 wine_cv_linux_gethostbyname_r_6=yes
5917else
5918 echo "configure: failed program was:" >&5
5919 cat conftest.$ac_ext >&5
5920 rm -rf conftest*
5921 wine_cv_linux_gethostbyname_r_6=no
5922
5923fi
5924rm -f conftest*
5925
5926fi
5927
5928echo "$ac_t""$wine_cv_linux_gethostbyname_r_6" 1>&6
5929 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
5930 then
5931 cat >> confdefs.h <<\EOF
5932#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
5933EOF
5934
5935 fi
5936
Marcus Meissner028e9a11999-08-04 15:07:56 +00005937if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00005938then
Marcus Meissner028e9a11999-08-04 15:07:56 +00005939 echo $ac_n "checking "whether linux/joystick.h uses the Linux 2.2+ API"""... $ac_c" 1>&6
Rein Klazesff7a61f2000-09-24 19:41:57 +00005940echo "configure:5941: checking "whether linux/joystick.h uses the Linux 2.2+ API"" >&5
Marcus Meissner028e9a11999-08-04 15:07:56 +00005941if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00005942 echo $ac_n "(cached) $ac_c" 1>&6
5943else
5944 cat > conftest.$ac_ext <<EOF
Rein Klazesff7a61f2000-09-24 19:41:57 +00005945#line 5946 "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00005946#include "confdefs.h"
5947
Marcus Meissner028e9a11999-08-04 15:07:56 +00005948 #include <sys/ioctl.h>
5949 #include <linux/joystick.h>
5950
5951 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +00005952 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
5953 #error "no 2.2 header"
5954 #endif
Marcus Meissner028e9a11999-08-04 15:07:56 +00005955
5956int main() {
5957/*empty*/
5958; return 0; }
5959EOF
Rein Klazesff7a61f2000-09-24 19:41:57 +00005960if { (eval echo configure:5961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Marcus Meissner028e9a11999-08-04 15:07:56 +00005961 rm -rf conftest*
5962 wine_cv_linux_joystick_22_api=yes
5963else
5964 echo "configure: failed program was:" >&5
5965 cat conftest.$ac_ext >&5
5966 rm -rf conftest*
5967 wine_cv_linux_joystick_22_api=no
5968fi
5969rm -f conftest*
5970
5971fi
5972
5973echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
Rein Klazes87d224a2000-04-24 17:33:49 +00005974 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +00005975 then
5976 cat >> confdefs.h <<\EOF
5977#define HAVE_LINUX_22_JOYSTICK_API 1
5978EOF
5979
5980 fi
5981fi
5982
5983
5984if test "$ac_cv_header_sys_vfs_h" = "yes"
5985then
5986 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
Rein Klazesff7a61f2000-09-24 19:41:57 +00005987echo "configure:5988: checking "whether sys/vfs.h defines statfs"" >&5
Marcus Meissner028e9a11999-08-04 15:07:56 +00005988if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
5989 echo $ac_n "(cached) $ac_c" 1>&6
5990else
5991 cat > conftest.$ac_ext <<EOF
Rein Klazesff7a61f2000-09-24 19:41:57 +00005992#line 5993 "configure"
Marcus Meissner028e9a11999-08-04 15:07:56 +00005993#include "confdefs.h"
5994
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00005995 #include <sys/types.h>
5996 #ifdef HAVE_SYS_PARAM_H
5997 # include <sys/param.h>
5998 #endif
5999 #include <sys/vfs.h>
6000
6001int main() {
6002
6003 struct statfs stfs;
6004
6005 memset(&stfs,0,sizeof(stfs));
6006
6007; return 0; }
6008EOF
Rein Klazesff7a61f2000-09-24 19:41:57 +00006009if { (eval echo configure:6010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006010 rm -rf conftest*
6011 wine_cv_sys_vfs_has_statfs=yes
6012else
6013 echo "configure: failed program was:" >&5
6014 cat conftest.$ac_ext >&5
6015 rm -rf conftest*
6016 wine_cv_sys_vfs_has_statfs=no
6017
6018fi
6019rm -f conftest*
6020
6021fi
6022
6023echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
6024 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
6025 then
6026 cat >> confdefs.h <<\EOF
6027#define STATFS_DEFINED_BY_SYS_VFS 1
6028EOF
6029
6030 fi
6031fi
6032
6033if test "$ac_cv_header_sys_statfs_h" = "yes"
6034then
6035 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
Rein Klazesff7a61f2000-09-24 19:41:57 +00006036echo "configure:6037: checking "whether sys/statfs.h defines statfs"" >&5
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006037if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
6038 echo $ac_n "(cached) $ac_c" 1>&6
6039else
6040 cat > conftest.$ac_ext <<EOF
Rein Klazesff7a61f2000-09-24 19:41:57 +00006041#line 6042 "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006042#include "confdefs.h"
6043
6044 #include <sys/types.h>
6045 #ifdef HAVE_SYS_PARAM_H
6046 # include <sys/param.h>
6047 #endif
6048 #include <sys/statfs.h>
6049
6050int main() {
6051
6052 struct statfs stfs;
6053
6054; return 0; }
6055EOF
Rein Klazesff7a61f2000-09-24 19:41:57 +00006056if { (eval echo configure:6057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006057 rm -rf conftest*
6058 wine_cv_sys_statfs_has_statfs=yes
6059else
6060 echo "configure: failed program was:" >&5
6061 cat conftest.$ac_ext >&5
6062 rm -rf conftest*
6063 wine_cv_sys_statfs_has_statfs=no
6064
6065fi
6066rm -f conftest*
6067
6068fi
6069
6070echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
6071 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
6072 then
6073 cat >> confdefs.h <<\EOF
6074#define STATFS_DEFINED_BY_SYS_STATFS 1
6075EOF
6076
6077 fi
6078fi
6079
6080if test "$ac_cv_header_sys_mount_h" = "yes"
6081then
6082 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
Rein Klazesff7a61f2000-09-24 19:41:57 +00006083echo "configure:6084: checking "whether sys/mount.h defines statfs"" >&5
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006084if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
6085 echo $ac_n "(cached) $ac_c" 1>&6
6086else
6087 cat > conftest.$ac_ext <<EOF
Rein Klazesff7a61f2000-09-24 19:41:57 +00006088#line 6089 "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006089#include "confdefs.h"
6090
6091 #include <sys/types.h>
6092 #ifdef HAVE_SYS_PARAM_H
6093 # include <sys/param.h>
6094 #endif
6095 #include <sys/mount.h>
6096
6097int main() {
6098
6099 struct statfs stfs;
6100
6101; return 0; }
6102EOF
Rein Klazesff7a61f2000-09-24 19:41:57 +00006103if { (eval echo configure:6104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006104 rm -rf conftest*
6105 wine_cv_sys_mount_has_statfs=yes
6106else
6107 echo "configure: failed program was:" >&5
6108 cat conftest.$ac_ext >&5
6109 rm -rf conftest*
6110 wine_cv_sys_mount_has_statfs=no
6111
6112fi
6113rm -f conftest*
6114
6115fi
6116
6117echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
6118 if test "$wine_cv_sys_mount_has_statfs" = "yes"
6119 then
6120 cat >> confdefs.h <<\EOF
6121#define STATFS_DEFINED_BY_SYS_MOUNT 1
6122EOF
6123
6124 fi
6125fi
6126
6127
6128echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
Rein Klazesff7a61f2000-09-24 19:41:57 +00006129echo "configure:6130: checking "for statfs.f_bfree"" >&5
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006130if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
6131 echo $ac_n "(cached) $ac_c" 1>&6
6132else
6133 if test "x$statfs_bfree" = "xno"
6134 then
6135 wine_cv_statfs_bfree=no
6136 else
6137 cat > conftest.$ac_ext <<EOF
Rein Klazesff7a61f2000-09-24 19:41:57 +00006138#line 6139 "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006139#include "confdefs.h"
6140
6141 #include <sys/types.h>
6142 #ifdef HAVE_SYS_PARAM_H
6143 # include <sys/param.h>
6144 #endif
6145 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6146 # include <sys/mount.h>
6147 #else
6148 # ifdef STATFS_DEFINED_BY_SYS_VFS
6149 # include <sys/vfs.h>
6150 # else
6151 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6152 # include <sys/statfs.h>
6153 # endif
6154 # endif
6155 #endif
6156
6157int main() {
6158
6159 struct statfs stfs;
6160
6161 stfs.f_bfree++;
6162
6163; return 0; }
6164EOF
Rein Klazesff7a61f2000-09-24 19:41:57 +00006165if { (eval echo configure:6166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006166 rm -rf conftest*
6167 wine_cv_statfs_bfree=yes
6168else
6169 echo "configure: failed program was:" >&5
6170 cat conftest.$ac_ext >&5
6171 rm -rf conftest*
6172 wine_cv_statfs_bfree=no
6173
6174fi
6175rm -f conftest*
6176 fi
6177fi
6178
6179echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
6180if test "$wine_cv_statfs_bfree" = "yes"
6181then
6182 cat >> confdefs.h <<\EOF
6183#define STATFS_HAS_BFREE 1
6184EOF
6185
6186fi
6187
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006188echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
Rein Klazesff7a61f2000-09-24 19:41:57 +00006189echo "configure:6190: checking "for statfs.f_bavail"" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006190if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
6191 echo $ac_n "(cached) $ac_c" 1>&6
6192else
6193 if test "x$statfs_bavail" = "xno"
6194 then
6195 wine_cv_statfs_bavail=no
6196 else
6197 cat > conftest.$ac_ext <<EOF
Rein Klazesff7a61f2000-09-24 19:41:57 +00006198#line 6199 "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006199#include "confdefs.h"
6200
Alexandre Julliard46ea8b31998-05-03 19:01:20 +00006201 #include <sys/types.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006202 #ifdef HAVE_SYS_PARAM_H
6203 # include <sys/param.h>
6204 #endif
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006205 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006206 # include <sys/mount.h>
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006207 #else
6208 # ifdef STATFS_DEFINED_BY_SYS_VFS
6209 # include <sys/vfs.h>
6210 # else
6211 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6212 # include <sys/statfs.h>
6213 # endif
6214 # endif
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006215 #endif
6216
6217int main() {
6218
6219 struct statfs stfs;
6220
6221 stfs.f_bavail++;
6222
6223; return 0; }
6224EOF
Rein Klazesff7a61f2000-09-24 19:41:57 +00006225if { (eval echo configure:6226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006226 rm -rf conftest*
6227 wine_cv_statfs_bavail=yes
6228else
6229 echo "configure: failed program was:" >&5
6230 cat conftest.$ac_ext >&5
6231 rm -rf conftest*
6232 wine_cv_statfs_bavail=no
6233
6234fi
6235rm -f conftest*
6236 fi
6237fi
6238
6239echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
6240if test "$wine_cv_statfs_bavail" = "yes"
6241then
6242 cat >> confdefs.h <<\EOF
6243#define STATFS_HAS_BAVAIL 1
6244EOF
6245
6246fi
6247
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006248
Alexandre Julliard829fe321998-07-26 14:27:39 +00006249echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
Rein Klazesff7a61f2000-09-24 19:41:57 +00006250echo "configure:6251: checking "for msg_accrights in struct msghdr"" >&5
Alexandre Julliard829fe321998-07-26 14:27:39 +00006251if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
6252 echo $ac_n "(cached) $ac_c" 1>&6
6253else
6254 cat > conftest.$ac_ext <<EOF
Rein Klazesff7a61f2000-09-24 19:41:57 +00006255#line 6256 "configure"
Alexandre Julliard829fe321998-07-26 14:27:39 +00006256#include "confdefs.h"
6257#include <sys/types.h>
6258#include <sys/socket.h>
6259int main() {
6260struct msghdr hdr; hdr.msg_accrights=0
6261; return 0; }
6262EOF
Rein Klazesff7a61f2000-09-24 19:41:57 +00006263if { (eval echo configure:6264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliard829fe321998-07-26 14:27:39 +00006264 rm -rf conftest*
6265 ac_cv_c_msg_accrights="yes"
6266else
6267 echo "configure: failed program was:" >&5
6268 cat conftest.$ac_ext >&5
6269 rm -rf conftest*
6270 ac_cv_c_msg_accrights="no"
6271fi
6272rm -f conftest*
6273fi
6274
6275echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
6276if test "$ac_cv_c_msg_accrights" = "yes"
6277then
6278 cat >> confdefs.h <<\EOF
6279#define HAVE_MSGHDR_ACCRIGHTS 1
6280EOF
6281
6282fi
6283
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00006284
Juergen Lock2d33ab92000-02-13 16:03:29 +00006285echo $ac_n "checking "for sun_len in struct sockaddr_un"""... $ac_c" 1>&6
Rein Klazesff7a61f2000-09-24 19:41:57 +00006286echo "configure:6287: checking "for sun_len in struct sockaddr_un"" >&5
Juergen Lock2d33ab92000-02-13 16:03:29 +00006287if eval "test \"`echo '$''{'ac_cv_c_sun_len'+set}'`\" = set"; then
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00006288 echo $ac_n "(cached) $ac_c" 1>&6
6289else
6290 cat > conftest.$ac_ext <<EOF
Rein Klazesff7a61f2000-09-24 19:41:57 +00006291#line 6292 "configure"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00006292#include "confdefs.h"
Juergen Lock2d33ab92000-02-13 16:03:29 +00006293#include <sys/types.h>
6294#include <sys/socket.h>
6295#include <sys/un.h>
6296int main() {
6297static struct sockaddr_un addr; addr.sun_len = 1
6298; return 0; }
6299EOF
Rein Klazesff7a61f2000-09-24 19:41:57 +00006300if { (eval echo configure:6301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Juergen Lock2d33ab92000-02-13 16:03:29 +00006301 rm -rf conftest*
6302 ac_cv_c_sun_len="yes"
6303else
6304 echo "configure: failed program was:" >&5
6305 cat conftest.$ac_ext >&5
6306 rm -rf conftest*
6307 ac_cv_c_sun_len="no"
6308fi
6309rm -f conftest*
6310fi
6311
6312echo "$ac_t""$ac_cv_c_sun_len" 1>&6
6313if test "$ac_cv_c_sun_len" = "yes"
6314then
6315 cat >> confdefs.h <<\EOF
6316#define HAVE_SOCKADDR_SUN_LEN 1
6317EOF
6318
6319fi
6320
6321
6322echo $ac_n "checking "whether we need to define __i386__"""... $ac_c" 1>&6
Rein Klazesff7a61f2000-09-24 19:41:57 +00006323echo "configure:6324: checking "whether we need to define __i386__"" >&5
Juergen Lock2d33ab92000-02-13 16:03:29 +00006324if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6325 echo $ac_n "(cached) $ac_c" 1>&6
6326else
6327 cat > conftest.$ac_ext <<EOF
Rein Klazesff7a61f2000-09-24 19:41:57 +00006328#line 6329 "configure"
Juergen Lock2d33ab92000-02-13 16:03:29 +00006329#include "confdefs.h"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00006330#if (defined(i386) || defined(__i386)) && !defined(__i386__)
6331yes
6332#endif
6333EOF
6334if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6335 egrep "yes" >/dev/null 2>&1; then
6336 rm -rf conftest*
6337 ac_cv_cpp_def_i386="yes"
6338else
6339 rm -rf conftest*
6340 ac_cv_cpp_def_i386="no"
6341fi
6342rm -f conftest*
6343
6344fi
6345
6346echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
6347if test "$ac_cv_cpp_def_i386" = "yes"
6348then
6349 CFLAGS="$CFLAGS -D__i386__"
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006350 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00006351fi
6352
Marcus Meissnera7f5cb51999-04-16 08:47:41 +00006353GCC_NO_BUILTIN=""
6354if test "$GCC" = "yes"
6355then
6356 GCC_NO_BUILTIN="-fno-builtin"
6357fi
6358
6359
Alexandre Julliard829fe321998-07-26 14:27:39 +00006360
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +00006361
6362
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006363MAKE_RULES=Make.rules
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006364
6365
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +00006366MAKE_DLL_RULES=dlls/Makedll.rules
6367
6368
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006369trap '' 1 2 15
6370cat > confcache <<\EOF
6371# This file is a shell script that caches the results of configure
6372# tests run on this system so they can be shared between configure
6373# scripts and configure runs. It is not useful on other systems.
6374# If it contains results you don't want to keep, you may remove or edit it.
6375#
6376# By default, configure uses ./config.cache as the cache file,
6377# creating it if it does not exist already. You can give configure
6378# the --cache-file=FILE option to use a different cache file; that is
6379# what configure does when it calls configure scripts in
6380# subdirectories, so they share the cache.
6381# Giving --cache-file=/dev/null disables caching, for debugging configure.
6382# config.status only pays attention to the cache file if you give it the
6383# --recheck option to rerun configure.
6384#
6385EOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006386# The following way of writing the cache mishandles newlines in values,
6387# but we know of no workaround that is simple, portable, and efficient.
6388# So, don't put newlines in cache variables' values.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006389# Ultrix sh set writes to stderr and can't be redirected directly,
6390# and sets the high bit in the cache file unless we assign to the vars.
6391(set) 2>&1 |
Eric Pouech18ad24a2000-01-16 22:16:33 +00006392 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006393 *ac_space=\ *)
6394 # `set' does not quote correctly, so add quotes (double-quote substitution
6395 # turns \\\\ into \\, and sed turns \\ into \).
6396 sed -n \
6397 -e "s/'/'\\\\''/g" \
6398 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6399 ;;
6400 *)
6401 # `set' quotes correctly as required by POSIX, so do not add quotes.
6402 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6403 ;;
6404 esac >> confcache
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006405if cmp -s $cache_file confcache; then
6406 :
6407else
6408 if test -w $cache_file; then
6409 echo "updating cache $cache_file"
6410 cat confcache > $cache_file
6411 else
6412 echo "not updating unwritable cache $cache_file"
6413 fi
6414fi
6415rm -f confcache
6416
6417trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6418
6419test "x$prefix" = xNONE && prefix=$ac_default_prefix
6420# Let make expand exec_prefix.
6421test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6422
6423# Any assignment to VPATH causes Sun make to only execute
6424# the first set of double-colon rules, so remove it if not needed.
6425# If there is a colon in the path, we need to keep it.
6426if test "x$srcdir" = x.; then
6427 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6428fi
6429
6430trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6431
Alexandre Julliard18f92e71996-07-17 20:02:21 +00006432DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006433
6434# Without the "./", some shells look in PATH for config.status.
6435: ${CONFIG_STATUS=./config.status}
6436
6437echo creating $CONFIG_STATUS
6438rm -f $CONFIG_STATUS
6439cat > $CONFIG_STATUS <<EOF
6440#! /bin/sh
6441# Generated automatically by configure.
6442# Run this file to recreate the current configuration.
6443# This directory was configured as follows,
6444# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6445#
6446# $0 $ac_configure_args
6447#
6448# Compiler output produced by configure, useful for debugging
6449# configure, is in ./config.log if it exists.
6450
6451ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6452for ac_option
6453do
6454 case "\$ac_option" in
6455 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6456 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6457 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6458 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Eric Pouech18ad24a2000-01-16 22:16:33 +00006459 echo "$CONFIG_STATUS generated by autoconf version 2.13"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006460 exit 0 ;;
6461 -help | --help | --hel | --he | --h)
6462 echo "\$ac_cs_usage"; exit 0 ;;
6463 *) echo "\$ac_cs_usage"; exit 1 ;;
6464 esac
6465done
6466
6467ac_given_srcdir=$srcdir
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006468ac_given_INSTALL="$INSTALL"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006469
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006470trap 'rm -fr `echo "
6471Make.rules
6472Makefile
Joseph Pranevich791cd6a1998-12-02 19:58:08 +00006473console/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006474controls/Makefile
6475debugger/Makefile
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +00006476dlls/Makedll.rules
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00006477dlls/Makefile
Juergen Schmiedf7b0de31999-01-03 12:48:29 +00006478dlls/advapi32/Makefile
Marcus Meissnerb3d1a221999-03-13 18:07:44 +00006479dlls/avifil32/Makefile
Alexandre Julliarda0d77311998-09-13 16:32:00 +00006480dlls/comctl32/Makefile
Klaas van Gendc9127491999-02-28 20:05:11 +00006481dlls/commdlg/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00006482dlls/crtdll/Makefile
6483dlls/dciman32/Makefile
Alexandre Julliardddce6522000-03-17 16:58:10 +00006484dlls/ddraw/Makefile
6485dlls/dinput/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00006486dlls/dplay/Makefile
Peter Hunnisett22b861c1999-09-28 16:35:32 +00006487dlls/dplayx/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00006488dlls/dsound/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00006489dlls/gdi/Makefile
Francois Gougetedf3e431999-11-07 21:22:17 +00006490dlls/icmp/Makefile
Patrik Stridvall8295c861998-10-11 17:09:05 +00006491dlls/imagehlp/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00006492dlls/imm32/Makefile
Dimitrie O. Paun36b5b6b2000-06-03 00:07:44 +00006493dlls/kernel/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00006494dlls/lzexpand/Makefile
Ulrich Weigandbb1984e1999-08-07 14:32:33 +00006495dlls/mpr/Makefile
Patrik Stridvall8295c861998-10-11 17:09:05 +00006496dlls/msacm/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00006497dlls/msnet32/Makefile
6498dlls/msvideo/Makefile
Marcus Meissner51505b11998-11-01 14:00:21 +00006499dlls/ntdll/Makefile
Alexandre Julliard8551f8c1999-12-11 23:56:46 +00006500dlls/odbc32/Makefile
Ulrich Weigand2a722f41999-09-19 18:36:53 +00006501dlls/ole32/Makefile
6502dlls/oleaut32/Makefile
6503dlls/olecli/Makefile
6504dlls/oledlg/Makefile
Sean Langley58c71d42000-02-07 16:26:56 +00006505dlls/olepro32/Makefile
Ulrich Weigand2a722f41999-09-19 18:36:53 +00006506dlls/olesvr/Makefile
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00006507dlls/opengl32/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006508dlls/psapi/Makefile
Marcus Meissner30ef8771998-12-11 13:26:26 +00006509dlls/rasapi32/Makefile
Hidenori Takeshimae75f9fb2000-05-03 18:12:19 +00006510dlls/richedit/Makefile
Huw D M Davies10b1b232000-07-15 19:53:50 +00006511dlls/rpcrt4/Makefile
Mike McCormackdc2461e2000-07-15 21:35:55 +00006512dlls/serialui/Makefile
Francois Jacquesdf5e5792000-07-08 18:27:03 +00006513dlls/setupapi/Makefile
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00006514dlls/shell32/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00006515dlls/shfolder/Makefile
6516dlls/shlwapi/Makefile
Andreas Mohr5aa96c11999-03-14 12:34:25 +00006517dlls/tapi32/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00006518dlls/ttydrv/Makefile
Alexandre Julliard819fa8c2000-04-11 20:07:00 +00006519dlls/urlmon/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00006520dlls/user/Makefile
Ulrich Weigandd43a46a1999-01-31 10:11:04 +00006521dlls/version/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00006522dlls/win32s/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006523dlls/winaspi/Makefile
Dimitrie O. Paun84bde6a2000-05-30 20:27:23 +00006524dlls/wineps/Makefile
Alexandre Julliard819fa8c2000-04-11 20:07:00 +00006525dlls/wininet/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00006526dlls/winmm/Makefile
Eric Pouech2a3b0a12000-02-26 13:14:04 +00006527dlls/winmm/joystick/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00006528dlls/winmm/mcianim/Makefile
6529dlls/winmm/mciavi/Makefile
6530dlls/winmm/mcicda/Makefile
6531dlls/winmm/mciseq/Makefile
6532dlls/winmm/mciwave/Makefile
Eric Pouechabe72271999-10-31 02:23:49 +00006533dlls/winmm/midimap/Makefile
6534dlls/winmm/wavemap/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00006535dlls/winmm/wineoss/Makefile
Alexandre Julliardde078692000-01-23 22:07:15 +00006536dlls/winsock/Makefile
Huw D M Daviese39b6761999-05-17 16:20:51 +00006537dlls/winspool/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00006538dlls/wow32/Makefile
6539dlls/wsock32/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00006540dlls/x11drv/Makefile
Alexandre Julliardd37eb361997-07-20 16:23:21 +00006541documentation/Makefile
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +00006542documentation/wine.conf.man
Marcus Meissner5a70c971999-06-05 09:00:21 +00006543documentation/wine.man
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00006544files/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00006545graphics/Makefile
Huw D M Davies3a24f3f1999-05-02 10:15:16 +00006546graphics/enhmetafiledrv/Makefile
Alexandre Julliardbf9130a1996-10-13 17:45:47 +00006547graphics/metafiledrv/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00006548graphics/win16drv/Makefile
6549graphics/x11drv/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006550if1632/Makefile
James Juranc70dc831999-02-13 12:18:33 +00006551include/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006552library/Makefile
6553libtest/Makefile
6554loader/Makefile
Alexandre Julliard767e6f61998-08-09 12:47:43 +00006555loader/dos/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00006556loader/ne/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006557memory/Makefile
6558misc/Makefile
6559miscemu/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00006560msdos/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006561objects/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00006562ole/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00006563programs/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00006564programs/avitools/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00006565programs/clock/Makefile
Eric Williams30008a01999-02-05 17:40:47 +00006566programs/cmdlgtst/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006567programs/control/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00006568programs/notepad/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00006569programs/osversioncheck/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00006570programs/progman/Makefile
Sylvain St.Germain1bb0e661999-03-14 14:00:22 +00006571programs/regapi/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00006572programs/regtest/Makefile
6573programs/uninstaller/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00006574programs/view/Makefile
Dave Pickles74f440e1999-06-06 15:24:04 +00006575programs/wcmd/Makefile
Joshua Thielena3f23802000-03-15 19:06:39 +00006576programs/winemine/Makefile
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00006577programs/winhelp/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00006578programs/winver/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00006579relay32/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006580resources/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00006581scheduler/Makefile
Alexandre Julliard642d3131998-07-12 19:29:36 +00006582server/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006583tools/Makefile
John R. Sheetse61d33b2000-03-26 20:25:23 +00006584tools/cvdump/Makefile
Alexandre Julliarde482eeb2000-06-23 20:15:35 +00006585tools/winebuild/Makefile
Bertho Stultiens30855912000-06-13 04:34:41 +00006586tools/wmc/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00006587tools/wrc/Makefile
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00006588tsx11/Makefile
Alexandre Julliardfb270dd2000-06-09 05:27:21 +00006589unicode/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006590win32/Makefile
Patrik Stridvallea584721998-11-01 16:22:07 +00006591windows/Makefile
6592windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006593EOF
6594cat >> $CONFIG_STATUS <<EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006595
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006596# Protect against being on the right side of a sed subst in config.status.
6597sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6598 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006599$ac_vpsub
6600$extrasub
Eric Pouech18ad24a2000-01-16 22:16:33 +00006601s%@SHELL@%$SHELL%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006602s%@CFLAGS@%$CFLAGS%g
6603s%@CPPFLAGS@%$CPPFLAGS%g
6604s%@CXXFLAGS@%$CXXFLAGS%g
Eric Pouech18ad24a2000-01-16 22:16:33 +00006605s%@FFLAGS@%$FFLAGS%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006606s%@DEFS@%$DEFS%g
6607s%@LDFLAGS@%$LDFLAGS%g
6608s%@LIBS@%$LIBS%g
6609s%@exec_prefix@%$exec_prefix%g
6610s%@prefix@%$prefix%g
6611s%@program_transform_name@%$program_transform_name%g
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006612s%@bindir@%$bindir%g
6613s%@sbindir@%$sbindir%g
6614s%@libexecdir@%$libexecdir%g
6615s%@datadir@%$datadir%g
6616s%@sysconfdir@%$sysconfdir%g
6617s%@sharedstatedir@%$sharedstatedir%g
6618s%@localstatedir@%$localstatedir%g
6619s%@libdir@%$libdir%g
6620s%@includedir@%$includedir%g
6621s%@oldincludedir@%$oldincludedir%g
6622s%@infodir@%$infodir%g
6623s%@mandir@%$mandir%g
Alexandre Julliard18f92e71996-07-17 20:02:21 +00006624s%@OPTIONS@%$OPTIONS%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006625s%@SET_MAKE@%$SET_MAKE%g
6626s%@CC@%$CC%g
6627s%@CPP@%$CPP%g
Alexandre Julliardff8331e1995-09-18 11:19:54 +00006628s%@X_CFLAGS@%$X_CFLAGS%g
6629s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6630s%@X_LIBS@%$X_LIBS%g
6631s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006632s%@YACC@%$YACC%g
6633s%@LEX@%$LEX%g
6634s%@LEXLIB@%$LEXLIB%g
Marcus Meissnerb53bb412000-07-23 13:41:51 +00006635s%@XLEX@%$XLEX%g
6636s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
Alexandre Julliardff8331e1995-09-18 11:19:54 +00006637s%@RANLIB@%$RANLIB%g
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006638s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
Eric Pouech18ad24a2000-01-16 22:16:33 +00006639s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006640s%@INSTALL_DATA@%$INSTALL_DATA%g
Alexandre Julliard641ee761997-08-04 16:34:36 +00006641s%@LN_S@%$LN_S%g
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006642s%@C2MAN@%$C2MAN%g
James Juranffe6b761999-06-12 08:21:57 +00006643s%@LDCONFIG@%$LDCONFIG%g
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006644s%@LINT@%$LINT%g
6645s%@LINTFLAGS@%$LINTFLAGS%g
Patrik Stridvallea584721998-11-01 16:22:07 +00006646s%@XLIB@%$XLIB%g
Patrik Stridvall2941a212000-04-25 20:34:22 +00006647s%@X_DLLS@%$X_DLLS%g
6648s%@XFILES@%$XFILES%g
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00006649s%@OPENGLFILES@%$OPENGLFILES%g
Hidenori Takeshima4615e292000-05-23 23:36:41 +00006650s%@OPENGL32_DLL@%$OPENGL32_DLL%g
Marcus Meissner10ad97c2000-04-09 14:30:50 +00006651s%@DGA_SRCS@%$DGA_SRCS%g
Lionel Ulmer51177f92000-05-01 14:25:49 +00006652s%@DGA2_SRCS@%$DGA2_SRCS%g
Marcus Meissner10ad97c2000-04-09 14:30:50 +00006653s%@MESA_SRCS@%$MESA_SRCS%g
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00006654s%@DLL_LINK@%$DLL_LINK%g
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00006655s%@DLLFLAGS@%$DLLFLAGS%g
Todd Vierling4b992b01998-12-15 15:26:27 +00006656s%@LDSHARED@%$LDSHARED%g
Alexandre Julliard0adad952000-01-26 01:45:58 +00006657s%@LIBEXT@%$LIBEXT%g
Patrik Stridvall1bb94031999-05-08 15:47:44 +00006658s%@ALLOCA@%$ALLOCA%g
Marcus Meissnera7f5cb51999-04-16 08:47:41 +00006659s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
Alexandre Julliardff8331e1995-09-18 11:19:54 +00006660/@MAKE_RULES@/r $MAKE_RULES
6661s%@MAKE_RULES@%%g
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +00006662/@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
6663s%@MAKE_DLL_RULES@%%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006664
6665CEOF
6666EOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006667
6668cat >> $CONFIG_STATUS <<\EOF
6669
6670# Split the substitutions into bite-sized pieces for seds with
6671# small command number limits, like on Digital OSF/1 and HP-UX.
6672ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6673ac_file=1 # Number of current file.
6674ac_beg=1 # First line for current file.
6675ac_end=$ac_max_sed_cmds # Line after last line for current file.
6676ac_more_lines=:
6677ac_sed_cmds=""
6678while $ac_more_lines; do
6679 if test $ac_beg -gt 1; then
6680 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6681 else
6682 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6683 fi
6684 if test ! -s conftest.s$ac_file; then
6685 ac_more_lines=false
6686 rm -f conftest.s$ac_file
6687 else
6688 if test -z "$ac_sed_cmds"; then
6689 ac_sed_cmds="sed -f conftest.s$ac_file"
6690 else
6691 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6692 fi
6693 ac_file=`expr $ac_file + 1`
6694 ac_beg=$ac_end
6695 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6696 fi
6697done
6698if test -z "$ac_sed_cmds"; then
6699 ac_sed_cmds=cat
6700fi
6701EOF
6702
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006703cat >> $CONFIG_STATUS <<EOF
6704
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006705CONFIG_FILES=\${CONFIG_FILES-"Make.rules
6706Makefile
Joseph Pranevich791cd6a1998-12-02 19:58:08 +00006707console/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006708controls/Makefile
6709debugger/Makefile
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +00006710dlls/Makedll.rules
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00006711dlls/Makefile
Juergen Schmiedf7b0de31999-01-03 12:48:29 +00006712dlls/advapi32/Makefile
Marcus Meissnerb3d1a221999-03-13 18:07:44 +00006713dlls/avifil32/Makefile
Alexandre Julliarda0d77311998-09-13 16:32:00 +00006714dlls/comctl32/Makefile
Klaas van Gendc9127491999-02-28 20:05:11 +00006715dlls/commdlg/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00006716dlls/crtdll/Makefile
6717dlls/dciman32/Makefile
Alexandre Julliardddce6522000-03-17 16:58:10 +00006718dlls/ddraw/Makefile
6719dlls/dinput/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00006720dlls/dplay/Makefile
Peter Hunnisett22b861c1999-09-28 16:35:32 +00006721dlls/dplayx/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00006722dlls/dsound/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00006723dlls/gdi/Makefile
Francois Gougetedf3e431999-11-07 21:22:17 +00006724dlls/icmp/Makefile
Patrik Stridvall8295c861998-10-11 17:09:05 +00006725dlls/imagehlp/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00006726dlls/imm32/Makefile
Dimitrie O. Paun36b5b6b2000-06-03 00:07:44 +00006727dlls/kernel/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00006728dlls/lzexpand/Makefile
Ulrich Weigandbb1984e1999-08-07 14:32:33 +00006729dlls/mpr/Makefile
Patrik Stridvall8295c861998-10-11 17:09:05 +00006730dlls/msacm/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00006731dlls/msnet32/Makefile
6732dlls/msvideo/Makefile
Marcus Meissner51505b11998-11-01 14:00:21 +00006733dlls/ntdll/Makefile
Alexandre Julliard8551f8c1999-12-11 23:56:46 +00006734dlls/odbc32/Makefile
Ulrich Weigand2a722f41999-09-19 18:36:53 +00006735dlls/ole32/Makefile
6736dlls/oleaut32/Makefile
6737dlls/olecli/Makefile
6738dlls/oledlg/Makefile
Sean Langley58c71d42000-02-07 16:26:56 +00006739dlls/olepro32/Makefile
Ulrich Weigand2a722f41999-09-19 18:36:53 +00006740dlls/olesvr/Makefile
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00006741dlls/opengl32/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006742dlls/psapi/Makefile
Marcus Meissner30ef8771998-12-11 13:26:26 +00006743dlls/rasapi32/Makefile
Hidenori Takeshimae75f9fb2000-05-03 18:12:19 +00006744dlls/richedit/Makefile
Huw D M Davies10b1b232000-07-15 19:53:50 +00006745dlls/rpcrt4/Makefile
Mike McCormackdc2461e2000-07-15 21:35:55 +00006746dlls/serialui/Makefile
Francois Jacquesdf5e5792000-07-08 18:27:03 +00006747dlls/setupapi/Makefile
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00006748dlls/shell32/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00006749dlls/shfolder/Makefile
6750dlls/shlwapi/Makefile
Andreas Mohr5aa96c11999-03-14 12:34:25 +00006751dlls/tapi32/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00006752dlls/ttydrv/Makefile
Alexandre Julliard819fa8c2000-04-11 20:07:00 +00006753dlls/urlmon/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00006754dlls/user/Makefile
Ulrich Weigandd43a46a1999-01-31 10:11:04 +00006755dlls/version/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00006756dlls/win32s/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006757dlls/winaspi/Makefile
Dimitrie O. Paun84bde6a2000-05-30 20:27:23 +00006758dlls/wineps/Makefile
Alexandre Julliard819fa8c2000-04-11 20:07:00 +00006759dlls/wininet/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00006760dlls/winmm/Makefile
Eric Pouech2a3b0a12000-02-26 13:14:04 +00006761dlls/winmm/joystick/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00006762dlls/winmm/mcianim/Makefile
6763dlls/winmm/mciavi/Makefile
6764dlls/winmm/mcicda/Makefile
6765dlls/winmm/mciseq/Makefile
6766dlls/winmm/mciwave/Makefile
Eric Pouechabe72271999-10-31 02:23:49 +00006767dlls/winmm/midimap/Makefile
6768dlls/winmm/wavemap/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00006769dlls/winmm/wineoss/Makefile
Alexandre Julliardde078692000-01-23 22:07:15 +00006770dlls/winsock/Makefile
Huw D M Daviese39b6761999-05-17 16:20:51 +00006771dlls/winspool/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00006772dlls/wow32/Makefile
6773dlls/wsock32/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00006774dlls/x11drv/Makefile
Alexandre Julliardd37eb361997-07-20 16:23:21 +00006775documentation/Makefile
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +00006776documentation/wine.conf.man
Marcus Meissner5a70c971999-06-05 09:00:21 +00006777documentation/wine.man
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00006778files/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00006779graphics/Makefile
Huw D M Davies3a24f3f1999-05-02 10:15:16 +00006780graphics/enhmetafiledrv/Makefile
Alexandre Julliardbf9130a1996-10-13 17:45:47 +00006781graphics/metafiledrv/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00006782graphics/win16drv/Makefile
6783graphics/x11drv/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006784if1632/Makefile
James Juranc70dc831999-02-13 12:18:33 +00006785include/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006786library/Makefile
6787libtest/Makefile
6788loader/Makefile
Alexandre Julliard767e6f61998-08-09 12:47:43 +00006789loader/dos/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00006790loader/ne/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006791memory/Makefile
6792misc/Makefile
6793miscemu/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00006794msdos/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006795objects/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00006796ole/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00006797programs/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00006798programs/avitools/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00006799programs/clock/Makefile
Eric Williams30008a01999-02-05 17:40:47 +00006800programs/cmdlgtst/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006801programs/control/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00006802programs/notepad/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00006803programs/osversioncheck/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00006804programs/progman/Makefile
Sylvain St.Germain1bb0e661999-03-14 14:00:22 +00006805programs/regapi/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00006806programs/regtest/Makefile
6807programs/uninstaller/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00006808programs/view/Makefile
Dave Pickles74f440e1999-06-06 15:24:04 +00006809programs/wcmd/Makefile
Joshua Thielena3f23802000-03-15 19:06:39 +00006810programs/winemine/Makefile
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00006811programs/winhelp/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00006812programs/winver/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00006813relay32/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006814resources/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00006815scheduler/Makefile
Alexandre Julliard642d3131998-07-12 19:29:36 +00006816server/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006817tools/Makefile
John R. Sheetse61d33b2000-03-26 20:25:23 +00006818tools/cvdump/Makefile
Alexandre Julliarde482eeb2000-06-23 20:15:35 +00006819tools/winebuild/Makefile
Bertho Stultiens30855912000-06-13 04:34:41 +00006820tools/wmc/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00006821tools/wrc/Makefile
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00006822tsx11/Makefile
Alexandre Julliardfb270dd2000-06-09 05:27:21 +00006823unicode/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006824win32/Makefile
Patrik Stridvallea584721998-11-01 16:22:07 +00006825windows/Makefile
6826windows/x11drv/Makefile "}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006827EOF
6828cat >> $CONFIG_STATUS <<\EOF
6829for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006830 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006831 case "$ac_file" in
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006832 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006833 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6834 *) ac_file_in="${ac_file}.in" ;;
6835 esac
6836
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006837 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006838
6839 # Remove last slash and all that follows it. Not all systems have dirname.
6840 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6841 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6842 # The file is in a subdirectory.
6843 test ! -d "$ac_dir" && mkdir "$ac_dir"
6844 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6845 # A "../" for each directory in $ac_dir_suffix.
6846 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6847 else
6848 ac_dir_suffix= ac_dots=
6849 fi
6850
6851 case "$ac_given_srcdir" in
6852 .) srcdir=.
6853 if test -z "$ac_dots"; then top_srcdir=.
6854 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6855 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6856 *) # Relative path.
6857 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6858 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6859 esac
6860
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006861 case "$ac_given_INSTALL" in
6862 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6863 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6864 esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006865
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006866 echo creating "$ac_file"
6867 rm -f "$ac_file"
6868 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6869 case "$ac_file" in
6870 *Makefile*) ac_comsub="1i\\
6871# $configure_input" ;;
6872 *) ac_comsub= ;;
6873 esac
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006874
6875 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 +00006876 sed -e "$ac_comsub
6877s%@configure_input@%$configure_input%g
6878s%@srcdir@%$srcdir%g
6879s%@top_srcdir@%$top_srcdir%g
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006880s%@INSTALL@%$INSTALL%g
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006881" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006882fi; done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006883rm -f conftest.s*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006884
Alexandre Julliard18f92e71996-07-17 20:02:21 +00006885# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6886# NAME is the cpp macro being defined and VALUE is the value it is being given.
6887#
6888# ac_d sets the value in "#define NAME VALUE" lines.
6889ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6890ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6891ac_dC='\3'
6892ac_dD='%g'
6893# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6894ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6895ac_uB='\([ ]\)%\1#\2define\3'
6896ac_uC=' '
6897ac_uD='\4%g'
6898# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6899ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6900ac_eB='$%\1#\2define\3'
6901ac_eC=' '
6902ac_eD='%g'
6903
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006904if test "${CONFIG_HEADERS+set}" != set; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006905EOF
6906cat >> $CONFIG_STATUS <<EOF
6907 CONFIG_HEADERS="include/config.h"
6908EOF
6909cat >> $CONFIG_STATUS <<\EOF
6910fi
Alexandre Julliard18f92e71996-07-17 20:02:21 +00006911for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006912 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Alexandre Julliard18f92e71996-07-17 20:02:21 +00006913 case "$ac_file" in
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006914 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Alexandre Julliard18f92e71996-07-17 20:02:21 +00006915 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6916 *) ac_file_in="${ac_file}.in" ;;
6917 esac
6918
6919 echo creating $ac_file
6920
6921 rm -f conftest.frag conftest.in conftest.out
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006922 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6923 cat $ac_file_inputs > conftest.in
Alexandre Julliard18f92e71996-07-17 20:02:21 +00006924
6925EOF
6926
6927# Transform confdefs.h into a sed script conftest.vals that substitutes
6928# the proper values into config.h.in to produce config.h. And first:
6929# Protect against being on the right side of a sed subst in config.status.
6930# Protect against being in an unquoted here document in config.status.
6931rm -f conftest.vals
6932cat > conftest.hdr <<\EOF
6933s/[\\&%]/\\&/g
6934s%[\\$`]%\\&%g
6935s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6936s%ac_d%ac_u%gp
6937s%ac_u%ac_e%gp
6938EOF
6939sed -n -f conftest.hdr confdefs.h > conftest.vals
6940rm -f conftest.hdr
6941
6942# This sed command replaces #undef with comments. This is necessary, for
6943# example, in the case of _POSIX_SOURCE, which is predefined and required
6944# on some systems where configure will not decide to define it.
6945cat >> conftest.vals <<\EOF
6946s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6947EOF
6948
6949# Break up conftest.vals because some shells have a limit on
6950# the size of here documents, and old seds have small limits too.
Alexandre Julliard18f92e71996-07-17 20:02:21 +00006951
6952rm -f conftest.tail
6953while :
6954do
6955 ac_lines=`grep -c . conftest.vals`
6956 # grep -c gives empty output for an empty file on some AIX systems.
6957 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6958 # Write a limited-size here document to conftest.frag.
6959 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6960 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6961 echo 'CEOF
6962 sed -f conftest.frag conftest.in > conftest.out
6963 rm -f conftest.in
6964 mv conftest.out conftest.in
6965' >> $CONFIG_STATUS
6966 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6967 rm -f conftest.vals
6968 mv conftest.tail conftest.vals
6969done
6970rm -f conftest.vals
6971
6972cat >> $CONFIG_STATUS <<\EOF
6973 rm -f conftest.frag conftest.h
6974 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6975 cat conftest.in >> conftest.h
6976 rm -f conftest.in
6977 if cmp -s $ac_file conftest.h 2>/dev/null; then
6978 echo "$ac_file is unchanged"
6979 rm -f conftest.h
6980 else
6981 # Remove last slash and all that follows it. Not all systems have dirname.
6982 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6983 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6984 # The file is in a subdirectory.
6985 test ! -d "$ac_dir" && mkdir "$ac_dir"
6986 fi
6987 rm -f $ac_file
6988 mv conftest.h $ac_file
6989 fi
6990fi; done
6991
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006992EOF
6993cat >> $CONFIG_STATUS <<EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006994
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +00006995
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006996EOF
6997cat >> $CONFIG_STATUS <<\EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006998
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +00006999extra_subdirs="\
7000dlls/ddraw/d3ddevice \
7001dlls/ddraw/dclipper \
7002dlls/ddraw/ddraw \
7003dlls/ddraw/direct3d \
7004dlls/ddraw/dpalette \
7005dlls/ddraw/dsurface \
Alexandre Julliardd1d09052000-07-30 13:39:52 +00007006dlls/kernel/messages \
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +00007007"
7008for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done
7009
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007010exit 0
7011EOF
7012chmod +x $CONFIG_STATUS
7013rm -fr confdefs* $ac_clean_files
7014test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7015
7016
Ove Kaaven8b4431f1999-01-23 13:59:11 +00007017if test "$have_x" = "no"
7018then
7019 echo
7020 echo "*** Warning: X development files not found. Wine will be built without"
7021 echo "*** X support, which currently does not work, and would probably not be"
7022 echo "*** what you want anyway. You will need to install devel packages of"
7023 echo "*** Xlib/Xfree86 and Xpm at the very least."
Ove Kaaven1eb593c1999-02-14 09:34:46 +00007024elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
7025then
7026 echo
7027 echo "*** Warning: Xpm development files not found. Wine will be built without"
7028 echo "*** Xpm support, which currently does not work. You will need to install"
7029 echo "*** devel packages of Xpm."
Ove Kaaven8b4431f1999-01-23 13:59:11 +00007030fi
7031
Alexandre Julliard638f1691999-01-17 16:32:32 +00007032if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
7033then
7034 echo
7035 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
7036 echo "*** terminal resize support. Consider upgrading ncurses."
Alexandre Julliard638f1691999-01-17 16:32:32 +00007037fi
7038
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007039if test "$wine_cv_libc_reentrant" = "no"
7040then
7041 echo
7042 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
7043 echo "*** thread support. Consider upgrading libc to a more recent"
7044 echo "*** reentrant version of libc."
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007045fi
7046
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007047if test "$wine_cv_opengl_version_OK" = "no"
Lionel Ulmer5c085701999-02-28 19:48:53 +00007048then
7049 echo
7050 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00007051 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
7052fi
7053
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007054if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00007055then
7056 echo
7057 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007058 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
7059 echo "*** A fix for glibc 2.1.3 that seem to work is included in this version of Wine,"
7060 echo "*** start configure with '--enable-opengl' to force OpenGL support."
Lionel Ulmer5c085701999-02-28 19:48:53 +00007061fi
7062
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007063if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007064then
7065 echo
7066 echo "*** Warning: you explicitely linked in a thread-safe OpenGL version. If you"
7067 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
7068 echo "*** support before reporting bugs."
7069fi
7070
7071
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007072echo
Steffen Moeller1511bae1999-02-17 15:27:03 +00007073echo "Configure finished. Do 'make depend && make' to compile Wine."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007074echo
7075