blob: 159333aa218ef58a641c9e282f1304dabbd9ce19 [file] [log] [blame]
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001#! /bin/sh
2
3# From configure.in configure.in 1.00
4# Guess values for system-dependent variables and create Makefiles.
Eric Pouech18ad24a2000-01-16 22:16:33 +00005# Generated automatically using autoconf version 2.13
Alexandre Julliard59730ae1996-03-24 16:20:51 +00006# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007#
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10
11# Defaults:
12ac_help=
13ac_default_prefix=/usr/local
14# Any additions from configure.in:
15ac_help="$ac_help
Alexandre Julliardf90efa91998-06-14 15:24:15 +000016 --disable-debug compile out all debugging messages"
17ac_help="$ac_help
Andreas Mohr18a9d742001-01-17 21:52:42 +000018 --enable-opengl force usage of OpenGL even if the latter is thread-safe via pthread"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000019ac_help="$ac_help
Alexandre Julliardf90efa91998-06-14 15:24:15 +000020 --disable-trace compile out TRACE messages"
21ac_help="$ac_help
Patrik Stridvall5e5ad532000-04-23 20:02:46 +000022 --without-curses do not use curses"
23ac_help="$ac_help
Patrik Stridvallf638aef1998-12-07 09:36:13 +000024 --without-reentrant-x compile for use with non-reentrant X libraries"
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000025ac_help="$ac_help
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000026 --with-x use the X Window System"
27
28# Initialize some variables set by options.
29# The variables have the same names as the options, with
30# dashes changed to underlines.
31build=NONE
32cache_file=./config.cache
33exec_prefix=NONE
34host=NONE
35no_create=
36nonopt=NONE
37no_recursion=
38prefix=NONE
39program_prefix=NONE
40program_suffix=NONE
41program_transform_name=s,x,x,
42silent=
43site=
44srcdir=
45target=NONE
46verbose=
47x_includes=NONE
48x_libraries=NONE
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000049bindir='${exec_prefix}/bin'
50sbindir='${exec_prefix}/sbin'
51libexecdir='${exec_prefix}/libexec'
52datadir='${prefix}/share'
53sysconfdir='${prefix}/etc'
54sharedstatedir='${prefix}/com'
55localstatedir='${prefix}/var'
56libdir='${exec_prefix}/lib'
57includedir='${prefix}/include'
58oldincludedir='/usr/include'
59infodir='${prefix}/info'
60mandir='${prefix}/man'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000061
62# Initialize some other variables.
63subdirs=
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000064MFLAGS= MAKEFLAGS=
Eric Pouech18ad24a2000-01-16 22:16:33 +000065SHELL=${CONFIG_SHELL-/bin/sh}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000066# Maximum number of lines to put in a shell here document.
67ac_max_here_lines=12
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000068
69ac_prev=
70for ac_option
71do
72
73 # If the previous option needs an argument, assign it.
74 if test -n "$ac_prev"; then
75 eval "$ac_prev=\$ac_option"
76 ac_prev=
77 continue
78 fi
79
80 case "$ac_option" in
81 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82 *) ac_optarg= ;;
83 esac
84
85 # Accept the important Cygnus configure options, so we can diagnose typos.
86
87 case "$ac_option" in
88
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000089 -bindir | --bindir | --bindi | --bind | --bin | --bi)
90 ac_prev=bindir ;;
91 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
92 bindir="$ac_optarg" ;;
93
94 -build | --build | --buil | --bui | --bu)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000095 ac_prev=build ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000096 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000097 build="$ac_optarg" ;;
98
99 -cache-file | --cache-file | --cache-fil | --cache-fi \
100 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
101 ac_prev=cache_file ;;
102 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
103 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
104 cache_file="$ac_optarg" ;;
105
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000106 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
107 ac_prev=datadir ;;
108 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
109 | --da=*)
110 datadir="$ac_optarg" ;;
111
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000112 -disable-* | --disable-*)
113 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117 fi
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}=no" ;;
120
121 -enable-* | --enable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 fi
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 case "$ac_option" in
129 *=*) ;;
130 *) ac_optarg=yes ;;
131 esac
132 eval "enable_${ac_feature}='$ac_optarg'" ;;
133
134 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
135 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
136 | --exec | --exe | --ex)
137 ac_prev=exec_prefix ;;
138 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
139 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
140 | --exec=* | --exe=* | --ex=*)
141 exec_prefix="$ac_optarg" ;;
142
143 -gas | --gas | --ga | --g)
144 # Obsolete; use --with-gas.
145 with_gas=yes ;;
146
147 -help | --help | --hel | --he)
148 # Omit some internal or obsolete options to make the list less imposing.
149 # This message is too long to be a string in the A/UX 3.1 sh.
150 cat << EOF
151Usage: configure [options] [host]
152Options: [defaults in brackets after descriptions]
153Configuration:
154 --cache-file=FILE cache test results in FILE
155 --help print this message
156 --no-create do not create output files
157 --quiet, --silent do not print \`checking...' messages
158 --version print the version of autoconf that created configure
159Directory and file names:
160 --prefix=PREFIX install architecture-independent files in PREFIX
161 [$ac_default_prefix]
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000162 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000163 [same as prefix]
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000164 --bindir=DIR user executables in DIR [EPREFIX/bin]
165 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
166 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
167 --datadir=DIR read-only architecture-independent data in DIR
168 [PREFIX/share]
169 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
170 --sharedstatedir=DIR modifiable architecture-independent data in DIR
171 [PREFIX/com]
172 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
173 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
174 --includedir=DIR C header files in DIR [PREFIX/include]
175 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
176 --infodir=DIR info documentation in DIR [PREFIX/info]
177 --mandir=DIR man documentation in DIR [PREFIX/man]
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000178 --srcdir=DIR find the sources in DIR [configure dir or ..]
179 --program-prefix=PREFIX prepend PREFIX to installed program names
180 --program-suffix=SUFFIX append SUFFIX to installed program names
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000181 --program-transform-name=PROGRAM
182 run sed PROGRAM on installed program names
183EOF
184 cat << EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000185Host type:
186 --build=BUILD configure for building on BUILD [BUILD=HOST]
187 --host=HOST configure for HOST [guessed]
188 --target=TARGET configure for TARGET [TARGET=HOST]
189Features and packages:
190 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
191 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
192 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
193 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
194 --x-includes=DIR X include files are in DIR
195 --x-libraries=DIR X library files are in DIR
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000196EOF
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000197 if test -n "$ac_help"; then
198 echo "--enable and --with options recognized:$ac_help"
199 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000200 exit 0 ;;
201
202 -host | --host | --hos | --ho)
203 ac_prev=host ;;
204 -host=* | --host=* | --hos=* | --ho=*)
205 host="$ac_optarg" ;;
206
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000207 -includedir | --includedir | --includedi | --included | --include \
208 | --includ | --inclu | --incl | --inc)
209 ac_prev=includedir ;;
210 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
211 | --includ=* | --inclu=* | --incl=* | --inc=*)
212 includedir="$ac_optarg" ;;
213
214 -infodir | --infodir | --infodi | --infod | --info | --inf)
215 ac_prev=infodir ;;
216 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
217 infodir="$ac_optarg" ;;
218
219 -libdir | --libdir | --libdi | --libd)
220 ac_prev=libdir ;;
221 -libdir=* | --libdir=* | --libdi=* | --libd=*)
222 libdir="$ac_optarg" ;;
223
224 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
225 | --libexe | --libex | --libe)
226 ac_prev=libexecdir ;;
227 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
228 | --libexe=* | --libex=* | --libe=*)
229 libexecdir="$ac_optarg" ;;
230
231 -localstatedir | --localstatedir | --localstatedi | --localstated \
232 | --localstate | --localstat | --localsta | --localst \
233 | --locals | --local | --loca | --loc | --lo)
234 ac_prev=localstatedir ;;
235 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
236 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
237 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
238 localstatedir="$ac_optarg" ;;
239
240 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
241 ac_prev=mandir ;;
242 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
243 mandir="$ac_optarg" ;;
244
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000245 -nfp | --nfp | --nf)
246 # Obsolete; use --without-fp.
247 with_fp=no ;;
248
249 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
250 | --no-cr | --no-c)
251 no_create=yes ;;
252
253 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
254 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
255 no_recursion=yes ;;
256
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000257 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
258 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
259 | --oldin | --oldi | --old | --ol | --o)
260 ac_prev=oldincludedir ;;
261 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
262 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
263 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
264 oldincludedir="$ac_optarg" ;;
265
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000266 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
267 ac_prev=prefix ;;
268 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
269 prefix="$ac_optarg" ;;
270
271 -program-prefix | --program-prefix | --program-prefi | --program-pref \
272 | --program-pre | --program-pr | --program-p)
273 ac_prev=program_prefix ;;
274 -program-prefix=* | --program-prefix=* | --program-prefi=* \
275 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
276 program_prefix="$ac_optarg" ;;
277
278 -program-suffix | --program-suffix | --program-suffi | --program-suff \
279 | --program-suf | --program-su | --program-s)
280 ac_prev=program_suffix ;;
281 -program-suffix=* | --program-suffix=* | --program-suffi=* \
282 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
283 program_suffix="$ac_optarg" ;;
284
285 -program-transform-name | --program-transform-name \
286 | --program-transform-nam | --program-transform-na \
287 | --program-transform-n | --program-transform- \
288 | --program-transform | --program-transfor \
289 | --program-transfo | --program-transf \
290 | --program-trans | --program-tran \
291 | --progr-tra | --program-tr | --program-t)
292 ac_prev=program_transform_name ;;
293 -program-transform-name=* | --program-transform-name=* \
294 | --program-transform-nam=* | --program-transform-na=* \
295 | --program-transform-n=* | --program-transform-=* \
296 | --program-transform=* | --program-transfor=* \
297 | --program-transfo=* | --program-transf=* \
298 | --program-trans=* | --program-tran=* \
299 | --progr-tra=* | --program-tr=* | --program-t=*)
300 program_transform_name="$ac_optarg" ;;
301
302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
303 | -silent | --silent | --silen | --sile | --sil)
304 silent=yes ;;
305
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000306 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
307 ac_prev=sbindir ;;
308 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
309 | --sbi=* | --sb=*)
310 sbindir="$ac_optarg" ;;
311
312 -sharedstatedir | --sharedstatedir | --sharedstatedi \
313 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
314 | --sharedst | --shareds | --shared | --share | --shar \
315 | --sha | --sh)
316 ac_prev=sharedstatedir ;;
317 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
318 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
319 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
320 | --sha=* | --sh=*)
321 sharedstatedir="$ac_optarg" ;;
322
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000323 -site | --site | --sit)
324 ac_prev=site ;;
325 -site=* | --site=* | --sit=*)
326 site="$ac_optarg" ;;
327
328 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
329 ac_prev=srcdir ;;
330 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
331 srcdir="$ac_optarg" ;;
332
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000333 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
334 | --syscon | --sysco | --sysc | --sys | --sy)
335 ac_prev=sysconfdir ;;
336 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
337 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
338 sysconfdir="$ac_optarg" ;;
339
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000340 -target | --target | --targe | --targ | --tar | --ta | --t)
341 ac_prev=target ;;
342 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
343 target="$ac_optarg" ;;
344
345 -v | -verbose | --verbose | --verbos | --verbo | --verb)
346 verbose=yes ;;
347
348 -version | --version | --versio | --versi | --vers)
Eric Pouech18ad24a2000-01-16 22:16:33 +0000349 echo "configure generated by autoconf version 2.13"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000350 exit 0 ;;
351
352 -with-* | --with-*)
353 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357 fi
358 ac_package=`echo $ac_package| sed 's/-/_/g'`
359 case "$ac_option" in
360 *=*) ;;
361 *) ac_optarg=yes ;;
362 esac
363 eval "with_${ac_package}='$ac_optarg'" ;;
364
365 -without-* | --without-*)
366 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 fi
371 ac_package=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}=no" ;;
373
374 --x)
375 # Obsolete; use --with-x.
376 with_x=yes ;;
377
378 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
379 | --x-incl | --x-inc | --x-in | --x-i)
380 ac_prev=x_includes ;;
381 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
382 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
383 x_includes="$ac_optarg" ;;
384
385 -x-libraries | --x-libraries | --x-librarie | --x-librari \
386 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
387 ac_prev=x_libraries ;;
388 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
389 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
390 x_libraries="$ac_optarg" ;;
391
392 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
393 ;;
394
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000395 *)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000396 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397 echo "configure: warning: $ac_option: invalid host type" 1>&2
398 fi
399 if test "x$nonopt" != xNONE; then
400 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
401 fi
402 nonopt="$ac_option"
403 ;;
404
405 esac
406done
407
408if test -n "$ac_prev"; then
409 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
410fi
411
412trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
413
414# File descriptor usage:
415# 0 standard input
416# 1 file creation
417# 2 errors and warnings
418# 3 some systems may open it to /dev/tty
419# 4 used on the Kubota Titan
420# 6 checking for... messages and results
421# 5 compiler messages saved in config.log
422if test "$silent" = yes; then
423 exec 6>/dev/null
424else
425 exec 6>&1
426fi
427exec 5>./config.log
428
429echo "\
430This file contains any messages produced by compilers while
431running configure, to aid debugging if configure makes a mistake.
432" 1>&5
433
434# Strip out --no-create and --no-recursion so they do not pile up.
435# Also quote any args containing shell metacharacters.
436ac_configure_args=
437for ac_arg
438do
439 case "$ac_arg" in
440 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
441 | --no-cr | --no-c) ;;
442 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
443 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
444 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
446 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
447 esac
448done
449
450# NLS nuisances.
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000451# Only set these to C if already set. These must not be set unconditionally
452# because not all systems understand e.g. LANG=C (notably SCO).
453# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
454# Non-C LC_CTYPE values break the ctype check.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000455if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000456if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
457if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
458if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000459
460# confdefs.h avoids OS command line length limits that DEFS can exceed.
461rm -rf conftest* confdefs.h
462# AIX cpp loses on an empty file, so make sure it contains at least a newline.
463echo > confdefs.h
464
465# A filename unique to this package, relative to the directory that
466# configure is in, which we can look for to find out if srcdir is correct.
467ac_unique_file=controls/edit.c
468
469# Find the source files, if location was not specified.
470if test -z "$srcdir"; then
471 ac_srcdir_defaulted=yes
472 # Try the directory containing this script, then its parent.
473 ac_prog=$0
474 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
476 srcdir=$ac_confdir
477 if test ! -r $srcdir/$ac_unique_file; then
478 srcdir=..
479 fi
480else
481 ac_srcdir_defaulted=no
482fi
483if test ! -r $srcdir/$ac_unique_file; then
484 if test "$ac_srcdir_defaulted" = yes; then
485 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
486 else
487 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
488 fi
489fi
490srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
491
492# Prefer explicitly selected file to automatically selected ones.
493if test -z "$CONFIG_SITE"; then
494 if test "x$prefix" != xNONE; then
495 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
496 else
497 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
498 fi
499fi
500for ac_site_file in $CONFIG_SITE; do
501 if test -r "$ac_site_file"; then
502 echo "loading site script $ac_site_file"
503 . "$ac_site_file"
504 fi
505done
506
507if test -r "$cache_file"; then
508 echo "loading cache $cache_file"
509 . $cache_file
510else
511 echo "creating cache $cache_file"
512 > $cache_file
513fi
514
515ac_ext=c
516# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000517ac_cpp='$CPP $CPPFLAGS'
518ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Eric Pouech18ad24a2000-01-16 22:16:33 +0000519ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000520cross_compiling=$ac_cv_prog_cc_cross
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000521
Eric Pouech18ad24a2000-01-16 22:16:33 +0000522ac_exeext=
523ac_objext=o
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000524if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
525 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
526 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
527 ac_n= ac_c='
528' ac_t=' '
529 else
530 ac_n=-n ac_c= ac_t=
531 fi
532else
533 ac_n= ac_c='\c' ac_t=
534fi
535
536
Alexandre Julliard18f92e71996-07-17 20:02:21 +0000537
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000538ac_aux_dir=
539for ac_dir in tools $srcdir/tools; do
540 if test -f $ac_dir/install-sh; then
541 ac_aux_dir=$ac_dir
542 ac_install_sh="$ac_aux_dir/install-sh -c"
543 break
544 elif test -f $ac_dir/install.sh; then
545 ac_aux_dir=$ac_dir
546 ac_install_sh="$ac_aux_dir/install.sh -c"
547 break
548 fi
549done
550if test -z "$ac_aux_dir"; then
551 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
552fi
553ac_config_guess=$ac_aux_dir/config.guess
554ac_config_sub=$ac_aux_dir/config.sub
555ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
556
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000557
Howard Abrams13277481999-07-10 13:16:29 +0000558
Alexandre Julliard318f4ce2000-01-31 05:02:49 +0000559LIBEXT=so # library type .so or .a
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000560TRACE_MSGS=yes # the TRACE() macro
561DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros.
Patrik Stridvall5e5ad532000-04-23 20:02:46 +0000562CURSES=yes
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000563OPENGL=normal
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +0000564
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000565# Check whether --enable-debug or --disable-debug was given.
566if test "${enable_debug+set}" = set; then
567 enableval="$enable_debug"
568 if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi
569fi
570
571
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000572# Check whether --enable-opengl or --disable-opengl was given.
573if test "${enable_opengl+set}" = set; then
574 enableval="$enable_opengl"
575 if test "$enableval" = "no"; then OPENGL="no"; elif test "$enableval" = "yes"; then OPENGL="yes"; fi
576fi
577
578
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000579# Check whether --enable-trace or --disable-trace was given.
580if test "${enable_trace+set}" = set; then
581 enableval="$enable_trace"
582 if test "$enableval" = "no"; then TRACE_MSGS="no"; fi
583fi
584
585
Patrik Stridvall5e5ad532000-04-23 20:02:46 +0000586# Check whether --with-curses or --without-curses was given.
587if test "${with_curses+set}" = set; then
588 withval="$with_curses"
589 if test "$withval" = "no"; then CURSES="no"; fi
590fi
591
592
Alexandre Julliarda11d7b11998-03-01 20:05:02 +0000593# Check whether --with-reentrant-x or --without-reentrant-x was given.
594if test "${with_reentrant_x+set}" = set; then
595 withval="$with_reentrant_x"
596 :
597fi
598
599
Alexandre Julliardb7258be1995-09-01 15:57:28 +0000600
Alexandre Julliardb7258be1995-09-01 15:57:28 +0000601
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000602if test "$DEBUG_MSGS" = "no"
603then
François Gouget2663b802001-11-06 19:01:05 +0000604 OPTIONS="$OPTIONS -DNO_DEBUG_MSGS"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +0000605fi
606
607if test "$TRACE_MSGS" = "no" -o "$DEBUG_MSGS" = "no"
608then
François Gouget2663b802001-11-06 19:01:05 +0000609 OPTIONS="$OPTIONS -DNO_TRACE_MSGS"
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000610fi
611
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +0000612
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000613echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +0000614echo "configure:615: checking whether ${MAKE-make} sets \${MAKE}" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000615set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000616if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
617 echo $ac_n "(cached) $ac_c" 1>&6
618else
619 cat > conftestmake <<\EOF
620all:
621 @echo 'ac_maketemp="${MAKE}"'
622EOF
623# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
624eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
625if test -n "$ac_maketemp"; then
626 eval ac_cv_prog_make_${ac_make}_set=yes
627else
628 eval ac_cv_prog_make_${ac_make}_set=no
629fi
630rm -f conftestmake
631fi
632if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
633 echo "$ac_t""yes" 1>&6
634 SET_MAKE=
635else
636 echo "$ac_t""no" 1>&6
637 SET_MAKE="MAKE=${MAKE-make}"
638fi
639
640# Extract the first word of "gcc", so it can be a program name with args.
641set dummy gcc; ac_word=$2
642echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +0000643echo "configure:644: checking for $ac_word" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000644if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
645 echo $ac_n "(cached) $ac_c" 1>&6
646else
647 if test -n "$CC"; then
648 ac_cv_prog_CC="$CC" # Let the user override the test.
649else
Eric Pouech18ad24a2000-01-16 22:16:33 +0000650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
651 ac_dummy="$PATH"
652 for ac_dir in $ac_dummy; do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000653 test -z "$ac_dir" && ac_dir=.
654 if test -f $ac_dir/$ac_word; then
655 ac_cv_prog_CC="gcc"
656 break
657 fi
658 done
659 IFS="$ac_save_ifs"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000660fi
661fi
662CC="$ac_cv_prog_CC"
663if test -n "$CC"; then
664 echo "$ac_t""$CC" 1>&6
665else
666 echo "$ac_t""no" 1>&6
667fi
668
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000669if test -z "$CC"; then
670 # Extract the first word of "cc", so it can be a program name with args.
671set dummy cc; ac_word=$2
672echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +0000673echo "configure:674: checking for $ac_word" >&5
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000674if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
675 echo $ac_n "(cached) $ac_c" 1>&6
676else
677 if test -n "$CC"; then
678 ac_cv_prog_CC="$CC" # Let the user override the test.
679else
Eric Pouech18ad24a2000-01-16 22:16:33 +0000680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000681 ac_prog_rejected=no
Eric Pouech18ad24a2000-01-16 22:16:33 +0000682 ac_dummy="$PATH"
683 for ac_dir in $ac_dummy; do
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000684 test -z "$ac_dir" && ac_dir=.
685 if test -f $ac_dir/$ac_word; then
686 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
687 ac_prog_rejected=yes
688 continue
689 fi
690 ac_cv_prog_CC="cc"
691 break
692 fi
693 done
694 IFS="$ac_save_ifs"
695if test $ac_prog_rejected = yes; then
696 # We found a bogon in the path, so make sure we never use it.
697 set dummy $ac_cv_prog_CC
698 shift
699 if test $# -gt 0; then
700 # We chose a different compiler from the bogus one.
701 # However, it has the same basename, so the bogon will be chosen
702 # first if we set CC to just the basename; use the full file name.
703 shift
704 set dummy "$ac_dir/$ac_word" "$@"
705 shift
706 ac_cv_prog_CC="$@"
707 fi
708fi
709fi
710fi
711CC="$ac_cv_prog_CC"
712if test -n "$CC"; then
713 echo "$ac_t""$CC" 1>&6
714else
715 echo "$ac_t""no" 1>&6
716fi
717
Eric Pouech18ad24a2000-01-16 22:16:33 +0000718 if test -z "$CC"; then
719 case "`uname -s`" in
720 *win32* | *WIN32*)
721 # Extract the first word of "cl", so it can be a program name with args.
722set dummy cl; ac_word=$2
723echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +0000724echo "configure:725: checking for $ac_word" >&5
Eric Pouech18ad24a2000-01-16 22:16:33 +0000725if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
726 echo $ac_n "(cached) $ac_c" 1>&6
727else
728 if test -n "$CC"; then
729 ac_cv_prog_CC="$CC" # Let the user override the test.
730else
731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
732 ac_dummy="$PATH"
733 for ac_dir in $ac_dummy; do
734 test -z "$ac_dir" && ac_dir=.
735 if test -f $ac_dir/$ac_word; then
736 ac_cv_prog_CC="cl"
737 break
738 fi
739 done
740 IFS="$ac_save_ifs"
741fi
742fi
743CC="$ac_cv_prog_CC"
744if test -n "$CC"; then
745 echo "$ac_t""$CC" 1>&6
746else
747 echo "$ac_t""no" 1>&6
748fi
749 ;;
750 esac
751 fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000752 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
753fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000754
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000755echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +0000756echo "configure:757: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000757
758ac_ext=c
759# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
760ac_cpp='$CPP $CPPFLAGS'
761ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Eric Pouech18ad24a2000-01-16 22:16:33 +0000762ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000763cross_compiling=$ac_cv_prog_cc_cross
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000764
Eric Pouech18ad24a2000-01-16 22:16:33 +0000765cat > conftest.$ac_ext << EOF
766
François Gouget2663b802001-11-06 19:01:05 +0000767#line 768 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000768#include "confdefs.h"
Eric Pouech18ad24a2000-01-16 22:16:33 +0000769
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000770main(){return(0);}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000771EOF
François Gouget2663b802001-11-06 19:01:05 +0000772if { (eval echo configure:773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000773 ac_cv_prog_cc_works=yes
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000774 # If we can't run a trivial program, we are probably using a cross compiler.
775 if (./conftest; exit) 2>/dev/null; then
776 ac_cv_prog_cc_cross=no
777 else
778 ac_cv_prog_cc_cross=yes
779 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000780else
781 echo "configure: failed program was:" >&5
782 cat conftest.$ac_ext >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000783 ac_cv_prog_cc_works=no
784fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000785rm -fr conftest*
Eric Pouech18ad24a2000-01-16 22:16:33 +0000786ac_ext=c
787# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
788ac_cpp='$CPP $CPPFLAGS'
789ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
790ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
791cross_compiling=$ac_cv_prog_cc_cross
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000792
793echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
794if test $ac_cv_prog_cc_works = no; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000795 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000796fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000797echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +0000798echo "configure:799: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000799echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
800cross_compiling=$ac_cv_prog_cc_cross
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000801
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000802echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +0000803echo "configure:804: checking whether we are using GNU C" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000804if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
805 echo $ac_n "(cached) $ac_c" 1>&6
806else
807 cat > conftest.c <<EOF
808#ifdef __GNUC__
809 yes;
810#endif
811EOF
François Gouget2663b802001-11-06 19:01:05 +0000812if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000813 ac_cv_prog_gcc=yes
814else
815 ac_cv_prog_gcc=no
816fi
817fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000818
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000819echo "$ac_t""$ac_cv_prog_gcc" 1>&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000820
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000821if test $ac_cv_prog_gcc = yes; then
822 GCC=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +0000823else
824 GCC=
825fi
826
827ac_test_CFLAGS="${CFLAGS+set}"
828ac_save_CFLAGS="$CFLAGS"
829CFLAGS=
830echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +0000831echo "configure:832: checking whether ${CC-cc} accepts -g" >&5
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000832if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000833 echo $ac_n "(cached) $ac_c" 1>&6
834else
835 echo 'void f(){}' > conftest.c
836if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000837 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000838else
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000839 ac_cv_prog_cc_g=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000840fi
841rm -f conftest*
842
843fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000844
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000845echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
Eric Pouech18ad24a2000-01-16 22:16:33 +0000846if test "$ac_test_CFLAGS" = set; then
847 CFLAGS="$ac_save_CFLAGS"
848elif test $ac_cv_prog_cc_g = yes; then
849 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000850 CFLAGS="-g -O2"
851 else
Eric Pouech18ad24a2000-01-16 22:16:33 +0000852 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000853 fi
854else
Eric Pouech18ad24a2000-01-16 22:16:33 +0000855 if test "$GCC" = yes; then
856 CFLAGS="-O2"
857 else
858 CFLAGS=
859 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000860fi
861
862echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +0000863echo "configure:864: checking how to run the C preprocessor" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000864# On Suns, sometimes $CPP names a directory.
865if test -n "$CPP" && test -d "$CPP"; then
866 CPP=
867fi
868if test -z "$CPP"; then
869if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
870 echo $ac_n "(cached) $ac_c" 1>&6
871else
872 # This must be in double quotes, not single quotes, because CPP may get
873 # substituted into the Makefile and "${CC-cc}" will confuse make.
874 CPP="${CC-cc} -E"
875 # On the NeXT, cc -E runs the code through the compiler's parser,
876 # not just through cpp.
877 cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +0000878#line 879 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000879#include "confdefs.h"
880#include <assert.h>
881Syntax Error
882EOF
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000883ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
François Gouget2663b802001-11-06 19:01:05 +0000884{ (eval echo configure:885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +0000885ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000886if test -z "$ac_err"; then
887 :
888else
889 echo "$ac_err" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000890 echo "configure: failed program was:" >&5
891 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000892 rm -rf conftest*
893 CPP="${CC-cc} -E -traditional-cpp"
894 cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +0000895#line 896 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000896#include "confdefs.h"
897#include <assert.h>
898Syntax Error
899EOF
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000900ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
François Gouget2663b802001-11-06 19:01:05 +0000901{ (eval echo configure:902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +0000902ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
903if test -z "$ac_err"; then
904 :
905else
906 echo "$ac_err" >&5
907 echo "configure: failed program was:" >&5
908 cat conftest.$ac_ext >&5
909 rm -rf conftest*
910 CPP="${CC-cc} -nologo -E"
911 cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +0000912#line 913 "configure"
Eric Pouech18ad24a2000-01-16 22:16:33 +0000913#include "confdefs.h"
914#include <assert.h>
915Syntax Error
916EOF
917ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
François Gouget2663b802001-11-06 19:01:05 +0000918{ (eval echo configure:919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +0000919ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000920if test -z "$ac_err"; then
921 :
922else
923 echo "$ac_err" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000924 echo "configure: failed program was:" >&5
925 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000926 rm -rf conftest*
927 CPP=/lib/cpp
928fi
929rm -f conftest*
930fi
931rm -f conftest*
Eric Pouech18ad24a2000-01-16 22:16:33 +0000932fi
933rm -f conftest*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000934 ac_cv_prog_CPP="$CPP"
935fi
936 CPP="$ac_cv_prog_CPP"
937else
938 ac_cv_prog_CPP="$CPP"
939fi
940echo "$ac_t""$CPP" 1>&6
941
942# If we find X, set shell vars x_includes and x_libraries to the
943# paths, otherwise set no_x=yes.
944# Uses ac_ vars as temps to allow command line to override cache and checks.
945# --without-x overrides everything else, but does not touch the cache.
946echo $ac_n "checking for X""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +0000947echo "configure:948: checking for X" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000948
949# Check whether --with-x or --without-x was given.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000950if test "${with_x+set}" = set; then
951 withval="$with_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000952 :
953fi
954
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000955# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000956if test "x$with_x" = xno; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000957 # The user explicitly disabled X.
958 have_x=disabled
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000959else
960 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000961 # Both variables are already set.
962 have_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000963 else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000964if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000965 echo $ac_n "(cached) $ac_c" 1>&6
966else
967 # One or both of the vars are not set, and there is no cached value.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000968ac_x_includes=NO ac_x_libraries=NO
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000969rm -fr conftestdir
970if mkdir conftestdir; then
971 cd conftestdir
972 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
973 cat > Imakefile <<'EOF'
974acfindx:
975 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
976EOF
977 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000978 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000979 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000980 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
981 for ac_extension in a so sl; do
982 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
983 test -f $ac_im_libdir/libX11.$ac_extension; then
984 ac_im_usrlibdir=$ac_im_libdir; break
985 fi
986 done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000987 # Screen out bogus values from the imake configuration. They are
988 # bogus both because they are the default anyway, and because
989 # using them would break gcc on systems where it needs fixed includes.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000990 case "$ac_im_incroot" in
991 /usr/include) ;;
992 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
993 esac
994 case "$ac_im_usrlibdir" in
995 /usr/lib | /lib) ;;
996 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
997 esac
998 fi
999 cd ..
1000 rm -fr conftestdir
1001fi
1002
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001003if test "$ac_x_includes" = NO; then
1004 # Guess where to find include files, by looking for this one X11 .h file.
1005 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1006
1007 # First, try using that file with no special directory specified.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001008cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00001009#line 1010 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001010#include "confdefs.h"
1011#include <$x_direct_test_include>
1012EOF
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001013ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
François Gouget2663b802001-11-06 19:01:05 +00001014{ (eval echo configure:1015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00001015ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001016if test -z "$ac_err"; then
1017 rm -rf conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001018 # We can compile using X headers with no special include directory.
1019ac_x_includes=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001020else
1021 echo "$ac_err" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001022 echo "configure: failed program was:" >&5
1023 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001024 rm -rf conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001025 # Look for the header file in a standard set of common directories.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001026# Check X11 before X11Rn because it is often a symlink to the current release.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001027 for ac_dir in \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001028 /usr/X11/include \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001029 /usr/X11R6/include \
1030 /usr/X11R5/include \
1031 /usr/X11R4/include \
1032 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001033 /usr/include/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001034 /usr/include/X11R6 \
1035 /usr/include/X11R5 \
1036 /usr/include/X11R4 \
1037 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001038 /usr/local/X11/include \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001039 /usr/local/X11R6/include \
1040 /usr/local/X11R5/include \
1041 /usr/local/X11R4/include \
1042 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001043 /usr/local/include/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001044 /usr/local/include/X11R6 \
1045 /usr/local/include/X11R5 \
1046 /usr/local/include/X11R4 \
1047 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001048 /usr/X386/include \
1049 /usr/x386/include \
1050 /usr/XFree86/include/X11 \
1051 \
1052 /usr/include \
1053 /usr/local/include \
1054 /usr/unsupported/include \
1055 /usr/athena/include \
1056 /usr/local/x11r5/include \
1057 /usr/lpp/Xamples/include \
1058 \
1059 /usr/openwin/include \
1060 /usr/openwin/share/include \
1061 ; \
1062 do
1063 if test -r "$ac_dir/$x_direct_test_include"; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001064 ac_x_includes=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001065 break
1066 fi
1067 done
1068fi
1069rm -f conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001070fi # $ac_x_includes = NO
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001071
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001072if test "$ac_x_libraries" = NO; then
1073 # Check for the libraries.
1074
1075 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1076 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1077
1078 # See if we find them without any special options.
1079 # Don't add to $LIBS permanently.
1080 ac_save_LIBS="$LIBS"
1081 LIBS="-l$x_direct_test_library $LIBS"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001082cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00001083#line 1084 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001084#include "confdefs.h"
1085
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001086int main() {
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001087${x_direct_test_function}()
1088; return 0; }
1089EOF
François Gouget2663b802001-11-06 19:01:05 +00001090if { (eval echo configure:1091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001091 rm -rf conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001092 LIBS="$ac_save_LIBS"
1093# We can link X programs with no special library path.
1094ac_x_libraries=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001095else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001096 echo "configure: failed program was:" >&5
1097 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001098 rm -rf conftest*
1099 LIBS="$ac_save_LIBS"
1100# First see if replacing the include by lib works.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001101# Check X11 before X11Rn because it is often a symlink to the current release.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001102for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001103 /usr/X11/lib \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001104 /usr/X11R6/lib \
1105 /usr/X11R5/lib \
1106 /usr/X11R4/lib \
1107 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001108 /usr/lib/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001109 /usr/lib/X11R6 \
1110 /usr/lib/X11R5 \
1111 /usr/lib/X11R4 \
1112 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001113 /usr/local/X11/lib \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001114 /usr/local/X11R6/lib \
1115 /usr/local/X11R5/lib \
1116 /usr/local/X11R4/lib \
1117 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001118 /usr/local/lib/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001119 /usr/local/lib/X11R6 \
1120 /usr/local/lib/X11R5 \
1121 /usr/local/lib/X11R4 \
1122 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001123 /usr/X386/lib \
1124 /usr/x386/lib \
1125 /usr/XFree86/lib/X11 \
1126 \
1127 /usr/lib \
1128 /usr/local/lib \
1129 /usr/unsupported/lib \
1130 /usr/athena/lib \
1131 /usr/local/x11r5/lib \
1132 /usr/lpp/Xamples/lib \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001133 /lib/usr/lib/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001134 \
1135 /usr/openwin/lib \
1136 /usr/openwin/share/lib \
1137 ; \
1138do
1139 for ac_extension in a so sl; do
1140 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001141 ac_x_libraries=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001142 break 2
1143 fi
1144 done
1145done
1146fi
1147rm -f conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001148fi # $ac_x_libraries = NO
1149
1150if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1151 # Didn't find X anywhere. Cache the known absence of X.
1152 ac_cv_have_x="have_x=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001153else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001154 # Record where we found X for the cache.
1155 ac_cv_have_x="have_x=yes \
1156 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001157fi
1158fi
1159 fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001160 eval "$ac_cv_have_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001161fi # $with_x != no
1162
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001163if test "$have_x" != yes; then
1164 echo "$ac_t""$have_x" 1>&6
1165 no_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001166else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001167 # If each of the values was on the command line, it overrides each guess.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001168 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1169 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001170 # Update the cache value to reflect the command line values.
1171 ac_cv_have_x="have_x=yes \
1172 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001173 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1174fi
1175
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001176if test "$no_x" = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001177 # Not all programs may use this symbol, but it does not hurt to define it.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001178 cat >> confdefs.h <<\EOF
1179#define X_DISPLAY_MISSING 1
1180EOF
1181
1182 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001183else
1184 if test -n "$x_includes"; then
1185 X_CFLAGS="$X_CFLAGS -I$x_includes"
1186 fi
1187
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001188 # It would also be nice to do this for all -L options, not just this one.
1189 if test -n "$x_libraries"; then
1190 X_LIBS="$X_LIBS -L$x_libraries"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001191 # For Solaris; some versions of Sun CC require a space after -R and
1192 # others require no space. Words are not sufficient . . . .
1193 case "`(uname -sr) 2>/dev/null`" in
1194 "SunOS 5"*)
1195 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00001196echo "configure:1197: checking whether -R must be followed by a space" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001197 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1198 cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00001199#line 1200 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001200#include "confdefs.h"
1201
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001202int main() {
1203
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001204; return 0; }
1205EOF
François Gouget2663b802001-11-06 19:01:05 +00001206if { (eval echo configure:1207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001207 rm -rf conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001208 ac_R_nospace=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001209else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001210 echo "configure: failed program was:" >&5
1211 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001212 rm -rf conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001213 ac_R_nospace=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001214fi
1215rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001216 if test $ac_R_nospace = yes; then
1217 echo "$ac_t""no" 1>&6
1218 X_LIBS="$X_LIBS -R$x_libraries"
1219 else
1220 LIBS="$ac_xsave_LIBS -R $x_libraries"
1221 cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00001222#line 1223 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001223#include "confdefs.h"
1224
1225int main() {
1226
1227; return 0; }
1228EOF
François Gouget2663b802001-11-06 19:01:05 +00001229if { (eval echo configure:1230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001230 rm -rf conftest*
1231 ac_R_space=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001232else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001233 echo "configure: failed program was:" >&5
1234 cat conftest.$ac_ext >&5
1235 rm -rf conftest*
1236 ac_R_space=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001237fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001238rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001239 if test $ac_R_space = yes; then
1240 echo "$ac_t""yes" 1>&6
1241 X_LIBS="$X_LIBS -R $x_libraries"
1242 else
1243 echo "$ac_t""neither works" 1>&6
1244 fi
1245 fi
1246 LIBS="$ac_xsave_LIBS"
1247 esac
1248 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001249
1250 # Check for system-dependent libraries X programs must link with.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001251 # Do this before checking for the system-independent R6 libraries
1252 # (-lICE), since we may need -lsocket or whatever for X linking.
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001253
1254 if test "$ISC" = yes; then
1255 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1256 else
1257 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1258 # libraries were built with DECnet support. And karl@cs.umb.edu says
1259 # the Alpha needs dnet_stub (dnet does not exist).
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001260 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00001261echo "configure:1262: checking for dnet_ntoa in -ldnet" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001262ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001263if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001264 echo $ac_n "(cached) $ac_c" 1>&6
1265else
1266 ac_save_LIBS="$LIBS"
1267LIBS="-ldnet $LIBS"
1268cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00001269#line 1270 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001270#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001271/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001272/* We use char because int might match the return type of a gcc2
1273 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001274char dnet_ntoa();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001275
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001276int main() {
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001277dnet_ntoa()
1278; return 0; }
1279EOF
François Gouget2663b802001-11-06 19:01:05 +00001280if { (eval echo configure:1281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001281 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001282 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001283else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001284 echo "configure: failed program was:" >&5
1285 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001286 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001287 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001288fi
1289rm -f conftest*
1290LIBS="$ac_save_LIBS"
1291
1292fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001293if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001294 echo "$ac_t""yes" 1>&6
1295 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1296else
1297 echo "$ac_t""no" 1>&6
1298fi
1299
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001300 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001301 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00001302echo "configure:1303: checking for dnet_ntoa in -ldnet_stub" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001303ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001304if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001305 echo $ac_n "(cached) $ac_c" 1>&6
1306else
1307 ac_save_LIBS="$LIBS"
1308LIBS="-ldnet_stub $LIBS"
1309cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00001310#line 1311 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001311#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001312/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001313/* We use char because int might match the return type of a gcc2
1314 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001315char dnet_ntoa();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001316
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001317int main() {
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001318dnet_ntoa()
1319; return 0; }
1320EOF
François Gouget2663b802001-11-06 19:01:05 +00001321if { (eval echo configure:1322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001322 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001323 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001324else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001325 echo "configure: failed program was:" >&5
1326 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001327 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001328 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001329fi
1330rm -f conftest*
1331LIBS="$ac_save_LIBS"
1332
1333fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001334if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001335 echo "$ac_t""yes" 1>&6
1336 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1337else
1338 echo "$ac_t""no" 1>&6
1339fi
1340
1341 fi
1342
1343 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1344 # to get the SysV transport functions.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001345 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1346 # needs -lnsl.
1347 # The nsl library prevents programs from opening the X display
1348 # on Irix 5.2, according to dickey@clark.net.
1349 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00001350echo "configure:1351: checking for gethostbyname" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001351if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1353else
1354 cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00001355#line 1356 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001356#include "confdefs.h"
1357/* System header to define __stub macros and hopefully few prototypes,
1358 which can conflict with char gethostbyname(); below. */
1359#include <assert.h>
1360/* Override any gcc2 internal prototype to avoid an error. */
1361/* We use char because int might match the return type of a gcc2
1362 builtin and then its argument prototype would still apply. */
1363char gethostbyname();
1364
1365int main() {
1366
1367/* The GNU C library defines this for functions which it implements
1368 to always fail with ENOSYS. Some functions are actually named
1369 something starting with __ and the normal name is an alias. */
1370#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1371choke me
1372#else
1373gethostbyname();
1374#endif
1375
1376; return 0; }
1377EOF
François Gouget2663b802001-11-06 19:01:05 +00001378if { (eval echo configure:1379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001379 rm -rf conftest*
1380 eval "ac_cv_func_gethostbyname=yes"
1381else
1382 echo "configure: failed program was:" >&5
1383 cat conftest.$ac_ext >&5
1384 rm -rf conftest*
1385 eval "ac_cv_func_gethostbyname=no"
1386fi
1387rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001388fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001389
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001390if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1391 echo "$ac_t""yes" 1>&6
1392 :
1393else
1394 echo "$ac_t""no" 1>&6
1395fi
1396
1397 if test $ac_cv_func_gethostbyname = no; then
1398 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00001399echo "configure:1400: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001400ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001401if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001402 echo $ac_n "(cached) $ac_c" 1>&6
1403else
1404 ac_save_LIBS="$LIBS"
1405LIBS="-lnsl $LIBS"
1406cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00001407#line 1408 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001408#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001409/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001410/* We use char because int might match the return type of a gcc2
1411 builtin and then its argument prototype would still apply. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001412char gethostbyname();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001413
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001414int main() {
1415gethostbyname()
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001416; return 0; }
1417EOF
François Gouget2663b802001-11-06 19:01:05 +00001418if { (eval echo configure:1419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001419 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001420 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001421else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001422 echo "configure: failed program was:" >&5
1423 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001424 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001425 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001426fi
1427rm -f conftest*
1428LIBS="$ac_save_LIBS"
1429
1430fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001431if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001432 echo "$ac_t""yes" 1>&6
1433 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1434else
1435 echo "$ac_t""no" 1>&6
1436fi
1437
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001438 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001439
1440 # lieder@skyler.mavd.honeywell.com says without -lsocket,
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001441 # socket/setsockopt and other routines are undefined under SCO ODT
1442 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1443 # on later versions), says simon@lia.di.epfl.ch: it contains
1444 # gethostby* variants that don't use the nameserver (or something).
1445 # -lsocket must be given before -lnsl if both are needed.
1446 # We assume that if connect needs -lnsl, so does gethostbyname.
1447 echo $ac_n "checking for connect""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00001448echo "configure:1449: checking for connect" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001449if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1450 echo $ac_n "(cached) $ac_c" 1>&6
1451else
1452 cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00001453#line 1454 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001454#include "confdefs.h"
1455/* System header to define __stub macros and hopefully few prototypes,
1456 which can conflict with char connect(); below. */
1457#include <assert.h>
1458/* Override any gcc2 internal prototype to avoid an error. */
1459/* We use char because int might match the return type of a gcc2
1460 builtin and then its argument prototype would still apply. */
1461char connect();
1462
1463int main() {
1464
1465/* The GNU C library defines this for functions which it implements
1466 to always fail with ENOSYS. Some functions are actually named
1467 something starting with __ and the normal name is an alias. */
1468#if defined (__stub_connect) || defined (__stub___connect)
1469choke me
1470#else
1471connect();
1472#endif
1473
1474; return 0; }
1475EOF
François Gouget2663b802001-11-06 19:01:05 +00001476if { (eval echo configure:1477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001477 rm -rf conftest*
1478 eval "ac_cv_func_connect=yes"
1479else
1480 echo "configure: failed program was:" >&5
1481 cat conftest.$ac_ext >&5
1482 rm -rf conftest*
1483 eval "ac_cv_func_connect=no"
1484fi
1485rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001486fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001487
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001488if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1489 echo "$ac_t""yes" 1>&6
1490 :
1491else
1492 echo "$ac_t""no" 1>&6
1493fi
1494
1495 if test $ac_cv_func_connect = no; then
1496 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00001497echo "configure:1498: checking for connect in -lsocket" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001498ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001499if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001500 echo $ac_n "(cached) $ac_c" 1>&6
1501else
1502 ac_save_LIBS="$LIBS"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001503LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001504cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00001505#line 1506 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001506#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001507/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001508/* We use char because int might match the return type of a gcc2
1509 builtin and then its argument prototype would still apply. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001510char connect();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001511
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001512int main() {
1513connect()
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001514; return 0; }
1515EOF
François Gouget2663b802001-11-06 19:01:05 +00001516if { (eval echo configure:1517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001517 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001518 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001519else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001520 echo "configure: failed program was:" >&5
1521 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001522 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001523 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001524fi
1525rm -f conftest*
1526LIBS="$ac_save_LIBS"
1527
1528fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001529if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001530 echo "$ac_t""yes" 1>&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001531 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001532else
1533 echo "$ac_t""no" 1>&6
1534fi
1535
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001536 fi
1537
1538 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1539 echo $ac_n "checking for remove""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00001540echo "configure:1541: checking for remove" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001541if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1542 echo $ac_n "(cached) $ac_c" 1>&6
1543else
1544 cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00001545#line 1546 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001546#include "confdefs.h"
1547/* System header to define __stub macros and hopefully few prototypes,
1548 which can conflict with char remove(); below. */
1549#include <assert.h>
1550/* Override any gcc2 internal prototype to avoid an error. */
1551/* We use char because int might match the return type of a gcc2
1552 builtin and then its argument prototype would still apply. */
1553char remove();
1554
1555int main() {
1556
1557/* The GNU C library defines this for functions which it implements
1558 to always fail with ENOSYS. Some functions are actually named
1559 something starting with __ and the normal name is an alias. */
1560#if defined (__stub_remove) || defined (__stub___remove)
1561choke me
1562#else
1563remove();
1564#endif
1565
1566; return 0; }
1567EOF
François Gouget2663b802001-11-06 19:01:05 +00001568if { (eval echo configure:1569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001569 rm -rf conftest*
1570 eval "ac_cv_func_remove=yes"
1571else
1572 echo "configure: failed program was:" >&5
1573 cat conftest.$ac_ext >&5
1574 rm -rf conftest*
1575 eval "ac_cv_func_remove=no"
1576fi
1577rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001578fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001579
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001580if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1581 echo "$ac_t""yes" 1>&6
1582 :
1583else
1584 echo "$ac_t""no" 1>&6
1585fi
1586
1587 if test $ac_cv_func_remove = no; then
1588 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00001589echo "configure:1590: checking for remove in -lposix" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001590ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001591if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1592 echo $ac_n "(cached) $ac_c" 1>&6
1593else
1594 ac_save_LIBS="$LIBS"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001595LIBS="-lposix $LIBS"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001596cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00001597#line 1598 "configure"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001598#include "confdefs.h"
1599/* Override any gcc2 internal prototype to avoid an error. */
1600/* We use char because int might match the return type of a gcc2
1601 builtin and then its argument prototype would still apply. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001602char remove();
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001603
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001604int main() {
1605remove()
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001606; return 0; }
1607EOF
François Gouget2663b802001-11-06 19:01:05 +00001608if { (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001609 rm -rf conftest*
1610 eval "ac_cv_lib_$ac_lib_var=yes"
1611else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001612 echo "configure: failed program was:" >&5
1613 cat conftest.$ac_ext >&5
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001614 rm -rf conftest*
1615 eval "ac_cv_lib_$ac_lib_var=no"
1616fi
1617rm -f conftest*
1618LIBS="$ac_save_LIBS"
1619
1620fi
1621if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1622 echo "$ac_t""yes" 1>&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001623 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001624else
1625 echo "$ac_t""no" 1>&6
1626fi
1627
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001628 fi
1629
1630 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1631 echo $ac_n "checking for shmat""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00001632echo "configure:1633: checking for shmat" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001633if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1634 echo $ac_n "(cached) $ac_c" 1>&6
1635else
1636 cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00001637#line 1638 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001638#include "confdefs.h"
1639/* System header to define __stub macros and hopefully few prototypes,
1640 which can conflict with char shmat(); below. */
1641#include <assert.h>
1642/* Override any gcc2 internal prototype to avoid an error. */
1643/* We use char because int might match the return type of a gcc2
1644 builtin and then its argument prototype would still apply. */
1645char shmat();
1646
1647int main() {
1648
1649/* The GNU C library defines this for functions which it implements
1650 to always fail with ENOSYS. Some functions are actually named
1651 something starting with __ and the normal name is an alias. */
1652#if defined (__stub_shmat) || defined (__stub___shmat)
1653choke me
1654#else
1655shmat();
1656#endif
1657
1658; return 0; }
1659EOF
François Gouget2663b802001-11-06 19:01:05 +00001660if { (eval echo configure:1661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001661 rm -rf conftest*
1662 eval "ac_cv_func_shmat=yes"
1663else
1664 echo "configure: failed program was:" >&5
1665 cat conftest.$ac_ext >&5
1666 rm -rf conftest*
1667 eval "ac_cv_func_shmat=no"
1668fi
1669rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001670fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001671
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001672if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1673 echo "$ac_t""yes" 1>&6
1674 :
1675else
1676 echo "$ac_t""no" 1>&6
1677fi
1678
1679 if test $ac_cv_func_shmat = no; then
1680 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00001681echo "configure:1682: checking for shmat in -lipc" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001682ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1683if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6
1685else
1686 ac_save_LIBS="$LIBS"
1687LIBS="-lipc $LIBS"
1688cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00001689#line 1690 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001690#include "confdefs.h"
1691/* Override any gcc2 internal prototype to avoid an error. */
1692/* We use char because int might match the return type of a gcc2
1693 builtin and then its argument prototype would still apply. */
1694char shmat();
1695
1696int main() {
1697shmat()
1698; return 0; }
1699EOF
François Gouget2663b802001-11-06 19:01:05 +00001700if { (eval echo configure:1701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001701 rm -rf conftest*
1702 eval "ac_cv_lib_$ac_lib_var=yes"
1703else
1704 echo "configure: failed program was:" >&5
1705 cat conftest.$ac_ext >&5
1706 rm -rf conftest*
1707 eval "ac_cv_lib_$ac_lib_var=no"
1708fi
1709rm -f conftest*
1710LIBS="$ac_save_LIBS"
1711
1712fi
1713if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1714 echo "$ac_t""yes" 1>&6
1715 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1716else
1717 echo "$ac_t""no" 1>&6
1718fi
1719
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001720 fi
1721 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001722
1723 # Check for libraries that X11R6 Xt/Xaw programs need.
1724 ac_save_LDFLAGS="$LDFLAGS"
1725 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1726 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1727 # check for ICE first), but we must link in the order -lSM -lICE or
1728 # we get undefined symbols. So assume we have SM if we have ICE.
1729 # These have to be linked with before -lX11, unlike the other
1730 # libraries we check for below, so use a different variable.
1731 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1732 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00001733echo "configure:1734: checking for IceConnectionNumber in -lICE" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001734ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1735if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1736 echo $ac_n "(cached) $ac_c" 1>&6
1737else
1738 ac_save_LIBS="$LIBS"
Eric Pouech18ad24a2000-01-16 22:16:33 +00001739LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001740cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00001741#line 1742 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001742#include "confdefs.h"
1743/* Override any gcc2 internal prototype to avoid an error. */
1744/* We use char because int might match the return type of a gcc2
1745 builtin and then its argument prototype would still apply. */
1746char IceConnectionNumber();
1747
1748int main() {
1749IceConnectionNumber()
1750; return 0; }
1751EOF
François Gouget2663b802001-11-06 19:01:05 +00001752if { (eval echo configure:1753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001753 rm -rf conftest*
1754 eval "ac_cv_lib_$ac_lib_var=yes"
1755else
1756 echo "configure: failed program was:" >&5
1757 cat conftest.$ac_ext >&5
1758 rm -rf conftest*
1759 eval "ac_cv_lib_$ac_lib_var=no"
1760fi
1761rm -f conftest*
1762LIBS="$ac_save_LIBS"
1763
1764fi
1765if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1766 echo "$ac_t""yes" 1>&6
1767 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1768else
1769 echo "$ac_t""no" 1>&6
1770fi
1771
1772 LDFLAGS="$ac_save_LDFLAGS"
1773
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001774fi
1775
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001776for ac_prog in 'bison -y' byacc
1777do
1778# Extract the first word of "$ac_prog", so it can be a program name with args.
1779set dummy $ac_prog; ac_word=$2
1780echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00001781echo "configure:1782: checking for $ac_word" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001782if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1783 echo $ac_n "(cached) $ac_c" 1>&6
1784else
1785 if test -n "$YACC"; then
1786 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1787else
Eric Pouech18ad24a2000-01-16 22:16:33 +00001788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1789 ac_dummy="$PATH"
1790 for ac_dir in $ac_dummy; do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001791 test -z "$ac_dir" && ac_dir=.
1792 if test -f $ac_dir/$ac_word; then
1793 ac_cv_prog_YACC="$ac_prog"
1794 break
1795 fi
1796 done
1797 IFS="$ac_save_ifs"
1798fi
1799fi
1800YACC="$ac_cv_prog_YACC"
1801if test -n "$YACC"; then
1802 echo "$ac_t""$YACC" 1>&6
1803else
1804 echo "$ac_t""no" 1>&6
1805fi
1806
1807test -n "$YACC" && break
1808done
1809test -n "$YACC" || YACC="yacc"
1810
1811# Extract the first word of "flex", so it can be a program name with args.
1812set dummy flex; ac_word=$2
1813echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00001814echo "configure:1815: checking for $ac_word" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001815if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1816 echo $ac_n "(cached) $ac_c" 1>&6
1817else
1818 if test -n "$LEX"; then
1819 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1820else
Eric Pouech18ad24a2000-01-16 22:16:33 +00001821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1822 ac_dummy="$PATH"
1823 for ac_dir in $ac_dummy; do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001824 test -z "$ac_dir" && ac_dir=.
1825 if test -f $ac_dir/$ac_word; then
1826 ac_cv_prog_LEX="flex"
1827 break
1828 fi
1829 done
1830 IFS="$ac_save_ifs"
1831 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1832fi
1833fi
1834LEX="$ac_cv_prog_LEX"
1835if test -n "$LEX"; then
1836 echo "$ac_t""$LEX" 1>&6
1837else
1838 echo "$ac_t""no" 1>&6
1839fi
1840
1841if test -z "$LEXLIB"
1842then
1843 case "$LEX" in
1844 flex*) ac_lib=fl ;;
1845 *) ac_lib=l ;;
1846 esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001847 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00001848echo "configure:1849: checking for yywrap in -l$ac_lib" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001849ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001850if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001851 echo $ac_n "(cached) $ac_c" 1>&6
1852else
1853 ac_save_LIBS="$LIBS"
1854LIBS="-l$ac_lib $LIBS"
1855cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00001856#line 1857 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001857#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001858/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001859/* We use char because int might match the return type of a gcc2
1860 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001861char yywrap();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001862
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001863int main() {
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001864yywrap()
1865; return 0; }
1866EOF
François Gouget2663b802001-11-06 19:01:05 +00001867if { (eval echo configure:1868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001868 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001869 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001870else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001871 echo "configure: failed program was:" >&5
1872 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001873 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001874 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001875fi
1876rm -f conftest*
1877LIBS="$ac_save_LIBS"
1878
1879fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001880if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001881 echo "$ac_t""yes" 1>&6
1882 LEXLIB="-l$ac_lib"
1883else
1884 echo "$ac_t""no" 1>&6
1885fi
1886
1887fi
1888
Marcus Meissner5c5a6212002-01-22 18:28:25 +00001889
1890for ac_prog in $YACC bison yacc
1891do
1892# Extract the first word of "$ac_prog", so it can be a program name with args.
1893set dummy $ac_prog; ac_word=$2
1894echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1895echo "configure:1896: checking for $ac_word" >&5
1896if eval "test \"`echo '$''{'ac_cv_prog_XYACC'+set}'`\" = set"; then
1897 echo $ac_n "(cached) $ac_c" 1>&6
1898else
1899 if test -n "$XYACC"; then
1900 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
1901else
1902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1903 ac_dummy="$PATH"
1904 for ac_dir in $ac_dummy; do
1905 test -z "$ac_dir" && ac_dir=.
1906 if test -f $ac_dir/$ac_word; then
1907 ac_cv_prog_XYACC="$ac_prog"
1908 break
1909 fi
1910 done
1911 IFS="$ac_save_ifs"
1912fi
1913fi
1914XYACC="$ac_cv_prog_XYACC"
1915if test -n "$XYACC"; then
1916 echo "$ac_t""$XYACC" 1>&6
1917else
1918 echo "$ac_t""no" 1>&6
1919fi
1920
1921test -n "$XYACC" && break
1922done
1923test -n "$XYACC" || XYACC="none"
1924
1925if test "$XYACC" = "none"
1926then
1927 echo "*** Error: No suitable bison/yacc found. ***"
1928 echo " Please install the 'bison' package."
1929 exit 1
1930fi
Marcus Meissnerb53bb412000-07-23 13:41:51 +00001931for ac_prog in $LEX flex lex
1932do
1933# Extract the first word of "$ac_prog", so it can be a program name with args.
1934set dummy $ac_prog; ac_word=$2
1935echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00001936echo "configure:1937: checking for $ac_word" >&5
Marcus Meissnerb53bb412000-07-23 13:41:51 +00001937if eval "test \"`echo '$''{'ac_cv_prog_XLEX'+set}'`\" = set"; then
1938 echo $ac_n "(cached) $ac_c" 1>&6
1939else
1940 if test -n "$XLEX"; then
1941 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
1942else
1943 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1944 ac_dummy="$PATH"
1945 for ac_dir in $ac_dummy; do
1946 test -z "$ac_dir" && ac_dir=.
1947 if test -f $ac_dir/$ac_word; then
1948 ac_cv_prog_XLEX="$ac_prog"
1949 break
1950 fi
1951 done
1952 IFS="$ac_save_ifs"
1953fi
1954fi
1955XLEX="$ac_cv_prog_XLEX"
1956if test -n "$XLEX"; then
1957 echo "$ac_t""$XLEX" 1>&6
1958else
1959 echo "$ac_t""no" 1>&6
1960fi
1961
1962test -n "$XLEX" && break
1963done
1964test -n "$XLEX" || XLEX="none"
1965
1966if test "$XLEX" = "none"
1967then
1968 echo "*** Error: No suitable lex found. ***"
1969 echo " Please install the 'flex' package."
1970 exit 1
1971fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001972# Extract the first word of "ranlib", so it can be a program name with args.
1973set dummy ranlib; ac_word=$2
1974echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00001975echo "configure:1976: checking for $ac_word" >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001976if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1977 echo $ac_n "(cached) $ac_c" 1>&6
1978else
1979 if test -n "$RANLIB"; then
1980 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1981else
Eric Pouech18ad24a2000-01-16 22:16:33 +00001982 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1983 ac_dummy="$PATH"
1984 for ac_dir in $ac_dummy; do
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001985 test -z "$ac_dir" && ac_dir=.
1986 if test -f $ac_dir/$ac_word; then
1987 ac_cv_prog_RANLIB="ranlib"
1988 break
1989 fi
1990 done
1991 IFS="$ac_save_ifs"
1992 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001993fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001994fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001995RANLIB="$ac_cv_prog_RANLIB"
1996if test -n "$RANLIB"; then
1997 echo "$ac_t""$RANLIB" 1>&6
1998else
1999 echo "$ac_t""no" 1>&6
2000fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002001
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002002# Find a good install program. We prefer a C program (faster),
2003# so one script is as good as another. But avoid the broken or
2004# incompatible versions:
2005# SysV /etc/install, /usr/sbin/install
2006# SunOS /usr/etc/install
2007# IRIX /sbin/install
2008# AIX /bin/install
Eric Pouech18ad24a2000-01-16 22:16:33 +00002009# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002010# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2011# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2012# ./install, which can be erroneously created by make from ./install.sh.
2013echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002014echo "configure:2015: checking for a BSD compatible install" >&5
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002015if test -z "$INSTALL"; then
2016if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2017 echo $ac_n "(cached) $ac_c" 1>&6
2018else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002019 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002020 for ac_dir in $PATH; do
2021 # Account for people who put trailing slashes in PATH elements.
2022 case "$ac_dir/" in
2023 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2024 *)
2025 # OSF1 and SCO ODT 3.0 have their own names for install.
Eric Pouech18ad24a2000-01-16 22:16:33 +00002026 # Don't use installbsd from OSF since it installs stuff as root
2027 # by default.
2028 for ac_prog in ginstall scoinst install; do
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002029 if test -f $ac_dir/$ac_prog; then
2030 if test $ac_prog = install &&
2031 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2032 # AIX install. It has an incompatible calling convention.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002033 :
2034 else
2035 ac_cv_path_install="$ac_dir/$ac_prog -c"
2036 break 2
2037 fi
2038 fi
2039 done
2040 ;;
2041 esac
2042 done
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00002043 IFS="$ac_save_IFS"
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002044
2045fi
2046 if test "${ac_cv_path_install+set}" = set; then
2047 INSTALL="$ac_cv_path_install"
2048 else
2049 # As a last resort, use the slow shell script. We don't cache a
2050 # path for INSTALL within a source directory, because that will
2051 # break other packages using the cache if that directory is
2052 # removed, or if the path is relative.
2053 INSTALL="$ac_install_sh"
2054 fi
2055fi
2056echo "$ac_t""$INSTALL" 1>&6
2057
2058# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2059# It thinks the first close brace ends the variable substitution.
2060test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2061
Eric Pouech18ad24a2000-01-16 22:16:33 +00002062test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2063
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002064test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2065
Alexandre Julliard641ee761997-08-04 16:34:36 +00002066echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002067echo "configure:2068: checking whether ln -s works" >&5
Alexandre Julliard641ee761997-08-04 16:34:36 +00002068if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2069 echo $ac_n "(cached) $ac_c" 1>&6
2070else
2071 rm -f conftestdata
2072if ln -s X conftestdata 2>/dev/null
2073then
2074 rm -f conftestdata
2075 ac_cv_prog_LN_S="ln -s"
2076else
2077 ac_cv_prog_LN_S=ln
2078fi
2079fi
2080LN_S="$ac_cv_prog_LN_S"
2081if test "$ac_cv_prog_LN_S" = "ln -s"; then
2082 echo "$ac_t""yes" 1>&6
2083else
2084 echo "$ac_t""no" 1>&6
2085fi
2086
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00002087# Extract the first word of "c2man", so it can be a program name with args.
2088set dummy c2man; ac_word=$2
2089echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002090echo "configure:2091: checking for $ac_word" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00002091if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
2092 echo $ac_n "(cached) $ac_c" 1>&6
2093else
2094 if test -n "$C2MAN"; then
2095 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
2096else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2098 ac_dummy="$PATH"
2099 for ac_dir in $ac_dummy; do
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00002100 test -z "$ac_dir" && ac_dir=.
2101 if test -f $ac_dir/$ac_word; then
2102 ac_cv_prog_C2MAN="c2man"
2103 break
2104 fi
2105 done
2106 IFS="$ac_save_ifs"
Mike McCormacke0df32f2000-08-11 21:15:21 +00002107 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00002108fi
2109fi
2110C2MAN="$ac_cv_prog_C2MAN"
2111if test -n "$C2MAN"; then
2112 echo "$ac_t""$C2MAN" 1>&6
2113else
2114 echo "$ac_t""no" 1>&6
2115fi
2116
James Juranffe6b761999-06-12 08:21:57 +00002117# Extract the first word of "ldconfig", so it can be a program name with args.
2118set dummy ldconfig; ac_word=$2
2119echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002120echo "configure:2121: checking for $ac_word" >&5
James Juranffe6b761999-06-12 08:21:57 +00002121if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2123else
2124 case "$LDCONFIG" in
2125 /*)
2126 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2127 ;;
Eric Pouech18ad24a2000-01-16 22:16:33 +00002128 ?:/*)
2129 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
2130 ;;
James Juranffe6b761999-06-12 08:21:57 +00002131 *)
Eric Pouech18ad24a2000-01-16 22:16:33 +00002132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2133 ac_dummy="/sbin:/usr/sbin:$PATH"
2134 for ac_dir in $ac_dummy; do
James Juranffe6b761999-06-12 08:21:57 +00002135 test -z "$ac_dir" && ac_dir=.
2136 if test -f $ac_dir/$ac_word; then
2137 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2138 break
2139 fi
2140 done
2141 IFS="$ac_save_ifs"
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00002142 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00002143 ;;
2144esac
2145fi
2146LDCONFIG="$ac_cv_path_LDCONFIG"
2147if test -n "$LDCONFIG"; then
2148 echo "$ac_t""$LDCONFIG" 1>&6
2149else
2150 echo "$ac_t""no" 1>&6
2151fi
2152
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +00002153echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002154echo "configure:2155: checking for Cygwin environment" >&5
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +00002155if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2156 echo $ac_n "(cached) $ac_c" 1>&6
2157else
2158 cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002159#line 2160 "configure"
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +00002160#include "confdefs.h"
2161
2162int main() {
2163
2164#ifndef __CYGWIN__
2165#define __CYGWIN__ __CYGWIN32__
2166#endif
2167return __CYGWIN__;
2168; return 0; }
2169EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002170if { (eval echo configure:2171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +00002171 rm -rf conftest*
2172 ac_cv_cygwin=yes
2173else
2174 echo "configure: failed program was:" >&5
2175 cat conftest.$ac_ext >&5
2176 rm -rf conftest*
2177 ac_cv_cygwin=no
2178fi
2179rm -f conftest*
2180rm -f conftest*
2181fi
2182
2183echo "$ac_t""$ac_cv_cygwin" 1>&6
2184CYGWIN=
2185test "$ac_cv_cygwin" = yes && CYGWIN=yes
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00002186# Extract the first word of "dllwrap", so it can be a program name with args.
2187set dummy dllwrap; ac_word=$2
2188echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002189echo "configure:2190: checking for $ac_word" >&5
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00002190if eval "test \"`echo '$''{'ac_cv_prog_DLLWRAP'+set}'`\" = set"; then
2191 echo $ac_n "(cached) $ac_c" 1>&6
2192else
2193 if test -n "$DLLWRAP"; then
2194 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
2195else
2196 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2197 ac_dummy="$PATH"
2198 for ac_dir in $ac_dummy; do
2199 test -z "$ac_dir" && ac_dir=.
2200 if test -f $ac_dir/$ac_word; then
2201 ac_cv_prog_DLLWRAP="dllwrap"
2202 break
2203 fi
2204 done
2205 IFS="$ac_save_ifs"
2206 test -z "$ac_cv_prog_DLLWRAP" && ac_cv_prog_DLLWRAP="false"
2207fi
2208fi
2209DLLWRAP="$ac_cv_prog_DLLWRAP"
2210if test -n "$DLLWRAP"; then
2211 echo "$ac_t""$DLLWRAP" 1>&6
2212else
2213 echo "$ac_t""no" 1>&6
2214fi
2215
Alexandre Julliard02e90081998-01-04 17:49:09 +00002216
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00002217for ac_prog in lclint lint
2218do
2219# Extract the first word of "$ac_prog", so it can be a program name with args.
2220set dummy $ac_prog; ac_word=$2
2221echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002222echo "configure:2223: checking for $ac_word" >&5
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00002223if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2225else
2226 if test -n "$LINT"; then
2227 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2228else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2230 ac_dummy="$PATH"
2231 for ac_dir in $ac_dummy; do
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00002232 test -z "$ac_dir" && ac_dir=.
2233 if test -f $ac_dir/$ac_word; then
2234 ac_cv_prog_LINT="$ac_prog"
2235 break
2236 fi
2237 done
2238 IFS="$ac_save_ifs"
2239fi
2240fi
2241LINT="$ac_cv_prog_LINT"
2242if test -n "$LINT"; then
2243 echo "$ac_t""$LINT" 1>&6
2244else
2245 echo "$ac_t""no" 1>&6
2246fi
2247
2248test -n "$LINT" && break
2249done
2250
2251if test "$LINT" = "lint"
2252then
2253 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2254 fi
2255
2256
2257
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +00002258if test "$CYGWIN" = "yes"
2259then
2260 LDCOMBINE="ld -r --enable-stdcall-fixup"
2261else
2262 LDCOMBINE="ld -r"
2263fi
2264
2265
Alexandre Julliard02e90081998-01-04 17:49:09 +00002266
Howard Abrams13277481999-07-10 13:16:29 +00002267echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002268echo "configure:2269: checking for sqrt in -lm" >&5
Howard Abrams13277481999-07-10 13:16:29 +00002269ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2270if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2271 echo $ac_n "(cached) $ac_c" 1>&6
2272else
2273 ac_save_LIBS="$LIBS"
2274LIBS="-lm $LIBS"
2275cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002276#line 2277 "configure"
Howard Abrams13277481999-07-10 13:16:29 +00002277#include "confdefs.h"
2278/* Override any gcc2 internal prototype to avoid an error. */
2279/* We use char because int might match the return type of a gcc2
2280 builtin and then its argument prototype would still apply. */
2281char sqrt();
2282
2283int main() {
2284sqrt()
2285; return 0; }
2286EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002287if { (eval echo configure:2288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Howard Abrams13277481999-07-10 13:16:29 +00002288 rm -rf conftest*
2289 eval "ac_cv_lib_$ac_lib_var=yes"
2290else
2291 echo "configure: failed program was:" >&5
2292 cat conftest.$ac_ext >&5
2293 rm -rf conftest*
2294 eval "ac_cv_lib_$ac_lib_var=no"
2295fi
2296rm -f conftest*
2297LIBS="$ac_save_LIBS"
2298
2299fi
2300if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2301 echo "$ac_t""yes" 1>&6
2302 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2303 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2304 cat >> confdefs.h <<EOF
2305#define $ac_tr_lib 1
2306EOF
2307
2308 LIBS="-lm $LIBS"
2309
2310else
2311 echo "$ac_t""no" 1>&6
2312fi
2313
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002314echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002315echo "configure:2316: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002316ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002317if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliard902da691995-11-05 14:39:02 +00002318 echo $ac_n "(cached) $ac_c" 1>&6
2319else
2320 ac_save_LIBS="$LIBS"
2321LIBS="-li386 $LIBS"
2322cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002323#line 2324 "configure"
Alexandre Julliard902da691995-11-05 14:39:02 +00002324#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002325/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002326/* We use char because int might match the return type of a gcc2
2327 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002328char i386_set_ldt();
Alexandre Julliard902da691995-11-05 14:39:02 +00002329
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002330int main() {
Alexandre Julliard902da691995-11-05 14:39:02 +00002331i386_set_ldt()
2332; return 0; }
2333EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002334if { (eval echo configure:2335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard902da691995-11-05 14:39:02 +00002335 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002336 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliard902da691995-11-05 14:39:02 +00002337else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002338 echo "configure: failed program was:" >&5
2339 cat conftest.$ac_ext >&5
Alexandre Julliard902da691995-11-05 14:39:02 +00002340 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002341 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliard902da691995-11-05 14:39:02 +00002342fi
2343rm -f conftest*
2344LIBS="$ac_save_LIBS"
2345
2346fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002347if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliard902da691995-11-05 14:39:02 +00002348 echo "$ac_t""yes" 1>&6
Alexandre Julliard02e90081998-01-04 17:49:09 +00002349 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2350 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2351 cat >> confdefs.h <<EOF
2352#define $ac_tr_lib 1
2353EOF
2354
2355 LIBS="-li386 $LIBS"
2356
2357else
2358 echo "$ac_t""no" 1>&6
2359fi
2360
Todd Vierlingecc76691998-12-15 17:49:02 +00002361echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002362echo "configure:2363: checking for _oss_ioctl in -lossaudio" >&5
Todd Vierlingecc76691998-12-15 17:49:02 +00002363ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2364if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2365 echo $ac_n "(cached) $ac_c" 1>&6
2366else
2367 ac_save_LIBS="$LIBS"
2368LIBS="-lossaudio $LIBS"
2369cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002370#line 2371 "configure"
Todd Vierlingecc76691998-12-15 17:49:02 +00002371#include "confdefs.h"
2372/* Override any gcc2 internal prototype to avoid an error. */
2373/* We use char because int might match the return type of a gcc2
2374 builtin and then its argument prototype would still apply. */
2375char _oss_ioctl();
2376
2377int main() {
2378_oss_ioctl()
2379; return 0; }
2380EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002381if { (eval echo configure:2382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Todd Vierlingecc76691998-12-15 17:49:02 +00002382 rm -rf conftest*
2383 eval "ac_cv_lib_$ac_lib_var=yes"
2384else
2385 echo "configure: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
2387 rm -rf conftest*
2388 eval "ac_cv_lib_$ac_lib_var=no"
2389fi
2390rm -f conftest*
2391LIBS="$ac_save_LIBS"
2392
2393fi
2394if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2395 echo "$ac_t""yes" 1>&6
2396 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2397 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2398 cat >> confdefs.h <<EOF
2399#define $ac_tr_lib 1
2400EOF
2401
2402 LIBS="-lossaudio $LIBS"
2403
2404else
2405 echo "$ac_t""no" 1>&6
2406fi
2407
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002408for ac_func in iswalnum
Patrik Stridvallea584721998-11-01 16:22:07 +00002409do
2410echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002411echo "configure:2412: checking for $ac_func" >&5
Patrik Stridvallea584721998-11-01 16:22:07 +00002412if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2413 echo $ac_n "(cached) $ac_c" 1>&6
2414else
2415 cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002416#line 2417 "configure"
Patrik Stridvallea584721998-11-01 16:22:07 +00002417#include "confdefs.h"
2418/* System header to define __stub macros and hopefully few prototypes,
2419 which can conflict with char $ac_func(); below. */
2420#include <assert.h>
2421/* Override any gcc2 internal prototype to avoid an error. */
2422/* We use char because int might match the return type of a gcc2
2423 builtin and then its argument prototype would still apply. */
2424char $ac_func();
2425
2426int main() {
2427
2428/* The GNU C library defines this for functions which it implements
2429 to always fail with ENOSYS. Some functions are actually named
2430 something starting with __ and the normal name is an alias. */
2431#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2432choke me
2433#else
2434$ac_func();
2435#endif
2436
2437; return 0; }
2438EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002439if { (eval echo configure:2440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002440 rm -rf conftest*
2441 eval "ac_cv_func_$ac_func=yes"
2442else
2443 echo "configure: failed program was:" >&5
2444 cat conftest.$ac_ext >&5
2445 rm -rf conftest*
2446 eval "ac_cv_func_$ac_func=no"
2447fi
2448rm -f conftest*
2449fi
2450
2451if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2452 echo "$ac_t""yes" 1>&6
2453 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2454 cat >> confdefs.h <<EOF
2455#define $ac_tr_func 1
2456EOF
2457
2458else
2459 echo "$ac_t""no" 1>&6
2460echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002461echo "configure:2462: checking for iswalnum in -lw" >&5
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002462ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2463if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2464 echo $ac_n "(cached) $ac_c" 1>&6
2465else
2466 ac_save_LIBS="$LIBS"
2467LIBS="-lw $LIBS"
2468cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002469#line 2470 "configure"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002470#include "confdefs.h"
2471/* Override any gcc2 internal prototype to avoid an error. */
2472/* We use char because int might match the return type of a gcc2
2473 builtin and then its argument prototype would still apply. */
2474char iswalnum();
2475
2476int main() {
2477iswalnum()
2478; return 0; }
2479EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002480if { (eval echo configure:2481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002481 rm -rf conftest*
2482 eval "ac_cv_lib_$ac_lib_var=yes"
2483else
2484 echo "configure: failed program was:" >&5
2485 cat conftest.$ac_ext >&5
2486 rm -rf conftest*
2487 eval "ac_cv_lib_$ac_lib_var=no"
2488fi
2489rm -f conftest*
2490LIBS="$ac_save_LIBS"
2491
2492fi
2493if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2494 echo "$ac_t""yes" 1>&6
2495 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
2496 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2497 cat >> confdefs.h <<EOF
2498#define $ac_tr_lib 1
2499EOF
2500
2501 LIBS="-lw $LIBS"
2502
2503else
2504 echo "$ac_t""no" 1>&6
2505fi
2506
2507fi
2508done
2509
2510for ac_func in gethostbyname
2511do
2512echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002513echo "configure:2514: checking for $ac_func" >&5
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002514if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2515 echo $ac_n "(cached) $ac_c" 1>&6
2516else
2517 cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002518#line 2519 "configure"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002519#include "confdefs.h"
2520/* System header to define __stub macros and hopefully few prototypes,
2521 which can conflict with char $ac_func(); below. */
2522#include <assert.h>
2523/* Override any gcc2 internal prototype to avoid an error. */
2524/* We use char because int might match the return type of a gcc2
2525 builtin and then its argument prototype would still apply. */
2526char $ac_func();
2527
2528int main() {
2529
2530/* The GNU C library defines this for functions which it implements
2531 to always fail with ENOSYS. Some functions are actually named
2532 something starting with __ and the normal name is an alias. */
2533#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2534choke me
2535#else
2536$ac_func();
2537#endif
2538
2539; return 0; }
2540EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002541if { (eval echo configure:2542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvallea584721998-11-01 16:22:07 +00002542 rm -rf conftest*
2543 eval "ac_cv_func_$ac_func=yes"
2544else
2545 echo "configure: failed program was:" >&5
2546 cat conftest.$ac_ext >&5
2547 rm -rf conftest*
2548 eval "ac_cv_func_$ac_func=no"
2549fi
2550rm -f conftest*
2551fi
2552
2553if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2554 echo "$ac_t""yes" 1>&6
2555 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2556 cat >> confdefs.h <<EOF
2557#define $ac_tr_func 1
2558EOF
2559
2560else
2561 echo "$ac_t""no" 1>&6
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002562echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002563echo "configure:2564: checking for gethostbyname in -lnsl" >&5
Patrik Stridvallea584721998-11-01 16:22:07 +00002564ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2565if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2566 echo $ac_n "(cached) $ac_c" 1>&6
2567else
2568 ac_save_LIBS="$LIBS"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002569LIBS="-lnsl $LIBS"
Patrik Stridvallea584721998-11-01 16:22:07 +00002570cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002571#line 2572 "configure"
Patrik Stridvallea584721998-11-01 16:22:07 +00002572#include "confdefs.h"
2573/* Override any gcc2 internal prototype to avoid an error. */
2574/* We use char because int might match the return type of a gcc2
2575 builtin and then its argument prototype would still apply. */
2576char gethostbyname();
2577
2578int main() {
2579gethostbyname()
2580; return 0; }
2581EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002582if { (eval echo configure:2583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvallea584721998-11-01 16:22:07 +00002583 rm -rf conftest*
2584 eval "ac_cv_lib_$ac_lib_var=yes"
2585else
2586 echo "configure: failed program was:" >&5
2587 cat conftest.$ac_ext >&5
2588 rm -rf conftest*
2589 eval "ac_cv_lib_$ac_lib_var=no"
2590fi
2591rm -f conftest*
2592LIBS="$ac_save_LIBS"
2593
2594fi
2595if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2596 echo "$ac_t""yes" 1>&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002597 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2598 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2599 cat >> confdefs.h <<EOF
2600#define $ac_tr_lib 1
Ron Recorde977d6c1999-09-05 12:32:05 +00002601EOF
Ron Recorde977d6c1999-09-05 12:32:05 +00002602
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002603 LIBS="-lnsl $LIBS"
2604
Ron Recorde977d6c1999-09-05 12:32:05 +00002605else
2606 echo "$ac_t""no" 1>&6
2607fi
2608
Patrik Stridvallea584721998-11-01 16:22:07 +00002609fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002610done
2611
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002612for ac_func in connect
2613do
2614echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002615echo "configure:2616: checking for $ac_func" >&5
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002616if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2617 echo $ac_n "(cached) $ac_c" 1>&6
2618else
2619 cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002620#line 2621 "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002621#include "confdefs.h"
2622/* System header to define __stub macros and hopefully few prototypes,
2623 which can conflict with char $ac_func(); below. */
2624#include <assert.h>
2625/* Override any gcc2 internal prototype to avoid an error. */
2626/* We use char because int might match the return type of a gcc2
2627 builtin and then its argument prototype would still apply. */
2628char $ac_func();
2629
2630int main() {
2631
2632/* The GNU C library defines this for functions which it implements
2633 to always fail with ENOSYS. Some functions are actually named
2634 something starting with __ and the normal name is an alias. */
2635#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2636choke me
2637#else
2638$ac_func();
2639#endif
2640
2641; return 0; }
2642EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002643if { (eval echo configure:2644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002644 rm -rf conftest*
2645 eval "ac_cv_func_$ac_func=yes"
2646else
2647 echo "configure: failed program was:" >&5
2648 cat conftest.$ac_ext >&5
2649 rm -rf conftest*
2650 eval "ac_cv_func_$ac_func=no"
2651fi
2652rm -f conftest*
2653fi
2654
2655if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2656 echo "$ac_t""yes" 1>&6
2657 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2658 cat >> confdefs.h <<EOF
2659#define $ac_tr_func 1
2660EOF
2661
2662else
2663 echo "$ac_t""no" 1>&6
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002664echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002665echo "configure:2666: checking for connect in -lsocket" >&5
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002666ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2667if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2668 echo $ac_n "(cached) $ac_c" 1>&6
2669else
2670 ac_save_LIBS="$LIBS"
2671LIBS="-lsocket $LIBS"
2672cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002673#line 2674 "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002674#include "confdefs.h"
2675/* Override any gcc2 internal prototype to avoid an error. */
2676/* We use char because int might match the return type of a gcc2
2677 builtin and then its argument prototype would still apply. */
2678char connect();
2679
2680int main() {
2681connect()
2682; return 0; }
2683EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002684if { (eval echo configure:2685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002685 rm -rf conftest*
2686 eval "ac_cv_lib_$ac_lib_var=yes"
2687else
2688 echo "configure: failed program was:" >&5
2689 cat conftest.$ac_ext >&5
2690 rm -rf conftest*
2691 eval "ac_cv_lib_$ac_lib_var=no"
2692fi
2693rm -f conftest*
2694LIBS="$ac_save_LIBS"
2695
2696fi
2697if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2698 echo "$ac_t""yes" 1>&6
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002699 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002700 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2701 cat >> confdefs.h <<EOF
2702#define $ac_tr_lib 1
2703EOF
2704
2705 LIBS="-lsocket $LIBS"
2706
2707else
2708 echo "$ac_t""no" 1>&6
2709fi
2710
2711fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002712done
2713
Satsuki Fujishima66fb6072001-03-19 19:19:59 +00002714echo $ac_n "checking for _xpg4_setrunelocale in -lxpg4""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002715echo "configure:2716: checking for _xpg4_setrunelocale in -lxpg4" >&5
Satsuki Fujishima66fb6072001-03-19 19:19:59 +00002716ac_lib_var=`echo xpg4'_'_xpg4_setrunelocale | sed 'y%./+-%__p_%'`
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00002717if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2718 echo $ac_n "(cached) $ac_c" 1>&6
2719else
2720 ac_save_LIBS="$LIBS"
2721LIBS="-lxpg4 $LIBS"
2722cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002723#line 2724 "configure"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00002724#include "confdefs.h"
2725/* Override any gcc2 internal prototype to avoid an error. */
2726/* We use char because int might match the return type of a gcc2
2727 builtin and then its argument prototype would still apply. */
Satsuki Fujishima66fb6072001-03-19 19:19:59 +00002728char _xpg4_setrunelocale();
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00002729
2730int main() {
Satsuki Fujishima66fb6072001-03-19 19:19:59 +00002731_xpg4_setrunelocale()
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00002732; return 0; }
2733EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002734if { (eval echo configure:2735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00002735 rm -rf conftest*
2736 eval "ac_cv_lib_$ac_lib_var=yes"
2737else
2738 echo "configure: failed program was:" >&5
2739 cat conftest.$ac_ext >&5
2740 rm -rf conftest*
2741 eval "ac_cv_lib_$ac_lib_var=no"
2742fi
2743rm -f conftest*
2744LIBS="$ac_save_LIBS"
2745
2746fi
2747if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2748 echo "$ac_t""yes" 1>&6
2749 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2750 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2751 cat >> confdefs.h <<EOF
2752#define $ac_tr_lib 1
2753EOF
2754
2755 LIBS="-lxpg4 $LIBS"
2756
2757else
2758 echo "$ac_t""no" 1>&6
2759fi
2760
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00002761echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002762echo "configure:2763: checking for mmap in -lmmap" >&5
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00002763ac_lib_var=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2764if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2765 echo $ac_n "(cached) $ac_c" 1>&6
2766else
2767 ac_save_LIBS="$LIBS"
2768LIBS="-lmmap $LIBS"
2769cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002770#line 2771 "configure"
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00002771#include "confdefs.h"
2772/* Override any gcc2 internal prototype to avoid an error. */
2773/* We use char because int might match the return type of a gcc2
2774 builtin and then its argument prototype would still apply. */
2775char mmap();
2776
2777int main() {
2778mmap()
2779; return 0; }
2780EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002781if { (eval echo configure:2782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00002782 rm -rf conftest*
2783 eval "ac_cv_lib_$ac_lib_var=yes"
2784else
2785 echo "configure: failed program was:" >&5
2786 cat conftest.$ac_ext >&5
2787 rm -rf conftest*
2788 eval "ac_cv_lib_$ac_lib_var=no"
2789fi
2790rm -f conftest*
2791LIBS="$ac_save_LIBS"
2792
2793fi
2794if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2795 echo "$ac_t""yes" 1>&6
2796 ac_tr_lib=HAVE_LIB`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2797 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2798 cat >> confdefs.h <<EOF
2799#define $ac_tr_lib 1
2800EOF
2801
2802 LIBS="-lmmap $LIBS"
2803
2804else
2805 echo "$ac_t""no" 1>&6
2806fi
2807
Alexandre Julliard3f510ad2002-01-01 01:13:03 +00002808
2809UTILLIBS=""
2810
Marcus Meissner2d7be871999-12-05 23:06:40 +00002811for ac_func in openpty
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002812do
2813echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002814echo "configure:2815: checking for $ac_func" >&5
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002815if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2816 echo $ac_n "(cached) $ac_c" 1>&6
2817else
2818 cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002819#line 2820 "configure"
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002820#include "confdefs.h"
2821/* System header to define __stub macros and hopefully few prototypes,
2822 which can conflict with char $ac_func(); below. */
2823#include <assert.h>
2824/* Override any gcc2 internal prototype to avoid an error. */
2825/* We use char because int might match the return type of a gcc2
2826 builtin and then its argument prototype would still apply. */
2827char $ac_func();
2828
2829int main() {
2830
2831/* The GNU C library defines this for functions which it implements
2832 to always fail with ENOSYS. Some functions are actually named
2833 something starting with __ and the normal name is an alias. */
2834#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2835choke me
2836#else
2837$ac_func();
2838#endif
2839
2840; return 0; }
2841EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002842if { (eval echo configure:2843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissner2d7be871999-12-05 23:06:40 +00002843 rm -rf conftest*
2844 eval "ac_cv_func_$ac_func=yes"
2845else
2846 echo "configure: failed program was:" >&5
2847 cat conftest.$ac_ext >&5
2848 rm -rf conftest*
2849 eval "ac_cv_func_$ac_func=no"
2850fi
2851rm -f conftest*
2852fi
2853
2854if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2855 echo "$ac_t""yes" 1>&6
2856 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2857 cat >> confdefs.h <<EOF
2858#define $ac_tr_func 1
2859EOF
2860
2861else
2862 echo "$ac_t""no" 1>&6
2863echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002864echo "configure:2865: checking for openpty in -lutil" >&5
Marcus Meissner2d7be871999-12-05 23:06:40 +00002865ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2866if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2867 echo $ac_n "(cached) $ac_c" 1>&6
2868else
2869 ac_save_LIBS="$LIBS"
2870LIBS="-lutil $LIBS"
2871cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002872#line 2873 "configure"
Marcus Meissner2d7be871999-12-05 23:06:40 +00002873#include "confdefs.h"
2874/* Override any gcc2 internal prototype to avoid an error. */
2875/* We use char because int might match the return type of a gcc2
2876 builtin and then its argument prototype would still apply. */
2877char openpty();
2878
2879int main() {
2880openpty()
2881; return 0; }
2882EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002883if { (eval echo configure:2884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissner2d7be871999-12-05 23:06:40 +00002884 rm -rf conftest*
2885 eval "ac_cv_lib_$ac_lib_var=yes"
2886else
2887 echo "configure: failed program was:" >&5
2888 cat conftest.$ac_ext >&5
2889 rm -rf conftest*
2890 eval "ac_cv_lib_$ac_lib_var=no"
2891fi
2892rm -f conftest*
2893LIBS="$ac_save_LIBS"
2894
2895fi
2896if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2897 echo "$ac_t""yes" 1>&6
2898 cat >> confdefs.h <<\EOF
2899#define HAVE_OPENPTY 1
2900EOF
2901
Alexandre Julliard3f510ad2002-01-01 01:13:03 +00002902 UTILLIBS="-lutil"
Marcus Meissner2d7be871999-12-05 23:06:40 +00002903
2904else
2905 echo "$ac_t""no" 1>&6
2906fi
2907
2908fi
2909done
2910
2911
Alexandre Julliard562089b2001-12-31 22:28:35 +00002912DLLIBS=""
2913
Marcus Meissner2d7be871999-12-05 23:06:40 +00002914for ac_hdr in dlfcn.h
2915do
2916ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2917echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002918echo "configure:2919: checking for $ac_hdr" >&5
Marcus Meissner2d7be871999-12-05 23:06:40 +00002919if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2920 echo $ac_n "(cached) $ac_c" 1>&6
2921else
2922 cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002923#line 2924 "configure"
Marcus Meissner2d7be871999-12-05 23:06:40 +00002924#include "confdefs.h"
2925#include <$ac_hdr>
2926EOF
2927ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002928{ (eval echo configure:2929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00002929ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Marcus Meissner2d7be871999-12-05 23:06:40 +00002930if test -z "$ac_err"; then
2931 rm -rf conftest*
2932 eval "ac_cv_header_$ac_safe=yes"
2933else
2934 echo "$ac_err" >&5
2935 echo "configure: failed program was:" >&5
2936 cat conftest.$ac_ext >&5
2937 rm -rf conftest*
2938 eval "ac_cv_header_$ac_safe=no"
2939fi
2940rm -f conftest*
2941fi
2942if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2943 echo "$ac_t""yes" 1>&6
2944 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2945 cat >> confdefs.h <<EOF
2946#define $ac_tr_hdr 1
2947EOF
2948 for ac_func in dlopen
2949do
2950echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002951echo "configure:2952: checking for $ac_func" >&5
Marcus Meissner2d7be871999-12-05 23:06:40 +00002952if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2953 echo $ac_n "(cached) $ac_c" 1>&6
2954else
2955 cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002956#line 2957 "configure"
Marcus Meissner2d7be871999-12-05 23:06:40 +00002957#include "confdefs.h"
2958/* System header to define __stub macros and hopefully few prototypes,
2959 which can conflict with char $ac_func(); below. */
2960#include <assert.h>
2961/* Override any gcc2 internal prototype to avoid an error. */
2962/* We use char because int might match the return type of a gcc2
2963 builtin and then its argument prototype would still apply. */
2964char $ac_func();
2965
2966int main() {
2967
2968/* The GNU C library defines this for functions which it implements
2969 to always fail with ENOSYS. Some functions are actually named
2970 something starting with __ and the normal name is an alias. */
2971#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2972choke me
2973#else
2974$ac_func();
2975#endif
2976
2977; return 0; }
2978EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00002979if { (eval echo configure:2980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002980 rm -rf conftest*
2981 eval "ac_cv_func_$ac_func=yes"
2982else
2983 echo "configure: failed program was:" >&5
2984 cat conftest.$ac_ext >&5
2985 rm -rf conftest*
2986 eval "ac_cv_func_$ac_func=no"
2987fi
2988rm -f conftest*
2989fi
2990
2991if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2992 echo "$ac_t""yes" 1>&6
2993 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2994 cat >> confdefs.h <<EOF
2995#define $ac_tr_func 1
2996EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002997
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002998else
2999 echo "$ac_t""no" 1>&6
Marcus Meissner8220bc91998-10-11 11:10:27 +00003000echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003001echo "configure:3002: checking for dlopen in -ldl" >&5
Marcus Meissner8220bc91998-10-11 11:10:27 +00003002ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3003if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3004 echo $ac_n "(cached) $ac_c" 1>&6
3005else
3006 ac_save_LIBS="$LIBS"
3007LIBS="-ldl $LIBS"
3008cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003009#line 3010 "configure"
Marcus Meissner8220bc91998-10-11 11:10:27 +00003010#include "confdefs.h"
3011/* Override any gcc2 internal prototype to avoid an error. */
3012/* We use char because int might match the return type of a gcc2
3013 builtin and then its argument prototype would still apply. */
3014char dlopen();
3015
3016int main() {
3017dlopen()
3018; return 0; }
3019EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003020if { (eval echo configure:3021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissner8220bc91998-10-11 11:10:27 +00003021 rm -rf conftest*
3022 eval "ac_cv_lib_$ac_lib_var=yes"
3023else
3024 echo "configure: failed program was:" >&5
3025 cat conftest.$ac_ext >&5
3026 rm -rf conftest*
3027 eval "ac_cv_lib_$ac_lib_var=no"
3028fi
3029rm -f conftest*
3030LIBS="$ac_save_LIBS"
3031
3032fi
3033if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3034 echo "$ac_t""yes" 1>&6
Marcus Meissnerf070fda1999-04-24 12:02:14 +00003035 cat >> confdefs.h <<\EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00003036#define HAVE_DLOPEN 1
Marcus Meissner8220bc91998-10-11 11:10:27 +00003037EOF
3038
Alexandre Julliard562089b2001-12-31 22:28:35 +00003039 DLLIBS="-ldl"
Marcus Meissnerf070fda1999-04-24 12:02:14 +00003040else
3041 echo "$ac_t""no" 1>&6
Alexandre Julliarde1e75372000-04-24 17:17:49 +00003042LIBEXT="a"
Marcus Meissnerf070fda1999-04-24 12:02:14 +00003043fi
3044
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00003045
Marcus Meissnerf070fda1999-04-24 12:02:14 +00003046fi
3047done
3048
Marcus Meissner8220bc91998-10-11 11:10:27 +00003049else
3050 echo "$ac_t""no" 1>&6
Alexandre Julliarde1e75372000-04-24 17:17:49 +00003051LIBEXT="a"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00003052
Marcus Meissner8220bc91998-10-11 11:10:27 +00003053fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00003054done
Marcus Meissner8220bc91998-10-11 11:10:27 +00003055
Patrik Stridvallea584721998-11-01 16:22:07 +00003056
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003057JPEGLIB=""
3058
3059for ac_hdr in jpeglib.h
3060do
3061ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3062echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003063echo "configure:3064: checking for $ac_hdr" >&5
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003064if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3065 echo $ac_n "(cached) $ac_c" 1>&6
3066else
3067 cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003068#line 3069 "configure"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003069#include "confdefs.h"
3070#include <$ac_hdr>
3071EOF
3072ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003073{ (eval echo configure:3074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003074ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3075if test -z "$ac_err"; then
3076 rm -rf conftest*
3077 eval "ac_cv_header_$ac_safe=yes"
3078else
3079 echo "$ac_err" >&5
3080 echo "configure: failed program was:" >&5
3081 cat conftest.$ac_ext >&5
3082 rm -rf conftest*
3083 eval "ac_cv_header_$ac_safe=no"
3084fi
3085rm -f conftest*
3086fi
3087if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3088 echo "$ac_t""yes" 1>&6
3089 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3090 cat >> confdefs.h <<EOF
3091#define $ac_tr_hdr 1
3092EOF
3093 echo $ac_n "checking for jpeg_start_decompress in -ljpeg""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003094echo "configure:3095: checking for jpeg_start_decompress in -ljpeg" >&5
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003095ac_lib_var=`echo jpeg'_'jpeg_start_decompress | sed 'y%./+-%__p_%'`
3096if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3097 echo $ac_n "(cached) $ac_c" 1>&6
3098else
3099 ac_save_LIBS="$LIBS"
3100LIBS="-ljpeg $LIBS"
3101cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003102#line 3103 "configure"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003103#include "confdefs.h"
3104/* Override any gcc2 internal prototype to avoid an error. */
3105/* We use char because int might match the return type of a gcc2
3106 builtin and then its argument prototype would still apply. */
3107char jpeg_start_decompress();
3108
3109int main() {
3110jpeg_start_decompress()
3111; return 0; }
3112EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003113if { (eval echo configure:3114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003114 rm -rf conftest*
3115 eval "ac_cv_lib_$ac_lib_var=yes"
3116else
3117 echo "configure: failed program was:" >&5
3118 cat conftest.$ac_ext >&5
3119 rm -rf conftest*
3120 eval "ac_cv_lib_$ac_lib_var=no"
3121fi
3122rm -f conftest*
3123LIBS="$ac_save_LIBS"
3124
3125fi
3126if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3127 echo "$ac_t""yes" 1>&6
3128 cat >> confdefs.h <<\EOF
3129#define HAVE_LIBJPEG 1
3130EOF
3131
3132 JPEGLIB="-ljpeg"
3133
3134else
3135 echo "$ac_t""no" 1>&6
3136fi
3137
3138
3139else
3140 echo "$ac_t""no" 1>&6
3141fi
3142done
3143
3144
3145
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003146
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00003147
Patrik Stridvall2941a212000-04-25 20:34:22 +00003148XFILES=""
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003149
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003150OPENGLFILES=""
3151
Marcus Meissnerb63ab442001-06-08 19:02:57 +00003152GLU32FILES=""
Patrik Stridvallea584721998-11-01 16:22:07 +00003153if test "$have_x" = "yes"
3154then
Patrik Stridvall24110281999-02-04 10:09:54 +00003155 XLIB="-lXext -lX11"
Ove Kaaven1eb593c1999-02-14 09:34:46 +00003156 ac_save_CPPFLAGS="$CPPFLAGS"
3157 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Patrik Stridvallea584721998-11-01 16:22:07 +00003158
Alexandre Julliard18e4b5e2002-01-04 18:52:40 +00003159 for ac_hdr in X11/Xlib.h
Lionel Ulmera1d6d241999-01-30 15:54:43 +00003160do
3161ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3162echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003163echo "configure:3164: checking for $ac_hdr" >&5
Lionel Ulmera1d6d241999-01-30 15:54:43 +00003164if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3165 echo $ac_n "(cached) $ac_c" 1>&6
3166else
3167 cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003168#line 3169 "configure"
Lionel Ulmera1d6d241999-01-30 15:54:43 +00003169#include "confdefs.h"
3170#include <$ac_hdr>
3171EOF
3172ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003173{ (eval echo configure:3174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003174ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Lionel Ulmera1d6d241999-01-30 15:54:43 +00003175if test -z "$ac_err"; then
3176 rm -rf conftest*
3177 eval "ac_cv_header_$ac_safe=yes"
3178else
3179 echo "$ac_err" >&5
3180 echo "configure: failed program was:" >&5
3181 cat conftest.$ac_ext >&5
3182 rm -rf conftest*
3183 eval "ac_cv_header_$ac_safe=no"
3184fi
3185rm -f conftest*
3186fi
3187if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3188 echo "$ac_t""yes" 1>&6
3189 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3190 cat >> confdefs.h <<EOF
3191#define $ac_tr_hdr 1
3192EOF
Patrik Stridvall24110281999-02-04 10:09:54 +00003193
Ove Kaavenc90fb252001-01-02 22:39:14 +00003194 for ac_hdr in X11/XKBlib.h
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003195do
3196ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3197echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003198echo "configure:3199: checking for $ac_hdr" >&5
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003199if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3200 echo $ac_n "(cached) $ac_c" 1>&6
Patrik Stridvall24110281999-02-04 10:09:54 +00003201else
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003202 cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003203#line 3204 "configure"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003204#include "confdefs.h"
3205#include <$ac_hdr>
3206EOF
3207ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003208{ (eval echo configure:3209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003209ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3210if test -z "$ac_err"; then
3211 rm -rf conftest*
3212 eval "ac_cv_header_$ac_safe=yes"
3213else
3214 echo "$ac_err" >&5
3215 echo "configure: failed program was:" >&5
3216 cat conftest.$ac_ext >&5
3217 rm -rf conftest*
3218 eval "ac_cv_header_$ac_safe=no"
Patrik Stridvall24110281999-02-04 10:09:54 +00003219fi
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003220rm -f conftest*
3221fi
3222if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3223 echo "$ac_t""yes" 1>&6
3224 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3225 cat >> confdefs.h <<EOF
3226#define $ac_tr_hdr 1
3227EOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00003228 echo $ac_n "checking for XkbQueryExtension in -lX11""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003229echo "configure:3230: checking for XkbQueryExtension in -lX11" >&5
Ove Kaavenc90fb252001-01-02 22:39:14 +00003230ac_lib_var=`echo X11'_'XkbQueryExtension | sed 'y%./+-%__p_%'`
Patrik Stridvall24110281999-02-04 10:09:54 +00003231if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3232 echo $ac_n "(cached) $ac_c" 1>&6
3233else
3234 ac_save_LIBS="$LIBS"
Ove Kaavenc90fb252001-01-02 22:39:14 +00003235LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Patrik Stridvall24110281999-02-04 10:09:54 +00003236cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003237#line 3238 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003238#include "confdefs.h"
3239/* Override any gcc2 internal prototype to avoid an error. */
3240/* We use char because int might match the return type of a gcc2
3241 builtin and then its argument prototype would still apply. */
Ove Kaavenc90fb252001-01-02 22:39:14 +00003242char XkbQueryExtension();
Patrik Stridvall24110281999-02-04 10:09:54 +00003243
3244int main() {
Ove Kaavenc90fb252001-01-02 22:39:14 +00003245XkbQueryExtension()
Patrik Stridvall24110281999-02-04 10:09:54 +00003246; return 0; }
3247EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003248if { (eval echo configure:3249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall24110281999-02-04 10:09:54 +00003249 rm -rf conftest*
3250 eval "ac_cv_lib_$ac_lib_var=yes"
3251else
3252 echo "configure: failed program was:" >&5
3253 cat conftest.$ac_ext >&5
3254 rm -rf conftest*
3255 eval "ac_cv_lib_$ac_lib_var=no"
3256fi
3257rm -f conftest*
3258LIBS="$ac_save_LIBS"
3259
3260fi
3261if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3262 echo "$ac_t""yes" 1>&6
3263 cat >> confdefs.h <<\EOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00003264#define HAVE_XKB 1
Patrik Stridvall24110281999-02-04 10:09:54 +00003265EOF
3266
3267else
3268 echo "$ac_t""no" 1>&6
3269fi
3270
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003271
3272else
3273 echo "$ac_t""no" 1>&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00003274echo "configure: warning: XKB extension not found!!" 1>&2
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003275
3276fi
3277done
3278
3279
Ove Kaavenc90fb252001-01-02 22:39:14 +00003280 for ac_hdr in X11/extensions/XShm.h
Patrik Stridvall24110281999-02-04 10:09:54 +00003281do
3282ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3283echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003284echo "configure:3285: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003285if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3286 echo $ac_n "(cached) $ac_c" 1>&6
3287else
3288 cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003289#line 3290 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003290#include "confdefs.h"
3291#include <$ac_hdr>
3292EOF
3293ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003294{ (eval echo configure:3295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003295ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00003296if test -z "$ac_err"; then
3297 rm -rf conftest*
3298 eval "ac_cv_header_$ac_safe=yes"
3299else
3300 echo "$ac_err" >&5
3301 echo "configure: failed program was:" >&5
3302 cat conftest.$ac_ext >&5
3303 rm -rf conftest*
3304 eval "ac_cv_header_$ac_safe=no"
3305fi
3306rm -f conftest*
3307fi
3308if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3309 echo "$ac_t""yes" 1>&6
3310 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3311 cat >> confdefs.h <<EOF
3312#define $ac_tr_hdr 1
3313EOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00003314 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003315echo "configure:3316: checking for XShmQueryExtension in -lXext" >&5
Ove Kaavenc90fb252001-01-02 22:39:14 +00003316ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
Francois Jacques5b6879c2000-07-28 23:04:54 +00003317if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3318 echo $ac_n "(cached) $ac_c" 1>&6
3319else
3320 ac_save_LIBS="$LIBS"
3321LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3322cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003323#line 3324 "configure"
Francois Jacques5b6879c2000-07-28 23:04:54 +00003324#include "confdefs.h"
3325/* Override any gcc2 internal prototype to avoid an error. */
3326/* We use char because int might match the return type of a gcc2
3327 builtin and then its argument prototype would still apply. */
Ove Kaavenc90fb252001-01-02 22:39:14 +00003328char XShmQueryExtension();
Francois Jacques5b6879c2000-07-28 23:04:54 +00003329
3330int main() {
Ove Kaavenc90fb252001-01-02 22:39:14 +00003331XShmQueryExtension()
Francois Jacques5b6879c2000-07-28 23:04:54 +00003332; return 0; }
3333EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003334if { (eval echo configure:3335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Francois Jacques5b6879c2000-07-28 23:04:54 +00003335 rm -rf conftest*
3336 eval "ac_cv_lib_$ac_lib_var=yes"
3337else
3338 echo "configure: failed program was:" >&5
3339 cat conftest.$ac_ext >&5
3340 rm -rf conftest*
3341 eval "ac_cv_lib_$ac_lib_var=no"
3342fi
3343rm -f conftest*
3344LIBS="$ac_save_LIBS"
3345
3346fi
3347if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3348 echo "$ac_t""yes" 1>&6
3349 cat >> confdefs.h <<\EOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00003350#define HAVE_LIBXXSHM 1
Francois Jacques5b6879c2000-07-28 23:04:54 +00003351EOF
3352
3353else
3354 echo "$ac_t""no" 1>&6
3355fi
3356
Ove Kaavenc90fb252001-01-02 22:39:14 +00003357
Francois Jacques5b6879c2000-07-28 23:04:54 +00003358else
3359 echo "$ac_t""no" 1>&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00003360echo "configure: warning: Xshm extension not found!!" 1>&2
3361
Francois Jacques5b6879c2000-07-28 23:04:54 +00003362fi
3363done
3364
Ove Kaavenc90fb252001-01-02 22:39:14 +00003365
3366 for ac_hdr in X11/extensions/shape.h
Francois Jacques5b6879c2000-07-28 23:04:54 +00003367do
3368ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3369echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003370echo "configure:3371: checking for $ac_hdr" >&5
Francois Jacques5b6879c2000-07-28 23:04:54 +00003371if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3372 echo $ac_n "(cached) $ac_c" 1>&6
3373else
3374 cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003375#line 3376 "configure"
Francois Jacques5b6879c2000-07-28 23:04:54 +00003376#include "confdefs.h"
3377#include <$ac_hdr>
3378EOF
3379ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003380{ (eval echo configure:3381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Francois Jacques5b6879c2000-07-28 23:04:54 +00003381ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3382if test -z "$ac_err"; then
3383 rm -rf conftest*
3384 eval "ac_cv_header_$ac_safe=yes"
3385else
3386 echo "$ac_err" >&5
3387 echo "configure: failed program was:" >&5
3388 cat conftest.$ac_ext >&5
3389 rm -rf conftest*
3390 eval "ac_cv_header_$ac_safe=no"
3391fi
3392rm -f conftest*
3393fi
3394if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3395 echo "$ac_t""yes" 1>&6
3396 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3397 cat >> confdefs.h <<EOF
3398#define $ac_tr_hdr 1
3399EOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00003400 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003401echo "configure:3402: checking for XShapeQueryExtension in -lXext" >&5
Ove Kaavenc90fb252001-01-02 22:39:14 +00003402ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
3403if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3404 echo $ac_n "(cached) $ac_c" 1>&6
3405else
3406 ac_save_LIBS="$LIBS"
3407LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3408cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003409#line 3410 "configure"
Ove Kaavenc90fb252001-01-02 22:39:14 +00003410#include "confdefs.h"
3411/* Override any gcc2 internal prototype to avoid an error. */
3412/* We use char because int might match the return type of a gcc2
3413 builtin and then its argument prototype would still apply. */
3414char XShapeQueryExtension();
3415
3416int main() {
3417XShapeQueryExtension()
3418; return 0; }
3419EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003420if { (eval echo configure:3421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ove Kaavenc90fb252001-01-02 22:39:14 +00003421 rm -rf conftest*
3422 eval "ac_cv_lib_$ac_lib_var=yes"
3423else
3424 echo "configure: failed program was:" >&5
3425 cat conftest.$ac_ext >&5
3426 rm -rf conftest*
3427 eval "ac_cv_lib_$ac_lib_var=no"
3428fi
3429rm -f conftest*
3430LIBS="$ac_save_LIBS"
3431
3432fi
3433if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3434 echo "$ac_t""yes" 1>&6
3435 cat >> confdefs.h <<\EOF
3436#define HAVE_LIBXSHAPE 1
3437EOF
3438
3439else
3440 echo "$ac_t""no" 1>&6
3441fi
3442
3443
3444else
3445 echo "$ac_t""no" 1>&6
3446echo "configure: warning: XShape extension not found!!" 1>&2
3447
3448fi
3449done
3450
3451
3452 for ac_hdr in X11/extensions/xf86dga.h
3453do
3454ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3455echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003456echo "configure:3457: checking for $ac_hdr" >&5
Ove Kaavenc90fb252001-01-02 22:39:14 +00003457if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3458 echo $ac_n "(cached) $ac_c" 1>&6
3459else
3460 cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003461#line 3462 "configure"
Ove Kaavenc90fb252001-01-02 22:39:14 +00003462#include "confdefs.h"
3463#include <$ac_hdr>
3464EOF
3465ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003466{ (eval echo configure:3467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Ove Kaavenc90fb252001-01-02 22:39:14 +00003467ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3468if test -z "$ac_err"; then
3469 rm -rf conftest*
3470 eval "ac_cv_header_$ac_safe=yes"
3471else
3472 echo "$ac_err" >&5
3473 echo "configure: failed program was:" >&5
3474 cat conftest.$ac_ext >&5
3475 rm -rf conftest*
3476 eval "ac_cv_header_$ac_safe=no"
3477fi
3478rm -f conftest*
3479fi
3480if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3481 echo "$ac_t""yes" 1>&6
3482 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3483 cat >> confdefs.h <<EOF
3484#define $ac_tr_hdr 1
3485EOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003486 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003487echo "configure:3488: checking for XDGAQueryExtension in -lXxf86dga" >&5
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003488ac_lib_var=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
Patrik Stridvall24110281999-02-04 10:09:54 +00003489if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3490 echo $ac_n "(cached) $ac_c" 1>&6
3491else
3492 ac_save_LIBS="$LIBS"
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003493LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003494 $LIBS"
Patrik Stridvall24110281999-02-04 10:09:54 +00003495cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003496#line 3497 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003497#include "confdefs.h"
3498/* Override any gcc2 internal prototype to avoid an error. */
3499/* We use char because int might match the return type of a gcc2
3500 builtin and then its argument prototype would still apply. */
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003501char XDGAQueryExtension();
3502
3503int main() {
3504XDGAQueryExtension()
3505; return 0; }
3506EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003507if { (eval echo configure:3508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003508 rm -rf conftest*
3509 eval "ac_cv_lib_$ac_lib_var=yes"
3510else
3511 echo "configure: failed program was:" >&5
3512 cat conftest.$ac_ext >&5
3513 rm -rf conftest*
3514 eval "ac_cv_lib_$ac_lib_var=no"
3515fi
3516rm -f conftest*
3517LIBS="$ac_save_LIBS"
3518
3519fi
3520if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3521 echo "$ac_t""yes" 1>&6
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003522 cat >> confdefs.h <<\EOF
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003523#define HAVE_LIBXXF86DGA2 1
3524EOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003525
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003526 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003527
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003528else
3529 echo "$ac_t""no" 1>&6
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003530 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003531echo "configure:3532: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003532ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3533if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3534 echo $ac_n "(cached) $ac_c" 1>&6
3535else
3536 ac_save_LIBS="$LIBS"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003537LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3538 $LIBS"
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003539cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003540#line 3541 "configure"
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003541#include "confdefs.h"
3542/* Override any gcc2 internal prototype to avoid an error. */
3543/* We use char because int might match the return type of a gcc2
3544 builtin and then its argument prototype would still apply. */
Patrik Stridvall24110281999-02-04 10:09:54 +00003545char XF86DGAQueryExtension();
3546
3547int main() {
3548XF86DGAQueryExtension()
3549; return 0; }
3550EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003551if { (eval echo configure:3552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall24110281999-02-04 10:09:54 +00003552 rm -rf conftest*
3553 eval "ac_cv_lib_$ac_lib_var=yes"
3554else
3555 echo "configure: failed program was:" >&5
3556 cat conftest.$ac_ext >&5
3557 rm -rf conftest*
3558 eval "ac_cv_lib_$ac_lib_var=no"
3559fi
3560rm -f conftest*
3561LIBS="$ac_save_LIBS"
3562
3563fi
3564if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3565 echo "$ac_t""yes" 1>&6
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003566 cat >> confdefs.h <<\EOF
Patrik Stridvall24110281999-02-04 10:09:54 +00003567#define HAVE_LIBXXF86DGA 1
3568EOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003569
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003570 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003571
Patrik Stridvall24110281999-02-04 10:09:54 +00003572else
3573 echo "$ac_t""no" 1>&6
3574fi
3575
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003576
3577fi
Patrik Stridvall24110281999-02-04 10:09:54 +00003578
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003579
3580else
3581 echo "$ac_t""no" 1>&6
3582echo "configure: warning: DGA extension not found!!" 1>&2
3583
3584fi
3585done
3586
3587
3588 for ac_hdr in X11/extensions/xf86vmode.h
Patrik Stridvall24110281999-02-04 10:09:54 +00003589do
3590ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3591echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003592echo "configure:3593: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003593if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3594 echo $ac_n "(cached) $ac_c" 1>&6
3595else
3596 cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003597#line 3598 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003598#include "confdefs.h"
3599#include <$ac_hdr>
3600EOF
3601ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003602{ (eval echo configure:3603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003603ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00003604if test -z "$ac_err"; then
3605 rm -rf conftest*
3606 eval "ac_cv_header_$ac_safe=yes"
3607else
3608 echo "$ac_err" >&5
3609 echo "configure: failed program was:" >&5
3610 cat conftest.$ac_ext >&5
3611 rm -rf conftest*
3612 eval "ac_cv_header_$ac_safe=no"
3613fi
3614rm -f conftest*
3615fi
3616if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3617 echo "$ac_t""yes" 1>&6
3618 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3619 cat >> confdefs.h <<EOF
3620#define $ac_tr_hdr 1
3621EOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003622 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003623echo "configure:3624: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003624ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3625if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3626 echo $ac_n "(cached) $ac_c" 1>&6
3627else
3628 ac_save_LIBS="$LIBS"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003629LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3630 $LIBS"
Patrik Stridvall24110281999-02-04 10:09:54 +00003631cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003632#line 3633 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003633#include "confdefs.h"
3634/* Override any gcc2 internal prototype to avoid an error. */
3635/* We use char because int might match the return type of a gcc2
3636 builtin and then its argument prototype would still apply. */
3637char XF86VidModeQueryExtension();
3638
3639int main() {
3640XF86VidModeQueryExtension()
3641; return 0; }
3642EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003643if { (eval echo configure:3644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall24110281999-02-04 10:09:54 +00003644 rm -rf conftest*
3645 eval "ac_cv_lib_$ac_lib_var=yes"
3646else
3647 echo "configure: failed program was:" >&5
3648 cat conftest.$ac_ext >&5
3649 rm -rf conftest*
3650 eval "ac_cv_lib_$ac_lib_var=no"
3651fi
3652rm -f conftest*
3653LIBS="$ac_save_LIBS"
3654
3655fi
3656if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3657 echo "$ac_t""yes" 1>&6
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003658 cat >> confdefs.h <<\EOF
Patrik Stridvall24110281999-02-04 10:09:54 +00003659#define HAVE_LIBXXF86VM 1
3660EOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003661
3662 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
3663
Patrik Stridvall24110281999-02-04 10:09:54 +00003664else
3665 echo "$ac_t""no" 1>&6
3666fi
3667
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003668
3669else
3670 echo "$ac_t""no" 1>&6
3671echo "configure: warning: XFree86 VMODE extension not found!!" 1>&2
3672
3673fi
3674done
Lionel Ulmer5c085701999-02-28 19:48:53 +00003675
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003676
3677 for ac_hdr in X11/extensions/Xvlib.h
3678do
3679ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3680echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003681echo "configure:3682: checking for $ac_hdr" >&5
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003682if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3683 echo $ac_n "(cached) $ac_c" 1>&6
3684else
3685 cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003686#line 3687 "configure"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003687#include "confdefs.h"
3688#include <$ac_hdr>
3689EOF
3690ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003691{ (eval echo configure:3692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003692ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3693if test -z "$ac_err"; then
3694 rm -rf conftest*
3695 eval "ac_cv_header_$ac_safe=yes"
3696else
3697 echo "$ac_err" >&5
3698 echo "configure: failed program was:" >&5
3699 cat conftest.$ac_ext >&5
3700 rm -rf conftest*
3701 eval "ac_cv_header_$ac_safe=no"
3702fi
3703rm -f conftest*
3704fi
3705if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3706 echo "$ac_t""yes" 1>&6
3707 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3708 cat >> confdefs.h <<EOF
3709#define $ac_tr_hdr 1
3710EOF
3711 echo $ac_n "checking for XvShmCreateImage in -lXv""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003712echo "configure:3713: checking for XvShmCreateImage in -lXv" >&5
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003713ac_lib_var=`echo Xv'_'XvShmCreateImage | sed 'y%./+-%__p_%'`
3714if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3715 echo $ac_n "(cached) $ac_c" 1>&6
3716else
3717 ac_save_LIBS="$LIBS"
3718LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3719 $LIBS"
3720cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003721#line 3722 "configure"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003722#include "confdefs.h"
3723/* Override any gcc2 internal prototype to avoid an error. */
3724/* We use char because int might match the return type of a gcc2
3725 builtin and then its argument prototype would still apply. */
3726char XvShmCreateImage();
3727
3728int main() {
3729XvShmCreateImage()
3730; return 0; }
3731EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003732if { (eval echo configure:3733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003733 rm -rf conftest*
3734 eval "ac_cv_lib_$ac_lib_var=yes"
3735else
3736 echo "configure: failed program was:" >&5
3737 cat conftest.$ac_ext >&5
3738 rm -rf conftest*
3739 eval "ac_cv_lib_$ac_lib_var=no"
3740fi
3741rm -f conftest*
3742LIBS="$ac_save_LIBS"
3743
3744fi
3745if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3746 echo "$ac_t""yes" 1>&6
3747 cat >> confdefs.h <<\EOF
3748#define HAVE_XVIDEO 1
3749EOF
3750
3751 X_PRE_LIBS="$X_PRE_LIBS -lXv"
3752
3753else
3754 echo "$ac_t""no" 1>&6
3755fi
3756
3757
3758else
3759 echo "$ac_t""no" 1>&6
3760echo "configure: warning: XVideo extension not found !!" 1>&2
3761
3762fi
3763done
3764
3765
Huw D M Daviesff453fc2001-09-14 01:04:25 +00003766 for ac_hdr in X11/extensions/Xrender.h
3767do
3768ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3769echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003770echo "configure:3771: checking for $ac_hdr" >&5
Huw D M Daviesff453fc2001-09-14 01:04:25 +00003771if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3772 echo $ac_n "(cached) $ac_c" 1>&6
3773else
3774 cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003775#line 3776 "configure"
Huw D M Daviesff453fc2001-09-14 01:04:25 +00003776#include "confdefs.h"
3777#include <$ac_hdr>
3778EOF
3779ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003780{ (eval echo configure:3781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Huw D M Daviesff453fc2001-09-14 01:04:25 +00003781ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3782if test -z "$ac_err"; then
3783 rm -rf conftest*
3784 eval "ac_cv_header_$ac_safe=yes"
3785else
3786 echo "$ac_err" >&5
3787 echo "configure: failed program was:" >&5
3788 cat conftest.$ac_ext >&5
3789 rm -rf conftest*
3790 eval "ac_cv_header_$ac_safe=no"
3791fi
3792rm -f conftest*
3793fi
3794if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3795 echo "$ac_t""yes" 1>&6
3796 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3797 cat >> confdefs.h <<EOF
3798#define $ac_tr_hdr 1
3799EOF
3800 echo $ac_n "checking for XRenderQueryExtension in -lXrender""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003801echo "configure:3802: checking for XRenderQueryExtension in -lXrender" >&5
Huw D M Daviesff453fc2001-09-14 01:04:25 +00003802ac_lib_var=`echo Xrender'_'XRenderQueryExtension | sed 'y%./+-%__p_%'`
3803if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3804 echo $ac_n "(cached) $ac_c" 1>&6
3805else
3806 ac_save_LIBS="$LIBS"
3807LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3808 $LIBS"
3809cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003810#line 3811 "configure"
Huw D M Daviesff453fc2001-09-14 01:04:25 +00003811#include "confdefs.h"
3812/* Override any gcc2 internal prototype to avoid an error. */
3813/* We use char because int might match the return type of a gcc2
3814 builtin and then its argument prototype would still apply. */
3815char XRenderQueryExtension();
3816
3817int main() {
3818XRenderQueryExtension()
3819; return 0; }
3820EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003821if { (eval echo configure:3822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Huw D M Daviesff453fc2001-09-14 01:04:25 +00003822 rm -rf conftest*
3823 eval "ac_cv_lib_$ac_lib_var=yes"
3824else
3825 echo "configure: failed program was:" >&5
3826 cat conftest.$ac_ext >&5
3827 rm -rf conftest*
3828 eval "ac_cv_lib_$ac_lib_var=no"
3829fi
3830rm -f conftest*
3831LIBS="$ac_save_LIBS"
3832
3833fi
3834if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3835 echo "$ac_t""yes" 1>&6
3836 cat >> confdefs.h <<\EOF
3837#define HAVE_LIBXRENDER 1
3838EOF
3839
3840 X_PRE_LIBS="$X_PRE_LIBS -lXrender"
3841
3842else
3843 echo "$ac_t""no" 1>&6
3844fi
3845
3846
3847else
3848 echo "$ac_t""no" 1>&6
3849echo "configure: warning: XRender extension not found !!" 1>&2
3850
3851fi
3852done
3853
3854
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003855
3856
3857else
3858 echo "$ac_t""no" 1>&6
3859fi
3860done
3861
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003862 if test $OPENGL = "yes" -o $OPENGL = "normal"
3863 then
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00003864 if test -e /usr/X11R6/lib/libGL.a -a ! -e /usr/X11R6/lib/libGL.so
3865 then
3866 { echo "configure: error: /usr/X11R6/lib/libGL.a is present on your system.
3867This prevents linking to OpenGL. Delete the file and restart configure." 1>&2; exit 1; }
3868 fi
3869
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003870 for ac_hdr in GL/gl.h GL/glx.h GL/glext.h
Patrik Stridvall24110281999-02-04 10:09:54 +00003871do
3872ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3873echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003874echo "configure:3875: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003875if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3876 echo $ac_n "(cached) $ac_c" 1>&6
3877else
3878 cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003879#line 3880 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003880#include "confdefs.h"
3881#include <$ac_hdr>
3882EOF
3883ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003884{ (eval echo configure:3885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003885ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00003886if test -z "$ac_err"; then
3887 rm -rf conftest*
3888 eval "ac_cv_header_$ac_safe=yes"
3889else
3890 echo "$ac_err" >&5
3891 echo "configure: failed program was:" >&5
3892 cat conftest.$ac_ext >&5
3893 rm -rf conftest*
3894 eval "ac_cv_header_$ac_safe=no"
3895fi
3896rm -f conftest*
3897fi
3898if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3899 echo "$ac_t""yes" 1>&6
3900 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3901 cat >> confdefs.h <<EOF
3902#define $ac_tr_hdr 1
3903EOF
3904
3905else
3906 echo "$ac_t""no" 1>&6
3907fi
3908done
3909
Marcus Meissner22a969b2000-08-08 20:46:50 +00003910 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003911 then
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00003912 echo $ac_n "checking for up-to-date OpenGL version""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003913echo "configure:3914: checking for up-to-date OpenGL version" >&5
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003914if eval "test \"`echo '$''{'wine_cv_opengl_version_OK'+set}'`\" = set"; then
Lionel Ulmer5c085701999-02-28 19:48:53 +00003915 echo $ac_n "(cached) $ac_c" 1>&6
3916else
3917 cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003918#line 3919 "configure"
Lionel Ulmer5c085701999-02-28 19:48:53 +00003919#include "confdefs.h"
3920#include <GL/gl.h>
3921int main() {
3922GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3923; return 0; }
3924EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003925if { (eval echo configure:3926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Lionel Ulmer5c085701999-02-28 19:48:53 +00003926 rm -rf conftest*
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003927 wine_cv_opengl_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00003928else
3929 echo "configure: failed program was:" >&5
3930 cat conftest.$ac_ext >&5
3931 rm -rf conftest*
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003932 wine_cv_opengl_version_OK="no"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003933
Lionel Ulmer5c085701999-02-28 19:48:53 +00003934fi
3935rm -f conftest*
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003936
Lionel Ulmer5c085701999-02-28 19:48:53 +00003937fi
3938
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003939echo "$ac_t""$wine_cv_opengl_version_OK" 1>&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00003940
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00003941 echo $ac_n "checking for thread-safe OpenGL version""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003942echo "configure:3943: checking for thread-safe OpenGL version" >&5
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003943if eval "test \"`echo '$''{'wine_cv_opengl_version_threadsafe'+set}'`\" = set"; then
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003944 echo $ac_n "(cached) $ac_c" 1>&6
3945else
3946 saved_libs=$LIBS
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003947 LIBS="$X_LIBS -lGL"
3948 cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003949#line 3950 "configure"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003950#include "confdefs.h"
3951
3952int main() {
3953pthread_getspecific();
3954; return 0; }
3955EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003956if { (eval echo configure:3957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003957 rm -rf conftest*
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003958 wine_cv_opengl_version_threadsafe="yes"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003959else
3960 echo "configure: failed program was:" >&5
3961 cat conftest.$ac_ext >&5
3962 rm -rf conftest*
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003963 wine_cv_opengl_version_threadsafe="no"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003964fi
3965rm -f conftest*
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003966 LIBS=$saved_libs
3967
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003968fi
3969
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003970echo "$ac_t""$wine_cv_opengl_version_threadsafe" 1>&6
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003971
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003972 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 +00003973 then
3974 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003975echo "configure:3976: checking for glXCreateContext in -lGL" >&5
Lionel Ulmer5d68f791999-07-23 19:33:24 +00003976ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
Patrik Stridvall24110281999-02-04 10:09:54 +00003977if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3978 echo $ac_n "(cached) $ac_c" 1>&6
3979else
3980 ac_save_LIBS="$LIBS"
Marcus Meissner376ec882000-01-05 03:24:52 +00003981LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Patrik Stridvall24110281999-02-04 10:09:54 +00003982cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003983#line 3984 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003984#include "confdefs.h"
3985/* Override any gcc2 internal prototype to avoid an error. */
3986/* We use char because int might match the return type of a gcc2
3987 builtin and then its argument prototype would still apply. */
Lionel Ulmer5d68f791999-07-23 19:33:24 +00003988char glXCreateContext();
Patrik Stridvall24110281999-02-04 10:09:54 +00003989
3990int main() {
Lionel Ulmer5d68f791999-07-23 19:33:24 +00003991glXCreateContext()
Patrik Stridvall24110281999-02-04 10:09:54 +00003992; return 0; }
3993EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003994if { (eval echo configure:3995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall24110281999-02-04 10:09:54 +00003995 rm -rf conftest*
3996 eval "ac_cv_lib_$ac_lib_var=yes"
3997else
3998 echo "configure: failed program was:" >&5
3999 cat conftest.$ac_ext >&5
4000 rm -rf conftest*
4001 eval "ac_cv_lib_$ac_lib_var=no"
4002fi
4003rm -f conftest*
4004LIBS="$ac_save_LIBS"
4005
4006fi
4007if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4008 echo "$ac_t""yes" 1>&6
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00004009 X_PRE_LIBS="$X_PRE_LIBS -lGL"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00004010
Patrik Stridvall24110281999-02-04 10:09:54 +00004011else
4012 echo "$ac_t""no" 1>&6
4013fi
4014
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00004015
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00004016 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00004017 then
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00004018 OPENGLFILES='$(OPENGLFILES)'
4019 cat >> confdefs.h <<\EOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00004020#define HAVE_OPENGL 1
4021EOF
4022
Marcus Meissner22a969b2000-08-08 20:46:50 +00004023
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00004024 echo $ac_n "checking for glXGetProcAddressARB in -lGL""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004025echo "configure:4026: checking for glXGetProcAddressARB in -lGL" >&5
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00004026ac_lib_var=`echo GL'_'glXGetProcAddressARB | sed 'y%./+-%__p_%'`
4027if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4028 echo $ac_n "(cached) $ac_c" 1>&6
4029else
4030 ac_save_LIBS="$LIBS"
4031LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
4032cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004033#line 4034 "configure"
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00004034#include "confdefs.h"
4035/* Override any gcc2 internal prototype to avoid an error. */
4036/* We use char because int might match the return type of a gcc2
4037 builtin and then its argument prototype would still apply. */
4038char glXGetProcAddressARB();
4039
4040int main() {
4041glXGetProcAddressARB()
4042; return 0; }
4043EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004044if { (eval echo configure:4045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00004045 rm -rf conftest*
4046 eval "ac_cv_lib_$ac_lib_var=yes"
4047else
4048 echo "configure: failed program was:" >&5
4049 cat conftest.$ac_ext >&5
4050 rm -rf conftest*
4051 eval "ac_cv_lib_$ac_lib_var=no"
4052fi
4053rm -f conftest*
4054LIBS="$ac_save_LIBS"
4055
4056fi
4057if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4058 echo "$ac_t""yes" 1>&6
4059 cat >> confdefs.h <<\EOF
4060#define HAVE_GLX_GETPROCADDRESS 1
4061EOF
4062
4063else
4064 echo "$ac_t""no" 1>&6
4065fi
4066
4067
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00004068 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00004069 then
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00004070 echo $ac_n "checking for OpenGL extension functions prototypes""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004071echo "configure:4072: checking for OpenGL extension functions prototypes" >&5
Lionel Ulmer1434d872000-07-23 14:23:31 +00004072if eval "test \"`echo '$''{'wine_cv_extension_prototypes'+set}'`\" = set"; then
4073 echo $ac_n "(cached) $ac_c" 1>&6
4074else
4075 cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004076#line 4077 "configure"
Lionel Ulmer1434d872000-07-23 14:23:31 +00004077#include "confdefs.h"
4078#include <GL/gl.h>
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00004079 #ifdef HAVE_GL_GLEXT_H
4080 # include <GL/glext.h>
4081 #endif
4082
Lionel Ulmer1434d872000-07-23 14:23:31 +00004083int main() {
4084PFNGLCOLORTABLEEXTPROC test_proc;
4085; return 0; }
4086EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004087if { (eval echo configure:4088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Lionel Ulmer1434d872000-07-23 14:23:31 +00004088 rm -rf conftest*
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00004089 wine_cv_extension_prototypes="yes"
Lionel Ulmer1434d872000-07-23 14:23:31 +00004090else
4091 echo "configure: failed program was:" >&5
4092 cat conftest.$ac_ext >&5
4093 rm -rf conftest*
4094 wine_cv_extension_prototypes="no"
4095
4096fi
4097rm -f conftest*
4098
4099fi
4100
4101echo "$ac_t""$wine_cv_extension_prototypes" 1>&6
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00004102 if test "$wine_cv_extension_prototypes" = "yes"
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00004103 then
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004104 cat >> confdefs.h <<\EOF
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00004105#define HAVE_GLEXT_PROTOTYPES 1
4106EOF
4107
4108 fi
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00004109 fi
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004110
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00004111 fi
Marcus Meissner6e9ab402001-08-08 23:21:16 +00004112 echo $ac_n "checking for gluLookAt in -lGLU""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004113echo "configure:4114: checking for gluLookAt in -lGLU" >&5
Marcus Meissner6e9ab402001-08-08 23:21:16 +00004114ac_lib_var=`echo GLU'_'gluLookAt | sed 'y%./+-%__p_%'`
Marcus Meissnerb63ab442001-06-08 19:02:57 +00004115if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4116 echo $ac_n "(cached) $ac_c" 1>&6
4117else
4118 ac_save_LIBS="$LIBS"
4119LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
4120 $LIBS"
4121cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004122#line 4123 "configure"
Marcus Meissnerb63ab442001-06-08 19:02:57 +00004123#include "confdefs.h"
4124/* Override any gcc2 internal prototype to avoid an error. */
4125/* We use char because int might match the return type of a gcc2
4126 builtin and then its argument prototype would still apply. */
Marcus Meissner6e9ab402001-08-08 23:21:16 +00004127char gluLookAt();
Marcus Meissnerb63ab442001-06-08 19:02:57 +00004128
4129int main() {
Marcus Meissner6e9ab402001-08-08 23:21:16 +00004130gluLookAt()
Marcus Meissnerb63ab442001-06-08 19:02:57 +00004131; return 0; }
4132EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004133if { (eval echo configure:4134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissnerb63ab442001-06-08 19:02:57 +00004134 rm -rf conftest*
4135 eval "ac_cv_lib_$ac_lib_var=yes"
4136else
4137 echo "configure: failed program was:" >&5
4138 cat conftest.$ac_ext >&5
4139 rm -rf conftest*
4140 eval "ac_cv_lib_$ac_lib_var=no"
4141fi
4142rm -f conftest*
4143LIBS="$ac_save_LIBS"
4144
4145fi
4146if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4147 echo "$ac_t""yes" 1>&6
4148 X_PRE_LIBS="$X_PRE_LIBS -lGLU"
4149 GLU32FILES='$(GLU32FILES)'
Marcus Meissnerb63ab442001-06-08 19:02:57 +00004150
4151else
4152 echo "$ac_t""no" 1>&6
4153fi
4154
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00004155 fi
4156 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00004157 fi
Ove Kaaven1eb593c1999-02-14 09:34:46 +00004158
4159 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvall2941a212000-04-25 20:34:22 +00004160 XFILES='$(XFILES)'
Patrik Stridvallea584721998-11-01 16:22:07 +00004161else
4162 XLIB=""
4163 X_CFLAGS=""
4164 X_LIBS=""
4165fi
Alexandre Julliard902da691995-11-05 14:39:02 +00004166
Alexandre Julliard48957682001-12-26 23:08:31 +00004167CURSESLIBS=""
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00004168if test "$CURSES" = "yes"
4169then
4170 for ac_hdr in ncurses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00004171do
4172ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4173echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004174echo "configure:4175: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00004175if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4176 echo $ac_n "(cached) $ac_c" 1>&6
4177else
4178 cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004179#line 4180 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00004180#include "confdefs.h"
4181#include <$ac_hdr>
4182EOF
4183ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004184{ (eval echo configure:4185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00004185ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00004186if test -z "$ac_err"; then
4187 rm -rf conftest*
4188 eval "ac_cv_header_$ac_safe=yes"
4189else
4190 echo "$ac_err" >&5
4191 echo "configure: failed program was:" >&5
4192 cat conftest.$ac_ext >&5
4193 rm -rf conftest*
4194 eval "ac_cv_header_$ac_safe=no"
4195fi
4196rm -f conftest*
4197fi
4198if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4199 echo "$ac_t""yes" 1>&6
4200 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4201 cat >> confdefs.h <<EOF
4202#define $ac_tr_hdr 1
4203EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004204 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004205echo "configure:4206: checking for waddch in -lncurses" >&5
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004206ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
4207if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4208 echo $ac_n "(cached) $ac_c" 1>&6
4209else
4210 ac_save_LIBS="$LIBS"
4211LIBS="-lncurses $LIBS"
4212cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004213#line 4214 "configure"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004214#include "confdefs.h"
4215/* Override any gcc2 internal prototype to avoid an error. */
4216/* We use char because int might match the return type of a gcc2
4217 builtin and then its argument prototype would still apply. */
4218char waddch();
4219
4220int main() {
4221waddch()
4222; return 0; }
4223EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004224if { (eval echo configure:4225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004225 rm -rf conftest*
4226 eval "ac_cv_lib_$ac_lib_var=yes"
4227else
4228 echo "configure: failed program was:" >&5
4229 cat conftest.$ac_ext >&5
4230 rm -rf conftest*
4231 eval "ac_cv_lib_$ac_lib_var=no"
4232fi
4233rm -f conftest*
4234LIBS="$ac_save_LIBS"
4235
4236fi
4237if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4238 echo "$ac_t""yes" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00004239 cat >> confdefs.h <<\EOF
4240#define HAVE_LIBNCURSES 1
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004241EOF
4242
Alexandre Julliard48957682001-12-26 23:08:31 +00004243 CURSESLIBS="-lncurses"
Alexandre Julliard638f1691999-01-17 16:32:32 +00004244else
4245 echo "$ac_t""no" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004246for ac_hdr in curses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00004247do
4248ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4249echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004250echo "configure:4251: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00004251if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4252 echo $ac_n "(cached) $ac_c" 1>&6
4253else
4254 cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004255#line 4256 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00004256#include "confdefs.h"
4257#include <$ac_hdr>
4258EOF
4259ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004260{ (eval echo configure:4261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00004261ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00004262if test -z "$ac_err"; then
4263 rm -rf conftest*
4264 eval "ac_cv_header_$ac_safe=yes"
4265else
4266 echo "$ac_err" >&5
4267 echo "configure: failed program was:" >&5
4268 cat conftest.$ac_ext >&5
4269 rm -rf conftest*
4270 eval "ac_cv_header_$ac_safe=no"
4271fi
4272rm -f conftest*
4273fi
4274if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4275 echo "$ac_t""yes" 1>&6
4276 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4277 cat >> confdefs.h <<EOF
4278#define $ac_tr_hdr 1
4279EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004280 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004281echo "configure:4282: checking for waddch in -lcurses" >&5
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004282ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
4283if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4284 echo $ac_n "(cached) $ac_c" 1>&6
4285else
4286 ac_save_LIBS="$LIBS"
4287LIBS="-lcurses $LIBS"
4288cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004289#line 4290 "configure"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004290#include "confdefs.h"
4291/* Override any gcc2 internal prototype to avoid an error. */
4292/* We use char because int might match the return type of a gcc2
4293 builtin and then its argument prototype would still apply. */
4294char waddch();
4295
4296int main() {
4297waddch()
4298; return 0; }
4299EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004300if { (eval echo configure:4301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004301 rm -rf conftest*
4302 eval "ac_cv_lib_$ac_lib_var=yes"
4303else
4304 echo "configure: failed program was:" >&5
4305 cat conftest.$ac_ext >&5
4306 rm -rf conftest*
4307 eval "ac_cv_lib_$ac_lib_var=no"
4308fi
4309rm -f conftest*
4310LIBS="$ac_save_LIBS"
4311
4312fi
4313if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4314 echo "$ac_t""yes" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00004315 cat >> confdefs.h <<\EOF
4316#define HAVE_LIBCURSES 1
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004317EOF
4318
Alexandre Julliard48957682001-12-26 23:08:31 +00004319 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004320else
4321 echo "$ac_t""no" 1>&6
4322fi
4323
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004324else
4325 echo "$ac_t""no" 1>&6
4326fi
4327done
4328
4329fi
Alexandre Julliard48957682001-12-26 23:08:31 +00004330
4331else
4332 echo "$ac_t""no" 1>&6
4333fi
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004334done
4335
Alexandre Julliard48957682001-12-26 23:08:31 +00004336 saved_libs="$LIBS"
4337 LIBS="$CURSESLIBS $LIBS"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004338 for ac_func in getbkgd resizeterm
4339do
4340echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004341echo "configure:4342: checking for $ac_func" >&5
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004342if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
Alexandre Julliard638f1691999-01-17 16:32:32 +00004343 echo $ac_n "(cached) $ac_c" 1>&6
4344else
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004345 cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004346#line 4347 "configure"
Alexandre Julliard638f1691999-01-17 16:32:32 +00004347#include "confdefs.h"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004348/* System header to define __stub macros and hopefully few prototypes,
4349 which can conflict with char $ac_func(); below. */
4350#include <assert.h>
Alexandre Julliard638f1691999-01-17 16:32:32 +00004351/* Override any gcc2 internal prototype to avoid an error. */
4352/* We use char because int might match the return type of a gcc2
4353 builtin and then its argument prototype would still apply. */
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004354char $ac_func();
Alexandre Julliard638f1691999-01-17 16:32:32 +00004355
4356int main() {
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004357
4358/* The GNU C library defines this for functions which it implements
4359 to always fail with ENOSYS. Some functions are actually named
4360 something starting with __ and the normal name is an alias. */
4361#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4362choke me
4363#else
4364$ac_func();
4365#endif
4366
Alexandre Julliard638f1691999-01-17 16:32:32 +00004367; return 0; }
4368EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004369if { (eval echo configure:4370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard638f1691999-01-17 16:32:32 +00004370 rm -rf conftest*
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004371 eval "ac_cv_func_$ac_func=yes"
Alexandre Julliard638f1691999-01-17 16:32:32 +00004372else
4373 echo "configure: failed program was:" >&5
4374 cat conftest.$ac_ext >&5
4375 rm -rf conftest*
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004376 eval "ac_cv_func_$ac_func=no"
Alexandre Julliard638f1691999-01-17 16:32:32 +00004377fi
4378rm -f conftest*
Alexandre Julliard638f1691999-01-17 16:32:32 +00004379fi
Alexandre Julliard638f1691999-01-17 16:32:32 +00004380
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004381if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4382 echo "$ac_t""yes" 1>&6
4383 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4384 cat >> confdefs.h <<EOF
4385#define $ac_tr_func 1
4386EOF
4387
Alexandre Julliard638f1691999-01-17 16:32:32 +00004388else
4389 echo "$ac_t""no" 1>&6
4390fi
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004391done
Alexandre Julliard638f1691999-01-17 16:32:32 +00004392
Alexandre Julliard48957682001-12-26 23:08:31 +00004393 LIBS="$saved_libs"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004394fi
4395
Alexandre Julliard48957682001-12-26 23:08:31 +00004396
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00004397CUPSLIBS=""
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00004398wine_cv_warn_cups_h=no
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00004399echo $ac_n "checking for cupsGetPPD in -lcups""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004400echo "configure:4401: checking for cupsGetPPD in -lcups" >&5
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00004401ac_lib_var=`echo cups'_'cupsGetPPD | sed 'y%./+-%__p_%'`
4402if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4403 echo $ac_n "(cached) $ac_c" 1>&6
4404else
4405 ac_save_LIBS="$LIBS"
4406LIBS="-lcups $LIBS"
4407cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004408#line 4409 "configure"
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00004409#include "confdefs.h"
4410/* Override any gcc2 internal prototype to avoid an error. */
4411/* We use char because int might match the return type of a gcc2
4412 builtin and then its argument prototype would still apply. */
4413char cupsGetPPD();
4414
4415int main() {
4416cupsGetPPD()
4417; return 0; }
4418EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004419if { (eval echo configure:4420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00004420 rm -rf conftest*
4421 eval "ac_cv_lib_$ac_lib_var=yes"
4422else
4423 echo "configure: failed program was:" >&5
4424 cat conftest.$ac_ext >&5
4425 rm -rf conftest*
4426 eval "ac_cv_lib_$ac_lib_var=no"
4427fi
4428rm -f conftest*
4429LIBS="$ac_save_LIBS"
4430
4431fi
4432if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4433 echo "$ac_t""yes" 1>&6
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00004434 ac_safe=`echo "cups/cups.h" | sed 'y%./+-%__p_%'`
4435echo $ac_n "checking for cups/cups.h""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004436echo "configure:4437: checking for cups/cups.h" >&5
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00004437if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4438 echo $ac_n "(cached) $ac_c" 1>&6
4439else
4440 cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004441#line 4442 "configure"
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00004442#include "confdefs.h"
4443#include <cups/cups.h>
4444EOF
4445ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004446{ (eval echo configure:4447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00004447ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4448if test -z "$ac_err"; then
4449 rm -rf conftest*
4450 eval "ac_cv_header_$ac_safe=yes"
4451else
4452 echo "$ac_err" >&5
4453 echo "configure: failed program was:" >&5
4454 cat conftest.$ac_ext >&5
4455 rm -rf conftest*
4456 eval "ac_cv_header_$ac_safe=no"
4457fi
4458rm -f conftest*
4459fi
4460if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4461 echo "$ac_t""yes" 1>&6
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00004462 cat >> confdefs.h <<\EOF
4463#define HAVE_CUPS 1
4464EOF
4465
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00004466 CUPSLIBS="-lcups"
4467else
4468 echo "$ac_t""no" 1>&6
4469wine_cv_warn_cups_h=yes
4470fi
4471
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00004472
4473else
4474 echo "$ac_t""no" 1>&6
4475fi
4476
4477
4478
Ian Pilcher563598d2001-05-16 20:56:05 +00004479echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004480echo "configure:4481: checking for FT_Init_FreeType in -lfreetype" >&5
Ian Pilcher563598d2001-05-16 20:56:05 +00004481ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
4482if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4483 echo $ac_n "(cached) $ac_c" 1>&6
4484else
4485 ac_save_LIBS="$LIBS"
Dmitry Timoshkov8871a112001-11-06 22:26:53 +00004486LIBS="-lfreetype $X_LIBS $LIBS"
Ian Pilcher563598d2001-05-16 20:56:05 +00004487cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004488#line 4489 "configure"
Ian Pilcher563598d2001-05-16 20:56:05 +00004489#include "confdefs.h"
4490/* Override any gcc2 internal prototype to avoid an error. */
4491/* We use char because int might match the return type of a gcc2
4492 builtin and then its argument prototype would still apply. */
4493char FT_Init_FreeType();
4494
4495int main() {
4496FT_Init_FreeType()
4497; return 0; }
4498EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004499if { (eval echo configure:4500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ian Pilcher563598d2001-05-16 20:56:05 +00004500 rm -rf conftest*
4501 eval "ac_cv_lib_$ac_lib_var=yes"
4502else
4503 echo "configure: failed program was:" >&5
4504 cat conftest.$ac_ext >&5
4505 rm -rf conftest*
4506 eval "ac_cv_lib_$ac_lib_var=no"
4507fi
4508rm -f conftest*
4509LIBS="$ac_save_LIBS"
4510
4511fi
4512if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4513 echo "$ac_t""yes" 1>&6
4514 ft_lib=yes
4515else
4516 echo "$ac_t""no" 1>&6
4517ft_lib=no
4518fi
4519
4520if test "$ft_lib" = "no"
4521then
4522 FREETYPELIBS=""
4523 FREETYPEINCL=""
4524 wine_cv_msg_freetype=no
4525else
4526 # Extract the first word of "freetype-config", so it can be a program name with args.
4527set dummy freetype-config; ac_word=$2
4528echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004529echo "configure:4530: checking for $ac_word" >&5
Ian Pilcher563598d2001-05-16 20:56:05 +00004530if eval "test \"`echo '$''{'ac_cv_prog_ft_devel'+set}'`\" = set"; then
4531 echo $ac_n "(cached) $ac_c" 1>&6
4532else
4533 if test -n "$ft_devel"; then
4534 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
4535else
4536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4537 ac_dummy="$PATH"
4538 for ac_dir in $ac_dummy; do
4539 test -z "$ac_dir" && ac_dir=.
4540 if test -f $ac_dir/$ac_word; then
Marcus Meissnerd28955d2001-05-31 21:35:15 +00004541 ac_cv_prog_ft_devel="freetype-config"
Ian Pilcher563598d2001-05-16 20:56:05 +00004542 break
4543 fi
4544 done
4545 IFS="$ac_save_ifs"
4546 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
4547fi
4548fi
4549ft_devel="$ac_cv_prog_ft_devel"
4550if test -n "$ft_devel"; then
4551 echo "$ac_t""$ft_devel" 1>&6
4552else
4553 echo "$ac_t""no" 1>&6
4554fi
4555
4556 if test "$ft_devel" = "no"
4557 then
Marcus Meissnerd28955d2001-05-31 21:35:15 +00004558 # Extract the first word of "freetype2-config", so it can be a program name with args.
4559set dummy freetype2-config; ac_word=$2
4560echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004561echo "configure:4562: checking for $ac_word" >&5
Marcus Meissnerd28955d2001-05-31 21:35:15 +00004562if eval "test \"`echo '$''{'ac_cv_prog_ft_devel2'+set}'`\" = set"; then
4563 echo $ac_n "(cached) $ac_c" 1>&6
4564else
4565 if test -n "$ft_devel2"; then
4566 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
4567else
4568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4569 ac_dummy="$PATH"
4570 for ac_dir in $ac_dummy; do
4571 test -z "$ac_dir" && ac_dir=.
4572 if test -f $ac_dir/$ac_word; then
4573 ac_cv_prog_ft_devel2="freetype2-config"
4574 break
4575 fi
4576 done
4577 IFS="$ac_save_ifs"
4578 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
4579fi
4580fi
4581ft_devel2="$ac_cv_prog_ft_devel2"
4582if test -n "$ft_devel2"; then
4583 echo "$ac_t""$ft_devel2" 1>&6
4584else
4585 echo "$ac_t""no" 1>&6
4586fi
4587
4588 if test "$ft_devel2" = "freetype2-config"
4589 then
4590 ft_devel=$ft_devel2
4591 fi
4592 fi
4593 if test "$ft_devel" = "no"
4594 then
Ian Pilcher563598d2001-05-16 20:56:05 +00004595 FREETYPELIBS=""
4596 FREETYPEINCL=""
4597 wine_cv_msg_freetype=yes
4598 else
4599 cat >> confdefs.h <<\EOF
4600#define HAVE_FREETYPE 1
4601EOF
4602
Marcus Meissnerd28955d2001-05-31 21:35:15 +00004603 FREETYPELIBS=`$ft_devel --libs`
4604 FREETYPEINCL=`$ft_devel --cflags`
Ian Pilcher40432fe2001-06-06 21:05:23 +00004605 ac_save_CPPFLAGS="$CPPFLAGS"
4606 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
4607 for ac_hdr in freetype/freetype.h \
4608 freetype/ftglyph.h \
4609 freetype/tttables.h \
4610 freetype/ftnames.h \
4611 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +00004612 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +00004613 freetype/ftoutln.h \
4614 freetype/internal/sfnt.h
Ian Pilcher40432fe2001-06-06 21:05:23 +00004615do
4616ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4617echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004618echo "configure:4619: checking for $ac_hdr" >&5
Ian Pilcher40432fe2001-06-06 21:05:23 +00004619if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4620 echo $ac_n "(cached) $ac_c" 1>&6
4621else
4622 cat > conftest.$ac_ext <<EOF
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004623#line 4624 "configure"
Ian Pilcher40432fe2001-06-06 21:05:23 +00004624#include "confdefs.h"
4625#include <$ac_hdr>
4626EOF
4627ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004628{ (eval echo configure:4629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Ian Pilcher40432fe2001-06-06 21:05:23 +00004629ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4630if test -z "$ac_err"; then
4631 rm -rf conftest*
4632 eval "ac_cv_header_$ac_safe=yes"
4633else
4634 echo "$ac_err" >&5
4635 echo "configure: failed program was:" >&5
4636 cat conftest.$ac_ext >&5
4637 rm -rf conftest*
4638 eval "ac_cv_header_$ac_safe=no"
4639fi
4640rm -f conftest*
4641fi
4642if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4643 echo "$ac_t""yes" 1>&6
4644 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4645 cat >> confdefs.h <<EOF
4646#define $ac_tr_hdr 1
4647EOF
4648
4649else
4650 echo "$ac_t""no" 1>&6
4651fi
4652done
4653
Alexandre Julliard18d75732002-01-29 03:02:50 +00004654 cat > conftest.$ac_ext <<EOF
4655#line 4656 "configure"
4656#include "confdefs.h"
4657#include <ft2build.h>
4658 #include <freetype/fttrigon.h>
4659EOF
4660ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4661{ (eval echo configure:4662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4662ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4663if test -z "$ac_err"; then
4664 rm -rf conftest*
4665 cat >> confdefs.h <<\EOF
4666#define HAVE_FREETYPE_FTTRIGON_H 1
4667EOF
4668
4669else
4670 echo "$ac_err" >&5
4671 echo "configure: failed program was:" >&5
4672 cat conftest.$ac_ext >&5
4673fi
4674rm -f conftest*
Ian Pilcher40432fe2001-06-06 21:05:23 +00004675 CPPFLAGS="$ac_save_CPPFLAGS"
Ian Pilcher563598d2001-05-16 20:56:05 +00004676 wine_cv_msg_freetype=no
4677 fi
4678fi
4679
4680
4681
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00004682echo $ac_n "checking for parport header/ppdev.h""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00004683echo "configure:4684: checking for parport header/ppdev.h" >&5
Uwe Bonnes6509fa92001-06-26 21:06:07 +00004684if eval "test \"`echo '$''{'ac_cv_c_ppdev'+set}'`\" = set"; then
Pavel Roskin94d99641998-12-26 11:52:51 +00004685 echo $ac_n "(cached) $ac_c" 1>&6
4686else
4687 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00004688#line 4689 "configure"
Pavel Roskin94d99641998-12-26 11:52:51 +00004689#include "confdefs.h"
Uwe Bonnes6509fa92001-06-26 21:06:07 +00004690#include <linux/ppdev.h>
4691int main() {
4692ioctl (1,PPCLAIM,0)
4693; return 0; }
4694EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00004695if { (eval echo configure:4696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Uwe Bonnes6509fa92001-06-26 21:06:07 +00004696 rm -rf conftest*
4697 ac_cv_c_ppdev="yes"
4698else
4699 echo "configure: failed program was:" >&5
4700 cat conftest.$ac_ext >&5
4701 rm -rf conftest*
4702 ac_cv_c_ppdev="no"
4703fi
4704rm -f conftest*
4705
4706fi
4707
4708echo "$ac_t""$ac_cv_c_ppdev" 1>&6
4709if test "$ac_cv_c_ppdev" = "yes"
4710then
4711 cat >> confdefs.h <<\EOF
4712#define HAVE_PPDEV 1
4713EOF
4714
4715fi
4716
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00004717echo $ac_n "checking for GNU style IPX support""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00004718echo "configure:4719: checking for GNU style IPX support" >&5
Uwe Bonnes6509fa92001-06-26 21:06:07 +00004719if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
4720 echo $ac_n "(cached) $ac_c" 1>&6
4721else
4722 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00004723#line 4724 "configure"
Uwe Bonnes6509fa92001-06-26 21:06:07 +00004724#include "confdefs.h"
Pavel Roskin94d99641998-12-26 11:52:51 +00004725#include <sys/socket.h>
4726 #include <netipx/ipx.h>
4727int main() {
4728((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4729; return 0; }
4730EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00004731if { (eval echo configure:4732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Pavel Roskin94d99641998-12-26 11:52:51 +00004732 rm -rf conftest*
Aaron Hopec23872d2000-01-15 23:43:21 +00004733 ac_cv_c_ipx_gnu="yes"
Pavel Roskin94d99641998-12-26 11:52:51 +00004734else
4735 echo "configure: failed program was:" >&5
4736 cat conftest.$ac_ext >&5
4737 rm -rf conftest*
4738 ac_cv_c_ipx_gnu="no"
4739fi
4740rm -f conftest*
4741
4742fi
4743
4744echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
Aaron Hopec23872d2000-01-15 23:43:21 +00004745if test "$ac_cv_c_ipx_gnu" = "yes"
4746then
4747 cat >> confdefs.h <<\EOF
4748#define HAVE_IPX_GNU 1
4749EOF
4750
4751fi
Pavel Roskin94d99641998-12-26 11:52:51 +00004752
4753if test "$ac_cv_c_ipx_gnu" = "no"
4754then
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00004755 echo $ac_n "checking for linux style IPX support""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00004756echo "configure:4757: checking for linux style IPX support" >&5
Pavel Roskin94d99641998-12-26 11:52:51 +00004757if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4758 echo $ac_n "(cached) $ac_c" 1>&6
4759else
4760 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00004761#line 4762 "configure"
Pavel Roskin94d99641998-12-26 11:52:51 +00004762#include "confdefs.h"
4763#include <sys/socket.h>
4764 #include <asm/types.h>
4765 #include <linux/ipx.h>
4766int main() {
4767((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4768; return 0; }
4769EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00004770if { (eval echo configure:4771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Pavel Roskin94d99641998-12-26 11:52:51 +00004771 rm -rf conftest*
Aaron Hopec23872d2000-01-15 23:43:21 +00004772 ac_cv_c_ipx_linux="yes"
Pavel Roskin94d99641998-12-26 11:52:51 +00004773else
4774 echo "configure: failed program was:" >&5
4775 cat conftest.$ac_ext >&5
4776 rm -rf conftest*
4777 ac_cv_c_ipx_linux="no"
4778fi
4779rm -f conftest*
4780
4781fi
4782
4783echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
Aaron Hopec23872d2000-01-15 23:43:21 +00004784 if test "$ac_cv_c_ipx_linux" = "yes"
4785 then
4786 cat >> confdefs.h <<\EOF
4787#define HAVE_IPX_LINUX 1
4788EOF
4789
4790 fi
Pavel Roskin94d99641998-12-26 11:52:51 +00004791fi
4792
Todd Vierlingecc76691998-12-15 17:49:02 +00004793for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004794do
4795ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4796echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00004797echo "configure:4798: checking for $ac_hdr" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004798if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4799 echo $ac_n "(cached) $ac_c" 1>&6
4800else
4801 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00004802#line 4803 "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004803#include "confdefs.h"
4804#include <$ac_hdr>
4805EOF
4806ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliard18d75732002-01-29 03:02:50 +00004807{ (eval echo configure:4808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00004808ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004809if test -z "$ac_err"; then
4810 rm -rf conftest*
4811 eval "ac_cv_header_$ac_safe=yes"
4812else
4813 echo "$ac_err" >&5
4814 echo "configure: failed program was:" >&5
4815 cat conftest.$ac_ext >&5
4816 rm -rf conftest*
4817 eval "ac_cv_header_$ac_safe=no"
4818fi
4819rm -f conftest*
4820fi
4821if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4822 echo "$ac_t""yes" 1>&6
4823 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4824 cat >> confdefs.h <<EOF
4825#define $ac_tr_hdr 1
4826EOF
Todd Vierlingecc76691998-12-15 17:49:02 +00004827 break
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004828else
4829 echo "$ac_t""no" 1>&6
4830fi
4831done
4832
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004833
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00004834echo $ac_n "checking for Open Sound System""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00004835echo "configure:4836: checking for Open Sound System" >&5
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004836if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4837 echo $ac_n "(cached) $ac_c" 1>&6
4838else
4839 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00004840#line 4841 "configure"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004841#include "confdefs.h"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004842
Todd Vierlingecc76691998-12-15 17:49:02 +00004843 #if defined(HAVE_SYS_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004844 #include <sys/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00004845 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004846 #include <machine/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00004847 #elif defined(HAVE_SOUNDCARD_H)
4848 #include <soundcard.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004849 #endif
4850
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004851int main() {
4852
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004853
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00004854/* check for one of the Open Sound System specific SNDCTL_ defines */
4855#if !defined(SNDCTL_DSP_STEREO)
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004856#error No open sound system
4857#endif
4858
4859; return 0; }
4860EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00004861if { (eval echo configure:4862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004862 rm -rf conftest*
4863 ac_cv_c_opensoundsystem="yes"
4864else
4865 echo "configure: failed program was:" >&5
4866 cat conftest.$ac_ext >&5
4867 rm -rf conftest*
4868 ac_cv_c_opensoundsystem="no"
4869fi
4870rm -f conftest*
4871fi
4872
4873echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4874
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004875if test "$ac_cv_c_opensoundsystem" = "yes"
4876then
4877 cat >> confdefs.h <<\EOF
4878#define HAVE_OSS 1
4879EOF
4880
4881fi
4882
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00004883echo $ac_n "checking for Open Sound System/MIDI interface""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00004884echo "configure:4885: checking for Open Sound System/MIDI interface" >&5
Eric Pouech338d3b21999-05-22 18:52:21 +00004885if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4886 echo $ac_n "(cached) $ac_c" 1>&6
4887else
4888 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00004889#line 4890 "configure"
Eric Pouech338d3b21999-05-22 18:52:21 +00004890#include "confdefs.h"
4891
4892 #if defined(HAVE_SYS_SOUNDCARD_H)
4893 #include <sys/soundcard.h>
4894 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4895 #include <machine/soundcard.h>
4896 #elif defined(HAVE_SOUNDCARD_H)
4897 #include <soundcard.h>
4898 #endif
4899
4900int main() {
4901
4902
4903/* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4904#if !defined(SNDCTL_SEQ_SYNC)
4905#error No open sound system MIDI interface
4906#endif
4907
4908; return 0; }
4909EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00004910if { (eval echo configure:4911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Eric Pouech338d3b21999-05-22 18:52:21 +00004911 rm -rf conftest*
4912 ac_cv_c_opensoundsystem_midi="yes"
4913else
4914 echo "configure: failed program was:" >&5
4915 cat conftest.$ac_ext >&5
4916 rm -rf conftest*
4917 ac_cv_c_opensoundsystem_midi="no"
4918fi
4919rm -f conftest*
4920fi
4921
4922echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4923
4924if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4925then
4926 cat >> confdefs.h <<\EOF
4927#define HAVE_OSS_MIDI 1
4928EOF
4929
4930fi
4931
Alexandre Julliard641ee761997-08-04 16:34:36 +00004932if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
4933
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004934
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00004935echo $ac_n "checking whether mmap64 works defined as mmap""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00004936echo "configure:4937: checking whether mmap64 works defined as mmap" >&5
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00004937if eval "test \"`echo '$''{'ac_cv_mmap64_works'+set}'`\" = set"; then
4938 echo $ac_n "(cached) $ac_c" 1>&6
4939else
4940 if test "$cross_compiling" = yes; then
4941 ac_cv_mmap64_works="no"
4942else
4943 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00004944#line 4945 "configure"
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00004945#include "confdefs.h"
4946
4947 #define _FILE_OFFSET_BITS 64
4948 #include <stdio.h>
4949 #include <unistd.h>
4950 #include <fcntl.h>
4951 #include <sys/mman.h>
4952 #include <errno.h>
4953
4954 int main(int argc,char **argv) {
4955 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
4956 if (fd == -1) exit(1);
4957
4958 unlink("conftest.map");
4959
4960 write(fd,"test",4);
4961
4962 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
4963 (errno == EINVAL)
4964 ) {
4965 exit(1);
4966 }
4967 close(fd);
4968 fprintf(stderr,"success!\n");
4969 exit(0);
4970 }
4971
4972
4973EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00004974if { (eval echo configure:4975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00004975then
4976 ac_cv_mmap64_works="yes"
4977else
4978 echo "configure: failed program was:" >&5
4979 cat conftest.$ac_ext >&5
4980 rm -fr conftest*
4981 ac_cv_mmap64_works="no"
4982fi
4983rm -fr conftest*
4984fi
4985
4986fi
4987
4988echo "$ac_t""$ac_cv_mmap64_works" 1>&6
4989
4990if test "$ac_cv_mmap64_works" = "yes"
4991then
4992 cat >> confdefs.h <<\EOF
4993#define _FILE_OFFSET_BITS 64
4994EOF
4995
4996fi
4997
4998
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004999if test "x${GCC}" = "xyes"
5000then
5001 CFLAGS="$CFLAGS -Wall"
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00005002 echo $ac_n "checking for gcc strength-reduce bug""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00005003echo "configure:5004: checking for gcc strength-reduce bug" >&5
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00005004if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
5005 echo $ac_n "(cached) $ac_c" 1>&6
5006else
5007 if test "$cross_compiling" = yes; then
5008 ac_cv_c_gcc_strength_bug="yes"
5009else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005010 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005011#line 5012 "configure"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00005012#include "confdefs.h"
5013
Eric Pouech5aee80f2000-11-11 00:31:39 +00005014int L[4] = {0,1,2,3};
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00005015int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +00005016 static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00005017 unsigned int B = 3;
5018 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +00005019 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +00005020 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
5021 L[i] = 4;
5022
5023 exit( Array[1] != -2 || L[2] != 3);
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00005024}
5025EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005026if { (eval echo configure:5027: \"$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 +00005027then
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00005028 ac_cv_c_gcc_strength_bug="no"
5029else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005030 echo "configure: failed program was:" >&5
5031 cat conftest.$ac_ext >&5
5032 rm -fr conftest*
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00005033 ac_cv_c_gcc_strength_bug="yes"
5034fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005035rm -fr conftest*
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00005036fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005037
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00005038fi
5039
5040echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
5041 if test "$ac_cv_c_gcc_strength_bug" = "yes"
5042 then
5043 CFLAGS="$CFLAGS -fno-strength-reduce"
5044 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00005045
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00005046 echo $ac_n "checking for gcc -mpreferred-stack-boundary=2 support""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00005047echo "configure:5048: checking for gcc -mpreferred-stack-boundary=2 support" >&5
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00005048if eval "test \"`echo '$''{'ac_cv_c_gcc_stack_boundary'+set}'`\" = set"; then
5049 echo $ac_n "(cached) $ac_c" 1>&6
5050else
5051 saved_cflags=$CFLAGS
5052 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
5053 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005054#line 5055 "configure"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00005055#include "confdefs.h"
5056
5057int main() {
5058return 0
5059; return 0; }
5060EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005061if { (eval echo configure:5062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00005062 rm -rf conftest*
5063 ac_cv_c_gcc_stack_boundary="yes"
5064else
5065 echo "configure: failed program was:" >&5
5066 cat conftest.$ac_ext >&5
5067 rm -rf conftest*
5068 ac_cv_c_gcc_stack_boundary="no"
5069fi
5070rm -f conftest*
5071 CFLAGS=$saved_cflags
5072
5073fi
5074
5075echo "$ac_t""$ac_cv_c_gcc_stack_boundary" 1>&6
5076 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
5077 then
5078 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
5079 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00005080fi
5081
5082
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00005083echo $ac_n "checking whether .type must sit inside a .def directive""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00005084echo "configure:5085: checking whether .type must sit inside a .def directive" >&5
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00005085if eval "test \"`echo '$''{'ac_cv_c_type_in_def'+set}'`\" = set"; then
5086 echo $ac_n "(cached) $ac_c" 1>&6
5087else
5088 saved_libs=$LIBS
5089LIBS="conftest_asm.s $LIBS"
5090cat > conftest_asm.s <<EOF
5091 .globl _ac_test
5092 .def _ac_test; .scl 2; .type 32; .endef
5093_ac_test:
5094 .long 0
5095EOF
5096cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005097#line 5098 "configure"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00005098#include "confdefs.h"
5099
5100int main() {
5101
5102; return 0; }
5103EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005104if { (eval echo configure:5105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00005105 rm -rf conftest*
5106 ac_cv_c_type_in_def="yes"
5107else
5108 echo "configure: failed program was:" >&5
5109 cat conftest.$ac_ext >&5
5110 rm -rf conftest*
5111 ac_cv_c_type_in_def="no"
5112fi
5113rm -f conftest*
5114LIBS=$saved_libs
5115fi
5116
5117echo "$ac_t""$ac_cv_c_type_in_def" 1>&6
5118if test "$ac_cv_c_type_in_def" = "yes"
5119then
5120 cat >> confdefs.h <<\EOF
5121#define NEED_TYPE_IN_DEF 1
5122EOF
5123
5124fi
5125
5126
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00005127echo $ac_n "checking whether external symbols need an underscore prefix""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00005128echo "configure:5129: checking whether external symbols need an underscore prefix" >&5
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00005129if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
5130 echo $ac_n "(cached) $ac_c" 1>&6
5131else
5132 saved_libs=$LIBS
5133LIBS="conftest_asm.s $LIBS"
5134cat > conftest_asm.s <<EOF
5135 .globl _ac_test
5136_ac_test:
5137 .long 0
5138EOF
5139cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005140#line 5141 "configure"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00005141#include "confdefs.h"
5142extern int ac_test;
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005143int main() {
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00005144if (ac_test) return 1
5145; return 0; }
5146EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005147if { (eval echo configure:5148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00005148 rm -rf conftest*
5149 ac_cv_c_extern_prefix="yes"
5150else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005151 echo "configure: failed program was:" >&5
5152 cat conftest.$ac_ext >&5
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00005153 rm -rf conftest*
5154 ac_cv_c_extern_prefix="no"
5155fi
5156rm -f conftest*
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00005157LIBS=$saved_libs
5158fi
5159
5160echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
5161if test "$ac_cv_c_extern_prefix" = "yes"
5162then
5163 cat >> confdefs.h <<\EOF
5164#define NEED_UNDERSCORE_PREFIX 1
5165EOF
5166
5167fi
5168
5169
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00005170echo $ac_n "checking whether assembler accepts .string""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00005171echo "configure:5172: checking whether assembler accepts .string" >&5
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00005172if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
5173 echo $ac_n "(cached) $ac_c" 1>&6
5174else
5175 saved_libs=$LIBS
5176LIBS="conftest_asm.s $LIBS"
5177cat > conftest_asm.s <<EOF
5178 .string "test"
5179EOF
5180cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005181#line 5182 "configure"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00005182#include "confdefs.h"
5183
5184int main() {
5185
5186; return 0; }
5187EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005188if { (eval echo configure:5189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00005189 rm -rf conftest*
5190 ac_cv_c_asm_string="yes"
5191else
5192 echo "configure: failed program was:" >&5
5193 cat conftest.$ac_ext >&5
5194 rm -rf conftest*
5195 ac_cv_c_asm_string="no"
5196fi
5197rm -f conftest*
5198LIBS=$saved_libs
5199fi
5200
5201echo "$ac_t""$ac_cv_c_asm_string" 1>&6
5202if test "$ac_cv_c_asm_string" = "yes"
5203then
5204 cat >> confdefs.h <<\EOF
5205#define HAVE_ASM_STRING 1
5206EOF
5207
5208fi
5209
5210
Todd Vierling4b992b01998-12-15 15:26:27 +00005211LDSHARED=""
Alexandre Julliard4354cda2000-11-09 20:27:45 +00005212LDDLLFLAGS=""
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00005213if test "$LIBEXT" = "so"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005214then
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00005215 echo $ac_n "checking whether we can build a GNU style ELF dll""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00005216echo "configure:5217: checking whether we can build a GNU style ELF dll" >&5
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +00005217if eval "test \"`echo '$''{'ac_cv_c_dll_gnuelf'+set}'`\" = set"; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005218 echo $ac_n "(cached) $ac_c" 1>&6
5219else
5220 saved_cflags=$CFLAGS
Alexandre Julliard4354cda2000-11-09 20:27:45 +00005221 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005222 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005223#line 5224 "configure"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005224#include "confdefs.h"
5225
5226int main() {
5227return 1
5228; return 0; }
5229EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005230if { (eval echo configure:5231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005231 rm -rf conftest*
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +00005232 ac_cv_c_dll_gnuelf="yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005233else
5234 echo "configure: failed program was:" >&5
5235 cat conftest.$ac_ext >&5
5236 rm -rf conftest*
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +00005237 ac_cv_c_dll_gnuelf="no"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005238fi
5239rm -f conftest*
5240 CFLAGS=$saved_cflags
5241
5242fi
5243
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +00005244echo "$ac_t""$ac_cv_c_dll_gnuelf" 1>&6
5245 if test "$ac_cv_c_dll_gnuelf" = "yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005246 then
Jeremy Whitec7b4ed72001-07-14 00:49:50 +00005247 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
Alexandre Julliard4354cda2000-11-09 20:27:45 +00005248 LDDLLFLAGS="-Wl,-Bsymbolic"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005249 else
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00005250 echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00005251echo "configure:5252: checking whether we can build a UnixWare (Solaris) dll" >&5
Ron Recorde977d6c1999-09-05 12:32:05 +00005252if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
Todd Vierling4b992b01998-12-15 15:26:27 +00005253 echo $ac_n "(cached) $ac_c" 1>&6
5254else
5255 saved_cflags=$CFLAGS
Alexandre Julliard4354cda2000-11-09 20:27:45 +00005256 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
Todd Vierling4b992b01998-12-15 15:26:27 +00005257 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005258#line 5259 "configure"
Todd Vierling4b992b01998-12-15 15:26:27 +00005259#include "confdefs.h"
5260
5261int main() {
5262return 1
5263; return 0; }
5264EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005265if { (eval echo configure:5266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ron Recorde977d6c1999-09-05 12:32:05 +00005266 rm -rf conftest*
5267 ac_cv_c_dll_unixware="yes"
5268else
5269 echo "configure: failed program was:" >&5
5270 cat conftest.$ac_ext >&5
5271 rm -rf conftest*
5272 ac_cv_c_dll_unixware="no"
5273fi
5274rm -f conftest*
5275 CFLAGS=$saved_cflags
5276
5277fi
5278
5279echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
5280 if test "$ac_cv_c_dll_unixware" = "yes"
5281 then
Jeremy Whitec7b4ed72001-07-14 00:49:50 +00005282 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
Alexandre Julliard4354cda2000-11-09 20:27:45 +00005283 LDDLLFLAGS="-Wl,-B,symbolic"
Todd Vierling4b992b01998-12-15 15:26:27 +00005284 fi
5285 fi
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +00005286 if test "$ac_cv_c_dll_gnuelf" = "no" -a "$ac_cv_c_dll_unixware" = "no"
Todd Vierling4b992b01998-12-15 15:26:27 +00005287 then
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00005288 LIBEXT="a"
5289 if test "$DLLWRAP" = "dllwrap"; then
5290 if test "$CYGWIN" = "yes"; then
5291 echo "*** use dllwrap for building shared library."
5292 LIBEXT="dll"
5293 fi
5294 fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005295 fi
5296fi
5297
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00005298if test "$LIBEXT" = "a"; then
5299 echo "*** It is currently not possible to build WINE without shared"
5300 echo "*** library (.so) support to allow transparent switch between .so"
5301 echo "*** and .dll files."
5302 echo "*** If you are using Linux, you will need a newer binutils."
5303 exit 1
5304fi
5305
Alexandre Julliard0adad952000-01-26 01:45:58 +00005306DLLFLAGS=""
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00005307LDPATH=""
Alexandre Julliard0adad952000-01-26 01:45:58 +00005308
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00005309if test "$LIBEXT" = "so"; then
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00005310 DLLFLAGS="-fPIC"
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00005311 LDPATH="LD_LIBRARY_PATH=\"\$(TOPOBJDIR)/unicode:\$\$LD_LIBRARY_PATH\""
5312elif test "$LIBEXT" = "dll"; then
5313 #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00005314 LDPATH="PATH=\"\$(TOPOBJDIR)/unicode:\$\$PATH\""
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00005315fi
Alexandre Julliard0adad952000-01-26 01:45:58 +00005316
5317
5318
5319
5320
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005321
Alexandre Julliard4354cda2000-11-09 20:27:45 +00005322
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00005323
Alexandre Julliard598412e2001-01-17 20:22:22 +00005324
5325
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005326wine_cv_libc_reentrant=no
Alexandre Julliard598412e2001-01-17 20:22:22 +00005327
5328 echo $ac_n "checking for reentrant libc: __errno_location""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00005329echo "configure:5330: checking for reentrant libc: __errno_location" >&5
Alexandre Julliard598412e2001-01-17 20:22:22 +00005330if eval "test \"`echo '$''{'wine_cv_libc_r___errno_location'+set}'`\" = set"; then
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005331 echo $ac_n "(cached) $ac_c" 1>&6
5332else
5333 if test "$cross_compiling" = yes; then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005334 wine_cv_libc_r___errno_location=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005335else
5336 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005337#line 5338 "configure"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005338#include "confdefs.h"
5339int myerrno = 0;
5340char buf[256];
5341int *__errno_location(){return &myerrno;}
5342main(){connect(0,buf,255); exit(!myerrno);}
5343EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005344if { (eval echo configure:5345: \"$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 +00005345then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005346 wine_cv_libc_r___errno_location=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005347else
5348 echo "configure: failed program was:" >&5
5349 cat conftest.$ac_ext >&5
5350 rm -fr conftest*
Alexandre Julliard598412e2001-01-17 20:22:22 +00005351 wine_cv_libc_r___errno_location=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005352fi
5353rm -fr conftest*
5354fi
Marcus Meissnerc2606381999-04-11 15:20:29 +00005355
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005356
5357fi
5358
Alexandre Julliard598412e2001-01-17 20:22:22 +00005359echo "$ac_t""$wine_cv_libc_r___errno_location" 1>&6
5360if test "$wine_cv_libc_r___errno_location" = "yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005361then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005362 wine_cv_libc_reentrant=__errno_location
5363fi
Alexandre Julliard598412e2001-01-17 20:22:22 +00005364
5365
5366 echo $ac_n "checking for reentrant libc: __error""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00005367echo "configure:5368: checking for reentrant libc: __error" >&5
Alexandre Julliard598412e2001-01-17 20:22:22 +00005368if eval "test \"`echo '$''{'wine_cv_libc_r___error'+set}'`\" = set"; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005369 echo $ac_n "(cached) $ac_c" 1>&6
5370else
5371 if test "$cross_compiling" = yes; then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005372 wine_cv_libc_r___error=yes
Marcus Meissnerc2606381999-04-11 15:20:29 +00005373else
5374 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005375#line 5376 "configure"
Marcus Meissnerc2606381999-04-11 15:20:29 +00005376#include "confdefs.h"
5377int myerrno = 0;
5378char buf[256];
5379int *__error(){return &myerrno;}
5380main(){connect(0,buf,255); exit(!myerrno);}
5381EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005382if { (eval echo configure:5383: \"$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 +00005383then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005384 wine_cv_libc_r___error=yes
Marcus Meissnerc2606381999-04-11 15:20:29 +00005385else
5386 echo "configure: failed program was:" >&5
5387 cat conftest.$ac_ext >&5
5388 rm -fr conftest*
Alexandre Julliard598412e2001-01-17 20:22:22 +00005389 wine_cv_libc_r___error=no
Marcus Meissnerc2606381999-04-11 15:20:29 +00005390fi
5391rm -fr conftest*
5392fi
5393
Marcus Meissnerc2606381999-04-11 15:20:29 +00005394
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005395fi
5396
Alexandre Julliard598412e2001-01-17 20:22:22 +00005397echo "$ac_t""$wine_cv_libc_r___error" 1>&6
5398if test "$wine_cv_libc_r___error" = "yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005399then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005400 wine_cv_libc_reentrant=__error
5401fi
Alexandre Julliard598412e2001-01-17 20:22:22 +00005402
5403
5404 echo $ac_n "checking for reentrant libc: ___errno""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00005405echo "configure:5406: checking for reentrant libc: ___errno" >&5
Alexandre Julliard598412e2001-01-17 20:22:22 +00005406if eval "test \"`echo '$''{'wine_cv_libc_r____errno'+set}'`\" = set"; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005407 echo $ac_n "(cached) $ac_c" 1>&6
5408else
5409 if test "$cross_compiling" = yes; then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005410 wine_cv_libc_r____errno=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005411else
5412 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005413#line 5414 "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005414#include "confdefs.h"
5415int myerrno = 0;
5416char buf[256];
5417int *___errno(){return &myerrno;}
5418main(){connect(0,buf,255); exit(!myerrno);}
5419EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005420if { (eval echo configure:5421: \"$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 +00005421then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005422 wine_cv_libc_r____errno=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005423else
5424 echo "configure: failed program was:" >&5
5425 cat conftest.$ac_ext >&5
5426 rm -fr conftest*
Alexandre Julliard598412e2001-01-17 20:22:22 +00005427 wine_cv_libc_r____errno=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005428fi
5429rm -fr conftest*
5430fi
5431
5432
5433fi
5434
Alexandre Julliard598412e2001-01-17 20:22:22 +00005435echo "$ac_t""$wine_cv_libc_r____errno" 1>&6
5436if test "$wine_cv_libc_r____errno" = "yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005437then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005438 wine_cv_libc_reentrant=___errno
5439fi
Alexandre Julliard598412e2001-01-17 20:22:22 +00005440
5441
5442 echo $ac_n "checking for reentrant libc: __thr_errno""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00005443echo "configure:5444: checking for reentrant libc: __thr_errno" >&5
Alexandre Julliard598412e2001-01-17 20:22:22 +00005444if eval "test \"`echo '$''{'wine_cv_libc_r___thr_errno'+set}'`\" = set"; then
Ron Recorde977d6c1999-09-05 12:32:05 +00005445 echo $ac_n "(cached) $ac_c" 1>&6
5446else
5447 if test "$cross_compiling" = yes; then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005448 wine_cv_libc_r___thr_errno=yes
Ron Recorde977d6c1999-09-05 12:32:05 +00005449else
5450 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005451#line 5452 "configure"
Ron Recorde977d6c1999-09-05 12:32:05 +00005452#include "confdefs.h"
5453int myerrno = 0;
5454char buf[256];
5455int *__thr_errno(){return &myerrno;}
5456main(){connect(0,buf,255); exit(!myerrno);}
5457EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005458if { (eval echo configure:5459: \"$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 +00005459then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005460 wine_cv_libc_r___thr_errno=yes
Ron Recorde977d6c1999-09-05 12:32:05 +00005461else
5462 echo "configure: failed program was:" >&5
5463 cat conftest.$ac_ext >&5
5464 rm -fr conftest*
Alexandre Julliard598412e2001-01-17 20:22:22 +00005465 wine_cv_libc_r___thr_errno=no
Ron Recorde977d6c1999-09-05 12:32:05 +00005466fi
5467rm -fr conftest*
5468fi
5469
5470
5471fi
5472
Alexandre Julliard598412e2001-01-17 20:22:22 +00005473echo "$ac_t""$wine_cv_libc_r___thr_errno" 1>&6
5474if test "$wine_cv_libc_r___thr_errno" = "yes"
Ron Recorde977d6c1999-09-05 12:32:05 +00005475then
Ron Recorde977d6c1999-09-05 12:32:05 +00005476 wine_cv_libc_reentrant=__thr_errno
5477fi
Alexandre Julliard598412e2001-01-17 20:22:22 +00005478
5479
Bang Jun-Young33dff342001-05-07 18:21:10 +00005480 echo $ac_n "checking for reentrant libc: __errno""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00005481echo "configure:5482: checking for reentrant libc: __errno" >&5
Bang Jun-Young33dff342001-05-07 18:21:10 +00005482if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
5483 echo $ac_n "(cached) $ac_c" 1>&6
5484else
5485 if test "$cross_compiling" = yes; then
5486 wine_cv_libc_r___errno=yes
5487else
5488 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005489#line 5490 "configure"
Bang Jun-Young33dff342001-05-07 18:21:10 +00005490#include "confdefs.h"
5491int myerrno = 0;
5492char buf[256];
5493int *__errno(){return &myerrno;}
5494main(){connect(0,buf,255); exit(!myerrno);}
5495EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005496if { (eval echo configure:5497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Bang Jun-Young33dff342001-05-07 18:21:10 +00005497then
5498 wine_cv_libc_r___errno=yes
5499else
5500 echo "configure: failed program was:" >&5
5501 cat conftest.$ac_ext >&5
5502 rm -fr conftest*
5503 wine_cv_libc_r___errno=no
5504fi
5505rm -fr conftest*
5506fi
5507
5508
5509fi
5510
5511echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
5512if test "$wine_cv_libc_r___errno" = "yes"
5513then
5514 wine_cv_libc_reentrant=__errno
5515fi
5516
5517
Alexandre Julliard598412e2001-01-17 20:22:22 +00005518if test "$wine_cv_libc_reentrant" != "no"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005519then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005520 cat >> confdefs.h <<EOF
5521#define ERRNO_LOCATION $wine_cv_libc_reentrant
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005522EOF
5523
5524fi
5525
5526
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005527if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
Patrik Stridvall24110281999-02-04 10:09:54 +00005528then
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00005529echo $ac_n "checking for reentrant X libraries""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00005530echo "configure:5531: checking for reentrant X libraries" >&5
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005531if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
5532 echo $ac_n "(cached) $ac_c" 1>&6
5533else
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005534 if test "x$with_reentrant_x" = "xno"
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005535 then
5536 wine_cv_x_reentrant=no
5537 else
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005538 libX11_check=none
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005539 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
Alexandre Julliard829fe321998-07-26 14:27:39 +00005540 if test -r $dir/libX11.so; then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005541 libX11_check="-D $dir/libX11.so"
5542 break 1
5543 fi
Alexandre Julliard829fe321998-07-26 14:27:39 +00005544 if test -r $dir/libX11.a; then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005545 libX11_check="$dir/libX11.a"
5546 break 1
5547 fi
5548 done
5549 if test "$libX11_check" != "none"; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005550 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
Alexandre Julliard829fe321998-07-26 14:27:39 +00005551 then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005552 wine_cv_x_reentrant=yes
5553 else
5554 wine_cv_x_reentrant=no
5555 fi
5556 else
5557 wine_cv_x_reentrant=unknown
5558 fi
5559 fi
5560fi
5561
5562echo "$ac_t""$wine_cv_x_reentrant" 1>&6
Patrik Stridvall24110281999-02-04 10:09:54 +00005563else
5564 wine_cv_x_reentrant=no
5565fi
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005566if test "$wine_cv_x_reentrant" = "no"
5567then
5568 cat >> confdefs.h <<\EOF
5569#define NO_REENTRANT_X11 1
5570EOF
5571
5572fi
5573
5574
Francois Gougetae5e93e1999-11-13 23:02:06 +00005575
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005576# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5577# for constant arguments. Useless!
5578echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00005579echo "configure:5580: checking for working alloca.h" >&5
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005580if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5581 echo $ac_n "(cached) $ac_c" 1>&6
5582else
5583 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005584#line 5585 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005585#include "confdefs.h"
5586#include <alloca.h>
5587int main() {
Patrik Stridvall87f48fc2001-06-19 03:30:13 +00005588char *p = alloca(2 * sizeof(int));
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005589; return 0; }
5590EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005591if { (eval echo configure:5592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005592 rm -rf conftest*
5593 ac_cv_header_alloca_h=yes
5594else
5595 echo "configure: failed program was:" >&5
5596 cat conftest.$ac_ext >&5
5597 rm -rf conftest*
5598 ac_cv_header_alloca_h=no
5599fi
5600rm -f conftest*
5601fi
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005602
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005603echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5604if test $ac_cv_header_alloca_h = yes; then
5605 cat >> confdefs.h <<\EOF
5606#define HAVE_ALLOCA_H 1
5607EOF
5608
5609fi
5610
5611echo $ac_n "checking for alloca""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00005612echo "configure:5613: checking for alloca" >&5
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005613if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5614 echo $ac_n "(cached) $ac_c" 1>&6
5615else
5616 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005617#line 5618 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005618#include "confdefs.h"
5619
5620#ifdef __GNUC__
5621# define alloca __builtin_alloca
5622#else
Eric Pouech18ad24a2000-01-16 22:16:33 +00005623# ifdef _MSC_VER
5624# include <malloc.h>
5625# define alloca _alloca
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005626# else
Eric Pouech18ad24a2000-01-16 22:16:33 +00005627# if HAVE_ALLOCA_H
5628# include <alloca.h>
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005629# else
Eric Pouech18ad24a2000-01-16 22:16:33 +00005630# ifdef _AIX
5631 #pragma alloca
5632# else
5633# ifndef alloca /* predefined by HP cc +Olibcalls */
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005634char *alloca ();
Eric Pouech18ad24a2000-01-16 22:16:33 +00005635# endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005636# endif
5637# endif
5638# endif
5639#endif
5640
5641int main() {
5642char *p = (char *) alloca(1);
5643; return 0; }
5644EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005645if { (eval echo configure:5646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005646 rm -rf conftest*
5647 ac_cv_func_alloca_works=yes
5648else
5649 echo "configure: failed program was:" >&5
5650 cat conftest.$ac_ext >&5
5651 rm -rf conftest*
5652 ac_cv_func_alloca_works=no
5653fi
5654rm -f conftest*
5655fi
5656
5657echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5658if test $ac_cv_func_alloca_works = yes; then
5659 cat >> confdefs.h <<\EOF
5660#define HAVE_ALLOCA 1
5661EOF
5662
5663fi
5664
5665if test $ac_cv_func_alloca_works = no; then
5666 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5667 # that cause trouble. Some versions do not even contain alloca or
5668 # contain a buggy version. If you still want to use their alloca,
5669 # use ar to extract alloca.o from them instead of compiling alloca.c.
Eric Pouech18ad24a2000-01-16 22:16:33 +00005670 ALLOCA=alloca.${ac_objext}
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005671 cat >> confdefs.h <<\EOF
5672#define C_ALLOCA 1
5673EOF
5674
5675
5676echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00005677echo "configure:5678: checking whether alloca needs Cray hooks" >&5
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005678if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5679 echo $ac_n "(cached) $ac_c" 1>&6
5680else
5681 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005682#line 5683 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005683#include "confdefs.h"
5684#if defined(CRAY) && ! defined(CRAY2)
5685webecray
5686#else
5687wenotbecray
5688#endif
5689
5690EOF
5691if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5692 egrep "webecray" >/dev/null 2>&1; then
5693 rm -rf conftest*
5694 ac_cv_os_cray=yes
5695else
5696 rm -rf conftest*
5697 ac_cv_os_cray=no
5698fi
5699rm -f conftest*
5700
5701fi
5702
5703echo "$ac_t""$ac_cv_os_cray" 1>&6
5704if test $ac_cv_os_cray = yes; then
5705for ac_func in _getb67 GETB67 getb67; do
5706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00005707echo "configure:5708: checking for $ac_func" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005708if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5709 echo $ac_n "(cached) $ac_c" 1>&6
5710else
5711 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005712#line 5713 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005713#include "confdefs.h"
5714/* System header to define __stub macros and hopefully few prototypes,
5715 which can conflict with char $ac_func(); below. */
5716#include <assert.h>
5717/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005718/* We use char because int might match the return type of a gcc2
5719 builtin and then its argument prototype would still apply. */
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00005720char $ac_func();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005721
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005722int main() {
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005723
5724/* The GNU C library defines this for functions which it implements
5725 to always fail with ENOSYS. Some functions are actually named
5726 something starting with __ and the normal name is an alias. */
5727#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5728choke me
5729#else
5730$ac_func();
5731#endif
5732
5733; return 0; }
5734EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005735if { (eval echo configure:5736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005736 rm -rf conftest*
5737 eval "ac_cv_func_$ac_func=yes"
5738else
5739 echo "configure: failed program was:" >&5
5740 cat conftest.$ac_ext >&5
5741 rm -rf conftest*
5742 eval "ac_cv_func_$ac_func=no"
5743fi
5744rm -f conftest*
5745fi
5746
5747if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5748 echo "$ac_t""yes" 1>&6
5749 cat >> confdefs.h <<EOF
5750#define CRAY_STACKSEG_END $ac_func
5751EOF
5752
5753 break
5754else
5755 echo "$ac_t""no" 1>&6
5756fi
5757
5758done
5759fi
5760
5761echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00005762echo "configure:5763: checking stack direction for C alloca" >&5
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005763if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5764 echo $ac_n "(cached) $ac_c" 1>&6
5765else
5766 if test "$cross_compiling" = yes; then
5767 ac_cv_c_stack_direction=0
5768else
5769 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005770#line 5771 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005771#include "confdefs.h"
5772find_stack_direction ()
5773{
5774 static char *addr = 0;
5775 auto char dummy;
5776 if (addr == 0)
5777 {
5778 addr = &dummy;
5779 return find_stack_direction ();
5780 }
5781 else
5782 return (&dummy > addr) ? 1 : -1;
5783}
5784main ()
5785{
5786 exit (find_stack_direction() < 0);
5787}
5788EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005789if { (eval echo configure:5790: \"$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 +00005790then
5791 ac_cv_c_stack_direction=1
5792else
5793 echo "configure: failed program was:" >&5
5794 cat conftest.$ac_ext >&5
5795 rm -fr conftest*
5796 ac_cv_c_stack_direction=-1
5797fi
5798rm -fr conftest*
5799fi
5800
5801fi
5802
5803echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5804cat >> confdefs.h <<EOF
5805#define STACK_DIRECTION $ac_cv_c_stack_direction
5806EOF
5807
5808fi
5809
5810for ac_func in \
Eric Pouechf61d7e02000-04-29 16:44:19 +00005811 __libc_fork \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005812 _lwp_create \
5813 clone \
Andreas Mohra7ca2ba2001-01-12 23:07:11 +00005814 ecvt \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +00005815 finite \
5816 fpclass \
Marcus Meissner3f1ed522001-05-14 20:09:37 +00005817 ftruncate64 \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005818 getnetbyaddr \
5819 getnetbyname \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005820 getpagesize \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005821 getprotobyname \
5822 getprotobynumber \
Dimitrie O. Paun1ec253d2000-12-01 20:47:11 +00005823 getrlimit \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005824 getservbyport \
5825 getsockopt \
5826 inet_network \
Marcus Meissner3f1ed522001-05-14 20:09:37 +00005827 lseek64 \
Alexandre Julliard27bb3112000-11-29 17:48:06 +00005828 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005829 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +00005830 mmap \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +00005831 pread \
5832 pwrite \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005833 rfork \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005834 select \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005835 sendmsg \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005836 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005837 sigaltstack \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005838 statfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +00005839 strcasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005840 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +00005841 strncasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005842 tcgetattr \
5843 timegm \
5844 usleep \
5845 vfscanf \
5846 wait4 \
5847 waitpid \
5848
5849do
5850echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00005851echo "configure:5852: checking for $ac_func" >&5
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005852if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5853 echo $ac_n "(cached) $ac_c" 1>&6
5854else
5855 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005856#line 5857 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005857#include "confdefs.h"
5858/* System header to define __stub macros and hopefully few prototypes,
5859 which can conflict with char $ac_func(); below. */
5860#include <assert.h>
5861/* Override any gcc2 internal prototype to avoid an error. */
5862/* We use char because int might match the return type of a gcc2
5863 builtin and then its argument prototype would still apply. */
5864char $ac_func();
5865
5866int main() {
5867
5868/* The GNU C library defines this for functions which it implements
5869 to always fail with ENOSYS. Some functions are actually named
5870 something starting with __ and the normal name is an alias. */
5871#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5872choke me
5873#else
5874$ac_func();
5875#endif
5876
5877; return 0; }
5878EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005879if { (eval echo configure:5880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005880 rm -rf conftest*
5881 eval "ac_cv_func_$ac_func=yes"
5882else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005883 echo "configure: failed program was:" >&5
5884 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005885 rm -rf conftest*
5886 eval "ac_cv_func_$ac_func=no"
5887fi
5888rm -f conftest*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005889fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005890
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005891if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5892 echo "$ac_t""yes" 1>&6
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00005893 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005894 cat >> confdefs.h <<EOF
5895#define $ac_tr_func 1
5896EOF
5897
5898else
5899 echo "$ac_t""no" 1>&6
5900fi
5901done
5902
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005903
5904
5905for ac_hdr in \
Patrik Stridvall96336321999-10-24 22:13:47 +00005906 arpa/inet.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005907 arpa/nameser.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005908 elf.h \
5909 float.h \
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005910 ieeefp.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005911 libio.h \
Hidenori Takeshima01f78aa2000-07-09 12:19:09 +00005912 libutil.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005913 link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005914 linux/cdrom.h \
Marcus Meissnerc9b3b2e2000-12-12 00:38:58 +00005915 linux/input.h \
Marcus Meissner028e9a11999-08-04 15:07:56 +00005916 linux/joystick.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005917 linux/ucdrom.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005918 net/if.h \
Hidenori Takeshima5d1a6382000-11-26 04:00:53 +00005919 netdb.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005920 netinet/in.h \
Patrik Stridvall7a4e5992000-12-01 23:53:46 +00005921 netinet/in_systm.h \
5922 netinet/ip.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005923 netinet/tcp.h \
Marcus Meissner2d7be871999-12-05 23:06:40 +00005924 pty.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005925 resolv.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005926 sched.h \
5927 socket.h \
Bang Jun-Youngeda758e2001-12-14 22:47:19 +00005928 stdint.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005929 strings.h \
5930 sys/cdio.h \
Howard Abrams13277481999-07-10 13:16:29 +00005931 sys/errno.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005932 sys/file.h \
5933 sys/filio.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005934 sys/ipc.h \
Eric Pouech624cbd72001-08-10 22:29:21 +00005935 sys/link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005936 sys/lwp.h \
Howard Abrams13277481999-07-10 13:16:29 +00005937 sys/mman.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005938 sys/modem.h \
5939 sys/mount.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005940 sys/msg.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005941 sys/param.h \
Dimitrie O. Paun2af03e42000-11-29 20:04:09 +00005942 sys/ptrace.h \
Ulrich Weigand8a1bdb32000-01-30 22:22:22 +00005943 sys/reg.h \
Howard Abrams13277481999-07-10 13:16:29 +00005944 sys/signal.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005945 sys/shm.h \
5946 sys/socket.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005947 sys/sockio.h \
5948 sys/statfs.h \
5949 sys/strtio.h \
5950 sys/syscall.h \
Dimitrie O. Paun2af03e42000-11-29 20:04:09 +00005951 sys/user.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005952 sys/wait.h \
5953 sys/v86.h \
5954 sys/v86intr.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005955 sys/vfs.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005956 sys/vm86.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005957 syscall.h \
Patrik Stridvall7a4e5992000-12-01 23:53:46 +00005958 ucontext.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005959
Alexandre Julliard02e90081998-01-04 17:49:09 +00005960do
5961ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5962echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00005963echo "configure:5964: checking for $ac_hdr" >&5
Alexandre Julliard02e90081998-01-04 17:49:09 +00005964if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5965 echo $ac_n "(cached) $ac_c" 1>&6
5966else
5967 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00005968#line 5969 "configure"
Alexandre Julliard02e90081998-01-04 17:49:09 +00005969#include "confdefs.h"
5970#include <$ac_hdr>
5971EOF
5972ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliard18d75732002-01-29 03:02:50 +00005973{ (eval echo configure:5974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00005974ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliard02e90081998-01-04 17:49:09 +00005975if test -z "$ac_err"; then
5976 rm -rf conftest*
5977 eval "ac_cv_header_$ac_safe=yes"
5978else
5979 echo "$ac_err" >&5
5980 echo "configure: failed program was:" >&5
5981 cat conftest.$ac_ext >&5
5982 rm -rf conftest*
5983 eval "ac_cv_header_$ac_safe=no"
5984fi
5985rm -f conftest*
5986fi
5987if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5988 echo "$ac_t""yes" 1>&6
5989 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5990 cat >> confdefs.h <<EOF
5991#define $ac_tr_hdr 1
5992EOF
5993
5994else
5995 echo "$ac_t""no" 1>&6
5996fi
5997done
5998
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005999echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00006000echo "configure:6001: checking whether stat file-mode macros are broken" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006001if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
6002 echo $ac_n "(cached) $ac_c" 1>&6
6003else
6004 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006005#line 6006 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006006#include "confdefs.h"
6007#include <sys/types.h>
6008#include <sys/stat.h>
6009
6010#if defined(S_ISBLK) && defined(S_IFDIR)
6011# if S_ISBLK (S_IFDIR)
6012You lose.
6013# endif
6014#endif
6015
6016#if defined(S_ISBLK) && defined(S_IFCHR)
6017# if S_ISBLK (S_IFCHR)
6018You lose.
6019# endif
6020#endif
6021
6022#if defined(S_ISLNK) && defined(S_IFREG)
6023# if S_ISLNK (S_IFREG)
6024You lose.
6025# endif
6026#endif
6027
6028#if defined(S_ISSOCK) && defined(S_IFREG)
6029# if S_ISSOCK (S_IFREG)
6030You lose.
6031# endif
6032#endif
6033
6034EOF
6035if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6036 egrep "You lose" >/dev/null 2>&1; then
6037 rm -rf conftest*
6038 ac_cv_header_stat_broken=yes
6039else
6040 rm -rf conftest*
6041 ac_cv_header_stat_broken=no
6042fi
6043rm -f conftest*
6044
6045fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006046
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006047echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
6048if test $ac_cv_header_stat_broken = yes; then
6049 cat >> confdefs.h <<\EOF
6050#define STAT_MACROS_BROKEN 1
6051EOF
6052
6053fi
6054
Alexandre Julliard2487cce1999-04-18 14:43:16 +00006055
6056
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006057echo $ac_n "checking for working const""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00006058echo "configure:6059: checking for working const" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006059if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6060 echo $ac_n "(cached) $ac_c" 1>&6
6061else
6062 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006063#line 6064 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006064#include "confdefs.h"
6065
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006066int main() {
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006067
6068/* Ultrix mips cc rejects this. */
Patrik Stridvall87f48fc2001-06-19 03:30:13 +00006069typedef int charset[2]; const charset x;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006070/* SunOS 4.1.1 cc rejects this. */
6071char const *const *ccp;
6072char **p;
6073/* NEC SVR4.0.2 mips cc rejects this. */
6074struct point {int x, y;};
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006075static struct point const zero = {0,0};
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006076/* AIX XL C 1.02.0.0 rejects this.
6077 It does not let you subtract one const X* pointer from another in an arm
6078 of an if-expression whose if-part is not a constant expression */
6079const char *g = "string";
6080ccp = &g + (g ? g-g : 0);
6081/* HPUX 7.0 cc rejects these. */
6082++ccp;
6083p = (char**) ccp;
6084ccp = (char const *const *) p;
6085{ /* SCO 3.2v4 cc rejects this. */
6086 char *t;
6087 char const *s = 0 ? (char *) 0 : (char const *) 0;
6088
6089 *t++ = 0;
6090}
6091{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6092 int x[] = {25, 17};
6093 const int *foo = &x[0];
6094 ++foo;
6095}
6096{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6097 typedef const int *iptr;
6098 iptr p = 0;
6099 ++p;
6100}
6101{ /* AIX XL C 1.02.0.0 rejects this saying
6102 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6103 struct s { int j; const int *ap[3]; };
6104 struct s *b; b->j = 5;
6105}
6106{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6107 const int foo = 10;
6108}
6109
6110; return 0; }
6111EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006112if { (eval echo configure:6113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006113 rm -rf conftest*
6114 ac_cv_c_const=yes
6115else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006116 echo "configure: failed program was:" >&5
6117 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006118 rm -rf conftest*
6119 ac_cv_c_const=no
6120fi
6121rm -f conftest*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006122fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006123
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006124echo "$ac_t""$ac_cv_c_const" 1>&6
6125if test $ac_cv_c_const = no; then
6126 cat >> confdefs.h <<\EOF
6127#define const
6128EOF
6129
6130fi
6131
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00006132echo $ac_n "checking for inline""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00006133echo "configure:6134: checking for inline" >&5
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00006134if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6135 echo $ac_n "(cached) $ac_c" 1>&6
6136else
6137 ac_cv_c_inline=no
6138for ac_kw in inline __inline__ __inline; do
6139 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006140#line 6141 "configure"
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00006141#include "confdefs.h"
6142
6143int main() {
Patrik Stridvall87f48fc2001-06-19 03:30:13 +00006144} $ac_kw foo() {
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00006145; return 0; }
6146EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006147if { (eval echo configure:6148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00006148 rm -rf conftest*
6149 ac_cv_c_inline=$ac_kw; break
6150else
6151 echo "configure: failed program was:" >&5
6152 cat conftest.$ac_ext >&5
6153fi
6154rm -f conftest*
6155done
6156
6157fi
6158
6159echo "$ac_t""$ac_cv_c_inline" 1>&6
6160case "$ac_cv_c_inline" in
6161 inline | yes) ;;
6162 no) cat >> confdefs.h <<\EOF
6163#define inline
6164EOF
6165 ;;
6166 *) cat >> confdefs.h <<EOF
6167#define inline $ac_cv_c_inline
6168EOF
6169 ;;
6170esac
6171
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006172echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00006173echo "configure:6174: checking for ANSI C header files" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006174if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6175 echo $ac_n "(cached) $ac_c" 1>&6
6176else
6177 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006178#line 6179 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006179#include "confdefs.h"
6180#include <stdlib.h>
6181#include <stdarg.h>
6182#include <string.h>
6183#include <float.h>
6184EOF
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00006185ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliard18d75732002-01-29 03:02:50 +00006186{ (eval echo configure:6187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00006187ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006188if test -z "$ac_err"; then
6189 rm -rf conftest*
6190 ac_cv_header_stdc=yes
6191else
6192 echo "$ac_err" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006193 echo "configure: failed program was:" >&5
6194 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006195 rm -rf conftest*
6196 ac_cv_header_stdc=no
6197fi
6198rm -f conftest*
6199
6200if test $ac_cv_header_stdc = yes; then
6201 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6202cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006203#line 6204 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006204#include "confdefs.h"
6205#include <string.h>
6206EOF
6207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6208 egrep "memchr" >/dev/null 2>&1; then
6209 :
6210else
6211 rm -rf conftest*
6212 ac_cv_header_stdc=no
6213fi
6214rm -f conftest*
6215
6216fi
6217
6218if test $ac_cv_header_stdc = yes; then
6219 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6220cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006221#line 6222 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006222#include "confdefs.h"
6223#include <stdlib.h>
6224EOF
6225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6226 egrep "free" >/dev/null 2>&1; then
6227 :
6228else
6229 rm -rf conftest*
6230 ac_cv_header_stdc=no
6231fi
6232rm -f conftest*
6233
6234fi
6235
6236if test $ac_cv_header_stdc = yes; then
6237 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6238if test "$cross_compiling" = yes; then
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006239 :
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006240else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006241 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006242#line 6243 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006243#include "confdefs.h"
6244#include <ctype.h>
6245#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6246#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6247#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6248int main () { int i; for (i = 0; i < 256; i++)
6249if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6250exit (0); }
6251
6252EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006253if { (eval echo configure:6254: \"$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 +00006254then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006255 :
6256else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006257 echo "configure: failed program was:" >&5
6258 cat conftest.$ac_ext >&5
6259 rm -fr conftest*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006260 ac_cv_header_stdc=no
6261fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006262rm -fr conftest*
6263fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006264
6265fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006266fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006267
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006268echo "$ac_t""$ac_cv_header_stdc" 1>&6
6269if test $ac_cv_header_stdc = yes; then
6270 cat >> confdefs.h <<\EOF
6271#define STDC_HEADERS 1
6272EOF
6273
6274fi
6275
6276echo $ac_n "checking for size_t""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00006277echo "configure:6278: checking for size_t" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006278if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6279 echo $ac_n "(cached) $ac_c" 1>&6
6280else
6281 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006282#line 6283 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006283#include "confdefs.h"
6284#include <sys/types.h>
6285#if STDC_HEADERS
6286#include <stdlib.h>
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006287#include <stddef.h>
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006288#endif
6289EOF
6290if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Eric Pouech18ad24a2000-01-16 22:16:33 +00006291 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 +00006292 rm -rf conftest*
6293 ac_cv_type_size_t=yes
6294else
6295 rm -rf conftest*
6296 ac_cv_type_size_t=no
6297fi
6298rm -f conftest*
6299
6300fi
6301echo "$ac_t""$ac_cv_type_size_t" 1>&6
6302if test $ac_cv_type_size_t = no; then
6303 cat >> confdefs.h <<\EOF
6304#define size_t unsigned
6305EOF
6306
6307fi
6308
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006309echo $ac_n "checking size of long long""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00006310echo "configure:6311: checking size of long long" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006311if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
6312 echo $ac_n "(cached) $ac_c" 1>&6
6313else
6314 if test "$cross_compiling" = yes; then
6315 ac_cv_sizeof_long_long=0
6316else
6317 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006318#line 6319 "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006319#include "confdefs.h"
6320#include <stdio.h>
Patrik Stridvall87f48fc2001-06-19 03:30:13 +00006321#include <sys/types.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006322main()
6323{
6324 FILE *f=fopen("conftestval", "w");
6325 if (!f) exit(1);
6326 fprintf(f, "%d\n", sizeof(long long));
6327 exit(0);
6328}
6329EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006330if { (eval echo configure:6331: \"$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 +00006331then
6332 ac_cv_sizeof_long_long=`cat conftestval`
6333else
6334 echo "configure: failed program was:" >&5
6335 cat conftest.$ac_ext >&5
6336 rm -fr conftest*
6337 ac_cv_sizeof_long_long=0
6338fi
6339rm -fr conftest*
6340fi
6341
6342fi
6343echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
6344cat >> confdefs.h <<EOF
6345#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6346EOF
6347
6348
6349
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00006350echo $ac_n "checking whether linux/input.h is for real""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00006351echo "configure:6352: checking whether linux/input.h is for real" >&5
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006352if eval "test \"`echo '$''{'wine_cv_linux_input_h'+set}'`\" = set"; then
6353 echo $ac_n "(cached) $ac_c" 1>&6
6354else
6355 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006356#line 6357 "configure"
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006357#include "confdefs.h"
6358
6359 #include <linux/input.h>
6360
6361int main() {
6362
6363 int foo = EVIOCGBIT(EV_ABS,42);
6364 int bar = BTN_PINKIE;
6365 int fortytwo = 42;
6366
6367; return 0; }
6368EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006369if { (eval echo configure:6370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006370 rm -rf conftest*
6371 wine_cv_linux_input_h=yes
6372else
6373 echo "configure: failed program was:" >&5
6374 cat conftest.$ac_ext >&5
6375 rm -rf conftest*
6376 wine_cv_linux_input_h=no
6377fi
6378rm -f conftest*
6379
6380fi
6381
6382echo "$ac_t""$wine_cv_linux_input_h" 1>&6
6383 if test "$wine_cv_linux_input_h" = "yes"
6384 then
6385 cat >> confdefs.h <<\EOF
6386#define HAVE_CORRECT_LINUXINPUT_H 1
6387EOF
6388
6389 fi
6390
Rein Klazesff7a61f2000-09-24 19:41:57 +00006391
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00006392echo $ac_n "checking whether we can use re-entrant gethostbyname_r Linux style""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00006393echo "configure:6394: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
Rein Klazesff7a61f2000-09-24 19:41:57 +00006394if eval "test \"`echo '$''{'wine_cv_linux_gethostbyname_r_6'+set}'`\" = set"; then
6395 echo $ac_n "(cached) $ac_c" 1>&6
6396else
6397 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006398#line 6399 "configure"
Rein Klazesff7a61f2000-09-24 19:41:57 +00006399#include "confdefs.h"
6400
6401#include <netdb.h>
6402
6403int main() {
6404
6405 char *name=NULL;
6406 struct hostent he;
6407 struct hostent *result;
6408 char *buf=NULL;
6409 int bufsize=0;
6410 int res,errnr;
6411 char *addr=NULL;
6412 int addrlen=0;
6413 int addrtype=0;
6414 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
6415 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
6416
6417; return 0; }
6418EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006419if { (eval echo configure:6420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Rein Klazesff7a61f2000-09-24 19:41:57 +00006420 rm -rf conftest*
6421 wine_cv_linux_gethostbyname_r_6=yes
6422else
6423 echo "configure: failed program was:" >&5
6424 cat conftest.$ac_ext >&5
6425 rm -rf conftest*
6426 wine_cv_linux_gethostbyname_r_6=no
6427
6428fi
6429rm -f conftest*
6430
6431fi
6432
6433echo "$ac_t""$wine_cv_linux_gethostbyname_r_6" 1>&6
6434 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
6435 then
6436 cat >> confdefs.h <<\EOF
6437#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
6438EOF
6439
6440 fi
6441
Marcus Meissner028e9a11999-08-04 15:07:56 +00006442if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006443then
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00006444 echo $ac_n "checking whether linux/joystick.h uses the Linux 2.2+ API""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00006445echo "configure:6446: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
Marcus Meissner028e9a11999-08-04 15:07:56 +00006446if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006447 echo $ac_n "(cached) $ac_c" 1>&6
6448else
6449 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006450#line 6451 "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006451#include "confdefs.h"
6452
Marcus Meissner028e9a11999-08-04 15:07:56 +00006453 #include <sys/ioctl.h>
6454 #include <linux/joystick.h>
6455
6456 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +00006457 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
6458 #error "no 2.2 header"
6459 #endif
Marcus Meissner028e9a11999-08-04 15:07:56 +00006460
6461int main() {
6462/*empty*/
6463; return 0; }
6464EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006465if { (eval echo configure:6466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Marcus Meissner028e9a11999-08-04 15:07:56 +00006466 rm -rf conftest*
6467 wine_cv_linux_joystick_22_api=yes
6468else
6469 echo "configure: failed program was:" >&5
6470 cat conftest.$ac_ext >&5
6471 rm -rf conftest*
6472 wine_cv_linux_joystick_22_api=no
6473fi
6474rm -f conftest*
6475
6476fi
6477
6478echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
Rein Klazes87d224a2000-04-24 17:33:49 +00006479 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +00006480 then
6481 cat >> confdefs.h <<\EOF
6482#define HAVE_LINUX_22_JOYSTICK_API 1
6483EOF
6484
6485 fi
6486fi
6487
6488
6489if test "$ac_cv_header_sys_vfs_h" = "yes"
6490then
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00006491 echo $ac_n "checking whether sys/vfs.h defines statfs""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00006492echo "configure:6493: checking whether sys/vfs.h defines statfs" >&5
Marcus Meissner028e9a11999-08-04 15:07:56 +00006493if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
6494 echo $ac_n "(cached) $ac_c" 1>&6
6495else
6496 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006497#line 6498 "configure"
Marcus Meissner028e9a11999-08-04 15:07:56 +00006498#include "confdefs.h"
6499
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006500 #include <sys/types.h>
6501 #ifdef HAVE_SYS_PARAM_H
6502 # include <sys/param.h>
6503 #endif
6504 #include <sys/vfs.h>
6505
6506int main() {
6507
6508 struct statfs stfs;
6509
6510 memset(&stfs,0,sizeof(stfs));
6511
6512; return 0; }
6513EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006514if { (eval echo configure:6515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006515 rm -rf conftest*
6516 wine_cv_sys_vfs_has_statfs=yes
6517else
6518 echo "configure: failed program was:" >&5
6519 cat conftest.$ac_ext >&5
6520 rm -rf conftest*
6521 wine_cv_sys_vfs_has_statfs=no
6522
6523fi
6524rm -f conftest*
6525
6526fi
6527
6528echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
6529 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
6530 then
6531 cat >> confdefs.h <<\EOF
6532#define STATFS_DEFINED_BY_SYS_VFS 1
6533EOF
6534
6535 fi
6536fi
6537
6538if test "$ac_cv_header_sys_statfs_h" = "yes"
6539then
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00006540 echo $ac_n "checking whether sys/statfs.h defines statfs""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00006541echo "configure:6542: checking whether sys/statfs.h defines statfs" >&5
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006542if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
6543 echo $ac_n "(cached) $ac_c" 1>&6
6544else
6545 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006546#line 6547 "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006547#include "confdefs.h"
6548
6549 #include <sys/types.h>
6550 #ifdef HAVE_SYS_PARAM_H
6551 # include <sys/param.h>
6552 #endif
6553 #include <sys/statfs.h>
6554
6555int main() {
6556
6557 struct statfs stfs;
6558
6559; return 0; }
6560EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006561if { (eval echo configure:6562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006562 rm -rf conftest*
6563 wine_cv_sys_statfs_has_statfs=yes
6564else
6565 echo "configure: failed program was:" >&5
6566 cat conftest.$ac_ext >&5
6567 rm -rf conftest*
6568 wine_cv_sys_statfs_has_statfs=no
6569
6570fi
6571rm -f conftest*
6572
6573fi
6574
6575echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
6576 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
6577 then
6578 cat >> confdefs.h <<\EOF
6579#define STATFS_DEFINED_BY_SYS_STATFS 1
6580EOF
6581
6582 fi
6583fi
6584
6585if test "$ac_cv_header_sys_mount_h" = "yes"
6586then
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00006587 echo $ac_n "checking whether sys/mount.h defines statfs""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00006588echo "configure:6589: checking whether sys/mount.h defines statfs" >&5
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006589if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
6590 echo $ac_n "(cached) $ac_c" 1>&6
6591else
6592 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006593#line 6594 "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006594#include "confdefs.h"
6595
6596 #include <sys/types.h>
6597 #ifdef HAVE_SYS_PARAM_H
6598 # include <sys/param.h>
6599 #endif
6600 #include <sys/mount.h>
6601
6602int main() {
6603
6604 struct statfs stfs;
6605
6606; return 0; }
6607EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006608if { (eval echo configure:6609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006609 rm -rf conftest*
6610 wine_cv_sys_mount_has_statfs=yes
6611else
6612 echo "configure: failed program was:" >&5
6613 cat conftest.$ac_ext >&5
6614 rm -rf conftest*
6615 wine_cv_sys_mount_has_statfs=no
6616
6617fi
6618rm -f conftest*
6619
6620fi
6621
6622echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
6623 if test "$wine_cv_sys_mount_has_statfs" = "yes"
6624 then
6625 cat >> confdefs.h <<\EOF
6626#define STATFS_DEFINED_BY_SYS_MOUNT 1
6627EOF
6628
6629 fi
6630fi
6631
6632
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00006633echo $ac_n "checking for statfs.f_bfree""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00006634echo "configure:6635: checking for statfs.f_bfree" >&5
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006635if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
6636 echo $ac_n "(cached) $ac_c" 1>&6
6637else
6638 if test "x$statfs_bfree" = "xno"
6639 then
6640 wine_cv_statfs_bfree=no
6641 else
6642 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006643#line 6644 "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006644#include "confdefs.h"
6645
6646 #include <sys/types.h>
6647 #ifdef HAVE_SYS_PARAM_H
6648 # include <sys/param.h>
6649 #endif
6650 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6651 # include <sys/mount.h>
6652 #else
6653 # ifdef STATFS_DEFINED_BY_SYS_VFS
6654 # include <sys/vfs.h>
6655 # else
6656 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6657 # include <sys/statfs.h>
6658 # endif
6659 # endif
6660 #endif
6661
6662int main() {
6663
6664 struct statfs stfs;
6665
6666 stfs.f_bfree++;
6667
6668; return 0; }
6669EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006670if { (eval echo configure:6671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006671 rm -rf conftest*
6672 wine_cv_statfs_bfree=yes
6673else
6674 echo "configure: failed program was:" >&5
6675 cat conftest.$ac_ext >&5
6676 rm -rf conftest*
6677 wine_cv_statfs_bfree=no
6678
6679fi
6680rm -f conftest*
6681 fi
6682fi
6683
6684echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
6685if test "$wine_cv_statfs_bfree" = "yes"
6686then
6687 cat >> confdefs.h <<\EOF
6688#define STATFS_HAS_BFREE 1
6689EOF
6690
6691fi
6692
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00006693echo $ac_n "checking for statfs.f_bavail""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00006694echo "configure:6695: checking for statfs.f_bavail" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006695if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
6696 echo $ac_n "(cached) $ac_c" 1>&6
6697else
6698 if test "x$statfs_bavail" = "xno"
6699 then
6700 wine_cv_statfs_bavail=no
6701 else
6702 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006703#line 6704 "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006704#include "confdefs.h"
6705
Alexandre Julliard46ea8b31998-05-03 19:01:20 +00006706 #include <sys/types.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006707 #ifdef HAVE_SYS_PARAM_H
6708 # include <sys/param.h>
6709 #endif
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006710 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006711 # include <sys/mount.h>
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006712 #else
6713 # ifdef STATFS_DEFINED_BY_SYS_VFS
6714 # include <sys/vfs.h>
6715 # else
6716 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6717 # include <sys/statfs.h>
6718 # endif
6719 # endif
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006720 #endif
6721
6722int main() {
6723
6724 struct statfs stfs;
6725
6726 stfs.f_bavail++;
6727
6728; return 0; }
6729EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006730if { (eval echo configure:6731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006731 rm -rf conftest*
6732 wine_cv_statfs_bavail=yes
6733else
6734 echo "configure: failed program was:" >&5
6735 cat conftest.$ac_ext >&5
6736 rm -rf conftest*
6737 wine_cv_statfs_bavail=no
6738
6739fi
6740rm -f conftest*
6741 fi
6742fi
6743
6744echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
6745if test "$wine_cv_statfs_bavail" = "yes"
6746then
6747 cat >> confdefs.h <<\EOF
6748#define STATFS_HAS_BAVAIL 1
6749EOF
6750
6751fi
6752
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006753
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00006754echo $ac_n "checking for msg_accrights in struct msghdr""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00006755echo "configure:6756: checking for msg_accrights in struct msghdr" >&5
Alexandre Julliard829fe321998-07-26 14:27:39 +00006756if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
6757 echo $ac_n "(cached) $ac_c" 1>&6
6758else
6759 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006760#line 6761 "configure"
Alexandre Julliard829fe321998-07-26 14:27:39 +00006761#include "confdefs.h"
6762#include <sys/types.h>
6763#include <sys/socket.h>
6764int main() {
6765struct msghdr hdr; hdr.msg_accrights=0
6766; return 0; }
6767EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006768if { (eval echo configure:6769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliard829fe321998-07-26 14:27:39 +00006769 rm -rf conftest*
6770 ac_cv_c_msg_accrights="yes"
6771else
6772 echo "configure: failed program was:" >&5
6773 cat conftest.$ac_ext >&5
6774 rm -rf conftest*
6775 ac_cv_c_msg_accrights="no"
6776fi
6777rm -f conftest*
6778fi
6779
6780echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
6781if test "$ac_cv_c_msg_accrights" = "yes"
6782then
6783 cat >> confdefs.h <<\EOF
6784#define HAVE_MSGHDR_ACCRIGHTS 1
6785EOF
6786
6787fi
6788
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00006789
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00006790echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00006791echo "configure:6792: checking for sa_len in struct sockaddr" >&5
Patrik Stridvall09da9662001-07-08 22:30:50 +00006792if eval "test \"`echo '$''{'ac_cv_c_sockaddr_sa_len'+set}'`\" = set"; then
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00006793 echo $ac_n "(cached) $ac_c" 1>&6
6794else
6795 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006796#line 6797 "configure"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00006797#include "confdefs.h"
Juergen Lock2d33ab92000-02-13 16:03:29 +00006798#include <sys/types.h>
6799#include <sys/socket.h>
Patrik Stridvall09da9662001-07-08 22:30:50 +00006800
6801int main() {
6802static struct sockaddr addr; addr.sa_len = 1
6803; return 0; }
6804EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006805if { (eval echo configure:6806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Patrik Stridvall09da9662001-07-08 22:30:50 +00006806 rm -rf conftest*
6807 ac_cv_c_sockaddr_sa_len="yes"
6808else
6809 echo "configure: failed program was:" >&5
6810 cat conftest.$ac_ext >&5
6811 rm -rf conftest*
6812 ac_cv_c_sockaddr_sa_len="no"
6813fi
6814rm -f conftest*
6815fi
6816
6817echo "$ac_t""$ac_cv_c_sockaddr_sa_len" 1>&6
6818if test "$ac_cv_c_sockaddr_sa_len" = "yes"
6819then
6820 cat >> confdefs.h <<\EOF
6821#define HAVE_SOCKADDR_SA_LEN 1
6822EOF
6823
6824fi
6825
6826
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00006827echo $ac_n "checking for sun_len in struct sockaddr_un""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00006828echo "configure:6829: checking for sun_len in struct sockaddr_un" >&5
Patrik Stridvall09da9662001-07-08 22:30:50 +00006829if eval "test \"`echo '$''{'ac_cv_c_sockaddr_sun_len'+set}'`\" = set"; then
6830 echo $ac_n "(cached) $ac_c" 1>&6
6831else
6832 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006833#line 6834 "configure"
Patrik Stridvall09da9662001-07-08 22:30:50 +00006834#include "confdefs.h"
6835#include <sys/types.h>
6836#include <sys/socket.h>
Juergen Lock2d33ab92000-02-13 16:03:29 +00006837#include <sys/un.h>
6838int main() {
6839static struct sockaddr_un addr; addr.sun_len = 1
6840; return 0; }
6841EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006842if { (eval echo configure:6843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Juergen Lock2d33ab92000-02-13 16:03:29 +00006843 rm -rf conftest*
Patrik Stridvall09da9662001-07-08 22:30:50 +00006844 ac_cv_c_sockaddr_sun_len="yes"
Juergen Lock2d33ab92000-02-13 16:03:29 +00006845else
6846 echo "configure: failed program was:" >&5
6847 cat conftest.$ac_ext >&5
6848 rm -rf conftest*
Patrik Stridvall09da9662001-07-08 22:30:50 +00006849 ac_cv_c_sockaddr_sun_len="no"
Juergen Lock2d33ab92000-02-13 16:03:29 +00006850fi
6851rm -f conftest*
6852fi
6853
Patrik Stridvall09da9662001-07-08 22:30:50 +00006854echo "$ac_t""$ac_cv_c_sockaddr_sun_len" 1>&6
6855if test "$ac_cv_c_sockaddr_sun_len" = "yes"
Juergen Lock2d33ab92000-02-13 16:03:29 +00006856then
6857 cat >> confdefs.h <<\EOF
6858#define HAVE_SOCKADDR_SUN_LEN 1
6859EOF
6860
6861fi
6862
6863
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00006864echo $ac_n "checking whether we need to define __i386__""... $ac_c" 1>&6
Alexandre Julliard18d75732002-01-29 03:02:50 +00006865echo "configure:6866: checking whether we need to define __i386__" >&5
Juergen Lock2d33ab92000-02-13 16:03:29 +00006866if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6867 echo $ac_n "(cached) $ac_c" 1>&6
6868else
6869 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00006870#line 6871 "configure"
Juergen Lock2d33ab92000-02-13 16:03:29 +00006871#include "confdefs.h"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00006872#if (defined(i386) || defined(__i386)) && !defined(__i386__)
6873yes
6874#endif
6875EOF
6876if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6877 egrep "yes" >/dev/null 2>&1; then
6878 rm -rf conftest*
6879 ac_cv_cpp_def_i386="yes"
6880else
6881 rm -rf conftest*
6882 ac_cv_cpp_def_i386="no"
6883fi
6884rm -f conftest*
6885
6886fi
6887
6888echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
6889if test "$ac_cv_cpp_def_i386" = "yes"
6890then
6891 CFLAGS="$CFLAGS -D__i386__"
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006892 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00006893fi
6894
Marcus Meissnera7f5cb51999-04-16 08:47:41 +00006895GCC_NO_BUILTIN=""
6896if test "$GCC" = "yes"
6897then
6898 GCC_NO_BUILTIN="-fno-builtin"
6899fi
6900
6901
Alexandre Julliard829fe321998-07-26 14:27:39 +00006902
François Gouget14259412001-11-06 20:57:11 +00006903cat >> confdefs.h <<\EOF
6904#define __WINE_CONFIG_H 1
6905EOF
6906
6907
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +00006908
6909
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006910MAKE_RULES=Make.rules
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006911
6912
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +00006913MAKE_DLL_RULES=dlls/Makedll.rules
6914
6915
Alexandre Julliard626f4252000-11-10 23:35:20 +00006916MAKE_PROG_RULES=programs/Makeprog.rules
6917
6918
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006919trap '' 1 2 15
6920cat > confcache <<\EOF
6921# This file is a shell script that caches the results of configure
6922# tests run on this system so they can be shared between configure
6923# scripts and configure runs. It is not useful on other systems.
6924# If it contains results you don't want to keep, you may remove or edit it.
6925#
6926# By default, configure uses ./config.cache as the cache file,
6927# creating it if it does not exist already. You can give configure
6928# the --cache-file=FILE option to use a different cache file; that is
6929# what configure does when it calls configure scripts in
6930# subdirectories, so they share the cache.
6931# Giving --cache-file=/dev/null disables caching, for debugging configure.
6932# config.status only pays attention to the cache file if you give it the
6933# --recheck option to rerun configure.
6934#
6935EOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006936# The following way of writing the cache mishandles newlines in values,
6937# but we know of no workaround that is simple, portable, and efficient.
6938# So, don't put newlines in cache variables' values.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006939# Ultrix sh set writes to stderr and can't be redirected directly,
6940# and sets the high bit in the cache file unless we assign to the vars.
6941(set) 2>&1 |
Eric Pouech18ad24a2000-01-16 22:16:33 +00006942 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006943 *ac_space=\ *)
6944 # `set' does not quote correctly, so add quotes (double-quote substitution
6945 # turns \\\\ into \\, and sed turns \\ into \).
6946 sed -n \
6947 -e "s/'/'\\\\''/g" \
6948 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6949 ;;
6950 *)
6951 # `set' quotes correctly as required by POSIX, so do not add quotes.
6952 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6953 ;;
6954 esac >> confcache
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006955if cmp -s $cache_file confcache; then
6956 :
6957else
6958 if test -w $cache_file; then
6959 echo "updating cache $cache_file"
6960 cat confcache > $cache_file
6961 else
6962 echo "not updating unwritable cache $cache_file"
6963 fi
6964fi
6965rm -f confcache
6966
6967trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6968
6969test "x$prefix" = xNONE && prefix=$ac_default_prefix
6970# Let make expand exec_prefix.
6971test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6972
6973# Any assignment to VPATH causes Sun make to only execute
6974# the first set of double-colon rules, so remove it if not needed.
6975# If there is a colon in the path, we need to keep it.
6976if test "x$srcdir" = x.; then
6977 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6978fi
6979
6980trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6981
Alexandre Julliard18f92e71996-07-17 20:02:21 +00006982DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006983
6984# Without the "./", some shells look in PATH for config.status.
6985: ${CONFIG_STATUS=./config.status}
6986
6987echo creating $CONFIG_STATUS
6988rm -f $CONFIG_STATUS
6989cat > $CONFIG_STATUS <<EOF
6990#! /bin/sh
6991# Generated automatically by configure.
6992# Run this file to recreate the current configuration.
6993# This directory was configured as follows,
6994# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6995#
6996# $0 $ac_configure_args
6997#
6998# Compiler output produced by configure, useful for debugging
6999# configure, is in ./config.log if it exists.
7000
7001ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7002for ac_option
7003do
7004 case "\$ac_option" in
7005 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7006 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7007 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7008 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Eric Pouech18ad24a2000-01-16 22:16:33 +00007009 echo "$CONFIG_STATUS generated by autoconf version 2.13"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007010 exit 0 ;;
7011 -help | --help | --hel | --he | --h)
7012 echo "\$ac_cs_usage"; exit 0 ;;
7013 *) echo "\$ac_cs_usage"; exit 1 ;;
7014 esac
7015done
7016
7017ac_given_srcdir=$srcdir
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007018ac_given_INSTALL="$INSTALL"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007019
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007020trap 'rm -fr `echo "
7021Make.rules
Alexandre Julliard626f4252000-11-10 23:35:20 +00007022dlls/Makedll.rules
7023programs/Makeprog.rules
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007024Makefile
Joseph Pranevich791cd6a1998-12-02 19:58:08 +00007025console/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007026controls/Makefile
7027debugger/Makefile
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00007028dlls/Makefile
Juergen Schmiedf7b0de31999-01-03 12:48:29 +00007029dlls/advapi32/Makefile
Hidenori Takeshima1c53a7f2001-11-06 00:41:05 +00007030dlls/avicap32/Makefile
Marcus Meissnerb3d1a221999-03-13 18:07:44 +00007031dlls/avifil32/Makefile
Alexandre Julliarda0d77311998-09-13 16:32:00 +00007032dlls/comctl32/Makefile
Klaas van Gendc9127491999-02-28 20:05:11 +00007033dlls/commdlg/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007034dlls/crtdll/Makefile
Travis Michielsen0f21ee82002-01-10 19:41:11 +00007035dlls/crypt32/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007036dlls/dciman32/Makefile
Alexandre Julliardddce6522000-03-17 16:58:10 +00007037dlls/ddraw/Makefile
Hidenori Takeshimab4be9982001-10-23 20:35:23 +00007038dlls/devenum/Makefile
Alexandre Julliardddce6522000-03-17 16:58:10 +00007039dlls/dinput/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00007040dlls/dplay/Makefile
Peter Hunnisett22b861c1999-09-28 16:35:32 +00007041dlls/dplayx/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00007042dlls/dsound/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00007043dlls/gdi/Makefile
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007044dlls/glu32/Makefile
Francois Gougetedf3e431999-11-07 21:22:17 +00007045dlls/icmp/Makefile
Patrik Stridvall8295c861998-10-11 17:09:05 +00007046dlls/imagehlp/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007047dlls/imm32/Makefile
Dimitrie O. Paun36b5b6b2000-06-03 00:07:44 +00007048dlls/kernel/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007049dlls/lzexpand/Makefile
Hidenori Takeshima1a8b3392001-09-14 21:36:30 +00007050dlls/mapi32/Makefile
Ulrich Weigandbb1984e1999-08-07 14:32:33 +00007051dlls/mpr/Makefile
Patrik Stridvall8295c861998-10-11 17:09:05 +00007052dlls/msacm/Makefile
Hidenori Takeshimab4be9982001-10-23 20:35:23 +00007053dlls/msdmo/Makefile
Hidenori Takeshima1a8b3392001-09-14 21:36:30 +00007054dlls/msimg32/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007055dlls/msnet32/Makefile
Hidenori Takeshima1c53a7f2001-11-06 00:41:05 +00007056dlls/msrle32/Makefile
Jon Griffiths1db20bf2001-01-10 23:59:25 +00007057dlls/msvcrt/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007058dlls/msvideo/Makefile
Mike McCormack2e40b962001-11-06 17:52:36 +00007059dlls/netapi32/Makefile
Marcus Meissner51505b11998-11-01 14:00:21 +00007060dlls/ntdll/Makefile
Alexandre Julliard8551f8c1999-12-11 23:56:46 +00007061dlls/odbc32/Makefile
Ulrich Weigand2a722f41999-09-19 18:36:53 +00007062dlls/ole32/Makefile
7063dlls/oleaut32/Makefile
7064dlls/olecli/Makefile
7065dlls/oledlg/Makefile
Sean Langley58c71d42000-02-07 16:26:56 +00007066dlls/olepro32/Makefile
Ulrich Weigand2a722f41999-09-19 18:36:53 +00007067dlls/olesvr/Makefile
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007068dlls/opengl32/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007069dlls/psapi/Makefile
Hidenori Takeshimab4be9982001-10-23 20:35:23 +00007070dlls/qcap/Makefile
Hidenori Takeshimab7d4b4e2001-07-02 18:57:22 +00007071dlls/quartz/Makefile
Marcus Meissner30ef8771998-12-11 13:26:26 +00007072dlls/rasapi32/Makefile
Hidenori Takeshimae75f9fb2000-05-03 18:12:19 +00007073dlls/richedit/Makefile
Huw D M Davies10b1b232000-07-15 19:53:50 +00007074dlls/rpcrt4/Makefile
Mike McCormackdc2461e2000-07-15 21:35:55 +00007075dlls/serialui/Makefile
Francois Jacquesdf5e5792000-07-08 18:27:03 +00007076dlls/setupapi/Makefile
John R. Sheetsbc80a3b2001-01-11 22:32:44 +00007077dlls/shdocvw/Makefile
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00007078dlls/shell32/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00007079dlls/shfolder/Makefile
7080dlls/shlwapi/Makefile
Hidenori Takeshima1a8b3392001-09-14 21:36:30 +00007081dlls/sti/Makefile
Andreas Mohr5aa96c11999-03-14 12:34:25 +00007082dlls/tapi32/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00007083dlls/ttydrv/Makefile
Hidenori Takeshima1a8b3392001-09-14 21:36:30 +00007084dlls/url/Makefile
Alexandre Julliard819fa8c2000-04-11 20:07:00 +00007085dlls/urlmon/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00007086dlls/user/Makefile
Ulrich Weigandd43a46a1999-01-31 10:11:04 +00007087dlls/version/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007088dlls/win32s/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007089dlls/winaspi/Makefile
Ove Kaavene5557b32000-12-26 00:22:45 +00007090dlls/winedos/Makefile
Dimitrie O. Paun84bde6a2000-05-30 20:27:23 +00007091dlls/wineps/Makefile
Alexandre Julliard819fa8c2000-04-11 20:07:00 +00007092dlls/wininet/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00007093dlls/winmm/Makefile
Eric Pouech2a3b0a12000-02-26 13:14:04 +00007094dlls/winmm/joystick/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00007095dlls/winmm/mcianim/Makefile
7096dlls/winmm/mciavi/Makefile
7097dlls/winmm/mcicda/Makefile
7098dlls/winmm/mciseq/Makefile
7099dlls/winmm/mciwave/Makefile
Eric Pouechabe72271999-10-31 02:23:49 +00007100dlls/winmm/midimap/Makefile
7101dlls/winmm/wavemap/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00007102dlls/winmm/wineoss/Makefile
Hidenori Takeshima9c672132000-12-14 21:56:18 +00007103dlls/winnls/Makefile
Alexandre Julliardde078692000-01-23 22:07:15 +00007104dlls/winsock/Makefile
Huw D M Daviese39b6761999-05-17 16:20:51 +00007105dlls/winspool/Makefile
Rein Klazes2a4c68b2001-04-16 19:36:12 +00007106dlls/wintrust/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00007107dlls/wow32/Makefile
7108dlls/wsock32/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00007109dlls/x11drv/Makefile
Alexandre Julliardd37eb361997-07-20 16:23:21 +00007110documentation/Makefile
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +00007111documentation/wine.conf.man
Marcus Meissner5a70c971999-06-05 09:00:21 +00007112documentation/wine.man
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00007113files/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00007114graphics/Makefile
Huw D M Davies3a24f3f1999-05-02 10:15:16 +00007115graphics/enhmetafiledrv/Makefile
Alexandre Julliardbf9130a1996-10-13 17:45:47 +00007116graphics/metafiledrv/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00007117graphics/win16drv/Makefile
7118graphics/x11drv/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007119if1632/Makefile
James Juranc70dc831999-02-13 12:18:33 +00007120include/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007121library/Makefile
7122libtest/Makefile
7123loader/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007124loader/ne/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007125memory/Makefile
7126misc/Makefile
7127miscemu/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00007128msdos/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007129objects/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00007130ole/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00007131programs/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007132programs/avitools/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00007133programs/clock/Makefile
Eric Williams30008a01999-02-05 17:40:47 +00007134programs/cmdlgtst/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007135programs/control/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00007136programs/notepad/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007137programs/osversioncheck/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00007138programs/progman/Makefile
Sylvain St.Germain1bb0e661999-03-14 14:00:22 +00007139programs/regapi/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007140programs/regtest/Makefile
7141programs/uninstaller/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00007142programs/view/Makefile
Dave Pickles74f440e1999-06-06 15:24:04 +00007143programs/wcmd/Makefile
Eric Pouech0b83d4c2001-11-23 23:04:58 +00007144programs/wineconsole/Makefile
Joshua Thielena3f23802000-03-15 19:06:39 +00007145programs/winemine/Makefile
Alexandre Julliardfc684342001-03-21 21:41:27 +00007146programs/winetest/Makefile
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00007147programs/winhelp/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00007148programs/winver/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00007149relay32/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00007150scheduler/Makefile
Alexandre Julliard642d3131998-07-12 19:29:36 +00007151server/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007152tools/Makefile
Patrik Stridvall647ac512001-07-30 20:21:34 +00007153tools/winapi/Makefile
Alexandre Julliarde482eeb2000-06-23 20:15:35 +00007154tools/winebuild/Makefile
Eric Pouechd786a122001-09-07 16:04:38 +00007155tools/winedump/Makefile
Jeremy Whitef9f030b2000-11-05 20:06:56 +00007156tools/winelauncher
Bertho Stultiens30855912000-06-13 04:34:41 +00007157tools/wmc/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007158tools/wrc/Makefile
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00007159tsx11/Makefile
Alexandre Julliardfb270dd2000-06-09 05:27:21 +00007160unicode/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007161win32/Makefile
Patrik Stridvallea584721998-11-01 16:22:07 +00007162windows/Makefile
7163windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007164EOF
7165cat >> $CONFIG_STATUS <<EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007166
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007167# Protect against being on the right side of a sed subst in config.status.
7168sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7169 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007170$ac_vpsub
7171$extrasub
Eric Pouech18ad24a2000-01-16 22:16:33 +00007172s%@SHELL@%$SHELL%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007173s%@CFLAGS@%$CFLAGS%g
7174s%@CPPFLAGS@%$CPPFLAGS%g
7175s%@CXXFLAGS@%$CXXFLAGS%g
Eric Pouech18ad24a2000-01-16 22:16:33 +00007176s%@FFLAGS@%$FFLAGS%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007177s%@DEFS@%$DEFS%g
7178s%@LDFLAGS@%$LDFLAGS%g
7179s%@LIBS@%$LIBS%g
7180s%@exec_prefix@%$exec_prefix%g
7181s%@prefix@%$prefix%g
7182s%@program_transform_name@%$program_transform_name%g
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007183s%@bindir@%$bindir%g
7184s%@sbindir@%$sbindir%g
7185s%@libexecdir@%$libexecdir%g
7186s%@datadir@%$datadir%g
7187s%@sysconfdir@%$sysconfdir%g
7188s%@sharedstatedir@%$sharedstatedir%g
7189s%@localstatedir@%$localstatedir%g
7190s%@libdir@%$libdir%g
7191s%@includedir@%$includedir%g
7192s%@oldincludedir@%$oldincludedir%g
7193s%@infodir@%$infodir%g
7194s%@mandir@%$mandir%g
Alexandre Julliard18f92e71996-07-17 20:02:21 +00007195s%@OPTIONS@%$OPTIONS%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007196s%@SET_MAKE@%$SET_MAKE%g
7197s%@CC@%$CC%g
7198s%@CPP@%$CPP%g
Alexandre Julliardff8331e1995-09-18 11:19:54 +00007199s%@X_CFLAGS@%$X_CFLAGS%g
7200s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7201s%@X_LIBS@%$X_LIBS%g
7202s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007203s%@YACC@%$YACC%g
7204s%@LEX@%$LEX%g
7205s%@LEXLIB@%$LEXLIB%g
Marcus Meissner5c5a6212002-01-22 18:28:25 +00007206s%@XYACC@%$XYACC%g
Marcus Meissnerb53bb412000-07-23 13:41:51 +00007207s%@XLEX@%$XLEX%g
Alexandre Julliardff8331e1995-09-18 11:19:54 +00007208s%@RANLIB@%$RANLIB%g
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007209s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
Eric Pouech18ad24a2000-01-16 22:16:33 +00007210s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007211s%@INSTALL_DATA@%$INSTALL_DATA%g
Alexandre Julliard641ee761997-08-04 16:34:36 +00007212s%@LN_S@%$LN_S%g
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00007213s%@C2MAN@%$C2MAN%g
James Juranffe6b761999-06-12 08:21:57 +00007214s%@LDCONFIG@%$LDCONFIG%g
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00007215s%@DLLWRAP@%$DLLWRAP%g
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00007216s%@LINT@%$LINT%g
7217s%@LINTFLAGS@%$LINTFLAGS%g
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +00007218s%@LDCOMBINE@%$LDCOMBINE%g
Alexandre Julliard3f510ad2002-01-01 01:13:03 +00007219s%@UTILLIBS@%$UTILLIBS%g
Alexandre Julliard562089b2001-12-31 22:28:35 +00007220s%@DLLIBS@%$DLLIBS%g
Marcus Meissner252b0fe2001-08-06 18:52:14 +00007221s%@JPEGLIB@%$JPEGLIB%g
Patrik Stridvallea584721998-11-01 16:22:07 +00007222s%@XLIB@%$XLIB%g
Patrik Stridvall2941a212000-04-25 20:34:22 +00007223s%@XFILES@%$XFILES%g
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007224s%@OPENGLFILES@%$OPENGLFILES%g
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007225s%@GLU32FILES@%$GLU32FILES%g
Alexandre Julliard48957682001-12-26 23:08:31 +00007226s%@CURSESLIBS@%$CURSESLIBS%g
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007227s%@CUPSLIBS@%$CUPSLIBS%g
Ian Pilcher563598d2001-05-16 20:56:05 +00007228s%@ft_devel@%$ft_devel%g
Marcus Meissnerd28955d2001-05-31 21:35:15 +00007229s%@ft_devel2@%$ft_devel2%g
Ian Pilcher563598d2001-05-16 20:56:05 +00007230s%@FREETYPELIBS@%$FREETYPELIBS%g
7231s%@FREETYPEINCL@%$FREETYPEINCL%g
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00007232s%@DLLFLAGS@%$DLLFLAGS%g
Todd Vierling4b992b01998-12-15 15:26:27 +00007233s%@LDSHARED@%$LDSHARED%g
Alexandre Julliard4354cda2000-11-09 20:27:45 +00007234s%@LDDLLFLAGS@%$LDDLLFLAGS%g
Alexandre Julliard0adad952000-01-26 01:45:58 +00007235s%@LIBEXT@%$LIBEXT%g
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00007236s%@LDPATH@%$LDPATH%g
Patrik Stridvall1bb94031999-05-08 15:47:44 +00007237s%@ALLOCA@%$ALLOCA%g
Marcus Meissnera7f5cb51999-04-16 08:47:41 +00007238s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
Alexandre Julliardff8331e1995-09-18 11:19:54 +00007239/@MAKE_RULES@/r $MAKE_RULES
7240s%@MAKE_RULES@%%g
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +00007241/@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
7242s%@MAKE_DLL_RULES@%%g
Alexandre Julliard626f4252000-11-10 23:35:20 +00007243/@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
7244s%@MAKE_PROG_RULES@%%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007245
7246CEOF
7247EOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00007248
7249cat >> $CONFIG_STATUS <<\EOF
7250
7251# Split the substitutions into bite-sized pieces for seds with
7252# small command number limits, like on Digital OSF/1 and HP-UX.
7253ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7254ac_file=1 # Number of current file.
7255ac_beg=1 # First line for current file.
7256ac_end=$ac_max_sed_cmds # Line after last line for current file.
7257ac_more_lines=:
7258ac_sed_cmds=""
7259while $ac_more_lines; do
7260 if test $ac_beg -gt 1; then
7261 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7262 else
7263 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7264 fi
7265 if test ! -s conftest.s$ac_file; then
7266 ac_more_lines=false
7267 rm -f conftest.s$ac_file
7268 else
7269 if test -z "$ac_sed_cmds"; then
7270 ac_sed_cmds="sed -f conftest.s$ac_file"
7271 else
7272 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7273 fi
7274 ac_file=`expr $ac_file + 1`
7275 ac_beg=$ac_end
7276 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7277 fi
7278done
7279if test -z "$ac_sed_cmds"; then
7280 ac_sed_cmds=cat
7281fi
7282EOF
7283
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007284cat >> $CONFIG_STATUS <<EOF
7285
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007286CONFIG_FILES=\${CONFIG_FILES-"Make.rules
Alexandre Julliard626f4252000-11-10 23:35:20 +00007287dlls/Makedll.rules
7288programs/Makeprog.rules
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007289Makefile
Joseph Pranevich791cd6a1998-12-02 19:58:08 +00007290console/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007291controls/Makefile
7292debugger/Makefile
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00007293dlls/Makefile
Juergen Schmiedf7b0de31999-01-03 12:48:29 +00007294dlls/advapi32/Makefile
Hidenori Takeshima1c53a7f2001-11-06 00:41:05 +00007295dlls/avicap32/Makefile
Marcus Meissnerb3d1a221999-03-13 18:07:44 +00007296dlls/avifil32/Makefile
Alexandre Julliarda0d77311998-09-13 16:32:00 +00007297dlls/comctl32/Makefile
Klaas van Gendc9127491999-02-28 20:05:11 +00007298dlls/commdlg/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007299dlls/crtdll/Makefile
Travis Michielsen0f21ee82002-01-10 19:41:11 +00007300dlls/crypt32/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007301dlls/dciman32/Makefile
Alexandre Julliardddce6522000-03-17 16:58:10 +00007302dlls/ddraw/Makefile
Hidenori Takeshimab4be9982001-10-23 20:35:23 +00007303dlls/devenum/Makefile
Alexandre Julliardddce6522000-03-17 16:58:10 +00007304dlls/dinput/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00007305dlls/dplay/Makefile
Peter Hunnisett22b861c1999-09-28 16:35:32 +00007306dlls/dplayx/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00007307dlls/dsound/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00007308dlls/gdi/Makefile
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007309dlls/glu32/Makefile
Francois Gougetedf3e431999-11-07 21:22:17 +00007310dlls/icmp/Makefile
Patrik Stridvall8295c861998-10-11 17:09:05 +00007311dlls/imagehlp/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007312dlls/imm32/Makefile
Dimitrie O. Paun36b5b6b2000-06-03 00:07:44 +00007313dlls/kernel/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007314dlls/lzexpand/Makefile
Hidenori Takeshima1a8b3392001-09-14 21:36:30 +00007315dlls/mapi32/Makefile
Ulrich Weigandbb1984e1999-08-07 14:32:33 +00007316dlls/mpr/Makefile
Patrik Stridvall8295c861998-10-11 17:09:05 +00007317dlls/msacm/Makefile
Hidenori Takeshimab4be9982001-10-23 20:35:23 +00007318dlls/msdmo/Makefile
Hidenori Takeshima1a8b3392001-09-14 21:36:30 +00007319dlls/msimg32/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007320dlls/msnet32/Makefile
Hidenori Takeshima1c53a7f2001-11-06 00:41:05 +00007321dlls/msrle32/Makefile
Jon Griffiths1db20bf2001-01-10 23:59:25 +00007322dlls/msvcrt/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007323dlls/msvideo/Makefile
Mike McCormack2e40b962001-11-06 17:52:36 +00007324dlls/netapi32/Makefile
Marcus Meissner51505b11998-11-01 14:00:21 +00007325dlls/ntdll/Makefile
Alexandre Julliard8551f8c1999-12-11 23:56:46 +00007326dlls/odbc32/Makefile
Ulrich Weigand2a722f41999-09-19 18:36:53 +00007327dlls/ole32/Makefile
7328dlls/oleaut32/Makefile
7329dlls/olecli/Makefile
7330dlls/oledlg/Makefile
Sean Langley58c71d42000-02-07 16:26:56 +00007331dlls/olepro32/Makefile
Ulrich Weigand2a722f41999-09-19 18:36:53 +00007332dlls/olesvr/Makefile
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007333dlls/opengl32/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007334dlls/psapi/Makefile
Hidenori Takeshimab4be9982001-10-23 20:35:23 +00007335dlls/qcap/Makefile
Hidenori Takeshimab7d4b4e2001-07-02 18:57:22 +00007336dlls/quartz/Makefile
Marcus Meissner30ef8771998-12-11 13:26:26 +00007337dlls/rasapi32/Makefile
Hidenori Takeshimae75f9fb2000-05-03 18:12:19 +00007338dlls/richedit/Makefile
Huw D M Davies10b1b232000-07-15 19:53:50 +00007339dlls/rpcrt4/Makefile
Mike McCormackdc2461e2000-07-15 21:35:55 +00007340dlls/serialui/Makefile
Francois Jacquesdf5e5792000-07-08 18:27:03 +00007341dlls/setupapi/Makefile
John R. Sheetsbc80a3b2001-01-11 22:32:44 +00007342dlls/shdocvw/Makefile
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00007343dlls/shell32/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00007344dlls/shfolder/Makefile
7345dlls/shlwapi/Makefile
Hidenori Takeshima1a8b3392001-09-14 21:36:30 +00007346dlls/sti/Makefile
Andreas Mohr5aa96c11999-03-14 12:34:25 +00007347dlls/tapi32/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00007348dlls/ttydrv/Makefile
Hidenori Takeshima1a8b3392001-09-14 21:36:30 +00007349dlls/url/Makefile
Alexandre Julliard819fa8c2000-04-11 20:07:00 +00007350dlls/urlmon/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00007351dlls/user/Makefile
Ulrich Weigandd43a46a1999-01-31 10:11:04 +00007352dlls/version/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007353dlls/win32s/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007354dlls/winaspi/Makefile
Ove Kaavene5557b32000-12-26 00:22:45 +00007355dlls/winedos/Makefile
Dimitrie O. Paun84bde6a2000-05-30 20:27:23 +00007356dlls/wineps/Makefile
Alexandre Julliard819fa8c2000-04-11 20:07:00 +00007357dlls/wininet/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00007358dlls/winmm/Makefile
Eric Pouech2a3b0a12000-02-26 13:14:04 +00007359dlls/winmm/joystick/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00007360dlls/winmm/mcianim/Makefile
7361dlls/winmm/mciavi/Makefile
7362dlls/winmm/mcicda/Makefile
7363dlls/winmm/mciseq/Makefile
7364dlls/winmm/mciwave/Makefile
Eric Pouechabe72271999-10-31 02:23:49 +00007365dlls/winmm/midimap/Makefile
7366dlls/winmm/wavemap/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00007367dlls/winmm/wineoss/Makefile
Hidenori Takeshima9c672132000-12-14 21:56:18 +00007368dlls/winnls/Makefile
Alexandre Julliardde078692000-01-23 22:07:15 +00007369dlls/winsock/Makefile
Huw D M Daviese39b6761999-05-17 16:20:51 +00007370dlls/winspool/Makefile
Rein Klazes2a4c68b2001-04-16 19:36:12 +00007371dlls/wintrust/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00007372dlls/wow32/Makefile
7373dlls/wsock32/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00007374dlls/x11drv/Makefile
Alexandre Julliardd37eb361997-07-20 16:23:21 +00007375documentation/Makefile
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +00007376documentation/wine.conf.man
Marcus Meissner5a70c971999-06-05 09:00:21 +00007377documentation/wine.man
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00007378files/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00007379graphics/Makefile
Huw D M Davies3a24f3f1999-05-02 10:15:16 +00007380graphics/enhmetafiledrv/Makefile
Alexandre Julliardbf9130a1996-10-13 17:45:47 +00007381graphics/metafiledrv/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00007382graphics/win16drv/Makefile
7383graphics/x11drv/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007384if1632/Makefile
James Juranc70dc831999-02-13 12:18:33 +00007385include/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007386library/Makefile
7387libtest/Makefile
7388loader/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007389loader/ne/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007390memory/Makefile
7391misc/Makefile
7392miscemu/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00007393msdos/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007394objects/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00007395ole/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00007396programs/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007397programs/avitools/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00007398programs/clock/Makefile
Eric Williams30008a01999-02-05 17:40:47 +00007399programs/cmdlgtst/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007400programs/control/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00007401programs/notepad/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007402programs/osversioncheck/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00007403programs/progman/Makefile
Sylvain St.Germain1bb0e661999-03-14 14:00:22 +00007404programs/regapi/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007405programs/regtest/Makefile
7406programs/uninstaller/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00007407programs/view/Makefile
Dave Pickles74f440e1999-06-06 15:24:04 +00007408programs/wcmd/Makefile
Eric Pouech0b83d4c2001-11-23 23:04:58 +00007409programs/wineconsole/Makefile
Joshua Thielena3f23802000-03-15 19:06:39 +00007410programs/winemine/Makefile
Alexandre Julliardfc684342001-03-21 21:41:27 +00007411programs/winetest/Makefile
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00007412programs/winhelp/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00007413programs/winver/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00007414relay32/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00007415scheduler/Makefile
Alexandre Julliard642d3131998-07-12 19:29:36 +00007416server/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007417tools/Makefile
Patrik Stridvall647ac512001-07-30 20:21:34 +00007418tools/winapi/Makefile
Alexandre Julliarde482eeb2000-06-23 20:15:35 +00007419tools/winebuild/Makefile
Eric Pouechd786a122001-09-07 16:04:38 +00007420tools/winedump/Makefile
Jeremy Whitef9f030b2000-11-05 20:06:56 +00007421tools/winelauncher
Bertho Stultiens30855912000-06-13 04:34:41 +00007422tools/wmc/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007423tools/wrc/Makefile
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00007424tsx11/Makefile
Alexandre Julliardfb270dd2000-06-09 05:27:21 +00007425unicode/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007426win32/Makefile
Patrik Stridvallea584721998-11-01 16:22:07 +00007427windows/Makefile
7428windows/x11drv/Makefile "}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007429EOF
7430cat >> $CONFIG_STATUS <<\EOF
7431for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007432 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007433 case "$ac_file" in
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007434 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007435 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7436 *) ac_file_in="${ac_file}.in" ;;
7437 esac
7438
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00007439 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007440
7441 # Remove last slash and all that follows it. Not all systems have dirname.
7442 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7443 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7444 # The file is in a subdirectory.
7445 test ! -d "$ac_dir" && mkdir "$ac_dir"
7446 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7447 # A "../" for each directory in $ac_dir_suffix.
7448 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7449 else
7450 ac_dir_suffix= ac_dots=
7451 fi
7452
7453 case "$ac_given_srcdir" in
7454 .) srcdir=.
7455 if test -z "$ac_dots"; then top_srcdir=.
7456 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7457 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7458 *) # Relative path.
7459 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7460 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7461 esac
7462
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007463 case "$ac_given_INSTALL" in
7464 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7465 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7466 esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00007467
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007468 echo creating "$ac_file"
7469 rm -f "$ac_file"
7470 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7471 case "$ac_file" in
7472 *Makefile*) ac_comsub="1i\\
7473# $configure_input" ;;
7474 *) ac_comsub= ;;
7475 esac
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007476
7477 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 +00007478 sed -e "$ac_comsub
7479s%@configure_input@%$configure_input%g
7480s%@srcdir@%$srcdir%g
7481s%@top_srcdir@%$top_srcdir%g
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007482s%@INSTALL@%$INSTALL%g
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007483" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007484fi; done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00007485rm -f conftest.s*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007486
Alexandre Julliard18f92e71996-07-17 20:02:21 +00007487# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7488# NAME is the cpp macro being defined and VALUE is the value it is being given.
7489#
7490# ac_d sets the value in "#define NAME VALUE" lines.
7491ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7492ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7493ac_dC='\3'
7494ac_dD='%g'
7495# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7496ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7497ac_uB='\([ ]\)%\1#\2define\3'
7498ac_uC=' '
7499ac_uD='\4%g'
7500# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7501ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7502ac_eB='$%\1#\2define\3'
7503ac_eC=' '
7504ac_eD='%g'
7505
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007506if test "${CONFIG_HEADERS+set}" != set; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00007507EOF
7508cat >> $CONFIG_STATUS <<EOF
7509 CONFIG_HEADERS="include/config.h"
7510EOF
7511cat >> $CONFIG_STATUS <<\EOF
7512fi
Alexandre Julliard18f92e71996-07-17 20:02:21 +00007513for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007514 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Alexandre Julliard18f92e71996-07-17 20:02:21 +00007515 case "$ac_file" in
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007516 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Alexandre Julliard18f92e71996-07-17 20:02:21 +00007517 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7518 *) ac_file_in="${ac_file}.in" ;;
7519 esac
7520
7521 echo creating $ac_file
7522
7523 rm -f conftest.frag conftest.in conftest.out
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007524 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7525 cat $ac_file_inputs > conftest.in
Alexandre Julliard18f92e71996-07-17 20:02:21 +00007526
7527EOF
7528
7529# Transform confdefs.h into a sed script conftest.vals that substitutes
7530# the proper values into config.h.in to produce config.h. And first:
7531# Protect against being on the right side of a sed subst in config.status.
7532# Protect against being in an unquoted here document in config.status.
7533rm -f conftest.vals
7534cat > conftest.hdr <<\EOF
7535s/[\\&%]/\\&/g
7536s%[\\$`]%\\&%g
7537s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7538s%ac_d%ac_u%gp
7539s%ac_u%ac_e%gp
7540EOF
7541sed -n -f conftest.hdr confdefs.h > conftest.vals
7542rm -f conftest.hdr
7543
7544# This sed command replaces #undef with comments. This is necessary, for
7545# example, in the case of _POSIX_SOURCE, which is predefined and required
7546# on some systems where configure will not decide to define it.
7547cat >> conftest.vals <<\EOF
7548s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7549EOF
7550
7551# Break up conftest.vals because some shells have a limit on
7552# the size of here documents, and old seds have small limits too.
Alexandre Julliard18f92e71996-07-17 20:02:21 +00007553
7554rm -f conftest.tail
7555while :
7556do
7557 ac_lines=`grep -c . conftest.vals`
7558 # grep -c gives empty output for an empty file on some AIX systems.
7559 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7560 # Write a limited-size here document to conftest.frag.
7561 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7562 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7563 echo 'CEOF
7564 sed -f conftest.frag conftest.in > conftest.out
7565 rm -f conftest.in
7566 mv conftest.out conftest.in
7567' >> $CONFIG_STATUS
7568 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7569 rm -f conftest.vals
7570 mv conftest.tail conftest.vals
7571done
7572rm -f conftest.vals
7573
7574cat >> $CONFIG_STATUS <<\EOF
7575 rm -f conftest.frag conftest.h
7576 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7577 cat conftest.in >> conftest.h
7578 rm -f conftest.in
7579 if cmp -s $ac_file conftest.h 2>/dev/null; then
7580 echo "$ac_file is unchanged"
7581 rm -f conftest.h
7582 else
7583 # Remove last slash and all that follows it. Not all systems have dirname.
7584 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7585 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7586 # The file is in a subdirectory.
7587 test ! -d "$ac_dir" && mkdir "$ac_dir"
7588 fi
7589 rm -f $ac_file
7590 mv conftest.h $ac_file
7591 fi
7592fi; done
7593
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007594EOF
7595cat >> $CONFIG_STATUS <<EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007596
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +00007597
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007598EOF
7599cat >> $CONFIG_STATUS <<\EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007600
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +00007601extra_subdirs="\
7602dlls/ddraw/d3ddevice \
7603dlls/ddraw/dclipper \
7604dlls/ddraw/ddraw \
7605dlls/ddraw/direct3d \
7606dlls/ddraw/dpalette \
7607dlls/ddraw/dsurface \
Lionel Ulmer6301e942000-11-05 20:25:02 +00007608dlls/dinput/joystick \
7609dlls/dinput/keyboard \
7610dlls/dinput/mouse \
Alexandre Julliardd1d09052000-07-30 13:39:52 +00007611dlls/kernel/messages \
Dmitry Timoshkov3b725f62001-06-29 19:20:18 +00007612dlls/user/dde \
Alexandre Julliard2affae52000-10-23 21:32:05 +00007613dlls/user/resources \
Ian Pilcher55d2e572001-05-29 22:06:10 +00007614dlls/wineps/data \
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +00007615"
7616for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done
7617
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007618exit 0
7619EOF
7620chmod +x $CONFIG_STATUS
7621rm -fr confdefs* $ac_clean_files
7622test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7623
7624
Ove Kaaven8b4431f1999-01-23 13:59:11 +00007625if test "$have_x" = "no"
7626then
7627 echo
7628 echo "*** Warning: X development files not found. Wine will be built without"
7629 echo "*** X support, which currently does not work, and would probably not be"
7630 echo "*** what you want anyway. You will need to install devel packages of"
Alexandre Julliard18e4b5e2002-01-04 18:52:40 +00007631 echo "*** Xlib/Xfree86 at the very least."
Ove Kaaven8b4431f1999-01-23 13:59:11 +00007632fi
7633
Alexandre Julliard638f1691999-01-17 16:32:32 +00007634if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
7635then
7636 echo
7637 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
7638 echo "*** terminal resize support. Consider upgrading ncurses."
Alexandre Julliard638f1691999-01-17 16:32:32 +00007639fi
7640
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007641if test "$wine_cv_libc_reentrant" = "no"
7642then
7643 echo
7644 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
7645 echo "*** thread support. Consider upgrading libc to a more recent"
7646 echo "*** reentrant version of libc."
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007647fi
7648
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007649if test "$wine_cv_opengl_version_OK" = "no"
Lionel Ulmer5c085701999-02-28 19:48:53 +00007650then
7651 echo
7652 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00007653 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
7654fi
7655
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007656if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00007657then
7658 echo
7659 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007660 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
Andreas Mohr18a9d742001-01-17 21:52:42 +00007661 echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine,"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007662 echo "*** start configure with '--enable-opengl' to force OpenGL support."
Lionel Ulmer5c085701999-02-28 19:48:53 +00007663fi
7664
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007665if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007666then
7667 echo
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00007668 echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007669 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
7670 echo "*** support before reporting bugs."
7671fi
7672
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00007673if test "$wine_cv_warn_cups_h" = "yes"
7674then
7675 echo
7676 echo "*** Note: You have cups runtime libraries, but no development"
7677 echo "*** libraries. Install the cups-devel package or whichever package"
7678 echo "*** contains cups.h to enable CUPS support in WINE."
7679fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007680
Ian Pilcher563598d2001-05-16 20:56:05 +00007681if test "$wine_cv_msg_freetype" = "yes"
7682then
7683 echo
7684 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
7685 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
7686 echo "*** freetype-devel package (or its equivalent on your distribution) to"
7687 echo "*** enable Wine to use TrueType fonts."
7688fi
7689
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007690echo
Steffen Moeller1511bae1999-02-17 15:27:03 +00007691echo "Configure finished. Do 'make depend && make' to compile Wine."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007692echo
7693